From 05b0b8ee8eb647b819d6a423d316cd633fc62c32 Mon Sep 17 00:00:00 2001 From: Muris Hadzimejlic Date: Wed, 28 Feb 2024 11:58:36 +0100 Subject: [PATCH] beta update --- index.html | 2 +- main.6f874ca294b727cf.js => main.82f025b1e696cd11.js | 2 +- manifest.beta.xml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename main.6f874ca294b727cf.js => main.82f025b1e696cd11.js (51%) diff --git a/index.html b/index.html index 088e288..6ea0942 100644 --- a/index.html +++ b/index.html @@ -19,6 +19,6 @@ - + \ No newline at end of file diff --git a/main.6f874ca294b727cf.js b/main.82f025b1e696cd11.js similarity index 51% rename from main.6f874ca294b727cf.js rename to main.82f025b1e696cd11.js index f2cf5b7..a4f40ec 100644 --- a/main.6f874ca294b727cf.js +++ b/main.82f025b1e696cd11.js @@ -1 +1 @@ -(self.webpackChunkBM=self.webpackChunkBM||[]).push([[179],{9287:(Pe,C,G)=>{"use strict";function le(n){return"function"==typeof n}let ce=!1;const K={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else ce&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ce=n},get useDeprecatedSynchronousErrorHandling(){return ce}};function Y(n){setTimeout(()=>{throw n},0)}const q={closed:!0,next(n){},error(n){if(K.useDeprecatedSynchronousErrorHandling)throw n;Y(n)},complete(){}},F=Array.isArray||(n=>n&&"number"==typeof n.length);function M(n){return null!==n&&"object"==typeof n}const A=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class w{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;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 w)e.remove(this);else if(null!==e)for(let s=0;st.concat(e instanceof A?e.errors:e),[])}w.EMPTY=((n=new w).closed=!0,n);const E="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class D extends w{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=q;break;case 1:if(!t){this.destination=q;break}if("object"==typeof t){t instanceof D?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new I(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new I(this,t,e,i)}}[E](){return this}static create(t,e,i){const r=new D(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class I extends D{constructor(t,e,i,r){super(),this._parentSubscriber=t;let o,s=this;le(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==q&&(s=Object.create(e),le(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(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;K.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=K;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Y(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Y(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);K.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),K.useDeprecatedSynchronousErrorHandling)throw i;Y(i)}}__tryOrSetError(t,e,i){if(!K.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return K.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Y(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const ne="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ce(n){return n}function te(n){return 0===n.length?Ce:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let b=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function z(n,t,e){if(n){if(n instanceof D)return n;if(n[E])return n[E]()}return n||t||e?new D(n,t,e):new D(q)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||K.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),K.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){K.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function B(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof D?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)}[ne](){return this}pipe(...e){return 0===e.length?this:te(e)(this)}toPromise(e){return new(e=$(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function $(n){if(n||(n=K.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const ie=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class _e extends w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class H extends D{constructor(t){super(t),this.destination=t}}let L=(()=>{class n extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[E](){return new H(this)}lift(e){const i=new Q(this,this);return i.operator=e,i}next(e){if(this.closed)throw new ie;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew Q(t,e),n})();class Q extends L{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):w.EMPTY}}function de(n){return n&&"function"==typeof n.schedule}function ue(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Ne(n,t))}}class Ne{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new Fe(t,this.project,this.thisArg))}}class Fe extends D{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const At=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function Ge(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const qe=n=>{if(n&&"function"==typeof n[ne])return(n=>t=>{const e=n[ne]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(R(n))return At(n);if(Ge(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Y),t))(n);if(n&&"function"==typeof n[re])return(n=>t=>{const e=n[re]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${M(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function hi(n,t){return new b(e=>{const i=new w;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Et(n,t){return t?function uh(n,t){if(null!=n){if(function Vs(n){return n&&"function"==typeof n[ne]}(n))return function Nt(n,t){return new b(e=>{const i=new w;return i.add(t.schedule(()=>{const r=n[ne]();i.add(r.subscribe({next(o){i.add(t.schedule(()=>e.next(o)))},error(o){i.add(t.schedule(()=>e.error(o)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(Ge(n))return function ln(n,t){return new b(e=>{const i=new w;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(R(n))return hi(n,t);if(function ch(n){return n&&"function"==typeof n[re]}(n)||"string"==typeof n)return function Hi(n,t){if(!n)throw new Error("Iterable cannot be null");return new b(e=>{const i=new w;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[re](),i.add(t.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})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof b?n:new b(qe(n))}class Do extends D{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Zc extends D{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function Jc(n,t){if(t.closed)return;if(n instanceof b)return n.subscribe(t);let e;try{e=qe(n)(t)}catch(i){t.error(i)}return e}function Vi(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(Vi((r,o)=>Et(n(r,o)).pipe(ue((s,a)=>t(r,s,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new eO(n,e)))}class eO{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new tO(t,this.project,this.concurrent))}}class tO extends Zc{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function dh(n=Number.POSITIVE_INFINITY){return Vi(Ce,n)}function ug(n,t){return t?hi(n,t):new b(At(n))}function Mn(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return de(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof b?n[0]:dh(t)(ug(n,e))}function hh(){return function(t){return t.lift(new nO(t))}}class nO{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new iO(t,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class iO extends D{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class ph extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new w,t.add(this.source.subscribe(new oO(this.getSubject(),this))),t.closed&&(this._connection=null,t=w.EMPTY)),t}refCount(){return hh()(this)}}const rO=(()=>{const n=ph.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class oO extends H{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class lO{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(t);return o.add(e.subscribe(r)),o}}function cO(){return new L}function vn(n){for(let t in n)if(n[t]===vn)return t;throw Error("Could not find renamed property on target object.")}function dg(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function yn(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(yn).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function hg(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const uO=vn({__forward_ref__:vn});function Zt(n){return n.__forward_ref__=Zt,n.toString=function(){return yn(this())},n}function Ct(n){return pg(n)?n():n}function pg(n){return"function"==typeof n&&n.hasOwnProperty(uO)&&n.__forward_ref__===Zt}class Se extends Error{constructor(t,e){super(function fh(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function It(n){return"string"==typeof n?n:null==n?"":String(n)}function mh(n,t){throw new Se(-201,!1)}function _r(n,t){null==n&&function pn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function fe(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function lt(n){return{providers:n.providers||[],imports:n.imports||[]}}function fg(n){return ww(n,gh)||ww(n,Dw)}function ww(n,t){return n.hasOwnProperty(t)?n[t]:null}function Ew(n){return n&&(n.hasOwnProperty(mg)||n.hasOwnProperty(vO))?n[mg]:null}const gh=vn({\u0275prov:vn}),mg=vn({\u0275inj:vn}),Dw=vn({ngInjectableDef:vn}),vO=vn({ngInjectorDef:vn});var vt=(()=>((vt=vt||{})[vt.Default=0]="Default",vt[vt.Host=1]="Host",vt[vt.Self=2]="Self",vt[vt.SkipSelf=4]="SkipSelf",vt[vt.Optional=8]="Optional",vt))();let gg;function kr(n){const t=gg;return gg=n,t}function Sw(n,t,e){const i=fg(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&vt.Optional?null:void 0!==t?t:void mh(yn(n))}function js(n){return{toString:n}.toString()}var Zr=(()=>((Zr=Zr||{})[Zr.OnPush=0]="OnPush",Zr[Zr.Default=1]="Default",Zr))(),Jr=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Jr||(Jr={})),Jr))();const gn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),gl={},un=[],_h=vn({\u0275cmp:vn}),_g=vn({\u0275dir:vn}),vg=vn({\u0275pipe:vn}),Aw=vn({\u0275mod:vn}),ts=vn({\u0275fac:vn}),eu=vn({__NG_ELEMENT_ID__:vn});let bO=0;function ze(n){return js(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Zr.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||un,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Jr.Emulated,id:"c"+bO++,styles:n.styles||un,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=Mw(n.inputs,i),r.outputs=Mw(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(xw).filter(Iw):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(qi).filter(Iw):null,r})}function xw(n){return mn(n)||Ui(n)}function Iw(n){return null!==n}const CO={};function dt(n){return js(()=>{const t={type:n.type,bootstrap:n.bootstrap||un,declarations:n.declarations||un,imports:n.imports||un,exports:n.exports||un,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(CO[n.id]=n.type),t})}function Mw(n,t){if(null==n)return gl;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const he=ze;function ji(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function mn(n){return n[_h]||null}function Ui(n){return n[_g]||null}function qi(n){return n[vg]||null}function vr(n,t){const e=n[Aw]||null;if(!e&&!0===t)throw new Error(`Type ${yn(n)} does not have '\u0275mod' property.`);return e}function tr(n){return Array.isArray(n)&&"object"==typeof n[1]}function to(n){return Array.isArray(n)&&!0===n[1]}function Cg(n){return 0!=(8&n.flags)}function Ch(n){return 2==(2&n.flags)}function wh(n){return 1==(1&n.flags)}function no(n){return null!==n.template}function AO(n){return 0!=(256&n[2])}function wa(n,t){return n.hasOwnProperty(ts)?n[ts]:null}class IO{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function kn(){return Ow}function Ow(n){return n.type.prototype.ngOnChanges&&(n.setInput=kO),MO}function MO(){const n=Lw(this),t=n?.current;if(t){const e=n.previous;if(e===gl)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function kO(n,t,e,i){const r=Lw(n)||function RO(n,t){return n[Pw]=t}(n,{previous:gl,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new IO(l&&l.currentValue,t,s===gl),n[i]=t}kn.ngInherit=!0;const Pw="__ngSimpleChanges__";function Lw(n){return n[Pw]||null}function Xn(n){for(;Array.isArray(n);)n=n[0];return n}function Eh(n,t){return Xn(t[n])}function Pr(n,t){return Xn(t[n.index])}function Ag(n,t){return n.data[t]}function Cl(n,t){return n[t]}function br(n,t){const e=t[n];return tr(e)?e:e[0]}function Nw(n){return 4==(4&n[2])}function Tg(n){return 64==(64&n[2])}function Us(n,t){return null==t?null:n[t]}function Fw(n){n[18]=0}function xg(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const Tt={lFrame:Ww(null),bindingsEnabled:!0};function Hw(){return Tt.bindingsEnabled}function Ae(){return Tt.lFrame.lView}function Jt(){return Tt.lFrame.tView}function oe(n){return Tt.lFrame.contextLView=n,n[8]}function se(n){return Tt.lFrame.contextLView=null,n}function oi(){let n=Vw();for(;null!==n&&64===n.type;)n=n.parent;return n}function Vw(){return Tt.lFrame.currentTNode}function So(n,t){const e=Tt.lFrame;e.currentTNode=n,e.isParent=t}function Ig(){return Tt.lFrame.isParent}function Mg(){Tt.lFrame.isParent=!1}function zi(){const n=Tt.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function wl(){return Tt.lFrame.bindingIndex++}function is(n){const t=Tt.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function WO(n,t){const e=Tt.lFrame;e.bindingIndex=e.bindingRootIndex=n,kg(t)}function kg(n){Tt.lFrame.currentDirectiveIndex=n}function Rg(n){const t=Tt.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function qw(){return Tt.lFrame.currentQueryIndex}function Og(n){Tt.lFrame.currentQueryIndex=n}function KO(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function zw(n,t,e){if(e&vt.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&vt.Host||(r=KO(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=Tt.lFrame=Gw();return i.currentTNode=t,i.lView=n,!0}function Pg(n){const t=Gw(),e=n[1];Tt.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Gw(){const n=Tt.lFrame,t=null===n?null:n.child;return null===t?Ww(n):t}function Ww(n){const t={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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function $w(){const n=Tt.lFrame;return Tt.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Kw=$w;function Lg(){const n=$w();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Gi(){return Tt.lFrame.selectedIndex}function qs(n){Tt.lFrame.selectedIndex=n}function Hn(){const n=Tt.lFrame;return Ag(n.tView,n.selectedIndex)}function El(){Tt.lFrame.currentNamespace="svg"}function Sh(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class ou{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function xh(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Bg=!0;function Mh(n){const t=Bg;return Bg=n,t}let aP=0;const Ao={};function au(n,t){const e=Vg(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Hg(i.data,n),Hg(t,null),Hg(i.blueprint,null));const r=kh(n,t),o=n.injectorIndex;if(e0(r)){const s=Dl(r),a=Sl(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function Hg(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Vg(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function kh(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=u0(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Rh(n,t,e){!function lP(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(eu)&&(i=e[eu]),null==i&&(i=e[eu]=aP++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:hP:t}(e);if("function"==typeof o){if(!zw(t,n,i))return i&vt.Host?r0(r,0,i):o0(t,e,i,r);try{const s=o(i);if(null!=s||i&vt.Optional)return s;mh()}finally{Kw()}}else if("number"==typeof o){let s=null,a=Vg(n,t),l=-1,c=i&vt.Host?t[16][6]:null;for((-1===a||i&vt.SkipSelf)&&(l=-1===a?kh(n,t):t[a+8],-1!==l&&c0(i,!1)?(s=t[1],a=Dl(l),t=Sl(l,t)):a=-1);-1!==a;){const u=t[1];if(l0(o,a,u.data)){const d=uP(a,t,e,s,i,c);if(d!==Ao)return d}l=t[a+8],-1!==l&&c0(i,t[1].data[a+8]===c)&&l0(o,a,t)?(s=u,a=Dl(l),t=Sl(l,t)):a=-1}}return r}function uP(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Oh(a,s,e,null==i?Ch(a)&&Bg:i!=s&&0!=(3&a.type),r&vt.Host&&o===a);return null!==u?lu(t,s,u,a):Ao}function Oh(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f=l&&_.type===e)return f}if(r){const f=s[l];if(f&&no(f)&&f.type===e)return l}return null}function lu(n,t,e,i){let r=n[e];const o=t.data;if(function nP(n){return n instanceof ou}(r)){const s=r;s.resolving&&function dO(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Se(-200,`Circular dependency in DI detected for ${n}${e}`)}(function cn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():It(n)}(o[e]));const a=Mh(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?kr(s.injectImpl):null;zw(n,i,vt.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function eP(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Ow(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&kr(l),Mh(a),s.resolving=!1,Kw()}}return r}function l0(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[ts]||jg(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[ts]||jg(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function jg(n){return pg(n)?()=>{const t=jg(Ct(n));return t&&t()}:wa(n)}function u0(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function io(n){return function cP(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function Ug(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);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(xl)?l[xl]:Object.defineProperty(l,xl,{value:[]})[xl];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=n,r.annotationCls=r,r})}class pe{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=fe({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Cr(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?rs(e,t):t(e))}function h0(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Ph(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function du(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function _P(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function zg(n,t){const e=kl(n,t);if(e>=0)return n[1|e]}function kl(n,t){return function m0(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Hh}()?.createHTML(n)||n}function A0(n){return function Xg(){if(void 0===Vh&&(Vh=null,gn.trustedTypes))try{Vh=gn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Vh}()?.createHTML(n)||n}class Da{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class qP extends Da{getTypeName(){return"HTML"}}class zP extends Da{getTypeName(){return"Style"}}class GP extends Da{getTypeName(){return"Script"}}class WP extends Da{getTypeName(){return"URL"}}class $P extends Da{getTypeName(){return"ResourceURL"}}function Er(n){return n instanceof Da?n.changingThisBreaksApplicationSecurity:n}function To(n,t){const e=function KP(n){return n instanceof Da&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}class eL{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Pl(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class tL{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Pl(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Pl(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0vu(t.trim())).join(", ")}function xo(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function yu(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const k0=xo("area,br,col,hr,img,wbr"),R0=xo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),O0=xo("rp,rt"),Zg=yu(k0,yu(R0,xo("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")),yu(O0,xo("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")),yu(O0,R0)),Jg=xo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),e_=xo("srcset"),P0=yu(Jg,e_,xo("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),xo("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")),oL=xo("script,style,template");class sL{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.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(t){const e=t.nodeName.toLowerCase();if(!Zg.hasOwnProperty(e))return this.sanitizedSomething=!0,!oL.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();Zg.hasOwnProperty(e)&&!k0.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(L0(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const aL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lL=/([^\#-~ |!])/g;function L0(n){return n.replace(/&/g,"&").replace(aL,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(lL,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let jh;function N0(n,t){let e=null;try{jh=jh||function I0(n){const t=new tL(n);return function nL(){try{return!!(new window.DOMParser).parseFromString(Pl(""),"text/html")}catch{return!1}}()?new eL(t):t}(n);let i=t?String(t):"";e=jh.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=jh.getInertBodyElement(i)}while(i!==o);return Pl((new sL).sanitizeChildren(t_(e)||e))}finally{if(e){const i=t_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function t_(n){return"content"in n&&function cL(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var on=(()=>((on=on||{})[on.NONE=0]="NONE",on[on.HTML=1]="HTML",on[on.STYLE=2]="STYLE",on[on.SCRIPT=3]="SCRIPT",on[on.URL=4]="URL",on[on.RESOURCE_URL=5]="RESOURCE_URL",on))();function n_(n){const t=bu();return t?A0(t.sanitize(on.HTML,n)||""):To(n,"HTML")?A0(Er(n)):N0(function S0(){return void 0!==Yg?Yg:typeof document<"u"?document:void 0}(),It(n))}function Zn(n){const t=bu();return t?t.sanitize(on.URL,n)||"":To(n,"URL")?Er(n):vu(It(n))}function bu(){const n=Ae();return n&&n[12]}const B0=new pe("ENVIRONMENT_INITIALIZER"),i_=new pe("INJECTOR",-1),H0=new pe("INJECTOR_DEF_TYPES");class V0{get(t,e=hu){if(e===hu){const i=new Error(`NullInjectorError: No provider for ${yn(t)}!`);throw i.name="NullInjectorError",i}return e}}function gL(...n){return{\u0275providers:j0(0,n)}}function j0(n,...t){const e=[],i=new Set;let r;return rs(t,o=>{const s=o;r_(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&U0(r,e),e}function U0(n,t){for(let e=0;e{t.push(o)})}}function r_(n,t,e,i){if(!(n=Ct(n)))return!1;let r=null,o=Ew(n);const s=!o&&mn(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=Ew(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)r_(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{rs(o.imports,u=>{r_(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&U0(c,t)}if(!a){const c=wa(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:un},{provide:H0,useValue:r,multi:!0},{provide:B0,useValue:()=>T(r),multi:!0})}const l=o.providers;null==l||a||rs(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const _L=vn({provide:String,useValue:vn});function o_(n){return null!==n&&"object"==typeof n&&_L in n}function Sa(n){return"function"==typeof n}const s_=new pe("Set Injector scope."),Uh={},yL={};let a_;function qh(){return void 0===a_&&(a_=new V0),a_}class Aa{}class G0 extends Aa{constructor(t,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,c_(t,s=>this.processProvider(s)),this.records.set(i_,Ll(void 0,this)),r.has("environment")&&this.records.set(Aa,Ll(void 0,this));const o=this.records.get(s_);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(H0.multi,un,vt.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=Rl(this),i=kr(void 0);try{return t()}finally{Rl(e),kr(i)}}get(t,e=hu,i=vt.Default){this.assertNotDestroyed();const r=Rl(this),o=kr(void 0);try{if(!(i&vt.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function DL(n){return"function"==typeof n||"object"==typeof n&&n instanceof pe}(t)&&fg(t);a=l&&this.injectableDefInScope(l)?Ll(l_(t),Uh):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&vt.Self?qh():this.parent).get(t,e=i&vt.Optional&&e===hu?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Nh]=s[Nh]||[]).unshift(yn(t)),r)throw s;return function IP(n,t,e,i){const r=n[Nh];throw t[g0]&&r.unshift(t[g0]),n.message=function MP(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=yn(t);if(Array.isArray(t))r=t.map(yn).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):yn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(SP,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Nh]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{kr(o),Rl(r)}}resolveInjectorInitializers(){const t=Rl(this),e=kr(void 0);try{const i=this.get(B0.multi,un,vt.Self);for(const r of i)r()}finally{Rl(t),kr(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(yn(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Se(205,!1)}processProvider(t){let e=Sa(t=Ct(t))?t:Ct(t&&t.provide);const i=function CL(n){return o_(n)?Ll(void 0,n.useValue):Ll(W0(n),Uh)}(t);if(Sa(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Ll(void 0,Uh,!0),r.factory=()=>$g(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Uh&&(e.value=yL,e.value=e.factory()),"object"==typeof e.value&&e.value&&function EL(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Ct(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function l_(n){const t=fg(n),e=null!==t?t.factory:wa(n);if(null!==e)return e;if(n instanceof pe)throw new Se(204,!1);if(n instanceof Function)return function bL(n){const t=n.length;if(t>0)throw du(t,"?"),new Se(204,!1);const e=function gO(n){const t=n&&(n[gh]||n[Dw]);if(t){const e=function _O(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Se(204,!1)}function W0(n,t,e){let i;if(Sa(n)){const r=Ct(n);return wa(r)||l_(r)}if(o_(n))i=()=>Ct(n.useValue);else if(function z0(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...$g(n.deps||[]));else if(function q0(n){return!(!n||!n.useExisting)}(n))i=()=>T(Ct(n.useExisting));else{const r=Ct(n&&(n.useClass||n.provide));if(!function wL(n){return!!n.deps}(n))return wa(r)||l_(r);i=()=>new r(...$g(n.deps))}return i}function Ll(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function SL(n){return!!n.\u0275providers}function c_(n,t){for(const e of n)Array.isArray(e)?c_(e,t):SL(e)?c_(e.\u0275providers,t):t(e)}class $0{}class xL{resolveComponentFactory(t){throw function TL(n){const t=Error(`No component factory found for ${yn(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let ro=(()=>{class n{}return n.NULL=new xL,n})();function IL(){return Nl(oi(),Ae())}function Nl(n,t){return new Je(Pr(n,t))}let Je=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=IL,n})();function ML(n){return n instanceof Je?n.nativeElement:n}class Cu{}let oo=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function kL(){const n=Ae(),e=br(oi().index,n);return(tr(e)?e:n)[11]}(),n})(),RL=(()=>{class n{}return n.\u0275prov=fe({token:n,providedIn:"root",factory:()=>null}),n})();class Ta{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Y0=new Ta("14.1.0"),u_={};function m_(n){return n.ngOriginalError}class Gs{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&m_(t);for(;e&&m_(e);)e=m_(e);return e||null}}const g_=new Map;let GL=0;const v_="__ngContext__";function ki(n,t){tr(t)?(n[v_]=t[20],function $L(n){g_.set(n[20],n)}(t)):n[v_]=t}function wu(n){const t=n[v_];return"number"==typeof t?function eE(n){return g_.get(n)||null}(t):t||null}function y_(n){const t=wu(n);return t?tr(t)?t:t.lView:null}const nN=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(gn))();function ss(n){return n instanceof Function?n():n}var nr=(()=>((nr=nr||{})[nr.Important=1]="Important",nr[nr.DashCase=2]="DashCase",nr))();function C_(n,t){return undefined(n,t)}function Eu(n){const t=n[3];return to(t)?t[3]:t}function w_(n){return lE(n[13])}function E_(n){return lE(n[4])}function lE(n){for(;null!==n&&!to(n);)n=n[4];return n}function Bl(n,t,e,i,r){if(null!=i){let o,s=!1;to(i)?o=i:tr(i)&&(s=!0,i=i[0]);const a=Xn(i);0===n&&null!==e?null==r?fE(t,e,a):xa(t,e,a,r||null,!0):1===n&&null!==e?xa(t,e,a,r||null,!0):2===n?function CE(n,t,e){const i=zh(n,t);i&&function bN(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function EN(n,t,e,i,r){const o=e[7];o!==Xn(e)&&Bl(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=Ph(n,10+t);!function hN(n,t){Du(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function dE(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&Du(n,t,e,3,null,null),function mN(n){let t=n[13];if(!t)return T_(n[1],n);for(;t;){let e=null;if(tr(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)tr(t)&&T_(t[1],t),t=t[3];null===t&&(t=n),tr(t)&&T_(t[1],t),e=t&&t[4]}t=e}}(t)}}function T_(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function yN(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==DE(f,c,0)||2&i&&c!==h){if(so(i))return!1;s=!0}}}}else{if(!s&&!so(i)&&!so(l))return!1;if(s&&so(l))continue;s=!1,i=l|1&i}}return so(i)||s}function so(n){return 0==(1&n)}function xN(n,t,e,i){if(null===t)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&&!so(s)&&(t+=xE(o,r),r=""),i=s,o=o||!so(i);e++}return""!==r&&(t+=xE(o,r)),t}const Mt={};function m(n){IE(Jt(),Ae(),Gi()+n,!1)}function IE(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Ah(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Th(t,o,0,e)}qs(e)}function OE(n,t=null,e=null,i){const r=PE(n,t,e,i);return r.resolveInjectorInitializers(),r}function PE(n,t=null,e=null,i,r=new Set){const o=[e||un,gL(n)];return i=i||("object"==typeof n?void 0:yn(n)),new G0(o,t||qh(),i||null,r)}let Rn=(()=>{class n{static create(e,i){if(Array.isArray(e))return OE({name:""},i,e,"");{const r=e.name??"";return OE({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=hu,n.NULL=new V0,n.\u0275prov=fe({token:n,providedIn:"any",factory:()=>T(i_)}),n.__NG_ELEMENT_ID__=-1,n})();function p(n,t=vt.Default){const e=Ae();return null===e?T(n,t):s0(oi(),e,Ct(n),t)}function Vl(){throw new Error("invalid")}function Kh(n,t){return n<<17|t<<2}function ao(n){return n>>17&32767}function N_(n){return 2|n}function as(n){return(131068&n)>>2}function F_(n,t){return-131069&n|t<<2}function B_(n){return 1|n}function XE(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&IE(n,t,22,!1),e(i,r)}finally{qs(o)}}function JE(n,t,e){if(Cg(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function sD(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function aD(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function SF(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&J_(e)}}function J_(n){for(let i=w_(n);null!==i;i=E_(i))for(let r=10;r0&&J_(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&J_(r)}}function RF(n,t){const e=br(t,n),i=e[1];(function OF(n,t){for(let e=t.length;ePromise.resolve(null))();function pD(n){return n[7]||(n[7]=[])}function fD(n){return n.cleanup||(n.cleanup=[])}function mD(n,t,e){return(null===n||no(n))&&(e=function NO(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function gD(n,t){const e=n[9],i=e?e.get(Gs,null):null;i&&i.handleError(t)}function iv(n,t,e,i,r){for(let o=0;o-1&&(A_(t,i),Ph(e,i))}this._attachedToViewContainer=!1}dE(this._lView[1],this._lView)}onDestroy(t){tD(this._lView[1],this._lView,null,t)}markForCheck(){ev(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function tv(n,t,e){const i=t[10];i.begin&&i.begin();try{Su(n,t,n.template,e)}catch(r){throw gD(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Se(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function fN(n,t){Du(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Se(902,!1);this._appRef=t}}class NF extends Au{constructor(t){super(t),this._view=t}detectChanges(){hD(this._view)}checkNoChanges(){}get context(){return null}}class rv extends ro{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=mn(t);return new Tu(e,this.ngModule)}}function _D(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class BF{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,u_,i);return r!==u_||e===u_?r:this.parentInjector.get(t,e,i)}}class Tu extends $0{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function PN(n){return n.map(ON).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return _D(this.componentDef.inputs)}get outputs(){return _D(this.componentDef.outputs)}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Aa?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new BF(t,o):t,a=s.get(Cu,null);if(null===a)throw new Se(407,!1);const l=s.get(RL,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function mF(n,t,e){return n.selectRootElement(t,e===Jr.ShadowDom)}(c,i,this.componentDef.encapsulation):S_(a.createRenderer(null,this.componentDef),u,function FF(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),h=this.componentDef.onPush?288:272,f=function qF(n,t){return{components:[],scheduler:n||nN,clean:LF,playerHandler:t||null,flags:0}}(),_=Q_(0,null,null,1,0,null,null,null,null,null),S=Xh(null,_,f,h,null,null,a,c,l,s,null);let U,Z;Pg(S);try{const ve=function jF(n,t,e,i,r,o){const s=e[1];e[22]=n;const l=jl(s,22,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(ep(l,c,!0),null!==n&&(xh(r,n,c),null!==l.classes&&k_(r,n,l.classes),null!==l.styles&&EE(r,n,l.styles)));const u=i.createRenderer(n,t),d=Xh(e,eD(t),null,t.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(Rh(au(l,e),s,t.type),aD(s,l),lD(l,e.length,1)),Jh(e,d),e[22]=d}(d,this.componentDef,S,a,c);if(d)if(i)xh(c,d,["ng-version",Y0.full]);else{const{attrs:ee,classes:Te}=function LN(n){const t=[],e=[];let i=1,r=2;for(;i0&&k_(c,d,Te.join(" "))}if(Z=Ag(_,22),void 0!==e){const ee=Z.projection=[];for(let Te=0;Te=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ih(r.hostAttrs,e=Ih(e,r.hostAttrs))}}(i)}function ov(n){return n===gl?{}:n===un?[]:n}function WF(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function $F(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function KF(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let np=null;function Ia(){if(!np){const n=gn.Symbol;if(n&&n.iterator)np=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Xn(et[i.index])):i.index;let Te=null;if(!a&&l&&(Te=function l3(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==Te)(Te.__ngLastListenerFn__||Te).__ngNextListenerFn__=o,Te.__ngLastListenerFn__=o,f=!1;else{o=kD(i,t,d,o,!1);const et=e.listen(Z,r,o);h.push(o,et),u&&u.push(r,ee,ve,ve+1)}}else o=kD(i,t,d,o,!1);const _=i.outputs;let S;if(f&&null!==_&&(S=_[r])){const U=S.length;if(U)for(let Z=0;Z0;)t=t[15],n--;return t}(n,Tt.lFrame.contextLView))[8]}(n)}function c3(n,t){let e=null;const i=function IN(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const ai={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jD(n){return n.substring(ai.key,ai.keyEnd)}function UD(n,t){const e=ai.textEnd;return e===t?-1:(t=ai.keyEnd=function g3(n,t,e){for(;t32;)t++;return t}(n,ai.key=t,e),Zl(n,t,e))}function Zl(n,t,e){for(;t=0;e=UD(t,e))wr(n,jD(t),!0)}function lo(n,t,e,i){const r=Ae(),o=Jt(),s=is(2);o.firstUpdatePass&&KD(o,n,s,i),t!==Mt&&Ri(r,s,t)&&QD(o,o.data[Gi()],r,r[11],n,r[s+1]=function A3(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=yn(Er(n)))),n}(t,e),i,s)}function co(n,t,e,i){const r=Jt(),o=is(2);r.firstUpdatePass&&KD(r,null,o,i);const s=Ae();if(e!==Mt&&Ri(s,o,e)){const a=r.data[Gi()];if(ZD(a,i)&&!$D(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=hg(l,e||"")),av(r,a,s,e,i)}else!function S3(n,t,e,i,r,o,s,a){r===Mt&&(r=un);let l=0,c=0,u=0=n.expandoStartIndex}function KD(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[Gi()],s=$D(n,e);ZD(o,i)&&null===t&&!s&&(t=!1),t=function b3(n,t,e,i){const r=Rg(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=ku(e=uv(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=uv(r,n,t,e,i),null===o){let l=function C3(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==as(i))return n[ao(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=uv(null,n,t,l[1],i),l=ku(l,t.attrs,i),function w3(n,t,e,i){n[ao(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function E3(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=ao(n[a+1]);n[i+1]=Kh(h,a),0!==h&&(n[h+1]=F_(n[h+1],i)),n[a+1]=function eF(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Kh(a,0),0!==a&&(n[a+1]=F_(n[a+1],i)),a=i;else n[i+1]=Kh(l,0),0===a?a=i:n[l+1]=F_(n[l+1],i),l=i;c&&(n[i+1]=N_(n[i+1])),VD(n,u,i,!0),VD(n,u,i,!1),function d3(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&kl(o,t)>=0&&(e[i+1]=B_(e[i+1]))}(t,u,n,i,o),s=Kh(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function uv(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Mt&&(h=d?un:void 0);let f=d?zg(h,i):u===i?h:void 0;if(c&&!op(f)&&(f=zg(l,i)),op(f)&&(a=f,s))return a;const _=n[r+1];r=s?ao(_):as(_)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=zg(l,i))}return a}function op(n){return void 0!==n}function ZD(n,t){return 0!=(n.flags&(t?16:32))}function j(n,t=""){const e=Ae(),i=Jt(),r=n+22,o=i.firstCreatePass?jl(i,r,1,t,null):i.data[r],s=e[r]=function D_(n,t){return n.createText(t)}(e[11],t);Gh(i,e,s,o),So(o,!1)}function we(n){return Qe("",n,""),we}function Qe(n,t,e){const i=Ae(),r=zl(i,n,t,e);return r!==Mt&&ls(i,Gi(),r),Qe}function Oo(n,t,e,i,r){const o=Ae(),s=Gl(o,n,t,e,i,r);return s!==Mt&&ls(o,Gi(),s),Oo}function Po(n,t,e){const i=Ae();return Ri(i,wl(),t)&&Dr(Jt(),Hn(),i,n,t,i[11],e,!0),Po}function Ru(n,t,e){const i=Ae();if(Ri(i,wl(),t)){const o=Jt(),s=Hn();Dr(o,s,i,n,t,mD(Rg(o.data),s,i),e,!0)}return Ru}const ka=void 0;var G3=["en",[["a","p"],["AM","PM"],ka],[["AM","PM"],ka,ka],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ka,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ka,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ka,"{1} 'at' {0}",ka],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function z3(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Jl={};function $i(n){const t=function W3(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=_S(t);if(e)return e;const i=t.split("-")[0];if(e=_S(i),e)return e;if("en"===i)return G3;throw new Se(701,!1)}function _S(n){return n in Jl||(Jl[n]=gn.ng&&gn.ng.common&&gn.ng.common.locales&&gn.ng.common.locales[n]),Jl[n]}var Ye=(()=>((Ye=Ye||{})[Ye.LocaleId=0]="LocaleId",Ye[Ye.DayPeriodsFormat=1]="DayPeriodsFormat",Ye[Ye.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ye[Ye.DaysFormat=3]="DaysFormat",Ye[Ye.DaysStandalone=4]="DaysStandalone",Ye[Ye.MonthsFormat=5]="MonthsFormat",Ye[Ye.MonthsStandalone=6]="MonthsStandalone",Ye[Ye.Eras=7]="Eras",Ye[Ye.FirstDayOfWeek=8]="FirstDayOfWeek",Ye[Ye.WeekendRange=9]="WeekendRange",Ye[Ye.DateFormat=10]="DateFormat",Ye[Ye.TimeFormat=11]="TimeFormat",Ye[Ye.DateTimeFormat=12]="DateTimeFormat",Ye[Ye.NumberSymbols=13]="NumberSymbols",Ye[Ye.NumberFormats=14]="NumberFormats",Ye[Ye.CurrencyCode=15]="CurrencyCode",Ye[Ye.CurrencySymbol=16]="CurrencySymbol",Ye[Ye.CurrencyName=17]="CurrencyName",Ye[Ye.Currencies=18]="Currencies",Ye[Ye.Directionality=19]="Directionality",Ye[Ye.PluralCase=20]="PluralCase",Ye[Ye.ExtraData=21]="ExtraData",Ye))();const ec="en-US";let vS=ec;function pv(n,t,e,i,r){if(n=Ct(n),Array.isArray(n))for(let o=0;o>20;if(Sa(n)||!n.multi){const f=new ou(l,r,p),_=mv(a,t,r?u:u+h,d);-1===_?(Rh(au(c,s),o,a),fv(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[_]=f,s[_]=f)}else{const f=mv(a,t,u+h,d),_=mv(a,t,u,u+h),S=f>=0&&e[f],U=_>=0&&e[_];if(r&&!U||!r&&!S){Rh(au(c,s),o,a);const Z=function qB(n,t,e,i,r){const o=new ou(n,e,p);return o.multi=[],o.index=t,o.componentProviders=0,qS(o,r,i&&!e),o}(r?UB:jB,e.length,r,i,l);!r&&U&&(e[_].providerFactory=Z),fv(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(Z),s.push(Z)}else fv(o,n,f>-1?f:_,qS(e[r?_:f],l,!r&&i));!r&&i&&U&&e[_].componentProviders++}}}function fv(n,t,e,i){const r=Sa(t),o=function vL(n){return!!n.useClass}(t);if(r||o){const l=(o?Ct(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.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 qS(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function mv(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function VB(n,t,e){const i=Jt();if(i.firstCreatePass){const r=no(n);pv(e,i.data,i.blueprint,r,!0),pv(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Ra{}class zS{}class GS extends Ra{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new rv(this);const i=vr(t);this._bootstrapComponents=ss(i.bootstrap),this._r3Injector=PE(t,e,[{provide:Ra,useValue:this},{provide:ro,useValue:this.componentFactoryResolver}],yn(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class _v extends zS{constructor(t){super(),this.moduleType=t}create(t){return new GS(this.moduleType,t)}}class GB extends Ra{constructor(t,e,i){super(),this.componentFactoryResolver=new rv(this),this.instance=null;const r=new G0([...t,{provide:Ra,useValue:this},{provide:ro,useValue:this.componentFactoryResolver}],e||qh(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function bv(n,t,e){const i=zi()+n,r=Ae();return r[i]===Mt?Mo(r,i,e?t.call(e):t()):function Iu(n,t){return n[t]}(r,i)}function Wn(n,t,e,i){return JS(Ae(),zi(),n,t,e,i)}function ZS(n,t,e,i,r){return function eA(n,t,e,i,r,o,s){const a=t+e;return Ma(n,a,r,o)?Mo(n,a+2,s?i.call(s,r,o):i(r,o)):Fu(n,a+2)}(Ae(),zi(),n,t,e,i,r)}function Ki(n,t,e,i,r,o,s){return function nA(n,t,e,i,r,o,s,a,l){const c=t+e;return function Lr(n,t,e,i,r,o){const s=Ma(n,t,e,i);return Ma(n,t+2,r,o)||s}(n,c,r,o,s,a)?Mo(n,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):Fu(n,c+4)}(Ae(),zi(),n,t,e,i,r,o,s)}function Fu(n,t){const e=n[t];return e===Mt?void 0:e}function JS(n,t,e,i,r,o){const s=t+e;return Ri(n,s,r)?Mo(n,s+1,o?i.call(o,r):i(r)):Fu(n,s+1)}function Xe(n,t){const e=Jt();let i;const r=n+22;e.firstCreatePass?(i=function c5(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,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=wa(i.type)),s=kr(p);try{const a=Mh(!1),l=o();return Mh(a),function o3(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,Ae(),r,l),l}finally{kr(s)}}function Ze(n,t,e){const i=n+22,r=Ae(),o=Cl(r,i);return function Bu(n,t){return n[1].data[t].pure}(r,i)?JS(r,zi(),t,o.transform,e,o):o.transform(e)}function Cv(n){return t=>{setTimeout(n,void 0,t)}}const Be=class f5 extends L{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Cv(o),r&&(r=Cv(r)),s&&(s=Cv(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof w&&t.add(a),a}};function m5(){return this._results[Ia()]()}class Oa{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Ia(),i=Oa.prototype;i[e]||(i[e]=m5)}get changes(){return this._changes||(this._changes=new Be)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=Cr(t);(this._changesDetected=!function mP(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=v5,n})();const g5=bn,_5=class extends g5{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=Xh(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),Zh(i,r,t),new Au(r)}};function v5(){return up(oi(),Ae())}function up(n,t){return 4&n.type?new _5(t,n,Nl(n,t)):null}let En=(()=>{class n{}return n.__NG_ELEMENT_ID__=y5,n})();function y5(){return sA(oi(),Ae())}const b5=En,rA=class extends b5{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Nl(this._hostTNode,this._hostLView)}get injector(){return new Al(this._hostTNode,this._hostLView)}get parentInjector(){const t=kh(this._hostTNode,this._hostLView);if(e0(t)){const e=Sl(t,this._hostLView),i=Dl(t);return new Al(e[1].data[i+8],e)}return new Al(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=oA(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function uu(n){return"function"==typeof n}(t);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?t:new Tu(mn(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Aa,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function BO(n){return to(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new rA(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function gN(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=hp,this.reject=hp,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 n.\u0275fac=function(e){return new(e||n)(T(MA,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oc=new pe("AppId",{providedIn:"root",factory:function kA(){return`${Rv()}${Rv()}${Rv()}`}});function Rv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const RA=new pe("Platform Initializer"),fp=new pe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),K5=new pe("appBootstrapListener"),Un=new pe("AnimationModuleType");let Y5=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Lo=new pe("LocaleId",{providedIn:"root",factory:()=>Ea(Lo,vt.Optional|vt.SkipSelf)||function Q5(){return typeof $localize<"u"&&$localize.locale||ec}()});class Z5{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let OA=(()=>{class n{compileModuleSync(e){return new _v(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=ss(vr(e).declarations).reduce((s,a)=>{const l=mn(a);return l&&s.push(new Tu(l)),s},[]);return new Z5(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const t4=(()=>Promise.resolve(0))();function Ov(n){typeof Zone>"u"?t4.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class nt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Be(!1),this.onMicrotaskEmpty=new Be(!1),this.onStable=new Be(!1),this.onError=new Be(!1),typeof Zone>"u")throw new Se(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function n4(){let n=gn.requestAnimationFrame,t=gn.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function s4(n){const t=()=>{!function o4(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(gn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Lv(n),n.isCheckStableRunning=!0,Pv(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Lv(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return NA(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),FA(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return NA(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),FA(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Lv(n),Pv(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!nt.isInAngularZone())throw new Se(909,!1)}static assertNotInAngularZone(){if(nt.isInAngularZone())throw new Se(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,r4,hp,hp);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const r4={};function Pv(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Lv(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function NA(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function FA(n){n._nesting--,Pv(n)}class a4{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Be,this.onMicrotaskEmpty=new Be,this.onStable=new Be,this.onError=new Be}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const BA=new pe(""),mp=new pe("");let Bv,Nv=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Bv||(function l4(n){Bv=n}(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:()=>{nt.assertNotInAngularZone(),Ov(()=>{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())Ov(()=>{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 n.\u0275fac=function(e){return new(e||n)(T(nt),T(Fv),T(mp))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),Fv=(()=>{class n{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 Bv?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Ks=null;const HA=new pe("AllowMultipleToken"),Hv=new pe("PlatformDestroyListeners");function jA(n,t,e=[]){const i=`Platform: ${t}`,r=new pe(i);return(o=[])=>{let s=Vv();if(!s||s.injector.get(HA,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function d4(n){if(Ks&&!Ks.get(HA,!1))throw new Se(400,!1);Ks=n;const t=n.get(qA);(function VA(n){const t=n.get(RA,null);t&&t.forEach(e=>e())})(n)}(function UA(n=[],t){return Rn.create({name:t,providers:[{provide:s_,useValue:"platform"},{provide:Hv,useValue:new Set([()=>Ks=null])},...n]})}(a,i))}return function p4(n){const t=Vv();if(!t)throw new Se(401,!1);return t}()}}function Vv(){return Ks?.get(qA)??null}let qA=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function f4(n,t){let e;return e="noop"===n?new a4:("zone.js"===n?void 0:n)||new nt(t),e}(i?.ngZone,function zA(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:nt,useValue:r}];return r.run(()=>{const s=Rn.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(Gs,null);if(!l)throw new Se(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{gp(this._modules,a),c.unsubscribe()})}),function GA(n,t,e){try{const i=e();return Mu(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(pp);return c.runInitializers(),c.donePromise.then(()=>(function yS(n){_r(n,"Expected localeId to be defined"),"string"==typeof n&&(vS=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Lo,ec)||ec),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=WA({},i);return function c4(n,t,e){const i=new _v(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ys);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Se(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 Se(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Hv,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(T(Rn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function WA(n,t){return Array.isArray(t)?t.reduce(WA,n):{...n,...t}}let Ys=(()=>{class n{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 b(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new b(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{nt.assertNotInAngularZone(),Ov(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{nt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Mn(o,s.pipe(function Cw(){return n=>hh()(function aO(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new lO(r,t));const o=Object.create(i,rO);return o.source=i,o.subjectFactory=r,o}}(cO)(n))}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof $0;if(!this._injector.get(pp).done)throw!r&&function ic(n){const t=mn(n)||Ui(n)||qi(n);return null!==t&&t.standalone}(e),new Se(405,false);let s;s=r?e:this._injector.get(ro).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function u4(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Ra),c=s.create(Rn.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(BA,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),gp(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Se(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;gp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(K5,[]).concat(this._bootstrapListeners).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),()=>gp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Se(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(T(nt),T(Aa),T(Gs))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function gp(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let KA=!0,Bt=(()=>{class n{}return n.__NG_ELEMENT_ID__=_4,n})();function _4(n){return function v4(n,t,e){if(Ch(n)&&!e){const i=br(n.index,t);return new Au(i,i)}return 47&n.type?new Au(t[16],t):null}(oi(),Ae(),16==(16&n))}class JA{constructor(){}supports(t){return xu(t)}create(t){return new D4(t)}}const E4=(n,t)=>t;class D4{constructor(t){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=t||E4}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){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=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new S4(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=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(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new eT),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new eT),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class S4{constructor(t,e){this.item=t,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 A4{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class eT{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new A4,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function tT(n,t,e){const i=n.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(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);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 x4(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class x4{constructor(t){this.key=t,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 iT(){return new us([new JA])}let us=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||iT()),deps:[[n,new mu,new os]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Se(901,!1)}}return n.\u0275prov=fe({token:n,providedIn:"root",factory:iT}),n})();function rT(){return new Vu([new nT])}let Vu=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||rT()),deps:[[n,new mu,new os]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Se(901,!1)}}return n.\u0275prov=fe({token:n,providedIn:"root",factory:rT}),n})();const k4=jA(null,"core",[]);let R4=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(T(Ys))},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})();let yp=null;function No(){return yp}const ht=new pe("DocumentToken");let Gv=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:function(){return function N4(){return T(oT)}()},providedIn:"platform"}),n})(),oT=(()=>{class n extends Gv{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return No().getBaseHref(this._doc)}onPopState(e){const i=No().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=No().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){sT()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){sT()?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 n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({token:n,factory:function(){return function F4(){return new oT(T(ht))}()},providedIn:"platform"}),n})();function sT(){return!!window.history.pushState}function aT(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function lT(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function La(n){return n&&"?"!==n[0]?"?"+n:n}let bp=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:function(){return function B4(){const n=T(ht).location;return new V4(T(Gv),n&&n.origin||"")}()},providedIn:"root"}),n})();const H4=new pe("appBaseHref");let V4=(()=>{class n extends bp{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");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}prepareExternalUrl(e){return aT(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+La(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+La(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+La(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 n.\u0275fac=function(e){return new(e||n)(T(Gv),T(H4,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),Na=(()=>{class n{constructor(e){this._subject=new Be,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=lT(cT(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+La(i))}normalize(e){return n.stripTrailingSlash(function U4(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,cT(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+La(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+La(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 n.normalizeQueryParams=La,n.joinWithSlash=aT,n.stripTrailingSlash=lT,n.\u0275fac=function(e){return new(e||n)(T(bp))},n.\u0275prov=fe({token:n,factory:function(){return function j4(){return new Na(T(bp))}()},providedIn:"root"}),n})();function cT(n){return n.replace(/\/index.html$/,"")}var $n=(()=>(($n=$n||{})[$n.Format=0]="Format",$n[$n.Standalone=1]="Standalone",$n))(),Kt=(()=>((Kt=Kt||{})[Kt.Narrow=0]="Narrow",Kt[Kt.Abbreviated=1]="Abbreviated",Kt[Kt.Wide=2]="Wide",Kt[Kt.Short=3]="Short",Kt))(),On=(()=>((On=On||{})[On.Short=0]="Short",On[On.Medium=1]="Medium",On[On.Long=2]="Long",On[On.Full=3]="Full",On))(),mt=(()=>((mt=mt||{})[mt.Decimal=0]="Decimal",mt[mt.Group=1]="Group",mt[mt.List=2]="List",mt[mt.PercentSign=3]="PercentSign",mt[mt.PlusSign=4]="PlusSign",mt[mt.MinusSign=5]="MinusSign",mt[mt.Exponential=6]="Exponential",mt[mt.SuperscriptingExponent=7]="SuperscriptingExponent",mt[mt.PerMille=8]="PerMille",mt[mt.Infinity=9]="Infinity",mt[mt.NaN=10]="NaN",mt[mt.TimeSeparator=11]="TimeSeparator",mt[mt.CurrencyDecimal=12]="CurrencyDecimal",mt[mt.CurrencyGroup=13]="CurrencyGroup",mt))();function Cp(n,t){return Fr($i(n)[Ye.DateFormat],t)}function wp(n,t){return Fr($i(n)[Ye.TimeFormat],t)}function Ep(n,t){return Fr($i(n)[Ye.DateTimeFormat],t)}function Nr(n,t){const e=$i(n),i=e[Ye.NumberSymbols][t];if(typeof i>"u"){if(t===mt.CurrencyDecimal)return e[Ye.NumberSymbols][mt.Decimal];if(t===mt.CurrencyGroup)return e[Ye.NumberSymbols][mt.Group]}return i}function dT(n){if(!n[Ye.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[Ye.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Fr(n,t){for(let e=t;e>-1;e--)if(typeof n[e]<"u")return n[e];throw new Error("Locale data API: locale data undefined")}function $v(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const tH=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ju={},nH=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var li=(()=>((li=li||{})[li.Short=0]="Short",li[li.ShortGMT=1]="ShortGMT",li[li.Long=2]="Long",li[li.Extended=3]="Extended",li))(),yt=(()=>((yt=yt||{})[yt.FullYear=0]="FullYear",yt[yt.Month=1]="Month",yt[yt.Date=2]="Date",yt[yt.Hours=3]="Hours",yt[yt.Minutes=4]="Minutes",yt[yt.Seconds=5]="Seconds",yt[yt.FractionalSeconds=6]="FractionalSeconds",yt[yt.Day=7]="Day",yt))(),jt=(()=>((jt=jt||{})[jt.DayPeriods=0]="DayPeriods",jt[jt.Days=1]="Days",jt[jt.Months=2]="Months",jt[jt.Eras=3]="Eras",jt))();function hT(n,t,e,i){let r=function dH(n){if(mT(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,o=1,s=1]=n.split("-").map(a=>+a);return Dp(r,o-1,s)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(tH))return function hH(n){const t=new Date(0);let e=0,i=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,o=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const s=Number(n[4]||0)-e,a=Number(n[5]||0)-i,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return o.call(t,s,a,l,c),t}(i)}const t=new Date(n);if(!mT(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=hs(e,t)||t;let a,s=[];for(;t;){if(a=nH.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;t=u}}let l=r.getTimezoneOffset();i&&(l=fT(i,l),r=function uH(n,t,e){const i=e?-1:1,r=n.getTimezoneOffset();return function cH(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(fT(t,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function lH(n){if(Yv[n])return Yv[n];let t;switch(n){case"G":case"GG":case"GGG":t=Dn(jt.Eras,Kt.Abbreviated);break;case"GGGG":t=Dn(jt.Eras,Kt.Wide);break;case"GGGGG":t=Dn(jt.Eras,Kt.Narrow);break;case"y":t=ei(yt.FullYear,1,0,!1,!0);break;case"yy":t=ei(yt.FullYear,2,0,!0,!0);break;case"yyy":t=ei(yt.FullYear,3,0,!1,!0);break;case"yyyy":t=ei(yt.FullYear,4,0,!1,!0);break;case"Y":t=xp(1);break;case"YY":t=xp(2,!0);break;case"YYY":t=xp(3);break;case"YYYY":t=xp(4);break;case"M":case"L":t=ei(yt.Month,1,1);break;case"MM":case"LL":t=ei(yt.Month,2,1);break;case"MMM":t=Dn(jt.Months,Kt.Abbreviated);break;case"MMMM":t=Dn(jt.Months,Kt.Wide);break;case"MMMMM":t=Dn(jt.Months,Kt.Narrow);break;case"LLL":t=Dn(jt.Months,Kt.Abbreviated,$n.Standalone);break;case"LLLL":t=Dn(jt.Months,Kt.Wide,$n.Standalone);break;case"LLLLL":t=Dn(jt.Months,Kt.Narrow,$n.Standalone);break;case"w":t=Kv(1);break;case"ww":t=Kv(2);break;case"W":t=Kv(1,!0);break;case"d":t=ei(yt.Date,1);break;case"dd":t=ei(yt.Date,2);break;case"c":case"cc":t=ei(yt.Day,1);break;case"ccc":t=Dn(jt.Days,Kt.Abbreviated,$n.Standalone);break;case"cccc":t=Dn(jt.Days,Kt.Wide,$n.Standalone);break;case"ccccc":t=Dn(jt.Days,Kt.Narrow,$n.Standalone);break;case"cccccc":t=Dn(jt.Days,Kt.Short,$n.Standalone);break;case"E":case"EE":case"EEE":t=Dn(jt.Days,Kt.Abbreviated);break;case"EEEE":t=Dn(jt.Days,Kt.Wide);break;case"EEEEE":t=Dn(jt.Days,Kt.Narrow);break;case"EEEEEE":t=Dn(jt.Days,Kt.Short);break;case"a":case"aa":case"aaa":t=Dn(jt.DayPeriods,Kt.Abbreviated);break;case"aaaa":t=Dn(jt.DayPeriods,Kt.Wide);break;case"aaaaa":t=Dn(jt.DayPeriods,Kt.Narrow);break;case"b":case"bb":case"bbb":t=Dn(jt.DayPeriods,Kt.Abbreviated,$n.Standalone,!0);break;case"bbbb":t=Dn(jt.DayPeriods,Kt.Wide,$n.Standalone,!0);break;case"bbbbb":t=Dn(jt.DayPeriods,Kt.Narrow,$n.Standalone,!0);break;case"B":case"BB":case"BBB":t=Dn(jt.DayPeriods,Kt.Abbreviated,$n.Format,!0);break;case"BBBB":t=Dn(jt.DayPeriods,Kt.Wide,$n.Format,!0);break;case"BBBBB":t=Dn(jt.DayPeriods,Kt.Narrow,$n.Format,!0);break;case"h":t=ei(yt.Hours,1,-12);break;case"hh":t=ei(yt.Hours,2,-12);break;case"H":t=ei(yt.Hours,1);break;case"HH":t=ei(yt.Hours,2);break;case"m":t=ei(yt.Minutes,1);break;case"mm":t=ei(yt.Minutes,2);break;case"s":t=ei(yt.Seconds,1);break;case"ss":t=ei(yt.Seconds,2);break;case"S":t=ei(yt.FractionalSeconds,1);break;case"SS":t=ei(yt.FractionalSeconds,2);break;case"SSS":t=ei(yt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ap(li.Short);break;case"ZZZZZ":t=Ap(li.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ap(li.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ap(li.Long);break;default:return null}return Yv[n]=t,t}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Dp(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function hs(n,t){const e=function q4(n){return $i(n)[Ye.LocaleId]}(n);if(ju[e]=ju[e]||{},ju[e][t])return ju[e][t];let i="";switch(t){case"shortDate":i=Cp(n,On.Short);break;case"mediumDate":i=Cp(n,On.Medium);break;case"longDate":i=Cp(n,On.Long);break;case"fullDate":i=Cp(n,On.Full);break;case"shortTime":i=wp(n,On.Short);break;case"mediumTime":i=wp(n,On.Medium);break;case"longTime":i=wp(n,On.Long);break;case"fullTime":i=wp(n,On.Full);break;case"short":const r=hs(n,"shortTime"),o=hs(n,"shortDate");i=Sp(Ep(n,On.Short),[r,o]);break;case"medium":const s=hs(n,"mediumTime"),a=hs(n,"mediumDate");i=Sp(Ep(n,On.Medium),[s,a]);break;case"long":const l=hs(n,"longTime"),c=hs(n,"longDate");i=Sp(Ep(n,On.Long),[l,c]);break;case"full":const u=hs(n,"fullTime"),d=hs(n,"fullDate");i=Sp(Ep(n,On.Full),[u,d])}return i&&(ju[e][t]=i),i}function Sp(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function ho(n,t,e="-",i,r){let o="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,o=e));let s=String(n);for(;s.length0||a>-e)&&(a+=e),n===yt.Hours)0===a&&-12===e&&(a=12);else if(n===yt.FractionalSeconds)return function iH(n,t){return ho(n,3).substring(0,t)}(a,t);const l=Nr(s,mt.MinusSign);return ho(a,t,l,i,r)}}function Dn(n,t,e=$n.Format,i=!1){return function(r,o){return function oH(n,t,e,i,r,o){switch(e){case jt.Months:return function W4(n,t,e){const i=$i(n),o=Fr([i[Ye.MonthsFormat],i[Ye.MonthsStandalone]],t);return Fr(o,e)}(t,r,i)[n.getMonth()];case jt.Days:return function G4(n,t,e){const i=$i(n),o=Fr([i[Ye.DaysFormat],i[Ye.DaysStandalone]],t);return Fr(o,e)}(t,r,i)[n.getDay()];case jt.DayPeriods:const s=n.getHours(),a=n.getMinutes();if(o){const c=function Q4(n){const t=$i(n);return dT(t),(t[Ye.ExtraData][2]||[]).map(i=>"string"==typeof i?$v(i):[$v(i[0]),$v(i[1])])}(t),u=function X4(n,t,e){const i=$i(n);dT(i);const o=Fr([i[Ye.ExtraData][0],i[Ye.ExtraData][1]],t)||[];return Fr(o,e)||[]}(t,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,_]=h,S=s>=f.hours&&a>=f.minutes,U=s<_.hours||s===_.hours&&a<_.minutes;if(f.hours<_.hours){if(S&&U)return!0}else if(S||U)return!0}else if(h.hours===s&&h.minutes===a)return!0;return!1});if(-1!==d)return u[d]}return function z4(n,t,e){const i=$i(n),o=Fr([i[Ye.DayPeriodsFormat],i[Ye.DayPeriodsStandalone]],t);return Fr(o,e)}(t,r,i)[s<12?0:1];case jt.Eras:return function $4(n,t){return Fr($i(n)[Ye.Eras],t)}(t,i)[n.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,o,n,t,e,i)}}function Ap(n){return function(t,e,i){const r=-1*i,o=Nr(e,mt.MinusSign),s=r>0?Math.floor(r/60):Math.ceil(r/60);switch(n){case li.Short:return(r>=0?"+":"")+ho(s,2,o)+ho(Math.abs(r%60),2,o);case li.ShortGMT:return"GMT"+(r>=0?"+":"")+ho(s,1,o);case li.Long:return"GMT"+(r>=0?"+":"")+ho(s,2,o)+":"+ho(Math.abs(r%60),2,o);case li.Extended:return 0===i?"Z":(r>=0?"+":"")+ho(s,2,o)+":"+ho(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${n}"`)}}}function pT(n){return Dp(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function Kv(n,t=!1){return function(e,i){let r;if(t){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=pT(e),s=function aH(n){const t=Dp(n,0,1).getDay();return Dp(n,0,1+(t<=4?4:11)-t)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return ho(r,n,Nr(i,mt.MinusSign))}}function xp(n,t=!1){return function(e,i){return ho(pT(e).getFullYear(),n,Nr(i,mt.MinusSign),t)}}const Yv={};function fT(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function mT(n){return n instanceof Date&&!isNaN(n.valueOf())}function yT(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let Fa=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(xu(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${yn(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(p(us),p(Vu),p(Je),p(oo))},n.\u0275dir=he({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class SH{constructor(t,e,i,r){this.$implicit=t,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 ci=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}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 SH(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),wT(a,r)}});for(let r=0,o=i.length;r{wT(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(bn),p(us))},n.\u0275dir=he({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function wT(n,t){n.context.$implicit=t.item}let _n=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new TH,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){ET("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){ET("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 n.\u0275fac=function(e){return new(e||n)(p(En),p(bn))},n.\u0275dir=he({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class TH{constructor(){this.$implicit=null,this.ngIf=null}}function ET(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${yn(t)}'.`)}class ty{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let sc=(()=>{class n{constructor(){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||(this._defaultViews=[]),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&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new ty(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(bn),p(sc,9))},n.\u0275dir=he({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),DT=(()=>{class n{constructor(e,i,r){r._addDefault(new ty(e,i))}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(bn),p(sc,9))},n.\u0275dir=he({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),Qs=(()=>{class n{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:nr.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 n.\u0275fac=function(e){return new(e||n)(p(Je),p(Vu),p(oo))},n.\u0275dir=he({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),Qi=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(p(En))},n.\u0275dir=he({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[kn]}),n})(),Xi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})();const TT="browser";class IT{}class ry extends class tV extends class L4{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function P4(n){yp||(yp=n)}(new ry)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function nV(){return qu=qu||document.querySelector("base"),qu?qu.getAttribute("href"):null}();return null==e?null:function iV(n){kp=kp||document.createElement("a"),kp.setAttribute("href",n);const t=kp.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){qu=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return yT(document.cookie,t)}}let kp,qu=null;const MT=new pe("TRANSITION_ID"),oV=[{provide:MA,useFactory:function rV(n,t,e){return()=>{e.get(pp).donePromise.then(()=>{const i=No(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const Rp=new pe("EventManagerPlugins");let Op=(()=>{class n{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 n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),zu=(()=>{class n extends RT{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(OT),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(OT))}}return n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();function OT(n){No().remove(n)}const oy={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/"},sy=/%COMP%/g;function Pp(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Lp=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ay(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Jr.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new pV(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Jr.ShadowDom:return new fV(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Pp(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(T(Op),T(zu),T(oc))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class ay{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(oy[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(BT(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(BT(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=oy[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=oy[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(nr.DashCase|nr.Important)?t.style.setProperty(e,i,r&nr.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&nr.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,NT(i)):this.eventManager.addEventListener(t,e,NT(i))}}function BT(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class pV extends ay{constructor(t,e,i,r){super(t),this.component=i;const o=Pp(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function uV(n){return"_ngcontent-%COMP%".replace(sy,n)}(r+"-"+i.id),this.hostAttr=function dV(n){return"_nghost-%COMP%".replace(sy,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class fV extends ay{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Pp(r.id,r.styles,[]);for(let s=0;s{class n extends kT{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 n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const HT=["alt","control","meta","shift"],_V={"\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"},VT={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},vV={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let yV=(()=>{class n extends kT{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>No().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=n._normalizeKey(i.pop());let s="";if(HT.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const a={};return a.domEventName=r,a.fullKey=s,a}static getEventFullKey(e){let i="",r=function bV(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&VT.hasOwnProperty(t)&&(t=VT[t]))}return _V[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),HT.forEach(o=>{o!=r&&(0,vV[o])(e)&&(i+=o+".")}),i+=r,i}static eventCallback(e,i,r){return o=>{n.getEventFullKey(o)===e&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const jT=[{provide:fp,useValue:TT},{provide:RA,useValue:function CV(){ry.makeCurrent()},multi:!0},{provide:ht,useFactory:function EV(){return function VP(n){Yg=n}(document),document},deps:[]}],UT=jA(k4,"browser",jT),qT=new pe(""),zT=[{provide:mp,useClass:class sV{addToWindow(t){gn.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},gn.getAllAngularTestabilities=()=>t.getAllTestabilities(),gn.getAllAngularRootElements=()=>t.getAllRootElements(),gn.frameworkStabilizers||(gn.frameworkStabilizers=[]),gn.frameworkStabilizers.push(i=>{const r=gn.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(t,e,i){return null==e?null:t.getTestability(e)??(i?No().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:BA,useClass:Nv,deps:[nt,Fv,mp]},{provide:Nv,useClass:Nv,deps:[nt,Fv,mp]}],GT=[{provide:s_,useValue:"root"},{provide:Gs,useFactory:function wV(){return new Gs},deps:[]},{provide:Rp,useClass:mV,multi:!0,deps:[ht,nt,fp]},{provide:Rp,useClass:yV,multi:!0,deps:[ht]},{provide:Lp,useClass:Lp,deps:[Op,zu,oc]},{provide:Cu,useExisting:Lp},{provide:RT,useExisting:zu},{provide:zu,useClass:zu,deps:[ht]},{provide:Op,useClass:Op,deps:[Rp,nt]},{provide:IT,useClass:aV,deps:[]},[]];let WT=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:oc,useValue:e.appId},{provide:MT,useExisting:oc},oV]}}}return n.\u0275fac=function(e){return new(e||n)(T(qT,12))},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[...GT,...zT],imports:[Xi,R4]}),n})();typeof window<"u"&&window;let Ba=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:function(e){let i=null;return i=e?new(e||n):T(QT),i},providedIn:"root"}),n})(),QT=(()=>{class n extends Ba{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case on.NONE:return i;case on.HTML:return To(i,"HTML")?Er(i):N0(this._doc,String(i)).toString();case on.STYLE:return To(i,"Style")?Er(i):i;case on.SCRIPT:if(To(i,"Script"))return Er(i);throw new Error("unsafe value used in a script context");case on.URL:return To(i,"URL")?Er(i):vu(String(i));case on.RESOURCE_URL:if(To(i,"ResourceURL"))return Er(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function YP(n){return new qP(n)}(e)}bypassSecurityTrustStyle(e){return function QP(n){return new zP(n)}(e)}bypassSecurityTrustScript(e){return function XP(n){return new GP(n)}(e)}bypassSecurityTrustUrl(e){return function ZP(n){return new WP(n)}(e)}bypassSecurityTrustResourceUrl(e){return function JP(n){return new $P(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({token:n,factory:function(e){let i=null;return i=e?new e:function OV(n){return new QT(n.get(ht))}(T(Rn)),i},providedIn:"root"}),n})();function uy(...n){if(1===n.length){const t=n[0];if(F(t))return Np(t,null);if(M(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Np(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return Np(n=1===n.length&&F(n[0])?n[0]:n,null).pipe(ue(e=>t(...e)))}return Np(n,null)}function Np(n,t){return new b(e=>{const i=n.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(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let XT=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(p(oo),p(Je))},n.\u0275dir=he({type:n}),n})(),Ha=(()=>{class n extends XT{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,features:[De]}),n})();const rr=new pe("NgValueAccessor"),LV={provide:rr,useExisting:Zt(()=>fo),multi:!0},FV=new pe("CompositionEventMode");let fo=(()=>{class n extends XT{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function NV(){const n=No()?No().getUserAgent():"";return/android (\d+)/.test(n.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 n.\u0275fac=function(e){return new(e||n)(p(oo),p(Je),p(FV,8))},n.\u0275dir=he({type:n,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&&X("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:[rt([LV]),De]}),n})();function Zs(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function JT(n){return null!=n&&"number"==typeof n.length}const fi=new pe("NgValidators"),Js=new pe("NgAsyncValidators"),HV=/^(?=.{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 dy{static min(t){return function ex(n){return t=>{if(Zs(t.value)||Zs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(Zs(t.value)||Zs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function nx(n){return Zs(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function ix(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function rx(n){return Zs(n.value)||HV.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function ox(n){return t=>Zs(t.value)||!JT(t.value)?null:t.value.lengthJT(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function ax(n){if(!n)return Fp;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Zs(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return px(t)}static composeAsync(t){return fx(t)}}function Fp(n){return null}function lx(n){return null!=n}function cx(n){return Mu(n)?Et(n):n}function ux(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function dx(n,t){return t.map(e=>e(n))}function hx(n){return n.map(t=>function VV(n){return!n.validate}(t)?t:e=>t.validate(e))}function px(n){if(!n)return null;const t=n.filter(lx);return 0==t.length?null:function(e){return ux(dx(e,t))}}function hy(n){return null!=n?px(hx(n)):null}function fx(n){if(!n)return null;const t=n.filter(lx);return 0==t.length?null:function(e){return uy(dx(e,t).map(cx)).pipe(ue(ux))}}function py(n){return null!=n?fx(hx(n)):null}function mx(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function gx(n){return n._rawValidators}function _x(n){return n._rawAsyncValidators}function fy(n){return n?Array.isArray(n)?n:[n]:[]}function Bp(n,t){return Array.isArray(n)?n.includes(t):n===t}function vx(n,t){const e=fy(t);return fy(n).forEach(r=>{Bp(e,r)||e.push(r)}),e}function yx(n,t){return fy(t).filter(e=>!Bp(n,e))}class bx{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(t){this._rawValidators=t||[],this._composedValidatorFn=hy(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=py(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Zi extends bx{get formDirective(){return null}get path(){return null}}class mo extends bx{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let Fo=(()=>{class n extends class Cx{constructor(t){this._cd=t}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}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(p(mo,2))},n.\u0275dir=he({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&wt("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:[De]}),n})();const Gu="VALID",Vp="INVALID",ac="PENDING",Wu="DISABLED";function vy(n){return(jp(n)?n.validators:n)||null}function Ex(n){return Array.isArray(n)?hy(n):n||null}function yy(n,t){return(jp(t)?t.asyncValidators:n)||null}function Dx(n){return Array.isArray(n)?py(n):n||null}function jp(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class Tx{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Ex(this._rawValidators),this._composedAsyncValidatorFn=Dx(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Gu}get invalid(){return this.status===Vp}get pending(){return this.status==ac}get disabled(){return this.status===Wu}get enabled(){return this.status!==Wu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Ex(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Dx(t)}addValidators(t){this.setValidators(vx(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(vx(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(yx(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(yx(t,this._rawAsyncValidators))}hasValidator(t){return Bp(this._rawValidators,t)}hasAsyncValidator(t){return Bp(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ac,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Wu,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Gu,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Gu||this.status===ac)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Wu:Gu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ac,this._hasOwnPendingAsyncValidator=!0;const e=cx(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Be,this.statusChanges=new Be}_calculateStatus(){return this._allControlsDisabled()?Wu:this.errors?Vp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ac)?ac:this._anyControlsHaveStatus(Vp)?Vp:Gu}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){jp(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class by extends Tx{constructor(t,e,i){super(vy(e),yy(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function Ax(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new Se(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function Sx(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new Se(1e3,"");if(!i[e])throw new Se(1001,"")})(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}function $u(n,t){Cy(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function QV(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&xx(n,t)})}(n,t),function ZV(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function XV(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&xx(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function YV(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function qp(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Gp(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function zp(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Cy(n,t){const e=gx(n);null!==t.validator?n.setValidators(mx(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=_x(n);null!==t.asyncValidator?n.setAsyncValidators(mx(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();zp(t._rawValidators,r),zp(t._rawAsyncValidators,r)}function Gp(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=gx(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=_x(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return zp(t._rawValidators,i),zp(t._rawAsyncValidators,i),e}function xx(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Ix(n,t){Cy(n,t)}function wy(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function kx(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Ey(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===fo?e=o:function tj(n){return Object.getPrototypeOf(n.constructor)===Ha}(o)?i=o:r=o}),r||i||e||null}const ij={provide:Zi,useExisting:Zt(()=>lc)},Ku=(()=>Promise.resolve(null))();let lc=(()=>{class n extends Zi{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Be,this.form=new by({},hy(e),py(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ku.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),$u(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ku.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ku.then(()=>{const i=this._findContainer(e.path),r=new by({});Ix(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ku.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Ku.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,kx(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(p(fi,10),p(Js,10))},n.\u0275dir=he({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&X("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rt([ij]),De]}),n})();function Rx(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function Ox(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Yu=class extends Tx{constructor(t=null,e,i){super(vy(e),yy(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),jp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Ox(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Rx(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Rx(this._onDisabledChange,t)}_forEachChild(t){}_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(t){Ox(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},sj={provide:mo,useExisting:Zt(()=>ps)},Nx=(()=>Promise.resolve(null))();let ps=(()=>{class n extends mo{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new Yu,this._registered=!1,this.update=new Be,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Ey(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),wy(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){$u(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Nx.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function ds(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);Nx.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Up(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(p(Zi,9),p(fi,10),p(Js,10),p(rr,10),p(Bt,8))},n.\u0275dir=he({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[rt([sj]),De,kn]}),n})(),Bx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})();const Dy=new pe("NgModelWithFormControlWarning"),hj={provide:mo,useExisting:Zt(()=>Wp)};let Wp=(()=>{class n extends mo{constructor(e,i,r,o){super(),this._ngModelWarningConfig=o,this.update=new Be,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Ey(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&qp(i,this,!1),$u(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}wy(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&qp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(p(fi,10),p(Js,10),p(rr,10),p(Dy,8))},n.\u0275dir=he({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[rt([hj]),De,kn]}),n})();const pj={provide:Zi,useExisting:Zt(()=>cc)};let cc=(()=>{class n extends Zi{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Be,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&&(Gp(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 $u(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){qp(e.control||null,e,!1),function nj(n,t){const e=n.indexOf(t);e>-1&&n.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,kx(this.form,this.directives),this.ngSubmit.emit(e),!1}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&&(qp(i||null,e),(n=>n instanceof Yu)(r)&&($u(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);Ix(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function JV(n,t){return Gp(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Cy(this.form,this),this._oldForm&&Gp(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(p(fi,10),p(Js,10))},n.\u0275dir=he({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&X("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rt([pj]),De,kn]}),n})(),Jx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Bx]}),n})(),kj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Jx]}),n})(),Rj=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Dy,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Jx]}),n})();function Ve(...n){let t=n[n.length-1];return de(t)?(n.pop(),hi(n,t)):ug(n)}function Bo(n,t){return Vi(n,t,1)}function Sn(n,t){return function(i){return i.lift(new Pj(n,t))}}class Pj{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Lj(t,this.predicate,this.thisArg))}}class Lj extends D{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class e2{}class t2{}class fs{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.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(t).forEach(e=>{let i=t[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(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof fs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new fs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof fs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.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(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Nj{encodeKey(t){return n2(t)}encodeValue(t){return n2(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const Bj=/%(\d[a-f0-9])/gi,Hj={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function n2(n){return encodeURIComponent(n).replace(Bj,(t,e)=>Hj[e]??t)}function Kp(n){return`${n}`}class Yt{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Nj,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Fj(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(Kp):[Kp(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[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(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Yt({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Kp(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Kp(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class Vj{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function r2(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function o2(n){return typeof Blob<"u"&&n instanceof Blob}function s2(n){return typeof FormData<"u"&&n instanceof FormData}class Qu{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function jj(n){switch(n){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 fs),this.context||(this.context=new Vj),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,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new Qu(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var ti=(()=>((ti=ti||{})[ti.Sent=0]="Sent",ti[ti.UploadProgress=1]="UploadProgress",ti[ti.ResponseHeader=2]="ResponseHeader",ti[ti.DownloadProgress=3]="DownloadProgress",ti[ti.Response=4]="Response",ti[ti.User=5]="User",ti))();class My{constructor(t,e=200,i="OK"){this.headers=t.headers||new fs,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class ky extends My{constructor(t={}){super(t),this.type=ti.ResponseHeader}clone(t={}){return new ky({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Yp extends My{constructor(t={}){super(t),this.type=ti.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Yp({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class a2 extends My{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Ry(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Xu=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Qu)o=e;else{let l,c;l=r.headers instanceof fs?r.headers:new fs(r.headers),r.params&&(c=r.params instanceof Yt?r.params:new Yt({fromObject:r.params})),o=new Qu(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=Ve(o).pipe(Bo(l=>this.handler.handle(l)));if(e instanceof Qu||"events"===r.observe)return s;const a=s.pipe(Sn(l=>l instanceof Yp));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ue(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(ue(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(ue(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ue(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 Yt).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,Ry(r,i))}post(e,i,r={}){return this.request("POST",e,Ry(r,i))}put(e,i,r={}){return this.request("PUT",e,Ry(r,i))}}return n.\u0275fac=function(e){return new(e||n)(T(e2))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class l2{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Oy=new pe("HTTP_INTERCEPTORS");let qj=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const zj=/^\)\]\}',?\n/;let c2=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,_)=>r.setRequestHeader(f,_.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",_=new fs(r.getAllResponseHeaders()),S=function Gj(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new ky({headers:_,status:r.status,statusText:f,url:S}),s},l=()=>{let{headers:f,status:_,statusText:S,url:U}=a(),Z=null;204!==_&&(Z=typeof r.response>"u"?r.responseText:r.response),0===_&&(_=Z?200:0);let ve=_>=200&&_<300;if("json"===e.responseType&&"string"==typeof Z){const ee=Z;Z=Z.replace(zj,"");try{Z=""!==Z?JSON.parse(Z):null}catch(Te){Z=ee,ve&&(ve=!1,Z={error:Te,text:Z})}}ve?(i.next(new Yp({body:Z,headers:f,status:_,statusText:S,url:U||void 0})),i.complete()):i.error(new a2({error:Z,headers:f,status:_,statusText:S,url:U||void 0}))},c=f=>{const{url:_}=a(),S=new a2({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:_||void 0});i.error(S)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let _={type:ti.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(_.total=f.total),"text"===e.responseType&&!!r.responseText&&(_.partialText=r.responseText),i.next(_)},h=f=>{let _={type:ti.UploadProgress,loaded:f.loaded};f.lengthComputable&&(_.total=f.total),i.next(_)};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:ti.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 n.\u0275fac=function(e){return new(e||n)(T(IT))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const Py=new pe("XSRF_COOKIE_NAME"),Ly=new pe("XSRF_HEADER_NAME");class u2{}let Wj=(()=>{class n{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=yT(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(fp),T(Py))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),Ny=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(T(u2),T(Ly))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),$j=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(Oy,[]);this.chain=i.reduceRight((r,o)=>new l2(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(T(t2),T(Rn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),Kj=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Ny,useClass:qj}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Py,useValue:e.cookieName}:[],e.headerName?{provide:Ly,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[Ny,{provide:Oy,useExisting:Ny,multi:!0},{provide:u2,useClass:Wj},{provide:Py,useValue:"XSRF-TOKEN"},{provide:Ly,useValue:"X-XSRF-TOKEN"}]}),n})(),Yj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[Xu,{provide:e2,useClass:$j},c2,{provide:t2,useExisting:c2}],imports:[Kj.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})(),Qj=(()=>{class n{constructor(){}intercept(e,i){if(e.params.has("noCache")){const r=e.clone({setHeaders:{"Cache-Control":"no-cache, no-store, must-revalidate"},params:e.params.delete("noCache")});return i.handle(r)}return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();function d2(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function Ee(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){d2(o,i,r,s,a,"next",l)}function a(l){d2(o,i,r,s,a,"throw",l)}s(void 0)})}}let Br=(()=>{class n{constructor(){}getValue(e){return localStorage.getItem(e.toString())}setValue(e,i){localStorage.setItem(e.toString(),i)}removeValue(e){localStorage.removeItem(e.toString())}clear(){Object.keys(tn).forEach(i=>{i.toString().includes("PERSISTENT")||localStorage.removeItem(i.toString())})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var tn=(()=>(function(n){n.primaryTarget="primaryTarget",n.selectedProjects="selectedProjects",n.officeDB="officeDB",n.sendInProcess="sendInProcess",n.contactDB="contactDB PERSISTENT",n.taskpaneActive="taskpaneActive",n.documentedItemId="documentedItemId PERSISTENT",n.asyncMessage="asyncMessage PERSISTENT",n.selectedEmail="selectedEmail",n.appointmentIsNew="appointmentIsNew"}(tn||(tn={})),tn))();class Ei{constructor(t,e){this.component=t,this.data=e}}function ms(n){return!!n&&(n instanceof b||"function"==typeof n.lift&&"function"==typeof n.subscribe)}function uc(...n){return function Xj(){return dh(1)}()(Ve(...n))}const gs=new b(n=>n.complete());function Qp(n){return n?function Zj(n){return new b(t=>n.schedule(()=>t.complete()))}(n):gs}function ea(n){return new b(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?Et(e):Qp()).subscribe(t)})}const h2=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function dn(n){return t=>0===n?Qp():t.lift(new Jj(n))}class Jj{constructor(t){if(this.total=t,this.total<0)throw new h2}call(t,e){return e.subscribe(new eU(t,this.total))}}class eU extends D{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}class tU extends w{constructor(t,e){super()}schedule(t,e=0){return this}}class Xp extends tU{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;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(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=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!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let p2=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class go extends p2{constructor(t,e=p2.now){super(t,()=>go.delegate&&go.delegate!==this?go.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return go.delegate&&go.delegate!==this?go.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const rU=new class iU extends go{}(class nU extends Xp{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}});function ja(n,t){return new b(t?e=>t.schedule(oU,0,{error:n,subscriber:e}):e=>e.error(n))}function oU({error:n,subscriber:t}){t.error(n)}class or{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Ve(this.value);case"E":return ja(this.error);case"C":return Qp()}throw new Error("unexpected notification kind value")}static createNext(t){return typeof t<"u"?new or("N",t):or.undefinedValueNotification}static createError(t){return new or("E",void 0,t)}static createComplete(){return or.completeNotification}}or.completeNotification=new or("C"),or.undefinedValueNotification=new or("N",void 0);class Zp extends D{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Zp.dispatch,this.delay,new aU(t,this.destination)))}_next(t){this.scheduleMessage(or.createNext(t))}_error(t){this.scheduleMessage(or.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(or.createComplete()),this.unsubscribe()}}class aU{constructor(t,e){this.notification=t,this.destination=e}}class f2 extends L{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new lU(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;let s;if(this.closed)throw new ie;if(this.isStopped||this.hasError?s=w.EMPTY:(this.observers.push(t),s=new _e(this,t)),r&&t.add(t=new Zp(t,r)),e)for(let a=0;ae&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class lU{constructor(t,e){this.time=t,this.value=e}}function m2(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function cU({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,s,o=0,a=!1,l=!1;return function(u){let d;o++,!r||a?(a=!1,r=new f2(n,t,i),d=r.subscribe(this),s=u.subscribe({next(h){r.next(h)},error(h){a=!0,r.error(h)},complete(){l=!0,s=void 0,r.complete()}}),l&&(s=void 0)):d=r.subscribe(this),this.add(()=>{o--,d.unsubscribe(),d=void 0,s&&!l&&e&&0===o&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}function Kn(n,t){return"function"==typeof t?e=>e.pipe(Kn((i,r)=>Et(n(i,r)).pipe(ue((o,s)=>t(i,o,r,s))))):e=>e.lift(new uU(n))}class uU{constructor(t){this.project=t}call(t,e){return e.subscribe(new dU(t,this.project))}}class dU extends Zc{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Do(this),r=this.destination;r.add(i),this.innerSubscription=Jc(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}class Zu{}let g2=(()=>{class n extends Zu{getTranslation(e){return Ve({})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class Fy{}let _2=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();function Ju(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!=n&&t!=t)return!0;let r,o,s,e=typeof n;if(e==typeof t&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(t))return!1;for(o in s=Object.create(null),n){if(!Ju(n[o],t[o]))return!1;s[o]=!0}for(o in t)if(!(o in s)&&typeof t[o]<"u")return!1;return!0}if(!Array.isArray(t))return!1;if((r=n.length)==t.length){for(o=0;o{By(t[i])?i in n?e[i]=v2(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}class Jp{}let y2=(()=>{class n extends Jp{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,i){let r;return r="string"==typeof e?this.interpolateString(e,i):"function"==typeof e?this.interpolateFunction(e,i):e,r}getValue(e,i){let r="string"==typeof i?i.split("."):[i];i="";do{i+=r.shift(),!Sr(e)||!Sr(e[i])||"object"!=typeof e[i]&&r.length?r.length?i+=".":e=void 0:(e=e[i],i="")}while(r.length);return e}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let s=this.getValue(i,o);return Sr(s)?s:r}):e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class ef{}let b2=(()=>{class n extends ef{compile(e,i){return e}compileTranslations(e,i){return e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class C2{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Be,this.onLangChange=new Be,this.onDefaultLangChange=new Be}}const Hy=new pe("USE_STORE"),Vy=new pe("USE_DEFAULT_LANG"),jy=new pe("DEFAULT_LANGUAGE"),Uy=new pe("USE_EXTEND");let Xt=(()=>{class n{constructor(e,i,r,o,s,a=!0,l=!1,c=!1,u){this.store=e,this.currentLoader=i,this.compiler=r,this.parser=o,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=l,this.extend=c,this.pending=!1,this._onTranslationChange=new Be,this._onLangChange=new Be,this._onDefaultLangChange=new Be,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let i=this.retrieveTranslations(e);typeof i<"u"?(null==this.defaultLang&&(this.defaultLang=e),i.pipe(dn(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Ve(this.translations[e]);let i=this.retrieveTranslations(e);return typeof i<"u"?(this.currentLang||(this.currentLang=e),i.pipe(dn(1)).subscribe(r=>{this.changeLang(e)}),i):(this.changeLang(e),Ve(this.translations[e]))}retrieveTranslations(e){let i;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),i=this._translationRequests[e]),i}getTranslation(e){this.pending=!0;const i=this.currentLoader.getTranslation(e).pipe(m2(1),dn(1));return this.loadingTranslations=i.pipe(ue(r=>this.compiler.compileTranslations(r,e)),m2(1),dn(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){i=this.compiler.compileTranslations(i,e),this.translations[e]=(r||this.extend)&&this.translations[e]?v2(this.translations[e],i):i,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(i=>{-1===this.langs.indexOf(i)&&this.langs.push(i)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,i,r){let o;if(i instanceof Array){let s={},a=!1;for(let l of i)s[l]=this.getParsedResult(e,l,r),ms(s[l])&&(a=!0);return a?uy(i.map(c=>ms(s[c])?s[c]:Ve(s[c]))).pipe(ue(c=>{let u={};return c.forEach((d,h)=>{u[i[h]]=d}),u})):s}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,i),r)),typeof o>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],i),r)),typeof o>"u"){let s={key:i,translateService:this};typeof r<"u"&&(s.interpolateParams=r),o=this.missingTranslationHandler.handle(s)}return typeof o<"u"?o:i}get(e,i){if(!Sr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Bo(r=>ms(r=this.getParsedResult(r,e,i))?r:Ve(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,i);return ms(r)?r:Ve(r)}}getStreamOnTranslationChange(e,i){if(!Sr(e)||!e.length)throw new Error('Parameter "key" required');return uc(ea(()=>this.get(e,i)),this.onTranslationChange.pipe(Kn(r=>{const o=this.getParsedResult(r.translations,e,i);return"function"==typeof o.subscribe?o:Ve(o)})))}stream(e,i){if(!Sr(e)||!e.length)throw new Error('Parameter "key" required');return uc(ea(()=>this.get(e,i)),this.onLangChange.pipe(Kn(r=>{const o=this.getParsedResult(r.translations,e,i);return ms(o)?o:Ve(o)})))}instant(e,i){if(!Sr(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,i);if(ms(r)){if(e instanceof Array){let o={};return e.forEach((s,a)=>{o[e[a]]=e[a]}),o}return e}return r}set(e,i,r=this.currentLang){this.translations[r][e]=this.compiler.compile(i,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(T(C2),T(Zu),T(ef),T(Jp),T(Fy),T(Vy),T(Hy),T(Uy),T(jy))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),Pi=(()=>{class n{constructor(e,i){this.translate=e,this._ref=i,this.value=""}updateValue(e,i,r){let o=s=>{this.value=void 0!==s?s:e,this.lastKey=e,this._ref.markForCheck()};if(r){let s=this.translate.getParsedResult(r,e,i);ms(s.subscribe)?s.subscribe(o):o(s)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Ju(e,this.lastKey)&&Ju(i,this.lastParams))return this.value;let r;if(Sr(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){let o=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(o)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else"object"==typeof i[0]&&!Array.isArray(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(p(Xt,16),p(Bt,16))},n.\u0275pipe=ji({name:"translate",type:n,pure:!1}),n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),hU=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:Zu,useClass:g2},e.compiler||{provide:ef,useClass:b2},e.parser||{provide:Jp,useClass:y2},e.missingTranslationHandler||{provide:Fy,useClass:_2},C2,{provide:Hy,useValue:e.isolate},{provide:Vy,useValue:e.useDefaultLang},{provide:Uy,useValue:e.extend},{provide:jy,useValue:e.defaultLanguage},Xt]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:Zu,useClass:g2},e.compiler||{provide:ef,useClass:b2},e.parser||{provide:Jp,useClass:y2},e.missingTranslationHandler||{provide:Fy,useClass:_2},{provide:Hy,useValue:e.isolate},{provide:Vy,useValue:e.useDefaultLang},{provide:Uy,useValue:e.extend},{provide:jy,useValue:e.defaultLanguage},Xt]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})(),Hr=(()=>{class n{constructor(e){this.translate=e,this.messageEvent=new Be,this.nextModal=null,this.previousModal=null,e.setDefaultLang("all"),e.use("all")}ngOnInit(){this.next=this.data.nextType}ngAfterViewInit(){this.messageEvent.emit(this.modalTemp),this.modalHeader=this.data.modalHeader,this.modalFooter=this.data.modalFooter}getTemplate(){return this.modalTemp}extractDBFromPointer(e){return e.substring(e.lastIndexOf("|")+1)}confirmAction(){}cancelAction(){this.data.closeAllModal()}closeAll(){this.data.closeAllModal()}get next(){return this.nextModal}set next(e){this.nextModal=e}get previous(){return this.previousModal}set previous(e){this.previousModal=e}set title(e){this.modalTitle=e}openAnotherModal(e,i){return null!=e?this.modalMain.loadComponent(e,i):null}}return n.\u0275fac=function(e){return new(e||n)(p(Xt))},n.\u0275dir=he({type:n,inputs:{data:"data",modalMain:"modalMain"},outputs:{messageEvent:"messageEvent"}}),n})();const pU=["address","path","index","lc","localLC","modalDesign","init","webInt","webIntModal","login","mailAddr","addressChange","graphRequired","graphLoaded","attachmentsLoaded","deleteAttachments","documentIconReady","connector","platform","destinationChanged","documentDestinationCheckChanged","itemRecognized","updateBM4OData"];let qy,Ji=(()=>{class n{constructor(){this.waitListRecord={},this.waitListWithFunction={},pU.forEach(e=>{this.waitListRecord[e]=[],this.waitListWithFunction[e]=[]})}addToWaitList(e,i){this.waitListRecord[e].push(i)}addToWaitListFunc(e,i,r){this.waitListWithFunction[e].push({subscriber:i,function:r})}accessWaitList(e){return this.waitListRecord[e]}clearWaitList(e){this.waitListRecord[e].length=0}resolveFuncWaitList(e){for(const i of this.waitListWithFunction[e])i.function(i.subscriber);this.waitListWithFunction[e].length=0}notifyWaitList(e,i,r){for(const o of this.accessWaitList(e))o.next(i),r&&o.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pt=(()=>{class n{constructor(e){this.waitListService=e,this.loggedIn=!1,this.curSystem="gi";const i=window.localStorage.getItem("webInt");null!==i&&""!==i&&(this.curSystem="start"),this.currentWebInt="",null!=window.localStorage.getItem("webInt")&&(this.currentWebInt=window.localStorage.getItem("webInt"),this.currentWebInt=encodeURI(this.currentWebInt),this.setSystemFromURL(this.currentWebInt)),this.mailAddr="",this.mailUnid="",this.subject="",this.resetMailAddr="",this.cc=[],this.to=[],this.from={},this.mailAddrCount=0,this.currentWebInt&&(this.webIntUrl=new URL(this.currentWebInt)),this.lcs={},this.lcsLocal={},this.selectedContacts=null,this.modalSessionCache=!1,this.rippleColorRGBA="rgba(154, 169, 255, 0.1)",this.createAddressOpen=!1,this.ownMail="",this.showMailBody=!0,this.connectorType=null,this.allowActions=!1,this.allowCreate=!1,this.attachmentsLoaded=!0,this.hideBackground=!1,this.useClient=!1,this.redirect=!1,this.redirect=!!new URLSearchParams(window.location.search).has("redirect"),this.optionsObj={method:"GET",mode:"cors",cache:"no-cache",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},redirect:"follow",referrerPolicy:"no-referrer"}}setSystemFromURL(e){return e.includes(".nsf")?(this.system="gi","gi"):(this.system="ba","ba")}get isRedirectPage(){return this.redirect}set hideForLogin(e){this.hideBackground=e}get hideForLogin(){return this.hideBackground}set isClient(e){this.useClient=e}get isClient(){return this.useClient}set attachmentsReady(e){this.attachmentsLoaded=e,this.waitListService.notifyWaitList("attachmentsLoaded",e,!0)}get attachmentsReady(){return this.attachmentsLoaded}set system(e){this.curSystem=e}get system(){return this.curSystem}set loginOpen(e){this.loginWindowOpen=e}get loginOpen(){return this.loginWindowOpen}set curOWAMessageID(e){this.messageID=e}get curOWAMessageID(){return this.messageID}set actionsAllowed(e){this.allowActions=e}get actionsAllowed(){return this.allowActions}set createAllowed(e){this.allowCreate=e}get createAllowed(){return this.allowCreate}set openMail(e){this.openEMail=e}get openMail(){return this.openEMail}set deleteAttachments(e){this.waitListService.notifyWaitList("deleteAttachments",e),this.deleteAttach=e}get deleteAttachments(){return this.deleteAttach}set curConnectorType(e){this.connectorType=e}get curConnectorType(){return this.connectorType}set curConnector(e){this.connector=e,this.waitListService.notifyWaitList("connector",!0)}get curConnector(){return this.connector}get isCreateBlockOpen(){return this.createAddressOpen}get rippleColor(){return this.rippleColorRGBA}set webInt(e){this.currentWebInt=e,this.webIntUrl=new URL(this.currentWebInt),null!=this.currentWebInt&&""!==this.currentWebInt&&this.notifyWaitList()}get webInt(){return this.currentWebInt}set displayMailBody(e){this.showMailBody=e}get displayMailBody(){return this.showMailBody}set curMailAddr(e){""===this.resetMailAddr&&(this.resetMailAddr=e),this.mailAddr=e,this.waitListService.resolveFuncWaitList("mailAddr")}get curMailAddr(){return this.mailAddr}get startMailAddr(){return this.resetMailAddr}set curSubject(e){this.subject=e}get curSubject(){return this.subject}set curCC(e){this.cc=e}get curCC(){return this.cc}set curTo(e){this.to=e}get curTo(){return this.to}set curFrom(e){this.from=e}get curFrom(){return this.from}set curMailAddrCount(e){this.mailAddrCount=e}get curMailAddrCount(){return this.mailAddrCount}set curMailUnid(e){this.mailUnid=e}get curMailUnid(){return this.mailUnid}get origin(){return this.webIntUrl.origin}get options(){return this.optionsObj}get languageConf(){return this.lcs}set languageConf(e){this.lcs=e}set ownMailAddr(e){this.ownMail=e}set languageConfLocal(e){this.lcsLocal=e}get languageConfLocal(){return this.lcsLocal}get currentContactsDB(){return this.selectedContacts}set currentContactsDB(e){this.selectedContacts=e}get modalCacheFlag(){return this.modalSessionCache}set modalCacheFlag(e){this.modalSessionCache=e}languageEntry(e){return this.lcs[e]}changeGlobalOptions(e){return this.changeOptionsObj(e,this.optionsObj)}changeOwnOptions(e){const i={};return Object.assign(i,this.optionsObj),this.changeOptionsObj(e,i)}objectWithParams(e){let i={};return i=Object.assign(i,this.options),i.params=e,i}clearTemps(){this.clearModalTemps()}clearModalTemps(){this.currentContactsDB=null}createAddressToggle(){this.createAddressOpen=!this.createAddressOpen}waitForWebInt(e){this.waitListService.addToWaitList("webInt",e)}notifyWaitList(){this.waitListService.notifyWaitList("webInt",this.webInt,!0),this.waitListService.clearWaitList("webInt")}changeOptionsObj(e,i){return new Map(Object.entries(e)).forEach((o,s)=>{i[s]=o}),i}showSpinner(){document.getElementById("loadingSpinner").style.display="block"}hideSpinner(){document.getElementById("loadingSpinner").style.display="none"}numericBackendVersion(){if("ba"===this.curSystem){if(!this.backendVersion)return 8e4;let e=this.backendVersion.split("."),i="";return e.forEach(r=>{i+=r.padStart(2,"0")}),Number.parseInt(i,10)}return 8}}return n.\u0275fac=function(e){return new(e||n)(T(Ji))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();try{qy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{qy=!1}let dc,Pn=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function JH(n){return n===TT}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!qy)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(T(fp))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const w2=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function E2(){if(dc)return dc;if("object"!=typeof document||!document)return dc=new Set(w2),dc;let n=document.createElement("input");return dc=new Set(w2.filter(t=>(n.setAttribute("type",t),n.type===t))),dc}let ed,Ua,zy;function _s(n){return function fU(){if(null==ed&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ed=!0}))}finally{ed=ed||!1}return ed}()?n:!!n.capture}function mU(){if(null==Ua){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ua=!1,Ua;if("scrollBehavior"in document.documentElement.style)Ua=!0;else{const n=Element.prototype.scrollTo;Ua=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Ua}function nf(n){if(function gU(){if(null==zy){const n=typeof document<"u"?document.head:null;zy=!(!n||!n.createShadowRoot&&!n.attachShadow)}return zy}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Gy(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function Vr(n){return n.composedPath?n.composedPath()[0]:n.target}function Wy(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}class sr extends L{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ie;return this._value}next(t){super.next(this._value=t)}}function Di(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function na(){}function Yn(n,t,e){return function(r){return r.lift(new xU(n,t,e))}}class xU{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new IU(t,this.nextOrObserver,this.error,this.complete))}}class IU extends D{constructor(t,e,i,r){super(t),this._tapNext=na,this._tapError=na,this._tapComplete=na,this._tapError=i||na,this._tapComplete=r||na,le(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||na,this._tapError=e.error||na,this._tapComplete=e.complete||na)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const fc=new go(Xp);function Qy(n,t=fc){return e=>e.lift(new MU(n,t))}class MU{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new kU(t,this.dueTime,this.scheduler))}}class kU extends D{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(RU,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function RU(n){n.debouncedNext()}function Xy(n){return t=>t.lift(new OU(n))}class OU{constructor(t){this.total=t}call(t,e){return e.subscribe(new PU(t,this.total))}}class PU extends D{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function af(n,t){return e=>e.lift(new LU(n,t))}class LU{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new NU(t,this.compare,this.keySelector))}}class NU extends D{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}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(t))}}function Qt(n){return t=>t.lift(new FU(n))}class FU{constructor(t){this.notifier=t}call(t,e){const i=new BU(t),r=Jc(this.notifier,new Do(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class BU extends Zc{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function ct(n){return null!=n&&"false"!=`${n}`}function ys(n,t=0){return function HU(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function lf(n){return Array.isArray(n)?n:[n]}function ni(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Qn(n){return n instanceof Je?n.nativeElement:n}let D2=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jU=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Qn(e);return new b(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new L,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(T(D2))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cf=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Be,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ct(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ys(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Qy(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(jU),p(Je),p(nt))},n.\u0275dir=he({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),td=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[D2]}),n})();class UU extends D{notifyNext(t,e,i,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class qU extends D{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function zU(n,t,e,i,r=new qU(n,e,i)){if(!r.closed)return t instanceof b?t.subscribe(r):qe(t)(r)}const S2={};function Zy(...n){let t,e;return de(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&F(n[0])&&(n=n[0]),ug(n,e).lift(new GU(t))}class GU{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new WU(t,this.resultSelector))}}class WU extends UU{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(S2),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;iuc(n,e,t)):e=>uc(n,e)}const A2=new Set;let mc,$U=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):YU}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function KU(n){if(!A2.has(n))try{mc||(mc=document.createElement("style"),mc.setAttribute("type","text/css"),document.head.appendChild(mc)),mc.sheet&&(mc.sheet.insertRule(`@media ${n} {body{ }}`,0),A2.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(T(Pn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function YU(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let Jy=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new L}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return T2(lf(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Zy(T2(lf(e)).map(s=>this._registerQuery(s).observable));return o=uc(o.pipe(dn(1)),o.pipe(Xy(1),Qy(0))),o.pipe(ue(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new b(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(ii(i),ue(({matches:s})=>({query:e,matches:s})),Qt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(T($U),T(nt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function T2(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function uf(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const I2="cdk-describedby-message",df="cdk-describedby-host";let eb=0,JU=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+eb++,this._document=e,this._id=Ea(oc)+"-"+eb++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=tb(i,r);"string"!=typeof i?(M2(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=tb(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const s=this._messageRegistry.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${df}="${this._id}"]`);for(let i=0;i0!=r.indexOf(I2));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function XU(n,t,e){const i=uf(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(df,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function ZU(n,t,e){const r=uf(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(df)}_isElementDescribedByMessage(e,i){const r=uf(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(Pn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function tb(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function M2(n,t){n.id||(n.id=`${I2}-${t}-${eb++}`)}class k2{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new L,this._typeaheadSubscription=w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new L,this.change=new L,t instanceof Oa&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Yn(e=>this._pressedLetters.push(e)),Qy(t),Sn(()=>this._pressedLetters.length>0),ue(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Di(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Oa?this._items.toArray():this._items}}class R2 extends k2{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class hf extends k2{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let pf=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function t8(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function e8(n){try{return n.frameElement}catch{return null}}(function c8(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===P2(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=P2(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function a8(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function l8(n){return!function i8(n){return function o8(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function n8(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function r8(n){return function s8(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||O2(n))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(T(Pn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function O2(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function P2(n){if(!O2(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class u8{constructor(t,e,i,r,o=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(dn(1)).subscribe(t)}}let nb=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new u8(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(T(pf),T(nt),T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ff(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function mf(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const d8=new pe("cdk-input-modality-detector-options"),h8={ignoreKeys:[18,17,224,91,16]},gc=_s({passive:!0,capture:!0});let p8=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new sr(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Vr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ff(s)?"keyboard":"mouse"),this._mostRecentTarget=Vr(s))},this._onTouchstart=s=>{mf(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Vr(s))},this._options={...h8,...o},this.modalityDetected=this._modality.pipe(Xy(1)),this.modalityChanged=this.modalityDetected.pipe(af()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,gc),r.addEventListener("mousedown",this._onMousedown,gc),r.addEventListener("touchstart",this._onTouchstart,gc)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,gc),document.removeEventListener("mousedown",this._onMousedown,gc),document.removeEventListener("touchstart",this._onTouchstart,gc))}}return n.\u0275fac=function(e){return new(e||n)(T(Pn),T(nt),T(ht),T(d8,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const f8=new pe("liveAnnouncerElement",{providedIn:"root",factory:function m8(){return null}}),g8=new pe("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ib=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o{class n{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new L,this._rootNodeFocusAndBlurListener=a=>{for(let c=Vr(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(e,i=!1){const r=Qn(e);if(!this._platform.isBrowser||1!==r.nodeType)return Ve(null);const o=nf(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new L,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Qn(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=Qn(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Vr(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,gf),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,gf)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Qt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,gf),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,gf),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Be}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(_o))},n.\u0275dir=he({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const N2="cdk-high-contrast-black-on-white",F2="cdk-high-contrast-white-on-black",rb="cdk-high-contrast-active";let B2=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Ea(Jy).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(rb,N2,F2),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(rb,N2):2===i&&e.add(rb,F2)}}}return n.\u0275fac=function(e){return new(e||n)(T(Pn),T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ob=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(T(B2))},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[td]}),n})();function bs(n,t,e,i){return le(e)&&(i=e,e=void 0),i?bs(n,t,e).pipe(ue(r=>F(r)?i(...r):i(r))):new b(r=>{H2(n,t,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function H2(n,t,e,i,r){let o;if(function C8(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(t,e,r),o=()=>s.removeEventListener(t,e,r)}else if(function b8(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(t,e),o=()=>s.off(t,e)}else if(function y8(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(t,e),o=()=>s.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;s0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let D8=1;const S8=Promise.resolve(),_f={};function j2(n){return n in _f&&(delete _f[n],!0)}const U2={setImmediate(n){const t=D8++;return _f[t]=!0,S8.then(()=>j2(t)&&n()),t},clearImmediate(n){j2(n)}},sb=new class T8 extends go{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=U2.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(U2.clearImmediate(e),t.scheduled=void 0)}});class I8{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new M8(t,this.durationSelector))}}class M8 extends Zc{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=Jc(e,new Do(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function ab(n){return!F(n)&&n-parseFloat(n)+1>=0}function q2(n=0,t,e){let i=-1;return ab(t)?i=Number(t)<1?1:Number(t):de(t)&&(e=t),de(e)||(e=fc),new b(r=>{const o=ab(n)?n:+n-e.now();return e.schedule(k8,o,{index:0,period:i,subscriber:r})})}function k8(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function z2(n,t=fc){return function x8(n){return function(e){return e.lift(new I8(n))}}(()=>q2(n,t))}const R8=new pe("cdk-dir-doc",{providedIn:"root",factory:function O8(){return Ea(ht)}}),P8=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let er=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new Be,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function L8(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?P8.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(T(R8,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})(),F8=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new L,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new b(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(z2(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ve()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Sn(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Qn(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>bs(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(T(nt),T(Pn),T(ht,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ho=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new L,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(z2(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(T(Pn),T(nt),T(ht,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_c=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})(),lb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[nd,_c,nd,_c]}),n})();class cb{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class id extends cb{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Cs extends cb{constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class H8 extends cb{constructor(t){super(),this.element=t instanceof Je?t.nativeElement:t}}class vf{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof id?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Cs?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof H8?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class V8 extends vf{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{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(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||Rn.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=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.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=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let j8=(()=>{class n extends Cs{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(En))},n.\u0275dir=he({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[De]}),n})(),Es=(()=>{class n extends vf{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Be,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(p(ro),p(En),p(ht))},n.\u0275dir=he({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[De]}),n})(),za=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})();function G2(n,t=!1){return e=>e.lift(new U8(n,t))}class U8{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new q8(t,this.predicate,this.inclusive))}}class q8 extends D{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const W2=mU();class z8{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=ni(-this._previousScrollPosition.left),t.style.top=ni(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),W2&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),W2&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class G8{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class $2{enable(){}disable(){}attach(){}}function ub(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function K2(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class W8{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();ub(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let $8=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new $2,this.close=s=>new G8(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new z8(this._viewportRuler,this._document),this.reposition=s=>new W8(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(T(F8),T(Ho),T(nt),T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class vc{constructor(t){if(this.scrollStrategy=new $2,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class K8{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let Y2=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Y8=(()=>{class n extends Y2{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(nt,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Q8=(()=>{class n extends Y2{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Vr(o)},this._clickListener=o=>{const s=Vr(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(o)):d.next(o)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(Pn),T(nt,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yf=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Wy()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new L,this._outsidePointerEvents=new L,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(dn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=ni(this._config.width),t.height=ni(this._config.height),t.minWidth=ni(this._config.minWidth),t.minHeight=ni(this._config.minHeight),t.maxWidth=ni(this._config.maxWidth),t.maxHeight=ni(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const r=lf(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Qt(Mn(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Q2="cdk-overlay-connected-position-bounding-box",X8=/([A-Za-z%]+)$/;class Z8{constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new L,this._resizeSubscription=w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(Q2),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?o.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ga(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Q2),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,o;if("center"==i.originX)r=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?s:a}return e.left<0&&(r-=e.left),o="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=Z2(e);let{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,_=this._subtractOverflows(o.width,0-s,s+o.width-i.width),S=this._subtractOverflows(o.height,h,f),U=_*S;return{visibleArea:U,isCompletelyWithinViewport:o.width*o.height===U,fitsInViewportVertically:S===o.height,fitsInViewportHorizontally:_==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=X2(this._overlayRef.getConfig().minHeight),a=X2(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=Z2(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:t.x_&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-_/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),_=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>_&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-_/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=ni(i.height),r.top=ni(i.top),r.bottom=ni(i.bottom),r.width=ni(i.width),r.left=ni(i.left),r.right=ni(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=ni(o)),s&&(r.maxWidth=ni(s))}this._lastBoundingBoxSize=i,Ga(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ga(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ga(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Ga(i,this._getExactOverlayY(e,t,u)),Ga(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=ni(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ni(s.maxWidth):o&&(i.maxWidth="")),Ga(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=ni(o.y),r}_getExactOverlayX(t,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=ni(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:K2(t,i),isOriginOutsideView:ub(t,i),isOverlayClipped:K2(e,i),isOverlayOutsideView:ub(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?t.offsetX??this._offsetX:t.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&lf(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Je)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Ga(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function X2(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(X8);return e&&"px"!==e?null:parseFloat(t)}return n||null}function Z2(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const J2="cdk-global-overlay-wrapper";class J8{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(J2),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",_="",S="";l?S="flex-start":"center"===u?(S="center",h?_=d:f=d):h?"left"===u||"end"===u?(S="flex-end",f=d):("right"===u||"start"===u)&&(S="flex-start",_=d):"left"===u||"start"===u?(S="flex-start",f=d):("right"===u||"end"===u)&&(S="flex-end",_=d),t.position=this._cssPosition,t.marginLeft=l?"0":f,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":_,e.justifyContent=S,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(J2),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let e6=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new J8}flexibleConnectedTo(e){return new Z8(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(T(Ho),T(ht),T(Pn),T(yf))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),t6=0,ar=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new vc(e);return s.direction=s.direction||this._directionality.value,new rd(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+t6++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ys)),new V8(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(T($8),T(yf),T(ro),T(e6),T(Y8),T(Rn),T(nt),T(ht),T(er),T(Na),T(Q8),T(Un,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const n6=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],eI=new pe("cdk-connected-overlay-scroll-strategy");let tI=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(Je))},n.\u0275dir=he({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),nI=(()=>{class n{constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=w.EMPTY,this._attachSubscription=w.EMPTY,this._detachSubscription=w.EMPTY,this._positionSubscription=w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Be,this.positionChange=new Be,this.attach=new Be,this.detach=new Be,this.overlayKeydown=new Be,this.overlayOutsideClick=new Be,this._templatePortal=new Cs(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ct(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=ct(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=ct(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=ct(e)}get push(){return this._push}set push(e){this._push=ct(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=n6);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Di(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new vc({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof tI?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(G2(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(ar),p(bn),p(En),p(eI),p(er,8))},n.\u0275dir=he({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[kn]}),n})();const r6={provide:eI,deps:[ar],useFactory:function i6(n){return()=>n.scrollStrategies.reposition()}};let yc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[ar,r6],imports:[nd,za,lb,lb]}),n})();function o6(n,t){}class bf{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let iI=(()=>{class n extends vf{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=Gy(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Gy();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Gy())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nb),p(ht,8),p(bf),p(pf),p(nt),p(rd),p(_o))},n.\u0275cmp=ze({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&Oe(Es,7),2&e){let r;me(r=ge())&&(i._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,i){2&e&&ot("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[De],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&V(0,o6,0,0,"ng-template",0)},dependencies:[Es],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class db{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new L,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!Di(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(t,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),i.next(t),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",e=""){return this.overlayRef.updateSize({width:t,height:e}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}}const rI=new pe("DialogScrollStrategy"),s6=new pe("DialogData"),a6=new pe("DefaultDialogConfig"),c6={provide:rI,deps:[ar],useFactory:function l6(n){return()=>n.scrollStrategies.block()}};let u6=0,oI=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new L,this._afterOpenedAtThisLevel=new L,this._ariaHiddenElements=new Map,this.afterAllClosed=ea(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ii(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,i){(i={...this._defaultOptions||new bf,...i}).id=i.id||"cdk-dialog-"+u6++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new db(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){hb(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){hb(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),hb(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new vc({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:bf,useValue:r},{provide:db,useValue:i},{provide:rd,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=iI;const l=new id(a,r.viewContainerRef,Rn.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof bn){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new Cs(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new id(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,r,o){const s=e.injector||e.viewContainerRef?.injector,a=[{provide:s6,useValue:e.data},{provide:db,useValue:i}];return e.providers&&("function"==typeof e.providers?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(er,null,vt.Optional))&&a.push({provide:er,useValue:{value:e.direction,change:Ve()}}),Rn.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(T(ar),T(Rn),T(a6,8),T(n,12),T(yf),T(rI))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();function hb(n,t){let e=n.length;for(;e--;)t(n[e])}let d6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[oI,c6],imports:[yc,za,ob,za]}),n})();const h6=["*",[["mat-option"],["ng-container"]]],p6=["*","mat-option, ng-container"];function f6(n,t){if(1&n&&xe(0,"mat-pseudo-checkbox",4),2&n){const e=x();y("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function m6(n,t){if(1&n&&(g(0,"span",5),j(1),v()),2&n){const e=x();m(1),Qe("(",e.group.label,")")}}const g6=["*"],v6=new pe("mat-sanity-checks",{providedIn:"root",factory:function _6(){return!0}});let Pt=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Wy()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(T(B2),T(v6,8),T(ht))},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[nd,nd]}),n})();function Ds(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ct(t)}}}function Wa(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function Vo(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ct(t)}}}function od(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?ys(e):this.defaultTabIndex}}}function pb(n){return class extends n{constructor(...t){super(...t),this.errorState=!1}updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}}}let sd=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),b6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function ad(n,t,e){n.nativeElement.classList.toggle(t,e)}let lI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt,Pt]}),n})();class w6{constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const cI={enterDuration:225,exitDuration:150},fb=_s({passive:!0}),uI=["mousedown","touchstart"],dI=["mouseup","mouseleave","touchend","touchcancel"];class hI{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Qn(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...cI,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function D6(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),f=d.transitionDuration,_="none"===d.transitionProperty||"0s"===f||"0s, 0s"===f,S=new w6(this,u,i,_);u.style.transform="scale3d(1, 1, 1)",S.state=0,i.persistent||(this._mostRecentTransientRipple=S);let U=null;return!_&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Z=()=>this._finishRippleTransition(S),ve=()=>this._destroyRipple(S);u.addEventListener("transitionend",Z),u.addEventListener("transitioncancel",ve),U={onTransitionEnd:Z,onTransitionCancel:ve}}),this._activeRipples.set(S,U),(_||!c)&&this._finishRippleTransition(S),S}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...cI,...t.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Qn(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(uI))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(dI),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=1,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==e&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=ff(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,fb)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(uI.forEach(t=>{this._triggerElement.removeEventListener(t,this,fb)}),this._pointerUpEventsRegistered&&dI.forEach(t=>{this._triggerElement.removeEventListener(t,this,fb)}))}}const pI=new pe("mat-ripple-global-options");let Ar=(()=>{class n{constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new hI(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nt),p(Pn),p(pI,8),p(Un,8))},n.\u0275dir=he({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&wt("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),ia=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt,Pt]}),n})(),fI=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(p(Un,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&wt("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),n})(),mb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt]}),n})();const Cf=new pe("MAT_OPTION_PARENT_COMPONENT"),S6=Ds(class{});let A6=0,T6=(()=>{class n extends S6{constructor(e){super(),this._labelId="mat-optgroup-label-"+A6++,this._inert=e?.inertGroups??!1}}return n.\u0275fac=function(e){return new(e||n)(p(Cf,8))},n.\u0275dir=he({type:n,inputs:{label:"label"},features:[De]}),n})();const wf=new pe("MatOptgroup");let x6=(()=>{class n extends T6{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275cmp=ze({type:n,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(e,i){2&e&&(ot("role",i._inert?null:"group")("aria-disabled",i._inert?null:i.disabled.toString())("aria-labelledby",i._inert?null:i._labelId),wt("mat-optgroup-disabled",i.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[rt([{provide:wf,useExisting:n}]),De],ngContentSelectors:p6,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(e,i){1&e&&(Vn(h6),g(0,"span",0),j(1),Ht(2),v(),Ht(3,1)),2&e&&(y("id",i._labelId),m(1),Qe("",i.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}"],encapsulation:2,changeDetection:0}),n})(),I6=0;class mI{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let M6=(()=>{class n{constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+I6++,this.onSelectionChange=new Be,this._stateChanges=new L}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=ct(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Di(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new mI(this,e))}}return n.\u0275fac=function(e){Vl()},n.\u0275dir=he({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),vo=(()=>{class n extends M6{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(Cf,8),p(wf,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&X("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Po("id",i.id),ot("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),wt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[De],ngContentSelectors:g6,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(Vn(),V(0,f6,1,2,"mat-pseudo-checkbox",0),g(1,"span",1),Ht(2),v(),V(3,m6,2,1,"span",2),xe(4,"div",3)),2&e&&(y("ngIf",i.multiple),m(3),y("ngIf",i.group&&i.group._inert),m(1),y("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[Ar,_n,fI],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),n})();function gb(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let s=0;se+i?Math.max(0,n-i+t):e}let Ef=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[ia,Xi,Pt,mb]}),n})();class _I{}const Ss="*";function jr(n,t){return{type:7,name:n,definitions:t,options:{}}}function mi(n,t=null){return{type:4,styles:t,timings:n}}function vI(n,t=null){return{type:3,steps:n,options:t}}function yI(n,t=null){return{type:2,steps:n,options:t}}function Lt(n){return{type:6,styles:n,offset:null}}function qn(n,t,e){return{type:0,name:n,styles:t,options:e}}function R6(n){return{type:5,steps:n}}function ui(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function _b(n=null){return{type:9,options:n}}function vb(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function bI(n){Promise.resolve(null).then(n)}class ld{constructor(t=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=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){bI(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class CI{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?bI(()=>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(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function O6(n,t){}const bc={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},P6={dialogContainer:jr("dialogContainer",[qn("void, exit",Lt({opacity:0,transform:"scale(0.7)"})),qn("enter",Lt({transform:"none"})),ui("* => enter",vI([mi("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Lt({transform:"none",opacity:1})),vb("@*",_b(),{optional:!0})]),bc),ui("* => void, * => exit",vI([mi("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Lt({opacity:0})),vb("@*",_b(),{optional:!0})]),bc)])};class Cc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=bc.params.enterAnimationDuration,this.exitAnimationDuration=bc.params.exitAnimationDuration}}let L6=(()=>{class n extends iI{constructor(e,i,r,o,s,a,l,c){super(e,i,r,o,s,a,l,c),this._animationStateChanged=new Be}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nb),p(ht,8),p(Cc),p(pf),p(nt),p(rd),p(_o))},n.\u0275cmp=ze({type:n,selectors:[["ng-component"]],features:[De],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),N6=(()=>{class n extends L6{constructor(e,i,r,o,s,a,l,c,u){super(e,i,r,o,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?this._openAnimationDone(i):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||bc.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||bc.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nb),p(ht,8),p(Cc),p(pf),p(nt),p(rd),p(Bt),p(_o))},n.\u0275cmp=ze({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&rp("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&(Po("id",i._config.id),ot("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Ru("@dialogContainer",i._getAnimationState()))},features:[De],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&V(0,O6,0,0,"ng-template",0)},dependencies:[Es],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[P6.dialogContainer]}}),n})();class Df{constructor(t,e,i){this._ref=t,this._containerInstance=i,this._afterOpened=new L,this._beforeClosed=new L,this._state=0,this.disableClose=e.disableClose,this.id=t.id,i._animationStateChanged.pipe(Sn(r=>"opened"===r.state),dn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Sn(r=>"closed"===r.state),dn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Mn(this.backdropClick(),this.keydownEvents().pipe(Sn(r=>27===r.keyCode&&!this.disableClose&&!Di(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function F6(n,t,e){n._closeInteractionType=t,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Sn(e=>"closing"===e.state),dn(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const B6=new pe("MatDialogData"),H6=new pe("mat-dialog-default-options"),wI=new pe("mat-dialog-scroll-strategy"),j6={provide:wI,deps:[ar],useFactory:function V6(n){return()=>n.scrollStrategies.block()}};let U6=0,q6=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new L,this._afterOpenedAtThisLevel=new L,this._idPrefix="mat-dialog-",this.afterAllClosed=ea(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ii(void 0))),this._scrollStrategy=a,this._dialog=i.get(oI)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){let r;(i={...this._defaultOptions||new Cc,...i}).id=i.id||`${this._idPrefix}${U6++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Cc,useValue:i},{provide:bf,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){Vl()},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),As=(()=>{class n extends q6{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,Df,N6,B6,c)}}return n.\u0275fac=function(e){return new(e||n)(T(ar),T(Rn),T(Na,8),T(H6,8),T(wI),T(n,12),T(yf),T(Un,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),z6=0,G6=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+z6++}ngOnInit(){this._dialogRef||(this._dialogRef=function $6(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(p(Df,8),p(Je),p(As))},n.\u0275dir=he({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&Po("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),Sf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),W6=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,i){2&e&&wt("mat-dialog-actions-align-center","center"===i.align)("mat-dialog-actions-align-end","end"===i.align)},inputs:{align:"align"}}),n})(),EI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[As,j6],imports:[d6,yc,za,Pt,Pt]}),n})();const DI=["toast-component",""];function K6(n,t){if(1&n){const e=je();g(0,"button",5),X("click",function(){return oe(e),se(x().remove())}),g(1,"span",6),j(2,"\xd7"),v()()}}function Y6(n,t){if(1&n&&(bi(0),j(1),Ci()),2&n){const e=x(2);m(1),Qe("[",e.duplicatesCount+1,"]")}}function Q6(n,t){if(1&n&&(g(0,"div"),j(1),V(2,Y6,2,1,"ng-container",4),v()),2&n){const e=x();wi(e.options.titleClass),ot("aria-label",e.title),m(1),Qe(" ",e.title," "),m(1),y("ngIf",e.duplicatesCount)}}function X6(n,t){if(1&n&&xe(0,"div",7),2&n){const e=x();wi(e.options.messageClass),y("innerHTML",e.message,n_)}}function Z6(n,t){if(1&n&&(g(0,"div",8),j(1),v()),2&n){const e=x();wi(e.options.messageClass),ot("aria-label",e.message),m(1),Qe(" ",e.message," ")}}function J6(n,t){if(1&n&&(g(0,"div"),xe(1,"div",9),v()),2&n){const e=x();m(1),Oi("width",e.width+"%")}}function tq(n,t){if(1&n){const e=je();g(0,"button",5),X("click",function(){return oe(e),se(x().remove())}),g(1,"span",6),j(2,"\xd7"),v()()}}function nq(n,t){if(1&n&&(bi(0),j(1),Ci()),2&n){const e=x(2);m(1),Qe("[",e.duplicatesCount+1,"]")}}function iq(n,t){if(1&n&&(g(0,"div"),j(1),V(2,nq,2,1,"ng-container",4),v()),2&n){const e=x();wi(e.options.titleClass),ot("aria-label",e.title),m(1),Qe(" ",e.title," "),m(1),y("ngIf",e.duplicatesCount)}}function rq(n,t){if(1&n&&xe(0,"div",7),2&n){const e=x();wi(e.options.messageClass),y("innerHTML",e.message,n_)}}function oq(n,t){if(1&n&&(g(0,"div",8),j(1),v()),2&n){const e=x();wi(e.options.messageClass),ot("aria-label",e.message),m(1),Qe(" ",e.message," ")}}function sq(n,t){if(1&n&&(g(0,"div"),xe(1,"div",9),v()),2&n){const e=x();m(1),Oi("width",e.width+"%")}}class Af{constructor(t,e,i,r,o,s){this.toastId=t,this.config=e,this.message=i,this.title=r,this.toastType=o,this.toastRef=s,this._onTap=new L,this._onAction=new L,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const bb={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},cd=new pe("ToastConfig");class aq{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class cq extends class lq{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,i){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=i}attachComponentPortal(t,e){const i=this._componentFactoryResolver.resolveComponentFactory(t.component);let r;return r=i.create(t.injector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(r),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(r)),r}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let SI=(()=>{class n{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),this._document.body.appendChild(e),this._containerElement=e}}return n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({factory:function(){return new n(T(ht))},token:n,providedIn:"root"}),n})();class uq{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let AI=(()=>{class n{constructor(e,i,r,o){this._overlayContainer=e,this._componentFactoryResolver=i,this._appRef=r,this._document=o,this._paneElements=new Map}create(e,i){return this._createOverlayRef(this.getPaneElement(e,i))}getPaneElement(e="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[e]||(this._paneElements.get(i)[e]=this._createPaneElement(e,i)),this._paneElements.get(i)[e]}_createPaneElement(e,i){const r=this._document.createElement("div");return r.id="toast-container",r.classList.add(e),r.classList.add("toast-container"),i?i.getContainerElement().appendChild(r):this._overlayContainer.getContainerElement().appendChild(r),r}_createPortalHost(e){return new cq(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new uq(this._createPortalHost(e))}}return n.\u0275fac=function(e){return new(e||n)(T(SI),T(ro),T(Ys),T(ht))},n.\u0275prov=fe({factory:function(){return new n(T(SI),T(ro),T(Ys),T(ht))},token:n,providedIn:"root"}),n})();class dq{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new L,this._activate=new L,this._manualClose=new L,this._resetTimeout=new L,this._countDuplicate=new L}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class hq{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,i){return t===Af?this._toastPackage:this._parentInjector.get(t,e,i)}}let Cb=(()=>{class n{constructor(e,i,r,o,s){this.overlay=i,this._injector=r,this.sanitizer=o,this.ngZone=s,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))}show(e,i,r={},o=""){return this._preBuildNotification(o,e,i,this.applyConfig(r))}success(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,i,this.applyConfig(r))}error(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,i,this.applyConfig(r))}info(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,i,this.applyConfig(r))}warning(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,i,this.applyConfig(r))}clear(e){for(const i of this.toasts)if(void 0!==e){if(i.toastId===e)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}remove(e){const i=this._findToast(e);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,i,r,o)):this._buildNotification(e,i,r,o)}_buildNotification(e,i,r,o){if(!o.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(r,i,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&r||i)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=i;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let c=i;i&&o.enableHtml&&(c=this.sanitizer.sanitize(on.HTML,i));const u=new dq(l),d=new Af(this.index,o,c,r,e,u),h=new hq(d,this._injector),f=new aq(o.toastComponent,h),_=l.attach(f,this.toastrConfig.newestOnTop);u.componentInstance=_.instance;const S={toastId:this.index,title:r||"",message:i||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:_};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{S.toastRef.activate()})),this.toasts.push(S),S}}return n.\u0275fac=function(e){return new(e||n)(T(cd),T(AI),T(Rn),T(Ba),T(nt))},n.\u0275prov=fe({factory:function(){return new n(T(cd),T(AI),T(i_),T(Ba),T(nt))},token:n,providedIn:"root"}),n})(),pq=(()=>{class n{constructor(e,i,r){this.toastrService=e,this.toastPackage=i,this.ngZone=r,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),i)):this.timeout=setTimeout(()=>e(),i)}outsideInterval(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),i)):this.intervalId=setInterval(()=>e(),i)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}}return n.\u0275fac=function(e){return new(e||n)(p(Cb),p(Af),p(nt))},n.\u0275cmp=ze({type:n,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,i){1&e&&X("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&e&&(Ru("@flyInOut",i.state),wi(i.toastClasses),Oi("display",i.displayStyle))},attrs:DI,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(e,i){1&e&&(V(0,K6,3,0,"button",0),V(1,Q6,3,5,"div",1),V(2,X6,1,3,"div",2),V(3,Z6,2,4,"div",3),V(4,J6,2,2,"div",4)),2&e&&(y("ngIf",i.options.closeButton),m(1),y("ngIf",i.title),m(1),y("ngIf",i.message&&i.options.enableHtml),m(1),y("ngIf",i.message&&!i.options.enableHtml),m(1),y("ngIf",i.options.progressBar))},dependencies:[_n],encapsulation:2,data:{animation:[jr("flyInOut",[qn("inactive",Lt({opacity:0})),qn("active",Lt({opacity:1})),qn("removed",Lt({opacity:0})),ui("inactive => active",mi("{{ easeTime }}ms {{ easing }}")),ui("active => removed",mi("{{ easeTime }}ms {{ easing }}"))])]}}),n})();const fq=Object.assign(Object.assign({},bb),{toastComponent:pq});let TI=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[{provide:cd,useValue:{default:fq,config:e}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Xi]}),n})(),mq=(()=>{class n{constructor(e,i,r){this.toastrService=e,this.toastPackage=i,this.appRef=r,this.width=-1,this.toastClasses="",this.state="inactive",this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return n.\u0275fac=function(e){return new(e||n)(p(Cb),p(Af),p(Ys))},n.\u0275cmp=ze({type:n,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,i){1&e&&X("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&e&&(wi(i.toastClasses),Oi("display",i.displayStyle))},attrs:DI,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(e,i){1&e&&(V(0,tq,3,0,"button",0),V(1,iq,3,5,"div",1),V(2,rq,1,3,"div",2),V(3,oq,2,4,"div",3),V(4,sq,2,2,"div",4)),2&e&&(y("ngIf",i.options.closeButton),m(1),y("ngIf",i.title),m(1),y("ngIf",i.message&&i.options.enableHtml),m(1),y("ngIf",i.message&&!i.options.enableHtml),m(1),y("ngIf",i.options.progressBar))},dependencies:[_n],encapsulation:2}),n})();Object.assign(Object.assign({},bb),{toastComponent:mq});let en=(()=>{class n{constructor(e,i,r){this.toastr=e,this.globals=i,this.lsm=r,this.toastrObj={timeOut:3e3,positionClass:"toast-bottom-center",preventDuplicates:!0,progressBar:!0,closeButton:!0,maxOpen:0,newestOnTop:!1,enableHtml:!0},this.defaultTitle="",this.connectionTimeout=null,this.waitForAsyncMessage()}showError(e,i=this.defaultTitle,r,o=3e3){if((null===e||""===e?.trim())&&(e="An error occurred. Please try again."),r){const s={};Object.assign(s,this.toastrObj),s.disableTimeOut=!0,this.toastr.error(e,i,s)}else this.toastrObj.timeOut=o,this.toastr.error(e,i,this.toastrObj)}waitForAsyncMessage(){setInterval(()=>{let e=this.lsm.getValue(tn.asyncMessage);if(e){let i=JSON.parse(e);switch(i.type){case lr.error:this.showError(i.message,"",void 0,1e4);break;case lr.info:this.showInfo(i.message);break;case lr.success:let o=(i.message.split(" ").length-1)/3*1e3;this.showSuccess(i.message,"",o);break;case lr.warning:this.showWarning(i.message);break;default:this.showCommon(i.message)}}this.lsm.removeValue(tn.asyncMessage)},1e3)}showMessageAsync(e,i){let r=JSON.stringify({message:e,type:i});this.lsm.setValue(tn.asyncMessage,r)}showInfo(e,i=this.defaultTitle){this.toastr.info(e,i,this.toastrObj)}showSuccess(e,i=this.defaultTitle,r=3e3){this.toastrObj.timeOut=r,this.toastr.success(e,i,this.toastrObj)}showWarning(e,i=this.defaultTitle){this.toastr.warning(e,i,this.toastrObj)}showCommon(e,i=this.defaultTitle){this.toastr.show(e,i,this.toastrObj)}setConnectionTimeout(e,i=this.defaultTitle){this.clearConnectionTimeout(),this.connectionTimeout=setTimeout(()=>{this.globals.loginOpen||this.showError(e,i,!0)},5e3)}clearConnectionTimeout(){null!=this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null)}getTimeoutMS(){return this.toastrObj.timeOut}clearToasts(){this.toastr.clear()}changeClass(e){this.toastrObj.positionClass=e}}return n.\u0275fac=function(e){return new(e||n)(T(Cb),T(pt),T(Br))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var lr=(()=>(function(n){n.error="Error",n.info="Info",n.success="Success",n.warning="Warning"}(lr||(lr={})),lr))();function An(n,t,e,i){return new(e||(e=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}const MI=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn"]),Cq=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"],Eb=n=>{const t=n&&n.constructor&&n.constructor.name;if("Buffer"===t||"Blob"===t||"File"===t||"FormData"===t||"string"==typeof n)return n;if("ArrayBuffer"===t)n=Buffer.from(n);else if("Int8Array"===t||"Int16Array"===t||"Int32Array"===t||"Uint8Array"===t||"Uint16Array"===t||"Uint32Array"===t||"Uint8ClampedArray"===t||"Float32Array"===t||"Float64Array"===t||"DataView"===t)n=Buffer.from(n.buffer);else try{n=JSON.stringify(n)}catch{throw new Error("Unable to stringify the content")}return n};class $a{constructor(t=[]){this.middlewareOptions=new Map;for(const e of t)this.middlewareOptions.set(e.constructor,e)}getMiddlewareOptions(t){return this.middlewareOptions.get(t)}setMiddlewareOptions(t,e){this.middlewareOptions.set(t,e)}}const kI=(n,t,e)=>{let i=null;if(typeof Request<"u"&&n instanceof Request)i=n.headers.get(e);else if(typeof t<"u"&&void 0!==t.headers)if(typeof Headers<"u"&&t.headers instanceof Headers)i=t.headers.get(e);else if(t.headers instanceof Array){const r=t.headers;for(let o=0,s=r.length;o{if(typeof Request<"u"&&n instanceof Request)n.headers.set(e,i);else if(typeof t<"u")if(void 0===t.headers)t.headers=new Headers({[e]:i});else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(e,i);else if(t.headers instanceof Array){let r=0;const o=t.headers.length;for(;r{typeof Request<"u"&&n instanceof Request?n.headers.append(e,i):typeof t<"u"&&(void 0===t.headers?t.headers=new Headers({[e]:i}):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(e,i):t.headers instanceof Array?t.headers.push([e,i]):void 0===t.headers?t.headers={[e]:i}:void 0===t.headers[e]?t.headers[e]=i:t.headers[e]+=`, ${i}`)};var Ka=(()=>(function(n){n[n.NONE=0]="NONE",n[n.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",n[n.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",n[n.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"}(Ka||(Ka={})),Ka))();class ra{constructor(){this.featureUsage=Ka.NONE}static updateFeatureUsageFlag(t,e){let i;t.middlewareControl instanceof $a?i=t.middlewareControl.getMiddlewareOptions(ra):t.middlewareControl=new $a,typeof i>"u"&&(i=new ra,t.middlewareControl.setMiddlewareOptions(ra,i)),i.setFeatureUsage(e)}setFeatureUsage(t){this.featureUsage=this.featureUsage|t}getFeatureUsage(){return this.featureUsage.toString(16)}}let Tq=(()=>{class n{execute(e){return An(this,void 0,void 0,function*(){try{if((n=>{if(-1!==(n=n.toLowerCase()).indexOf("https://")){const t=(n=n.replace("https://","")).indexOf(":"),e=n.indexOf("/");let i="";if(-1!==e)return-1!==t&&t{let n="";for(let t=0;t<32;t++)(8===t||12===t||16===t||20===t)&&(n+="-"),n+=Math.floor(16*Math.random()).toString(16);return n})(),RI(e.request,e.options,n.CLIENT_REQUEST_ID_HEADER,r));let s,o=`${n.PRODUCT_NAME}/2.2.1`;if(e.middlewareControl instanceof $a&&(s=e.middlewareControl.getMiddlewareOptions(ra)),s){const a=s.getFeatureUsage();o+=` (${n.FEATURE_USAGE_STRING}=${a})`}OI(e.request,e.options,n.SDK_VERSION_HEADER,o)}else delete e.options.headers[n.CLIENT_REQUEST_ID_HEADER],delete e.options.headers[n.SDK_VERSION_HEADER];return yield this.nextMiddleware.execute(e)}catch(i){throw i}})}setNext(e){this.nextMiddleware=e}}return n.CLIENT_REQUEST_ID_HEADER="client-request-id",n.SDK_VERSION_HEADER="SdkVersion",n.PRODUCT_NAME="graph-js",n.FEATURE_USAGE_STRING="featureUsage",n})();class Iq{constructor(t){this.provider=t}getAccessToken(){return An(this,void 0,void 0,function*(){return new Promise((t,e)=>{this.provider((i,r)=>{r?t(r):e(i)})})})}}class ud extends Error{constructor(t=-1,e,i){super(e||i&&i.message),Object.setPrototypeOf(this,ud.prototype),this.statusCode=t,this.code=null,this.requestId=null,this.date=new Date,this.body=null,this.stack=i?i.stack:this.stack}}class xf{static constructError(t,e){const i=new ud(e,"",t);return void 0!==t.name&&(i.code=t.name),i.body=t.toString(),i.date=new Date,i}static constructErrorFromResponse(t,e){const i=new ud(e,(t=t.error).message);i.code=t.code,void 0!==t.innerError&&(i.requestId=t.innerError["request-id"],i.date=new Date(t.innerError.date));try{i.body=JSON.stringify(t)}catch{}return i}static getError(t=null,e=-1,i){return An(this,void 0,void 0,function*(){let r;if(r=t&&t.error?xf.constructErrorFromResponse(t,e):typeof Error<"u"&&t instanceof Error?xf.constructError(t,e):new ud(e),"function"!=typeof i)return r;i(r,null)})}}var Ur=(()=>(function(n){n.ARRAYBUFFER="arraybuffer",n.BLOB="blob",n.DOCUMENT="document",n.JSON="json",n.RAW="raw",n.STREAM="stream",n.TEXT="text"}(Ur||(Ur={})),Ur))(),If=(()=>(function(n){n.TEXT_HTML="text/html",n.TEXT_XML="text/xml",n.APPLICATION_XML="application/xml",n.APPLICATION_XHTML="application/xhtml+xml"}(If||(If={})),If))(),dd=(()=>(function(n){n.TEXT_PLAIN="text/plain",n.APPLICATION_JSON="application/json"}(dd||(dd={})),dd))(),hd=(()=>(function(n){n.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",n.IMAGE="^image\\/.+"}(hd||(hd={})),hd))();class pd{static parseDocumentResponse(t,e){try{return typeof DOMParser<"u"?new Promise((i,r)=>{t.text().then(o=>{try{const a=(new DOMParser).parseFromString(o,e);i(a)}catch(s){r(s)}})}):Promise.resolve(t.body)}catch(i){throw i}}static convertResponse(t,e){return An(this,void 0,void 0,function*(){if(204===t.status)return Promise.resolve();let i;try{switch(e){case Ur.ARRAYBUFFER:i=yield t.arrayBuffer();break;case Ur.BLOB:i=yield t.blob();break;case Ur.DOCUMENT:i=yield pd.parseDocumentResponse(t,If.TEXT_XML);break;case Ur.JSON:i=yield t.json();break;case Ur.STREAM:i=yield Promise.resolve(t.body);break;case Ur.TEXT:i=yield t.text();break;default:const r=t.headers.get("Content-type");if(null!==r){const o=r.split(";")[0];i=new RegExp(hd.DOCUMENT).test(o)?yield pd.parseDocumentResponse(t,o):new RegExp(hd.IMAGE).test(o)?t.blob():o===dd.TEXT_PLAIN?yield t.text():o===dd.APPLICATION_JSON?yield t.json():Promise.resolve(t.body)}else i=Promise.resolve(t.body)}}catch(r){throw r}return i})}static getResponse(t,e,i){return An(this,void 0,void 0,function*(){try{if(e===Ur.RAW)return Promise.resolve(t);{const r=yield pd.convertResponse(t,e);if(!t.ok)throw r;if("function"!=typeof i)return r;i(null,r)}}catch(r){throw r}})}}var cr=(()=>(function(n){n.GET="GET",n.PATCH="PATCH",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE"}(cr||(cr={})),cr))();class Mq{constructor(t,e,i){this.parsePath=r=>{if(-1!==r.indexOf("https://")){const s=(r=r.replace("https://","")).indexOf("/");-1!==s&&(this.urlComponents.host="https://"+r.substring(0,s),r=r.substring(s+1,r.length));const a=r.indexOf("/");-1!==a&&(this.urlComponents.version=r.substring(0,a),r=r.substring(a+1,r.length))}"/"===r.charAt(0)&&(r=r.substr(1));const o=r.indexOf("?");if(-1===o)this.urlComponents.path=r;else{this.urlComponents.path=r.substr(0,o);const s=r.substring(o+1,r.length).split("&");for(const a of s)this.parseQueryParameter(a)}},this.httpClient=t,this.config=e,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(i)}addCsvQueryParameter(t,e,i){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";let r=[];i.length>1&&"string"==typeof e?r=Array.prototype.slice.call(i):"string"==typeof e?r.push(e):r=r.concat(e),this.urlComponents.oDataQueryParams[t]+=r.join(",")}buildFullUrl(){const t=(n=>{const t=o=>o.replace(/\/+$/,""),e=o=>o.replace(/^\/+/,"");return Array.prototype.slice.call([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path]).reduce((o,s)=>[t(o),e(s)].join("/"))})()+this.createQueryString();return this.config.debugLogging&&console.log(t),t}createQueryString(){const t=this.urlComponents,e=[];if(0!==Object.keys(t.oDataQueryParams).length)for(const i in t.oDataQueryParams)t.oDataQueryParams.hasOwnProperty(i)&&e.push(i+"="+t.oDataQueryParams[i]);if(0!==Object.keys(t.otherURLQueryParams).length)for(const i in t.otherURLQueryParams)t.otherURLQueryParams.hasOwnProperty(i)&&e.push(i+"="+t.otherURLQueryParams[i]);if(0!==t.otherURLQueryOptions.length)for(const i of t.otherURLQueryOptions)e.push(i);return e.length>0?"?"+e.join("&"):""}parseQueryParameter(t){if("string"==typeof t)if("?"===t.charAt(0)&&(t=t.substring(1)),-1!==t.indexOf("&")){const e=t.split("&");for(const i of e)this.parseQueryParamenterString(i)}else this.parseQueryParamenterString(t);else if(t.constructor===Object)for(const e in t)t.hasOwnProperty(e)&&this.setURLComponentsQueryParamater(e,t[e]);return this}parseQueryParamenterString(t){if(this.isValidQueryKeyValuePair(t)){const e=t.indexOf("="),i=t.substring(0,e),r=t.substring(e+1);this.setURLComponentsQueryParamater(i,r)}else this.urlComponents.otherURLQueryOptions.push(t)}setURLComponentsQueryParamater(t,e){if(-1!==Cq.indexOf(t)){const i=this.urlComponents.oDataQueryParams[t];this.urlComponents.oDataQueryParams[t]=!i||"$expand"!==t&&"$select"!==t&&"$orderby"!==t?e:i+","+e}else this.urlComponents.otherURLQueryParams[t]=e}isValidQueryKeyValuePair(t){const e=t.indexOf("=");return!(-1===e||-1!==t.indexOf("(")&&t.indexOf("(")1?this.parseMiddleWareArray(t):this.middleware=t[0]}parseMiddleWareArray(t){t.forEach((e,i)=>{i{class n{constructor(e){this.authenticationProvider=e}execute(e){return An(this,void 0,void 0,function*(){try{let i,r,o;e.middlewareControl instanceof $a&&(i=e.middlewareControl.getMiddlewareOptions(kq)),typeof i<"u"&&(r=i.authenticationProvider,o=i.authenticationProviderOptions),typeof r>"u"&&(r=this.authenticationProvider);const a=`Bearer ${yield r.getAccessToken(o)}`;return OI(e.request,e.options,n.AUTHORIZATION_HEADER,a),ra.updateFeatureUsageFlag(e,Ka.AUTHENTICATION_HANDLER_ENABLED),yield this.nextMiddleware.execute(e)}catch(i){throw i}})}setNext(e){this.nextMiddleware=e}}return n.AUTHORIZATION_HEADER="Authorization",n})();class Oq{execute(t){return An(this,void 0,void 0,function*(){try{return void(t.response=yield fetch(t.request,t.options))}catch(e){throw e}})}}let Mf=(()=>{class n{constructor(e=n.DEFAULT_MAX_REDIRECTS,i=n.DEFAULT_SHOULD_RETRY){if(e>n.MAX_MAX_REDIRECTS){const r=new Error(`MaxRedirects should not be more than ${n.MAX_MAX_REDIRECTS}`);throw r.name="MaxLimitExceeded",r}if(e<0){const r=new Error("MaxRedirects should not be negative");throw r.name="MinExpectationNotMet",r}this.maxRedirects=e,this.shouldRedirect=i}}return n.DEFAULT_MAX_REDIRECTS=5,n.MAX_MAX_REDIRECTS=20,n.DEFAULT_SHOULD_RETRY=()=>!0,n})(),Db=(()=>{class n{constructor(e=n.DEFAULT_DELAY,i=n.DEFAULT_MAX_RETRIES,r=n.DEFAULT_SHOULD_RETRY){if(e>n.MAX_DELAY&&i>n.MAX_MAX_RETRIES){const o=new Error(`Delay and MaxRetries should not be more than ${n.MAX_DELAY} and ${n.MAX_MAX_RETRIES}`);throw o.name="MaxLimitExceeded",o}if(e>n.MAX_DELAY){const o=new Error(`Delay should not be more than ${n.MAX_DELAY}`);throw o.name="MaxLimitExceeded",o}if(i>n.MAX_MAX_RETRIES){const o=new Error(`MaxRetries should not be more than ${n.MAX_MAX_RETRIES}`);throw o.name="MaxLimitExceeded",o}if(e<0&&i<0){const o=new Error("Delay and MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}if(e<0){const o=new Error("Delay should not be negative");throw o.name="MinExpectationNotMet",o}if(i<0){const o=new Error("MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}this.delay=Math.min(e,n.MAX_DELAY),this.maxRetries=Math.min(i,n.MAX_MAX_RETRIES),this.shouldRetry=r}getMaxDelay(){return n.MAX_DELAY}}return n.DEFAULT_DELAY=3,n.DEFAULT_MAX_RETRIES=3,n.MAX_DELAY=180,n.MAX_MAX_RETRIES=10,n.DEFAULT_SHOULD_RETRY=()=>!0,n})(),Pq=(()=>{class n{constructor(e=new Mf){this.options=e}isRedirect(e){return-1!==n.REDIRECT_STATUS_CODES.indexOf(e.status)}hasLocationHeader(e){return e.headers.has(n.LOCATION_HEADER)}getLocationHeader(e){return e.headers.get(n.LOCATION_HEADER)}isRelativeURL(e){return-1===e.indexOf("://")}shouldDropAuthorizationHeader(e,i){const r=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,o=r.exec(e);let s,a;null!==o&&(s=o[0]);const l=r.exec(i);return null!==l&&(a=l[0]),typeof s<"u"&&typeof a<"u"&&s!==a}updateRequestUrl(e,i){return An(this,void 0,void 0,function*(){i.request="string"==typeof i.request?e:yield((n,t)=>An(void 0,void 0,void 0,function*(){const e=t.headers.get("Content-Type")?yield t.blob():yield Promise.resolve(void 0),{method:i,headers:r,referrer:o,referrerPolicy:s,mode:a,credentials:l,cache:c,redirect:u,integrity:d,keepalive:h,signal:f}=t;return new Request(n,{method:i,headers:r,body:e,referrer:o,referrerPolicy:s,mode:a,credentials:l,cache:c,redirect:u,integrity:d,keepalive:h,signal:f})}))(e,i.request)})}getOptions(e){let i;return e.middlewareControl instanceof $a&&(i=e.middlewareControl.getMiddlewareOptions(Mf)),typeof i>"u"&&(i=Object.assign(new Mf,this.options)),i}executeWithRedirect(e,i,r){return An(this,void 0,void 0,function*(){try{yield this.nextMiddleware.execute(e);const o=e.response;if(!(i{class n{constructor(e=new Db){this.options=e}isRetry(e){return-1!==n.RETRY_STATUS_CODES.indexOf(e.status)}isBuffered(e,i){const r="string"==typeof e?i.method:e.method;return!((r===cr.PUT||r===cr.PATCH||r===cr.POST)&&"application/octet-stream"===kI(e,i,"Content-Type"))}getDelay(e,i,r){const o=()=>Number(Math.random().toFixed(3)),s=void 0!==e.headers?e.headers.get(n.RETRY_AFTER_HEADER):null;let a;return a=null!==s?Number.isNaN(Number(s))?Math.round((new Date(s).getTime()-Date.now())/1e3):Number(s):i>=2?this.getExponentialBackOffTime(i)+r+o():r+o(),Math.min(a,this.options.getMaxDelay()+o())}getExponentialBackOffTime(e){return Math.round(.5*(Math.pow(2,e)-1))}sleep(e){return An(this,void 0,void 0,function*(){const i=1e3*e;return new Promise(r=>setTimeout(r,i))})}getOptions(e){let i;return e.middlewareControl instanceof $a&&(i=e.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof i>"u"&&(i=Object.assign(new Db,this.options)),i}executeWithRetry(e,i,r){return An(this,void 0,void 0,function*(){try{if(yield this.nextMiddleware.execute(e),i{if(typeof Promise>"u"&&typeof fetch>"u"){const n=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw n.name="PolyFillNotAvailable",n}if(typeof Promise>"u"){const n=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw n.name="PolyFillNotAvailable",n}if(typeof fetch>"u"){const n=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw n.name="PolyFillNotAvailable",n}})()}catch(i){throw i}for(const i in t)t.hasOwnProperty(i)&&(this.config[i]=t[i]);let e;if(void 0!==t.authProvider&&void 0!==t.middleware){const i=new Error;throw i.name="AmbiguityInInitialization",i.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",i}if(void 0!==t.authProvider)e=Sb.createWithAuthenticationProvider(t.authProvider);else{if(void 0===t.middleware){const i=new Error;throw i.name="InvalidMiddlewareChain",i.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",i}e=new PI(...[].concat(t.middleware))}this.httpClient=e}static init(t){const e={};for(const i in t)t.hasOwnProperty(i)&&(e[i]="authProvider"===i?new Iq(t[i]):t[i]);return kf.initWithMiddleware(e)}static initWithMiddleware(t){try{return new kf(t)}catch(e){throw e}}api(t){return new Mq(this.httpClient,this.config,t)}}class Bq{}var Ab=function(n,t){return(Ab=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])})(n,t)};function ur(n,t){function e(){this.constructor=n}Ab(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var zn=function(){return zn=Object.assign||function(t){for(var e,i=1,r=arguments.length;i0&&o[o.length-1])&&(6===c[0]||2===c[0])){e=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1](function(n){n.CONTENT_TYPE="Content-Type",n.RETRY_AFTER="Retry-After",n.CCS_HEADER="X-AnchorMailbox",n.WWWAuthenticate="WWW-Authenticate",n.AuthenticationInfo="Authentication-Info"}(jo||(jo={})),jo))(),ri=(()=>(function(n){n.ID_TOKEN="idtoken",n.CLIENT_INFO="client.info",n.ADAL_ID_TOKEN="adal.idtoken",n.ERROR="error",n.ERROR_DESC="error.description",n.ACTIVE_ACCOUNT="active-account",n.ACTIVE_ACCOUNT_FILTERS="active-account-filters"}(ri||(ri={})),ri))(),md=(()=>(function(n){n.COMMON="common",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers"}(md||(md={})),md))(),xt=(()=>(function(n){n.CLIENT_ID="client_id",n.REDIRECT_URI="redirect_uri",n.RESPONSE_TYPE="response_type",n.RESPONSE_MODE="response_mode",n.GRANT_TYPE="grant_type",n.CLAIMS="claims",n.SCOPE="scope",n.ERROR="error",n.ERROR_DESCRIPTION="error_description",n.ACCESS_TOKEN="access_token",n.ID_TOKEN="id_token",n.REFRESH_TOKEN="refresh_token",n.EXPIRES_IN="expires_in",n.STATE="state",n.NONCE="nonce",n.PROMPT="prompt",n.SESSION_STATE="session_state",n.CLIENT_INFO="client_info",n.CODE="code",n.CODE_CHALLENGE="code_challenge",n.CODE_CHALLENGE_METHOD="code_challenge_method",n.CODE_VERIFIER="code_verifier",n.CLIENT_REQUEST_ID="client-request-id",n.X_CLIENT_SKU="x-client-SKU",n.X_CLIENT_VER="x-client-VER",n.X_CLIENT_OS="x-client-OS",n.X_CLIENT_CPU="x-client-CPU",n.X_CLIENT_CURR_TELEM="x-client-current-telemetry",n.X_CLIENT_LAST_TELEM="x-client-last-telemetry",n.X_MS_LIB_CAPABILITY="x-ms-lib-capability",n.X_APP_NAME="x-app-name",n.X_APP_VER="x-app-ver",n.POST_LOGOUT_URI="post_logout_redirect_uri",n.ID_TOKEN_HINT="id_token_hint",n.DEVICE_CODE="device_code",n.CLIENT_SECRET="client_secret",n.CLIENT_ASSERTION="client_assertion",n.CLIENT_ASSERTION_TYPE="client_assertion_type",n.TOKEN_TYPE="token_type",n.REQ_CNF="req_cnf",n.OBO_ASSERTION="assertion",n.REQUESTED_TOKEN_USE="requested_token_use",n.ON_BEHALF_OF="on_behalf_of",n.FOCI="foci",n.CCS_HEADER="X-AnchorMailbox",n.RETURN_SPA_CODE="return_spa_code",n.NATIVE_BROKER="nativebroker",n.LOGOUT_HINT="logout_hint"}(xt||(xt={})),xt))(),Ya=(()=>(function(n){n.ACCESS_TOKEN="access_token",n.XMS_CC="xms_cc"}(Ya||(Ya={})),Ya))(),Li={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create"},wc=(()=>(function(n){n.ACCOUNT="account",n.SID="sid",n.LOGIN_HINT="login_hint",n.ID_TOKEN="id_token",n.DOMAIN_HINT="domain_hint",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers",n.ACCOUNT_ID="accountIdentifier",n.HOMEACCOUNT_ID="homeAccountIdentifier"}(wc||(wc={})),wc))(),NI={PLAIN:"plain",S256:"S256"},gd=(()=>(function(n){n.QUERY="query",n.FRAGMENT="fragment",n.FORM_POST="form_post"}(gd||(gd={})),gd))(),_d=(()=>(function(n){n.IMPLICIT_GRANT="implicit",n.AUTHORIZATION_CODE_GRANT="authorization_code",n.CLIENT_CREDENTIALS_GRANT="client_credentials",n.RESOURCE_OWNER_PASSWORD_GRANT="password",n.REFRESH_TOKEN_GRANT="refresh_token",n.DEVICE_CODE_GRANT="device_code",n.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"}(_d||(_d={})),_d))(),Uo=(()=>(function(n){n.MSSTS_ACCOUNT_TYPE="MSSTS",n.ADFS_ACCOUNT_TYPE="ADFS",n.MSAV1_ACCOUNT_TYPE="MSA",n.GENERIC_ACCOUNT_TYPE="Generic"}(Uo||(Uo={})),Uo))(),dr=(()=>(function(n){n.CACHE_KEY_SEPARATOR="-",n.CLIENT_INFO_SEPARATOR="."}(dr||(dr={})),dr))(),qt=(()=>(function(n){n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",n.REFRESH_TOKEN="RefreshToken"}(qt||(qt={})),qt))(),oa=(()=>(function(n){n.ACCOUNT="Account",n.CREDENTIAL="Credential",n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.REFRESH_TOKEN="RefreshToken",n.APP_METADATA="AppMetadata",n.TEMPORARY="TempCache",n.TELEMETRY="Telemetry",n.UNDEFINED="Undefined",n.THROTTLING="Throttling"}(oa||(oa={})),oa))(),qo=(()=>(function(n){n[n.ADFS=1001]="ADFS",n[n.MSA=1002]="MSA",n[n.MSSTS=1003]="MSSTS",n[n.GENERIC=1004]="GENERIC",n[n.ACCESS_TOKEN=2001]="ACCESS_TOKEN",n[n.REFRESH_TOKEN=2002]="REFRESH_TOKEN",n[n.ID_TOKEN=2003]="ID_TOKEN",n[n.APP_METADATA=3001]="APP_METADATA",n[n.UNDEFINED=9999]="UNDEFINED"}(qo||(qo={})),qo))(),Tb="appmetadata",Tr=(()=>(function(n){n.CONFIG="config",n.CACHE="cache",n.NETWORK="network",n.HARDCODED_VALUES="hardcoded_values"}(Tr||(Tr={})),Tr))(),Si={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},fn=(()=>(function(n){n.BEARER="Bearer",n.POP="pop",n.SSH="ssh-cert"}(fn||(fn={})),fn))(),bd=(()=>(function(n){n.username="username",n.password="password"}(bd||(bd={})),bd))(),Qa=(()=>(function(n){n[n.httpSuccess=200]="httpSuccess",n[n.httpBadRequest=400]="httpBadRequest"}(Qa||(Qa={})),Qa))(),Ts=(()=>(function(n){n.FAILED_AUTO_DETECTION="1",n.INTERNAL_CACHE="2",n.ENVIRONMENT_VARIABLE="3",n.IMDS="4"}(Ts||(Ts={})),Ts))(),sa=(()=>(function(n){n.CONFIGURED_MATCHES_DETECTED="1",n.CONFIGURED_NO_AUTO_DETECTION="2",n.CONFIGURED_NOT_DETECTED="3",n.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",n.AUTO_DETECTION_REQUESTED_FAILED="5"}(sa||(sa={})),sa))(),aa=(()=>(function(n){n.NO_CACHE_HIT="0",n.FORCE_REFRESH="1",n.NO_CACHED_ACCESS_TOKEN="2",n.CACHED_ACCESS_TOKEN_EXPIRED="3",n.REFRESH_CACHED_ACCESS_TOKEN="4"}(aa||(aa={})),aa))(),Pf=(()=>(function(n){n.Jwt="JWT",n.Jwk="JWK"}(Pf||(Pf={})),Pf))(),Cd_CHANNEL_ID="53ee284d-920a-4b59-9d30-a60315b26836",zo=(()=>(function(n){n.HandshakeRequest="Handshake",n.HandshakeResponse="HandshakeResponse",n.GetToken="GetToken",n.Response="Response"}(zo||(zo={})),zo))(),Ai=(()=>(function(n){n.LocalStorage="localStorage",n.SessionStorage="sessionStorage",n.MemoryStorage="memoryStorage"}(Ai||(Ai={})),Ai))(),yo=(()=>(function(n){n.GET="GET",n.POST="POST"}(yo||(yo={})),yo))(),an=(()=>(function(n){n.AUTHORITY="authority",n.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",n.SESSION_STATE="session.state",n.REQUEST_STATE="request.state",n.NONCE_IDTOKEN="nonce.id_token",n.ORIGIN_URI="request.origin",n.RENEW_STATUS="token.renew.status",n.URL_HASH="urlHash",n.REQUEST_PARAMS="request.params",n.SCOPES="scopes",n.INTERACTION_STATUS_KEY="interaction.status",n.CCS_CREDENTIAL="ccs.credential",n.CORRELATION_ID="request.correlationId",n.NATIVE_REQUEST="request.native"}(an||(an={})),an))(),Xa=(()=>(function(n){n.WRAPPER_SKU="wrapper.sku",n.WRAPPER_VER="wrapper.version"}(Xa||(Xa={})),Xa))(),Cn=(()=>(function(n){n[n.acquireTokenRedirect=861]="acquireTokenRedirect",n[n.acquireTokenPopup=862]="acquireTokenPopup",n[n.ssoSilent=863]="ssoSilent",n[n.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",n[n.handleRedirectPromise=865]="handleRedirectPromise",n[n.acquireTokenByCode=866]="acquireTokenByCode",n[n.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",n[n.logout=961]="logout",n[n.logoutPopup=962]="logoutPopup"}(Cn||(Cn={})),Cn))(),We=(()=>(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"}(We||(We={})),We))(),gi=(()=>(function(n){n.Startup="startup",n.Login="login",n.Logout="logout",n.AcquireToken="acquireToken",n.SsoSilent="ssoSilent",n.HandleRedirect="handleRedirect",n.None="none"}(gi||(gi={})),gi))(),BI={scopes:fd},Lf="jwk",Nf=(()=>(function(n){n.React="@azure/msal-react",n.Angular="@azure/msal-angular"}(Nf||(Nf={})),Nf))(),Ff="msal.db",st=(()=>(function(n){n.INITIALIZE_START="msal:initializeStart",n.INITIALIZE_END="msal:initializeEnd",n.ACCOUNT_ADDED="msal:accountAdded",n.ACCOUNT_REMOVED="msal:accountRemoved",n.LOGIN_START="msal:loginStart",n.LOGIN_SUCCESS="msal:loginSuccess",n.LOGIN_FAILURE="msal:loginFailure",n.ACQUIRE_TOKEN_START="msal:acquireTokenStart",n.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",n.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",n.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",n.SSO_SILENT_START="msal:ssoSilentStart",n.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",n.SSO_SILENT_FAILURE="msal:ssoSilentFailure",n.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",n.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",n.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",n.HANDLE_REDIRECT_START="msal:handleRedirectStart",n.HANDLE_REDIRECT_END="msal:handleRedirectEnd",n.POPUP_OPENED="msal:popupOpened",n.LOGOUT_START="msal:logoutStart",n.LOGOUT_SUCCESS="msal:logoutSuccess",n.LOGOUT_FAILURE="msal:logoutFailure",n.LOGOUT_END="msal:logoutEnd"}(st||(st={})),st))(),Uq=function(){function n(){}return n.getInteractionStatusFromEvent=function(t,e){switch(t.eventType){case st.LOGIN_START:return gi.Login;case st.SSO_SILENT_START:return gi.SsoSilent;case st.ACQUIRE_TOKEN_START:if(t.interactionType===We.Redirect||t.interactionType===We.Popup)return gi.AcquireToken;break;case st.HANDLE_REDIRECT_START:return gi.HandleRedirect;case st.LOGOUT_START:return gi.Logout;case st.SSO_SILENT_SUCCESS:case st.SSO_SILENT_FAILURE:if(e&&e!==gi.SsoSilent)break;return gi.None;case st.LOGOUT_END:if(e&&e!==gi.Logout)break;return gi.None;case st.HANDLE_REDIRECT_END:if(e&&e!==gi.HandleRedirect)break;return gi.None;case st.LOGIN_SUCCESS:case st.LOGIN_FAILURE:case st.ACQUIRE_TOKEN_SUCCESS:case st.ACQUIRE_TOKEN_FAILURE:if(t.interactionType===We.Redirect||t.interactionType===We.Popup){if(e&&e!==gi.Login&&e!==gi.AcquireToken)break;return gi.None}}return null},n}(),xb=function(n,t){return(xb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])})(n,t)};function Ti(n,t){function e(){this.constructor=n}xb(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var at=function(){return at=Object.assign||function(t){for(var e,i=1,r=arguments.length;i0&&o[o.length-1])&&(6===c[0]||2===c[0])){e=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return o}function HI(){for(var n=[],t=0;t"u"||!t||0===t.length},n.isEmptyObj=function(t){if(t&&!n.isEmpty(t))try{var e=JSON.parse(t);return 0===Object.keys(e).length}catch{}return!0},n.startsWith=function(t,e){return 0===t.indexOf(e)},n.endsWith=function(t,e){return t.length>=e.length&&t.lastIndexOf(e)===t.length-e.length},n.queryStringToObject=function(t){var e={},i=t.split("&"),r=function(o){return decodeURIComponent(o.replace(/\+/g," "))};return i.forEach(function(o){if(o.trim()){var s=o.split(/=(.+)/g,2),a=s[0],l=s[1];a&&l&&(e[r(a)]=r(l))}}),e},n.trimArrayEntries=function(t){return t.map(function(e){return e.trim()})},n.removeEmptyStringsFromArray=function(t){return t.filter(function(e){return!n.isEmpty(e)})},n.jsonParseHelper=function(t){try{return JSON.parse(t)}catch{return null}},n.matchPattern=function(t,e){return new RegExp(t.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(e)},n}(),nn=function(){function n(t){if(this._urlString=t,$e.isEmpty(this._urlString))throw xn.createUrlEmptyError();$e.isEmpty(this.getHash())&&(this._urlString=n.canonicalizeUri(t))}return Object.defineProperty(n.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),n.canonicalizeUri=function(t){if(t){var e=t.toLowerCase();return $e.endsWith(e,"?")?e=e.slice(0,-1):$e.endsWith(e,"?/")&&(e=e.slice(0,-2)),$e.endsWith(e,"/")||(e+="/"),e}return t},n.prototype.validateAsUri=function(){var t;try{t=this.getUrlComponents()}catch(e){throw xn.createUrlParseError(e)}if(!t.HostNameAndPort||!t.PathSegments)throw xn.createUrlParseError("Given url string: "+this.urlString);if(!t.Protocol||"https:"!==t.Protocol.toLowerCase())throw xn.createInsecureAuthorityUriError(this.urlString)},n.appendQueryString=function(t,e){return $e.isEmpty(e)?t:t.indexOf("?")<0?t+"?"+e:t+"&"+e},n.removeHashFromUrl=function(t){return n.canonicalizeUri(t.split("#")[0])},n.prototype.replaceTenantPath=function(t){var e=this.getUrlComponents(),i=e.PathSegments;return t&&0!==i.length&&(i[0]===md.COMMON||i[0]===md.ORGANIZATIONS)&&(i[0]=t),n.constructAuthorityUriFromObject(e)},n.prototype.getHash=function(){return n.parseHash(this.urlString)},n.prototype.getUrlComponents=function(){var t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),e=this.urlString.match(t);if(!e)throw xn.createUrlParseError("Given url string: "+this.urlString);var i={Protocol:e[1],HostNameAndPort:e[4],AbsolutePath:e[5],QueryString:e[7]},r=i.AbsolutePath.split("/");return r=r.filter(function(o){return o&&o.length>0}),i.PathSegments=r,!$e.isEmpty(i.QueryString)&&i.QueryString.endsWith("/")&&(i.QueryString=i.QueryString.substring(0,i.QueryString.length-1)),i},n.getDomainFromUrl=function(t){var e=RegExp("^([^:/?#]+://)?([^/?#]*)"),i=t.match(e);if(!i)throw xn.createUrlParseError("Given url string: "+t);return i[2]},n.getAbsoluteUrl=function(t,e){if(t[0]===J.FORWARD_SLASH){var r=new n(e).getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+t}return t},n.parseHash=function(t){var e=t.indexOf("#"),i=t.indexOf("#/");return i>-1?t.substring(i+2):e>-1?t.substring(e+1):J.EMPTY_STRING},n.constructAuthorityUriFromObject=function(t){return new n(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},n.getDeserializedHash=function(t){if($e.isEmpty(t))return{};var e=n.parseHash(t),i=$e.queryStringToObject($e.isEmpty(e)?t:e);if(!i)throw it.createHashNotDeserializedError(JSON.stringify(i));return i},n.hashContainsKnownProperties=function(t){if($e.isEmpty(t)||t.indexOf("=")<0)return!1;var e=n.getDeserializedHash(t);return!!(e.code||e.error_description||e.error||e.state)},n}(),Me_pkceNotGenerated_code="pkce_not_created",Me_pkceNotGenerated_desc="The PKCE code challenge and verifier could not be generated.",Me_cryptoDoesNotExist_code="crypto_nonexistent",Me_cryptoDoesNotExist_desc="The crypto object or function is not available.",Me_httpMethodNotImplementedError_code="http_method_not_implemented",Me_httpMethodNotImplementedError_desc="The HTTP method given has not been implemented in this library.",Me_emptyNavigateUriError_code="empty_navigate_uri",Me_emptyNavigateUriError_desc="Navigation URI is empty. Please check stack trace for more info.",Me_hashEmptyError_code="hash_empty_error",Me_hashEmptyError_desc="Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors.",Me_hashDoesNotContainStateError_code="no_state_in_hash",Me_hashDoesNotContainStateError_desc="Hash does not contain state. Please verify that the request originated from msal.",Me_hashDoesNotContainKnownPropertiesError_code="hash_does_not_contain_known_properties",Me_hashDoesNotContainKnownPropertiesError_desc="Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors.",Me_unableToParseStateError_code="unable_to_parse_state",Me_unableToParseStateError_desc="Unable to parse state. Please verify that the request originated from msal.",Me_stateInteractionTypeMismatchError_code="state_interaction_type_mismatch",Me_stateInteractionTypeMismatchError_desc="Hash contains state but the interaction type does not match the caller.",Me_interactionInProgress_code="interaction_in_progress",Me_interactionInProgress_desc="Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors.",Me_popupWindowError_code="popup_window_error",Me_popupWindowError_desc="Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",Me_emptyWindowError_code="empty_window_error",Me_emptyWindowError_desc="window.open returned null or undefined window object.",Me_userCancelledError_code="user_cancelled",Me_userCancelledError_desc="User cancelled the flow.",Me_monitorPopupTimeoutError_code="monitor_window_timeout",Me_monitorPopupTimeoutError_desc="Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.",Me_monitorIframeTimeoutError_code="monitor_window_timeout",Me_monitorIframeTimeoutError_desc="Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.",Me_redirectInIframeError_code="redirect_in_iframe",Me_redirectInIframeError_desc="Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",Me_blockTokenRequestsInHiddenIframeError_code="block_iframe_reload",Me_blockTokenRequestsInHiddenIframeError_desc="Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors",Me_blockAcquireTokenInPopupsError_code="block_nested_popups",Me_blockAcquireTokenInPopupsError_desc="Request was blocked inside a popup because MSAL detected it was running in a popup.",Me_iframeClosedPrematurelyError_code="iframe_closed_prematurely",Me_iframeClosedPrematurelyError_desc="The iframe being monitored was closed prematurely.",Me_silentLogoutUnsupportedError_code="silent_logout_unsupported",Me_silentLogoutUnsupportedError_desc="Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",Me_noAccountError_code="no_account_error",Me_noAccountError_desc="No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",Me_silentPromptValueError_code="silent_prompt_value_error",Me_silentPromptValueError_desc="The value given for the prompt value is not valid for silent requests - must be set to 'none'.",Me_noTokenRequestCacheError_code="no_token_request_cache_error",Me_noTokenRequestCacheError_desc="No token request found in cache.",Me_unableToParseTokenRequestCacheError_code="unable_to_parse_token_request_cache_error",Me_unableToParseTokenRequestCacheError_desc="The cached token request could not be parsed.",Me_noCachedAuthorityError_code="no_cached_authority_error",Me_noCachedAuthorityError_desc="No cached authority found.",Me_authRequestNotSet_code="auth_request_not_set_error",Me_authRequestNotSet_desc="Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",Me_invalidCacheType_code="invalid_cache_type",Me_invalidCacheType_desc="Invalid cache type",Me_notInBrowserEnvironment_code="non_browser_environment",Me_notInBrowserEnvironment_desc="Login and token requests are not supported in non-browser environments.",Me_databaseNotOpen_code="database_not_open",Me_databaseNotOpen_desc="Database is not open!",Me_noNetworkConnectivity_code="no_network_connectivity",Me_noNetworkConnectivity_desc="No network connectivity. Check your internet connection.",Me_postRequestFailed_code="post_request_failed",Me_postRequestFailed_desc="Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",Me_getRequestFailed_code="get_request_failed",Me_getRequestFailed_desc="Network request failed. Please check the network trace to determine root cause.",Me_failedToParseNetworkResponse_code="failed_to_parse_response",Me_failedToParseNetworkResponse_desc="Failed to parse network response. Check network trace.",Me_unableToLoadTokenError_code="unable_to_load_token",Me_unableToLoadTokenError_desc="Error loading token to cache.",Me_signingKeyNotFoundInStorage_code="crypto_key_not_found",Me_signingKeyNotFoundInStorage_desc="Cryptographic Key or Keypair not found in browser storage.",Me_authCodeRequired_code="auth_code_required",Me_authCodeRequired_desc="An authorization code must be provided (as the `code` property on the request) to this flow.",Me_authCodeOrNativeAccountRequired_code="auth_code_or_nativeAccountId_required",Me_authCodeOrNativeAccountRequired_desc="An authorization code or nativeAccountId must be provided to this flow.",Me_databaseUnavailable_code="database_unavailable",Me_databaseUnavailable_desc="IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",Me_unableToAcquireTokenFromNativePlatform_code="unable_to_acquire_token_from_native_platform",Me_unableToAcquireTokenFromNativePlatform_desc="Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors.",Me_nativeHandshakeTimeout_code="native_handshake_timeout",Me_nativeHandshakeTimeout_desc="Timed out while attempting to establish connection to browser extension",Me_nativeExtensionNotInstalled_code="native_extension_not_installed",Me_nativeExtensionNotInstalled_desc="Native extension is not installed. If you think this is a mistake call the initialize function.",Me_nativeConnectionNotEstablished_code="native_connection_not_established",Me_nativeConnectionNotEstablished_desc="Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors.",Me_nativeBrokerCalledBeforeInitialize_code="native_broker_called_before_initialize",Me_nativeBrokerCalledBeforeInitialize_desc="You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors.",Me_nativePromptNotSupported_code="native_prompt_not_supported",Me_nativePromptNotSupported_desc="The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",Ue=function(n){function t(e,i){var r=n.call(this,e,i)||this;return Object.setPrototypeOf(r,t.prototype),r.name="BrowserAuthError",r}return Ti(t,n),t.createPkceNotGeneratedError=function(e){return new t(Me_pkceNotGenerated_code,Me_pkceNotGenerated_desc+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(Me_cryptoDoesNotExist_code,Me_cryptoDoesNotExist_desc+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(Me_httpMethodNotImplementedError_code,Me_httpMethodNotImplementedError_desc+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(Me_emptyNavigateUriError_code,Me_emptyNavigateUriError_desc)},t.createEmptyHashError=function(e){return new t(Me_hashEmptyError_code,Me_hashEmptyError_desc+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(Me_hashDoesNotContainStateError_code,Me_hashDoesNotContainStateError_desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(Me_hashDoesNotContainKnownPropertiesError_code,Me_hashDoesNotContainKnownPropertiesError_desc)},t.createUnableToParseStateError=function(){return new t(Me_unableToParseStateError_code,Me_unableToParseStateError_desc)},t.createStateInteractionTypeMismatchError=function(){return new t(Me_stateInteractionTypeMismatchError_code,Me_stateInteractionTypeMismatchError_desc)},t.createInteractionInProgressError=function(){return new t(Me_interactionInProgress_code,Me_interactionInProgress_desc)},t.createPopupWindowError=function(e){var i=Me_popupWindowError_desc;return i=$e.isEmpty(e)?i:i+" Details: "+e,new t(Me_popupWindowError_code,i)},t.createEmptyWindowCreatedError=function(){return new t(Me_emptyWindowError_code,Me_emptyWindowError_desc)},t.createUserCancelledError=function(){return new t(Me_userCancelledError_code,Me_userCancelledError_desc)},t.createMonitorPopupTimeoutError=function(){return new t(Me_monitorPopupTimeoutError_code,Me_monitorPopupTimeoutError_desc)},t.createMonitorIframeTimeoutError=function(){return new t(Me_monitorIframeTimeoutError_code,Me_monitorIframeTimeoutError_desc)},t.createRedirectInIframeError=function(e){return new t(Me_redirectInIframeError_code,Me_redirectInIframeError_desc+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(Me_blockTokenRequestsInHiddenIframeError_code,Me_blockTokenRequestsInHiddenIframeError_desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(Me_blockAcquireTokenInPopupsError_code,Me_blockAcquireTokenInPopupsError_desc)},t.createIframeClosedPrematurelyError=function(){return new t(Me_iframeClosedPrematurelyError_code,Me_iframeClosedPrematurelyError_desc)},t.createSilentLogoutUnsupportedError=function(){return new t(Me_silentLogoutUnsupportedError_code,Me_silentLogoutUnsupportedError_desc)},t.createNoAccountError=function(){return new t(Me_noAccountError_code,Me_noAccountError_desc)},t.createSilentPromptValueError=function(e){return new t(Me_silentPromptValueError_code,Me_silentPromptValueError_desc+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(Me_unableToParseTokenRequestCacheError_code,Me_unableToParseTokenRequestCacheError_desc)},t.createNoTokenRequestCacheError=function(){return new t(Me_noTokenRequestCacheError_code,Me_noTokenRequestCacheError_desc)},t.createAuthRequestNotSetError=function(){return new t(Me_authRequestNotSet_code,Me_authRequestNotSet_desc)},t.createNoCachedAuthorityError=function(){return new t(Me_noCachedAuthorityError_code,Me_noCachedAuthorityError_desc)},t.createInvalidCacheTypeError=function(){return new t(Me_invalidCacheType_code,""+Me_invalidCacheType_desc)},t.createNonBrowserEnvironmentError=function(){return new t(Me_notInBrowserEnvironment_code,Me_notInBrowserEnvironment_desc)},t.createDatabaseNotOpenError=function(){return new t(Me_databaseNotOpen_code,Me_databaseNotOpen_desc)},t.createNoNetworkConnectivityError=function(){return new t(Me_noNetworkConnectivity_code,Me_noNetworkConnectivity_desc)},t.createPostRequestFailedError=function(e,i){return new t(Me_postRequestFailed_code,Me_postRequestFailed_desc+" | Network client threw: "+e+" | Attempted to reach: "+i.split("?")[0])},t.createGetRequestFailedError=function(e,i){return new t(Me_getRequestFailed_code,Me_getRequestFailed_desc+" | Network client threw: "+e+" | Attempted to reach: "+i.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(Me_failedToParseNetworkResponse_code,Me_failedToParseNetworkResponse_desc+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(Me_unableToLoadTokenError_code,Me_unableToLoadTokenError_desc+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(Me_signingKeyNotFoundInStorage_code,Me_signingKeyNotFoundInStorage_desc+" | No match found for KeyId: "+e)},t.createAuthCodeRequiredError=function(){return new t(Me_authCodeRequired_code,Me_authCodeRequired_desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(Me_authCodeOrNativeAccountRequired_code,Me_authCodeOrNativeAccountRequired_desc)},t.createDatabaseUnavailableError=function(){return new t(Me_databaseUnavailable_code,Me_databaseUnavailable_desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(Me_unableToAcquireTokenFromNativePlatform_code,Me_unableToAcquireTokenFromNativePlatform_desc)},t.createNativeHandshakeTimeoutError=function(){return new t(Me_nativeHandshakeTimeout_code,Me_nativeHandshakeTimeout_desc)},t.createNativeExtensionNotInstalledError=function(){return new t(Me_nativeExtensionNotInstalled_code,Me_nativeExtensionNotInstalled_desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(Me_nativeConnectionNotEstablished_code,Me_nativeConnectionNotEstablished_desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(Me_nativeBrokerCalledBeforeInitialize_code,Me_nativeBrokerCalledBeforeInitialize_desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(Me_nativePromptNotSupported_code,Me_nativePromptNotSupported_desc)},t}(ut),Gq=function(){function n(){}return n.prototype.sendGetRequestAsync=function(t,e){return ke(this,void 0,void 0,function(){var i,r,o;return Re(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,fetch(t,{method:yo.GET,headers:this.getFetchHeaders(e)})];case 1:return i=s.sent(),[3,3];case 2:throw r=s.sent(),window.navigator.onLine?Ue.createGetRequestFailedError(r,t):Ue.createNoNetworkConnectivityError();case 3:return s.trys.push([3,5,,6]),o={headers:this.getHeaderDict(i.headers)},[4,i.json()];case 4:return[2,(o.body=s.sent(),o.status=i.status,o)];case 5:throw s.sent(),Ue.createFailedToParseNetworkResponseError(t);case 6:return[2]}})})},n.prototype.sendPostRequestAsync=function(t,e){return ke(this,void 0,void 0,function(){var i,r,o,s;return Re(this,function(a){switch(a.label){case 0:i=e&&e.body||J.EMPTY_STRING,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(t,{method:yo.POST,headers:this.getFetchHeaders(e),body:i})];case 2:return r=a.sent(),[3,4];case 3:throw o=a.sent(),window.navigator.onLine?Ue.createPostRequestFailedError(o,t):Ue.createNoNetworkConnectivityError();case 4:return a.trys.push([4,6,,7]),s={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 5:return[2,(s.body=a.sent(),s.status=r.status,s)];case 6:throw a.sent(),Ue.createFailedToParseNetworkResponseError(t);case 7:return[2]}})})},n.prototype.getFetchHeaders=function(t){var e=new Headers;if(!t||!t.headers)return e;var i=t.headers;return Object.keys(i).forEach(function(r){e.append(r,i[r])}),e},n.prototype.getHeaderDict=function(t){var e={};return t.forEach(function(i,r){e[r]=i}),e},n}(),Wq=function(){function n(){}return n.prototype.sendGetRequestAsync=function(t,e){return ke(this,void 0,void 0,function(){return Re(this,function(i){return[2,this.sendRequestAsync(t,yo.GET,e)]})})},n.prototype.sendPostRequestAsync=function(t,e){return ke(this,void 0,void 0,function(){return Re(this,function(i){return[2,this.sendRequestAsync(t,yo.POST,e)]})})},n.prototype.sendRequestAsync=function(t,e,i){var r=this;return new Promise(function(o,s){var a=new XMLHttpRequest;if(a.open(e,t,!0),r.setXhrHeaders(a,i),a.onload=function(){(a.status<200||a.status>=300)&&s(e===yo.POST?Ue.createPostRequestFailedError("Failed with status "+a.status,t):Ue.createGetRequestFailedError("Failed with status "+a.status,t));try{var l=JSON.parse(a.responseText),c={headers:r.getHeaderDict(a),body:l,status:a.status};o(c)}catch{s(Ue.createFailedToParseNetworkResponseError(t))}},a.onerror=function(){window.navigator.onLine?s(e===yo.POST?Ue.createPostRequestFailedError("Failed with status "+a.status,t):Ue.createGetRequestFailedError("Failed with status "+a.status,t)):s(Ue.createNoNetworkConnectivityError())},e===yo.POST&&i&&i.body)a.send(i.body);else{if(e!==yo.GET)throw Ue.createHttpMethodNotImplementedError(e);a.send()}})},n.prototype.setXhrHeaders=function(t,e){if(e&&e.headers){var i=e.headers;Object.keys(i).forEach(function(r){t.setRequestHeader(r,i[r])})}},n.prototype.getHeaderDict=function(t){var i=t.getAllResponseHeaders().trim().split(/[\r\n]+/),r={};return i.forEach(function(o){var s=o.split(": "),a=s.shift(),l=s.join(": ");a&&l&&(r[a]=l)}),r},n}(),Ln=function(){function n(){}return n.clearHash=function(t){t.location.hash=J.EMPTY_STRING,"function"==typeof t.history.replaceState&&t.history.replaceState(null,J.EMPTY_STRING,""+t.location.origin+t.location.pathname+t.location.search)},n.replaceHash=function(t){var e=t.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):J.EMPTY_STRING},n.isInIframe=function(){return window.parent!==window},n.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf("msal.")},n.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},n.getHomepage=function(){var e=new nn(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},n.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Gq:new Wq},n.blockReloadInHiddenIframes=function(){if(nn.hashContainsKnownProperties(window.location.hash)&&n.isInIframe())throw Ue.createBlockReloadInHiddenIframeError()},n.blockRedirectInIframe=function(t,e){var i=n.isInIframe();if(t===We.Redirect&&i&&!e)throw Ue.createRedirectInIframeError(i)},n.blockAcquireTokenInPopups=function(){if(n.isInPopup())throw Ue.createBlockAcquireTokenInPopupsError()},n.blockNonBrowserEnvironment=function(t){if(!t)throw Ue.createNonBrowserEnvironmentError()},n.blockNativeBrokerCalledBeforeInitialized=function(t,e){if(t&&!e)throw Ue.createNativeBrokerCalledBeforeInitialize()},n.detectIEOrEdge=function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE "),i=t.indexOf("Trident/"),r=t.indexOf("Edge/");return e>0||i>0||r>0},n}();function xs(n){return function(e){const i=new $q(n),r=e.lift(i);return i.caught=r}}class $q{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Kq(t,this.selector,this.caught))}}class Kq extends Zc{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new Do(this);this.add(i);const r=Jc(e,i);r!==i&&this.add(r)}}}const Ec=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function Vf(n=null){return t=>t.lift(new Yq(n))}class Yq{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Qq(t,this.defaultValue))}}class Qq extends D{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function VI(n=Jq){return t=>t.lift(new Xq(n))}class Xq{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Zq(t,this.errorFactory))}}class Zq extends D{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function Jq(){return new Ec}function la(n,t){const e=arguments.length>=2;return i=>i.pipe(n?Sn((r,o)=>n(r,o,i)):Ce,dn(1),e?Vf(t):VI(()=>new Ec))}function jI(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new e9(n,t,e))}}class e9{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new t9(t,this.accumulator,this.seed,this.hasSeed))}}class t9 extends D{constructor(t,e,i,r){super(t),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function Ib(n){return function(e){return 0===n?Qp():e.lift(new n9(n))}}class n9{constructor(t){if(this.total=t,this.total<0)throw new h2}call(t,e){return e.subscribe(new i9(t,this.total))}}class i9 extends D{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){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(n?Sn((r,o)=>n(r,o,i)):Ce,Ib(1),e?Vf(t):VI(()=>new Ec))}class o9{constructor(t){this.value=t}call(t,e){return e.subscribe(new s9(t,this.value))}}class s9 extends D{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function jf(n){return t=>t.lift(new a9(n))}class a9{constructor(t){this.callback=t}call(t,e){return e.subscribe(new l9(t,this.callback))}}class l9 extends D{constructor(t,e){super(t),this.add(new w(e))}}const zt="primary";class c9{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Dc(n){return new c9(n)}function u9(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[o]===r)}return n===t}function GI(n){return n.length>0?n[n.length-1]:null}function xi(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Is(n){return lv(n)?n:Mu(n)?Et(Promise.resolve(n)):Ve(n)}const p9={exact:function KI(n,t,e){if(!Ja(n.segments,t.segments)||!Uf(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!KI(n.children[i],t.children[i],e))return!1;return!0},subset:YI},WI={exact:function f9(n,t){return Go(n,t)},subset:function m9(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>qI(n[e],t[e]))},ignored:()=>!0};function $I(n,t,e){return p9[e.paths](n.root,t.root,e.matrixParams)&&WI[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function YI(n,t,e){return QI(n,t,t.segments,e)}function QI(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Ja(r,e)||t.hasChildren()||!Uf(r,e,i))}if(n.segments.length===e.length){if(!Ja(n.segments,e)||!Uf(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!YI(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(Ja(n.segments,r)&&Uf(n.segments,r,i)&&n.children[zt])&&QI(n.children[zt],t,o,i)}}function Uf(n,t,e){return t.every((i,r)=>WI[e](n[r].parameters,i.parameters))}class Za{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Dc(this.queryParams)),this._queryParamMap}toString(){return v9.serialize(this)}}class $t{constructor(t,e){this.segments=t,this.children=e,this.parent=null,xi(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return qf(this)}}class wd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Dc(this.parameters)),this._parameterMap}toString(){return tM(this)}}function Ja(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class ZI{parse(t){const e=new T9(t);return new Za(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Ed(t.root,!0)}`,i=function C9(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${zf(e)}=${zf(r)}`).join("&"):`${zf(e)}=${zf(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function y9(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const v9=new ZI;function qf(n){return n.segments.map(t=>tM(t)).join("/")}function Ed(n,t){if(!n.hasChildren())return qf(n);if(t){const e=n.children[zt]?Ed(n.children[zt],!1):"",i=[];return xi(n.children,(r,o)=>{o!==zt&&i.push(`${o}:${Ed(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function _9(n,t){let e=[];return xi(n.children,(i,r)=>{r===zt&&(e=e.concat(t(i,r)))}),xi(n.children,(i,r)=>{r!==zt&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===zt?[Ed(n.children[zt],!1)]:[`${r}:${Ed(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[zt]?`${qf(n)}/${e[0]}`:`${qf(n)}/(${e.join("//")})`}}function JI(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function zf(n){return JI(n).replace(/%3B/gi,";")}function kb(n){return JI(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Gf(n){return decodeURIComponent(n)}function eM(n){return Gf(n.replace(/\+/g,"%20"))}function tM(n){return`${kb(n.path)}${function b9(n){return Object.keys(n).map(t=>`;${kb(t)}=${kb(n[t])}`).join("")}(n.parameters)}`}const w9=/^[^\/()?;=#]+/;function Wf(n){const t=n.match(w9);return t?t[0]:""}const E9=/^[^=?&#]+/,S9=/^[^&#]+/;class T9{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $t([],{}):new $t([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[zt]=new $t(t,e)),i}parseSegment(){const t=Wf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Se(4009,!1);return this.capture(t),new wd(Gf(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Wf(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Wf(this.remaining);r&&(i=r,this.capture(i))}t[Gf(e)]=Gf(i)}parseQueryParam(t){const e=function D9(n){const t=n.match(E9);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function A9(n){const t=n.match(S9);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=eM(e),o=eM(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Wf(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Se(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=zt);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[zt]:new $t([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Se(4011,!1)}}function Rb(n){return n.segments.length>0?new $t([],{[zt]:n}):n}function $f(n){const t={};for(const i of Object.keys(n.children)){const o=$f(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function x9(n){if(1===n.numberOfChildren&&n.children[zt]){const t=n.children[zt];return new $t(n.segments.concat(t.segments),t.children)}return n}(new $t(n.segments,t))}function el(n){return n instanceof Za}function k9(n,t,e,i,r){if(0===e.length)return Sc(t.root,t.root,t.root,i,r);const o=function rM(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new iM(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return xi(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?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new iM(e,t,i)}(e);return o.toRoot()?Sc(t.root,t.root,new $t([],{}),i,r):function s(l){const c=function O9(n,t,e,i){if(n.isAbsolute)return new Ac(t.root,!0,0);if(-1===i)return new Ac(e,e===t.root,0);return function oM(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Se(4005,!1);r=i.segments.length}return new Ac(i,!1,r-o)}(e,i+(Dd(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?Ad(c.segmentGroup,c.index,o.commands):Pb(c.segmentGroup,c.index,o.commands);return Sc(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function Dd(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Sd(n){return"object"==typeof n&&null!=n&&n.outlets}function Sc(n,t,e,i,r){let s,o={};i&&xi(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:nM(n,t,e);const a=Rb($f(s));return new Za(a,o,r)}function nM(n,t,e){const i={};return xi(n.children,(r,o)=>{i[o]=r===t?e:nM(r,t,e)}),new $t(n.segments,i)}class iM{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Dd(i[0]))throw new Se(4003,!1);const r=i.find(Sd);if(r&&r!==GI(i))throw new Se(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ac{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Pb(n,t,e){if(n||(n=new $t([],{})),0===n.segments.length&&n.hasChildren())return Ad(n,t,e);const i=function L9(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=n.segments[r],a=e[i];if(Sd(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!aM(l,c,s))return o;i+=2}else{if(!aM(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=Pb(n.children[s],t,o))}),xi(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new $t(n.segments,r)}}function Lb(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=Lb(new $t([],{}),0,e))}),t}function sM(n){const t={};return xi(n,(e,i)=>t[i]=`${e}`),t}function aM(n,t,e){return n==e.path&&Go(t,e.parameters)}class Ms{constructor(t,e){this.id=t,this.url=e}}class lM extends Ms{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Td extends Ms{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Kf extends Ms{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class cM extends Ms{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class F9 extends Ms{constructor(t,e,i,r){super(t,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 B9 extends Ms{constructor(t,e,i,r){super(t,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 H9 extends Ms{constructor(t,e,i,r,o){super(t,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 V9 extends Ms{constructor(t,e,i,r){super(t,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 j9 extends Ms{constructor(t,e,i,r){super(t,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 U9{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class q9{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class z9{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class G9{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class W9{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $9{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class uM{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Nb(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=Nb(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Fb(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return Fb(t,this._root).map(e=>e.value)}}function Nb(n,t){if(n===t.value)return t;for(const e of t.children){const i=Nb(n,e);if(i)return i}return null}function Fb(n,t){if(n===t.value)return[t];for(const e of t.children){const i=Fb(n,e);if(i.length)return i.unshift(t),i}return[]}class ks{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Tc(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class dM extends uM{constructor(t,e){super(t),this.snapshot=e,Bb(this,t)}toString(){return this.snapshot.toString()}}function hM(n,t){const e=function Y9(n,t){const s=new Yf([],{},{},"",{},zt,t,null,n.root,-1,{});return new fM("",new ks(s,[]))}(n,t),i=new sr([new wd("",{})]),r=new sr({}),o=new sr({}),s=new sr({}),a=new sr(""),l=new xc(i,r,s,a,o,zt,t,e.root);return l.snapshot=e.root,new dM(new ks(l,[]),e)}class xc{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,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(ue(t=>Dc(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ue(t=>Dc(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pM(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)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 Q9(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Yf{constructor(t,e,i,r,o,s,a,l,c,u,d,h){this.url=t,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._correctedLastPathIndex=h??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=Dc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Dc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class fM extends uM{constructor(t,e){super(e),this.url=t,Bb(this,e)}toString(){return mM(this._root)}}function Bb(n,t){t.value._routerState=n,t.children.forEach(e=>Bb(n,e))}function mM(n){const t=n.children.length>0?` { ${n.children.map(mM).join(", ")} } `:"";return`${n.value}${t}`}function Hb(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Go(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),Go(t.params,e.params)||n.params.next(e.params),function d9(n,t){if(n.length!==t.length)return!1;for(let e=0;eGo(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||Vb(n.parent,t.parent))}function xd(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function Z9(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return xd(n,i,r);return xd(n,i)})}(n,t,e);return new ks(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>xd(n,a)),s}}const i=function J9(n){return new xc(new sr(n.url),new sr(n.params),new sr(n.queryParams),new sr(n.fragment),new sr(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>xd(n,o));return new ks(i,r)}}const jb="ngNavigationCancelingError";function gM(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=el(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=_M(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function _M(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[jb]=!0,i.cancellationCode=t,e&&(i.url=e),i}function vM(n){return yM(n)&&el(n.url)}function yM(n){return n&&n[jb]}class ez{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Id,this.attachRef=null}}class Id{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new ez,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}const Qf=!1;let bM=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Be,this.deactivateEvents=new Be,this.attachEvents=new Be,this.detachEvents=new Be,this.name=r||zt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&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 Se(4012,Qf);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Se(4012,Qf);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Se(4012,Qf);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 Se(4013,Qf);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new tz(e,a,r.injector);if(i&&function nz(n){return!!n.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 n.\u0275fac=function(e){return new(e||n)(p(Id),p(En),io("name"),p(Bt),p(Aa))},n.\u0275dir=he({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class tz{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===xc?this.route:t===Id?this.childContexts:this.parent.get(t,e)}}let CM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ze({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&xe(0,"router-outlet")},dependencies:[bM],encapsulation:2}),n})();function wM(n,t){return n.providers&&!n._injector&&(n._injector=function vv(n,t,e=null){return new GB(n,t,e).injector}(n.providers,t,`Route: ${n.path}`)),n._injector??t}function qb(n){const t=n.children&&n.children.map(qb),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==zt&&(e.component=CM),e}function zr(n){return n.outlet||zt}function EM(n,t){const e=n.filter(i=>zr(i)===t);return e.push(...n.filter(i=>zr(i)!==t)),e}function DM(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class az{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Hb(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Tc(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),xi(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=Tc(t);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(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=Tc(t);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(t,e,i){const r=Tc(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new $9(o.value.snapshot))}),t.children.length&&this.forwardEvent(new G9(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(Hb(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,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),Hb(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=DM(r.snapshot),l=a?.get(ro)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class SM{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Xf{constructor(t,e){this.component=t,this.route=e}}function lz(n,t,e){const i=n._root;return Md(i,t?t._root:null,e,[i.value])}function Zf(n,t,e){return(DM(t)??e).get(n)}function Md(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Tc(t);return n.children.forEach(s=>{(function uz(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function dz(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Ja(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Ja(n.url,t.url)||!Go(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Vb(n,t)||!Go(n.queryParams,t.queryParams);default:return!Vb(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new SM(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Md(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Xf(a.outlet.component,s))}else s&&kd(t,a,r),r.canActivateChecks.push(new SM(i)),Md(n,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]}),xi(o,(s,a)=>kd(s,e.getContext(a),r)),r}function kd(n,t,e){const i=Tc(n),r=n.value;xi(i,(o,s)=>{kd(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new Xf(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Rd(n){return"function"==typeof n}const Jf=Symbol("INITIAL_VALUE");function Ic(){return Kn(n=>Zy(n.map(t=>t.pipe(dn(1),ii(Jf)))).pipe(ue(t=>{for(const e of t)if(!0!==e){if(e===Jf)return Jf;if(!1===e||e instanceof Za)return e}return!0}),Sn(t=>t!==Jf),dn(1)))}function AM(n){return function W(...n){return te(n)}(Yn(t=>{if(el(t))throw gM(0,t)}),ue(t=>!0===t))}const zb={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function TM(n,t,e,i,r){const o=Gb(n,t,e);return o.matched?function xz(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?Ve(r.map(s=>{const a=n.get(s),l=function _z(n){return n&&Rd(n.canMatch)}(a)?a.canMatch(t,e):a(t,e);return Is(l)})).pipe(Ic(),AM()):Ve(!0)}(i=wM(t,i),t,e).pipe(ue(s=>!0===s?o:{...zb})):Ve(o)}function Gb(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...zb}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||u9)(e,n,t);if(!r)return{...zb};const o={};xi(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 em(n,t,e,i,r="corrected"){if(e.length>0&&function kz(n,t,e){return e.some(i=>tm(n,t,i)&&zr(i)!==zt)}(n,e,i)){const s=new $t(t,function Mz(n,t,e,i){const r={};r[zt]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&zr(o)!==zt){const s=new $t([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[zr(o)]=s}return r}(n,t,i,new $t(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function Rz(n,t,e){return e.some(i=>tm(n,t,i))}(n,e,i)){const s=new $t(n.segments,function Iz(n,t,e,i,r,o){const s={};for(const a of i)if(tm(n,e,a)&&!r[zr(a)]){const l=new $t([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[zr(a)]=l}return{...r,...s}}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new $t(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function tm(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function xM(n,t,e,i){return!!(zr(n)===i||i!==zt&&tm(t,e,n))&&("**"===n.path||Gb(t,n,e).matched)}function IM(n,t,e){return 0===t.length&&!n.children[e]}const nm=!1;class im{constructor(t){this.segmentGroup=t||null}}class MM{constructor(t){this.urlTree=t}}function Od(n){return ja(new im(n))}function kM(n){return ja(new MM(n))}class Nz{constructor(t,e,i,r,o){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const t=em(this.urlTree.root,[],[],this.config).segmentGroup,e=new $t(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,zt).pipe(ue(o=>this.createUrlTree($f(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(xs(o=>{if(o instanceof MM)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof im?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,zt).pipe(ue(r=>this.createUrlTree($f(r),t.queryParams,t.fragment))).pipe(xs(r=>{throw r instanceof im?this.noMatchError(r):r}))}noMatchError(t){return new Se(4002,nm)}createUrlTree(t,e,i){const r=Rb(t);return new Za(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(ue(o=>new $t([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Et(r).pipe(Bo(o=>{const s=i.children[o],a=EM(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(ue(l=>({segment:l,outlet:o})))}),jI((o,s)=>(o[s.outlet]=s.segment,o),{}),UI())}expandSegment(t,e,i,r,o,s){return Et(i).pipe(Bo(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(xs(c=>{if(c instanceof im)return Ve(null);throw c}))),la(a=>!!a),xs((a,l)=>{if(a instanceof Ec||"EmptyError"===a.name)return IM(e,r,o)?Ve(new $t([],{})):Od(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return xM(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):Od(e):Od(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?kM(o):this.lineralizeSegments(i,o).pipe(Vi(s=>{const a=new $t(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Gb(e,r,o);if(!a)return Od(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?kM(d):this.lineralizeSegments(r,d).pipe(Vi(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=wM(i,t),i.loadChildren?(i._loadedRoutes?Ve({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(ue(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new $t(r,{})))):Ve(new $t(r,{}))):TM(e,i,r,t).pipe(Kn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(Vi(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:f,slicedSegments:_}=em(e,a,l,h),S=new $t(f.segments,f.children);if(0===_.length&&S.hasChildren())return this.expandChildren(d,h,S).pipe(ue(ee=>new $t(a,ee)));if(0===h.length&&0===_.length)return Ve(new $t(a,{}));const U=zr(i)===o;return this.expandSegment(d,S,h,_,U?zt:o,!0).pipe(ue(ve=>new $t(a.concat(ve.segments),ve.children)))})):Od(e)))}getChildConfig(t,e,i){return e.children?Ve({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?Ve({routes:e._loadedRoutes,injector:e._loadedInjector}):function Tz(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?Ve(!0):Ve(r.map(s=>{const a=n.get(s),l=function pz(n){return n&&Rd(n.canLoad)}(a)?a.canLoad(t,e):a(t,e);return Is(l)})).pipe(Ic(),AM())}(t,e,i).pipe(Vi(r=>r?this.configLoader.loadChildren(t,e).pipe(Yn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Pz(n){return ja(_M(nm,3))}())):Ve({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Ve(i);if(r.numberOfChildren>1||!r.children[zt])return ja(new Se(4e3,nm));r=r.children[zt]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new Za(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return xi(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return xi(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new $t(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new Se(4001,nm);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}class Bz{}class jz{constructor(t,e,i,r,o,s,a,l){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const t=em(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,zt).pipe(ue(e=>{if(null===e)return null;const i=new Yf([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},zt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ks(i,e),o=new fM(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=pM(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return Et(Object.keys(i.children)).pipe(Bo(r=>{const o=i.children[r],s=EM(e,r);return this.processSegmentGroup(t,s,o,r)}),jI((r,o)=>r&&o?(r.push(...o),r):null),G2(r=>null!==r),Vf(null),UI(),ue(r=>{if(null===r)return null;const o=RM(r);return function Uz(n){n.sort((t,e)=>t.value.outlet===zt?-1:e.value.outlet===zt?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return Et(e).pipe(Bo(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),la(s=>!!s),xs(s=>{if(s instanceof Ec)return IM(i,r,o)?Ve([]):Ve(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!xM(e,i,r,o))return Ve(null);let s;if("**"===e.path){const a=r.length>0?GI(r).parameters:{},l=PM(i)+r.length;s=Ve({snapshot:new Yf(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,NM(e),zr(e),e.component??e._loadedComponent??null,e,OM(i),l,FM(e),l),consumedSegments:[],remainingSegments:[]})}else s=TM(i,e,r,t).pipe(ue(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=PM(i)+l.length;return{snapshot:new Yf(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,NM(e),zr(e),e.component??e._loadedComponent??null,e,OM(i),d,FM(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(Kn(a=>{if(null===a)return Ve(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function qz(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:_}=em(i,c,u,h.filter(U=>void 0===U.redirectTo),this.relativeLinkResolution);if(0===_.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(ue(U=>null===U?null:[new ks(l,U)]));if(0===h.length&&0===_.length)return Ve([new ks(l,[])]);const S=zr(e)===o;return this.processSegment(d,h,f,_,S?zt:o).pipe(ue(U=>null===U?null:[new ks(l,U)]))}))}}function zz(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function RM(n){const t=[],e=new Set;for(const i of n){if(!zz(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=RM(i.children);t.push(new ks(i.value,r))}return t.filter(i=>!e.has(i))}function OM(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function PM(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function NM(n){return n.data||{}}function FM(n){return n.resolve||{}}const Wb=Symbol("RouteTitle");function BM(n){return"string"==typeof n.title||null===n.title}function $b(n){return Kn(t=>{const e=n(t);return e?Et(e).pipe(ue(()=>t)):Ve(t)})}class e7 extends class Jz{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Kb=new pe("ROUTES");let VM=(()=>{class n{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 Ve(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Is(e.loadComponent()).pipe(Yn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),jf(()=>{this.componentLoaders.delete(e)})),r=new ph(i,()=>new L).pipe(hh());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Ve({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(ue(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=function zI(n){return Array.prototype.concat.apply([],n)}(l.get(Kb,[],vt.Self|vt.Optional)));return{routes:c.map(qb),injector:l}}),jf(()=>{this.childrenLoaders.delete(i)})),s=new ph(o,()=>new L).pipe(hh());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Is(e()).pipe(Vi(i=>i instanceof zS||Array.isArray(i)?Ve(i):Et(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(T(Rn),T(OA))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class n7{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function r7(n){throw n}function o7(n,t,e){return t.parse("/")}const s7={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},a7={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let pr=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new L,this.errorHandler=r7,this.malformedUriErrorHandler=o7,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>Ve(void 0),this.urlHandlingStrategy=new n7,this.routeReuseStrategy=new e7,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(VM),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new q9(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new U9(h)),this.ngModule=s.get(Ra),this.console=s.get(Y5);const d=s.get(nt);this.isNgZoneEnabled=d instanceof nt&&nt.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function h9(){return new Za(new $t([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=hM(this.currentUrlTree,this.rootComponentType),this.transitions=new sr({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(Sn(r=>0!==r.id),ue(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Kn(r=>{let o=!1,s=!1;return Ve(r).pipe(Yn(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Kn(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return jM(a.source)&&(this.browserUrlTree=a.extractedUrl),Ve(a).pipe(Kn(d=>{const h=this.transitions.getValue();return i.next(new lM(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?gs:Promise.resolve(d)}),function Fz(n,t,e,i){return Kn(r=>function Lz(n,t,e,i,r){return new Nz(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(ue(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Yn(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function Wz(n,t,e,i,r,o){return Vi(s=>function Vz(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new jz(n,t,e,i,r,s,a,o).recognize().pipe(Kn(l=>null===l?function Hz(n){return new b(t=>t.error(n))}(new Bz):Ve(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(ue(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Yn(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(f,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new F9(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:_,restoredState:S,extras:U}=a,Z=new lM(h,this.serializeUrl(f),_,S);i.next(Z);const ve=hM(f,this.rootComponentType).snapshot;return Ve(r={...a,targetSnapshot:ve,urlAfterRedirects:f,extras:{...U,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),gs}),Yn(a=>{const l=new B9(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ue(a=>r={...a,guards:lz(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function yz(n,t){return Vi(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Ve({...e,guardsResult:!0}):function bz(n,t,e,i){return Et(n).pipe(Vi(r=>function Az(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Ve(o.map(a=>{const l=Zf(a,t,r);return Is(function gz(n){return n&&Rd(n.canDeactivate)}(l)?l.canDeactivate(n,t,e,i):l(n,t,e,i)).pipe(la())})).pipe(Ic()):Ve(!0)}(r.component,r.route,e,t,i)),la(r=>!0!==r,!0))}(s,i,r,n).pipe(Vi(a=>a&&function hz(n){return"boolean"==typeof n}(a)?function Cz(n,t,e,i){return Et(t).pipe(Bo(r=>uc(function Ez(n,t){return null!==n&&t&&t(new z9(n)),Ve(!0)}(r.route.parent,i),function wz(n,t){return null!==n&&t&&t(new W9(n)),Ve(!0)}(r.route,i),function Sz(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function cz(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>ea(()=>Ve(s.guards.map(l=>{const c=Zf(l,s.node,e);return Is(function mz(n){return n&&Rd(n.canActivateChild)}(c)?c.canActivateChild(i,n):c(i,n)).pipe(la())})).pipe(Ic())));return Ve(o).pipe(Ic())}(n,r.path,e),function Dz(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Ve(!0);const r=i.map(o=>ea(()=>{const s=Zf(o,t,e);return Is(function fz(n){return n&&Rd(n.canActivate)}(s)?s.canActivate(t,n):s(t,n)).pipe(la())}));return Ve(r).pipe(Ic())}(n,r.route,e))),la(r=>!0!==r,!0))}(i,o,n,t):Ve(a)),ue(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Yn(a=>{if(r.guardsResult=a.guardsResult,el(a.guardsResult))throw gM(0,a.guardsResult);const l=new H9(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Sn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),$b(a=>{if(a.guards.canActivateChecks.length)return Ve(a).pipe(Yn(l=>{const c=new V9(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Kn(l=>{let c=!1;return Ve(l).pipe(function $z(n,t){return Vi(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Ve(e);let o=0;return Et(r).pipe(Bo(s=>function Kz(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!BM(r)&&(o[Wb]=r.title),function Yz(n,t,e,i){const r=function Qz(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return Ve({});const o={};return Et(r).pipe(Vi(s=>function Xz(n,t,e,i){const r=Zf(n,t,i);return Is(r.resolve?r.resolve(t,e):r(t,e))}(n[s],t,e,i).pipe(la(),Yn(a=>{o[s]=a}))),Ib(1),function r9(n){return t=>t.lift(new o9(n))}(o),xs(s=>s instanceof Ec?gs:ja(s)))}(o,n,t,i).pipe(ue(s=>(n._resolvedData=s,n.data=pM(n,e).resolve,r&&BM(r)&&(n.data[Wb]=r.title),null)))}(s.route,i,n,t)),Yn(()=>o++),Ib(1),Vi(s=>o===r.length?Ve(e):gs))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Yn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Yn(l=>{const c=new j9(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),$b(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Yn(d=>{c.component=d}),ue(()=>{})));for(const d of c.children)u.push(...l(d));return u};return Zy(l(a.targetSnapshot.root)).pipe(Vf(),dn(1))}),$b(()=>this.afterPreactivation()),ue(a=>{const l=function X9(n,t,e){const i=xd(n,t._root,e?e._root:void 0);return new dM(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Yn(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>ue(i=>(new az(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Yn({next(){o=!0},complete(){o=!0}}),jf(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),xs(a=>{if(s=!0,yM(a)){vM(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new Kf(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),vM(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jM(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new cM(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return gs}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(qb),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.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=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),k9(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=el(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function l7(n){for(let t=0;t{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Td(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,f)=>{a=h,l=f});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,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.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.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))}cancelNavigationTransition(e,i,r){const o=new Kf(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){Vl()},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();function jM(n){return"imperative"!==n}const Zb=new pe("MSAL_INSTANCE"),YM=new pe("MSAL_GUARD_CONFIG"),b7=new pe("MSAL_INTERCEPTOR_CONFIG"),C7=new pe("MSAL_BROADCAST_CONFIG"),QM="@azure/msal-angular",Jb="2.4.1";let tl=(()=>{class n{constructor(e,i){this.instance=e,this.location=i;const r=this.location.path(!0).split("#").pop();r&&(this.redirectHash=`#${r}`),this.instance.initializeWrapperLibrary(Nf.Angular,Jb)}initialize(){return Et(this.instance.initialize())}acquireTokenPopup(e){return Et(this.instance.acquireTokenPopup(e))}acquireTokenRedirect(e){return Et(this.instance.acquireTokenRedirect(e))}acquireTokenSilent(e){return Et(this.instance.acquireTokenSilent(e))}handleRedirectObservable(e){return Et(this.instance.handleRedirectPromise(e||this.redirectHash))}loginPopup(e){return Et(this.instance.loginPopup(e))}loginRedirect(e){return Et(this.instance.loginRedirect(e))}logout(e){return Et(this.instance.logout(e))}logoutRedirect(e){return Et(this.instance.logoutRedirect(e))}logoutPopup(e){return Et(this.instance.logoutPopup(e))}ssoSilent(e){return Et(this.instance.ssoSilent(e))}getLogger(){return this.logger||(this.logger=this.instance.getLogger().clone(QM,Jb)),this.logger}setLogger(e){this.logger=e.clone(QM,Jb),this.instance.setLogger(e)}}return n.\u0275fac=function(e){return new(e||n)(T(Zb),T(Na))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),XM=(()=>{class n{constructor(e,i,r){this.msalInstance=e,this.authService=i,this.msalBroadcastConfig=r,this.msalBroadcastConfig&&this.msalBroadcastConfig.eventsToReplay>0?(this.authService.getLogger().verbose(`BroadcastService - replayPastEvents set on BroadcastConfig, replaying the last ${this.msalBroadcastConfig.eventsToReplay} events`),this._msalSubject=new f2(this.msalBroadcastConfig.eventsToReplay)):this._msalSubject=new L,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new sr(gi.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(o=>{this._msalSubject.next(o);const s=Uq.getInteractionStatusFromEvent(o,this._inProgress.value);null!==s&&(this.authService.getLogger().verbose(`BroadcastService - ${o.eventType} results in setting inProgress from ${this._inProgress.value} to ${s}`),this._inProgress.next(s))})}}return n.\u0275fac=function(e){return new(e||n)(T(Zb),T(tl),T(C7,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),w7=(()=>{class n{constructor(e,i,r,o,s){this.msalGuardConfig=e,this.msalBroadcastService=i,this.authService=r,this.location=o,this.router=s,this.msalBroadcastService.inProgress$.subscribe()}parseUrl(e){return this.router.parseUrl(e)}getDestinationUrl(e){this.authService.getLogger().verbose("Guard - getting destination url");const i=document.getElementsByTagName("base"),r=this.location.normalize(i.length?i[0].href:window.location.origin),o=this.location.prepareExternalUrl(e);return o.startsWith("#")?(this.authService.getLogger().verbose("Guard - destination by hash routing"),`${r}/${o}`):`${r}${e}`}loginInteractively(e){const i="function"==typeof this.msalGuardConfig.authRequest?this.msalGuardConfig.authRequest(this.authService,e):Object.assign({},this.msalGuardConfig.authRequest);if(this.msalGuardConfig.interactionType===We.Popup)return this.authService.getLogger().verbose("Guard - logging in by popup"),this.authService.loginPopup(i).pipe(ue(o=>(this.authService.getLogger().verbose("Guard - login by popup successful, can activate, setting active account"),this.authService.instance.setActiveAccount(o.account),!0)));this.authService.getLogger().verbose("Guard - logging in by redirect");const r=this.getDestinationUrl(e.url);return this.authService.loginRedirect(Object.assign({redirectStartPage:r},i)).pipe(ue(()=>!1))}activateHelper(e){if(this.msalGuardConfig.interactionType!==We.Popup&&this.msalGuardConfig.interactionType!==We.Redirect)throw new Hf("invalid_interaction_type","Invalid interaction type provided to MSAL Guard. InteractionType.Popup or InteractionType.Redirect must be provided in the MsalGuardConfiguration");if(this.authService.getLogger().verbose("MSAL Guard activated"),!(typeof window<"u"))return this.authService.getLogger().info("Guard - window is undefined, MSAL does not support server-side token acquisition"),Ve(!0);if(nn.hashContainsKnownProperties(window.location.hash)&&Ln.isInIframe()&&!this.authService.instance.getConfiguration().system.allowRedirectInIframe)return this.authService.getLogger().warning("Guard - redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."),Ve(!1);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));const i=this.location.path(!0);return this.authService.handleRedirectObservable().pipe(Bo(()=>{if(!this.authService.instance.getAllAccounts().length)return e?(this.authService.getLogger().verbose("Guard - no accounts retrieved, log in required to activate"),this.loginInteractively(e)):(this.authService.getLogger().verbose("Guard - no accounts retrieved, no state, cannot load"),Ve(!1));if(this.authService.getLogger().verbose("Guard - at least 1 account exists, can activate or load"),e){const r=this.includesCode(e.url),o=!!e.root&&!!e.root.fragment&&this.includesCode(`#${e.root.fragment}`),s=0===this.location.prepareExternalUrl(e.url).indexOf("#");if(r&&(o||s))return this.authService.getLogger().info("Guard - Hash contains known code response, stopping navigation."),i.indexOf("#")>-1?Ve(this.parseUrl(this.location.path())):Ve(this.parseUrl(""))}return Ve(!0)}),xs(r=>(this.authService.getLogger().error("Guard - error while logging in, unable to activate"),this.authService.getLogger().errorPii(`Guard - error: ${r.message}`),this.loginFailedRoute&&parseInt(Y0.major,10)>9&&e?(this.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),Ve(this.loginFailedRoute)):Ve(!1))))}includesCode(e){return e.lastIndexOf("/code")>-1&&e.lastIndexOf("/code")===e.length-5||e.indexOf("#code=")>-1||e.indexOf("&code=")>-1}canActivate(e,i){return this.authService.getLogger().verbose("Guard - canActivate"),this.activateHelper(i)}canActivateChild(e,i){return this.authService.getLogger().verbose("Guard - canActivateChild"),this.activateHelper(i)}canLoad(){return this.authService.getLogger().verbose("Guard - canLoad"),this.activateHelper()}}return n.\u0275fac=function(e){return new(e||n)(T(YM),T(XM),T(tl),T(Na),T(pr))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),ZM=(()=>{class n{static forRoot(e,i,r){return{ngModule:n,providers:[{provide:Zb,useValue:e},{provide:YM,useValue:i},{provide:b7,useValue:r},tl]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[w7,XM],imports:[Xi]}),n})(),Mc=(()=>{class n{constructor(e,i,r){this.msalService=e,this.messageService=i,this.globals=r}setLoginDisplay(){console.log(this.msalService.instance.getAllAccounts().length>0)}isDesktopClient(){return Office.context.platform!==Office.PlatformType.OfficeOnline}signIn(e){return Ee(function*(){})()}clientSignIn(){var e=this;return Ee(function*(){console.log("Client Login"),e.signIn()})()}signOut(){var e=this;return Ee(function*(){yield e.msalService.logout().toPromise(),e.user=void 0,e.authenticated=!1})()}signOutPopup(){var e=this;return Ee(function*(){yield e.msalService.logoutPopup().toPromise(),e.user=void 0,e.authenticated=!1})()}getAccessToken(){return Ee(function*(){return""})()}getUser(){var e=this;return Ee(function*(){if(!e.authenticated)return;const r=yield kf.init({authProvider:(s=Ee(function*(a){const l=yield e.getAccessToken().catch(c=>{a(c,null)});l?a(null,l):a("Could not get an access token",null)}),function(l){return s.apply(this,arguments)})}).api("/me").select("displayName,mail,mailboxSettings,userPrincipalName").get(),o=new Bq;var s;return o.displayName=r.displayName??"",o.email=r.mail??r.userPrincipalName??"",o.timeZone=r.mailboxSettings?.timeZone??"UTC",o.avatar="/assets/no-profile-photo.png",o})()}}return n.\u0275fac=function(e){return new(e||n)(T(tl),T(en),T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wo=(()=>{class n{constructor(e){this.globalsService=e,this.indexParamStart="index.xsp?",this.urlExtension=this.indexParamStart+"loadTabs=false"}convertToLink(e){return this.globalsService.webInt+this.urlExtension+"&openDocument="+e}openWebIntWithParams(e){e=e.set("loadTabs","false"),window.open(this.globalsService.webInt+this.indexParamStart+e.toString(),"_blank")}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const eC="loginBM.xsp";let JM=(()=>{class n{constructor(e,i,r,o,s,a){this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.authService=s,this.webintLinkService=a,this.apiOverviewPath="",this.pathFetchInProgress=!1,this.loggedIn=!1,this.loggingOut=!1,this.listenerSet=!1,this.dialog=null,this.options={},this.apiOverviewPath="restBM.xsp/verserest/"}connect(){return new b(e=>{this.authService.isDesktopClient()?Office.context.ui.displayDialogAsync(window.location.origin+window.location.pathname+"?redirect",{height:25,width:25},i=>{this.dialog=i.value,this.dialog.addEventHandler(Office.EventType.DialogMessageReceived,this.processOutlookMessage.bind(this)),this.dialog.addEventHandler(Office.EventType.DialogEventReceived,this.onDialogClose.bind(this,e))}):(this.createListenerLogin(e),this.loginWindow=this.popupWindow(this.globals.webInt+eC,"login",440,190),this.globals.loginOpen=!0,(!this.loginWindow||this.loginWindow.closed||typeof this.loginWindow.closed>"u")&&(this.loggingOut||this.messageService.showError(this.globals.languageConfLocal.popupBlocked,void 0,!0),"Verse"===this.globals.curConnectorType&&location.reload()))})}objectToHttpParams(e){let i=new Yt;for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=e[r];o&&(i=i.set(r,o))}return i}reload(){if("Owa"===this.globals.curConnectorType)window.location.reload();else if(sessionStorage.setItem("verseAppData",JSON.stringify(this.globals.curConnector.data)),window,!window.location.href.includes("index.html")){let i="index.html";window.location.href.endsWith("/")||(i="/"+i),window.location.href+=i}}getReqModal(e,i){return this.globals.modalCacheFlag?(null==i&&(i=new Yt),this.getReq(e,i)):this.getReqNoCache(e,i)}getReqNoCache(e,i,r,o){return null==i&&(i=new Yt),i=i.append("noCache","true"),this.getReq(e,i,r,o)}getReq(e,i,r,o){let s;return s=null!=r&&!1===r?this.globals.changeOwnOptions({responseType:"text"}):void 0,!e.includes("keepAlive")&&!o&&this.activateSpinner(),null==i&&(i=new Yt),new b(a=>{this.getReqHandler(e,i,a,0,s,r)})}getReqHandler(e,i,r,o,s,a){var l=this;return Ee(function*(){if(null!=l.pathInfo){let u,c=l.globals.webInt+l.apiOverviewPath+l.pathInfo[e].relativePath;u=s?l.globals.changeOwnOptions(s):l.globals.objectWithParams(i),c+="?"+i.toString(),yield fetch(c,u).then(function(){var d=Ee(function*(h){let f;f=null==a||a?yield h.json():yield h.text(),r.next(f),r.complete(),l.globals.hideSpinner()});return function(h){return d.apply(this,arguments)}}()).catch(d=>{r.error(),l.globals.hideSpinner()})}else 10==++o?(null===window.localStorage.getItem("webInt")||l.globals.hideSpinner(),r.error()):setTimeout(()=>{l.getReqHandler(e,i,r,o)},500)})()}postReq(e,i,r=!0,o,s,a){var l=this;if((void 0===s||!s)&&this.activateSpinner(),i instanceof Yt&&(i=i.toString()),r){if(!o){const c={method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}}else if(o)o.method="POST",o.responseType="text","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o);else{const c={responseType:"text",method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}return o&&(o.method="POST","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o)),new b(c=>{if(null!=this.pathInfo){let u=this.globals.webInt+this.apiOverviewPath+this.pathInfo[e].relativePath;a&&(u+=a),Et(fetch(u,o)).subscribe({next:(d=Ee(function*(h){if(200===h.status){let f;f=null==r||r?yield h.json():yield h.text(),c.next(f),l.globals.hideSpinner()}else c.error(h),l.globals.hideSpinner()}),function(f){return d.apply(this,arguments)}),error:d=>{c.error(d),this.globals.hideSpinner()},complete:()=>{}})}var d})}postSoap(e,i){var r=this;return Ee(function*(){r.activateSpinner();const o=yield fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"include",headers:{"Content-Type":"text/xml",SOAPAction:"basicInvoke"},redirect:"follow",referrerPolicy:"no-referrer",body:i});return r.globals.hideSpinner(),o})()}processPath(){return new b(e=>{if(this.pathFetchInProgress)this.waitList.addToWaitList("path",e);else{this.pathFetchInProgress=!0;const i=Et(fetch(this.globals.webInt+this.apiOverviewPath,this.globals.options));null!=this.pathInfo?(this.processPathWaitingList(),this.pathFetchInProgress=!1,e.next(this.pathInfo),e.complete()):this.loginConnect(i,e)}})}processAddress(e){return e=e.set("filterImg","true"),new b(i=>{null!=this.pathInfo&&this.postReq("addresses",e,!0).subscribe({next:r=>{for(let o of r.data)o.url=this.createWebintLink(o.pointer),o.parentUrl=this.createWebintLink(o.companyPointer);i.next(r),i.complete()},error:r=>{},complete:()=>{}})})}waitForLC(){return new b(e=>{null==this.pathInfo?this.processPath().subscribe(()=>{this.processLCHandler(e)}):this.processLCHandler(e)})}processLCHandler(e){var o,i=this;null!=this.pathInfo&&(Object.keys(this.globals.languageConf).length>0?(e.next(!0),e.complete()):Et(fetch(this.globals.webInt+this.apiOverviewPath+this.pathInfo.translation.relativePath+"/businessmail",this.globals.options)).subscribe({next:(o=Ee(function*(s){200!==s.status?e.error(yield s.text()):(i.globals.languageConf=yield s.json(),e.next(!0),e.complete())}),function(a){return o.apply(this,arguments)}),error:o=>{},complete:()=>{}}))}checkWebInt(e){var i=this;return Ee(function*(){return i.activateSpinner(),yield fetch(e+eC,{method:"HEAD"}).then(r=>404===r.status?(i.messageService.showError(i.globals.languageConfLocal.webIntCertError+" "+e,void 0,!0),i.globals.hideSpinner(),!1):(window.localStorage.setItem("webInt",encodeURI(e)),i.globals.webInt=encodeURI(e),!0)).catch(()=>(i.messageService.showError(i.globals.languageConfLocal.webIntCertError+" "+e,void 0,!0),i.globals.hideSpinner(),!1))})()}resetListener(){this.listenerSet=!1}logoutGraph(){var e=this;return Ee(function*(){yield e.authService.signOutPopup()})()}logout(e){var i=this;return Ee(function*(){if(i.activateSpinner(),"gi"===i.globals.system){let r=window.open(i.globals.webInt+"?logout","_blank","toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no, 440, 190");setTimeout(()=>{r?.close()},1e3)}var r;Et(fetch(i.globals.webInt.substring(0,i.globals.webInt.length-1)+"?logout",i.globals.options)).subscribe({next:()=>{(void 0===e||!1===e)&&(i.reload(),"Verse"===i.globals.curConnectorType&&location.reload())},error:(r=Ee(function*(o){const s=yield fetch(i.globals.webInt+"restBM.xsp/verserest/",{method:"get",credentials:"include",cache:"no-cache",mode:"cors"});null!=s.status&&401===s.status?(void 0===e||!1===e)&&i.reload():(null!=s.type&&"cors"===s.type&&(void 0===e||!1===e)&&i.reload(),i.messageService.showError(i.globals.languageConfLocal.webIntLogoutFailed,void 0,!0))}),function(s){return r.apply(this,arguments)})})})()}waitForWebIntModal(){return new b(e=>{this.webIntModalOpen?(e.next(this.webIntModalOpen),e.complete()):this.waitList.addToWaitList("webIntModal",e)})}getUserName(){return new b(e=>{this.getReqNoCache("user",null).subscribe(i=>{e.next(i),e.complete()})})}waitForGraphRequired(){return new b(e=>{this.waitList.addToWaitList("graphRequired",e)})}login(e,i){return Ee(function*(){throw new Error("Method not implemented.")})()}get isLoggedIn(){return this.loggedIn}set webIntModalOpenRef(e){this.webIntModalOpen=e;for(const i of this.waitList.accessWaitList("webIntModal"))i.next(e),i.complete()}getPath(e,i=!0){return this.pathInfo?this.globals.webInt+(i?this.apiOverviewPath:"")+this.pathInfo[e].relativePath:""}openGraphLogin(){return Ee(function*(){return null})()}activateSpinner(){this.globals.webInt&&""!==this.globals.webInt&&this.globals.showSpinner()}processPathWaitingList(){this.waitList.accessWaitList("path").forEach(e=>{null!=this.pathInfo?(e.next(this.pathInfo),e.complete()):e.error()})}loginConnect(e,i){this.globals.webInt&&this.loginConnectHandler(e,i)}loginConnectHandler(e,i){var o,r=this;e.subscribe({next:(o=Ee(function*(s){200!==s.status?r.loginConnectError(s,e,i):(r.pathInfo=yield s.clone().json(),r.loggedIn=!0,r.keepAlive(),r.checkIfLoggedIn(e,i))}),function(a){return o.apply(this,arguments)}),error:o=>{this.loginConnectError(o,e,i)},complete:()=>{}})}loginConnectError(e,i,r){var o=this;return Ee(function*(){o.loggedIn=!1,401===e.status||200===e.status?o.connect().subscribe(o.connectHandler(i,r)):(o.processPathWaitingList(),o.pathFetchInProgress=!1)})()}keepAlive(){var e=this;null!=this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveInterval=setInterval(Ee(function*(){const i=e.getReqNoCache("keepAlive",null,!1).subscribe(()=>{i.unsubscribe()})}),55e3)}connectHandler(e,i){return{next:()=>{},error:r=>{},complete:()=>{const r=Et(fetch(this.globals.webInt+this.apiOverviewPath,this.globals.options));this.loginConnect(r,i)}}}waitForPlatformType(){return new b(e=>{this.waitList.addToWaitList("platform",e)})}processOutlookMessage(e){"message"in e&&null!=this.dialog&&"ready"===e.message.toLowerCase()&&this.dialog.messageChild(this.globals.webInt+eC)}onDialogClose(e,i){if(console.log(i),"error"in i&&12006===i.error){console.log("DIALOG CLOSED"),this.activateSpinner(),e.next("OK"),e.complete(),this.globals.loginOpen=!1;for(const r of this.waitList.accessWaitList("login"))r.next("OK"),r.next("complete")}}checkIfLoggedIn(e,i){var r=this;return Ee(function*(){if(null!=r.pathInfo){let o=new Yt;o=o.set("noCache","true"),r.getReqNoCache("keepAlive",null,!1).subscribe({next:(s=Ee(function*(a){null==a||"OK"!==a?r.connect().subscribe(r.connectHandler(e,i)):(r.processPathWaitingList(),r.pathFetchInProgress=!1,i.next(a),i.complete())}),function(l){return s.apply(this,arguments)}),error:s=>{r.connect().subscribe(r.connectHandler(e,i))}})}var s})()}popupWindow(e,i,r,o){if(!this.loggingOut){const s=screen.width/2-r/2,a=screen.height/2-o/2;return window.open(e,i,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width="+r+", height="+o+", top="+a+", left="+s)}return null}createListenerLogin(e){var i=this;this.listenerSet||(setTimeout(()=>{this.globals.hideSpinner()},4e3),window.addEventListener("message",this.messageListener=function(){var r=Ee(function*(o){if(o.origin===i.globals.origin)if("OK"===o.data){null!=i.loginWindow&&i.loginWindow.close(),window.removeEventListener("message",i.messageListener,!1),i.activateSpinner(),e.next("OK"),e.complete(),i.globals.loginOpen=!1;for(const s of i.waitList.accessWaitList("login"))s.next("OK"),s.next("complete")}else"Close"===o.data&&(i.waitList.addToWaitList("login",e),i.globals.hideSpinner(),i.globals.loginOpen=!1)});return function(o){return r.apply(this,arguments)}}(),!1),this.listenerSet=!0)}createWebintLink(e){return this.webintLinkService.convertToLink(e)}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(Ji),T(As),T(en),T(Mc),T(Wo))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const A7=new pe("JWT_OPTIONS");let T7=(()=>{class n{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let i=e.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(i)}b64decode(e){let r="";if((e=String(e).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let s,a,o=0,l=0;a=e.charAt(l++);~a&&(s=o%4?64*s+a:a,o++%4)?r+=String.fromCharCode(255&s>>(-2*o&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return r}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),i=>"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){if(!e||""===e)return null;const i=e.split(".");if(3!==i.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const r=this.urlBase64Decode(i[1]);if(!r)throw new Error("Cannot decode the token.");return JSON.parse(r)}getTokenExpirationDate(e=this.tokenGetter()){let i;if(i=this.decodeToken(e),!i||!i.hasOwnProperty("exp"))return null;const r=new Date(0);return r.setUTCSeconds(i.exp),r}isTokenExpired(e=this.tokenGetter(),i){if(!e||""===e)return!0;const r=this.getTokenExpirationDate(e);return i=i||0,null!==r&&!(r.valueOf()>(new Date).valueOf()+1e3*i)}getAuthScheme(e,i){return"function"==typeof e?e(i):e}}return n.\u0275fac=function(e){return new(e||n)(T(A7))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),e1=(()=>{class n{constructor(){this.pathObj=null}get path(){return this.pathObj}isPathSet(){return null!=this.pathObj}waitForPath(){var e=this;return Ee(function*(){return e.pathObj=yield e.createPath(),e.pathObj})()}createPath(){return Ee(function*(){return{addresses:{relativePath:"bm4o/AddressesByMailAddress"},activities:{relativePath:"bm4o/ActivitiesByAddress"},document:{relativePath:"bm4o/DocumentMail"},renew:{relativePath:"auth/renewByToken"},search:{relativePath:"bm4o/SearchContacts"},searchProjects:{relativePath:"BM4OProjects/SearchProjects"},emailAlreadyDocumented:{relativePath:"BM4O/EmailAlreadyDocumented"},activityTypes:{relativePath:"bm4o/DocumentTypes"},addRecentlyUsed:{relativePath:"RecentlyUsed/AddRecentlyUsed"},openRecord:{relativePath:"OpenRecord"},baVersion:{relativePath:"bm4o/GetBAVersion"},getChips:{relativePath:"bm4o/GetChips"},readCRMData:{relativePath:"bm4o/GetCRMData"},extractContact:{relativePath:"RestAddressParser/Parse"},createRecord:{relativePath:"v1/record/"},getEnumValues:{relativePath:"v1/enum/"},checkAlive:{relativePath:"bm4o/CheckAlive"}}})()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const I7=["alternativeAddresses"],M7=["pointer","database","mail","imageURL","companyPointer","url","parentUrl","isCompany","gender","base64image"];let tC=(()=>{class n{constructor(e){this.globals=e}convertAddress(e,i,r){var o=this;return Ee(function*(){const s={},a={},l=[];let c=0;if(i?.addresses)for(const d of i.addresses){const h={name:d.entityTitle,pointer:d.oid,companyName:null!=d.parent?d.parent.entityTitle:void 0,companyPointer:null!=d.parent?d.parent.oid:void 0,isCompany:"fe7eb8ae-71be-4220-8da5-dc04078e6b3c"===d.type.oid,url:d.frontEndUri,additional:{mail:r,homepage:d.homepage,birthdate:d.birthday?new Date(d.birthday).toLocaleDateString():null,skype:d.skypeName,imageURL:null,database:null,phone:d.phoneNumber,cellphone:d.mobileNumber,homephone:d.homePhoneNumber,alternativeAddresses:[],gender:d.gender,base64image:d.base64image,fallback:d.fallback,fullAddress:d.fullAddress}};s[d.oid]=d.frontEndUri,null!=d.parent&&(a.hasOwnProperty(d.parent.oid)?a[d.parent.oid].push(c):a[d.parent.oid]=[c]);const f=yield o.removeEmptyEntries(h);l.push(f),c++}yield o.assignParentUrls(l,s,a),e.next({data:l,ignoreInAddress:I7,hide:M7}),e.complete()})()}convertActivity(e,i,r,o){const s=[];let a=this.globals.numericBackendVersion()<9e4?"":this.globals.webInt;for(const c of i.activities){const u={date:c.date,dateInMS:new Date(c.date).getTime(),pointer:c.oid,subject:c.subject,viewIcon:a+c.imageName,viewIconUrl:a+c.imageName,lineTwoOverride:c.lineTwoOverride,url:c.frontEndUri};s.push(u)}e.next({activities:s,selectedType:r,maxEntries:10,type:"activities"})}convertActivityTypes(e){const i=[["Vorg\xe4nge","1"]];i.type="types",e.next(i)}get maxActivities(){return 10}assignParentUrls(e,i,r){return Ee(function*(){for(const o of Object.keys(r))for(const s of r[o])e[s].parentUrl=i[o]})()}removeEmptyEntries(e){return Ee(function*(){for(const[i,r]of Object.entries(e))void 0===r&&e.hasOwnProperty(i)&&delete e[i];return e})()}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nC=(()=>{class n extends JM{constructor(e,i,r,o,s,a,l,c,u){super(e,i,r,o,s,u),this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.authService=s,this.pathBA=a,this.converter=l,this.modalService=c,this.webintLinkService=u,this.apiOverviewPath="api/",this.jwt=new T7}connect(){return new b(e=>{this.loginListener(e)})}objectToHttpParams(e){let i=new Yt;for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=e[r];o&&(i=i.set(r,o))}return i}reload(){if("Owa"===this.globals.curConnectorType)window.location.reload();else if(sessionStorage.setItem("verseAppData",JSON.stringify(this.globals.curConnector.data)),window,!window.location.href.includes("index.html")){let i="index.html";window.location.href.endsWith("/")||(i="/"+i),window.location.href+=i}}getReqModal(e,i){return this.globals.modalCacheFlag?(null==i&&(i=new Yt),this.getReq(e,i)):this.getReqNoCache(e,i)}getReqNoCache(e,i,r,o){return null==i&&(i=new Yt),i=i.append("noCache","true"),this.getReq(e,i,r,o)}getReq(e,i,r=!0,o,s,a){let l;return l=null!=r&&!1===r?this.globals.changeOwnOptions({responseType:"text"}):void 0,!e.includes("renew")&&!o&&this.activateSpinner(),null==i&&(i=new Yt),new b(c=>{this.getReqHandler(e,i,c,0,l,r,s,a)})}getReqHandler(e,i,r,o,s,a,l,c){var u=this;return Ee(function*(){u.processPath().subscribe(Ee(function*(){if(null!=u.pathInfo){let h,d=u.globals.webInt;d+=l?l+u.pathInfo[e].relativePath:u.apiOverviewPath+u.pathInfo[e].relativePath,h=s?u.globals.changeOwnOptions(s):u.globals.objectWithParams(i);const f=yield u.getValidToken();if(""===f)return;h.headers={"Content-Type":"application/json",Authorization:"Bearer "+f},c&&(d+=c),d+="?"+i.toString(),yield fetch(d,h).then(function(){var S=Ee(function*(U){let Z;Z=null==a||a?yield U.json():yield U.text(),r.next(Z),r.complete(),u.globals.hideSpinner()});return function(U){return S.apply(this,arguments)}}()).catch(S=>{r.error(),u.globals.hideSpinner()})}else 3==++o?(null===window.localStorage.getItem("webInt")||u.messageService.setConnectionTimeout(u.globals.languageConfLocal.cantConnect),r.error()):setTimeout(()=>{u.getReqHandler(e,i,r,o)},300)}))})()}postReq(e,i,r=!0,o,s,a,l){if((void 0===s||!s)&&!e.includes("renew")&&this.activateSpinner(),i instanceof Yt&&(i=i.toString()),r){if(!o){const c={method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}}else if(o)o.method="POST",o.responseType="text","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o);else{const c={responseType:"text",method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}return o&&(o.method="POST","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o)),new b(c=>{this.postReqHandler(c,e,o,r,a,l)})}postReqHandler(e,i,r,o=!0,s,a){var l=this;return Ee(function*(){const c=yield l.getValidToken();if(""!==c&&(r&&(r.headers={"Content-Type":"application/json",Authorization:"Bearer "+c}),null!=l.pathInfo)){let d=l.globals.webInt;d+=a?a+l.pathInfo[i].relativePath:l.apiOverviewPath+l.pathInfo[i].relativePath,s&&(d+=s),Et(fetch(d,r)).subscribe({next:(h=Ee(function*(f){if(200===f.status||201===f.status){let _;_=null==o||o?yield f.json():yield f.text(),e.next(_),l.globals.hideSpinner()}else e.error(f),l.globals.hideSpinner()}),function(_){return h.apply(this,arguments)}),error:h=>{e.error(h),l.globals.hideSpinner()},complete:()=>{}})}var h})()}postSoap(e,i){var r=this;return Ee(function*(){r.activateSpinner();const o=yield fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"include",headers:{"Content-Type":"text/xml",SOAPAction:"basicInvoke"},redirect:"follow",referrerPolicy:"no-referrer",body:i});return r.globals.hideSpinner(),o})()}processPath(){return new b(e=>{this.pathFetchInProgress?this.waitList.addToWaitList("path",e):(this.pathFetchInProgress=!0,this.pathBA.isPathSet()&&(this.pathInfo=this.pathBA.path),null!=this.pathInfo?(this.processPathWaitingList(),this.pathFetchInProgress=!1,e.next(this.pathInfo),e.complete()):this.pathHandler(e))})}processAddress(e){return new b(i=>{null!=this.pathInfo&&this.getReq("addresses",e,!0).subscribe({next:r=>{this.converter.convertAddress(i,r,e.get("mail"))},error:r=>{},complete:()=>{}})})}waitForLC(){return new b(e=>{null==this.pathInfo?this.processPath().subscribe(()=>{this.processLCHandler(e)}):this.processLCHandler(e)})}processLCHandler(e){null!=this.pathInfo&&(Object.keys(this.globals.languageConf),e.next(!0),e.complete())}checkWebInt(e,i,r){var o=this;return Ee(function*(){i||(e=yield o.trimURL(e)),o.activateSpinner();const a=new Request(e+"api/bm4o/GetBAVersion",{method:"GET"});return yield fetch(a).then(function(){var l=Ee(function*(c){return 401==c.status?"8.0.0":404==c.status?"7.0.0":c.text()});return function(c){return l.apply(this,arguments)}}()).then(function(){var l=Ee(function*(c){o.globals.backendVersion=c});return function(c){return l.apply(this,arguments)}}()).catch(()=>o.globals.backendVersion="7.0.0"),o.globals.webInt===e||(window.localStorage.setItem("webInt",e),o.globals.webInt=e,o.logout(),!1)})()}resetListener(){this.listenerSet=!1}logoutGraph(){var e=this;return Ee(function*(){yield e.authService.signOutPopup()})()}logout(e){var i=this;return Ee(function*(){window.localStorage.removeItem("token"),i.globals.loggedIn=!1,(void 0===e||!1===e)&&i.reload()})()}waitForWebIntModal(){return new b(e=>{this.webIntModalOpen?(e.next(this.webIntModalOpen),e.complete()):this.waitList.addToWaitList("webIntModal",e)})}getUserName(){return new b(e=>{this.userNameHandler(e)})}userNameHandler(e){var i=this;return Ee(function*(){const r=yield i.getValidToken();if(""!==r){const o=i.jwt.decodeToken(r);e.next(o.name),e.complete()}})()}waitForGraphRequired(){return new b(e=>{this.waitList.addToWaitList("graphRequired",e)})}login(e,i){var r=this;return Ee(function*(){if(!(yield r.checkWebInt(r.globals.webInt,void 0,!0)))return r.messageService.showError(r.globals.languageConfLocal.urlInvalidBase,void 0,!0),r.globals.hideSpinner(),!1;const s=new Request(r.globals.webInt+"api/auth/login",{method:"POST",body:JSON.stringify({username:encodeURIComponent(e),password:encodeURIComponent(i)}),headers:new Headers({"Content-Type":"application/json"})});if(r.globals.numericBackendVersion()<9e4)return yield r.performLogin(s);{const a=new Request(r.globals.webInt+"api/bm4o/checkAlive",{method:"GET"});yield fetch(a).then(function(){var l=Ee(function*(c){return c.text()});return function(c){return l.apply(this,arguments)}}()).then(function(){var l=Ee(function*(c){if("true"===c)return yield r.performLogin(s);if(c.indexOf("The Application is just starting")>0){let u=c.substr(c.indexOf("The Application is just starting")+33,5);return r.messageService.showWarning(r.globals.languageConfLocal.baInstanceStarting+u),r.globals.hideSpinner(),!1}return r.messageService.showError(r.globals.languageConfLocal.baInstanceNotAvailable),r.globals.hideSpinner(),!1});return function(c){return l.apply(this,arguments)}}()).catch(l=>(r.messageService.showError(r.globals.languageConfLocal.baInstanceNotAvailable),r.globals.hideSpinner(),!1))}return!1})()}performLogin(e){var i=this;return Ee(function*(){const r=yield fetch(e).then(o=>o.json()).then(o=>(null!=o.token&&void 0!==o.token?localStorage.setItem("token",o.token):(localStorage.removeItem("token"),i.globals.loggedIn=!1),i.messageService.showSuccess(i.globals.languageConfLocal.loginSuccess),i.globals.hideForLogin=!1,!0)).catch(o=>(localStorage.removeItem("token"),i.globals.loggedIn=!1,i.messageService.showError(i.globals.languageConfLocal.loginFailed),!1));return i.globals.hideSpinner(),r&&i.reload(),r})()}get isLoggedIn(){return this.loggedIn}set webIntModalOpenRef(e){this.webIntModalOpen=e;for(const i of this.waitList.accessWaitList("webIntModal"))i.next(e),i.complete()}openGraphLogin(){return Ee(function*(){return null})()}activateSpinner(){this.globals.webInt&&""!==this.globals.webInt&&this.globals.showSpinner()}processPathWaitingList(){this.waitList.accessWaitList("path").forEach(e=>{null!=this.pathInfo?(e.next(this.pathInfo),e.complete()):e.error()})}pathHandler(e){var i=this;return Ee(function*(){i.pathInfo=yield i.pathBA.waitForPath(),i.loggedIn=!0,i.keepAlive(),i.checkIfLoggedInBA(i.pathInfo,e)})()}keepAlive(){var e=this;null!=this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveInterval=setInterval(Ee(function*(){const i=window.localStorage.getItem("token");if(null!==i||"undefined"===i){const r=yield e.renewRequest(i);yield fetch(r).then(function(){var s=Ee(function*(a){return a.json()});return function(a){return s.apply(this,arguments)}}()).then(s=>{null!=s.token&&void 0!==s.token?localStorage.setItem("token",s.token):(localStorage.removeItem("token"),e.globals.loggedIn=!1)}).catch(s=>{localStorage.removeItem("token"),e.globals.loggedIn=!1,e.messageService.showError(e.globals.languageConfLocal.tokenFailed)})}else null===i&&(e.globals.loggedIn=!1)}),3e5)}trimURL(e){return Ee(function*(){const i=new URL(e),r=i.pathname;return r.includes("/_")&&(i.pathname=r.substring(0,r.indexOf("/_")+1)),i.toString()})()}renewRequest(e){var i=this;return Ee(function*(){const r=i.jwt.decodeToken(e);return new Request(i.globals.webInt+"api/auth/renewByToken",{method:"POST",body:JSON.stringify({username:encodeURIComponent(r.name)}),headers:new Headers({"Content-Type":"application/json",Authorization:"Bearer "+e})})})()}getValidToken(){var e=this;return Ee(function*(){let i=localStorage.getItem("token");(null===i||"undefined"===i)&&(i=void 0);const r=e.jwt.isTokenExpired(i);if(!r||void 0!==i&&null!=i){if(r){const o=yield e.renewRequest(i);yield fetch(o).then(function(){var a=Ee(function*(l){if(401!==l.status)return l.json();i="",yield e.openLoginModal()});return function(l){return a.apply(this,arguments)}}()).then(a=>{null!=a.token&&void 0!==a.token?localStorage.setItem("token",a.token):(localStorage.removeItem("token"),e.globals.loggedIn=!1)}).catch(a=>{console.log(a),localStorage.removeItem("token"),e.globals.loggedIn=!1,e.messageService.showError(e.globals.languageConfLocal.tokenFailed)})}}else yield e.openLoginModal(),i=localStorage.getItem("token");return null==i&&(i=""),i})()}isTokenValid(){var e=this;return Ee(function*(){let i=localStorage.getItem("token");return(null===i||"undefined"===i)&&(i=void 0),e.jwt.isTokenExpired})()}openLoginModal(){var e=this;return Ee(function*(){e.globals.hideForLogin=!0,e.modalService.changeType({newType:"login"}),e.globals.hideSpinner()})()}loginListener(e){var i=this;return Ee(function*(){if(""!==(yield i.getValidToken())){e.next("OK"),e.complete();for(const o of i.waitList.accessWaitList("login"))o.next("OK"),o.next("complete")}else i.waitList.addToWaitList("login",e),i.globals.hideSpinner()})()}checkIfLoggedInBA(e,i){var r=this;return Ee(function*(){if(null!=r.pathInfo){let o=new Yt;o=o.set("noCache","true"),(yield r.isTokenValid())&&(r.processPathWaitingList(),r.pathFetchInProgress=!1,i.next(e),i.complete())}})()}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(Ji),T(As),T(en),T(Mc),T(e1),T(tC),T(ol),T(Wo))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Nn=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.authService=s,this.pathBA=a,this.converter=l,this.modalService=c,this.webintLinkService=u,this.curConnectionSystem||this.setSystem(this.globals.system)}setSystem(e){var i=this;return Ee(function*(){switch(e){case"gi":i.globals.system="gi",i.curConnectionSystem=new JM(i.globals,i.waitList,i.modal,i.messageService,i.authService,i.webintLinkService);break;case"ba":i.globals.system="ba",i.curConnectionSystem=new nC(i.globals,i.waitList,i.modal,i.messageService,i.authService,i.pathBA,i.converter,i.modalService,i.webintLinkService)}})()}get system(){return this.globals.system}connect(){return this.curConnectionSystem.connect()}objectToHttpParams(e){return this.curConnectionSystem.objectToHttpParams(e)}reload(){this.curConnectionSystem.reload()}getReqModal(e,i){return this.curConnectionSystem.getReqModal(e,i)}getReqNoCache(e,i,r,o){return this.curConnectionSystem.getReqNoCache(e,i,r,o)}getReq(e,i,r,o){return this.curConnectionSystem.getReq(e,i,r,o)}getReqHandler(e,i,r,o,s,a){var l=this;return Ee(function*(){return l.curConnectionSystem.getReqHandler(e,i,r,o,s,a)})()}postReq(e,i,r=!0,o,s,a){return this.curConnectionSystem.postReq(e,i,r,o,s,a)}postSoap(e,i){return new b(r=>{r.next(this.curConnectionSystem.postSoap(e,i))})}processPath(){return this.curConnectionSystem.processPath()}processAddress(e){return this.curConnectionSystem.processAddress(e)}waitForLC(){return this.curConnectionSystem.waitForLC()}processLCHandler(e){this.curConnectionSystem.processLCHandler(e)}checkWebInt(e){var i=this;return Ee(function*(){return i.curConnectionSystem.checkWebInt(e)})()}resetListener(){this.curConnectionSystem.resetListener()}logoutGraph(){var e=this;return Ee(function*(){return e.curConnectionSystem.logoutGraph()})()}logout(e){var i=this;return Ee(function*(){return i.curConnectionSystem.logout(e)})()}logoutOldSystem(e){return Ee(function*(){return e.logout()})()}waitForWebIntModal(){return this.curConnectionSystem.waitForWebIntModal()}getUserName(){return this.curConnectionSystem.getUserName()}waitForGraphRequired(){return this.curConnectionSystem.waitForGraphRequired()}login(e,i){var r=this;return Ee(function*(){return r.curConnectionSystem.login(e,i)})()}get isLoggedIn(){return this.curConnectionSystem.isLoggedIn}set webIntModalOpenRef(e){this.curConnectionSystem.webIntModalOpenRef=e}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(Ji),T(As),T(en),T(Mc),T(e1),T(tC),T(ol),T(Wo))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class P7{constructor(){this.primary=[],this.secondary=[]}}class iC{}let rC=(()=>{class n{constructor(e){this.waitList=e,this.isInit=!1}set initComplete(e){this.isInit=e,e&&this.informWaitList()}get initComplete(){return this.isInit}waitForInit(){return new b(e=>{e.next(this.isInit),this.isInit?(e.complete(),this.informWaitList()):this.waitList.addToWaitList("init",e)})}informWaitList(){const e=this.waitList.accessWaitList("init");for(const i of e)i.next(this.initComplete),this.initComplete&&i.complete();this.waitList.clearWaitList("init")}}return n.\u0275fac=function(e){return new(e||n)(T(Ji))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class L7{constructor(){this.items=[{name:"createAddressCompany",lc:"LC73000"},{name:"createAddressToCompany",lc:"LC73001"},{name:"createAddressPerson",lc:"LC73003"}]}addNewItem(t,e){this.items.push({name:t,lc:e})}}const n1=[new class N7{constructor(){this.model={name:"deleteAttachments",value:"",classAssignment:{"":"bmAttachInclude",1:"bmAttachExclude"},titleLC:{"":"LC73172",1:"LC73173"}}}},new class F7{constructor(){this.model={name:"openMail",value:"",classAssignment:{"":"bmDocOFF",1:"bmDocON"},titleLC:{"":"LC73169",1:"LC73168"}}}},new class B7{constructor(){this.model={name:"createAddress",value:"",classAssignment:{"":"bmPlus",1:"bmMinus"},titleLC:{"":"LC73197",1:"LC73197"}}}}];let r1=(()=>{class n{constructor(e){this.globals=e,this.configData=n1,this.subscribers=[],this.createInstance=new L7,this.open=!1}connect(){return new b(e=>{this.subscribers.push(e),e.next(this.globals.isCreateBlockOpen)})}updateObservers(){const e=this.globals.isCreateBlockOpen;for(const i of this.subscribers)i.next(e)}toggleOpen(){this.open=!this.open,this.configData[2].model.value=this.isOpen?"1":"",this.globals.createAddressToggle(),this.updateObservers()}get items(){return this.createInstance.items}get isOpen(){return this.open}set config(e){this.configData=e}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rs=(()=>{class n{constructor(e,i,r,o,s){this.connectionService=e,this.waitListService=i,this.globals=r,this.initService=o,this.createService=s,this.fetchInProgress=!1,this.addressObjectExtended=!1,this.indexToShow=0,this.addressResponseObject={},this.addresses=[]}get toHideList(){return this.addressResponseObject.hide}get currentPointer(){return this.addresses[this.addressIndex].pointer}get currentAddressData(){return this.addresses[this.addressIndex]}get hasAddress(){return this.addresses.length>0}get addressIndex(){return this.indexToShow}set addressIndex(e){this.indexToShow=e,this.notifyIndexSubscriber()}waitForAddresses(){return new b(e=>{this.addresses.length>0?(e.next(this.addresses),e.complete()):this.waitListService.addToWaitList("address",e)})}processAddresses(){return new b(e=>{this.addresses.length<1?this.fetchInProgress?this.waitListService.addToWaitList("address",e):(this.fetchInProgress=!0,this.processData().subscribe({next:i=>{i.forEach(r=>{let o=r;o=this.modifyAdditionalData(o),this.addresses.push(o)}),(i.length<1&&!this.createService.isOpen||i.length>=1&&this.createService.isOpen)&&this.createService.toggleOpen(),e.next(this.addresses),e.complete()},error:()=>{this.processWaitingList(),this.fetchInProgress=!1},complete:()=>{this.processWaitingList(),this.fetchInProgress=!1}})):(e.next(this.addresses),e.complete())})}newProcessAddress(){return new b(e=>{let i=Office.context.mailbox.item,r=new P7;if(i){let s="appointment"===i.itemType;void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync?(s?(i?.organizer.emailAddress&&(r.fromEmail=i.organizer.emailAddress,r.fromName=i.organizer.displayName),i?.requiredAttendees.forEach(l=>{this.addIfNotExist(r.primary,l)}),i?.optionalAttendees.forEach(l=>{this.addIfNotExist(r.secondary,l)})):(i?.from.emailAddress&&(r.fromEmail=i.from.emailAddress,r.fromName=i.from.displayName),i?.to.forEach(l=>{this.addIfNotExist(r.primary,l)}),i?.cc.forEach(l=>{this.addIfNotExist(r.secondary,l)})),e.next(r)):s?i.requiredAttendees.getAsync(l=>{l.status===Office.AsyncResultStatus.Failed||i?.optionalAttendees.getAsync(c=>{c.status===Office.AsyncResultStatus.Failed||i?.organizer.getAsync(u=>{u.status===Office.AsyncResultStatus.Failed||(r.fromEmail=u.value.emailAddress,r.fromName=u.value.displayName,l.value.forEach(d=>{this.addIfNotExist(r.primary,d)}),c.value.forEach(d=>{this.addIfNotExist(r.secondary,d)}),e.next(r))})})}):i.to.getAsync(l=>{l.status===Office.AsyncResultStatus.Failed||i?.cc.getAsync(c=>{c.status===Office.AsyncResultStatus.Failed||i?.from.getAsync(u=>{u.status===Office.AsyncResultStatus.Failed||(l.value.forEach(d=>{this.addIfNotExist(r.primary,d)}),c.value.forEach(d=>{this.addIfNotExist(r.secondary,d)}),r.fromEmail=u.value.emailAddress,r.fromName=u.value.displayName,e.next(r))})})})}})}addIfNotExist(e,i){if(!e.some(r=>r.email===i.emailAddress)){let r=new iC;r.email=i.emailAddress,r.display=i.displayName,e.push(r)}}receiverAtendeeChanged(){this.fetchInProgress=!1}addToIndexListenerList(){return new b(e=>{this.waitListService.addToWaitList("index",e)})}resetAddr(){this.addresses=[]}addressChange(){for(const e of this.waitListService.accessWaitList("addressChange"))e.next(!0)}waitForAddressChange(){return new b(e=>{this.waitListService.addToWaitList("addressChange",e)})}modifyAdditionalData(e){const i=this.addressResponseObject.ignoreInAddress;return i&&i.forEach(r=>{e.additional&&delete e.additional[r]}),e}notifyIndexSubscriber(){this.waitListService.accessWaitList("index").forEach(e=>{e.next(this.addressIndex)})}processWaitingList(){this.waitListService.accessWaitList("address").forEach(e=>{this.addresses.length>0?(e.next(this.addresses),e.complete()):e.error("No address found.")}),this.waitListService.clearWaitList("address")}processData(){return new b(e=>{this.connectionService.processPath().subscribe(()=>{this.globals.curMailUnid&&""!==this.globals.curMailUnid?this.addressHandler(e):this.waitListService.addToWaitListFunc("mailAddr",e,this.addressHandler.bind(this))})})}addressHandler(e){let i=new Yt;i=i.set("mail",this.globals.curMailAddr),this.connectionService.processAddress(i).subscribe(r=>{this.addressResponseObject=r,e.next(r.data),e.complete(),this.notifyIndexSubscriber(),this.initService.initComplete=!0})}getUrlOrigin(e){return new URL(e).origin}}return n.\u0275fac=function(e){return new(e||n)(T(Nn),T(Ji),T(pt),T(rC),T(r1))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function oC(n){return n&&"function"==typeof n.connect&&!(n instanceof ph)}class o1{applyChanges(t,e,i,r,o){t.forEachOperation((s,a,l)=>{let c,u;if(null==s.previousIndex){const d=i(s,a,l);c=e.createEmbeddedView(d.templateRef,d.context,d.index),u=1}else null==l?(e.remove(a),u=3):(c=e.get(a),e.move(c,l),u=2);o&&o({context:c?.context,operation:u,record:s})})}detach(){}}class nl{constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new L,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,i=new Set(t);t.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,t))return!0;return!1}return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let a1=(()=>{class n{constructor(){this._listeners=[]}notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Pd=new pe("_ViewRepeater");let H7=(()=>{class n{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=ct(e)}get inset(){return this._inset}set inset(e){this._inset=ct(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ze({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(ot("aria-orientation",i.vertical?"vertical":"horizontal"),wt("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,i){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),n})(),V7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt,Pt]}),n})();const j7=["*"],q7=["text"];function z7(n,t){if(1&n&&xe(0,"mat-pseudo-checkbox",5),2&n){const e=x();y("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const G7=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],W7=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];let $7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),K7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})();const Y7=Vo(class{}),Q7=Vo(class{}),X7={provide:rr,useExisting:Zt(()=>$o),multi:!0};class Z7{constructor(t,e){this.source=t,this.options=e}}let Os=(()=>{class n extends Q7{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this.selectionList=r,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new Be,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(e){this._color=e}get value(){return this._value}set value(e){this.selected&&!this.selectionList.compareWith(e,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=e}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(e){const i=ct(e);i!==this._disabled&&(this._disabled=i,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(e){const i=ct(e);i!==this._selected&&(this._setSelected(i),(i||this.selectionList.multiple)&&this.selectionList._reportValueChange())}ngOnInit(){const e=this.selectionList;e._value&&e._value.some(r=>e.compareWith(this._value,r))&&this._setSelected(!0);const i=this._selected;Promise.resolve().then(()=>{(this._selected||i)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){!function C6(n,t,e="mat"){n.changes.pipe(ii(n)).subscribe(({length:i})=>{ad(t,`${e}-2-line`,!1),ad(t,`${e}-3-line`,!1),ad(t,`${e}-multi-line`,!1),2===i||3===i?ad(t,`${e}-${i}-line`,!0):i>3&&ad(t,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const e=this._hasFocus,i=this.selectionList._removeOptionFromList(this);e&&i&&i.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(e),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(Zt(()=>$o)))},n.\u0275cmp=ze({type:n,selectors:[["mat-list-option"]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,$7,5),Vt(r,K7,5),Vt(r,b6,5)),2&e){let o;me(o=ge())&&(i._avatar=o.first),me(o=ge())&&(i._icon=o.first),me(o=ge())&&(i._lines=o)}},viewQuery:function(e,i){if(1&e&&Oe(q7,5),2&e){let r;me(r=ge())&&(i._text=r.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&X("focus",function(){return i._handleFocus()})("blur",function(){return i._handleBlur()})("click",function(){return i._handleClick()}),2&e&&(ot("aria-selected",i.selected)("aria-disabled",i.disabled)("tabindex",-1),wt("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)("mat-primary","primary"===i.color)("mat-accent","primary"!==i.color&&"warn"!==i.color)("mat-warn","warn"===i.color)("mat-list-single-selected-option",i.selected&&!i.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[De],ngContentSelectors:W7,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,i){1&e&&(Vn(G7),g(0,"div",0),xe(1,"div",1),V(2,z7,1,2,"mat-pseudo-checkbox",2),g(3,"div",3,4),Ht(5),v(),Ht(6,1),v()),2&e&&(wt("mat-list-item-content-reverse","after"==i.checkboxPosition),m(1),y("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()),m(1),y("ngIf",i.selectionList.multiple))},dependencies:[Ar,fI,_n],encapsulation:2,changeDetection:0}),n})(),$o=(()=>{class n extends Y7{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this._focusMonitor=r,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new Be,this.color="accent",this.compareWith=(o,s)=>o===s,this._disabled=!1,this.selectedOptions=new nl(this._multiple),this._tabIndex=-1,this._onChange=o=>{},this._destroyed=new L,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=ct(e),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(e){const i=ct(e);i!==this._multiple&&(this._multiple=i,this.selectedOptions=new nl(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new hf(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Qt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(ii(null),Qt(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Qt(this._destroyed)).subscribe(e=>{if(e.added)for(let i of e.added)i.selected=!0;if(e.removed)for(let i of e.removed)i.selected=!1}),this._focusMonitor.monitor(this._element).pipe(Qt(this._destroyed)).subscribe(e=>{if("keyboard"===e||"program"===e){let i=0;for(let r=0;r-1&&this._keyManager.activeItemIndex===i&&(i>0?this._keyManager.updateActiveItem(i-1):0===i&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(i+1,this.options.length-1))),this._keyManager.activeItem}_keydown(e){const i=e.keyCode,r=this._keyManager,o=r.activeItemIndex,s=Di(e);switch(i){case 32:case 13:!s&&!r.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&Di(e,"ctrlKey")&&!r.isTyping()){const a=this.options.some(l=>!l.disabled&&!l.selected);this._setAllOptionsSelected(a,!0,!0),e.preventDefault()}else r.onKeydown(e)}this.multiple&&(38===i||40===i)&&e.shiftKey&&r.activeItemIndex!==o&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}_emitChangeEvent(e){this.selectionChange.emit(new Z7(this,e))}writeValue(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}setDisabledState(e){this.disabled=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}_setOptionsFromValues(e){this.options.forEach(i=>i._setSelected(!1)),e.forEach(i=>{const r=this.options.find(o=>!o.selected&&this.compareWith(o.value,i));r&&r._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(e=>e.selected).map(e=>e.value)}_toggleFocusedOption(){let e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){let i=this.options.toArray()[e];i&&!i.disabled&&(this._multiple||!i.selected)&&(i.toggle(),this._emitChangeEvent([i]))}}_setAllOptionsSelected(e,i,r){const o=[];return this.options.forEach(s=>{(!i||!s.disabled)&&s._setSelected(e)&&o.push(s)}),o.length&&(this._reportValueChange(),r&&this._emitChangeEvent(o)),o}_isValidIndex(e){return e>=0&&ee._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(_o))},n.\u0275cmp=ze({type:n,selectors:[["mat-selection-list"]],contentQueries:function(e,i,r){if(1&e&&Vt(r,Os,5),2&e){let o;me(o=ge())&&(i.options=o)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&X("keydown",function(o){return i._keydown(o)}),2&e&&ot("aria-multiselectable",i.multiple)("aria-disabled",i.disabled.toString())("tabindex",i._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[rt([X7]),De,kn],ngContentSelectors:j7,decls:1,vars:0,template:function(e,i){1&e&&(Vn(),Ht(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),J7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[lI,ia,Pt,mb,Xi,lI,Pt,mb,V7]}),n})();const eG=["chOffice"],tG=["dbs"];function nG(n,t){1&n&&(g(0,"p"),j(1),Xe(2,"translate"),v()),2&n&&(m(1),we(Ze(2,1,"LC53515")))}function iG(n,t){if(1&n){const e=je();g(0,"mat-list-option",7),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),v()}if(2&n){const e=t.$implicit,i=x(2);Ot("value",e.db),y("selected",1===i.officeDBs.length?e.db:null),m(1),Qe(" ",e.alias," ")}}const rG=function(n){return{title:n}},oG=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function sG(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),V(5,nG,3,3,"p",5),V(6,iG,2,3,"mat-list-option",6),v()(),Wt(7,1),Xe(8,"translate"),Xe(9,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(13,rG,Ze(1,7,"LC53516"))),m(3),y("multiple",!1),m(2),y("ngIf",e.officeDBs.length<1),m(1),y("ngForOf",e.officeDBs),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(15,oG,Ze(8,9,"LC73135"),Ze(9,11,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let aG=(()=>{class n extends Hr{constructor(e,i,r,o,s,a){super(e),this.translate=e,this.connection=i,this.addressService=r,this.messageService=o,this.webintLink=s,this.globals=a,this.officeDBs=[]}ngOnInit(){super.ngOnInit(),this.fetchContactsDBs()}confirmAction(e,i){try{let r=null;if(r=null!=i?i:this.selection.selectedOptions.selected[0].value,this.globals.currentContactsDB=r,this.data.passedData.ignoreNext){if(this.data.passedData.paramsData){const o=this.data.passedData.paramsData;o.paramsToAdd&&"crmDB"===o.paramsToAdd[0]&&(o.params=o.params.set("crmDB",r)),this.webintLink.openWebIntWithParams(o.params)}}else this.data.passedData.officeDB=r,this.openAnotherModal(this.next,this.data.passedData)}catch{this.translate.get("LC53493").subscribe(o=>{this.messageService.showError(o)})}}fetchContactsDBs(){this.connection.getReqModal("dbConnections",null).subscribe(e=>{this.showOfficeList(e)})}showOfficeList(e){var i=this;return Ee(function*(){try{let r="";r=i.data.passedData.currentContactPointer?i.data.passedData.currentContactPointer:i.addressService.currentPointer,i.clearOfficeDBs(),i.extractOfficeDBsOfContact(r,e),1===i.officeDBs.length&&i.confirmAction(i.selection,i.officeDBs[0].db)}catch{i.translate.get("LC39396").subscribe(o=>{i.messageService.showError(o)})}})()}extractOfficeDBsOfContact(e,i){this.data.passedData.currentContactPointer&&(e=this.data.passedData.currentContactPointer);const o=i[this.extractDBFromPointer(e)].officeDBs;for(const s of o)this.officeDBs.push({db:s,alias:i.GeOfficeAliases[s]});this.officeDBs.length<1&&this.translate.get("LC39396").subscribe(s=>{this.messageService.showError(s),this.cancelAction()})}clearOfficeDBs(){this.officeDBs.length=0}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(Rs),p(en),p(Wo),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-choose-office"]],viewQuery:function(e,i){if(1&e&&(Oe(eG,7),Oe(tG,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["chOffice",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["dbs",""],[4,"ngIf"],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&V(0,sG,10,20,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,$o,Os,Pi]}),n})(),Ld=(()=>{class n{constructor(e){this.sanitizer=e}sanitizeInput(e,i){return this.sanitizer.sanitize(i,e)}}return n.\u0275fac=function(e){return new(e||n)(T(Ba))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sC=(()=>{class n extends Hr{constructor(e,i,r,o,s,a){super(e),this.translate=e,this.globals=i,this.connection=r,this.messageService=o,this.inputService=s,this.addressService=a,this.messageEvent=new Be,this.selection=new nl(!1),this.centered=!1,this.disabled=!1,this.unbounded=!1,this.databases=[],this.searchValue="",this.viewIconBaseURL=i.webInt,this.searchClearImage={background:"no-repeat url(assets/images/widget_settings.png)"},this.displayedColumns=["icon","display"],this.prefix="",this.path=""}ngOnInit(){super.ngOnInit(),this.fetchDBs(),this.tableWrapperClassName="Owa"===this.globals.curConnectorType?"tableWrapper":"tableWrapperVerse"}getTemplate(){return this.modalTemp}get rippleColor(){return this.globals.rippleColor}fetchSearch(e,i){let r=this.searchValue;""===r&&(r="*"),this.selection.clear();const o={};o.searchKey=r,i?o.pointer=i:o.database=e,this.data.type&&(o.type=this.data.type),this.data.parentPointer&&(o.parentPointer=this.data.parentPointer),this.connection.getReqNoCache(this.path,this.connection.objectToHttpParams(o)).subscribe({next:s=>{this.handleResult(s)},error:s=>{},complete:()=>{}})}toggleSelection(e){this.selection.toggle(e)}search(e){let i=this.inputService.sanitizeInput(this.searchValue,4);null!==i?(""===i?i="*":this.searchValue=i,this.fetchSearch(this.selectedDB,e)):this.translate.get("LC53513").subscribe(r=>{this.messageService.showError(r)})}acceptEntryDblClick(e){this.selection.clear(),this.selection.select(e),this.confirmAction()}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(pt),p(Nn),p(en),p(Ld),p(Rs))},n.\u0275dir=he({type:n,inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De]}),n})();const lG=["connectionContainer"],cG=["inputContainer"],uG=["label"];function dG(n,t){1&n&&(bi(0),g(1,"div",14),xe(2,"div",15)(3,"div",16)(4,"div",17),v(),g(5,"div",18),xe(6,"div",15)(7,"div",16)(8,"div",17),v(),Ci())}function hG(n,t){if(1&n){const e=je();g(0,"div",19),X("cdkObserveContent",function(){return oe(e),se(x().updateOutlineGap())}),Ht(1,1),v()}2&n&&y("cdkObserveContentDisabled","outline"!=x().appearance)}function pG(n,t){if(1&n&&(bi(0),Ht(1,2),g(2,"span"),j(3),v(),Ci()),2&n){const e=x(2);m(3),we(e._control.placeholder)}}function fG(n,t){1&n&&Ht(0,3,["*ngSwitchCase","true"])}function mG(n,t){1&n&&(g(0,"span",23),j(1," *"),v())}function gG(n,t){if(1&n){const e=je();g(0,"label",20,21),X("cdkObserveContent",function(){return oe(e),se(x().updateOutlineGap())}),V(2,pG,4,1,"ng-container",12),V(3,fG,1,0,"ng-content",12),V(4,mG,2,0,"span",22),v()}if(2&n){const e=x();wt("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),y("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),ot("for",e._control.id)("aria-owns",e._control.id),m(2),y("ngSwitchCase",!1),m(1),y("ngSwitchCase",!0),m(1),y("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function _G(n,t){1&n&&(g(0,"div",24),Ht(1,4),v())}function vG(n,t){if(1&n&&(g(0,"div",25),xe(1,"span",26),v()),2&n){const e=x();m(1),wt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function yG(n,t){1&n&&(g(0,"div"),Ht(1,5),v()),2&n&&y("@transitionMessages",x()._subscriptAnimationState)}function bG(n,t){if(1&n&&(g(0,"div",30),j(1),v()),2&n){const e=x(2);y("id",e._hintLabelId),m(1),we(e.hintLabel)}}function CG(n,t){if(1&n&&(g(0,"div",27),V(1,bG,2,2,"div",28),Ht(2,6),xe(3,"div",29),Ht(4,7),v()),2&n){const e=x();y("@transitionMessages",e._subscriptAnimationState),m(1),y("ngIf",e.hintLabel)}}const wG=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],EG=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],DG=new pe("MatError"),SG={transitionMessages:jr("transitionMessages",[qn("enter",Lt({opacity:1,transform:"translateY(0%)"})),ui("void => enter",[Lt({opacity:0,transform:"translateY(-5px)"}),mi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Nd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n}),n})();const AG=new pe("MatHint");let Gr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-label"]]}),n})(),TG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-placeholder"]]}),n})();const xG=new pe("MatPrefix"),l1=new pe("MatSuffix");let aC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["","matSuffix",""]],features:[rt([{provide:l1,useExisting:n}])]}),n})(),c1=0;const MG=Wa(class{constructor(n){this._elementRef=n}},"primary"),kG=new pe("MAT_FORM_FIELD_DEFAULT_OPTIONS"),sm=new pe("MatFormField");let Ko=(()=>{class n extends MG{constructor(e,i,r,o,s,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=o,this._platform=s,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new L,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+c1++,this._labelId="mat-form-field-label-"+c1++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=o?.appearance||"legacy",o&&(this._hideRequiredMarker=Boolean(o.hideRequiredMarker),o.color&&(this.color=this.defaultColor=o.color))}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ct(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(ii(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Qt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Qt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Mn(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ii(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ii(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Qt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,bs(this._label.nativeElement,"transitionend").pipe(dn(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",o=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=i.querySelectorAll(`${r}, ${o}`);for(let d=0;d0?.75*_+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Xi,Pt,td,Pt]}),n})();const RG=["trigger"],OG=["panel"];function PG(n,t){if(1&n&&(g(0,"span",8),j(1),v()),2&n){const e=x();m(1),we(e.placeholder)}}function LG(n,t){if(1&n&&(g(0,"span",12),j(1),v()),2&n){const e=x(2);m(1),we(e.triggerValue)}}function NG(n,t){1&n&&Ht(0,0,["*ngSwitchCase","true"])}function FG(n,t){1&n&&(g(0,"span",9),V(1,LG,2,1,"span",10),V(2,NG,1,0,"ng-content",11),v()),2&n&&(y("ngSwitch",!!x().customTrigger),m(2),y("ngSwitchCase",!0))}function BG(n,t){if(1&n){const e=je();g(0,"div",13)(1,"div",14,15),X("@transformPanel.done",function(r){return oe(e),se(x()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return oe(e),se(x()._handleKeydown(r))}),Ht(3,1),v()()}if(2&n){const e=x();y("@transformPanelWrap",void 0),m(1),function sS(n,t,e){co(wr,Ro,zl(Ae(),n,t,e),!0)}("mat-select-panel ",e._getPanelTheme(),""),Oi("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),y("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),ot("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const HG=[[["mat-select-trigger"]],"*"],VG=["mat-select-trigger","*"],d1={transformPanelWrap:jr("transformPanelWrap",[ui("* => void",vb("@transformPanel",[_b()],{optional:!0}))]),transformPanel:jr("transformPanel",[qn("void",Lt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),qn("showing",Lt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),qn("showing-multiple",Lt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ui("void => *",mi("120ms cubic-bezier(0, 0, 0.2, 1)")),ui("* => void",mi("100ms 25ms linear",Lt({opacity:0})))])};let h1=0;const f1=new pe("mat-select-scroll-strategy"),zG=new pe("MAT_SELECT_CONFIG"),GG={provide:f1,deps:[ar],useFactory:function qG(n){return()=>n.scrollStrategies.reposition()}};class WG{constructor(t,e){this.source=t,this.value=e}}const $G=Vo(od(Ds(pb(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r,this.stateChanges=new L}})))),m1=new pe("MatSelectTrigger");let KG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-select-trigger"]],features:[rt([{provide:m1,useExisting:n}])]}),n})(),YG=(()=>{class n extends $G{constructor(e,i,r,o,s,a,l,c,u,d,h,f,_,S){super(s,o,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=_,this._defaultOptions=S,this._panelOpen=!1,this._compareWith=(U,Z)=>U===Z,this._uid="mat-select-"+h1++,this._triggerAriaLabelledBy=null,this._destroy=new L,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+h1++,this._panelDoneAnimatingStream=new L,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=ea(()=>{const U=this.options;return U?U.changes.pipe(ii(U),Kn(()=>Mn(...U.map(Z=>Z.onSelectionChange)))):this._ngZone.onStable.pipe(dn(1),Kn(()=>this.optionSelectionChanges))}),this.openedChange=new Be,this._openedStream=this.openedChange.pipe(Sn(U=>U),ue(()=>{})),this._closedStream=this.openedChange.pipe(Sn(U=>!U),ue(()=>{})),this.selectionChange=new Be,this.valueChange=new Be,this.ngControl&&(this.ngControl.valueAccessor=this),null!=S?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=S.typeaheadDebounceInterval),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(dy.required)??!1}set required(e){this._required=ct(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=ct(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=ct(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=ys(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new nl(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(af(),Qt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Qt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(ii(null),Qt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&o&&!Di(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!i.activeItem||Di(e))if(!s&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(dn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new R2(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Qt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Qt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Mn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Qt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Mn(...this.options.map(i=>i._stateChanges)).pipe(Qt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(p(Ho),p(Bt),p(nt),p(sd),p(Je),p(er,8),p(lc,8),p(cc,8),p(sm,8),p(mo,10),io("tabindex"),p(f1),p(ib),p(zG,8))},n.\u0275dir=he({type:n,viewQuery:function(e,i){if(1&e&&(Oe(RG,5),Oe(OG,5),Oe(nI,5)),2&e){let r;me(r=ge())&&(i.trigger=r.first),me(r=ge())&&(i.panel=r.first),me(r=ge())&&(i._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[De,kn]}),n})(),ua=(()=>{class n extends YG{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,r){const o=this._getItemHeight();return Math.min(Math.max(0,o*e-i+o/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Qt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(dn(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=gb(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:gI((e+i)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new WG(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),o=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let c=this._selectionModel.selected[0]||this.options.first;s=c&&c.group?32:16}r||(s*=-1);const a=0-(e.left+s-(r?o:0)),l=e.right+s-i.width+(r?0:o);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const o=this._getItemHeight(),s=(o-this._triggerRect.height)/2,a=Math.floor(256/o);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*o:this._scrollTop===r?(e-(this._getItemCount()-a))*o+(o-(this._getItemCount()*o-256)%o):i-o/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,s=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>s?this._adjustPanelUp(c,s):a>o?this._adjustPanelDown(a,o,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const o=Math.round(e-i);if(this._scrollTop+=o,this._offsetY+=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),s=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=gb(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,s),this._offsetY=this._calculateOverlayOffsetY(a,l,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275cmp=ze({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,m1,5),Vt(r,vo,5),Vt(r,wf,5)),2&e){let o;me(o=ge())&&(i.customTrigger=o.first),me(o=ge())&&(i.options=o),me(o=ge())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,i){1&e&&X("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(ot("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),wt("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[rt([{provide:Nd,useExisting:n},{provide:Cf,useExisting:n}]),De],ngContentSelectors:VG,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(Vn(HG),g(0,"div",0,1),X("click",function(){return i.toggle()}),g(3,"div",2),V(4,PG,2,1,"span",3),V(5,FG,3,2,"span",4),v(),g(6,"div",5),xe(7,"div",6),v()(),V(8,BG,4,14,"ng-template",7),X("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=sn(1);ot("aria-owns",i.panelOpen?i.id+"-panel":null),m(3),y("ngSwitch",i.empty),ot("id",i._valueId),m(1),y("ngSwitchCase",!0),m(1),y("ngSwitchCase",!1),m(3),y("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[Fa,sc,Mp,DT,nI,tI],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[d1.transformPanelWrap,d1.transformPanel]},changeDetection:0}),n})(),QG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[GG],imports:[Xi,yc,Ef,Pt,_c,am,Ef,Pt]}),n})();const g1=_s({passive:!0});let XG=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return gs;const i=Qn(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new L,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,g1),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,g1)}}),o}stopMonitoring(e){const i=Qn(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(T(Pn),T(nt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})();const ZG=new pe("MAT_INPUT_VALUE_ACCESSOR"),JG=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let eW=0;const tW=pb(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new L}});let Yo=(()=>{class n extends tW{constructor(e,i,r,o,s,a,l,c,u,d){super(a,o,s,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+eW++,this.focused=!1,this.stateChanges=new L,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(_=>E2().has(_)),this._iOSKeyupListener=_=>{const S=_.target;!S.value&&0===S.selectionStart&&0===S.selectionEnd&&(S.setSelectionRange(1,1),S.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ct(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(dy.required)??!1}set required(e){this._required=ct(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&E2().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ct(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,i=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(i!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=i,i?r.setAttribute("placeholder",i):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){JG.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Pn),p(mo,10),p(lc,8),p(cc,8),p(sd),p(ZG,10),p(XG),p(nt),p(sm,8))},n.\u0275dir=he({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&X("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Po("disabled",i.disabled)("required",i.required),ot("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),wt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[rt([{provide:Nd,useExisting:n}]),De,kn]}),n})(),nW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[sd],imports:[_1,am,Pt,_1,am]}),n})();const iW=[[["caption"]],[["colgroup"],["col"]]],rW=["caption","colgroup, col"];function lC(n){return class extends n{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=ct(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Rc=new pe("CDK_TABLE");let Oc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=he({type:n,selectors:[["","cdkCellDef",""]]}),n})(),Pc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=he({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),cm=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=he({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class lW{}const cW=lC(lW);let Ps=(()=>{class n extends cW{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=ct(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(p(Rc,8))},n.\u0275dir=he({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,Oc,5),Vt(r,Pc,5),Vt(r,cm,5)),2&e){let o;me(o=ge())&&(i.cell=o.first),me(o=ge())&&(i.headerCell=o.first),me(o=ge())&&(i.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[rt([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),De]}),n})();let dC=(()=>{class n extends class cC{constructor(t,e){e.nativeElement.classList.add(...t._columnCssClassName)}}{constructor(e,i){if(super(e,i),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(p(Ps),p(Je))},n.\u0275dir=he({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[De]}),n})();class y1{constructor(){this.tasks=[],this.endTasks=[]}}const hC=new pe("_COALESCED_STYLE_SCHEDULER");let b1=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new L}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new y1,this._getScheduleObservable().pipe(Qt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new y1;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Et(Promise.resolve(void 0)):this._ngZone.onStable.pipe(dn(1))}}return n.\u0275fac=function(e){return new(e||n)(T(nt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),pC=(()=>{class n{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Bd?e.headerCell.template:this instanceof Hd?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(us))},n.\u0275dir=he({type:n,features:[kn]}),n})();class uW extends pC{}const dW=lC(uW);let Bd=(()=>{class n extends dW{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(us),p(Rc,8))},n.\u0275dir=he({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[De,kn]}),n})();class hW extends pC{}const pW=lC(hW);let Hd=(()=>{class n extends pW{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(us),p(Rc,8))},n.\u0275dir=he({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[De,kn]}),n})(),um=(()=>{class n extends pC{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(us),p(Rc,8))},n.\u0275dir=he({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[De]}),n})(),Ls=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(p(En))},n.\u0275dir=he({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),gC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ze({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Wt(0,0)},dependencies:[Ls],encapsulation:2}),n})(),dm=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=he({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const C1=["top","bottom","left","right"];class fW{constructor(t,e,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0){if(!t.length||!this._isBrowser||!e.some(h=>h)&&!i.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=t[0],s=o.children.length,a=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(a,e),c=this._getStickyEndColumnPositions(a,i),u=e.lastIndexOf(!0),d=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,f=h?"right":"left",_=h?"left":"right";for(const S of t)for(let U=0;Ue[U]?S:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===d?[]:a.slice(d).map((S,U)=>i[U+d]?S:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const r="bottom"===i?t.slice().reverse():t,o="bottom"===i?e.slice().reverse():e,s=[],a=[],l=[];for(let u=0,d=0;u{for(let u=0;u{e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const r of e)t.style[r]="",t.classList.remove(this._borderCellCss[r]);C1.some(r=>-1===e.indexOf(r)&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of C1)t.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=t.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=t[o]);return i}}const _C=new pe("CDK_SPL");let hm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Je))},n.\u0275dir=he({type:n,selectors:[["","rowOutlet",""]]}),n})(),pm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Je))},n.\u0275dir=he({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),fm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Je))},n.\u0275dir=he({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),mm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Je))},n.\u0275dir=he({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),gm=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=s,this._platform=l,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=d,this._stickyPositioningListener=h,this._ngZone=f,this._onDestroy=new L,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new Be,this.viewChange=new sr({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=ct(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=ct(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Qt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),oC(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,s)=>this._getEmbeddedViewArgs(r.item,s),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&nt.isInAngularZone()?this._ngZone.onStable.pipe(dn(1),Qt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const o=this._footerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,s)=>{this._addStickyColumnStyles([o],this._headerRowDefs[s])}),this._rowDefs.forEach(o=>{const s=[];for(let a=0;a{this._addStickyColumnStyles([o],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(s)?r.get(s):[];if(a.length){const l=a.shift();return l.dataIndex=i,l}return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),_m(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=_m(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=_m(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=_m(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(s,a)=>s||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],oC(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;oC(this.dataSource)?e=this.dataSource.connect(this):ms(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ve(this.dataSource)),this._renderChangeSubscription=e.pipe(Qt(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),o=r.map(a=>a.sticky),s=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,o={}){const s=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),s}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Ls.mostRecentCellOutlet&&Ls.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of i){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const s of r.outlets)o.appendChild(s.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new fW(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Ve()).pipe(Qt(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(i){const o=r.createEmbeddedView(e.templateRef),s=o.rootNodes[0];1===o.rootNodes.length&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i}}return n.\u0275fac=function(e){return new(e||n)(p(us),p(Bt),p(Je),io("role"),p(er,8),p(ht),p(Pn),p(Pd),p(hC),p(Ho),p(_C,12),p(nt,8))},n.\u0275cmp=ze({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,dm,5),Vt(r,Ps,5),Vt(r,um,5),Vt(r,Bd,5),Vt(r,Hd,5)),2&e){let o;me(o=ge())&&(i._noDataRow=o.first),me(o=ge())&&(i._contentColumnDefs=o),me(o=ge())&&(i._contentRowDefs=o),me(o=ge())&&(i._contentHeaderRowDefs=o),me(o=ge())&&(i._contentFooterRowDefs=o)}},viewQuery:function(e,i){if(1&e&&(Oe(hm,7),Oe(pm,7),Oe(fm,7),Oe(mm,7)),2&e){let r;me(r=ge())&&(i._rowOutlet=r.first),me(r=ge())&&(i._headerRowOutlet=r.first),me(r=ge())&&(i._footerRowOutlet=r.first),me(r=ge())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&wt("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[rt([{provide:Rc,useExisting:n},{provide:Pd,useClass:o1},{provide:hC,useClass:b1},{provide:_C,useValue:null}])],ngContentSelectors:rW,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Vn(iW),Ht(0),Ht(1,1),Wt(2,0)(3,1)(4,2)(5,3))},dependencies:[hm,pm,fm,mm],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function _m(n,t){return n.concat(Array.from(t))}let gW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[lb]}),n})();const _W=[[["caption"]],[["colgroup"],["col"]]],vW=["caption","colgroup, col"];let vm=(()=>{class n extends gm{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275cmp=ze({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&wt("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[rt([{provide:Pd,useClass:o1},{provide:gm,useExisting:n},{provide:Rc,useExisting:n},{provide:hC,useClass:b1},{provide:_C,useValue:null}]),De],ngContentSelectors:vW,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Vn(_W),Ht(0),Ht(1,1),Wt(2,0)(3,1)(4,2)(5,3))},dependencies:[hm,pm,fm,mm],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),Vd=(()=>{class n extends Oc{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,selectors:[["","matCellDef",""]],features:[rt([{provide:Oc,useExisting:n}]),De]}),n})(),jd=(()=>{class n extends Ps{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[rt([{provide:Ps,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),De]}),n})(),Ud=(()=>{class n extends dC{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[De]}),n})(),ym=(()=>{class n extends um{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[rt([{provide:um,useExisting:n}]),De]}),n})(),bm=(()=>{class n extends gC{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275cmp=ze({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[rt([{provide:gC,useExisting:n}]),De],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Wt(0,0)},dependencies:[Ls],encapsulation:2}),n})(),MW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[gW,Pt,Pt]}),n})();const RW=["searchContact"];function OW(n,t){if(1&n){const e=je();g(0,"button",13),X("click",function(){return oe(e),se(x(2).searchValue="")}),xe(1,"div",14),v()}if(2&n){const e=x(2);m(1),y("ngStyle",e.searchClearImage)}}function PW(n,t){if(1&n&&(g(0,"mat-option",15),j(1),v()),2&n){const e=t.$implicit;y("value",e.value),m(1),we(e.viewValue)}}const LW=function(n){return{background:n}};function NW(n,t){if(1&n&&xe(0,"mat-cell",22),2&n){const e=t.$implicit,i=x(3);y("ngStyle",Wn(1,LW,"no-repeat url("+i.viewIconBaseURL+e.value.iconURL+")"))}}function FW(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.value.company," ")}}function BW(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.value.postal," ")}}function HW(n,t){if(1&n&&(g(0,"mat-cell",23)(1,"mat-dialog-content")(2,"span",24),j(3),v(),V(4,FW,2,1,"div",25),V(5,BW,2,1,"div",25),v()()),2&n){const e=t.$implicit;m(3),Qe(" ",e.display," "),m(1),y("ngIf",""!==e.value.company&&e.value.company!==e.display),m(1),y("ngIf",""!==e.value.postal)}}function VW(n,t){if(1&n){const e=je();g(0,"mat-row",26),X("click",function(){const o=oe(e).$implicit;return se(x(3).toggleSelection(o))})("dblclick",function(){const o=oe(e).$implicit;return se(x(3).acceptEntryDblClick(o))}),v()}if(2&n){const e=t.$implicit,i=x(3);wt("isSelected",i.selection.isSelected(e)),y("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function jW(n,t){if(1&n&&(g(0,"div")(1,"mat-table",16),bi(2,17),V(3,NW,1,3,"mat-cell",18),Ci(),bi(4,19),V(5,HW,6,3,"mat-cell",20),Ci(),V(6,VW,1,6,"mat-row",21),v()()),2&n){const e=x(2);wi(e.tableWrapperClassName),m(1),y("dataSource",e.searchResults),m(5),y("matRowDefColumns",e.displayedColumns)}}function UW(n,t){1&n&&(g(0,"div"),j(1),Xe(2,"translate"),v()),2&n&&(m(1),we(Ze(2,1,"LC53482")))}const qW=function(n){return{title:n}},zW=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function GW(n,t){if(1&n){const e=je();Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),j(6),Xe(7,"translate"),v(),g(8,"input",5),X("ngModelChange",function(r){return oe(e),se(x().searchValue=r)})("keyup.enter",function(){return oe(e),se(x().search())}),v(),V(9,OW,2,1,"button",6),v(),g(10,"input",7),X("click",function(){return oe(e),se(x().search())}),Xe(11,"translate"),v()(),g(12,"mat-form-field",8)(13,"mat-label"),j(14),Xe(15,"translate"),v(),g(16,"mat-select",9),X("valueChange",function(r){return oe(e),se(x().selectedDB=r)})("selectionChange",function(){oe(e);const r=x();return se(r.fetchSearch(r.selectedDB))}),V(17,PW,2,2,"mat-option",10),v()(),V(18,jW,7,5,"div",11),V(19,UW,3,3,"ng-template",null,12,Tn),v(),Wt(21,1),Xe(22,"translate"),Xe(23,"translate")}if(2&n){const e=sn(20),i=x();y("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",Wn(25,qW,Ze(1,13,"LC53493"))),m(6),we(Ze(7,15,"LC53489")),m(2),y("ngModel",i.searchValue),m(1),y("ngIf",i.searchValue),m(1),Ot("value",Ze(11,17,"LC36251")),m(4),we(Ze(15,19,"LC53516")),m(2),y("value",i.selectedDB),m(1),y("ngForOf",i.databases),m(1),y("ngIf",i.searchResults.length>=1)("ngIfElse",e),m(3),y("ngTemplateOutlet",i.modalFooter)("ngTemplateOutletContext",Ki(27,zW,Ze(22,21,"LC73135"),Ze(23,23,"LC73136"),i.confirmAction.bind(i),i.cancelAction.bind(i)))}}let S1=(()=>{class n extends sC{constructor(e,i,r,o,s,a){super(e,r,i,o,s,a),this.messageEvent=new Be,this.prefix="Contacts: ",this.path="search",this.searchResults=[]}ngOnInit(){super.ngOnInit()}getTemplate(){return this.modalTemp}filterForContacts(e){const i={};for(const r in e)"GeOfficeAliases"!==r&&"Contact"===e[r].type&&(i[r]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:this.prefix+e[i]});this.databases.length>0&&(this.selectedDB=this.databases[0].value,this.fetchSearch(this.selectedDB))}fetchDBs(){this.connection.getReqModal("dbConnections",null).subscribe(e=>{this.filterForContacts(e)})}handleResult(e){this.searchResults=null!=e.result&&Array.isArray(e.result)&&e.result.length>0?e.result:[]}confirmAction(){this.selection.isEmpty()?this.translate.get("LC53493").subscribe(e=>{this.messageService.showError(e)}):this.openAnotherModal(this.next,{currentContactPointer:this.selection.selected[0].value.fdMe,createType:this.data.createType,contactsDB:this.selectedDB})}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(pt),p(en),p(Ld),p(Rs))},n.\u0275cmp=ze({type:n,selectors:[["app-search-contact"]],viewQuery:function(e,i){if(1&e&&Oe(RW,7),2&e){let r;me(r=ge())&&(i.modalTemp=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De],decls:2,vars:0,consts:[["searchContact",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"searchInputWrapper"],[1,"searchInput"],["matInput","","type","text",3,"ngModel","ngModelChange","keyup.enter"],["matSuffix","","aria-label","Clear",3,"click",4,"ngIf"],["id","searchButton","type","button",1,"buttonSilverMiddle",3,"value","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["noResult",""],["matSuffix","","aria-label","Clear",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[3,"value"],[1,"searchTable",3,"dataSource"],["matColumnDef","icon"],["class","searchIcon",3,"ngStyle",4,"matCellDef"],["matColumnDef","display"],["class","searchDisplay",4,"matCellDef"],["matRipple","","class","searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"searchIcon",3,"ngStyle"],[1,"searchDisplay"],[1,"bold"],[4,"ngIf"],["matRipple","",1,"searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","click","dblclick"]],template:function(e,i){1&e&&V(0,GW,24,32,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,Qs,fo,Fo,ps,Sf,Ko,Gr,aC,ua,vo,Yo,vm,jd,Vd,ym,Ud,bm,Ar,Pi],styles:[".searchInputWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.searchInput[_ngcontent-%COMP%]{width:calc(100% - 70px);display:block;padding-bottom:0!important}.searchIcon[_ngcontent-%COMP%]{width:30px;padding:0 10px 0 0!important;background-position:40% 50%!important}.searchRow[_ngcontent-%COMP%] .searchIcon[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%] .searchDisplay[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%]{border-bottom:0px}.searchRow[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.isSelected[_ngcontent-%COMP%]{background:rgb(224,239,255)!important}.searchRow[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;padding-right:5px}.searchRow[_ngcontent-%COMP%]:hover{background:rgba(224,239,255,.4)}.searchDisplay[_ngcontent-%COMP%], .searchTable[_ngcontent-%COMP%]{width:100%}.tableWrapper[_ngcontent-%COMP%], .tableWrapperVerse[_ngcontent-%COMP%], .tableWrapperVerseTabs[_ngcontent-%COMP%]{overflow:auto}.tableWrapper[_ngcontent-%COMP%]{max-height:50vh}.tableWrapperVerse[_ngcontent-%COMP%]{max-height:45vh}.tableWrapperVerseTabs[_ngcontent-%COMP%]{max-height:calc(45vh - 48px)}.overlay-list[_ngcontent-%COMP%], .overlay-selected[_ngcontent-%COMP%]{position:absolute;bottom:0;left:100%;right:0;overflow:hidden;width:0;height:100%;transition:.5s ease;box-shadow:none}.overlay-list[_ngcontent-%COMP%]{background-color:#a1f79b}.overlay-selected[_ngcontent-%COMP%]{background-color:#ff6a6a}.projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-list[_ngcontent-%COMP%], .projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-selected[_ngcontent-%COMP%]{width:30px;left:calc(100% - 30px);box-shadow:0 0 10px #999}.projectButton[_ngcontent-%COMP%]{margin:0;position:absolute;top:50%;left:calc(50% - 9px);transform:translateY(-50%)}#searchButton[_ngcontent-%COMP%]{height:100%;padding:4px;margin:0 0 5px;float:right;font-weight:700;display:flex}"]}),n})();const Cm=["","FirstName","MiddleName","LastName","FirstName#LastName","FirstName#MiddleName#LastName","LastName#FirstName","fdSalutatoryAddress","fdContactTitle","Company","Address1","Address2","ZipCode","City","ZipCode#City","CountryToo","MainPhone","Fax","CellPhone","EMailAddress","HomePage","Title","Department","State"],WW=["EMailAddress","FirstName#LastName","Company","HomePage","Address1","ZipCode#City","State","CountryToo","MainPhone","Fax","CellPhone","Title","fdContactTitle","Department","","","","","","","","",""];let Lc=(()=>{class n{constructor(e,i,r){this.init=e,this.messageService=i,this.globals=r,this.isInit=!1,this.initServiceInit=!1,this.init.waitForInit().subscribe(o=>{this.initServiceInit=o,this.deactivateLoader()}),this.forceOpen=!1,this.loaderTimeout=null,this.isActive=!1}deactivateLoaderAfterTimeout(){this.isActive&&(this.loaderTimeout=setTimeout(()=>{this.forceDeactivateLoader()},5e3))}activateLoader(e,i){this.globals.loginOpen||(this.clearTimeout(),this.deactivateLoaderAfterTimeout()),i&&(this.isActive=!0,this.forceOpen=i),this.isInit&&(this.isActive=!0,this.loaderCompSubscriber.next({activate:!0,modal:e}))}clearTimeout(){this.messageService.clearConnectionTimeout(),this.loaderTimeout&&(clearTimeout(this.loaderTimeout),this.loaderTimeout=null)}deactivateLoader(){this.isInit&&this.initServiceInit&&!this.forceOpen&&(this.isActive=!1,this.globals.loginOpen||this.clearTimeout(),this.messageService.clearConnectionTimeout(),this.loaderCompSubscriber.next({activate:!1}))}forceDeactivateLoader(){this.isActive=!1,this.globals.loginOpen||this.clearTimeout(),this.forceOpen=!1,this.loaderCompSubscriber.next({activate:!1})}connectToService(){return new b(e=>{this.loaderCompSubscriber=e,this.isInit=!0})}}return n.\u0275fac=function(e){return new(e||n)(T(rC),T(en),T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vC=(()=>{class n{constructor(e,i,r,o,s){this.translate=e,this.connection=i,this.globals=r,this.messageService=o,this.loaderService=s}invokeSoap(e,i,r){return new b(o=>{if(null!==i&&"object"==typeof i)try{let s='";for(const a in i)r?(s+="<"+a+' soapenc:arrayType="xsd:string[1]">",r=!1):s+="<"+a+">";s+="",this.connection.postSoap(this.globals.webInt+"/businessMailContacts",s).subscribe(a=>{a.then(l=>{200===l.status?l.text().then(c=>{const u=(new window.DOMParser).parseFromString(c,"text/xml"),d=u.getElementsByTagName(e+"Return")[0],h=[];let f;if(u.childNodes.length>0)for(let _=0;_{this.messageService.showError(a),this.loaderService.deactivateLoader(),o.error(Error(a))})}else this.translate.get("LC53487").subscribe(s=>{throw this.messageService.showError(s),Error(s)})})}arrayToObj(e,i){const r={};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=e[o].split(i);s.length>=2?r[s[0]]=s[1]:1===s.length&&(r[s[0]]="")}return r}}return n.\u0275fac=function(e){return new(e||n)(T(Xt),T(Nn),T(pt),T(en),T(Lc))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wr=navigator.language;let $W=(()=>{class n{constructor(e,i,r,o){this.translate=e,this.messageService=i,this.soapService=r,this.webintLink=o}create(e,i,r,o,s,a,l,c){switch(this.closeAll=l,a){case"company":this.handleCreateCompany(e,i,r,o,s);break;case"toCompany":this.handleCreateAddressToCompany(e,i,r,o,s,c);break;case"person":this.handleCreatePrivatePerson(e,i,r,o,s);break;default:this.translate.get("LC53496").subscribe(u=>{this.messageService.showError(u)})}}replaceWithCompanyData(e,i,r,o,s,a){var l=this;return Ee(function*(){const c=yield l.createResultObject(e,i,r,o);l.searchResultData=yield l.soapService.invokeSoap("GetAddressByID",{fdme:s});let u=l.searchResultData;if(u=Object.keys(u),u.length>0){const d=u[0].split("~*~");null!=d&&(c.Company=d[29],c.Address1=d[10],c.Address2=d[30],c.ZipCode=d[12],c.City=d[11],c.State=d[14],c.CountryToo=d[13],c.MainPhone=d[15],c.Fax=d[17])}return a.Company=c.Company,a.Address1=c.Address1,a.Address2=c.Address2,a["ZipCode#City"]=c.ZipCode+" "+c.City,a.State=c.State,a.CountryToo=c.CountryToo,a.MainPhone=c.MainPhone,a.Fax=c.Fax,a})()}createResultObject(e,i,r,o){var s=this;return Ee(function*(){const a={},l=e.split("\n");let c=null,u=null,d=null,h=null;l.length=o;let f="";s.translate.get("LC53497").subscribe(_=>{f=_});for(const _ in i)if(c=i[_],null!=l[_]&&null!=c&&Number(_)0){u=c.split("#"),d=l[_].split(" ");for(const S in u)if(Number(S)0&&l[_].trim().length>0&&(h=l[_].trim(),i[_].length>0)){if(null!=a[i[_]]&&0!==a[i[_]].localeCompare(h))return f=f.replace("{DUPLICATE}",r.get(i[_])),void s.messageService.showError(f);a[i[_]]=h}return a})()}handleCreateCompany(e,i,r,o,s){var a=this;return Ee(function*(){const l=yield a.createResultObject(e,i,r,s);if(null==l.Company||""===l.Company)return void a.translate.get("LC73202").subscribe(f=>{f=f.replace("{FIELDNAME}",r.get("Company")),a.messageService.showError(f)});let c="";for(const f in l)c+="~*~"+f+"~#~"+l[f];c="~*~"+l.Company+c,c+="~*~fdCorreType~#~GeMain",c+="~*~fdIsNewDoc~#~0",c+="~*~AddressSynch~#~0";const u={};let d;u.addressData=c,u.contactsPath="$"+o,u.targetCompanyId="",u.languageCode=Array.isArray(Wr)&&Wr.length>0?Wr[0]:Wr;try{d=yield a.soapService.invokeSoap("CreateAddresses",u,!0)}catch(f){return void a.messageService.showError(f.message)}const h=Object.keys(d);1===h.length?(window.open(a.webintLink.convertToLink(h[0]),"_blank"),a.closeAll()):a.translate.get("LC53496").subscribe(f=>{a.messageService.showError(f)})})()}handleCreateAddressToCompany(e,i,r,o,s,a){var l=this;return Ee(function*(){if(!a)return void l.translate.get("LC53496").subscribe(S=>{l.messageService.showError(S)});const c=yield l.createResultObject(e,i,r,s);let u=l.searchResultData;if(u=Object.keys(u),u.length>0){const S=u[0].split("~*~");null!=S&&(c.Company=S[29],c.Address1=S[10],c.Address2=S[30],c.ZipCode=S[12],c.City=S[11],c.State=S[14],c.CountryToo=S[13],(null==c.MainPhone||0===c.MainPhone.localeCompare(""))&&(c.MainPhone=S[15]),(null==c.Fax||0===c.Fax.localeCompare(""))&&(c.Fax=S[17]))}if(null==c.LastName||0===c.LastName.localeCompare(""))return void l.translate.get("LC73202").subscribe(S=>{S=S.replace("{FIELDNAME}",r.get("LastName")),l.messageService.showError(S)});let d="";for(const S in c)d+="~*~"+S+"~#~"+c[S];d="~*~"+d,d+="~*~AddressSynch~#~1";const h={};let f;h.addressData=d,h.contactsPath="$"+o,h.targetCompanyId=a,h.languageCode=Array.isArray(Wr)&&Wr.length>0?Wr[0]:Wr;try{f=yield l.soapService.invokeSoap("CreateAddresses",h,!0)}catch(S){return void l.messageService.showError(S.message)}const _=Object.keys(f);1===_.length?window.open(l.webintLink.convertToLink(_[0]),"_blank"):l.translate.get("LC53496").subscribe(S=>{l.messageService.showError(S)}),l.closeAll()})()}handleCreatePrivatePerson(e,i,r,o,s){var a=this;return Ee(function*(){const l=yield a.createResultObject(e,i,r,s);if(delete l.Company,null==l.LastName||0===l.LastName.localeCompare(""))return void a.translate.get("LC73202").subscribe(f=>{f=f.replace("{FIELDNAME}",r.get("LastName")),a.messageService.showError(f)});let c="~*~";for(const f in l)c+="~*~"+f+"~#~"+l[f];c+="~*~fdCorreType~#~GeMain",c+="~*~fdIsNewDoc~#~0",c+="~*~AddressSynch~#~0";const u={};let d;u.addressData=c,u.contactsPath="$"+o,u.targetCompanyId="",u.languageCode=Array.isArray(Wr)&&Wr.length>0?Wr[0]:Wr;try{d=yield a.soapService.invokeSoap("CreateAddresses",u,!0)}catch(f){return void a.messageService.showError(f.message)}const h=Object.keys(d);1===h.length?window.open(a.webintLink.convertToLink(h[0]),"_blank"):a.translate.get("LC53496").subscribe(f=>{a.messageService.showError(f)}),a.closeAll()})()}}return n.\u0275fac=function(e){return new(e||n)(T(Xt),T(en),T(vC),T(Wo))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const KW=["create"],YW=["labels"],QW=["areaData"],XW=["previewData"];function ZW(n,t){if(1&n){const e=je();g(0,"mat-list-option",11),X("click",function(){const r=oe(e),o=r.$implicit,s=r.index;return se(x(2).changeLabel(o,s))}),j(1),v()}if(2&n){const e=t.$implicit,i=t.index,r=x(2);Ot("value",r.currentKeyLabels[i]),m(1),Qe(" ",r.fieldDisplayNameMap.get(e)," ")}}function JW(n,t){1&n&&xe(0,"textarea",12,13)}const e$=function(n){return{title:n}},t$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function n$(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"div",3)(4,"div",4)(5,"mat-selection-list",5,6),V(7,ZW,2,2,"mat-list-option",7),v()(),xe(8,"textarea",8,9),V(10,JW,2,0,"textarea",10),v()(),Wt(11,1),Xe(12,"translate"),Xe(13,"translate")),2&n){const e=sn(9),i=x();y("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",Wn(15,e$,Ze(1,9,"LC73005"))),m(4),y("ngClass",null!==i.globals.curConnectorType?"createAddressLabels"+i.globals.curConnectorType:""),m(1),y("multiple",!1),m(2),y("ngForOf",i.currentKeyLabels),m(1),y("ngClass",null!==i.globals.curConnectorType?"createAddressTextArea"+i.globals.curConnectorType:""),m(2),y("ngIf",i.globals.displayMailBody),m(1),y("ngTemplateOutlet",i.modalFooter)("ngTemplateOutletContext",Ki(17,t$,Ze(12,11,"LC73135"),Ze(13,13,"LC73136"),i.confirmAction.bind(i,e),i.cancelAction.bind(i)))}}let i$=(()=>{class n extends Hr{constructor(e,i,r,o,s){super(e),this.translate=e,this.globals=i,this.messageService=r,this.soapService=o,this.createHandler=s,this.fieldDisplayNameList=[],this.fieldDisplayNameMap=new Map,this.setTranslatedNameList(),this.keyLabels=Cm,this.currentKeyLabels=WW}ngOnInit(){super.ngOnInit(),this.processScanFooter().then(e=>{this.fillTextArea(e)})}getTemplate(){return this.modalTemp}changeLabel(e,i){const r=this.openAnotherModal("createLabel",{labelDisplayMap:this.fieldDisplayNameMap,createLabels:Cm,selected:e});r&&r.afterClosed().subscribe(o=>{o&&(this.currentKeyLabels[i]=o)})}processScanFooter(){var e=this;return Ee(function*(){const i=e.globals.curConnector.curPostData.preview;let r;try{r=yield e.soapService.invokeSoap("scanMailFooter",{mailContent:i})}catch{}return r})()}confirmAction(){let e="";e=Array.isArray(arguments[0])?arguments[0][0].value:arguments[0].value,this.createAddress(e)}fillPreviewDisplay(){this.globals.displayMailBody&&this.previewData&&(this.previewData.nativeElement.textContent=this.globals.curConnector.preview)}createAddress(e){this.createHandler.create(e,this.currentKeyLabels,this.fieldDisplayNameMap,this.data.passedData.contactsDB,23,this.data.passedData.createType,this.data.closeAllModal,this.data.passedData.currentContactPointer)}fillTextArea(e){var i=this;return Ee(function*(){let r="",o=!0;const s=i.globals.curMailAddr;i.data.passedData.currentContactPointer&&(e=yield i.createHandler.replaceWithCompanyData("",i.currentKeyLabels,i.fieldDisplayNameMap,23,i.data.passedData.currentContactPointer,e));for(const a in i.currentKeyLabels)if(Object.prototype.hasOwnProperty.call(i.currentKeyLabels,a)){o?o=!1:r+="\n";let l=e[i.currentKeyLabels[a]];"EMailAddress"===i.currentKeyLabels[a]&&null!=s&&(null==l||""===l)&&(l=Array.isArray(s)&&s.length>0?s[0]:s),null==l&&(l=""),r+=l.trim(),i.areaData.nativeElement.textContent=r}i.fillPreviewDisplay()})()}setTranslatedNameList(){this.translate.get("LC73020").subscribe(e=>{this.fieldDisplayNameList=e.split(";"),this.createDisplayMap(this.fieldDisplayNameList)})}createDisplayMap(e){if(Cm.length===e.length){let i=1;for(const r of Cm)""!==r&&(this.fieldDisplayNameMap.set(r,e[i]),i++);this.fieldDisplayNameMap.set("",this.fieldDisplayNameList[0])}else this.translate.get("LC53488").subscribe(i=>{this.messageService.showError(i)})}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(pt),p(en),p(vC),p($W))},n.\u0275cmp=ze({type:n,selectors:[["app-create-contact"]],viewQuery:function(e,i){if(1&e&&(Oe(KW,7),Oe(YW,5),Oe(QW,5),Oe(XW,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first),me(r=ge())&&(i.areaData=r.first),me(r=ge())&&(i.previewData=r.first)}},inputs:{data:"data"},features:[De],decls:2,vars:0,consts:[["create",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],["id","createWrapper"],["id","createAddressLabels",3,"ngClass"],[3,"multiple"],["labels",""],["checkboxPosition","after",3,"value","click",4,"ngFor","ngForOf"],["id","createAddressTextArea","rows","23",3,"ngClass"],["areaData",""],["id","createMailContentArea","rows","23","readonly","",4,"ngIf"],["checkboxPosition","after",3,"value","click"],["id","createMailContentArea","rows","23","readonly",""],["previewData",""]],template:function(e,i){1&e&&V(0,n$,14,22,"ng-template",null,0,Tn)},dependencies:[Fa,ci,_n,Qi,$o,Os,Pi],styles:[".createAddressLabelsOwa[_ngcontent-%COMP%]{width:110px!important}.createAddressTextAreaOwa[_ngcontent-%COMP%]{width:148px!important;white-space:pre!important;line-height:16px!important;padding-top:2px!important;overflow-y:hidden!important}textarea[_ngcontent-%COMP%], #createAddressLabels[_ngcontent-%COMP%]{overflow:auto;resize:none;font-size:12px;margin:0 2px;outline:none;display:inline-block;border:1px solid rgb(133,133,133)}#createWrapper[_ngcontent-%COMP%]{white-space:nowrap}#createAddressLabels[_ngcontent-%COMP%]{overflow:hidden}@supports (-moz-transform: none){#createAddressLabels[_ngcontent-%COMP%]{top:3px;position:relative}}#createAddressLabels[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding-top:2px}#createAddressLabels[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{overflow:auto;resize:none;font-size:12px;margin:0 2px;outline:none;height:auto}#createAddressLabels[_ngcontent-%COMP%], #createAddressTextArea[_ngcontent-%COMP%], #createMailContentArea[_ngcontent-%COMP%]{height:382px}#createAddressLabels[_ngcontent-%COMP%]{width:131px}#createAddressTextArea[_ngcontent-%COMP%]{width:230px;white-space:pre;line-height:16px;padding-top:2px}#createMailContentArea[_ngcontent-%COMP%]{width:600px}"]}),n})();const r$=["crTicket"],o$=["tiTypes"];function s$(n,t){if(1&n){const e=je();g(0,"mat-list-option",6),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),v()}if(2&n){const e=t.$implicit,i=x(2);Ot("value",e.value),y("selected",e.key===i.recent),m(1),Qe(" ",e.key," ")}}const a$=function(n){return{title:n}},l$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function c$(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),V(5,s$,2,3,"mat-list-option",5),v()(),Wt(6,1),Xe(7,"translate"),Xe(8,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(12,a$,Ze(1,6,"LC53522"))),m(3),y("multiple",!1),m(2),y("ngForOf",e.ticketTypes),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(14,l$,Ze(7,8,"LC73135"),Ze(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let u$=(()=>{class n extends Hr{constructor(e,i,r,o,s,a,l,c){super(e),this.translate=e,this.connection=i,this.messageService=r,this.webintLink=o,this.addressService=s,this.globals=a,this.connectionService=l,this.loader=c,this.validTypes=[],this.ticketTypes=[],this.recent=sessionStorage.getItem("recentTicketType")}ngOnInit(){super.ngOnInit(),this.fetchTypes()}confirmAction(){try{this.createTicket()}catch{this.translate.get("LC53493").subscribe(i=>{this.messageService.showError(i)})}}createTicket(){this.loader.activateLoader(!0,!0);const i=this.selection.selectedOptions.selected[0].value.split("#");if(Array.isArray(i)&&i.length>1){let r="";this.addressService.currentAddressData&&(r=this.addressService.currentAddressData.pointer),this.createTicketHandler(this.globals.curMailUnid,i[0],i[1],r+"~#~"+this.globals.curMailAddr)}}createTicketHandler(e,i,r,o,s){const a=this.globals.curConnector.curPostData;this.loader.activateLoader(!0,!0),null!=a&&("Owa"===this.globals.curConnectorType?this.ticketHandlerOWA(a,e,i,r,o,s):this.ticketHandlerVerse(a,e,i,r,o,s))}ticketHandlerVerse(e,i,r,o,s,a){!0===a?this.ticketPost(i,r,o,s,a):this.handleDuplicate(i,r,o,s)}ticketHandlerOWA(e,i,r,o,s,a){this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:l=>{i=l,!0===a||!this.globals.curConnector.curPostData.officeAlreadyDoc&&!this.globals.curConnector.curPostData.ticketAlreadyDoc?this.ticketPost("OWA:"+i,r,o,s,a):this.handleDuplicate(i,r,o,s)},error:l=>{this.loader.forceDeactivateLoader(),this.messageService.showError(l.statusText)},complete:()=>{}})}ticketPost(e,i,r,o,s){const a={mailunid:e,dbalias:i,targetemail:r,addrpointer:o};!0===s&&(a["allow-duplicate"]=!0),this.connection.postReq("ticket",this.connection.objectToHttpParams(a)).subscribe({next:l=>{window.open(this.webintLink.convertToLink(l.result),"_blank"),this.globals.curConnector.alreadyDocumented={officeAlreadyDoc:this.globals.curConnector.curPostData.officeAlreadyDoc,ticketAlreadyDoc:!0},this.loader.forceDeactivateLoader(),this.translate.get("translationWait").subscribe(c=>{this.messageService.showSuccess(this.globals.languageConfLocal.emailDocumented)}),this.closeAll()},error:l=>{409===l.status?this.handleDuplicate(e,i,r,o):this.messageService.showError(l.statusText)},complete:()=>{}})}handleDuplicate(e,i,r,o){this.loader.forceDeactivateLoader();const s=this.openAnotherModal("duplicate");if(s){const a=s.afterClosed().subscribe(l=>{l?(this.loader.activateLoader(!0,!0),this.createTicketHandler(e,i,r,o,l)):a.unsubscribe()})}}fetchTypes(){this.connection.getReqModal("ticket",null).subscribe(e=>{this.filterTypes(e)})}filterTypes(e){const i={};if(Array.isArray(e))for(const o in e)if(Array.isArray(e[o])&&e[o].length>=2){const s=e[o][0],a=e[o][1];i[s]=a,"giRecentSelection"!==s&&this.ticketTypes.push({key:s,value:a})}if(0===Object.keys(i).length&&i.constructor===Object)return void this.translate.get("LC73225").subscribe(o=>{this.messageService.showError(o)});const r=Object.keys(i);this.validTypes=Object.values(i),window.sessionStorage.setItem("recentTicketType",r[this.validTypes.indexOf(i.giRecentSelection)])}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(en),p(Wo),p(Rs),p(pt),p(Nn),p(Lc))},n.\u0275cmp=ze({type:n,selectors:[["app-create-ticket"]],viewQuery:function(e,i){if(1&e&&(Oe(r$,7),Oe(o$,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["crTicket",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["tiTypes",""],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&V(0,c$,9,19,"ng-template",null,0,Tn)},dependencies:[ci,Qi,$o,Os,Pi]}),n})(),yC=(()=>{class n{constructor(e,i){this.addressService=e,this.globals=i}reload(e){e&&(this.globals.curMailAddr=this.globals.startMailAddr),this.addressService.resetAddr(),this.addressService.addressChange()}}return n.\u0275fac=function(e){return new(e||n)(T(Rs),T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),d$=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.translate=e,this.globals=i,this.loader=r,this.connectionService=o,this.messageService=s,this.webInt=a,this.reloadService=l,this.modalService=c,this.allowDuplicate=!1}documentHandler(e,i,r,o,s){"Owa"===this.globals.curConnectorType?this.documentOWA(e,i,r,o,this.convertProjectsArrToString(s)):this.documentVerse(e,i,r,o,this.convertProjectsArrToString(s))}resetAllowDuplicate(){this.allowDuplicate=!1}convertProjectsArrToString(e){if(!(void 0===e||e.length<1))return e.join(";")}documentVerse(e,i,r,o,s){let a="store";this.globals.deleteAttachments&&(a="storedelattach");let l=new Yt;l=l.set("unid",e.messageID),l=l.set("pointer",i),l=l.set("office",r),l=l.set("command",a),s&&(l=l.set("projects",s)),this.allowDuplicate&&(l=l.set("allow-duplicate","true")),this.connectionService.postReq("document",l,!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:c=>{null!=c&&""!==c?(this.allowDuplicate=!1,this.loader.activateLoader(!0,!0),this.translate.get("translationWait").subscribe(u=>{this.messageService.showSuccess(this.globals.languageConfLocal.emailDocumented),o.closeAll()}),this.globals.openMail&&(l=new Yt,l.set("openDocument",c),window.open(this.webInt.convertToLink(c),"_blank")),this.resetAllowDuplicate(),this.reloadService.reload(),o.closeAll(),this.loader.forceDeactivateLoader()):this.translate.get("LC53488").subscribe(u=>{this.allowDuplicate=!1,this.loader.forceDeactivateLoader(),this.messageService.showError(u)})},error:c=>{if(this.allowDuplicate=!1,409===c.status)this.translate.get("LC73006").subscribe(u=>{this.messageService.showError(u),this.text=u,o.text=u,this.allowDuplicate=!0});else if(200!==c.status)return this.translate.get("LC73235").subscribe(u=>{this.messageService.showError(u)}),500===c.status?this.translate.get("LC53552").subscribe(u=>{this.messageService.showError(u,void 0,!0)}):this.messageService.showError(c.statusText),void this.resetAllowDuplicate();this.loader.forceDeactivateLoader()},complete:()=>{}})}documentOWA(e,i,r,o,s){var c,l,a=this;if("gi"===this.globals.system)this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(l=Ee(function*(c){if(null!=c&&""!==c){a.loader.activateLoader(!0,!0);const u=c;let d="store";a.globals.deleteAttachments&&(d="storedelattach");let h=new Yt;if(h=h.set("unid",u),h=h.set("pointer",i),h=h.set("office",r),h=h.set("command",d),h=h.set("origUnid",a.globals.curMailUnid),s&&(h=h.set("projects",s)),a.allowDuplicate&&(h=h.set("allow-duplicate","true"),a.allowDuplicate=!1),"Owa"===a.globals.curConnectorType&&!h.get("allow-duplicate")&&a.globals.curConnector.isMailAlreadyDoc)return a.loader.forceDeactivateLoader(),void a.translate.get("LC73006").subscribe(f=>{a.changeToDuplicateModal(f,o)});a.connectionService.postReq("convert",h,!1).subscribe({next:f=>{a.loader.activateLoader(!0,!0),a.translate.get("emailDocumented").subscribe(_=>{a.globals.curConnector.alreadyDocumented={officeAlreadyDoc:!0,ticketAlreadyDoc:a.globals.curConnector.curPostData.ticketAlreadyDoc},a.messageService.showSuccess(_)}),a.globals.openMail&&(h=new Yt,h.set("openDocument",f),window.open(a.webInt.convertToLink(f),"_blank")),a.reloadService.reload(),o.closeAll(),a.loader.forceDeactivateLoader()},error:f=>{if(a.loader.forceDeactivateLoader(),409===f.status)a.translate.get("LC73006").subscribe(_=>{a.changeToDuplicateModal(_,o)});else if(200!==f.status)return void(f.statusText.includes("CEGetMail")?(a.messageService.showInfo(a.globals.languageConfLocal.noUserAssignedTicket),setTimeout(()=>{a.modalService.closeAllModals(),a.reloadService.reload()},a.messageService.getTimeoutMS())):(a.translate.get("LC73235").subscribe(_=>{a.messageService.showError(_)}),a.messageService.showError(f.statusText)))},complete:()=>{}})}else a.translate.get("LC53488").subscribe(u=>{a.loader.forceDeactivateLoader(),a.messageService.showError(u)})}),function(u){return l.apply(this,arguments)}),error:l=>{this.messageService.showError(l.statusText),this.loader.forceDeactivateLoader(),o.closeAll()},complete:()=>{}});else{if(this.globals.curConnector.isMailAlreadyDoc&&!this.allowDuplicate)return this.loader.forceDeactivateLoader(),void this.translate.get("LC73006").subscribe(l=>{this.changeToDuplicateModal(l,o)});this.resetAllowDuplicate(),this.connectionService.postReq("document",e,!0,void 0,void 0,"?parentId="+i).subscribe({next:(c=Ee(function*(u){a.baNextHandler(u,o)}),function(d){return c.apply(this,arguments)}),error:function(){var c=Ee(function*(u){if(u.status>=200&&u.status<300)a.baNextHandler(u,o);else{const d=yield u.json();let h="Aktion konnte nicht durchgef\xfchrt werden. Versuchen Sie es sp\xe4ter erneut.";d.hasOwnProperty("ExceptionMessage")?h=d.ExceptionMessage:d.hasOwnProperty("Message")&&(h=d.Message),a.modalService.closeAllModals(),a.messageService.showError(h,"Error"),a.loader.forceDeactivateLoader()}});return function(d){return c.apply(this,arguments)}}(),complete:()=>{}})}}baNextHandler(e,i){var r=this;return Ee(function*(){const o=yield e.json();r.loader.activateLoader(!0,!0),r.translate.get("emailDocumented").subscribe(s=>{r.globals.curConnector.alreadyDocumented={officeAlreadyDoc:!0,ticketAlreadyDoc:r.globals.curConnector.curPostData.ticketAlreadyDoc},r.messageService.showSuccess(s)}),r.globals.openMail&&window.open(o.frontEndUri,"_blank"),r.reloadService.reload(),i.closeAll(),r.loader.forceDeactivateLoader()})()}changeToDuplicateModal(e,i){this.text=e,i.text=e,this.allowDuplicate=!0,this.globals.curConnector.alreadyDocumented={officeAlreadyDoc:!0,ticketAlreadyDoc:this.globals.curConnector.curPostData.ticketAlreadyDoc}}}return n.\u0275fac=function(e){return new(e||n)(T(Xt),T(pt),T(Lc),T(Nn),T(en),T(Wo),T(yC),T(ol))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class qd{}var da=(()=>(function(n){n[n.projects=0]="projects",n[n.contacts=1]="contacts"}(da||(da={})),da))();class h${}var il=(()=>(function(n){n[n.alreadyDocumented=0]="alreadyDocumented"}(il||(il={})),il))();class wm{}const p$=["mat-button",""],f$=["*"],g$=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],_$=Wa(Ds(Vo(class{constructor(n){this._elementRef=n}})));let Nc=(()=>{class n extends _${constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of g$)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(_o),p(Un,8))},n.\u0275cmp=ze({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&Oe(Ar,5),2&e){let r;me(r=ge())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(ot("disabled",i.disabled||null),wt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[De],attrs:p$,ngContentSelectors:f$,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(Vn(),g(0,"span",0),Ht(1),v(),xe(2,"span",1)(3,"span",2)),2&e&&(m(2),wt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),y("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[Ar],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),T1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[ia,Pt,Pt]}),n})(),v$=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this.translate=i,this.globals=r}ngOnInit(){}closeDialog(e){this.dialogRef.close(e)}}return n.\u0275fac=function(e){return new(e||n)(p(Df),p(Xt),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-already-documented-component"]],decls:10,vars:7,consts:[["mat-dialog-title",""],[1,"mat-typography"],["align","end"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(g(0,"h2",0),j(1),Xe(2,"translate"),v(),xe(3,"mat-dialog-content",1),g(4,"mat-dialog-actions",2)(5,"button",3),X("click",function(){return i.closeDialog(!0)}),j(6),Xe(7,"translate"),v(),g(8,"button",3),X("click",function(){return i.closeDialog(!1)}),j(9),v()()),2&e&&(m(1),we(Ze(2,3,"LC73006")),m(5),we(Ze(7,5,"LC73057")),m(3),we(i.globals.languageConfLocal.NO))},dependencies:[G6,Sf,W6,Nc,Pi],encapsulation:2}),n})(),Em=(()=>{class n{constructor(e){this.dialog=e}createDialogWithType(e,i){let r;return i||((i=new Cc).disableClose=!0,i.autoFocus=!0),e===il.alreadyDocumented&&(r=v$),new b(o=>{let s=document.createElement("button");document.body.appendChild(s),s.onclick=()=>{o.next(this.dialog.open(r,i))},s?.click(),s?.remove()})}createCustomDialog(){}}return n.\u0275fac=function(e){return new(e||n)(T(As))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var zd=G(5742);class Dm{}let rl=(()=>{class n{constructor(e){this.globals=e}GetAttachments(e,i){return e=this.fixItemId(e),new zd.y(r=>{let o=void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync;o?this.getAllAttachmentsContent(i,i.attachments,o,e,r):i.getAttachmentsAsync(s=>{this.getAllAttachmentsContent(i,s.value,o,e,r)})})}getAllAttachmentsContent2(e,i,r,o,s){let a=[];a=r?i:i.map(u=>u.id.replace("+","_")),Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n \n \n ',u=>{(new DOMParser).parseFromString(u.value,"text/xml").querySelectorAll("FileAttachment")})}getAllAttachmentsContent(e,i,r,o,s){this.getAttachmentsContent(e,i,0).subscribe(a=>{r||i.map(u=>u.id.replace("+","_")),Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n Default\n\n \n \n \n \n \n \n ',u=>{let f=(new DOMParser).parseFromString(u.value,"text/xml").querySelectorAll("FileAttachment"),_=f.length,S=[],U=[];for(let Z=0;Z<_;Z++){let ve=f[Z];if(ve){let Te,ee=ve.querySelector("IsInline")?.innerHTML,et=!1;"true"===ee&&(Te=ve.querySelector("ContentId")?.innerHTML,et=!0);let _t=ve.querySelector("AttachmentId")?.getAttribute("Id"),Gt=i.find(Gn=>Gn.id===_t),hn=a.find(Gn=>Gn.attachmentId===_t);if((!Gt||!hn)&&s.error("Documentation not possible"),"gi"===this.globals.system)S.push({data:hn.data,name:Gt?.name,type:Gt?.contentType,cid:Te,inline:et});else if(this.globals.deleteAttachments&&!et){let Gn=ve.querySelector("Name");Gn&&U.push(Gn.innerHTML)}else S.push({name:Gt?.name,mimeType:Gt?.contentType,contentID:Te,data:hn.data,isInline:et,inline:et})}}s.next({attachments:S,deletedAttachments:U})})})}getAttachmentsContent(e,i,r){return new zd.y(o=>{let s=[];r+1<=i.length?e.getAttachmentContentAsync(i[r].id,a=>{if(a.status!==Office.AsyncResultStatus.Failed){let c=i[r];s.push({name:c.name,mimeType:"file"===c.attachmentType?c.contentType:c.attachmentType,attachmentId:c.id,data:a.value.content,isInline:c.isInline,inline:c.isInline}),this.getAttachmentsContent(e,i,r+1).subscribe(u=>{s=s.concat(u),o.next(s)})}else o.error("Failed to get attachment content.")}):o.next(s)})}GetExtendedData(e,i=!1){if(!e||null==e){let r=Office.context.mailbox.item;r&&("function"==typeof r.saveAsync?r.saveAsync(o=>(this.globals.infoShower.currentItemId=o.value,this.performGetExtendedData(i,this.globals.infoShower.currentItemId))):(this.globals.infoShower.currentItemId=r.itemId,e=r.itemId))}return this.performGetExtendedData(i,e)}performGetExtendedData(e,i){let r='\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ';return new zd.y(o=>{try{Office.context.mailbox.makeEwsRequestAsync(r,s=>{const c=(new DOMParser).parseFromString(s.value,"text/xml").querySelector("ExtendedProperty>Value")?.innerHTML;if(c)try{o.next(JSON.parse(c))}catch{o.next(new Dm)}else o.next(new Dm)})}catch(s){throw s}})}SaveExtendedData(e,i){if(!e||null==e){let r=Office.context.mailbox.item;r&&("function"==typeof r.saveAsync?r.saveAsync(o=>(this.globals.infoShower.currentItemId=o.value,this.performSaveExtendedData(this.globals.infoShower.currentItemId,i))):(this.globals.infoShower.currentItemId=r.itemId,e=r.itemId))}return this.performSaveExtendedData(e,i)}performSaveExtendedData(e,i){if(!this.globals.infoShower.isNew&&!this.globals.infoShower.isUpdate)return new zd.y(o=>{o.next("NOSAVE")});let r='\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ';return new zd.y(o=>{Office.context.mailbox.makeEwsRequestAsync(r,s=>{const c=(new DOMParser).parseFromString(s.value,"text/xml").querySelector("ItemId")?.getAttribute("ChangeKey");let u='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '+JSON.stringify(i)+"\n \n \n \n \n \n \n \n \n ";Office.context.mailbox.makeEwsRequestAsync(u,d=>{o.next(d)})})})}fixItemId(e){return e}getItemWithExtendedProperties(){Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ',i=>{(new DOMParser).parseFromString(i.value,"text/xml")})}SetExtendedPropOnCalendar(){Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ',i=>{const s=(new DOMParser).parseFromString(i.value,"text/xml").querySelector("ItemId")?.getAttribute("ChangeKey");Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n DoItPlease\n \n \n \n\n \n \n \n \n \n ',l=>{})})}CreateAppointmentUsingEWS(){}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bC=(()=>{class n{constructor(){this.imgTag=//g,this.srcAtt=/(?:\bsrc=)("?)([^>"]+)\1/,this.htmlRegEx=/<\/?[a-z][\s\S]*>/i}fixImgTags(e){return e.replace(this.imgTag,i=>(i=i.replace(this.srcAtt,"")).replace(/\boriginalsrc=/,"src="))}isHtml(e){return this.htmlRegEx.test(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $r=navigator.language;let y$=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this.connection=e,this.modalService=i,this.globals=r,this.connectionService=o,this.webInt=s,this.translate=a,this.messageService=l,this.dialogService=c,this.ews=u,this.htmlHelper=d,this.soapService=h,this.webintLink=f}getContacts(){return Ee(function*(){})()}fetchDBs(e,i){return Et(this.connection.getReqNoCache(e,i,void 0,!0))}fetchActivityTypes(e){return new b(i=>{let r={};r.pointer=e,this.connectionService.getReqNoCache("activityTypes",this.connectionService.objectToHttpParams(r),void 0,!0).subscribe({next:o=>{let s=[];for(let a of o)s.push({name:a[0],alias:a[1]});i.next(s)},error:o=>{i.error(o)},complete:()=>{}})})}fetchActivities(e){return new b(i=>{let r=new Yt;e&&(r=r.append("pointer",e.pointer),void 0!==e.companyPointer&&(r=r.append("companypointer",e.companyPointer)),this.connectionService.getReqNoCache("activities",r,void 0,!0).subscribe({next:o=>{o.type="activities",i.next(o)},error:o=>{i.error(o)},complete:()=>{}})),this.connectionService.getReqNoCache("activityTypes",r,void 0,!0).subscribe({next:o=>{o.type="types",i.next(o)},error:o=>{i.error(o)},complete:()=>{}})})}getContactDBs(){return Et(this.fetchDBs("dbConnections",null))}fetchSearch(e,i,r){let s=r;s||(s="*");const a={};return a.searchKey=s,i?a.pointer=i:a.database=e,Et(this.connection.getReqNoCache("search",this.connection.objectToHttpParams(a),void 0,!0))}searchProjects(e,i,r){let s=r;s||(s="*");const a={};return a.searchKey=s,i&&(a.pointer=i),e&&(a.database=e),Et(this.connection.getReqNoCache("projects",this.connection.objectToHttpParams(a),void 0,!0))}handleSearchResult(e,i,r){let o=Array();if(i===da.contacts){if(null!=e.result&&Array.isArray(e.result)&&e.result.length>0){let s=e.result;for(let a=0;a0)for(let a of e.assignedProjectsWithDisplay){let l=new qd;l.fdMe=a.pointer,l.lineOne=a.name,l.image="025",l.lineTwo=this.globals.infoShower.displayedDestination.name,l.lineThree=a.projectNumber,o.push(l)}else for(let a of e.assignedProjects){let l=s.find(u=>u.pointer===a),c=new qd;l&&(c.fdMe=l.pointer,c.image=l.icon,c.lineOne=l.name,c.lineTwo=l.owner,c.lineThree=l.number,o.push(c))}else if(!r.participantProjects)for(let a=0;a{if(Office.context.mailbox.item){let r=Office.context.mailbox.item;const o=void 0===r.getItemIdAsync||void 0===typeof r.getItemIdAsync;console.log(r),r.body.getAsync(Office.CoercionType.Html,e,s=>{if(s.status!==Office.AsyncResultStatus.Failed){if("appointment"===r.itemType)throw new Error("Appointment direct sync not supported.");o?this.retrieveDataForEmailRead(r,s).subscribe({next:a=>{i.next(a)},error:a=>{i.error(a)}}):this.retrieveDataForEmailEdit(r,s).subscribe({next:a=>{i.next(a)},error:a=>{i.error(a)}})}})}else i.next(null)})}retrieveDataForAppointmentRead(e,i){return new b(r=>{this.ews.GetAttachments(e.itemId,e).subscribe(o=>{r.next({body:i.value,subject:e.subject,optionalAttendees:e.optionalAttendees,requiredAttendees:e.requiredAttendees,start:new Date(e.start).toISOString(),end:new Date(e.end).toISOString(),attachments:o.attachments})},o=>r.error(o))})}retrieveDataForAppointmentEdit(e,i){return new b(r=>{e.subject.getAsync({},o=>{o.status!==Office.AsyncResultStatus.Failed&&e.optionalAttendees.getAsync(s=>{s.status!==Office.AsyncResultStatus.Failed&&e.requiredAttendees.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.start.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.end.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&this.ews.GetAttachments(e.itemId,e).subscribe(u=>{r.next({body:i.value,subject:o.value,optionalAttendees:s.value,requiredAttendees:a.value,start:new Date(l.value).toISOString(),end:new Date(c.value).toISOString(),attachments:u.attachments})},u=>r.error(u))})})})})})})}retrieveDataForEmailRead(e,i){return new b(r=>{this.ews.GetAttachments(e.itemId,e).subscribe(o=>{r.next({to:e.to,from:e.from,cc:e.cc,subject:e.subject,sender:e.sender,contentType:"html",body:i.value,date:new Date(e.dateTimeCreated).getTime(),messageID:e.internetMessageId,preview:"",isIncoming:this.globals.incomingMail,attachments:o.attachments,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""})},o=>r.error(o))})}retrieveDataForEmailEdit(e,i){return new b(r=>{e.saveAsync(o=>{o.status!==Office.AsyncResultStatus.Failed&&e.to.getAsync(s=>{s.status!==Office.AsyncResultStatus.Failed&&e.from.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.cc.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.subject.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&this.ews.GetAttachments(o.value,e).subscribe(u=>{let d=[];u.attachments.forEach(h=>{h.inline&&!i.value.includes(h.cid)||d.push(h)}),r.next({to:s.value,from:a.value,cc:l.value,subject:c.value,sender:e.sender,contentType:"html",body:this.htmlHelper.fixImgTags(i.value),date:(new Date).getTime(),messageID:o.value,preview:"",isIncoming:!1,attachments:d,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""})},u=>r.error(u))})})})})})})}documentItemWithoutUI(e){var i=this;return new b(r=>{"doNotDocument"!==this.globals.infoShower.selectedEmailAddress?this.retrieveDataForItem({}).subscribe({next:o=>{console.log("Documenting new item:",o);let s=new Yt;var a;s=s.set("data",JSON.stringify(o)),s=s.set("isNewItem","true"),this.connectionService.postReq("convert",s,!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(a=Ee(function*(l){if(null!=l&&""!==l){const c=l;let u="store";i.globals.deleteAttachments&&(u="storedelattach");let d=new Yt;if(d=d.set("unid",c),d=d.set("pointer",e.documentTarget),e.officeDB&&(d=d.set("office",e.officeDB)),d=d.set("command",u),d=d.set("origUnid",o.messageID),d=d.set("isNewItem","true"),e.selectedProjects){let h=e.selectedProjects;if(h&&h.length>0){let f=JSON.parse(e.selectedProjects);d=d.set("projects",f.map(_=>_.pointer).join(";"))}}i.allowDuplicate&&(d=d.set("allow-duplicate","true"),i.allowDuplicate=!1),i.connectionService.postReq("convert",d,!1).subscribe({next:h=>{r.next(!0)},error:h=>{i.globals.hideSpinner(),200!==h.status&&(409===h.status?r.next():r.next(h)),r.error(h)},complete:()=>{}})}}),function(c){return a.apply(this,arguments)}),error:a=>{r.next(a),this.globals.hideSpinner()},complete:()=>{}})},error:o=>{this.translate.get(o).subscribe(s=>{r.error(this.globals.languageConfLocal[o])})}}):r.next()})}documentItemWithUI(e){this.globals.showSpinner(),this.retrieveDataForItem({}).subscribe({next:i=>{console.log("Documenting new item:",i);let o,r=e.selectedProjects;e.selectedProjects&&r&&r.length>0&&(o=JSON.parse(e.selectedProjects),o=o.map(a=>a.pointer).join(";"));let s="";e.officeDB&&(s=e.officeDB),this.document(i,e.documentTarget,s,"",o)},error:i=>{this.translate.get(i).subscribe(r=>{this.globals.hideSpinner(),this.messageService.showError(this.globals.languageConfLocal[i],"",void 0,1e4)})}})}document(e,i,r,o,s){var l,a=this;this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(l=Ee(function*(c){if(null!=c&&""!==c){a.globals.showSpinner();const u=c;let d="store";a.globals.deleteAttachments&&(d="storedelattach");let h=new Yt;h=h.set("unid",u),h=h.set("pointer",i),h=h.set("office",r),h=h.set("command",d),h=h.set("origUnid",e.messageID),s&&(h=h.set("projects",s)),a.allowDuplicate&&(h=h.set("allow-duplicate","true"),a.allowDuplicate=!1),a.connectionService.postReq("convert",h,!1).subscribe({next:f=>{a.translate.get("translationWait").subscribe(_=>{a.globals.hideSpinner(),a.messageService.showSuccess(a.globals.languageConfLocal.emailDocumented)}),a.globals.openMail&&(h=new Yt,h.set("openDocument",f),window.open(a.webInt.convertToLink(f),"_blank")),a.globals.addressActivities.refresh(),a.globals.hideSpinner()},error:f=>{if(a.globals.hideSpinner(),409===f.status){const _=new Cc;_.disableClose=!0,_.autoFocus=!0,a.dialogService.createDialogWithType(il.alreadyDocumented,_).subscribe(S=>{S.afterClosed().subscribe(U=>{console.log("Dialog result:",U),!0===U&&(a.globals.showSpinner(),a.allowDuplicate=!0,a.document(e,i,r,o,s))})})}else if(200!==f.status)return void(f.statusText.includes("CEGetMail")?(a.messageService.showInfo(a.globals.languageConfLocal.noUserAssignedTicket),setTimeout(()=>{a.globals.hideSpinner()},a.messageService.getTimeoutMS())):(a.translate.get("LC73235").subscribe(_=>{a.messageService.showError(_)}),a.messageService.showError(f.statusText),a.globals.hideSpinner()))},complete:()=>{}})}else a.translate.get("LC53488").subscribe(u=>{a.globals.hideSpinner(),a.messageService.showError(u)})}),function(u){return l.apply(this,arguments)}),error:l=>{this.messageService.showError(l.statusText),this.globals.hideSpinner()},complete:()=>{}})}resetAllowDuplicate(){this.allowDuplicate=!1}setCRMdata(e,i){return new b(r=>{r.next(null)})}retrieveItemIdForItem(){return new b(e=>{e.next("never called")})}getPhasesOfPointer(e){return new b(i=>{this.connection.postReq("phases",e,!0).subscribe(r=>{let o=[];for(let s=0;ss.lineTwo.localeCompare(a.lineTwo)||s.lineOne.localeCompare(a.lineOne)),i.next(o)})})}changeActivityListType(e){return new b(i=>{this.connectionService.postReq("activityTypes","displaydocumentstype="+e,!1).subscribe(r=>{i.next(r)})})}addToRecentlyUsed(e){}getProductVersion(){return new b(e=>{e.next("8.13")})}getDocumentsChips(e){return new b(i=>{i.next([])})}readCRMDataForItem(e){return new b(i=>{i.next("")})}extractContactData(e){return new b(i=>{try{this.soapService.invokeSoap("scanMailFooter",{mailContent:e}).subscribe(r=>{if(console.log("Soapresponse:",r),r){let o=new wm;o.City=r.City,o.Company=r.Company,o.CompanyAddress=r.Address1,o.CompanyEmail="",o.Department=r.Department,o.Email=r.EMailAddress,o.Fax=r.Fax,o.FirstName=r.FirstName,o.LastName=r.LastName,o.MiddleName=r.MiddleName,o.Mobile=r.CellPhone,o.Phone=r.MainPhone,o.Street=r.Address2,o.Url=r.HomePage,o.Zip=r.ZipCode,o.ZipCity=r["ZipCode#City"],i.next(o)}else i.next(new wm)})}catch{}})}quickCreateContact(e,i,r,o){return new b(s=>{let a={Address1:e.CompanyAddress??"",Address2:e.Street??"",CellPhone:e.Mobile,City:e.City??"",Company:e.Company??"",Department:e.Department??"",EMailAddress:e.Email??"",Fax:e.Fax,FirstName:e.FirstName??"","FirstName#LastName":e.FirstName+"#"+e.LastName,HomePage:e.Url,LastName:e.LastName??"",MainPhone:e.Phone,MiddleName:e.MiddleName??"",State:"",Title:"",ZipCode:e.Zip??"","ZipCode#City":e.Zip??"#"+e.City??""};this.globals.showSpinner();let l="toCompany";"compExist"===r?(l="toCompany",this.create(a,o,l,e.CompanyPointer).subscribe(c=>{s.next(c)})):("contNo"===i?l="company":"contNew"===i&&"compNew"===r?l="toCompany":"contNew"===i&&"compNo"===r&&(l="person"),this.create(a,o,l).subscribe(c=>{s.next(c)}))})}create(e,i,r,o){return new b(s=>{switch(r){case"company":this.handleCreateCompany(e,i).subscribe(a=>{s.next(a)});break;case"toCompany":o?this.handleCreateAddressToCompany(e,i,o).subscribe(a=>{s.next(a)}):this.handleCreateCompany(e,i).subscribe(a=>{s.next(a)});break;case"person":this.handleCreatePrivatePerson(e,i).subscribe(a=>{s.next(a)});break;default:this.translate.get("LC53496").subscribe(a=>{this.messageService.showError(a),s.error(a)})}})}replaceWithCompanyData(e,i){return new b(r=>{this.soapService.invokeSoap("GetAddressByID",{fdme:i}).subscribe(o=>{if((o=Object.keys(o)).length>0){const s=o[0].split("~*~");null!=s&&(e.Company=s[29],e.Address1=s[10],e.Address2=s[30],e.ZipCode=s[12],e.City=s[11],e.State=s[14],e.CountryToo=s[13])}r.next(e)})})}handleCreateCompany(e,i){return new b(r=>{if(null==e.Company||""===e.Company){let o=this.globals.languageConfLocal.CompanyNameRequired;this.messageService.showError(o),r.error(o)}else{let o="";for(const a in e)e.hasOwnProperty(a)&&(o+="~*~"+a+"~#~"+e[a]);o="~*~"+e.Company+o,o+="~*~fdCorreType~#~GeMain",o+="~*~fdIsNewDoc~#~0",o+="~*~AddressSynch~#~0";const s={};s.addressData=o,s.contactsPath="$"+i,s.targetCompanyId="",s.languageCode=Array.isArray($r)&&$r.length>0?$r[0]:$r;try{this.soapService.invokeSoap("CreateAddresses",s,!0).subscribe(a=>{console.log(a),1===Object.keys(a).length?r.next(a):this.translate.get("LC53496").subscribe(c=>{this.messageService.showError(c)})})}catch(a){this.messageService.showError(a.message)}}})}handleCreateAddressToCompany(e,i,r){return new b(o=>{r?this.replaceWithCompanyData(e,r).subscribe(s=>{if(e.Company=s.Company,e.Address1=s.Address1,e.Address2=s.Address2,e.ZipCode=s.ZipCode,e.City=s.City,e.State=s.State,e.CountryToo=s.CountryToo,(null==e.MainPhone||0===e.MainPhone.localeCompare(""))&&(e.MainPhone=s.MainPhone),(null==e.Fax||0===e.Fax.localeCompare(""))&&(e.Fax=s.Fax),null==e.LastName||0===e.LastName.localeCompare("")){let c=this.globals.languageConfLocal.LastNameRequired;c=c.replace("{FIELDNAME}",e.get("LastName")),this.messageService.showError(c)}let a="";for(const c in e)e.hasOwnProperty(c)&&(a+="~*~"+c+"~#~"+e[c]);a="~*~"+a,a+="~*~AddressSynch~#~1";const l={};l.addressData=a,l.contactsPath="$"+i,l.targetCompanyId=r,l.languageCode=Array.isArray($r)&&$r.length>0?$r[0]:$r;try{this.soapService.invokeSoap("CreateAddresses",l,!0).subscribe(c=>{const u=Object.keys(c);1===u.length?(o.next(c),window.open(this.webintLink.convertToLink(u[0]),"_blank")):this.translate.get("LC53496").subscribe(d=>{this.messageService.showError(d)})})}catch(c){this.messageService.showError(c.message),o.error(c.message)}}):this.translate.get("LC53496").subscribe(s=>{this.messageService.showError(s),o.error(s)})})}handleCreatePrivatePerson(e,i){return new b(r=>{if(delete e.Company,null==e.LastName||0===e.LastName.localeCompare("")){let o=this.globals.languageConfLocal.LastNameRequired;o=o.replace("{FIELDNAME}",e.get("LastName")),this.messageService.showError(o),r.error(o)}else{let o="~*~";for(const a in e)e.hasOwnProperty(a)&&(o+="~*~"+a+"~#~"+e[a]);o+="~*~fdCorreType~#~GeMain",o+="~*~fdIsNewDoc~#~0",o+="~*~AddressSynch~#~0";const s={};s.addressData=o,s.contactsPath="$"+i,s.targetCompanyId="",s.languageCode=Array.isArray($r)&&$r.length>0?$r[0]:$r;try{this.soapService.invokeSoap("CreateAddresses",s,!0).subscribe(a=>{const l=Object.keys(a);1===l.length?(r.next(a),window.open(this.webintLink.convertToLink(l[0]),"_blank")):this.translate.get("LC53496").subscribe(c=>{this.messageService.showError(c)})})}catch(a){this.messageService.showError(a.message),r.error(a.message)}}})}validateDataInBackend(){return new b(e=>{e.next({Validation:"PASS"})})}getEnumValues(){return new b(e=>{e.next([])})}}return n.\u0275fac=function(e){return new(e||n)(T(Nn),T(ol),T(pt),T(Nn),T(Wo),T(Xt),T(en),T(Em),T(rl),T(bC),T(vC),T(Wo))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),CC=(()=>{class n{constructor(e,i,r,o,s){this.global=e,this.waitList=i,this.http=r,this.globals=o,this.connectionService=s,this.loaded=!1,"gi"===this.globals.system?(s.waitForLC().subscribe(()=>{this.loaded=!0,this.processLCWaitingList()}),this.setLCSLocal()):s.waitForLC().subscribe(()=>{this.setLCSLocal()})}waitForInit(){return new b(e=>{this.loaded?(e.next(!0),e.complete(),this.processLCWaitingList()):this.waitList.addToWaitList("lc",e)})}getLCEntry(e,i,r){return this.replacePlaceholder(this.global.languageEntry("LC"+e),i,r)}passLCObj(){return this.global.languageConf}getLang(){return navigator.language.toLowerCase().startsWith("de")?"de":"en"}setLCSLocal(){this.http.get("assets/i18n/"+this.getLang()+".json").subscribe(e=>{this.globals.languageConfLocal=e,this.localLCReady()})}localLCReady(){for(const e of this.waitList.accessWaitList("localLC"))e.next(this.globals.languageConfLocal),e.complete();"gi"!==this.globals.system&&(this.globals.languageConf=this.globals.languageConfLocal,this.loaded=!0,this.processLCWaitingList())}processLCWaitingList(){this.waitList.accessWaitList("lc").forEach(e=>{e.next(),e.complete()})}replacePlaceholder(e,i,r){return i&&r&&(e=e.replace(i,r)),e}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(Ji),T(Xu),T(pt),T(Nn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),b$=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this.connection=e,this.modalService=i,this.globals=r,this.lsm=o,this.translate=s,this.messageService=a,this.dialogService=l,this.ews=c,this.htmlHelper=u,this.connectionService=d,this.converter=h,this.lang=f}fetchDBs(e,i){return Ve(null)}fetchSearch(e,i,r){const s={};return s.searchTerm=r,i&&(s.pointer=i),Et(this.connection.getReq("search",this.connection.objectToHttpParams(s),void 0,!0))}fetchActivityTypes(e){const r={};return e&&(r.pointer=e),new b(o=>{this.connection.getReq("activityTypes",this.connection.objectToHttpParams(r),void 0,!0).subscribe({next:s=>{s.type="types",o.next(s)},error:s=>{o.error(s)}})})}fetchActivities(e){return new b(i=>{let r=new Yt;e&&(r=r.append("addressOid",e.pointer),r=r.append("maxCount",this.converter.maxActivities),r=r.append("activitiesType",this.globals.addressActivities.selectedType),this.connectionService.getReqNoCache("activities",r,void 0,!0).subscribe({next:o=>{try{this.converter.convertActivity(i,o,this.globals.addressActivities.selectedType,this)}catch{i.error(this.globals.languageConfLocal.cantLoadData)}},error:o=>{i.error(o)},complete:()=>{}})),this.converter.convertActivityTypes(i)})}searchProjects(e,i,r){const s={};return s.searchTerm=r,i&&(s.pointer=i),Et(this.connection.getReq("searchProjects",this.connection.objectToHttpParams(s),void 0,!0))}handleSearchResult(e,i){return e}getImageSrc(e){return e&&e.toLowerCase().startsWith("http")?e:"assets/images/ba/"+e+".svg"}retrieveItemIdForItem(){return new b(e=>{e.next("never called")})}retrieveDataForItem(e){return new b(i=>{const r=Office.CoercionType.Html;if(Office.context.mailbox.item){let o=Office.context.mailbox.item;const s=void 0===o.getItemIdAsync||void 0===typeof o.getItemIdAsync;console.log(o),o.body.getAsync(Office.CoercionType.Html,e,a=>{if(a.status!==Office.AsyncResultStatus.Failed){if("appointment"===o.itemType)throw new Error("Appointment direct sync not supported.");s?this.retrieveDataForEmailRead(o,a,r).subscribe({next:l=>{i.next(l)},error:l=>{i.error(l)}}):this.retrieveDataForEmailEdit(o,a,r).subscribe({next:l=>{i.next(l)},error:l=>{i.error(l)}})}})}else i.next(null)})}retrieveDataForAppointmentRead(e,i){return new b(r=>{this.ews.GetAttachments(e.itemId,e).subscribe(o=>{r.next({body:i.value,subject:e.subject,optionalAttendees:e.optionalAttendees,requiredAttendees:e.requiredAttendees,start:new Date(e.start).toISOString(),end:new Date(e.end).toISOString(),attachments:o.attachments,deletedAttachments:o.deletedAttachments})},o=>r.error(o))})}retrieveDataForAppointmentEdit(e,i){return new b(r=>{e.subject.getAsync({},o=>{o.status!==Office.AsyncResultStatus.Failed&&e.optionalAttendees.getAsync(s=>{s.status!==Office.AsyncResultStatus.Failed&&e.requiredAttendees.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.start.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.end.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&this.ews.GetAttachments(e.itemId,e).subscribe(u=>{r.next({body:i.value,subject:o.value,optionalAttendees:s.value,requiredAttendees:a.value,start:new Date(l.value).toISOString(),end:new Date(c.value).toISOString(),attachments:u.attachments,deletedAttachments:u.deletedAttachments})},u=>r.error(u))})})})})})})}retrieveDataForEmailRead(e,i,r){return new b(o=>{this.ews.GetAttachments(e.itemId,e).subscribe(s=>{o.next({fromMail:e.from.emailAddress,toMail:this.filterObjectEntryOfArr(e.to),ccMail:this.filterObjectEntryOfArr(e.cc),messageID:e.itemId,subject:e.subject?e.subject:this.globals.languageConfLocal.noSubject,body:{htmlBody:!!r.toString().toLowerCase().includes("html"),text:Buffer.from(i.value).toString("base64")},type:r.toString(),date:new Date(e.dateTimeCreated).toISOString(),creationDate:new Date(e.dateTimeCreated).getTime(),changingDate:new Date(e.dateTimeCreated).getTime(),attachments:s.attachments,deletedAttachments:s.deletedAttachments,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:"",mailType:this.globals.incomingMail?"Incoming":"Outgoing"})},s=>o.error(s))})}retrieveDataForEmailEdit(e,i,r){return new b(o=>{e.saveAsync(s=>{e.to.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.from.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.cc.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&e.subject.getAsync(u=>{u.status!==Office.AsyncResultStatus.Failed&&this.ews.GetAttachments(s.value,e).subscribe(d=>{o.next({toMail:a.value.map(h=>h.emailAddress),fromMail:l.value.emailAddress,ccMail:c.value.map(h=>h.emailAddress),bccMail:[],subject:u.value,body:{htmlBody:!!r.toString().toLowerCase().includes("html"),text:Buffer.from(this.htmlHelper.fixImgTags(i.value)).toString("base64")},type:r.toString(),date:(new Date).toISOString(),creationDate:(new Date).getTime(),changingDate:(new Date).getTime(),messageID:s.value,mailType:"Outgoing",attachments:d.attachments,deletedAttachments:d.deletedAttachments,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""})},d=>o.error(d))})})})})})})}documentItemWithUI(e){this.globals.showSpinner(),this.retrieveDataForItem({}).subscribe({next:i=>{const o={};o.messageId=i.messageID,Et(this.connection.getReq("emailAlreadyDocumented",this.connection.objectToHttpParams(o),void 0,!0)).subscribe(s=>{s?(this.globals.hideSpinner(),this.dialogService.createDialogWithType(il.alreadyDocumented).subscribe(a=>{a.afterClosed().subscribe(l=>{!0===l&&(this.globals.showSpinner(),this.document(i,e))})})):this.document(i,e)})},error:i=>{this.translate.get(i).subscribe(r=>{this.globals.hideSpinner(),this.messageService.showError(r,"",void 0,1e4)})}})}document(e,i){var r=this;let o="?parentId="+i.documentTarget;var s;o=this.processCRMData(i,o),this.connection.postReq("document",e,!0,void 0,void 0,o).subscribe({next:(s=Ee(function*(a){r.baNextHandler(a)}),function(l){return s.apply(this,arguments)}),error:function(){var s=Ee(function*(a){if(a.status>=200&&a.status<300)r.baNextHandler(a);else{const l=yield a.json();let c="Aktion konnte nicht durchgef\xfchrt werden. Versuchen Sie es sp\xe4ter erneut.";l.hasOwnProperty("ExceptionMessage")?c=l.ExceptionMessage:l.hasOwnProperty("Message")&&(c=l.Message),r.modalService.closeAllModals(),r.messageService.showError(c,"Error")}});return function(l){return s.apply(this,arguments)}}(),complete:()=>{}})}baNextHandler(e){var i=this;return Ee(function*(){const r=e.oid;if(i.translate.get("translationWait").subscribe(o=>{i.messageService.showSuccess(i.globals.languageConfLocal.emailDocumented)}),i.globals.openMail){let o=i.connection.getPath("openRecord",!1)+"/"+r;window.open(o,"_blank")}i.globals.addressActivities.refresh(),i.globals.hideSpinner()})()}documentItemWithoutUI(e){return"appointment"===e.type?new b(i=>{i.next(null)}):this.documentItem(e)}documentItem(e){var i=this;return new b(r=>{this.retrieveDataForItem({}).subscribe({next:o=>{let s="?parentId="+e.documentTarget,a=this.lsm.getValue(tn.documentedItemId);var l;a&&(s+="&existingEmailId="+a),this.lsm.setValue(tn.documentedItemId,""),s=this.processCRMData(e,s),this.connection.postReq("document",o,!0,void 0,void 0,s).subscribe({next:(l=Ee(function*(c){c&&c.oid&&i.lsm.setValue(tn.documentedItemId,c.oid),r.next(c)}),function(u){return l.apply(this,arguments)}),error:function(){var l=Ee(function*(c){r.error(c)});return function(u){return l.apply(this,arguments)}}(),complete:()=>{}})},error:o=>{this.translate.get(o).subscribe(s=>{r.error(s)})}})})}processCRMData(e,i){if(e.selectedProjects){let r=JSON.parse(e.selectedProjects);r&&r.length>0&&(i+="&projectIds="+r.map(o=>o.pointer).join(","))}if(e.tags){let r=JSON.parse(e.tags);r&&r.length>0&&(i+="&tags="+r.map(o=>o[0]).join(","))}return i}filterObjectEntryOfArr(e){const i=[];for(const r of e)i.push(r.emailAddress);return i}setCRMdata(e,i){return new b(r=>{var s;this.connection.postReq("setCRMdata",e,!0,void 0,void 0,"?messageId="+i).subscribe({next:(s=Ee(function*(a){r.next(a)}),function(l){return s.apply(this,arguments)}),error:function(){var s=Ee(function*(a){r.error(a)});return function(l){return s.apply(this,arguments)}}(),complete:()=>{}})})}getPhasesOfPointer(e){return new b(i=>{i.next([])})}changeActivityListType(e){return new b(i=>{i.next(e)})}addToRecentlyUsed(e){this.connection.postReq("addRecentlyUsed","",!0,void 0,void 0,"?recordOid="+e).subscribe(r=>{})}getProductVersion(){return new b(e=>{this.connection.getReq("baVersion",this.connection.objectToHttpParams({}),void 0,!0).subscribe({next:i=>{e.next(i)},error:i=>{e.next("7.0.0.")}})})}getDocumentsChips(e){return new b(i=>{this.connection.getReq("getChips",this.connection.objectToHttpParams({oids:JSON.stringify(e)}),void 0,!0).subscribe({next:r=>{const o=[];for(const s of r)o.push({name:s.subject,image:s.imageName,fdMe:s.oid});i.next(o)},error:r=>{i.error(r)},complete:()=>{}})})}readCRMDataForItem(e){return new b(i=>{this.ews.GetExtendedData(e).subscribe(r=>{i.next(r)})})}extractContactData(e){return new b(i=>{this.connection.getReq("extractContact",this.connection.objectToHttpParams({textBlock:Buffer.from(e).toString("base64")}),void 0,!0).subscribe({next:r=>{i.next(r||new wm)},error:r=>{i.error(r)}})})}getEnumValues(e){return new b(i=>{this.connection.getReq("getEnumValues",null,!0,!0,"rest/",e).subscribe({next:r=>{let o=[],s=this.lang.getLang();r.Values.forEach(a=>{o.push([a.Oid,a["Language_"+s]])}),i.next(o)},error:r=>{i.error(r)}})})}quickCreateContact(e,i,r){return this.postCompanyContactData(e,r,i,!1)}postCompanyContactData(e,i,r,o){var s=this;return new b(a=>{let c=new C$,u=new w$,d=o?"/?validateOnly=true":"";if(c.Name=e.Company,c.Phone=e.CompanyPhone,c.Fax=e.CompanyFax,e.Street&&(c.Addresses=[{Address:e.Street,AddressType:e.MainAddressType,City:e.City,PostalCode:e.Zip}]),e.CompanyEmail&&(c.EmailAddresses=[{EmailAddress:e.CompanyEmail,EmailAddressType:e.MainEmailAddressType}]),u.FirstName=e.FirstName,u.LastName=e.LastName,u.Department=e.Department,u.CellPhone=e.Mobile,u.Phone=e.Phone,u.Fax=e.Fax,u.EmailAddresses=[{EmailAddress:e.Email,EmailAddressType:e.MainEmailAddressType}],"compNew"===i)this.connection.postReq("createRecord",JSON.stringify(c),!0,void 0,void 0,"FE7EB8AE-71BE-4220-8DA5-DC04078E6B3C"+d,"rest/").subscribe({next:(h=Ee(function*(f){if("contNew"===r)s.createContact(u,f.Oid,a,d,!0);else{if(!d){s.addToRecentlyUsed(f.Oid);let _=s.connection.getPath("openRecord",!1)+"/"+f.Oid+"?openInEditMode=true";window.open(_,"_blank")}a.next(f)}}),function(_){return h.apply(this,arguments)}),error:function(){var h=Ee(function*(f){f.json().then(_=>{let S="";_.forEach(U=>{S+=U.ErrorMessage+" "}),s.messageService.showMessageAsync(s.globals.languageConfLocal.companyCreationError+S,lr.error)}),a.error(f)});return function(_){return h.apply(this,arguments)}}()});else{if("compExist"!==i)throw new Error("Not supported for BA");this.createContact(u,e.CompanyPointer,a,d)}var h})}createContact(e,i,r,o,s=!1){var c,a=this;e.RelatedCompany=i,this.connection.postReq("createRecord",JSON.stringify(e),!0,void 0,void 0,"44FCB6FB-9230-48CF-A406-8F1F8C4D0B8C"+o,"rest/").subscribe({next:(c=Ee(function*(u){if(!o){a.addToRecentlyUsed(u.Oid);let d=a.connection.getPath("openRecord",!1)+"/"+u.Oid+"?openInEditMode=true";window.open(d,"_blank"),s&&(d=a.connection.getPath("openRecord",!1)+"/"+i+"?openInEditMode=true",window.open(d,"_blank"))}r.next(u)}),function(d){return c.apply(this,arguments)}),error:function(){var c=Ee(function*(u){u.json().then(d=>{let h="";d.forEach(f=>{h+=f.ErrorMessage+" "}),a.messageService.showMessageAsync(a.globals.languageConfLocal.contactCreationError+h,lr.error)}),r.error(u)});return function(d){return c.apply(this,arguments)}}()})}validateDataInBackend(e,i,r){return this.postCompanyContactData(e,r,i,!0)}}return n.\u0275fac=function(e){return new(e||n)(T(nC),T(ol),T(pt),T(Br),T(Xt),T(en),T(Em),T(rl),T(bC),T(nC),T(tC),T(CC))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class C${}class w${}let bo=(()=>{class n{constructor(e,i,r,o){switch(this.gi=e,this.ba=i,this.lsm=r,this.globals=o,this.dateSourceConfig={},this.datasource=this.gi,this.globals.system){case"gi":this.datasource=this.gi;break;case"ba":this.datasource=this.ba;break;default:throw new Error("Not implemented")}}fetchDBs(e,i){return this.datasource.fetchDBs(e,i)}fetchSearch(e,i,r){return this.datasource.fetchSearch(e,i,r)}fetchActivityTypes(e){return this.datasource.fetchActivityTypes(e)}searchProjects(e,i,r){return this.datasource.searchProjects(e,i,r)}handleSearchResult(e,i,r=new h$){return this.datasource.handleSearchResult(e,i,r)}getImageSrc(e){return this.datasource.getImageSrc(e)}documentItemWithUI(e){return this.datasource.documentItemWithUI(e)}documentItemWithoutUI(e){return this.datasource.documentItemWithoutUI(e)}retrieveDataForItem(e){return this.datasource.retrieveDataForItem(e)}setCRMdata(e,i){return this.datasource.setCRMdata(e,i)}retrieveItemIdForItem(){return new b(e=>{if(Office.context.mailbox.item){let i=Office.context.mailbox.item;void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync?e.next(i.itemId):i.getItemIdAsync(o=>{e.next(o.value)})}else e.next("")})}IsTaskpaneActive(){let e=this.lsm.getValue(tn.taskpaneActive);if(!e)return!1;{let i=new Date(e);if("Invalid Date"===i.toString())return!1;if(((new Date).getTime()-i.getTime())/1e3>20)return!1}return!0}doNotDocumentSelected(){return"doNotDocument"===this.lsm.getValue(tn.selectedEmail)}getPhasesOfPointer(e){return new b(i=>{this.datasource.getPhasesOfPointer(e).subscribe(r=>{i.next(r)})})}changeActivityListType(e){return this.datasource.changeActivityListType(e)}addToRecentlyUsed(e){this.datasource.addToRecentlyUsed(e)}getProductVersion(){return this.datasource.getProductVersion()}getDocumentsChips(e){return this.datasource.getDocumentsChips(e)}fetchActivities(e){return this.datasource.fetchActivities(e)}readCRMDataForItem(e){return this.datasource.readCRMDataForItem(e)}extractContactData(e){return this.datasource.extractContactData(e)}quickCreateContact(e,i,r,o=""){return this.datasource.quickCreateContact(e,i,r,o)}validateDataInBackend(e,i,r,o=""){return this.datasource.validateDataInBackend(e,i,r,o)}getEnumValues(e){return this.datasource.getEnumValues(e)}}return n.\u0275fac=function(e){return new(e||n)(T(y$),T(b$),T(Br),T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const E$=["docFile"],D$=function(n){return{title:n}},S$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function A$(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2),j(3),v(),Wt(4,1),Xe(5,"translate"),Xe(6,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(11,D$,Ze(1,5,"LC73005"))),m(3),we(e.text),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(13,S$,Ze(5,7,"LC73135"),Ze(6,9,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let T$=(()=>{class n extends Hr{constructor(e,i,r,o,s){super(e),this.translate=e,this.globals=i,this.loader=r,this.documentService=o,this.datasourceService=s}ngOnInit(){"gi"===this.globals.system?this.data.passedData.docPointer&&this.data.passedData.docPointer.includes("faActivities")?(this.pointer=this.data.passedData.docPointer,this.officeDB=this.pointer.substring(this.pointer.lastIndexOf("|")+1)):(this.officeDB=this.data.passedData.officeDB,this.pointer=this.data.passedData.currentContactPointer?this.data.passedData.currentContactPointer:this.data.passedData.docPointer):this.pointer=this.data.passedData.docPointer,this.translate.get("LC73019").subscribe(e=>{this.text=e+"..."}),this.confirmAction()}confirmAction(){var e=this;return Ee(function*(){let i=Office.context.mailbox.item,s=!0;i&&(s=void 0!==i.itemClass),e.loader.activateLoader(!0,!0);let a=e.globals.curConnector.curPostData;s?null!==a&&(console.log("Documenting existing mail:",a),e.documentService.documentHandler(a,e.pointer,e.officeDB,e,e.data.passedData.projectPointers?e.data.passedData.projectPointers:void 0)):e.datasourceService.retrieveDataForItem({}).subscribe({next:l=>{console.log("Documenting new item:",l),e.documentService.documentHandler(l,e.pointer,e.officeDB,e,e.data.passedData.projectPointers?e.data.passedData.projectPointers:void 0)}})})()}cancelAction(){this.documentService.resetAllowDuplicate(),this.data.closeAllModal()}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(pt),p(Lc),p(d$),p(bo))},n.\u0275cmp=ze({type:n,selectors:[["app-document-file"]],viewQuery:function(e,i){if(1&e&&Oe(E$,7),2&e){let r;me(r=ge())&&(i.modalTemp=r.first)}},features:[De],decls:2,vars:0,consts:[["docFile",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"]],template:function(e,i){1&e&&V(0,A$,7,18,"ng-template",null,0,Tn)},dependencies:[Qi,Pi]}),n})();const x$=["selContact"],I$=["dbs"];function M$(n,t){1&n&&(g(0,"p"),j(1),Xe(2,"translate"),v()),2&n&&(m(1),we(Ze(2,1,"LC53515")))}function k$(n,t){if(1&n){const e=je();g(0,"mat-list-option",7),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),v()}if(2&n){const e=t.$implicit,i=x(2);Ot("value",e.db),y("selected",1===i.contactDBs.length?e.db:null),m(1),Qe(" ",e.title," ")}}const R$=function(n){return{title:n}},O$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function P$(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),V(5,M$,3,3,"p",5),V(6,k$,2,3,"mat-list-option",6),v()(),Wt(7,1),Xe(8,"translate"),Xe(9,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(13,R$,Ze(1,7,"LC53516"))),m(3),y("multiple",!1),m(2),y("ngIf",e.contactDBs.length<1),m(1),y("ngForOf",e.contactDBs),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(15,O$,Ze(8,9,"LC73135"),Ze(9,11,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let wC=(()=>{class n extends Hr{constructor(e,i,r){super(e),this.translate=e,this.connection=i,this.messageService=r,this.contactDBs=[]}ngOnInit(){super.ngOnInit(),this.fetchContactsDBs()}confirmAction(e,i){try{let r;r=null!=i?i:this.selection.selectedOptions.selected[0].value,this.openAnotherModal(this.next,{contactsDB:r,createType:this.data.createType})}catch{this.translate.get("LC53493").subscribe(o=>{this.messageService.showError(o)})}}fetchContactsDBs(){this.connection.getReqModal("dbConnections",null).subscribe(e=>{this.clearOfficeDBs(),this.extractContacts(e)})}extractContacts(e){var i=this;return Ee(function*(){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if("GeOfficeAliases"===r)continue;"Contact"===e[r].type&&i.contactDBs.push({title:e[r].title,db:r})}i.contactDBs.length<1&&i.translate.get("LC73225").subscribe(r=>{i.messageService.showError(r),i.cancelAction()}),1===i.contactDBs.length&&i.confirmAction(i.selection,i.contactDBs[0].db)})()}clearOfficeDBs(){this.contactDBs.length=0}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(en))},n.\u0275cmp=ze({type:n,selectors:[["app-select-contact"]],viewQuery:function(e,i){if(1&e&&(Oe(x$,7),Oe(I$,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["selContact",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["dbs",""],[4,"ngIf"],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&V(0,P$,10,20,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,$o,Os,Pi]}),n})();const L$=["selLabelCreate"],N$=["selection"];function F$(n,t){if(1&n){const e=je();g(0,"mat-list-option",6),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),v()}if(2&n){const e=t.$implicit,i=x(2);Ot("value",e),y("selected",e===i.selectedEntry),m(1),Qe(" ",i.data.passedData.labelDisplayMap.get(e)," ")}}const B$=function(n){return{title:n}},H$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function V$(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),V(5,F$,2,3,"mat-list-option",5),v()(),Wt(6,1),Xe(7,"translate"),Xe(8,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(12,B$,Ze(1,6,"LC53516"))),m(3),y("multiple",!1),m(2),y("ngForOf",e.data.passedData.createLabels),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(14,H$,Ze(7,8,"LC73135"),Ze(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let j$=(()=>{class n extends Hr{constructor(e,i,r){super(e),this.translate=e,this.messageService=i,this.globals=r,this.selectedEntry=""}ngOnInit(){super.ngOnInit(),-1===this.data.passedData.createLabels.indexOf("")&&this.data.passedData.createLabels.unshift(""),this.selectedEntry=this.data.passedData.selected}confirmAction(){this.data.closeModal(this.selection.selectedOptions.selected[0].value)}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(en),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-select-create-label"]],viewQuery:function(e,i){if(1&e&&(Oe(L$,7),Oe(N$,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["selLabelCreate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["selection",""],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&V(0,V$,9,19,"ng-template",null,0,Tn)},dependencies:[ci,Qi,$o,Os,Pi]}),n})();const U$=["dupl"],q$=function(n){return{title:n}},z$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function G$(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2),j(3),Xe(4,"translate"),v(),Wt(5,1),Xe(6,"translate"),Xe(7,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(13,q$,Ze(1,5,"LC53516"))),m(3),we(Ze(4,7,"LC73006")),m(2),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(15,z$,Ze(6,9,"LC73057"),Ze(7,11,"NO"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let W$=(()=>{class n extends Hr{constructor(e){super(e),this.translate=e}ngOnInit(){super.ngOnInit()}confirmAction(){this.data.closeModal(!0)}}return n.\u0275fac=function(e){return new(e||n)(p(Xt))},n.\u0275cmp=ze({type:n,selectors:[["app-duplicate"]],viewQuery:function(e,i){if(1&e&&Oe(U$,7),2&e){let r;me(r=ge())&&(i.modalTemp=r.first)}},features:[De],decls:2,vars:0,consts:[["dupl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"]],template:function(e,i){1&e&&V(0,G$,8,20,"ng-template",null,0,Tn)},dependencies:[Qi,Pi]}),n})();const $$=["searchTemplate"];function K$(n,t){if(1&n){const e=je();g(0,"button",13),X("click",function(){return oe(e),se(x(2).searchValue="")}),xe(1,"div",14),v()}if(2&n){const e=x(2);m(1),y("ngStyle",e.searchClearImage)}}function Y$(n,t){if(1&n&&(g(0,"mat-option",15),j(1),v()),2&n){const e=t.$implicit;y("value",e.value),m(1),we(e.viewValue)}}const Q$=function(n){return{background:n}};function X$(n,t){if(1&n&&xe(0,"mat-cell",22),2&n){const e=t.$implicit,i=x(3);y("ngStyle",Wn(1,Q$,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function Z$(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Oo(" ",e.name,", ",e.type," ")}}function J$(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.purpose," ")}}function eK(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.category," ")}}function tK(n,t){if(1&n&&(g(0,"mat-cell",23)(1,"mat-dialog-content")(2,"span",24),j(3),v(),V(4,Z$,2,2,"div",25),V(5,J$,2,1,"div",25),V(6,eK,2,1,"div",25),v()()),2&n){const e=t.$implicit;m(3),Qe(" ",e.display," "),m(1),y("ngIf",""!==e.name),m(1),y("ngIf",""!==e.purpose),m(1),y("ngIf",""!==e.category)}}function nK(n,t){if(1&n){const e=je();g(0,"mat-row",26),X("click",function(){const o=oe(e).$implicit;return se(x(3).toggleSelection(o))})("dblclick",function(){const o=oe(e).$implicit;return se(x(3).acceptEntryDblClick(o))}),v()}if(2&n){const e=t.$implicit,i=x(3);wt("isSelected",i.selection.isSelected(e)),y("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function iK(n,t){if(1&n&&(g(0,"div")(1,"mat-table",16),bi(2,17),V(3,X$,1,3,"mat-cell",18),Ci(),bi(4,19),V(5,tK,7,4,"mat-cell",20),Ci(),V(6,nK,1,6,"mat-row",21),v()()),2&n){const e=x(2);wi(e.tableWrapperClassName),m(1),y("dataSource",e.searchResults),m(5),y("matRowDefColumns",e.displayedColumns)}}function rK(n,t){1&n&&(g(0,"div"),j(1),Xe(2,"translate"),v()),2&n&&(m(1),we(Ze(2,1,"LC53482")))}const oK=function(n){return{title:n}},sK=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function aK(n,t){if(1&n){const e=je();Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),j(6),Xe(7,"translate"),v(),g(8,"input",5),X("ngModelChange",function(r){return oe(e),se(x().searchValue=r)})("keyup.enter",function(){return oe(e),se(x().search())}),v(),V(9,K$,2,1,"button",6),v(),g(10,"input",7),X("click",function(){return oe(e),se(x().search())}),Xe(11,"translate"),v()(),g(12,"mat-form-field",8)(13,"mat-label"),j(14),Xe(15,"translate"),v(),g(16,"mat-select",9),X("valueChange",function(r){return oe(e),se(x().selectedDB=r)})("selectionChange",function(){oe(e);const r=x();return se(r.fetchSearch(r.selectedDB))}),V(17,Y$,2,2,"mat-option",10),v()(),V(18,iK,7,5,"div",11),V(19,rK,3,3,"ng-template",null,12,Tn),v(),Wt(21,1),Xe(22,"translate"),Xe(23,"translate")}if(2&n){const e=sn(20),i=x();y("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",Wn(25,oK,Ze(1,13,"LC53493"))),m(6),we(Ze(7,15,"LC53489")),m(2),y("ngModel",i.searchValue),m(1),y("ngIf",i.searchValue),m(1),Ot("value",Ze(11,17,"LC36251")),m(4),we(Ze(15,19,"LC53516")),m(2),y("value",i.selectedDB),m(1),y("ngForOf",i.databases),m(1),y("ngIf",i.searchResults.length>=1)("ngIfElse",e),m(3),y("ngTemplateOutlet",i.modalFooter)("ngTemplateOutletContext",Ki(27,sK,Ze(22,21,"LC73135"),Ze(23,23,"LC73136"),i.confirmAction.bind(i),i.cancelAction.bind(i)))}}let lK=(()=>{class n extends sC{constructor(e,i,r,o,s,a){super(e,r,i,o,s,a),this.messageEvent=new Be,this.prefix="Template: ",this.path="templates",this.searchResults=[]}ngOnInit(){super.ngOnInit()}getTemplate(){return this.modalTemp}createPhoneCallHttpParams(e){let o=new Yt;return o=o.appendAll({createDocument:"faActivities",parentPointer:this.addressService.currentPointer,templatePointer:e,templateType:"PhoneCall"}),null!=this.globals.curSubject&&(o=o.set("cval-Subject",this.globals.curSubject)),{paramsToAdd:["crmDB"],params:o}}convertToArr(e){const i={};for(const r in e)"Template"===e[r].type&&(i[e[r].alias]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:this.prefix+e[i]});this.data.parentPointer=this.addressService.currentPointer,this.databases.length>0&&(this.selectedDB=this.databases[0].value,this.fetchSearch(this.selectedDB))}fetchDBs(){this.connection.getReqModal("templates",this.connection.objectToHttpParams({templateDBs:"true"})).subscribe(e=>{this.convertToArr(e)})}handleResult(e){this.searchResults=null!=e&&Array.isArray(e)&&e.length>0?e:[]}confirmAction(){this.selection.isEmpty()?this.translate.get("LC53493").subscribe(e=>{this.messageService.showError(e)}):this.openAnotherModal(this.next,{paramsData:this.createPhoneCallHttpParams(this.selection.selected[0].pointer),ignoreNext:!0})}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(pt),p(en),p(Ld),p(Rs))},n.\u0275cmp=ze({type:n,selectors:[["app-search-template"]],viewQuery:function(e,i){if(1&e&&Oe($$,7),2&e){let r;me(r=ge())&&(i.modalTemp=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De],decls:2,vars:0,consts:[["searchTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"searchInputWrapper"],[1,"searchInput"],["matInput","","type","text",3,"ngModel","ngModelChange","keyup.enter"],["matSuffix","","aria-label","Clear",3,"click",4,"ngIf"],["id","searchButton","type","button",1,"buttonSilverMiddle",3,"value","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["noResult",""],["matSuffix","","aria-label","Clear",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[3,"value"],[1,"searchTable",3,"dataSource"],["matColumnDef","icon"],["class","searchIcon",3,"ngStyle",4,"matCellDef"],["matColumnDef","display"],["class","searchDisplay",4,"matCellDef"],["matRipple","","class","searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"searchIcon",3,"ngStyle"],[1,"searchDisplay"],[1,"bold"],[4,"ngIf"],["matRipple","",1,"searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","click","dblclick"]],template:function(e,i){1&e&&V(0,aK,24,32,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,Qs,fo,Fo,ps,Sf,Ko,Gr,aC,ua,vo,Yo,vm,jd,Vd,ym,Ud,bm,Ar,Pi],styles:[".searchInputWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.searchInput[_ngcontent-%COMP%]{width:calc(100% - 70px);display:block;padding-bottom:0!important}.searchIcon[_ngcontent-%COMP%]{width:30px;padding:0 10px 0 0!important;background-position:40% 50%!important}.searchRow[_ngcontent-%COMP%] .searchIcon[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%] .searchDisplay[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%]{border-bottom:0px}.searchRow[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.isSelected[_ngcontent-%COMP%]{background:rgb(224,239,255)!important}.searchRow[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;padding-right:5px}.searchRow[_ngcontent-%COMP%]:hover{background:rgba(224,239,255,.4)}.searchDisplay[_ngcontent-%COMP%], .searchTable[_ngcontent-%COMP%]{width:100%}.tableWrapper[_ngcontent-%COMP%], .tableWrapperVerse[_ngcontent-%COMP%], .tableWrapperVerseTabs[_ngcontent-%COMP%]{overflow:auto}.tableWrapper[_ngcontent-%COMP%]{max-height:50vh}.tableWrapperVerse[_ngcontent-%COMP%]{max-height:45vh}.tableWrapperVerseTabs[_ngcontent-%COMP%]{max-height:calc(45vh - 48px)}.overlay-list[_ngcontent-%COMP%], .overlay-selected[_ngcontent-%COMP%]{position:absolute;bottom:0;left:100%;right:0;overflow:hidden;width:0;height:100%;transition:.5s ease;box-shadow:none}.overlay-list[_ngcontent-%COMP%]{background-color:#a1f79b}.overlay-selected[_ngcontent-%COMP%]{background-color:#ff6a6a}.projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-list[_ngcontent-%COMP%], .projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-selected[_ngcontent-%COMP%]{width:30px;left:calc(100% - 30px);box-shadow:0 0 10px #999}.projectButton[_ngcontent-%COMP%]{margin:0;position:absolute;top:50%;left:calc(50% - 9px);transform:translateY(-50%)}#searchButton[_ngcontent-%COMP%]{height:100%;padding:4px;margin:0 0 5px;float:right;font-weight:700;display:flex}"]}),n})();const cK=["selMailAddr"],uK=["mailAddrs"];function dK(n,t){if(1&n){const e=je();g(0,"mat-list-option",7),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),Xe(2,"translate"),v()}if(2&n){const e=x(2);Ot("value",e.globals.curFrom.emailAddress),m(1),Oo(" ",Ze(2,3,"LC73126"),": ",e.globals.curFrom.emailAddress," ")}}function hK(n,t){if(1&n){const e=je();g(0,"mat-list-option",7),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),Xe(2,"translate"),v()}if(2&n){const e=t.$implicit;Ot("value",e.emailAddress),m(1),Oo(" ",Ze(2,3,"to"),": ",e.emailAddress," ")}}function pK(n,t){if(1&n){const e=je();g(0,"mat-list-option",7),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),Xe(2,"translate"),v()}if(2&n){const e=t.$implicit;Ot("value",e.emailAddress),m(1),Oo(" ",Ze(2,3,"LC73128"),": ",e.emailAddress," ")}}const fK=function(n){return{title:n}},mK=function(){return{}},gK=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function _K(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),V(5,dK,3,5,"mat-list-option",5),V(6,hK,3,5,"mat-list-option",6),V(7,pK,3,5,"mat-list-option",6),v()(),Wt(8,1),Xe(9,"translate"),Xe(10,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(14,fK,Ze(1,8,"LC53517"))),m(3),y("multiple",!1),m(2),y("ngIf",null!==e.globals.curFrom&&e.globals.curFrom!==bv(16,mK)),m(1),y("ngForOf",e.globals.curTo),m(1),y("ngForOf",e.globals.curCC),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(17,gK,Ze(9,10,"LC73135"),Ze(10,12,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let vK=(()=>{class n extends Hr{constructor(e,i,r,o){super(i),this.globals=e,this.translate=i,this.messageService=r,this.reloadService=o}ngOnInit(){super.ngOnInit()}confirmAction(){try{this.globals.curMailAddr=this.selection.selectedOptions.selected[0].value,this.closeAll(),this.reloadService.reload()}catch{this.translate.get("LC53493").subscribe(i=>{this.messageService.showError(i)})}}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(Xt),p(en),p(yC))},n.\u0275cmp=ze({type:n,selectors:[["app-select-mail-address"]],viewQuery:function(e,i){if(1&e&&(Oe(cK,7),Oe(uK,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["selMailAddr",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["mailAddrs",""],["checkboxPosition","after",3,"value","dblclick",4,"ngIf"],["checkboxPosition","after",3,"value","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","dblclick"]],template:function(e,i){1&e&&V(0,_K,11,22,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,$o,Os,Pi]}),n})(),yK=(()=>{class n{constructor(e){this.connection=e}getPhasesOfPointer(e){return new b(i=>{this.connection.postReq("phases",e,!0).subscribe(r=>{i.next(r),i.complete()})})}handlePhases(e){return new b(i=>{this.getPhasesOfPointer(e).subscribe(o=>{i.next(o),i.complete()})})}checkIfAllHidden(e,i){let r=!1,o=0;if(e.length>=i.length){for(const s of e)i.includes(s)&&o++;o>=i.length&&(r=!0)}return r}handleDocToDocPhases(e,i=!1){return new b(r=>{const o={},s=new Set,a=new Set,l=new Set;for(const c of e){const u=c.split("#");u.length>1?i?s.add(u[1]):(a.add(u[0]),o[u[0]]?o[u[0]].push(u[1]):o[u[0]]=[u[1]]):s.add(u[0])}this.handlePhases(Array.from(a)).subscribe(c=>{const u=new Set;for(const d of Array.from(a)){const h=c.find(f=>f.projectPointer===d);if(Array.isArray(o[d])&&o[d].length===h.projectphases.length)for(const f of h.projectphases)s.add(f.pointer);else{for(const f of o[d]){const _=h.projectphases.findIndex(S=>S.pointer===f);h.projectphases[_].selected=!0}l.add(h)}u.add(d)}for(const d of u)delete o[d],a.delete(d);r.next({projects:Array.from(s),parentPointersWithPhases:Array.from(a),phasesToCheck:Array.from(l)}),r.complete()})})}}return n.\u0275fac=function(e){return new(e||n)(T(Nn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function bK(n,t){1&n&&Ht(0)}const x1=["*"];function CK(n,t){}const wK=function(n){return{animationDuration:n}},EK=function(n,t){return{value:n,params:t}},DK=["tabListContainer"],SK=["tabList"],AK=["tabListInner"],TK=["nextPaginator"],xK=["previousPaginator"],IK=["tabBodyWrapper"],MK=["tabHeader"];function kK(n,t){}function RK(n,t){1&n&&V(0,kK,0,0,"ng-template",10),2&n&&y("cdkPortalOutlet",x().$implicit.templateLabel)}function OK(n,t){1&n&&j(0),2&n&&we(x().$implicit.textLabel)}function PK(n,t){if(1&n){const e=je();g(0,"div",6),X("click",function(){const r=oe(e),o=r.$implicit,s=r.index,a=x(),l=sn(1);return se(a._handleClick(o,l,s))})("cdkFocusChange",function(r){const s=oe(e).index;return se(x()._tabFocusChanged(r,s))}),g(1,"div",7),V(2,RK,1,1,"ng-template",8),V(3,OK,1,1,"ng-template",null,9,Tn),v()()}if(2&n){const e=t.$implicit,i=t.index,r=sn(4),o=x();wt("mat-tab-label-active",o.selectedIndex===i),y("id",o._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||o.disableRipple),ot("tabIndex",o._getTabIndex(e,i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(2),y("ngIf",e.templateLabel)("ngIfElse",r)}}function LK(n,t){if(1&n){const e=je();g(0,"mat-tab-body",11),X("_onCentered",function(){return oe(e),se(x()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return oe(e),se(x()._setTabBodyWrapperHeight(r))}),v()}if(2&n){const e=t.$implicit,i=t.index,r=x();wt("mat-tab-body-active",r.selectedIndex===i),y("id",r._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),ot("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))}}const NK=new pe("MatInkBarPositioner",{providedIn:"root",factory:function FK(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let I1=(()=>{class n{constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._inkBarPositioner=r,this._animationMode=o}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe(dn(1)).subscribe(()=>{const i=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=i.left,r.style.width=i.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nt),p(NK),p(Un,8))},n.\u0275dir=he({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,i){2&e&&wt("_mat-animation-noopable","NoopAnimations"===i._animationMode)}}),n})();const BK=new pe("MatTabContent"),M1=new pe("MatTabLabel"),k1=new pe("MAT_TAB");let HK=(()=>{class n extends j8{constructor(e,i,r){super(e,i),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(En),p(k1,8))},n.\u0275dir=he({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[rt([{provide:M1,useExisting:n}]),De]}),n})();const VK=Ds(class{}),R1=new pe("MAT_TAB_GROUP");let O1=(()=>{class n extends VK{constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new L,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Cs(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(R1,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,M1,5),Vt(r,BK,7,bn)),2&e){let o;me(o=ge())&&(i.templateLabel=o.first),me(o=ge())&&(i._explicitContent=o.first)}},viewQuery:function(e,i){if(1&e&&Oe(bn,7),2&e){let r;me(r=ge())&&(i._implicitContent=r.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[rt([{provide:k1,useExisting:n}]),De,kn],ngContentSelectors:x1,decls:1,vars:0,template:function(e,i){1&e&&(Vn(),V(0,bK,1,0,"ng-template"))},encapsulation:2}),n})();const jK={translateTab:jr("translateTab",[qn("center, void, left-origin-center, right-origin-center",Lt({transform:"none"})),qn("left",Lt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),qn("right",Lt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ui("* => left, * => right, left => center, right => center",mi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ui("void => left-origin-center",[Lt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),mi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ui("void => right-origin-center",[Lt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),mi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let UK=(()=>{class n extends Es{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=w.EMPTY,this._leavingSub=w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ii(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(ro),p(En),p(Zt(()=>P1)),p(ht))},n.\u0275dir=he({type:n,selectors:[["","matTabBodyHost",""]],features:[De]}),n})(),qK=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=w.EMPTY,this._translateTabComplete=new L,this._onCentering=new Be,this._beforeCentering=new Be,this._afterLeavingCenter=new Be,this._onCentered=new Be(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(af((o,s)=>o.fromState===s.fromState&&o.toState===s.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(er,8),p(Bt))},n.\u0275dir=he({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),P1=(()=>{class n extends qK{constructor(e,i,r){super(e,i,r)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(er,8),p(Bt))},n.\u0275cmp=ze({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Oe(Es,5),2&e){let r;me(r=ge())&&(i._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[De],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(g(0,"div",0,1),X("@translateTab.start",function(o){return i._onTranslateTabStarted(o)})("@translateTab.done",function(o){return i._translateTabComplete.next(o)}),V(2,CK,0,0,"ng-template",2),v()),2&e&&y("@translateTab",ZS(3,EK,i._position,Wn(1,wK,i.animationDuration)))},dependencies:[UK],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[jK.translateTab]}}),n})();const L1=new pe("MAT_TABS_CONFIG"),zK=Ds(class{});let N1=(()=>{class n extends zK{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(p(Je))},n.\u0275dir=he({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&(ot("aria-disabled",!!i.disabled),wt("mat-tab-disabled",i.disabled))},inputs:{disabled:"disabled"},features:[De]}),n})();const F1=_s({passive:!0});let $K=(()=>{class n{constructor(e,i,r,o,s,a,l){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=s,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new L,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new L,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Be,this.indexFocused=new Be,s.runOutsideAngular(()=>{bs(e.nativeElement,"mouseleave").pipe(Qt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=ct(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=ys(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){bs(this._previousPaginator.nativeElement,"touchstart",F1).pipe(Qt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),bs(this._nextPaginator.nativeElement,"touchstart",F1).pipe(Qt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Ve("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new hf(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(dn(1)).subscribe(r),Mn(e,i,this._items.changes,this._itemsResized()).pipe(Qt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Qt(this._destroyed)).subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?gs:this._items.changes.pipe(ii(this._items),Kn(e=>new b(i=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Xy(1),Sn(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Di(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const i=this._items?this._items.toArray()[e]:null;return!!i&&!i.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:s}=i.elementRef.nativeElement;let a,l;"ltr"==this._getLayoutDirection()?(a=o,l=a+s):(l=this._tabListInner.nativeElement.offsetWidth-o,a=l-s);const c=this.scrollDistance,u=this.scrollDistance+r;au&&(this.scrollDistance+=l-u+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),q2(650,100).pipe(Qt(Mn(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(Ho),p(er,8),p(nt),p(Pn),p(Un,8))},n.\u0275dir=he({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),KK=(()=>{class n extends $K{constructor(e,i,r,o,s,a,l){super(e,i,r,o,s,a,l),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ct(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(Ho),p(er,8),p(nt),p(Pn),p(Un,8))},n.\u0275dir=he({type:n,inputs:{disableRipple:"disableRipple"},features:[De]}),n})(),YK=(()=>{class n extends KK{constructor(e,i,r,o,s,a,l){super(e,i,r,o,s,a,l)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(Ho),p(er,8),p(nt),p(Pn),p(Un,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,r){if(1&e&&Vt(r,N1,4),2&e){let o;me(o=ge())&&(i._items=o)}},viewQuery:function(e,i){if(1&e&&(Oe(I1,7),Oe(DK,7),Oe(SK,7),Oe(AK,7),Oe(TK,5),Oe(xK,5)),2&e){let r;me(r=ge())&&(i._inkBar=r.first),me(r=ge())&&(i._tabListContainer=r.first),me(r=ge())&&(i._tabList=r.first),me(r=ge())&&(i._tabListInner=r.first),me(r=ge())&&(i._nextPaginator=r.first),me(r=ge())&&(i._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&&wt("mat-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[De],ngContentSelectors:x1,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(Vn(),g(0,"button",0,1),X("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(o){return i._handlePaginatorPress("before",o)})("touchend",function(){return i._stopInterval()}),xe(2,"div",2),v(),g(3,"div",3,4),X("keydown",function(o){return i._handleKeydown(o)}),g(5,"div",5,6),X("cdkObserveContent",function(){return i._onContentChanges()}),g(7,"div",7,8),Ht(9),v(),xe(10,"mat-ink-bar"),v()(),g(11,"button",9,10),X("mousedown",function(o){return i._handlePaginatorPress("after",o)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),xe(13,"div",2),v()),2&e&&(wt("mat-tab-header-pagination-disabled",i._disableScrollBefore),y("matRippleDisabled",i._disableScrollBefore||i.disableRipple)("disabled",i._disableScrollBefore||null),m(5),wt("_mat-animation-noopable","NoopAnimations"===i._animationMode),m(6),wt("mat-tab-header-pagination-disabled",i._disableScrollAfter),y("matRippleDisabled",i._disableScrollAfter||i.disableRipple)("disabled",i._disableScrollAfter||null))},dependencies:[Ar,cf,I1],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),n})(),QK=0;class XK{}const ZK=Wa(Vo(class{constructor(n){this._elementRef=n}}),"primary");let JK=(()=>{class n extends ZK{constructor(e,i,r,o){super(e),this._changeDetectorRef=i,this._animationMode=o,this._tabs=new Oa,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=w.EMPTY,this._tabLabelSubscription=w.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Be,this.focusChange=new Be,this.animationDone=new Be,this.selectedTabChange=new Be(!0),this._groupId=QK++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=ct(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=ys(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=ys(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=ct(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=ct(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement;i.classList.remove(`mat-background-${this.backgroundColor}`),e&&i.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let r;for(let o=0;o{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(ii(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new XK;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Mn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){e.disabled||(this.selectedIndex=i.focusIndex=r)}_getTabIndex(e,i){return e.disabled?null:i===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(L1,8),p(Un,8))},n.\u0275dir=he({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[De]}),n})(),eY=(()=>{class n extends JK{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(L1,8),p(Un,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,r){if(1&e&&Vt(r,O1,5),2&e){let o;me(o=ge())&&(i._allTabs=o)}},viewQuery:function(e,i){if(1&e&&(Oe(IK,5),Oe(MK,5)),2&e){let r;me(r=ge())&&(i._tabBodyWrapper=r.first),me(r=ge())&&(i._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,i){2&e&&wt("mat-tab-group-dynamic-height",i.dynamicHeight)("mat-tab-group-inverted-header","below"===i.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[rt([{provide:R1,useExisting:n}]),De],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,i){1&e&&(g(0,"mat-tab-header",0,1),X("indexFocused",function(o){return i._focusChanged(o)})("selectFocusedIndex",function(o){return i.selectedIndex=o}),V(2,PK,5,15,"div",2),v(),g(3,"div",3,4),V(5,LK,1,11,"mat-tab-body",5),v()),2&e&&(y("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),m(2),y("ngForOf",i._tabs),m(1),wt("_mat-animation-noopable","NoopAnimations"===i._animationMode),m(2),y("ngForOf",i._tabs))},dependencies:[Fa,ci,_n,Es,Ar,v8,N1,P1,YK],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),n})(),tY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Xi,Pt,za,ia,td,ob,Pt]}),n})();const nY=["searchProject"],iY=["searchTableSelected"];function rY(n,t){if(1&n){const e=je();g(0,"button",17),X("click",function(){return oe(e),se(x(3).searchValue="")}),xe(1,"div",18),v()}if(2&n){const e=x(3);m(1),y("ngStyle",e.searchClearImage)}}function oY(n,t){if(1&n&&(g(0,"mat-option",19),j(1),v()),2&n){const e=t.$implicit;y("value",e.value),m(1),we(e.viewValue)}}function sY(n,t){1&n&&j(0),2&n&&Qe(" ",x(3).globals.languageConfLocal.list," ")}const H1=function(n){return{background:n}};function aY(n,t){if(1&n&&xe(0,"mat-cell",27),2&n){const e=t.$implicit,i=x(4);y("ngStyle",Wn(1,H1,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function lY(n,t){if(1&n&&(g(0,"div",33),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.name," ")}}function cY(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Oo(" ",e.number," / ",e.owner," ")}}function uY(n,t){if(1&n){const e=je();g(0,"mat-cell",28)(1,"mat-dialog-content",29),V(2,lY,2,1,"div",30),V(3,cY,2,2,"div",1),g(4,"div",31),X("click",function(r){const s=oe(e).index;return x(4).addProject(s),se(r.stopPropagation())})("dblclick",function(r){return r.stopPropagation()}),xe(5,"img",32),v()()()}if(2&n){const e=t.$implicit;m(2),y("ngIf",""!==e.name),m(1),y("ngIf",""!==e.number&&""!==e.owner)}}function dY(n,t){}function hY(n,t){if(1&n){const e=je();g(0,"mat-row",34),X("click",function(){const o=oe(e).$implicit;return se(x(4).toggleSelection(o))})("dblclick",function(){const o=oe(e).$implicit;return se(x(4).acceptEntryDblClick(o))}),V(1,dY,0,0,"ng-template"),v()}if(2&n){const e=t.$implicit,i=x(4);wt("isSelected",i.selection.isSelected(e)),y("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)("hidden",!(e.show&&!i.pointerList.has(e.pointer)))}}function pY(n,t){if(1&n&&(g(0,"div")(1,"mat-table",20,21),bi(3,22),V(4,aY,1,3,"mat-cell",23),Ci(),bi(5,24),V(6,uY,6,2,"mat-cell",25),Ci(),V(7,hY,2,7,"mat-row",26),v()()),2&n){const e=x(3);wi(e.tableWrapperClassName),m(1),y("dataSource",e.searchResults),m(6),y("matRowDefColumns",e.displayedColumns)}}function fY(n,t){if(1&n){const e=je();g(0,"div"),X("@shake.done",function(){return oe(e),se(x(3).shakeEnd("selectedProdAnimation"))}),j(1),v()}if(2&n){const e=x(3);y("@shake",e.animationStates.selectedProdAnimation),m(1),Qe(" ",e.globals.languageConfLocal.selected," ")}}function mY(n,t){if(1&n&&xe(0,"mat-cell",27),2&n){const e=t.$implicit,i=x(4);y("ngStyle",Wn(1,H1,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function gY(n,t){if(1&n&&(g(0,"div",33),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.name," ")}}function _Y(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Oo(" ",e.number," / ",e.owner," ")}}function vY(n,t){if(1&n){const e=je();g(0,"mat-cell",28)(1,"mat-dialog-content",29),V(2,gY,2,1,"div",30),V(3,_Y,2,2,"div",1),g(4,"div",37),X("click",function(r){const s=oe(e).index;return x(4).removeProject(s),se(r.stopPropagation())})("dblclick",function(r){return r.stopPropagation()}),xe(5,"img",38),v()()()}if(2&n){const e=t.$implicit;m(2),y("ngIf",""!==e.name),m(1),y("ngIf",""!==e.number&&""!==e.owner)}}function yY(n,t){if(1&n){const e=je();g(0,"mat-row",39),X("click",function(){const o=oe(e).$implicit;return se(x(4).toggleSelection(o))})("dblclick",function(){const o=oe(e).$implicit;return se(x(4).acceptEntryDblClick(o))}),v()}if(2&n){const e=t.$implicit,i=x(4);wt("isSelected",i.selection.isSelected(e)),y("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function bY(n,t){if(1&n&&(g(0,"div")(1,"mat-table",20,35),bi(3,22),V(4,mY,1,3,"mat-cell",23),Ci(),bi(5,24),V(6,vY,6,2,"mat-cell",25),Ci(),V(7,yY,1,6,"mat-row",36),v()()),2&n){const e=x(3);wi(e.tableWrapperClassName),m(1),y("dataSource",e.selectedProjects),m(6),y("matRowDefColumns",e.displayedColumns)}}function CY(n,t){1&n&&(g(0,"div"),j(1),Xe(2,"translate"),v()),2&n&&(m(1),we(Ze(2,1,"LC53482")))}function wY(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x(3);m(1),Qe(" ",e.globals.languageConfLocal.noProjectSelected," ")}}const EY=function(n){return{title:n}},DY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function SY(n,t){if(1&n){const e=je();g(0,"div"),Wt(1,2),g(2,"div",3)(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),j(6),Xe(7,"translate"),v(),g(8,"input",6),X("ngModelChange",function(r){return oe(e),se(x(2).searchValue=r)})("keyup.enter",function(){oe(e);const r=x(2);return se(r.search(r.curPointer))}),v(),V(9,rY,2,1,"button",7),v(),g(10,"input",8),X("click",function(){oe(e);const r=x(2);return se(r.search(r.curPointer))}),Xe(11,"translate"),v()(),g(12,"mat-form-field",9)(13,"mat-label"),j(14),Xe(15,"translate"),v(),g(16,"mat-select",10),X("valueChange",function(r){return oe(e),se(x(2).selectedDB=r)})("selectionChange",function(){oe(e);const r=x(2);return se(r.fetchSearch(r.selectedDB,r.curPointer))}),V(17,oY,2,2,"mat-option",11),v()(),g(18,"mat-tab-group",12),X("selectedIndexChange",function(r){return oe(e),se(x(2).curTabIndex=r)}),g(19,"mat-tab"),V(20,sY,1,1,"ng-template",13),V(21,pY,8,5,"div",14),v(),g(22,"mat-tab"),V(23,fY,2,2,"ng-template",13),V(24,bY,8,5,"div",14),v()(),V(25,CY,3,3,"ng-template",null,15,Tn),V(27,wY,2,1,"ng-template",null,16,Tn),v(),Wt(29,2),Xe(30,"translate"),Xe(31,"translate"),v()}if(2&n){const e=sn(26),i=sn(28),r=x(2);m(1),y("ngTemplateOutlet",r.modalHeader)("ngTemplateOutletContext",Wn(26,EY,r.globals.languageConfLocal.selectProject)),m(5),we(Ze(7,16,"LC53489")),m(2),y("ngModel",r.searchValue),m(1),y("ngIf",r.searchValue),m(1),Ot("value",Ze(11,18,"LC36251")),m(4),we(Ze(15,20,"LC53516")),m(2),y("value",r.selectedDB),m(1),y("ngForOf",r.databases),m(1),y("selectedIndex",r.curTabIndex),m(3),y("ngIf",r.searchResults.length>=1&&!r.allHidden)("ngIfElse",e),m(3),y("ngIf",r.selectedProjects.length>=1)("ngIfElse",i),m(5),y("ngTemplateOutlet",r.modalFooter)("ngTemplateOutletContext",Ki(28,DY,Ze(30,22,"LC73135"),Ze(31,24,"LC73136"),r.confirmAction.bind(r),r.cancelAction.bind(r)))}}function AY(n,t){if(1&n&&V(0,SY,32,33,"div",1),2&n){const e=x();y("ngIf",e.projectStatus>0&&!e.docToDoc)}}let TY=(()=>{class n extends sC{constructor(e,i,r,o,s,a,l){super(e,r,i,o,s,a),this.projectService=l,this.messageEvent=new Be,this.animationStates={},this.prefix="Projects: ",this.path="projects",this.searchResults=[],this.selectedProjects=[],this.pointerList=new Set,this.searchResultPointers=[],this.addedContact=!1,this.allHidden=!1,this.docToDoc=!1,this.pointerToName={},this.selectionToPointer={},this.animationStates.selectedProdAnimation="",this.curTabIndex=0,this.projectStatus=-1}ngOnInit(){super.ngOnInit(),this.tableWrapperClassName="Owa"===this.globals.curConnectorType?"tableWrapper":"tableWrapperVerseTabs"}shakeEle(e){this.animationStates[e]="shakestart"===this.animationStates[e]?"shakeend":"shakestart"}shakeEnd(e){this.animationStates[e]="shakeend",this.animationStates[e+"inProg"]=!1}getTemplate(){return this.modalTemp}addProject(e){if(this.searchResults.length>=e){const i=this.searchResults[e];this.searchResults[e].show=!1,i.formerIndex=e,this.shakeEle("selectedProdAnimation"),this.selectedProjects.push(i),this.renderSelectedView()}this.updateSelectedPointer(),this.checkIfAllHidden()}removeProject(e){const i=this.selectedProjects.splice(e,1)[0];void 0!==i.formerIndex&&(this.searchResults[i.formerIndex].show=!0),this.renderSelectedView(),this.updateSelectedPointer(),this.checkIfAllHidden()}renderSelectedView(){this.selectedProjTable&&this.selectedProjTable.renderRows()}generateSelectionArr(e){const i=this.addressService.currentAddressData;if(!this.addedContact){const r={value:i.name,viewValue:i.name,pointer:i.pointer};this.curPointer=i.pointer,this.selectionToPointer[i.name]=this.curPointer,this.pointerToName[this.curPointer]=i.name,this.databases.push(r)}for(const r of e)this.databases.push({value:r.alias,viewValue:r.title});this.databases.length>0&&(this.selectedDB=this.databases[0].value,this.fetchSearch(null,i.pointer))}search(e){this.curTabIndex=0,super.search(e)}fetchDBs(){const e={};this.data.passedData.docPointer?e.pointer=this.data.passedData.docPointer:e.onlyOptions=!0;const i=new Yt({fromObject:e});this.connection.getReqModal("projects",i).subscribe(r=>{"projectPointers"in r?(this.projectStatus=Number(r.projectStatus),0===this.projectStatus?this.openAnotherModal(this.next,this.data.passedData):Array.isArray(r.assignedProjects)&&r.assignedProjects.length>0?this.handleDocToDocPhases(r.assignedProjects,r.useOpportunityProjects):this.generateSelectionArr(r.databases)):this.openAnotherModal(this.next,this.data.passedData)})}fetchSearch(e,i){return i&&this.pointerToName[i]!==e&&(this.curPointer=void 0),e&&this.selectionToPointer[e]&&(i=this.selectionToPointer[e]),super.fetchSearch(e,i)}handleResult(e){this.updateSelectedPointer(),null!=e.projects&&Array.isArray(e.projects)&&e.projects.length>0?(this.searchResults=e.projects,this.searchResultPointers=e.projectPointers):this.searchResults=[],this.checkIfAllHidden()}updateSelectedPointer(){this.pointerList.clear();for(const e of this.selectedProjects)this.pointerList.add(e.pointer)}confirmAction(){this.selectedProjects.length<1&&2===this.projectStatus?this.translate.get("LC03593").subscribe(e=>{this.messageService.showError(e)}):this.projectService.handlePhases(Array.from(this.pointerList)).subscribe(e=>{Array.isArray(e)&&this.handlePhases(e).subscribe(()=>{this.data.passedData.projectPointers=Array.from(this.pointerList),this.openAnotherModal(this.next,this.data.passedData)})})}handleDocToDocPhases(e,i=!1){this.docToDoc=!0,this.projectService.handleDocToDocPhases(e,i).subscribe(r=>{r.projects.forEach(o=>this.pointerList.add(o)),this.handlePhases(r.phasesToCheck).subscribe(()=>{this.data.passedData.projectPointers=Array.from(this.pointerList),this.openAnotherModal(this.next,this.data.passedData)})})}handlePhases(e){return new b(i=>{if(Array.isArray(e)&&e.length>0){const r=e.splice(0,1)[0];r&&r.projectphases.length>0?this.openAnotherModal("projectPhase",{projectInfo:r})?.beforeClosed().subscribe(s=>{s?(s.phases&&Array.isArray(s.phases)&&s.phases.length>0&&(this.pointerList.has(s.parentPointer)&&this.pointerList.delete(s.parentPointer),s.phases.forEach(l=>this.pointerList.add(l))),this.handlePhases(e).subscribe(()=>{i.next(),i.complete()})):i.complete()}):(i.next(),i.complete())}else i.next(),i.complete()})}compareProject(e,i){return e.pointer===i.pointer}checkIfAllHidden(){this.allHidden=this.projectService.checkIfAllHidden(Array.from(this.pointerList),this.searchResultPointers)}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(pt),p(en),p(Ld),p(Rs),p(yK))},n.\u0275cmp=ze({type:n,selectors:[["app-search-project"]],viewQuery:function(e,i){if(1&e&&(Oe(nY,7),Oe(iY,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selectedProjTable=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De],decls:2,vars:0,consts:[["searchProject",""],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"searchInputWrapper"],[1,"searchInput"],["matInput","","type","text",3,"ngModel","ngModelChange","keyup.enter"],["matSuffix","","aria-label","Clear",3,"click",4,"ngIf"],["id","searchButton","type","button",1,"buttonSilverMiddle",3,"value","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["mat-stretch-tabs","",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[3,"class",4,"ngIf","ngIfElse"],["noResult",""],["noSelection",""],["matSuffix","","aria-label","Clear",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[3,"value"],[1,"searchTable",3,"dataSource"],["searchTableList",""],["matColumnDef","icon"],["class","searchIcon",3,"ngStyle",4,"matCellDef"],["matColumnDef","display"],["class","searchDisplay",4,"matCellDef"],["matRipple","","class","searchRow projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","hidden","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"searchIcon",3,"ngStyle"],[1,"searchDisplay"],[1,"no-select"],["class","bold",4,"ngIf"],[1,"overlay-list",3,"click","dblclick"],["src","assets/images/vwicn112.png",1,"projectButton"],[1,"bold"],["matRipple","",1,"searchRow","projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","hidden","click","dblclick"],["searchTableSelected",""],["matRipple","","class","searchRow projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"overlay-selected",3,"click","dblclick"],["src","assets/images/vwicn081.png",1,"projectButton"],["matRipple","",1,"searchRow","projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","click","dblclick"]],template:function(e,i){1&e&&V(0,AY,1,1,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,Qs,fo,Fo,ps,Sf,Ko,Gr,aC,ua,vo,Yo,vm,jd,Vd,ym,Ud,bm,Ar,eY,HK,O1,Pi],styles:[".searchInputWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.searchInput[_ngcontent-%COMP%]{width:calc(100% - 70px);display:block;padding-bottom:0!important}.searchIcon[_ngcontent-%COMP%]{width:30px;padding:0 10px 0 0!important;background-position:40% 50%!important}.searchRow[_ngcontent-%COMP%] .searchIcon[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%] .searchDisplay[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%]{border-bottom:0px}.searchRow[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.isSelected[_ngcontent-%COMP%]{background:rgb(224,239,255)!important}.searchRow[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;padding-right:5px}.searchRow[_ngcontent-%COMP%]:hover{background:rgba(224,239,255,.4)}.searchDisplay[_ngcontent-%COMP%], .searchTable[_ngcontent-%COMP%]{width:100%}.tableWrapper[_ngcontent-%COMP%], .tableWrapperVerse[_ngcontent-%COMP%], .tableWrapperVerseTabs[_ngcontent-%COMP%]{overflow:auto}.tableWrapper[_ngcontent-%COMP%]{max-height:50vh}.tableWrapperVerse[_ngcontent-%COMP%]{max-height:45vh}.tableWrapperVerseTabs[_ngcontent-%COMP%]{max-height:calc(45vh - 48px)}.overlay-list[_ngcontent-%COMP%], .overlay-selected[_ngcontent-%COMP%]{position:absolute;bottom:0;left:100%;right:0;overflow:hidden;width:0;height:100%;transition:.5s ease;box-shadow:none}.overlay-list[_ngcontent-%COMP%]{background-color:#a1f79b}.overlay-selected[_ngcontent-%COMP%]{background-color:#ff6a6a}.projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-list[_ngcontent-%COMP%], .projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-selected[_ngcontent-%COMP%]{width:30px;left:calc(100% - 30px);box-shadow:0 0 10px #999}.projectButton[_ngcontent-%COMP%]{margin:0;position:absolute;top:50%;left:calc(50% - 9px);transform:translateY(-50%)}#searchButton[_ngcontent-%COMP%]{height:100%;padding:4px;margin:0 0 5px;float:right;font-weight:700;display:flex}"],data:{animation:[jr("shake",[qn("shakestart",Lt({transform:"scale(1)"})),qn("shakeend",Lt({transform:"scale(1)"})),ui("shakestart => shakeend",mi("1000ms ease-in",R6([Lt({transform:"translate3d(-4px, 0, 0)",offset:.1}),Lt({transform:"translate3d(4px, 0, 0)",offset:.2}),Lt({transform:"translate3d(-4px, 0, 0)",offset:.3}),Lt({transform:"translate3d(4px, 0, 0)",offset:.4}),Lt({transform:"translate3d(-4px, 0, 0)",offset:.5}),Lt({transform:"translate3d(4px, 0, 0)",offset:.6}),Lt({transform:"translate3d(-4px, 0, 0)",offset:.7}),Lt({transform:"translate3d(4px, 0, 0)",offset:.8}),Lt({transform:"translate3d(-4px, 0, 0)",offset:.9})])))])]}}),n})();const xY=["projPhases"],IY=["selection"];function MY(n,t){if(1&n&&(g(0,"mat-list-option",5),j(1),v()),2&n){const e=t.$implicit;Ot("value",e.pointer),Ot("selected",e.selected),m(1),Qe(" ",e.name," ")}}const kY=function(n){return{title:n}},RY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function OY(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"p"),j(4),Xe(5,"translate"),v(),g(6,"p"),j(7),v(),g(8,"mat-selection-list",null,3),V(10,MY,2,3,"mat-list-option",4),v()(),Wt(11,1),Xe(12,"translate"),Xe(13,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(15,kY,Ze(1,7,"LC03411"))),m(4),we(Ze(5,9,"LC03410")),m(3),we(e.projectInfo.projectDisplay),m(3),y("ngForOf",e.projectInfo.projectphases),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(17,RY,Ze(12,11,"LC73135"),Ze(13,13,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let PY=(()=>{class n extends Hr{constructor(e,i,r){super(e),this.translate=e,this.messageService=i,this.globals=r}ngOnInit(){this.projectInfo=this.data.passedData.projectInfo}confirmAction(){const e=this.createResponse(this.convertToPointerArray(this.selection.selectedOptions));this.data.closeModal(e)}convertToPointerArray(e){const i=[];for(const r of e.selected)i.push(r.value);return i.length<1&&i.push(this.projectInfo.projectPointer),i}createResponse(e){const i={};return i.parentPointer=this.projectInfo.projectPointer,i.phases=e,i}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(en),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-select-create-label"]],viewQuery:function(e,i){if(1&e&&(Oe(xY,7),Oe(IY,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["projPhases",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody","phaseSelection"],["selection",""],["checkboxPosition","before",3,"value","selected",4,"ngFor","ngForOf"],["checkboxPosition","before",3,"value","selected"]],template:function(e,i){1&e&&V(0,OY,14,22,"ng-template",null,0,Tn)},dependencies:[ci,Qi,$o,Os,Pi]}),n})();const LY=["selMailAddr"],NY=["selAddr"];function FY(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.additional.database,": ")}}function BY(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe("(",e.companyName,")")}}function HY(n,t){if(1&n){const e=je();g(0,"mat-list-option",6),X("dblclick",function(){const o=oe(e).index;return se(x(2).changeSelectedIndex(o))}),g(1,"div",7),V(2,FY,2,1,"div",8),g(3,"div"),j(4),v(),V(5,BY,2,1,"div",8),v()()}if(2&n){const e=t.$implicit,i=t.index,r=x(2);Ot("value",i),y("selected",i===r.addressService.addressIndex),m(2),y("ngIf",e.additional&&e.additional.database),m(2),we(e.name),m(1),y("ngIf",e.companyName)}}const VY=function(n){return{title:n}},jY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function UY(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),V(5,HY,6,5,"mat-list-option",5),v()(),Wt(6,1),Xe(7,"translate"),Xe(8,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(12,VY,Ze(1,6,"LC52163"))),m(3),y("multiple",!1),m(2),y("ngForOf",e.addresses),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(14,jY,Ze(7,8,"LC73135"),Ze(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let qY=(()=>{class n extends Hr{constructor(e,i,r,o){super(i),this.globals=e,this.translate=i,this.addressService=r,this.reloadService=o}ngOnInit(){super.ngOnInit(),this.checkForAddressData()}checkForAddressData(){this.addressService.processAddresses().subscribe({next:e=>{this.addresses=e},error:()=>{},complete:()=>{}})}changeSelectedIndex(e){this.addressService.addressIndex=e,this.confirmAction(e)}confirmAction(e){e||null!=this.selection._value&&Array.isArray(this.selection._value)&&this.selection._value.length>0&&(this.addressService.addressIndex=parseInt(this.selection._value[0],10)),this.closeAll()}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(Xt),p(Rs),p(yC))},n.\u0275cmp=ze({type:n,selectors:[["app-select-address"]],viewQuery:function(e,i){if(1&e&&(Oe(LY,7),Oe(NY,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["selMailAddr",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["selAddr",""],["checkboxPosition","after","class","addrSel",3,"selected","value","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",1,"addrSel",3,"selected","value","dblclick"],[1,"listWrapper"],[4,"ngIf"]],template:function(e,i){1&e&&V(0,UY,9,19,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,$o,Os,Pi],styles:["mat-list-option[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.modalBody[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{overflow:auto;max-height:60vh}.modalBody[_ngcontent-%COMP%] > mat-selection-list[_ngcontent-%COMP%]{padding-top:0}"]}),n})();const zY=["login"],GY=function(){return{title:"Login"}},WY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function $Y(n,t){if(1&n){const e=je();Wt(0,1),g(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),j(5),Xe(6,"translate"),v(),g(7,"input",5,6),X("ngModelChange",function(r){return oe(e),se(x().uname=r)})("focus",function(){return oe(e),se(sn(8).select())})("keyup.enter",function(){return oe(e),se(sn(14).focus())}),v()(),g(9,"mat-form-field",4)(10,"mat-label"),j(11),Xe(12,"translate"),v(),g(13,"input",7,8),X("ngModelChange",function(r){return oe(e),se(x().pwd=r)})("focus",function(){return oe(e),se(sn(14).select())})("keyup.enter",function(){return oe(e),se(x().confirmAction())}),v()()()(),Wt(15,1),Xe(16,"translate"),Xe(17,"translate")}if(2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",bv(16,GY)),m(5),we(Ze(6,8,"username")),m(2),y("ngModel",e.uname),m(4),we(Ze(12,10,"password")),m(2),y("ngModel",e.pwd),m(2),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(17,WY,Ze(16,12,"LC73135"),Ze(17,14,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let KY=(()=>{class n extends Hr{constructor(e,i,r,o){super(e),this.translate=e,this.connection=i,this.messageService=r,this.globals=o}ngOnInit(){}checkIfEmpty(e,i){return Ee(function*(){return!e||""===e||!i||""===i})()}confirmAction(){var e=this;return Ee(function*(){(yield e.checkIfEmpty(e.uname.trim(),e.pwd.trim()))?e.messageService.showError(e.globals.languageConfLocal.inputMissing):(yield e.connection.login(e.uname,e.pwd))&&e.closeAll()})()}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(en),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-login"]],viewQuery:function(e,i){if(1&e&&Oe(zY,7),2&e){let r;me(r=ge())&&(i.modalTemp=r.first)}},features:[De],decls:2,vars:0,consts:[["login",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"inputWrapper"],[1,"loginInput"],["matInput","","type","text",3,"ngModel","ngModelChange","focus","keyup.enter"],["userInput",""],["matInput","","type","password",3,"ngModel","ngModelChange","focus","keyup.enter"],["passwordInput",""]],template:function(e,i){1&e&&V(0,$Y,18,22,"ng-template",null,0,Tn)},dependencies:[Qi,fo,Fo,ps,Ko,Gr,Yo,Pi],styles:[".loginInput[_ngcontent-%COMP%]{width:100%;display:block;padding-bottom:0!important}"]}),n})(),ol=(()=>{class n{constructor(e,i,r){this.waitList=e,this.globals=i,this.matDialog=r,this.modalTypeSource=new L,this.currentType=this.modalTypeSource.asObservable(),this.activeModals=[]}changeType(e){this.modalTypeSource.next(e)}setModalHeader(e){this.modalHeader=e}setModalFooter(e){this.modalFooter=e,this.modalItems=this.getModalItems(),this.waitList.accessWaitList("modalDesign").forEach(i=>{i.next(this.modalItems),i.complete(),this.waitList.clearWaitList("modalDesign")})}waitForModalDesign(){return new b(e=>{this.waitList.addToWaitList("modalDesign",e)})}getModalItems(){return this.modalItems?this.modalItems:{chooseOfficeDB:new Ei(aG,this.initModalData("searchProject")),selectContact:new Ei(wC,this.initModalData()),searchContact:new Ei(S1,this.initModalData("chooseOfficeDB")),searchTemplate:new Ei(lK,this.initModalData("chooseOfficeDB")),searchProject:new Ei(TY,this.initModalData("documentFile")),createContact:new Ei(i$,this.initModalData()),createTicket:new Ei(u$,this.initModalData()),documentFile:new Ei(T$,this.initModalData()),createAddressCompany:new Ei(wC,this.initModalData("createContact",{createType:"company"})),createAddressToCompany:new Ei(S1,this.initModalData("createContact",{type:"company",createType:"toCompany"})),createAddressPerson:new Ei(wC,this.initModalData("createContact",{createType:"person"})),createLabel:new Ei(j$,this.initModalData(null,{currentModal:this.newActive})),selectMailAddress:new Ei(vK,this.initModalData()),duplicate:new Ei(W$,this.initModalData()),projectPhase:new Ei(PY,this.initModalData(null,{currentModal:this.newActive})),addressSelection:new Ei(qY,this.initModalData(null,{currentModal:this.newActive})),login:new Ei(KY,this.initModalData())}}addActiveModal(e){this.globals.modalCacheFlag=!0,this.activeModals.push(e)}closeActiveModal(e){const i=this.activeModals.pop();i&&i.close(e),this.activeModals.length<1&&(this.globals.modalCacheFlag=!1,this.globals.clearModalTemps())}closeAllModals(){this.matDialog.closeAll(),this.activeModals=[]}initWebIntModal(){return this.modalHeader}get modalItemsPub(){return this.modalItems}get newActive(){return this.activeModals[this.activeModals.length-1]}initModalData(e=null,i,r=this.modalHeader,o=this.modalFooter){const s={nextType:e,modalHeader:r,modalFooter:o,closeModal:this.closeActiveModal.bind(this),closeAllModal:this.closeAllModals.bind(this),modalItems:this.modalItems};if(i)for(const a of Object.keys(i))s[a]=i[a];return s}}return n.\u0275fac=function(e){return new(e||n)(T(Ji),T(pt),T(As))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),V1=(()=>{class n{constructor(e){this.globals=e}waitForConnectorType(){return new b(e=>{null!=this.globals.curConnectorType&&(e.next(this.globals.curConnectorType),e.complete())})}get preview(){return"preview"in this.postData?this.postData.preview:null}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Gd=G(4856);let YY=(()=>{class n extends V1{constructor(e,i,r,o){super(e),this.messageService=i,this.authService=r,this.waitList=o,this.globals.curConnectorType="Owa",this.savedAttachments={},this.globals.curConnector=this,Office.context.platform!==Office.PlatformType.OfficeOnline&&(this.globals.isClient=!0),this.waitList.notifyWaitList("platform",!0),Office.context.mailbox.addHandlerAsync(Office.EventType.ItemChanged,this.itemChangeHandler.bind(this))}get isMailAlreadyDoc(){return!(!this.postData.ticketAlreadyDoc&&!this.postData.officeAlreadyDoc)}get curPostData(){return this.postData}get data(){return this.appData}set data(e){this.appData=e,this.initGlobalValues()}set alreadyDocumented(e){e.ticketAlreadyDoc&&(this.postData.ticketAlreadyDoc=e.ticketAlreadyDoc),e.officeAlreadyDoc&&(this.postData.officeAlreadyDoc=e.officeAlreadyDoc),this.setOpenExtension(this.postData.graphMailID,this.postData.ticketAlreadyDoc,this.postData.officeAlreadyDoc)}waitForCSS(){return new b(e=>{e.complete()})}getData(){return this.initGlobalValues()}checkMailType(){throw new Error("Method not implemented.")}adjustAttachments(){this.setAttachments(this.globals.curOWAMessageID)}updateAddressInfo(e){this.updateViewFunc=e}getPostData(){var e=this;return Ee(function*(){if(e.globals.attachmentsReady=!1,Office.context.mailbox.item){const i=Office.CoercionType.Text;Office.context.mailbox.item&&Office.context.mailbox.item?.body.getAsync(i,function(){var r=Ee(function*(o){o.status===Office.AsyncResultStatus.Failed?e.messageService.showError(o.error.message,o.error.name,!0):"gi"===e.globals.system?yield e.setPostDataGI(o,i):yield e.setPostDataBA(o,i)});return function(o){return r.apply(this,arguments)}}())}return!0})()}adjustToastPosition(){}filterObjectEntryOfArr(e){const i=[];for(const r of e)i.push(r.emailAddress);return i}setPostDataBA(e,i){var r=this;return Ee(function*(){""===r.appData.conversationId||(r.postData={fromMail:r.appData.from.emailAddress,toMail:r.filterObjectEntryOfArr(r.appData.to),ccMail:r.filterObjectEntryOfArr(r.appData.cc),bccMail:r.filterObjectEntryOfArr(r.appData.bcc),messageID:r.appData.internetMessageId,subject:r.appData.subject,body:{htmlBody:!!i.toString().toLowerCase().includes("html"),text:btoa(e.value)},type:i.toString(),date:new Date(r.appData.dateTimeModified).toISOString(),creationDate:new Date(r.appData.dateTimeModified).getTime(),changingDate:new Date(r.appData.dateTimeModified).getTime(),attachments:[],officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:"",mailType:"Incoming"})})()}setPostDataGI(e,i){var r=this;return Ee(function*(){r.postData={to:r.appData.to,from:r.appData.from,cc:r.appData.cc,subject:r.appData.subject,sender:r.appData.sender,contentType:i,body:e.value,date:new Date(r.appData.dateTimeModified).getTime(),messageID:r.appData.internetMessageId,preview:"",isIncoming:!0,attachments:[],officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""}})()}itemChangeHandler(){return Ee(function*(){window.location.reload()})()}checkDocumentedFlag(e){var i=this;return Ee(function*(){void 0!==e&&null!=e&&(yield i.graphClient.api(`/me/messages/${e}/extensions/GI8.BM`).responseType(Ur.RAW).get().then(function(){var o=Ee(function*(s){404===s.status?i.setOpenExtension(e):200===s.status?(s=yield s.json(),i.postData.officeAlreadyDoc=s.officeAlreadyDoc,i.postData.ticketAlreadyDoc=s.ticketAlreadyDoc):(s=yield s.json(),i.messageService.showError(s.error.message+" "+i.globals.languageConfLocal.graphRelog,"GRAPH ERROR",!0))});return function(s){return o.apply(this,arguments)}}()))})()}setOpenExtension(e,i=!1,r=!1){return Ee(function*(){})()}getMimeMessage(){var e=this;return Ee(function*(){let i=null,r=yield e.graphClient.api("/me/messages").filter(`internetMessageId eq '${e.appData.internetMessageId}'`).get();r=r.value,i=Array.isArray(r)&&r.length>0&&r.length>=1?r[0]:r;try{e.checkDocumentedFlag(i.id),i.length>0&&("gi"===e.globals.system?yield e.setMimeMessageDataGI(i):yield e.setMimeMessageDataBA(i))}catch(o){console.error(o),i=""}return i})()}setMimeMessageDataGI(e){var i=this;return Ee(function*(){i.postData=i.postData,i.postData.graphMailID=e.id,i.postData.date=new Date(e.sentDateTime).getTime(),i.postData.body=e.body.content,i.postData.contentType=e.body.contentType,i.postData.preview=(0,Gd.convert)(e.body.content,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),i.setIncomingOutgoing(e)})()}setMimeMessageDataBA(e){var i=this;return Ee(function*(){i.postData=i.postData,i.postData.graphMailID=e.id,i.postData.date=new Date(e.sentDateTime).toISOString(),i.postData.creationDate=new Date(e.createdDateTime).getTime(),i.postData.changingDate=new Date(e.lastModifiedDateTime).getTime(),i.postData.body={htmlBody:!!e.body.contentType.toLowerCase().includes("html"),text:Buffer.from(e.body.content).toString("base64")},i.postData.type=e.body.contentType,i.setIncomingOutgoing(e)})()}setIncomingOutgoing(e){var i=this;return Ee(function*(){const o=Office.context.mailbox.userProfile.emailAddress;e.sender.emailAddress.address.toLowerCase()===o.toLowerCase()?"gi"===i.globals.system?(i.postData=i.postData,i.postData.isIncoming=!1):(i.postData=i.postData,i.postData.mailType="Outgoing"):"gi"===i.globals.system?(i.postData=i.postData,i.postData.isIncoming=!0):(i.postData=i.postData,i.postData.mailType="Incoming")})()}setAttachments(e){var i=this;return Ee(function*(){i.globals.attachmentsReady=!0})()}waitForGraph(){return new b(e=>{this.waitList.addToWaitList("graphLoaded",e)})}initGlobalValues(){this.appData=Office.context.mailbox.item}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(en),T(Mc),T(Ji))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),j1=(()=>{class n extends V1{constructor(e,i,r,o){super(i),this.translate=e,this.globals=i,this.messageService=r,this.connection=o,this.adjustToastPosition(),this.globals.curConnectorType="Verse",this.globals.curConnector=this}waitForCSS(){return new b(e=>{e.next({main:{},overflowContainer:{}}),e.complete()})}getData(){throw new Error("Method not implemented.")}checkMailType(){throw new Error("Method not implemented.")}updateAddressInfo(e){throw new Error("Method not implemented.")}adjustAttachments(){throw new Error("Method not implemented.")}set data(e){this.appData=e,this.initGlobalValues()}get data(){return this.appData}set alreadyDocumented(e){}get isMailAlreadyDoc(){return!1}get curPostData(){return this.postData}adjustToastPosition(){this.messageService.changeClass("toast-bottom-center-verse")}getPostData(){var e=this;return Ee(function*(){e.connection.getReq("user",null,!0).subscribe(i=>{const r=e.appData.context;let o="";return r.body&&(o=r.body),"com.ibm.verse.widget.action.mailRead"===e.appData.actionId?e.postData={to:r.recipientTo,from:r.sender,cc:r.recipientCC,subject:r.subject,sender:r.sender,contentType:"text/html",body:o,preview:(0,Gd.convert)(o,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),date:new Date(r.timeSent).getTime(),messageID:r.unid,isIncoming:!(i.mail.toLowerCase()===r.sender.emailAddress.toLowerCase()||void 0!==r.sender.notesAddress&&i.mail.toLowerCase()===r.sender.notesAddress.toLowerCase())}:"com.ibm.verse.ext.person.action"===e.appData.actionId?e.postData={to:[null],from:r.profile.primaryEmail,cc:[null],subject:"",sender:r.profile.primaryEmail,contentType:"text/html",body:o,preview:(0,Gd.convert)(o,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),date:Date.now(),messageID:"no-unid",isIncoming:!1}:"com.ibm.verse.widget.action.mailCompose"===e.appData.actionId&&(e.postData={to:r.recipientTo,from:r.sender,cc:r.recipientCC,subject:r.subject,sender:r.sender,contentType:"text/html",body:o,preview:(0,Gd.convert)(o,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),date:Date.now(),messageID:"no-unid",isIncoming:!1}),!0})})()}initGlobalValues(){const e=this.appData.context;return"com.ibm.verse.widget.action.mailRead"===this.appData.actionId?(this.globals.actionsAllowed=!0,this.globals.curSubject=e.subject,this.globals.curMailUnid=e.unid,this.globals.curMailAddr=this.globals.ownMailAddr===e.sender.emailAddress?e.recipientTo[0]:e.sender.emailAddress,this.globals.curTo=e.recipientTo,this.globals.curFrom=e.sender,this.globals.curCC=e.recipientCC,this.globals.curMailAddrCount=e.recipientTo.length+e.recipientCC.length):"com.ibm.verse.ext.person.action"===this.appData.actionId?(this.globals.actionsAllowed=!1,this.globals.curSubject="",this.globals.curMailUnid="no-unid",this.globals.curMailAddr=e.profile.primaryEmail,this.globals.curTo=[],this.globals.curFrom={emailAddress:e.profile.primaryEmail},this.globals.curCC=[],this.globals.curMailAddrCount=0):"com.ibm.verse.widget.action.mailCompose"===this.appData.actionId&&(this.globals.actionsAllowed=!1,this.globals.createAllowed=!0,this.globals.curSubject=e.subject,this.globals.curMailUnid="no-unid",this.globals.curFrom=e.sender[0],this.composeFilterMails(e.recipientTo,e.recipientCC,e.sender[0])),this.getPostData()}composeFilterMails(e,i,r){const o=e.length,s=i.length,a=o+s;if(o<1&&a>0)this.translate.get("LC53485").subscribe(l=>{this.translate.get("to").subscribe(c=>{l=l.replace("{FIELD}",c),this.messageService.showError(l)})});else if(o<1)this.translate.get("LC53484").subscribe(l=>{this.messageService.showError(l)});else if(1===a&&e[0].emailAddress.includes("@"))this.globals.curMailAddr=e[0].emailAddress,this.globals.curTo=[],this.globals.curCC=[],this.globals.curMailAddrCount=0;else{let c,l=!1;const u=[];for(let h=0;h0||d.length>0?e[0].emailAddress:r.emailAddress,this.globals.curMailAddrCount=u.length+d.length,l&&u.length+d.length===0&&this.translate.get("LC53486").subscribe(h=>{this.messageService.showError(h)})}}}return n.\u0275fac=function(e){return new(e||n)(T(Xt),T(pt),T(en),T(Nn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QY=(()=>{class n{constructor(e,i,r,o,s,a){this.translate=e,this.globals=i,this.message=r,this.auth=o,this.waitlist=s,this.connection=a}checkForApp(){var e=this;return new b(i=>{try{Office.onReady(()=>{i.next(new YY(this.globals,this.message,this.auth,this.waitlist)),i.complete()})}catch{if(null!=sessionStorage.getItem("verseAppData")){const o=new j1(this.translate,this.globals,this.message,this.connection);o.data=JSON.parse(sessionStorage.getItem("verseAppData")),sessionStorage.clear(),i.next(o),i.complete()}else window.addEventListener("message",function(){var o=Ee(function*(s){e.verseHandler(s,i)});return function(s){return o.apply(this,arguments)}}(),!1)}})}verseHandler(e,i){var r=this;return Ee(function*(){if(sessionStorage.clear(),"com.ibm.verse.ping.application.loaded"===e.data.verseApiType){const o={verseApiType:"com.ibm.verse.application.loaded"};null!=e.source&&!(e.source instanceof MessagePort)&&!(e.source instanceof ServiceWorker)&&e.source.postMessage(o,e.origin)}if("com.ibm.verse.action.clicked"===e.data.verseApiType){const o=new j1(r.translate,r.globals,r.message,r.connection);o.data=e.data.verseApiData,i.next(o),i.complete()}})()}}return n.\u0275fac=function(e){return new(e||n)(T(Xt),T(pt),T(en),T(Mc),T(Ji),T(Nn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fc=(()=>{class n{constructor(){this.thingToClose=new Map}addThingToClose(e,i){this.thingToClose.has(e)||this.thingToClose.set(e,i)}closeAll(e){this.thingToClose.forEach((i,r)=>{e&&e===r||i()})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function XY(n,t){1&n&&(g(0,"div"),xe(1,"app-redirect"),v())}function ZY(n,t){1&n&&xe(0,"app-contact-selector")}function JY(n,t){1&n&&xe(0,"app-info-shower")}function eQ(n,t){1&n&&xe(0,"app-project-selector")}function tQ(n,t){1&n&&xe(0,"app-tags-selector")}function nQ(n,t){1&n&&xe(0,"app-address-activities")}function iQ(n,t){if(1&n&&(g(0,"div",14),j(1),v()),2&n){const e=x(4);m(1),Qe(" ",e.globals.languageConfLocal.giLoginText," ")}}function rQ(n,t){if(1&n){const e=je();g(0,"div",11),j(1),V(2,iQ,2,1,"div",12),xe(3,"br"),g(4,"button",13),X("click",function(){return oe(e),se(x(3).crmLogin())}),j(5,"Login CRM"),v()()}if(2&n){const e=x(3);m(1),Qe(" ",e.globals.languageConfLocal.pleaseLogIn," "),m(1),y("ngIf","gi"===e.globals.system)}}function oQ(n,t){if(1&n&&(g(0,"div",10),xe(1,"app-item-documentor")(2,"app-loader")(3,"app-site-actions"),V(4,ZY,1,0,"app-contact-selector",6),V(5,JY,1,0,"app-info-shower",6),V(6,eQ,1,0,"app-project-selector",6),V(7,tQ,1,0,"app-tags-selector",6),V(8,nQ,1,0,"app-address-activities",6),V(9,rQ,6,2,"div",9),xe(10,"app-modal")(11,"app-webint-input"),v()),2&n){const e=x(2);y("ngStyle",e.newCSS.main),m(4),y("ngIf",e.globals.loggedIn),m(1),y("ngIf",e.globals.loggedIn),m(1),y("ngIf",e.globals.loggedIn),m(1),y("ngIf",e.globals.loggedIn),m(1),y("ngIf",e.globals.loggedIn),m(1),y("ngIf",!e.globals.loggedIn)}}function sQ(n,t){1&n&&(g(0,"div"),xe(1,"app-contact-creator"),v())}function aQ(n,t){1&n&&(g(0,"div"),xe(1,"app-about"),v())}function lQ(n,t){1&n&&(g(0,"div"),xe(1,"app-license-information"),v())}function cQ(n,t){if(1&n&&(g(0,"div",11),j(1),v()),2&n){const e=x(2);m(1),Qe(" ",e.globals.languageConfLocal.itemNotSupported," ")}}function uQ(n,t){if(1&n&&(xe(0,"input",3),g(1,"div",4),V(2,oQ,12,7,"div",5),V(3,sQ,2,0,"div",6),V(4,aQ,2,0,"div",6),V(5,lQ,2,0,"div",6),g(6,"div",7),xe(7,"mat-progress-spinner",8),v(),V(8,cQ,2,1,"div",9),v()),2&n){const e=x();m(1),y("ngStyle",e.newCSS.overflowContainer),m(1),y("ngIf",!e.globals.itemNotSupported&&"main"===e.globals.activeWindow),m(1),y("ngIf",!e.globals.itemNotSupported&&"contactCreation"===e.globals.activeWindow),m(1),y("ngIf",!e.globals.itemNotSupported&&"about"===e.globals.activeWindow),m(1),y("ngIf",!e.globals.itemNotSupported&&"license"===e.globals.activeWindow),m(2),y("diameter",30),m(1),y("ngIf",e.globals.itemNotSupported)}}let EC=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.modalService=e,this.initService=i,this.connectorFactory=r,this.graphAuthService=o,this.globals=s,this.lsm=a,this.connectionService=l,this.dps=c,this.title="Business Mail",this.newCSS={main:{},overflowContainer:{}},this.isInit=!1}ngOnInit(){let e=Office.context.mailbox.item;(!e||e.itemClass&&(e.itemClass.startsWith("IPM.Schedule.Meeting.Resp")||e.itemClass.startsWith("IPM.Schedule.Meeting.Canceled")))&&(this.globals.itemNotSupported=!0),this.graphAuthService.handleRedirectObservable().subscribe({next:i=>{console.log("REDIRECT SUCCESSFULL"),console.log(i)},error:i=>console.log(i)}),this.globals.isRedirectPage||(this.connectorFactory.checkForApp().subscribe(i=>{this.connector=i,this.initConnectorData()}),Office.context.mailbox.addHandlerAsync(Office.EventType.ItemChanged,this.itemChangeHandler.bind(this)),this.modalService.waitForModalDesign().subscribe(()=>{this.initModalItems()}),this.initService.waitForInit().subscribe(i=>{this.isInit=i}),window.addEventListener("keydown",this.ownReloadAndESC)),window.dps=this.dps,this.globals.activeWindow="main",window.innerHeight>0&&window.innerWidth>0&&setInterval(()=>{let i=(new Date).toString();this.lsm.setValue(tn.taskpaneActive,i)},1e3)}itemChangeHandler(){return Ee(function*(){window.location.reload()})()}initModalItems(){this.modalItems=this.modalService.getModalItems(),this.isInit=!0}initConnectorData(){this.connector.waitForCSS().subscribe(e=>{this.newCSS=e}),this.connector.getData()}ownReloadAndESC(e){if(116===(e.which||e.keyCode)){if("Owa"===this.globals.curConnectorType)window.location.reload();else if(sessionStorage.setItem("verseAppData",JSON.stringify(this.globals.curConnector.data)),!window.location.href.includes("index.html")){let i="index.html";window.location.href.endsWith("/")||(i="/"+i),window.location.href+=i}}else if(27===e.keyCode)return window.dps.closeAll(),setTimeout(()=>{document.getElementById("focusDiv")?.focus()},100),void(e.cancelBubble=!0)}get isInit(){return this.init}set isInit(e){this.init=e}get mItems(){return this.modalItems}openGraphLogin(){}crmLogin(){null===window.localStorage.getItem("webInt")?this.openWebIntModal():this.connectionService.connect().subscribe(()=>{})}openWebIntModal(){this.connectionService.waitForWebIntModal().subscribe(e=>{e()})}doAttachmentsRead(){let e=Office.context.mailbox.item;e?.getAttachmentContentAsync(e.attachments[0].id,i=>{})}doAttachmentsCompose(){let e=Office.context.mailbox.item;e?.getAttachmentsAsync(i=>{e?.getAttachmentContentAsync(i.value[0].id,r=>{})})}}return n.\u0275fac=function(e){return new(e||n)(p(ol),p(rC),p(QY),p(tl),p(pt),p(Br),p(Nn),p(Fc))},n.\u0275cmp=ze({type:n,selectors:[["app-root"]],decls:4,vars:2,consts:[["rel","stylesheet","href","https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,100,0,-25"],[4,"ngIf","ngIfElse"],["app",""],["id","focusDiv",2,"position","absolute","width","0px","height","0px","overflow","hidden","opacity","0","filter","alpha(opacity=0)"],["id","overflowContainer",3,"ngStyle"],["id","main",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["id","loadingSpinner",2,"display","none","width","100%","height","100%","position","absolute","z-index","99999","top","0px","left","0px","background-color","rgba(255,255,255,0.5)"],["mode","indeterminate",2,"position","absolute","z-index","9999","top","calc(50vh - 15px)","left","calc(50vw - 15px)",3,"diameter"],["class","notSupported",4,"ngIf"],["id","main",3,"ngStyle"],[1,"notSupported"],["class","notSupportedInner",4,"ngIf"],["mat-flat-button","",2,"width","100%","margin-top","1em","margin-bottom","1em","background-color","#0F6CBD","color","white",3,"click"],[1,"notSupportedInner"]],template:function(e,i){if(1&e&&(xe(0,"link",0),V(1,XY,2,0,"div",1),V(2,uQ,9,7,"ng-template",null,2,Tn)),2&e){const r=sn(3);m(1),y("ngIf",i.globals.isRedirectPage)("ngIfElse",r)}},styles:['.notSupportedInner[_ngcontent-%COMP%], .notSupported[_ngcontent-%COMP%]{margin:auto;padding-top:30px;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}#overflowContainer[_ngcontent-%COMP%]{height:100%;overflow:auto}#overflowContainer[_ngcontent-%COMP%] > #main[_ngcontent-%COMP%]{height:100%;width:100%;padding:0 12px}.notSupported[_ngcontent-%COMP%]{width:90%}.notSupportedInner[_ngcontent-%COMP%]{width:100%}']}),n})();function DC(n,t=fc){const i=function dQ(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-t.now():Math.abs(n);return r=>r.lift(new hQ(i,t))}class hQ{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new SC(t,this.delay,this.scheduler))}}class SC extends D{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,r=t.scheduler,o=t.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(t,s)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(SC.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new pQ(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(or.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(or.createComplete()),this.unsubscribe()}}class pQ{constructor(t,e){this.time=t,this.notification=e}}const fQ=["mat-menu-item",""];function mQ(n,t){1&n&&(El(),g(0,"svg",2),xe(1,"polygon",3),v())}const U1=["*"];function gQ(n,t){if(1&n){const e=je();g(0,"div",0),X("keydown",function(r){return oe(e),se(x()._handleKeydown(r))})("click",function(){return oe(e),se(x().closed.emit("click"))})("@transformMenu.start",function(r){return oe(e),se(x()._onAnimationStart(r))})("@transformMenu.done",function(r){return oe(e),se(x()._onAnimationDone(r))}),g(1,"div",1),Ht(2),v()()}if(2&n){const e=x();y("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),ot("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Sm={transformMenu:jr("transformMenu",[qn("void",Lt({opacity:0,transform:"scale(0.8)"})),ui("void => enter",mi("120ms cubic-bezier(0, 0, 0.2, 1)",Lt({opacity:1,transform:"scale(1)"}))),ui("* => void",mi("100ms 25ms linear",Lt({opacity:0})))]),fadeInItems:jr("fadeInItems",[qn("showing",Lt({opacity:1})),ui("void => *",[Lt({opacity:0}),mi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},_Q=new pe("MatMenuContent"),AC=new pe("MAT_MENU_PANEL"),vQ=Vo(Ds(class{}));let Wd=(()=>{class n extends vQ{constructor(e,i,r,o,s){super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new L,this._focused=new L,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class n{constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Oa,this._tabSubscription=w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new L,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Be,this.close=this.closed,this.panelId="mat-menu-panel-"+bQ++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=ct(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ct(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new hf(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ii(this._directDescendantItems),Kn(e=>Mn(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ii(this._directDescendantItems),Kn(i=>Mn(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:Di(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(dn(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ii(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nt),p(q1),p(Bt))},n.\u0275dir=he({type:n,contentQueries:function(e,i,r){if(1&e&&(Vt(r,_Q,5),Vt(r,Wd,5),Vt(r,Wd,4)),2&e){let o;me(o=ge())&&(i.lazyContent=o.first),me(o=ge())&&(i._allItems=o),me(o=ge())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&Oe(bn,5),2&e){let r;me(r=ge())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),z1=(()=>{class n extends $d{constructor(e,i,r,o){super(e,i,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nt),p(q1),p(Bt))},n.\u0275cmp=ze({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&ot("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[rt([{provide:AC,useExisting:n}]),De],ngContentSelectors:U1,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(Vn(),V(0,gQ,3,6,"ng-template"))},dependencies:[Fa],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Sm.transformMenu,Sm.fadeInItems]},changeDetection:0}),n})();const G1=new pe("mat-menu-scroll-strategy"),wQ={provide:G1,deps:[ar],useFactory:function CQ(n){return()=>n.scrollStrategies.reposition()}},W1=_s({passive:!0});let EQ=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=w.EMPTY,this._hoverSubscription=w.EMPTY,this._menuCloseSubscription=w.EMPTY,this._handleTouchStart=d=>{mf(d)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Be,this.onMenuOpen=this.menuOpened,this.menuClosed=new Be,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof $d?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,W1),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,W1),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof $d&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Qt(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof $d?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(Sn(r=>"void"===r.toState),dn(1),Qt(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new vc({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",s="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,s)):e.setPositionClasses(o,s)})}_setPosition(e,i){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[s,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[u,d]=[r,o],h=0;if(this.triggersSubmenu()){if(d=r="before"===e.xPosition?"start":"end",o=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const f=this._parentMaterialMenu.items.first;this._parentInnerPadding=f?f._getHostElement().offsetTop:0}h="bottom"===s?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l="top"===s?"bottom":"top",c="top"===a?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:u,overlayY:s,offsetY:h},{originX:o,originY:l,overlayX:d,overlayY:s,offsetY:h},{originX:r,originY:c,overlayX:u,overlayY:a,offsetY:-h},{originX:o,originY:c,overlayX:d,overlayY:a,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Mn(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ve(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Sn(s=>s!==this._menuItemInstance),Sn(()=>this._menuOpen)):Ve(),i)}_handleMousedown(e){ff(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Sn(e=>e===this._menuItemInstance&&!e.disabled),DC(0,sb)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof $d&&this.menu._isAnimating?this.menu._animationDone.pipe(dn(1),DC(0,sb),Qt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Cs(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(p(ar),p(Je),p(En),p(G1),p(AC,8),p(Wd,10),p(er,8),p(_o),p(nt))},n.\u0275dir=he({type:n,hostVars:3,hostBindings:function(e,i){1&e&&X("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&ot("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),$1=(()=>{class n extends EQ{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[De]}),n})(),DQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[wQ],imports:[Xi,Pt,ia,yc,_c,Pt]}),n})();function SQ(n,t){if(1&n){const e=je();g(0,"div",17),X("click",function(){return oe(e),se(x(2).toggleClass(2))}),Xe(1,"translate"),v()}if(2&n){const e=x(2);wi(e.iconConfigLocal[2].model.classAssignment[e.iconConfigLocal[2].model.value]),Ot("title",Ze(1,5,e.iconConfigLocal[2].model.titleLC[e.iconConfigLocal[2].model.value])),y("ngStyle",e.configIcon)}}function AQ(n,t){if(1&n){const e=je();g(0,"div",18),X("click",function(){return oe(e),se(x(2).toggleClass(1))}),Xe(1,"translate"),v()}if(2&n){const e=x(2);wi(e.iconConfigLocal[1].model.classAssignment[e.iconConfigLocal[1].model.value]),Ot("title",Ze(1,5,e.iconConfigLocal[1].model.titleLC[e.iconConfigLocal[1].model.value])),y("ngStyle",e.configIcon)}}function TQ(n,t){if(1&n){const e=je();g(0,"div",12)(1,"div",13),X("click",function(){return oe(e),se(x().reload())}),v(),V(2,SQ,2,7,"div",14),V(3,AQ,2,7,"div",15),g(4,"div",16),X("click",function(){return oe(e),se(x().toggleClass(0))}),Xe(5,"translate"),v()()}if(2&n){const e=x();m(1),Ot("title",e.globals.languageConfLocal.reload),y("ngStyle",e.reloadImg),m(1),y("ngIf","gi"===e.globals.system&&(e.globals.actionsAllowed||e.globals.createAllowed)),m(1),y("ngIf",e.isReadMode),m(1),wi(e.iconConfigLocal[0].model.classAssignment[e.iconConfigLocal[0].model.value]),Ot("title",Ze(5,9,e.iconConfigLocal[0].model.titleLC[e.iconConfigLocal[0].model.value])),y("ngStyle",e.configIcon)}}function xQ(n,t){if(1&n){const e=je();g(0,"li",9),X("click",function(){return oe(e),se(x().connectionService.logout())}),j(1),v()}if(2&n){const e=x();m(1),Qe(" ",e.globals.languageConfLocal.logout," ")}}let IQ=(()=>{class n{constructor(e,i,r,o,s,a){this.globals=e,this.connectionService=i,this.createService=r,this.ren=o,this.datasource=s,this.authService=a,this.enteredButton=!1,this.isMatMenuOpen=!1,this.isMatMenu2Open=!1,this.loggedIn=!1,this.iconConfigLocal=n1,this.path="config",this.userName="Login",this.reloadImg={background:"no-repeat url(assets/images/icon_refresh_no_background.png)"},this.configIcon={background:"transparent url(assets/images/icons_business_mail.png) no-repeat"},this.configRestObj={},this.createService.config=this.iconConfigLocal}ngOnInit(){this.waitForUserName(),null===window.localStorage.getItem("webInt")&&this.openWebIntModal();let e=Office.context.mailbox.item;console.log(e),e&&(this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync),console.log(this.isReadMode),this.initConfig()}menuEnter(){this.isMatMenuOpen=!0,this.isMatMenu2Open&&(this.isMatMenu2Open=!1)}menuLeave(e,i){setTimeout(()=>{this.isMatMenu2Open||this.enteredButton?this.isMatMenuOpen=!1:(this.isMatMenuOpen=!1,e.closeMenu(),i&&(this.ren.removeClass(i._elementRef.nativeElement,"cdk-focused"),this.ren.removeClass(i._elementRef.nativeElement,"cdk-program-focused")))},80)}buttonEnter(e,i){setTimeout(()=>{this.prevButtonTrigger&&this.prevButtonTrigger!==e?(this.prevButtonTrigger.closeMenu(),this.prevButtonTrigger=e,this.isMatMenuOpen=!1,this.isMatMenu2Open=!1,e.openMenu()):this.isMatMenuOpen?(this.enteredButton=!0,this.prevButtonTrigger=e):(this.enteredButton=!0,this.prevButtonTrigger=e,e.openMenu(),i&&(this.ren.removeClass(i._elementRef.nativeElement,"cdk-focused"),this.ren.removeClass(i._elementRef.nativeElement,"cdk-program-focused")))})}buttonLeave(e){setTimeout(()=>{this.enteredButton&&!this.isMatMenuOpen&&e.closeMenu(),this.isMatMenuOpen?this.enteredButton=!1:e.closeMenu()},100)}reload(){this.connectionService.reload()}openWebIntModal(){this.connectionService.waitForWebIntModal().subscribe(e=>{e()})}openConnectWindow(){"Login"===this.userName&&(null===window.localStorage.getItem("webInt")?this.openWebIntModal():this.connectionService.connect().subscribe(()=>{}))}openGraphLogin(){}openLicenses(){this.globals.activeWindow="about"}toggleClass(e,i=!0){if(e{},error:a=>{},complete:()=>{}})}else this.configData&&this.configData.createAddress&&i&&this.createService.toggleOpen();else localStorage.setItem(r.name,r.value),("openMail"===r.name||"deleteAttachments"===r.name)&&(this.globals[r.name]=Boolean(r.value),"deleteAttachments"===r.name&&"Owa"===this.globals.curConnectorType&&this.globals.curConnector.adjustAttachments())}}waitForUserName(){this.connectionService.processPath().subscribe(()=>{this.connectionService.getUserName().subscribe(e=>{"gi"===this.globals.system?(this.globals.ownMailAddr=e.mail,this.userName=e.name):this.userName=e,this.loggedIn=!0,this.globals.loggedIn=!0})})}changeIcon(e,i){return e.value=i[(i.indexOf(e.value)+1)%i.length],e}initConfig(){"gi"===this.globals.system?this.connectionService.getReqNoCache(this.path,null).subscribe({next:e=>{this.initConfigClasses(e)},error:e=>{this.connectionService.processPath().subscribe(()=>{})},complete:()=>{}}):this.initConfigClasses(null)}initConfigClasses(e){this.configRestObj=e;const i={};let r=0;for(const o of this.iconConfigLocal){const s=o.model.name;if("gi"===this.globals.system){let a;a=a?this.configData[s]:{inRest:!1,index:0},(e[s]||""===e[s])&&(o.model.value=e[s],a.inRest=!0,("deleteAttachments"===s||"openMail"===s)&&(this.globals[s]=Boolean(e[s]))),i[s]=a,a.index=r,r++}else if("deleteAttachments"===s||"openMail"===s){let a=localStorage.getItem(s);null==a?(a="",localStorage.setItem(s,a)):(this.globals[s]=Boolean(a),o.model.value="1"===a||""===a?a:"")}}this.configData=i}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(Nn),p(r1),p(oo),p(bo),p(Mc))},n.\u0275cmp=ze({type:n,selectors:[["app-site-actions"]],decls:18,vars:6,consts:[["id","actionsHeader"],["id","actionButtons"],["class","clearfix",4,"ngIf"],["id","userMenu"],["id","userName",1,"actionHeaderComponent",3,"click"],["id","userMenuIcon","mat-button","","src","assets/images/DropDownArrowOffsetRight.png",1,"actionHeaderComponent","right",3,"matMenuTriggerFor"],["button","","userMenuTrigger","matMenuTrigger"],["direction","down","yPosition","below","xPosition","before",3,"hasBackdrop"],["userMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["firstEle",""],["class","","mat-menu-item","",3,"click",4,"ngIf"],[1,"clearfix"],["id","reload",1,"widgetReload",3,"title","ngStyle","click"],["id","openCreate",3,"class","title","ngStyle","click",4,"ngIf"],["id","openMail",3,"class","title","ngStyle","click",4,"ngIf"],["id","deleteAttachments",3,"title","ngStyle","click"],["id","openCreate",3,"title","ngStyle","click"],["id","openMail",3,"title","ngStyle","click"]],template:function(e,i){if(1&e&&(g(0,"div",0)(1,"div",1),V(2,TQ,6,11,"div",2),v(),g(3,"div",3)(4,"div",4),X("click",function(){return i.openConnectWindow()}),j(5),v(),xe(6,"img",5,6),v(),g(9,"mat-menu",7,8)(11,"span")(12,"li",9,10),X("click",function(){return i.openWebIntModal()}),j(14),v(),V(15,xQ,2,1,"li",11),g(16,"li",9),X("click",function(){return i.openLicenses()}),j(17," Info "),v()()()()),2&e){const r=sn(10);m(2),y("ngIf",i.globals.loggedIn),m(3),Qe(" ",i.userName," "),m(1),y("matMenuTriggerFor",r),m(3),y("hasBackdrop",!1),m(5),Qe(" ",i.globals.languageConfLocal.webIntConfig," "),m(1),y("ngIf",i.loggedIn)}},dependencies:[_n,Qs,z1,Wd,$1,Pi],styles:[".widgetReload[_ngcontent-%COMP%]{background-position:1px 2px!important;float:left;margin-right:2px}.widgetReload[_ngcontent-%COMP%], .widgetOptions[_ngcontent-%COMP%], .widgetLogin[_ngcontent-%COMP%]{display:inline-block;width:21px;height:22px;text-decoration:none;color:#2a5a8b;cursor:pointer}.actionHeaderComponent[_ngcontent-%COMP%]{display:inline-block}.mat-menu-item[_ngcontent-%COMP%]{font:400 12px/20px Arial,Verdana,Helvetica,sans-serif;height:100%;padding-top:10px;padding-bottom:10px}#userMenu[_ngcontent-%COMP%]{height:20px;cursor:pointer}#userMenuIcon[_ngcontent-%COMP%]{margin-top:2px;margin-left:4px}#actionsHeader[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-top:2px;padding-bottom:2px;background-color:#f28e001a;border-radius:3px}.bmPlus[_ngcontent-%COMP%], .bmMinus[_ngcontent-%COMP%], .bmDocOFF[_ngcontent-%COMP%], .bmDocON[_ngcontent-%COMP%], .bmAttachInclude[_ngcontent-%COMP%], .bmAttachExclude[_ngcontent-%COMP%]{float:left;width:22px;height:21px;margin-right:2px;cursor:pointer}.bmDocOFF[_ngcontent-%COMP%]{background-position:-88px 0px!important}.bmDocON[_ngcontent-%COMP%]{background-position:-110px 0px!important}.bmMinus[_ngcontent-%COMP%]{background-position:-66px -21px!important}.bmPlus[_ngcontent-%COMP%]{background-position:-44px -21px!important}.bmAttachInclude[_ngcontent-%COMP%]{background-position:-22px -21px!important}.bmAttachExclude[_ngcontent-%COMP%]{background-position:0px -21px!important}"]}),n})();function MQ(n,t){1&n&&xe(0,"div",11)}function kQ(n,t){if(1&n&&(g(0,"div",1),V(1,MQ,1,0,"div",2),g(2,"div",3),xe(3,"div",4),g(4,"div",5),xe(5,"div",6)(6,"div",7),v(),g(7,"div",8),xe(8,"div",9)(9,"div",10),v()()()),2&n){const e=x();m(1),y("ngIf",!e.isModal)}}let RQ=(()=>{class n{constructor(e){this.loader=e,this.loaderActive=!1,this.isModal=!1}ngOnInit(){this.loader.connectToService().subscribe(e=>{this.changeState(e.activate,e.modal)})}changeState(e,i=this.isModal){setTimeout(()=>{this.loaderActive=e,this.isModal=i},1)}}return n.\u0275fac=function(e){return new(e||n)(p(Lc))},n.\u0275cmp=ze({type:n,selectors:[["app-loader"]],decls:1,vars:1,consts:[["class","loadingContainer",4,"ngIf"],[1,"loadingContainer"],["class","blank-background",4,"ngIf"],[1,"shadow-messagebox"],["id","loadingFiller"],[1,"loaderContainerLeft"],[1,"loader-left"],[1,"loader-bottom"],[1,"loaderContainerRight"],[1,"loader-right"],[1,"loader-top"],[1,"blank-background"]],template:function(e,i){1&e&&V(0,kQ,10,1,"div",0),2&e&&y("ngIf",i.loaderActive)},dependencies:[_n],styles:['.shadow[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:99;background-color:#eee;opacity:.5;filter:alpha(opacity=50);color:#111;font-size:20px;font-weight:700;font-style:normal;text-align:center}.shadow-transparent[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:99;background-color:#fff;opacity:0;filter:alpha(opacity=0);color:#fff;font-size:20px;font-weight:700;font-style:normal;text-align:center}.shadow-messagebox[_ngcontent-%COMP%], .blank-background[_ngcontent-%COMP%]{height:100%;width:100%;position:absolute;top:0;left:0}.shadow-messagebox[_ngcontent-%COMP%]{z-index:9999;background-color:#000;opacity:.4;filter:alpha(opacity=50);color:#111;font-size:20px;font-weight:700;font-style:normal;text-align:center}.blank-background[_ngcontent-%COMP%]{z-index:9900;background-color:#fff}.loader-left[_ngcontent-%COMP%]{position:relative;top:0;left:0;height:41px;width:11px;box-shadow:inset 0 41px gray;animation:fillAnimationLeft 3s linear infinite normal}.loader-right[_ngcontent-%COMP%]{position:absolute;top:0;left:17px;height:41px;width:11px;box-shadow:inset 0 -41px gray;animation:fillAnimationRight 3s linear infinite normal}.loader-bottom[_ngcontent-%COMP%]{position:relative;top:-11px;left:0px;height:11px;width:28px;box-shadow:inset 28px 0 gray;animation:fillAnimationBottom 3s linear infinite normal}.loader-top[_ngcontent-%COMP%]{position:absolute;top:0px;left:0px;height:11px;width:28px;content:"";box-shadow:inset -28px 0 gray;animation:fillAnimationTop 3s linear infinite normal}.loaderContainerLeft[_ngcontent-%COMP%], .loaderContainerRight[_ngcontent-%COMP%]{height:41px;width:28px;overflow:hidden;position:absolute;display:inline-block}.loaderContainerLeft[_ngcontent-%COMP%]{left:calc(50% - 7px)}.loaderContainerRight[_ngcontent-%COMP%]{left:calc(50% + 7px)}#loadingFiller[_ngcontent-%COMP%]{height:calc(50% - 20.5px)}#shadowBox[_ngcontent-%COMP%]{display:none}@keyframes fillAnimationLeft{0%{box-shadow:inset 0 0 gray;top:0}20%{box-shadow:inset 0 41px gray;top:0}40%{box-shadow:inset 0 41px gray;top:0}60%{box-shadow:inset 0 28px gray;top:41px}80%{box-shadow:inset 0 28px gray;top:41px}to{box-shadow:inset 0 28px gray;top:41px}}@keyframes fillAnimationRight{0%{box-shadow:inset 0 0 gray;top:0}20%{box-shadow:inset 0 -41px gray;top:0}40%{box-shadow:inset 0 -41px gray;top:0}60%{box-shadow:inset 0 -28px gray;top:-41px}80%{box-shadow:inset 0 -28px gray;top:-41px}to{box-shadow:inset 0 -28px gray;top:-41px}}@keyframes fillAnimationBottom{0%{box-shadow:inset 0 0 gray;left:0px}20%{box-shadow:inset 0 0 gray;left:11px}40%{box-shadow:inset 28px 0 gray;left:11px}41%{box-shadow:inset 28px 0 gray;left:0px}59%{box-shadow:inset 28px 0 gray;left:0px}75%{box-shadow:inset 28px 0 gray;left:28px}to{box-shadow:inset 28px 0 gray;left:28px}}@keyframes fillAnimationTop{0%{box-shadow:inset 0 0 gray;left:0px}20%{box-shadow:inset 0 0 gray;left:-11px}40%{box-shadow:inset -28px 0 gray;left:-11px}41%{box-shadow:inset -28px 0 gray;left:0px}59%{box-shadow:inset -28px 0 gray;left:0px}75%{box-shadow:inset -28px 0 gray;left:-28px}to{box-shadow:inset -28px 0 gray;left:-28px}}']}),n})();function K1(n){return new Se(3e3,!1)}function pX(){return typeof window<"u"&&typeof window.document<"u"}function TC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ha(n){switch(n.length){case 0:return new ld;case 1:return n[0];default:return new CI(n)}}function Y1(n,t,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((_,S)=>{let U=S,Z=_;if("offset"!==S)switch(U=t.normalizePropertyName(U,s),Z){case"!":Z=r.get(S);break;case Ss:Z=o.get(S);break;default:Z=t.normalizeStyleValue(S,U,Z,s)}f.set(U,Z)}),h||a.push(f),c=f,l=d}),s.length)throw function tX(n){return new Se(3502,!1)}();return a}function xC(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&IC(e,"start",n)));break;case"done":n.onDone(()=>i(e&&IC(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&IC(e,"destroy",n)))}}function IC(n,t,e){const o=MC(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function MC(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function xr(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function Q1(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let kC=(n,t)=>!1,X1=(n,t,e)=>[],Z1=null;function RC(n){const t=n.parentNode||n.host;return t===Z1?null:t}(TC()||typeof Element<"u")&&(pX()?(Z1=(()=>document.documentElement)(),kC=(n,t)=>{for(;t;){if(t===n)return!0;t=RC(t)}return!1}):kC=(n,t)=>n.contains(t),X1=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let sl=null,J1=!1;const ek=kC,tk=X1;let nk=(()=>{class n{validateStyleProperty(e){return function mX(n){sl||(sl=function gX(){return typeof document<"u"?document.body:null}()||{},J1=!!sl.style&&"WebkitAppearance"in sl.style);let t=!0;return sl.style&&!function fX(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in sl.style,!t&&J1&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in sl.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return ek(e,i)}getParentElement(e){return RC(e)}query(e,i,r){return tk(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new ld(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),OC=(()=>{class n{}return n.NOOP=new nk,n})();const PC="ng-enter",Am="ng-leave",Tm="ng-trigger",xm=".ng-trigger",rk="ng-animating",LC=".ng-animating";function pa(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:NC(parseFloat(t[1]),t[2])}function NC(n,t){return"s"===t?1e3*n:n}function Im(n,t,e){return n.hasOwnProperty("duration")?n:function yX(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(K1()),{duration:0,delay:0,easing:""};r=NC(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=NC(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function OQ(){return new Se(3100,!1)}()),a=!0),o<0&&(t.push(function PQ(){return new Se(3101,!1)}()),a=!0),a&&t.splice(l,0,K1())}return{duration:r,delay:o,easing:s}}(n,t,e)}function Kd(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function ok(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function fa(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function ak(n,t,e){return e?t+":"+e+";":""}function lk(n){let t="";for(let e=0;e{const o=BC(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),TC()&&lk(n))}function al(n,t){n.style&&(t.forEach((e,i)=>{const r=BC(i);n.style[r]=""}),TC()&&lk(n))}function Yd(n){return Array.isArray(n)?1==n.length?n[0]:yI(n):n}const FC=new RegExp("{{\\s*(.+?)\\s*}}","g");function ck(n){let t=[];if("string"==typeof n){let e;for(;e=FC.exec(n);)t.push(e[1]);FC.lastIndex=0}return t}function Mm(n,t,e){const i=n.toString(),r=i.replace(FC,(o,s)=>{let a=t[s];return null==a&&(e.push(function NQ(n){return new Se(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function km(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const wX=/-+([a-z0-9])/g;function BC(n){return n.replace(wX,(...t)=>t[1].toUpperCase())}function EX(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ir(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function FQ(n){return new Se(3004,!1)}()}}function uk(n,t){return window.getComputedStyle(n)[t]}function IX(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function MX(n,t,e){if(":"==n[0]){const l=function kX(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function QQ(n){return new Se(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(dk(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(dk(s,r))}(i,e,t)):e.push(n),e}const Lm=new Set(["true","1"]),Nm=new Set(["false","0"]);function dk(n,t){const e=Lm.has(n)||Nm.has(n),i=Lm.has(t)||Nm.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?Lm.has(n):Nm.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Lm.has(t):Nm.has(t)),s&&a}}const RX=new RegExp("s*:selfs*,?","g");function HC(n,t,e,i){return new OX(n).build(t,e,i)}class OX{constructor(t){this._driver=t}build(t,e,i){const r=new NX(e);return this._resetContextStyleTimingState(r),Ir(this,Yd(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function HQ(){return new Se(3006,!1)}()),t.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 VQ(){return new Se(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{ck(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(km(o.values()),e.errors.push(function jQ(n,t){return new Se(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Ir(this,Yd(t.animation),e);return{type:1,matchers:IX(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:ll(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Ir(this,i,e)),options:ll(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=Ir(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:ll(t.options)}}visitAnimate(t,e){const i=function BX(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return VC(Im(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=VC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Im(e,t);return VC(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:Lt({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Lt(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(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Ss?i.push(a):e.errors.push(new Se(3002,!1)):i.push(ok(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:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.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 qQ(n,t,e,i,r){return new Se(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function CX(n,t,e){const i=t.params||{},r=ck(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function LQ(n){return new Se(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function zQ(){return new Se(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(Z=>{const ve=this._makeStyleAst(Z,e);let ee=null!=ve.offset?ve.offset:function FX(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(ve.styles),Te=0;return null!=ee&&(o++,Te=ve.offset=ee),l=l||Te<0||Te>1,a=a||Te0&&o{const ee=h>0?ve==f?1:h*ve:s[ve],Te=ee*U;e.currentTime=_+S.delay+Te,S.duration=Te,this._validateStyleAst(Z,e),Z.offset=ee,i.styles.push(Z)}),i}visitReference(t,e){return{type:8,animation:Ir(this,Yd(t.animation),e),options:ll(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ll(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ll(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function PX(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(RX,"")),n=n.replace(/@\*/g,xm).replace(/@\w+/g,e=>xm+"-"+e.slice(1)).replace(/:animating/g,LC),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,xr(e.collectedStyles,e.currentQuerySelector,new Map);const a=Ir(this,Yd(t.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:t.selector,options:ll(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function KQ(){return new Se(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Im(t.timings,e.errors,!0);return{type:12,animation:Ir(this,Yd(t.animation),e),timings:i,options:null}}}class NX{constructor(t){this.errors=t,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 ll(n){return n?(n=Kd(n)).params&&(n.params=function LX(n){return n?Kd(n):null}(n.params)):n={},n}function VC(n,t,e){return{duration:n,delay:t,easing:e}}function jC(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Fm{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const jX=new RegExp(":enter","g"),qX=new RegExp(":leave","g");function UC(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new zX).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class zX{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new Fm;const d=new qC(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?pa(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),Ir(this,i,d);const f=d.timelines.filter(_=>_.containsAnimation());if(f.length&&a.size){let _;for(let S=f.length-1;S>=0;S--){const U=f[S];if(U.element===e){_=U;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([a],null,d.errors,l)}return f.length?f.map(_=>_.buildKeyframes()):[jC(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?pa(i.duration):null,a=null!=i.delay?pa(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Ir(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.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=Bm);const s=pa(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Ir(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?pa(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Ir(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=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Im(e.params?Mm(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.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=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?pa(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Bm);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),Ir(this,t.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=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.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;Ir(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Bm={};class qC{constructor(t,e,i,r,o,s,a,l){this._driver=t,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=Bm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Hm(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=pa(i.duration)),null!=i.delay&&(r.delay=pa(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]=Mm(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new qC(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(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=Bm,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new GX(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(jX,"."+this._enterClassName)).replace(qX,"."+this._leaveClassName);let c=this._driver.query(this.element,t,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 YQ(n){return new Se(3014,!1)}()),a}}class Hm{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,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(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Hm(this._driver,t,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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Ss),this._currentKeyframe.set(e,Ss);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function WX(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,Ss)}else fa(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Mm(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ss),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=fa(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Ss&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?km(t.values()):[],s=e.size?km(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return jC(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class GX extends Hm{constructor(t,e,i,r,o,s,a=!1){super(t,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 t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=fa(t[0]);l.set("offset",0),o.push(l);const c=fa(t[0]);c.set("offset",fk(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=fa(t[d]);const f=h.get("offset");h.set("offset",fk((e+f*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return jC(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function fk(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class zC{}const $X=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 KX extends zC{normalizePropertyName(t,e){return BC(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if($X.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 BQ(n,t){return new Se(3005,!1)}())}return s+o}}function mk(n,t,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const GC={};class gk{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function YX(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||GC,_=this.buildStyles(i,a&&a.params||GC,d),S=l&&l.params||GC,U=this.buildStyles(r,S,d),Z=new Set,ve=new Map,ee=new Map,Te="void"===r,et={params:QX(S,h),delay:this.ast.options?.delay},_t=u?[]:UC(t,e,this.ast.animation,o,s,_,U,et,c,d);let Gt=0;if(_t.forEach(Gn=>{Gt=Math.max(Gn.duration+Gn.delay,Gt)}),d.length)return mk(e,this._triggerName,i,r,Te,_,U,[],[],ve,ee,Gt,d);_t.forEach(Gn=>{const vi=Gn.element,ga=xr(ve,vi,new Set);Gn.preStyleProps.forEach(Eo=>ga.add(Eo));const Hs=xr(ee,vi,new Set);Gn.postStyleProps.forEach(Eo=>Hs.add(Eo)),vi!==e&&Z.add(vi)});const hn=km(Z.values());return mk(e,this._triggerName,i,r,Te,_,U,_t,hn,ve,ee,Gt)}}function QX(n,t){const e=Kd(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class XX{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=Kd(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Mm(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class JX{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new XX(r.style,r.options&&r.options.params||{},i))}),_k(this.states,"true","1"),_k(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new gk(t,r,this.states))}),this.fallbackTransition=function eZ(n,t,e){return new gk(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function _k(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const tZ=new Fm;class nZ{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=HC(this._driver,e,i,[]);if(i.length)throw function nX(n){return new Se(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=Y1(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=UC(this._driver,e,o,PC,Am,new Map,new Map,i,tZ,r),s.forEach(u=>{const d=xr(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function iX(){return new Se(3300,!1)}()),s=[]),r.length)throw function rX(n){return new Se(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,Ss))})});const c=ha(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function oX(n){return new Se(3301,!1)}();return e}listen(t,e,i,r){const o=MC(e,"","","");return xC(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);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(t)}}}const vk="ng-animate-queued",WC="ng-animate-disabled",aZ=[],yk={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lZ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Kr="__ng_removed";class $C{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function hZ(n){return n??null}(i?t.value:t),i){const o=Kd(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Qd="void",KC=new $C(Qd);class cZ{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Yr(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function sX(n,t){return new Se(3302,!1)}();if(null==i||0==i.length)throw function aX(n){return new Se(3303,!1)}();if(!function pZ(n){return"start"==n||"done"==n}(i))throw function lX(n,t){return new Se(3400,!1)}();const o=xr(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=xr(this._engine.statesByElement,t,new Map);return a.has(e)||(Yr(t,Tm),Yr(t,Tm+"-"+e),a.set(e,KC)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function cX(n){return new Se(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new YC(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Yr(t,Tm),Yr(t,Tm+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new $C(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=KC),c.value!==Qd&&l.value===c.value){if(!function gZ(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{al(t,U),Qo(t,Z)})}return}const h=xr(this._engine.playersByElement,t,[]);h.forEach(S=>{S.namespaceId==this.id&&S.triggerName==e&&S.queued&&S.destroy()});let f=o.matchTransition(l.value,c.value,t,c.params),_=!1;if(!f){if(!r)return;f=o.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:_}),_||(Yr(t,vk),s.onStart(()=>{Bc(t,vk)})),s.onDone(()=>{let S=this.players.indexOf(s);S>=0&&this.players.splice(S,1);const U=this._engine.playersByElement.get(t);if(U){let Z=U.indexOf(s);Z>=0&&U.splice(Z,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,xm,!0);i.forEach(r=>{if(r[Kr])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(t,e,i,r){const o=this._engine.statesByElement.get(t),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(t,c,Qd,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&ha(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);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)||KC,u=new $C(Qd),d=new YC(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[Kr];(!o||o===yk)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Yr(t,this._hostClassName)}drainQueuedTransitions(t){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=MC(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,xC(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(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class uZ{constructor(t,e,i){this.bodyNode=t,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)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new cZ(t,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[t]=i}_balanceNamespaceList(t,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,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(Vm(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Vm(e))return;const o=e[Kr];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Yr(t,WC)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Bc(t,WC))}removeNode(t,e,i,r){if(Vm(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[Kr]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return Vm(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,xm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,LC,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ha(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Kr];if(e&&e.setForRemoval){if(t[Kr]=yk,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(WC)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-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?ha(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function uX(n){return new Se(3402,!1)}()}_flushAnimations(t,e){const i=new Fm,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(tt=>{u.add(tt);const ft=this.driver.query(tt,".ng-animate-queued",!0);for(let bt=0;bt{const bt=PC+S++;_.set(ft,bt),tt.forEach(rn=>Yr(rn,bt))});const U=[],Z=new Set,ve=new Set;for(let tt=0;ttZ.add(rn)):ve.add(ft))}const ee=new Map,Te=wk(h,Array.from(Z));Te.forEach((tt,ft)=>{const bt=Am+S++;ee.set(ft,bt),tt.forEach(rn=>Yr(rn,bt))}),t.push(()=>{f.forEach((tt,ft)=>{const bt=_.get(ft);tt.forEach(rn=>Bc(rn,bt))}),Te.forEach((tt,ft)=>{const bt=ee.get(ft);tt.forEach(rn=>Bc(rn,bt))}),U.forEach(tt=>{this.processLeaveNode(tt)})});const et=[],_t=[];for(let tt=this._namespaceList.length-1;tt>=0;tt--)this._namespaceList[tt].drainQueuedTransitions(e).forEach(bt=>{const rn=bt.player,yi=bt.element;if(et.push(rn),this.collectedEnterElements.length){const Bi=yi[Kr];if(Bi&&Bi.setForMove){if(Bi.previousTriggersValues&&Bi.previousTriggersValues.has(bt.triggerName)){const ml=Bi.previousTriggersValues.get(bt.triggerName),Xr=this.statesByElement.get(bt.element);if(Xr&&Xr.has(bt.triggerName)){const cg=Xr.get(bt.triggerName);cg.value=ml,Xr.set(bt.triggerName,cg)}}return void rn.destroy()}}const Jo=!d||!this.driver.containsElement(d,yi),Mr=ee.get(yi),_a=_.get(yi),Fn=this._buildInstruction(bt,i,_a,Mr,Jo);if(Fn.errors&&Fn.errors.length)return void _t.push(Fn);if(Jo)return rn.onStart(()=>al(yi,Fn.fromStyles)),rn.onDestroy(()=>Qo(yi,Fn.toStyles)),void r.push(rn);if(bt.isFallbackTransition)return rn.onStart(()=>al(yi,Fn.fromStyles)),rn.onDestroy(()=>Qo(yi,Fn.toStyles)),void r.push(rn);const JR=[];Fn.timelines.forEach(Bi=>{Bi.stretchStartingKeyframe=!0,this.disabledNodes.has(Bi.element)||JR.push(Bi)}),Fn.timelines=JR,i.append(yi,Fn.timelines),s.push({instruction:Fn,player:rn,element:yi}),Fn.queriedElements.forEach(Bi=>xr(a,Bi,[]).push(rn)),Fn.preStyleProps.forEach((Bi,ml)=>{if(Bi.size){let Xr=l.get(ml);Xr||l.set(ml,Xr=new Set),Bi.forEach((cg,bw)=>Xr.add(bw))}}),Fn.postStyleProps.forEach((Bi,ml)=>{let Xr=c.get(ml);Xr||c.set(ml,Xr=new Set),Bi.forEach((cg,bw)=>Xr.add(bw))})});if(_t.length){const tt=[];_t.forEach(ft=>{tt.push(function dX(n,t){return new Se(3505,!1)}())}),et.forEach(ft=>ft.destroy()),this.reportError(tt)}const Gt=new Map,hn=new Map;s.forEach(tt=>{const ft=tt.element;i.has(ft)&&(hn.set(ft,ft),this._beforeAnimationBuild(tt.player.namespaceId,tt.instruction,Gt))}),r.forEach(tt=>{const ft=tt.element;this._getPreviousPlayers(ft,!1,tt.namespaceId,tt.triggerName,null).forEach(rn=>{xr(Gt,ft,[]).push(rn),rn.destroy()})});const Gn=U.filter(tt=>Dk(tt,l,c)),vi=new Map;Ck(vi,this.driver,ve,c,Ss).forEach(tt=>{Dk(tt,l,c)&&Gn.push(tt)});const Hs=new Map;f.forEach((tt,ft)=>{Ck(Hs,this.driver,new Set(tt),l,"!")}),Gn.forEach(tt=>{const ft=vi.get(tt),bt=Hs.get(tt);vi.set(tt,new Map([...Array.from(ft?.entries()??[]),...Array.from(bt?.entries()??[])]))});const Eo=[],Qc=[],Xc={};s.forEach(tt=>{const{element:ft,player:bt,instruction:rn}=tt;if(i.has(ft)){if(u.has(ft))return bt.onDestroy(()=>Qo(ft,rn.toStyles)),bt.disabled=!0,bt.overrideTotalTime(rn.totalTime),void r.push(bt);let yi=Xc;if(hn.size>1){let Mr=ft;const _a=[];for(;Mr=Mr.parentNode;){const Fn=hn.get(Mr);if(Fn){yi=Fn;break}_a.push(Mr)}_a.forEach(Fn=>hn.set(Fn,yi))}const Jo=this._buildAnimation(bt.namespaceId,rn,Gt,o,Hs,vi);if(bt.setRealPlayer(Jo),yi===Xc)Eo.push(bt);else{const Mr=this.playersByElement.get(yi);Mr&&Mr.length&&(bt.parentPlayer=ha(Mr)),r.push(bt)}}else al(ft,rn.fromStyles),bt.onDestroy(()=>Qo(ft,rn.toStyles)),Qc.push(bt),u.has(ft)&&r.push(bt)}),Qc.forEach(tt=>{const ft=o.get(tt.element);if(ft&&ft.length){const bt=ha(ft);tt.setRealPlayer(bt)}}),r.forEach(tt=>{tt.parentPlayer?tt.syncPlayerEvents(tt.parentPlayer):tt.destroy()});for(let tt=0;tt!Jo.destroyed);yi.length?fZ(this,ft,yi):this.processLeaveNode(ft)}return U.length=0,Eo.forEach(tt=>{this.players.push(tt),tt.onDone(()=>{tt.destroy();const ft=this.players.indexOf(tt);this.players.splice(ft,1)}),tt.play()}),Eo}elementContainsData(t,e){let i=!1;const r=e[Kr];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(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==Qd;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(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=xr(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const _=f.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),f.destroy(),d.push(f)})}al(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(_=>{const S=_.element;u.add(S);const U=S[Kr];if(U&&U.removedBeforeQueried)return new ld(_.duration,_.delay);const Z=S!==l,ve=function mZ(n){const t=[];return Ek(n,t),t}((i.get(S)||aZ).map(Gt=>Gt.getRealPlayer())).filter(Gt=>!!Gt.element&&Gt.element===S),ee=o.get(S),Te=s.get(S),et=Y1(0,this._normalizer,0,_.keyframes,ee,Te),_t=this._buildPlayer(_,et,ve);if(_.subTimeline&&r&&d.add(S),Z){const Gt=new YC(t,a,S);Gt.setRealPlayer(_t),c.push(Gt)}return _t});c.forEach(_=>{xr(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>function dZ(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,_.element,_))}),u.forEach(_=>Yr(_,rk));const f=ha(h);return f.onDestroy(()=>{u.forEach(_=>Bc(_,rk)),Qo(l,e.toStyles)}),d.forEach(_=>{xr(r,_,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new ld(t.duration,t.delay)}}class YC{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new ld,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>xC(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){xr(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Vm(n){return n&&1===n.nodeType}function bk(n,t){const e=n.style.display;return n.style.display=t??"none",e}function Ck(n,t,e,i,r){const o=[];e.forEach(l=>o.push(bk(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=t.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[Kr]=lZ,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>bk(l,o[a++])),s}function wk(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function Yr(n,t){n.classList?.add(t)}function Bc(n,t){n.classList?.remove(t)}function fZ(n,t,e){ha(e).onDone(()=>n.processLeaveNode(t))}function Ek(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class jm{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new uZ(t,e,i),this._timelineEngine=new nZ(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=HC(this._driver,o,l,[]);if(l.length)throw function eX(n,t){return new Se(3404,!1)}();a=function ZX(n,t,e){return new JX(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=Q1(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=Q1(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let vZ=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Qo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qo(this._element,this._initialStyles),this._endStyles&&(Qo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(al(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(al(this._element,this._endStyles),this._endStyles=null),Qo(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function QC(n){let t=null;return n.forEach((e,i)=>{(function yZ(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class Sk{constructor(t,e,i,r){this.element=t,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(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:uk(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class bZ{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return ek(t,e)}getParentElement(t){return RC(t)}query(t,e,i){return tk(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,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 Sk);(function DX(n,t){return 0===n||0===t})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((_,S)=>c.set(S,_))});let d=function bX(n){return n.length?n[0]instanceof Map?n:n.map(t=>ok(t)):[]}(e).map(f=>fa(f));d=function SX(n,t,e){if(e.size&&t.length){let i=t[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,uk(n,a)))}}return t}(t,d,c);const h=function _Z(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=QC(t[0]),t.length>1&&(i=QC(t[t.length-1]))):t instanceof Map&&(e=QC(t)),e||i?new vZ(n,e,i):null}(t,d);return new Sk(t,d,l,h)}}let CZ=(()=>{class n extends _I{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Jr.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?yI(e):e;return Ak(this._renderer,null,i,"register",[r]),new wZ(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(T(Cu),T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class wZ extends class k6{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new EZ(this._id,t,e||{},this._renderer)}}class EZ{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Ak(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Ak(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const Tk="@.disabled";let DZ=(()=>{class n{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 xk("",o,this.engine),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 SZ(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 n.\u0275fac=function(e){return new(e||n)(T(Cu),T(jm),T(nt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class xk{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==Tk?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class SZ extends xk{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Tk?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function AZ(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function TZ(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let xZ=(()=>{class n extends jm{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(OC),T(zC),T(Ys))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const Ik=[{provide:_I,useClass:CZ},{provide:zC,useFactory:function IZ(){return new KX}},{provide:jm,useClass:xZ},{provide:Cu,useFactory:function MZ(n,t,e){return new DZ(n,t,e)},deps:[Lp,jm,nt]}],XC=[{provide:OC,useFactory:()=>new bZ},{provide:Un,useValue:"BrowserAnimations"},...Ik],Mk=[{provide:OC,useClass:nk},{provide:Un,useValue:"NoopAnimations"},...Ik];let kZ=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Mk:XC}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:XC,imports:[WT]}),n})(),kk=(()=>{class n{constructor(e){this.viewContainerRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(En))},n.\u0275dir=he({type:n,selectors:[["","appModal",""]]}),n})();const RZ=["modal"],OZ=["modalHeader"],PZ=["modalFooter"],LZ=["dbs"];function NZ(n,t){if(1&n){const e=je();g(0,"div",4)(1,"div",5)(2,"h1"),j(3),v()(),g(4,"div",6),X("click",function(){return oe(e),se(x().closeModal())}),xe(5,"div",7),v()()}if(2&n){const e=t.title,i=x();m(3),we(e),m(2),y("ngStyle",i.modCloseImage)}}function FZ(n,t){if(1&n){const e=je();g(0,"div",8)(1,"button",9),X("click",function(){return se((0,oe(e).cancelAction)())}),j(2),v(),g(3,"button",10),X("click",function(){return se((0,oe(e).confirmAction)())}),j(4),v()()}if(2&n){const e=t.confirm,i=t.cancel;m(2),Qe(" ",i," "),m(2),Qe(" ",e," ")}}function BZ(n,t){}function HZ(n,t){}let VZ=(()=>{class n{constructor(e,i,r,o,s){this.modal=e,this.modalService=i,this.componentFactoryResolver=r,this.app=o,this.globals=s,this.headerText="",this.modCloseImage={background:"no-repeat url(assets/images/widget_settings.png)"}}ngAfterViewInit(){}ngOnInit(){this.modalService.currentType.subscribe(e=>{this.modalService.setModalHeader(this.modalHeader),this.modalService.setModalFooter(this.modalFooter),this.chosenType=e.newType,this.loadComponent(this.chosenType,e.data)})}open(e){return this.modal.open(e,{panelClass:"modalOverlay",autoFocus:!1,maxHeight:"Owa"===this.globals.curConnectorType?"90%":"80%"})}loadComponent(e,i){this.modalItems=this.app.mItems;const r=this.modalItems[e],o=this.componentFactoryResolver.resolveComponentFactory(r.component),s=this.appModal.viewContainerRef;s.clear();const a=s.createComponent(o);return this.modalService.addActiveModal(this.open(a.instance.getTemplate())),a.instance.data=r.data,a.instance.modalMain=this,a.instance.data&&(a.instance.data.modalItems=this.modalService.modalItemsPub,i&&(a.instance.data.passedData=i)),this.modalService.newActive}closeModal(){this.modalService.closeAllModals()}}return n.\u0275fac=function(e){return new(e||n)(p(As),p(ol),p(ro),p(EC),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-modal"]],viewQuery:function(e,i){if(1&e&&(Oe(RZ,7),Oe(OZ,7),Oe(PZ,7),Oe(kk,7),Oe(LZ,5)),2&e){let r;me(r=ge())&&(i.modalTempl=r.first),me(r=ge())&&(i.modalHeader=r.first),me(r=ge())&&(i.modalFooter=r.first),me(r=ge())&&(i.appModal=r.first),me(r=ge())&&(i.selection=r.first)}},decls:7,vars:0,consts:[["modalHeader",""],["modalFooter",""],["appModal",""],["modal",""],[1,"modalHeader"],[1,"modalHeaderText"],["ngbAutoFocus","",1,"modalHeaderClose",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[1,"modalFooter"],[1,"button-secondary","right",3,"click"],[1,"button-primary","right",3,"click"]],template:function(e,i){1&e&&(V(0,NZ,6,2,"ng-template",null,0,Tn),V(2,FZ,5,2,"ng-template",null,1,Tn),V(4,BZ,0,0,"ng-template",2),V(5,HZ,0,0,"ng-template",null,3,Tn))},dependencies:[Qs,kk]}),n})(),jZ=(()=>{class n{constructor(e){this.language=e}getTranslation(e){return new b(i=>{this.language.waitForInit().subscribe(()=>{i.next(this.language.passLCObj()),i.complete()})})}}return n.\u0275fac=function(e){return new(e||n)(T(CC))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function UZ(n,t){if(1&n&&(El(),xe(0,"circle",4)),2&n){const e=x(),i=sn(1);Oi("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),ot("r",e._getCircleRadius())}}function qZ(n,t){if(1&n&&(El(),xe(0,"circle",4)),2&n){const e=x(),i=sn(1);Oi("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),ot("r",e._getCircleRadius())}}const GZ=Wa(class{constructor(n){this._elementRef=n}},"primary"),WZ=new pe("mat-progress-spinner-default-options",{providedIn:"root",factory:function $Z(){return{diameter:100}}});class Ns extends GZ{constructor(t,e,i,r,o,s,a,l){super(t),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=w.EMPTY,this.mode="determinate";const c=Ns._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(i.head)||c.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,"mat-spinner"===t.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),o&&(o.color&&(this.color=this.defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth)),e.isBrowser&&e.SAFARI&&a&&s&&l&&(this._resizeSubscription=a.change(150).subscribe(()=>{"indeterminate"===this.mode&&l.run(()=>s.markForCheck())}))}get diameter(){return this._diameter}set diameter(t){this._diameter=ys(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=ys(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,ys(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=nf(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(t){const e=50*(t.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,i=Ns._diameters;let r=i.get(t);if(!r||!r.has(e)){const o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ns._diameters=new WeakMap,Ns.\u0275fac=function(t){return new(t||Ns)(p(Je),p(Pn),p(ht,8),p(Un,8),p(WZ),p(Bt),p(Ho),p(nt))},Ns.\u0275cmp=ze({type:Ns,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(ot("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Oi("width",e.diameter,"px")("height",e.diameter,"px"),wt("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[De],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(El(),g(0,"svg",0,1),V(2,UZ,1,11,"circle",2),V(3,qZ,1,9,"circle",3),v()),2&t&&(Oi("width",e.diameter,"px")("height",e.diameter,"px"),y("ngSwitch","indeterminate"===e.mode),ot("viewBox",e._getViewBox()),m(2),y("ngSwitchCase",!0),m(1),y("ngSwitchCase",!1))},dependencies:[sc,Mp],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let YZ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt,Xi,Pt]}),n})();const QZ=["panel"];function XZ(n,t){if(1&n&&(g(0,"div",0,1),Ht(2),v()),2&n){const e=t.id,i=x();y("id",i.id)("ngClass",i._classList),ot("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const ZZ=["*"];let JZ=0;class eJ{constructor(t,e){this.source=t,this.option=e}}const tJ=Vo(class{}),Rk=new pe("mat-autocomplete-default-options",{providedIn:"root",factory:function nJ(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let iJ=(()=>{class n extends tJ{constructor(e,i,r,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._activeOptionChanges=w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Be,this.opened=new Be,this.closed=new Be,this.optionActivated=new Be,this._classList={},this.id="mat-autocomplete-"+JZ++,this.inertGroups=o?.SAFARI||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption,this._autoSelectActiveOption=!!r.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=ct(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=ct(e)}set classList(e){this._classList=e&&e.length?function VU(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new R2(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new eJ(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(e){return new(e||n)(p(Bt),p(Je),p(Rk),p(Pn))},n.\u0275dir=he({type:n,viewQuery:function(e,i){if(1&e&&(Oe(bn,7),Oe(QZ,5)),2&e){let r;me(r=ge())&&(i.template=r.first),me(r=ge())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[De]}),n})(),Ok=(()=>{class n extends iJ{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275cmp=ze({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,wf,5),Vt(r,vo,5)),2&e){let o;me(o=ge())&&(i.optionGroups=o),me(o=ge())&&(i.options=o)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[rt([{provide:Cf,useExisting:n}]),De],ngContentSelectors:ZZ,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(Vn(),V(0,XZ,3,4,"ng-template"))},dependencies:[Fa],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),n})();const Pk=new pe("mat-autocomplete-scroll-strategy"),oJ={provide:Pk,deps:[ar],useFactory:function rJ(n){return()=>n.scrollStrategies.reposition()}},sJ={provide:rr,useExisting:Zt(()=>Hc),multi:!0};let aJ=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=s,this._dir=l,this._formField=c,this._document=u,this._viewportRuler=d,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new L,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=ea(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(ii(f),Kn(()=>Mn(...f.map(_=>_.onSelectionChange)))):this._zone.onStable.pipe(dn(1),Kn(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=ct(e)}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Mn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Sn(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Sn(()=>this._overlayAttached)):Ve()).pipe(ue(e=>e instanceof mI?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Mn(bs(this._document,"click"),bs(this._document,"auxclick"),bs(this._document,"touchend")).pipe(Sn(e=>{const i=Vr(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=Di(e);if(27===i&&!r&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,s=38===i||40===i;9===i||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this.openPanel(),(s||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Mn(this._zone.onStable.pipe(dn(1)),this.autocomplete.options.changes.pipe(Yn(()=>this._positionStrategy.reapplyLastPosition()),DC(0))).pipe(Kn(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),dn(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=e?e.source:this._pendingAutoselectedOption;i&&(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Cs(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new vc({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let s;s="above"===this.position?o:"below"===this.position?i:[...i,...o],e.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const i=this.autocomplete,r=gb(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const o=i.options.toArray()[e];if(o){const s=o._getHostElement(),a=gI(s.offsetTop,s.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(i=>{(27===i.keyCode&&!Di(i)||38===i.keyCode&&Di(i,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),i.stopPropagation(),i.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(ar),p(En),p(nt),p(Bt),p(Pk),p(er,8),p(sm,9),p(ht,8),p(Ho),p(Rk,8))},n.\u0275dir=he({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[kn]}),n})(),Hc=(()=>{class n extends aJ{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&X("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(o){return i._handleInput(o)})("keydown",function(o){return i._handleKeydown(o)})("click",function(){return i._handleClick()}),2&e&&ot("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[rt([sJ]),De]}),n})(),lJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[oJ],imports:[yc,Ef,Pt,Xi,_c,Ef,Pt]}),n})();function cJ(n,t){if(1&n){const e=je();g(0,"div",2)(1,"button",3),X("click",function(){return oe(e),se(x().action())}),j(2),v()()}if(2&n){const e=x();m(2),we(e.data.action)}}function uJ(n,t){}const Lk=new pe("MatSnackBarData");class qm{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const dJ=Math.pow(2,31)-1;class JC{constructor(t,e){this._overlayRef=e,this._afterDismissed=new L,this._afterOpened=new L,this._onAction=new L,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,dJ))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let hJ=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(p(JC),p(Lk))},n.\u0275cmp=ze({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(g(0,"span",0),j(1),v(),V(2,cJ,3,1,"div",1)),2&e&&(m(1),we(i.data.message),m(1),y("ngIf",i.hasAction))},dependencies:[_n,Nc],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),n})();const pJ={snackBarState:jr("state",[qn("void, hidden",Lt({transform:"scale(0.8)",opacity:0})),qn("visible",Lt({transform:"scale(1)",opacity:1})),ui("* => visible",mi("150ms cubic-bezier(0, 0, 0.2, 1)")),ui("* => void, * => hidden",mi("75ms cubic-bezier(0.4, 0.0, 1, 1)",Lt({opacity:0})))])};let fJ=(()=>{class n extends vf{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new L,this._onExit=new L,this._onEnter=new L,this._animationState="void",this.attachDomPortal=a=>{this._assertNotAttached();const l=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),l},this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(dn(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(p(nt),p(Je),p(Bt),p(Pn),p(qm))},n.\u0275dir=he({type:n,viewQuery:function(e,i){if(1&e&&Oe(Es,7),2&e){let r;me(r=ge())&&(i._portalOutlet=r.first)}},features:[De]}),n})(),mJ=(()=>{class n extends fJ{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275cmp=ze({type:n,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&rp("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&Ru("@state",i._animationState)},features:[De],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(g(0,"div",0),V(1,uJ,0,0,"ng-template",1),v(),xe(2,"div")),2&e&&(m(2),ot("aria-live",i._live)("role",i._role))},dependencies:[Es],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[pJ.snackBarState]}}),n})(),Nk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[yc,za,Xi,T1,Pt,Pt]}),n})();const Fk=new pe("mat-snack-bar-default-options",{providedIn:"root",factory:function gJ(){return new qm}});let _J=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=Rn.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:qm,useValue:i}]}),s=new id(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new qm,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new JC(s,o);if(e instanceof bn){const l=new Cs(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new id(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Qt(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new vc;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,a=!s&&"center"!==e.horizontalPosition;return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Rn.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:JC,useValue:i},{provide:Lk,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(T(ar),T(ib),T(Rn),T(Jy),T(n,12),T(Fk))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),Bk=(()=>{class n extends _J{constructor(e,i,r,o,s,a){super(e,i,r,o,s,a),this.simpleSnackBarComponent=hJ,this.snackBarContainerComponent=mJ,this.handsetCssClass="mat-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(T(ar),T(ib),T(Rn),T(Jy),T(n,12),T(Fk))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:Nk}),n})(),Hk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})(),MJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Hk,ia,Pt,td,Hk,Pt]}),n})();const Vk=new pe("CdkAccordion");let kJ=0,RJ=(()=>{class n{constructor(e,i,r){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=w.EMPTY,this.closed=new Be,this.opened=new Be,this.destroyed=new Be,this.expandedChange=new Be,this.id="cdk-accordion-child-"+kJ++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=ct(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=ct(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(p(Vk,12),p(Bt),p(a1))},n.\u0275dir=he({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[rt([{provide:Vk,useValue:void 0}])]}),n})(),OJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})();const PJ=["body"];function LJ(n,t){}const NJ=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],FJ=["mat-expansion-panel-header","*","mat-action-row"];function BJ(n,t){1&n&&xe(0,"span",2),2&n&&y("@indicatorRotate",x()._getExpandedState())}const HJ=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],VJ=["mat-panel-title","mat-panel-description","*"],jk=new pe("MAT_ACCORDION"),Uk="225ms cubic-bezier(0.4,0.0,0.2,1)",qk={indicatorRotate:jr("indicatorRotate",[qn("collapsed, void",Lt({transform:"rotate(0deg)"})),qn("expanded",Lt({transform:"rotate(180deg)"})),ui("expanded <=> collapsed, void => collapsed",mi(Uk))]),bodyExpansion:jr("bodyExpansion",[qn("collapsed, void",Lt({height:"0px",visibility:"hidden"})),qn("expanded",Lt({height:"*",visibility:"visible"})),ui("expanded <=> collapsed, void => collapsed",mi(Uk))])},zk=new pe("MAT_EXPANSION_PANEL");let jJ=(()=>{class n{constructor(e,i){this._template=e,this._expansionPanel=i}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(zk,8))},n.\u0275dir=he({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),UJ=0;const Gk=new pe("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let ew=(()=>{class n extends RJ{constructor(e,i,r,o,s,a,l){super(e,i,r),this._viewContainerRef=o,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new Be,this.afterCollapse=new Be,this._inputChanges=new L,this._headerId="mat-expansion-panel-header-"+UJ++,this._bodyAnimationDone=new L,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(af((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=ct(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(ii(null),Sn(()=>this.expanded&&!this._portal),dn(1)).subscribe(()=>{this._portal=new Cs(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(p(jk,12),p(Bt),p(a1),p(En),p(ht),p(Un,8),p(Gk,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,r){if(1&e&&Vt(r,jJ,5),2&e){let o;me(o=ge())&&(i._lazyContent=o.first)}},viewQuery:function(e,i){if(1&e&&Oe(PJ,5),2&e){let r;me(r=ge())&&(i._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&&wt("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[rt([{provide:jk,useValue:void 0},{provide:zk,useExisting:n}]),De,kn],ngContentSelectors:FJ,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,i){1&e&&(Vn(NJ),Ht(0),g(1,"div",0,1),X("@bodyExpansion.done",function(o){return i._bodyAnimationDone.next(o)}),g(3,"div",2),Ht(4,1),V(5,LJ,0,0,"ng-template",3),v(),Ht(6,2),v()),2&e&&(m(1),y("@bodyExpansion",i._getExpandedState())("id",i.id),ot("aria-labelledby",i._headerId),m(4),y("cdkPortalOutlet",i._portal))},dependencies:[Es],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[qk.bodyExpansion]},changeDetection:0}),n})();class qJ{}const zJ=od(qJ);let Wk=(()=>{class n extends zJ{constructor(e,i,r,o,s,a,l){super(),this.panel=e,this._element=i,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=a,this._parentChangeSubscription=w.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(Sn(u=>!(!u.hideToggle&&!u.togglePosition))):gs;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Mn(e.opened,e.closed,c,e._inputChanges.pipe(Sn(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Sn(()=>e._containsFocus())).subscribe(()=>r.focusVia(i,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Di(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(p(ew,1),p(Je),p(_o),p(Bt),p(Gk,8),p(Un,8),io("tabindex"))},n.\u0275cmp=ze({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&X("click",function(){return i._toggle()})("keydown",function(o){return i._keydown(o)}),2&e&&(ot("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),Oi("height",i._getHeaderHeight()),wt("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[De],ngContentSelectors:VJ,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(Vn(HJ),g(0,"span",0),Ht(1),Ht(2,1),Ht(3,2),v(),V(4,BJ,1,1,"span",1)),2&e&&(wt("mat-content-hide-toggle",!i._showToggle()),m(4),y("ngIf",i._showToggle()))},dependencies:[_n],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[qk.indicatorRotate]},changeDetection:0}),n})(),$k=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),GJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Xi,Pt,OJ,za]}),n})();const WJ=["*",[["mat-card-footer"]]],$J=["*","mat-card-footer"],KJ=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],YJ=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let Kk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),Yk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n})(),QJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),n})(),Qk=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(p(Un,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,i){2&e&&wt("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:$J,decls:2,vars:0,template:function(e,i){1&e&&(Vn(WJ),Ht(0),Ht(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),n})(),XJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ze({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:YJ,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,i){1&e&&(Vn(KJ),Ht(0),g(1,"div",0),Ht(2,1),v(),Ht(3,2))},encapsulation:2,changeDetection:0}),n})(),ZJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt,Pt]}),n})(),ree=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt,Pt]}),n})(),oee=0;const see=Ds(class{}),tR="mat-badge-content";let aee=(()=>{class n extends see{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._ariaDescriber=r,this._renderer=o,this._animationMode=s,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=oee++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=ct(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=ct(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(tR),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){const i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${tR}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return n.\u0275fac=function(e){return new(e||n)(p(nt),p(Je),p(JU),p(oo),p(Un,8))},n.\u0275dir=he({type:n,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,i){2&e&&wt("mat-badge-overlap",i.overlap)("mat-badge-above",i.isAbove())("mat-badge-below",!i.isAbove())("mat-badge-before",!i.isAfter())("mat-badge-after",i.isAfter())("mat-badge-small","small"===i.size)("mat-badge-medium","medium"===i.size)("mat-badge-large","large"===i.size)("mat-badge-hidden",i.hidden||!i.content)("mat-badge-disabled",i.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[De]}),n})(),lee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[ob,Pt,Pt]}),n})();const cee=["input"],uee=["label"],dee=function(n){return{enterDuration:n}},hee=["*"],pee=new pe("mat-checkbox-default-options",{providedIn:"root",factory:nR});function nR(){return{color:"accent",clickAction:"check-indeterminate"}}let fee=0;const iR=nR(),mee={provide:rr,useExisting:Zt(()=>nw),multi:!0};class rR{}const gee=od(Wa(Vo(Ds(class{constructor(n){this._elementRef=n}}))));let _ee=(()=>{class n extends gee{constructor(e,i,r,o,s,a,l){super(i),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=a,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Be,this.indeterminateChange=new Be,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||iR,this.color=this.defaultColor=this._options.color||iR.color,this.tabIndex=parseInt(s)||0,this.id=this._uniqueId=`${e}${++fee}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=ct(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=ct(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=ct(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=ct(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){Vl()},n.\u0275dir=he({type:n,viewQuery:function(e,i){if(1&e&&(Oe(cee,5),Oe(uee,5),Oe(Ar,5)),2&e){let r;me(r=ge())&&(i._inputElement=r.first),me(r=ge())&&(i._labelElement=r.first),me(r=ge())&&(i.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[De]}),n})(),nw=(()=>{class n extends _ee{constructor(e,i,r,o,s,a,l){super("mat-checkbox-",e,i,o,s,a,l),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const i=new rR;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(_o),p(nt),io("tabindex"),p(Un,8),p(pee,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,i){2&e&&(Po("id",i.id),ot("tabindex",null)("aria-label",null)("aria-labelledby",null),wt("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[rt([mee]),De],ngContentSelectors:hee,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(Vn(),g(0,"label",0,1)(2,"span",2)(3,"input",3,4),X("change",function(o){return i._onInteractionEvent(o)})("click",function(o){return i._onInputClick(o)}),v(),g(5,"span",5),xe(6,"span",6),v(),xe(7,"span",7),g(8,"span",8),El(),g(9,"svg",9),xe(10,"path",10),v(),function Yw(){!function ZO(){Tt.lFrame.currentNamespace=null}()}(),xe(11,"span",11),v()(),g(12,"span",12,13),X("cdkObserveContent",function(){return i._onLabelTextChange()}),g(14,"span",14),j(15,"\xa0"),v(),Ht(16),v()()),2&e){const r=sn(1),o=sn(13);ot("for",i.inputId),m(2),wt("mat-checkbox-inner-container-no-side-margin",!o.textContent||!o.textContent.trim()),m(1),y("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),ot("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),m(2),y("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Wn(19,dee,"NoopAnimations"===i._animationMode?0:150))}},dependencies:[Ar,cf],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),oR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})(),bee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[ia,Pt,td,oR,Pt,oR]}),n})();const Cee=["*"],sR=new pe("MatChipRemove"),aR=new pe("MatChipAvatar"),lR=new pe("MatChipTrailingIcon");class wee{constructor(t){this._elementRef=t}}const Eee=od(Wa(Vo(wee),"primary"),-1);let Vc=(()=>{class n extends Eee{constructor(e,i,r,o,s,a,l,c){super(e),this._ngZone=i,this._changeDetectorRef=s,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new L,this._onBlur=new L,this.selectionChange=new Be,this.destroyed=new Be,this.removed=new Be,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new hI(this,i,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=o||{},this._animationsDisabled="NoopAnimations"===l,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const i=ct(e);i!==this._selected&&(this._selected=i,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=ct(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=ct(e)}get removable(){return this._removable}set removable(e){this._removable=ct(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",i=this._elementRef.nativeElement;i.hasAttribute(e)||i.tagName.toLowerCase()===e?i.classList.add(e):i.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(dn(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nt),p(Pn),p(pI,8),p(Bt),p(ht),p(Un,8),io("tabindex"))},n.\u0275dir=he({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,aR,5),Vt(r,lR,5),Vt(r,sR,5)),2&e){let o;me(o=ge())&&(i.avatar=o.first),me(o=ge())&&(i.trailingIcon=o.first),me(o=ge())&&(i.removeIcon=o.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&X("click",function(o){return i._handleClick(o)})("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(ot("tabindex",i.disabled?null:i.tabIndex)("role",i.role)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString())("aria-selected",i.ariaSelected),wt("mat-chip-selected",i.selected)("mat-chip-with-avatar",i.avatar)("mat-chip-with-trailing-icon",i.trailingIcon||i.removeIcon)("mat-chip-disabled",i.disabled)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[De]}),n})(),Wm=(()=>{class n{constructor(e,i){this._parentChip=e,"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}_handleClick(e){const i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(p(Vc),p(Je))},n.\u0275dir=he({type:n,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,i){1&e&&X("click",function(o){return i._handleClick(o)})},features:[rt([{provide:sR,useExisting:n}])]}),n})();const cR=new pe("mat-chips-default-options"),Aee=pb(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new L}});let Tee=0;class xee{constructor(t,e){this.source=t,this.value=e}}let $m=(()=>{class n extends Aee{constructor(e,i,r,o,s,a,l){super(a,o,s,l),this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new L,this._uid="mat-chip-list-"+Tee++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(c,u)=>c===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new Be,this.valueChange=new Be,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=ct(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(dy.required)??!1}set required(e){this._required=ct(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ct(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=ct(e),this._syncChipsState()}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return Mn(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return Mn(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return Mn(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return Mn(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new hf(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Qt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Qt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(ii(null),Qt(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new nl(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const i=e.target;i&&i.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,i)),this._sortValues();else{const r=this._selectValue(e,i);r&&i&&this._keyManager.setActiveItem(r)}}_selectValue(e,i=!0){const r=this.chips.find(o=>null!=o.value&&this._compareWith(o.value,e));return r&&(i?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(i=>{i!==e&&i.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let i=null;i=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.change.emit(new xee(this,i)),this.valueChange.emit(i),this._onChange(i),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(i=>{!this._selectionModel.isSelected(i)&&i.selected&&i.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let i=this.chips.toArray().indexOf(e.chip);this._isValidIndex(i)&&this._keyManager.updateActiveItem(i),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const i=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&i._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-chip"))return!0;i=i.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple,e.chipListSelectable=this._selectable})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(er,8),p(lc,8),p(cc,8),p(sd),p(mo,10))},n.\u0275cmp=ze({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,i,r){if(1&e&&Vt(r,Vc,5),2&e){let o;me(o=ge())&&(i.chips=o)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,i){1&e&&X("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(o){return i._keydown(o)}),2&e&&(Po("id",i._uid),ot("tabindex",i.disabled?null:i._tabIndex)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-multiselectable",i.multiple)("role",i.role)("aria-orientation",i.ariaOrientation),wt("mat-chip-list-disabled",i.disabled)("mat-chip-list-invalid",i.errorState)("mat-chip-list-required",i.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[rt([{provide:Nd,useExisting:n}]),De],ngContentSelectors:Cee,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,i){1&e&&(Vn(),g(0,"div",0),Ht(1),v())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),n})(),Iee=0,Km=(()=>{class n{constructor(e,i){this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Be,this.placeholder="",this.id="mat-chip-list-input-"+Iee++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=ct(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=ct(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!Di(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!Di(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(cR))},n.\u0275dir=he({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,i){1&e&&X("keydown",function(o){return i._keydown(o)})("keyup",function(o){return i._keyup(o)})("blur",function(){return i._blur()})("focus",function(){return i._focus()})("input",function(){return i._onInput()}),2&e&&(Po("id",i.id),ot("disabled",i.disabled||null)("placeholder",i.placeholder||null)("aria-invalid",i._chipList&&i._chipList.ngControl?i._chipList.ngControl.invalid:null)("aria-required",i._chipList&&i._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[kn]}),n})(),Mee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[sd,{provide:cR,useValue:{separatorKeyCodes:[13]}}],imports:[Pt]}),n})();function Ree(n){const{subscriber:t,counter:e,period:i}=n;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}function iw(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function jc(n,t){const e=t?"":"none";iw(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function uR(n,t,e){iw(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Ym(n,t){return t&&"none"!=t?n+" "+t:n}function dR(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function rw(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function ow(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function sw(n,t,e){const{top:i,bottom:r,left:o,right:s}=n;return e>=i&&e<=r&&t>=o&&t<=s}function Zd(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function hR(n,t,e,i){const{top:r,right:o,bottom:s,left:a,width:l,height:c}=n,u=l*t,d=c*t;return i>r-d&&ia-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:ow(e)})})}handleScroll(t){const e=Vr(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,l=r.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&Zd(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function fR(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),_=this._dropContainer;if(!f)return void this._endDragSequence(a);(!_||!_.isDragging()&&!_.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,d=this._activeTransform;d.x=c.x-u.x+this._passiveTransform.x,d.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new pR(i),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=ct(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>jc(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>Qn(i)),this._handles.forEach(i=>jc(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Qn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Qm),e.addEventListener("touchstart",this._pointerDown,vR),e.addEventListener("dragstart",this._nativeDragStart,Qm)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Qn(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),jc(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),jc(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Jd(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),uR(i,!1,aw),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=Jd(e),o=!r&&0!==e.button,s=this._rootElement,a=Vr(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?mf(e):ff(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||l||c)return;if(this._handles.length){const h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=ow(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){uR(this._rootElement,!0,aw),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),r=bR(s,this._document),this._previewRef=s,t.matchSize?CR(r,o):r.style.transform=Xm(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=fR(this._rootElement),CR(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return iw(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},aw),jc(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function Oee(n){const t=getComputedStyle(n),e=rw(t,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=rw(t,"transition-duration"),s=rw(t,"transition-delay");return dR(o[r])+dR(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||Vr(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=bR(this._placeholderRef,this._document)):i=fR(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,s=Jd(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-t.left+(s.pageX-o.left-a.left),y:o.top-t.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=Jd(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:s}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,d=a.bottom-(c-s);i=yR(i,a.left+o,a.right-(l-o)),r=yR(r,u,d)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,jc(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Qm),t.removeEventListener("touchstart",this._pointerDown,vR),t.removeEventListener("dragstart",this._nativeDragStart,Qm)}_applyRootElementTransform(t,e){const i=Xm(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Ym(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=Xm(t,e);this._preview.style.transform=Ym(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,l=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),s>0&&(t-=s)):t=0,r.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Jd(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Vr(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&Zd(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=nf(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Qn(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function Xm(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function yR(n,t,e){return Math.max(t,Math.min(e,n))}function Jd(n){return"t"===n.type[0]}function bR(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function CR(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=Xm(t.left,t.top)}function eh(n,t){return Math.max(0,Math.min(t,n))}class Bee{constructor(t,e){this._element=t,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(t){this.withItems(t)}sort(t,e,i,r){const o=this._itemPositions,s=this._getItemIndexFromPointerPosition(t,e,i,r);if(-1===s&&o.length>0)return null;const a="horizontal"===this.orientation,l=o.findIndex(U=>U.drag===t),c=o[s],d=c.clientRect,h=l>s?1:-1,f=this._getItemOffsetPx(o[l].clientRect,d,h),_=this._getSiblingOffsetPx(l,o,h),S=o.slice();return function Fee(n,t,e){const i=eh(t,n.length-1),r=eh(e,n.length-1);if(i===r)return;const o=n[i],s=r{if(S[Z]===U)return;const ve=U.drag===t,ee=ve?f:_,Te=ve?t.getPlaceholderElement():U.drag.getRootElement();U.offset+=ee,a?(Te.style.transform=Ym(`translate3d(${Math.round(U.offset)}px, 0, 0)`,U.initialTransform),Zd(U.clientRect,0,ee)):(Te.style.transform=Ym(`translate3d(0, ${Math.round(U.offset)}px, 0)`,U.initialTransform),Zd(U.clientRect,ee,0))}),this._previousSwap.overlaps=sw(d,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,s=this._activeDraggables,a=s.indexOf(t),l=t.getPlaceholderElement();let c=s[o];if(c===t&&(c=s[o+1]),!c&&(null==o||-1===o||o-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(o,0,t)}else Qn(this._element).appendChild(l),s.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{Zd(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:ow(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,s=e[t+-1*i];let a=o[r?"width":"height"]*i;if(s){const l=r?"left":"top",c=r?"right":"bottom";-1===i?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(r){const c=o?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new L,this.entered=new L,this.exited=new L,this.dropped=new L,this.sorted=new L,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new L,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function kee(n=0,t=fc){return(!ab(n)||n<0)&&(n=0),(!t||"function"!=typeof t.schedule)&&(t=fc),new b(e=>(e.add(t.schedule(Ree,n,{subscriber:e,counter:0,period:n})),e))}(0,V2).pipe(Qt(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=Qn(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new pR(i),this._sortStrategy=new Bee(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,s,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=Qn(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!hR(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||hR(s.clientRect,.05,t,e)&&([r,o]=function Vee(n,t,e,i){const r=DR(t,i),o=SR(t,e);let s=0,a=0;if(r){const l=n.scrollTop;1===r?l>0&&(s=1):n.scrollHeight-l>n.clientHeight&&(s=2)}if(o){const l=n.scrollLeft;1===o?l>0&&(a=1):n.scrollWidth-l>n.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,t,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=DR(l,e),o=SR(l,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=Qn(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=Qn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=Qn(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&sw(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!sw(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=Qn(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=nf(Qn(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function DR(n,t){const{top:e,bottom:i,height:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function SR(n,t){const{left:e,right:i,width:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const Zm=_s({passive:!1,capture:!0});let jee=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new L,this.pointerUp=new L,this.scroll=new L,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Zm)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Zm)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Zm}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:Zm}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new b(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),Mn(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(T(nt),T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Uee={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let qee=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=Uee){return new Nee(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Hee(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(nt),T(Ho),T(jee))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[qee],imports:[_c]}),n})();const Gee=["webInp"];function Wee(n,t){if(1&n&&(g(0,"p"),j(1),v()),2&n){const e=x(2);m(1),Qe(" ",e.globals.languageConfLocal.webIntLogout," ")}}function $ee(n,t){if(1&n){const e=je();g(0,"div",1)(1,"div",2)(2,"h1"),j(3),v()(),g(4,"div",3),X("click",function(){return oe(e),se(x().closeModal())}),xe(5,"div",4),v()(),g(6,"div",5)(7,"div",6),j(8),V(9,Wee,2,1,"p",7),v(),g(10,"div",8)(11,"input",9),X("ngModelChange",function(r){return oe(e),se(x().inputValue=r)})("keyup.enter",function(){return oe(e),se(x().confirmAction())}),v(),g(12,"input",10),X("click",function(){return oe(e),se(x().confirmAction())}),v()()()}if(2&n){const e=x();m(3),we(e.globals.languageConfLocal.webIntInputTitle),m(2),y("ngStyle",e.modCloseImage),m(3),Qe(" ",e.globals.languageConfLocal.webIntInputText," "),m(1),y("ngIf",e.connectionService.isLoggedIn),m(2),y("ngModel",e.inputValue)}}let Kee=(()=>{class n{constructor(e,i,r,o,s,a){this.messageService=e,this.sanitize=i,this.loader=r,this.connectionService=o,this.modal=s,this.globals=a,this.modCloseImage={background:"no-repeat url(assets/images/widget_settings.png)"},this.lcLocal=this.globals.languageConfLocal,this.inputValue="",null!=window.localStorage.getItem("webInt")&&(this.connectionService.webIntModalOpenRef=this.open.bind(this))}ngOnInit(){null!=window.localStorage.getItem("webInt")?(this.inputValue=window.localStorage.getItem("webInt"),this.inputValue=encodeURI(this.inputValue)):(this.globals.showSpinner(),setTimeout(()=>{this.globals.hideSpinner(),this.connectionService.webIntModalOpenRef=this.open.bind(this)},2e3))}open(){return this.modal.open(this.modalTemp,{panelClass:"modalOverlay",autoFocus:!1,maxHeight:"90%"})}confirmAction(){this.checkInput(this.sanitize.sanitizeInput(this.inputValue,4))}closeModal(){this.modal.closeAll()}checkInput(e){var i=this;return Ee(function*(){const r=i.globals.system;if(e)switch(e=encodeURI(e),e.toLowerCase().startsWith("https")||(e="https://"+e),e.endsWith("/")||(e+="/"),i.globals.setSystemFromURL(e),i.globals.system){case"gi":"gi"!==r&&"start"!==r&&(yield i.connectionService.logout(!0)),e=e.substring(0,e.indexOf(".nsf")+4),i.connectionService.setSystem("gi");break;case"ba":"ba"!==r&&"start"!==r&&(yield i.connectionService.logout(!0)),i.connectionService.setSystem("ba")}e!==i.globals.webInt?null==e||""===e?i.messageService.showError(i.globals.languageConfLocal.webIntInvalid):e.includes("http:")?i.messageService.showWarning(i.globals.languageConfLocal.webIntHttp):(yield i.connectionService.checkWebInt(e))&&("ba"===i.globals.system&&i.connectionService.reload(),i.connectionService.connect().subscribe(()=>{i.connectionService.reload()})):i.closeModal()})()}}return n.\u0275fac=function(e){return new(e||n)(p(en),p(Ld),p(Lc),p(Nn),p(As),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-webint-input"]],viewQuery:function(e,i){if(1&e&&Oe(Gee,7),2&e){let r;me(r=ge())&&(i.modalTemp=r.first)}},decls:2,vars:0,consts:[["webInp",""],[1,"modalHeader"],[1,"modalHeaderText"],["ngbAutoFocus","",1,"modalHeaderClose",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[1,"modalBody"],[1,"webIntText"],[4,"ngIf"],["id","webIntInputWrapper",1,"flex"],["matInput","","type","text","id","webIntInputField",3,"ngModel","ngModelChange","keyup.enter"],["type","button","id","webIntConfirmButton","value","OK",1,"buttonMiddle","noFloat",3,"click"]],template:function(e,i){1&e&&V(0,$ee,13,5,"ng-template",null,0,Tn)},dependencies:[_n,Qs,fo,Fo,ps,Yo],styles:[".webIntText[_ngcontent-%COMP%]{white-space:pre-line;font-weight:700;text-align:center}#webIntInputField[_ngcontent-%COMP%]{width:230px;outline:none;margin-right:10px;border:1px solid rgba(0,0,0,.2);flex-grow:1}#webIntConfirmButton[_ngcontent-%COMP%]{height:25px!important;top:-1px;position:relative}#webIntInputWrapper[_ngcontent-%COMP%]{text-align:center;margin-bottom:20px}"]}),n})();var di=(()=>(function(n){n.AcquireTokenByCode="acquireTokenByCode",n.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",n.AcquireTokenSilent="acquireTokenSilent",n.AcquireTokenSilentAsync="acquireTokenSilentAsync",n.AcquireTokenPopup="acquireTokenPopup",n.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",n.CryptoOptsSignJwt="cryptoOptsSignJwt",n.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",n.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",n.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",n.SsoSilent="ssoSilent",n.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",n.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",n.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",n.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",n.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",n.BrokerHandhshake="brokerHandshake",n.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",n.AcquireTokenByBroker="acquireTokenByBroker"}(di||(di={})),di))(),ul=(()=>(function(n){n[n.NotStarted=0]="NotStarted",n[n.InProgress=1]="InProgress",n[n.Completed=2]="Completed"}(ul||(ul={})),ul))(),Jm_missingKidError_code="missing_kid_error",Jm_missingKidError_desc="The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",Jm_missingAlgError_code="missing_alg_error",Jm_missingAlgError_desc="The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided.",AR=function(n){function t(e,i){var r=n.call(this,e,i)||this;return r.name="JoseHeaderError",Object.setPrototypeOf(r,t.prototype),r}return ur(t,n),t.createMissingKidError=function(){return new t(Jm_missingKidError_code,Jm_missingKidError_desc)},t.createMissingAlgError=function(){return new t(Jm_missingAlgError_code,Jm_missingAlgError_desc)},t}(ut),Yee=function(){function n(t){this.typ=t.typ,this.alg=t.alg,this.kid=t.kid}return n.getShrHeaderString=function(t){if(!t.kid)throw AR.createMissingKidError();if(!t.alg)throw AR.createMissingAlgError();var e=new n({typ:t.typ||Pf.Jwt,kid:t.kid,alg:t.alg});return JSON.stringify(e)},n}(),Ni=function(){function n(){}return n.decimalToHex=function(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e},n}(),TR=function(){function n(t){this.cryptoObj=t}return n.prototype.generateGuid=function(){try{var t=new Uint8Array(16);return this.cryptoObj.getRandomValues(t),t[6]|=64,t[6]&=79,t[8]|=128,t[8]&=191,Ni.decimalToHex(t[0])+Ni.decimalToHex(t[1])+Ni.decimalToHex(t[2])+Ni.decimalToHex(t[3])+"-"+Ni.decimalToHex(t[4])+Ni.decimalToHex(t[5])+"-"+Ni.decimalToHex(t[6])+Ni.decimalToHex(t[7])+"-"+Ni.decimalToHex(t[8])+Ni.decimalToHex(t[9])+"-"+Ni.decimalToHex(t[10])+Ni.decimalToHex(t[11])+Ni.decimalToHex(t[12])+Ni.decimalToHex(t[13])+Ni.decimalToHex(t[14])+Ni.decimalToHex(t[15])}catch{for(var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",i="0123456789abcdef",r=0,o=J.EMPTY_STRING,s=0;s<36;s++)"-"!==e[s]&&"4"!==e[s]&&(r=16*Math.random()|0),"x"===e[s]?o+=i[r]:"y"===e[s]?(r&=3,o+=i[r|=8]):o+=e[s];return o}},n.prototype.isGuid=function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)},n}(),Uc=function(){function n(){}return n.stringToUtf8Arr=function(t){for(var e,i=0,r=t.length,o=0;o>>6),s[a++]=128+(63&e)):e<65536?(s[a++]=224+(e>>>12),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e)):e<2097152?(s[a++]=240+(e>>>18),s[a++]=128+(e>>>12&63),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e)):e<67108864?(s[a++]=248+(e>>>24),s[a++]=128+(e>>>18&63),s[a++]=128+(e>>>12&63),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e)):(s[a++]=252+(e>>>30),s[a++]=128+(e>>>24&63),s[a++]=128+(e>>>18&63),s[a++]=128+(e>>>12&63),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e));return s},n.stringToArrayBuffer=function(t){for(var e=new ArrayBuffer(t.length),i=new Uint8Array(e),r=0;r251&&i<254&&o+5247&&i<252&&o+4239&&i<248&&o+3223&&i<240&&o+2191&&i<224&&o+1>>(r=a%3)&24),(2===r||t.length-a==1)&&(i+=String.fromCharCode(this.uint6ToB64(s>>>18&63),this.uint6ToB64(s>>>12&63),this.uint6ToB64(s>>>6&63),this.uint6ToB64(63&s)),s=0);return 0===e?i:i.substring(0,i.length-e)+(1===e?"=":"==")},n.prototype.uint6ToB64=function(t){return t<26?t+65:t<52?t+71:t<62?t-4:62===t?43:63===t?47:65},n}(),Qee=function(){function n(){}return n.prototype.decode=function(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Invalid base64 string")}var i=this.base64DecToArr(e);return Uc.utf8ArrToString(i)},n.prototype.base64DecToArr=function(t,e){for(var i=t.replace(/[^A-Za-z0-9\+\/]/g,J.EMPTY_STRING),r=i.length,o=e?Math.ceil((3*r+1>>>2)/e)*e:3*r+1>>>2,s=new Uint8Array(o),a=void 0,l=void 0,c=0,u=0,d=0;d>>(16>>>a&24)&255;c=0}return s},n.prototype.b64ToUint6=function(t){return t>64&&t<91?t-65:t>96&&t<123?t-71:t>47&&t<58?t+4:43===t?62:47===t?63:0},n}(),Zee=function(){function n(t){this.base64Encode=new xR,this.cryptoObj=t}return n.prototype.generateCodes=function(){return ke(this,void 0,void 0,function(){var t,e;return Re(this,function(i){switch(i.label){case 0:return t=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(t)];case 1:return e=i.sent(),[2,{verifier:t,challenge:e}]}})})},n.prototype.generateCodeVerifier=function(){try{var t=new Uint8Array(32);return this.cryptoObj.getRandomValues(t),this.base64Encode.urlEncodeArr(t)}catch(i){throw Ue.createPkceNotGeneratedError(i)}},n.prototype.generateCodeChallengeFromVerifier=function(t){return ke(this,void 0,void 0,function(){var e,i;return Re(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(t)];case 1:return e=r.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(e))];case 2:throw i=r.sent(),Ue.createPkceNotGeneratedError(i);case 3:return[2]}})})},n}(),lw="SHA-256",tte=new Uint8Array([1,0,1]),eg=function(){function n(t){if(this.logger=t,!this.hasCryptoAPI())throw Ue.createCryptoNotAvailableError("Browser crypto or msCrypto object not available.");this._keygenAlgorithmOptions={name:"RSASSA-PKCS1-v1_5",hash:lw,modulusLength:2048,publicExponent:tte}}return n.prototype.sha256Digest=function(t){return ke(this,void 0,void 0,function(){var e;return Re(this,function(i){return e=Uc.stringToUtf8Arr(t),[2,this.hasIECrypto()?this.getMSCryptoDigest(lw,e):this.getSubtleCryptoDigest(lw,e)]})})},n.prototype.getRandomValues=function(t){var e=window.msCrypto||window.crypto;if(!e.getRandomValues)throw Ue.createCryptoNotAvailableError("getRandomValues does not exist.");e.getRandomValues(t)},n.prototype.generateKeyPair=function(t,e){return ke(this,void 0,void 0,function(){return Re(this,function(i){return[2,this.hasIECrypto()?this.msCryptoGenerateKey(t,e):window.crypto.subtle.generateKey(this._keygenAlgorithmOptions,t,e)]})})},n.prototype.exportJwk=function(t){return ke(this,void 0,void 0,function(){return Re(this,function(e){return[2,this.hasIECrypto()?this.msCryptoExportJwk(t):window.crypto.subtle.exportKey(Lf,t)]})})},n.prototype.importJwk=function(t,e,i){return ke(this,void 0,void 0,function(){var r,o;return Re(this,function(s){return r=n.getJwkString(t),o=Uc.stringToArrayBuffer(r),[2,this.hasIECrypto()?this.msCryptoImportKey(o,e,i):window.crypto.subtle.importKey(Lf,t,this._keygenAlgorithmOptions,e,i)]})})},n.prototype.sign=function(t,e){return ke(this,void 0,void 0,function(){return Re(this,function(i){return[2,this.hasIECrypto()?this.msCryptoSign(t,e):window.crypto.subtle.sign(this._keygenAlgorithmOptions,t,e)]})})},n.prototype.hasCryptoAPI=function(){return this.hasIECrypto()||this.hasBrowserCrypto()},n.prototype.hasIECrypto=function(){return"msCrypto"in window},n.prototype.hasBrowserCrypto=function(){return"crypto"in window},n.prototype.getSubtleCryptoDigest=function(t,e){return ke(this,void 0,void 0,function(){return Re(this,function(i){return[2,window.crypto.subtle.digest(t,e)]})})},n.prototype.getMSCryptoDigest=function(t,e){return ke(this,void 0,void 0,function(){return Re(this,function(i){return[2,new Promise(function(r,o){var s=window.msCrypto.subtle.digest(t,e.buffer);s.addEventListener("complete",function(a){r(a.target.result)}),s.addEventListener("error",function(a){o(a)})})]})})},n.prototype.msCryptoGenerateKey=function(t,e){return ke(this,void 0,void 0,function(){var i=this;return Re(this,function(r){return[2,new Promise(function(o,s){var a=window.msCrypto.subtle.generateKey(i._keygenAlgorithmOptions,t,e);a.addEventListener("complete",function(l){o(l.target.result)}),a.addEventListener("error",function(l){s(l)})})]})})},n.prototype.msCryptoExportJwk=function(t){return ke(this,void 0,void 0,function(){return Re(this,function(e){return[2,new Promise(function(i,r){var o=window.msCrypto.subtle.exportKey(Lf,t);o.addEventListener("complete",function(s){var l=Uc.utf8ArrToString(new Uint8Array(s.target.result)).replace(/\r/g,J.EMPTY_STRING).replace(/\n/g,J.EMPTY_STRING).replace(/\t/g,J.EMPTY_STRING).split(" ").join(J.EMPTY_STRING).replace("\0",J.EMPTY_STRING);try{i(JSON.parse(l))}catch(c){r(c)}}),o.addEventListener("error",function(s){r(s)})})]})})},n.prototype.msCryptoImportKey=function(t,e,i){return ke(this,void 0,void 0,function(){var r=this;return Re(this,function(o){return[2,new Promise(function(s,a){var l=window.msCrypto.subtle.importKey(Lf,t,r._keygenAlgorithmOptions,e,i);l.addEventListener("complete",function(c){s(c.target.result)}),l.addEventListener("error",function(c){a(c)})})]})})},n.prototype.msCryptoSign=function(t,e){return ke(this,void 0,void 0,function(){var i=this;return Re(this,function(r){return[2,new Promise(function(o,s){var a=window.msCrypto.subtle.sign(i._keygenAlgorithmOptions,t,e);a.addEventListener("complete",function(l){o(l.target.result)}),a.addEventListener("error",function(l){s(l)})})]})})},n.getJwkString=function(t){return JSON.stringify(t,Object.keys(t).sort())},n}(),nte=function(){function n(){this.dbName=Ff,this.version=1,this.tableName="msal.db.keys",this.dbOpen=!1}return n.prototype.open=function(){return ke(this,void 0,void 0,function(){var t=this;return Re(this,function(e){return[2,new Promise(function(i,r){var o=window.indexedDB.open(t.dbName,t.version);o.addEventListener("upgradeneeded",function(s){s.target.result.createObjectStore(t.tableName)}),o.addEventListener("success",function(s){t.db=s.target.result,t.dbOpen=!0,i()}),o.addEventListener("error",function(){return r(Ue.createDatabaseUnavailableError())})})]})})},n.prototype.closeConnection=function(){var t=this.db;t&&this.dbOpen&&(t.close(),this.dbOpen=!1)},n.prototype.validateDbIsOpen=function(){return ke(this,void 0,void 0,function(){return Re(this,function(t){switch(t.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,t.sent()];case 2:return[2]}})})},n.prototype.getItem=function(t){return ke(this,void 0,void 0,function(){var e=this;return Re(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(r,o){if(!e.db)return o(Ue.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).get(t);l.addEventListener("success",function(c){var u=c;e.closeConnection(),r(u.target.result)}),l.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},n.prototype.setItem=function(t,e){return ke(this,void 0,void 0,function(){var i=this;return Re(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(o,s){if(!i.db)return s(Ue.createDatabaseNotOpenError());var c=i.db.transaction([i.tableName],"readwrite").objectStore(i.tableName).put(e,t);c.addEventListener("success",function(){i.closeConnection(),o()}),c.addEventListener("error",function(u){i.closeConnection(),s(u)})})]}})})},n.prototype.removeItem=function(t){return ke(this,void 0,void 0,function(){var e=this;return Re(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(r,o){if(!e.db)return o(Ue.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readwrite").objectStore(e.tableName).delete(t);l.addEventListener("success",function(){e.closeConnection(),r()}),l.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},n.prototype.getKeys=function(){return ke(this,void 0,void 0,function(){var t=this;return Re(this,function(e){switch(e.label){case 0:return[4,this.validateDbIsOpen()];case 1:return e.sent(),[2,new Promise(function(i,r){if(!t.db)return r(Ue.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).getAllKeys();a.addEventListener("success",function(l){var c=l;t.closeConnection(),i(c.target.result)}),a.addEventListener("error",function(l){t.closeConnection(),r(l)})})]}})})},n.prototype.containsKey=function(t){return ke(this,void 0,void 0,function(){var e=this;return Re(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(r,o){if(!e.db)return o(Ue.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).count(t);l.addEventListener("success",function(c){var u=c;e.closeConnection(),r(1===u.target.result)}),l.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},n.prototype.deleteDatabase=function(){return ke(this,void 0,void 0,function(){return Re(this,function(i){switch(i.label){case 0:return this.db&&this.dbOpen&&this.closeConnection(),[4,window.indexedDB.databases()];case 1:return i.sent().find(function(r){return r.name===Ff})?[2,new Promise(function(r,o){var s=window.indexedDB.deleteDatabase(Ff);s.addEventListener("success",function(){return r(!0)}),s.addEventListener("error",function(){return o(!1)})})]:[2,!0]}})})},n}(),cw=function(){function n(){this.cache=new Map}return n.prototype.getItem=function(t){return this.cache.get(t)||null},n.prototype.setItem=function(t,e){this.cache.set(t,e)},n.prototype.removeItem=function(t){this.cache.delete(t)},n.prototype.getKeys=function(){var t=[];return this.cache.forEach(function(e,i){t.push(i)}),t},n.prototype.containsKey=function(t){return this.cache.has(t)},n.prototype.clear=function(){this.cache.clear()},n}(),IR=function(){function n(t,e){this.inMemoryCache=new cw,this.indexedDBCache=new nte,this.logger=t,this.storeName=e}return n.prototype.handleDatabaseAccessError=function(t){if(!(t instanceof Ue&&t.errorCode===Me_databaseUnavailable_code))throw t;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")},n.prototype.getItem=function(t){return ke(this,void 0,void 0,function(){var e,i;return Re(this,function(r){switch(r.label){case 0:if(e=this.inMemoryCache.getItem(t))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(t)];case 2:return[2,r.sent()];case 3:return i=r.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2,e]}})})},n.prototype.setItem=function(t,e){return ke(this,void 0,void 0,function(){var i;return Re(this,function(r){switch(r.label){case 0:this.inMemoryCache.setItem(t,e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(t,e)];case 2:return r.sent(),[3,4];case 3:return i=r.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2]}})})},n.prototype.removeItem=function(t){return ke(this,void 0,void 0,function(){var e;return Re(this,function(i){switch(i.label){case 0:this.inMemoryCache.removeItem(t),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(t)];case 2:return i.sent(),[3,4];case 3:return e=i.sent(),this.handleDatabaseAccessError(e),[3,4];case 4:return[2]}})})},n.prototype.getKeys=function(){return ke(this,void 0,void 0,function(){var t,e;return Re(this,function(i){switch(i.label){case 0:if(0!==(t=this.inMemoryCache.getKeys()).length)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,i.sent()];case 3:return e=i.sent(),this.handleDatabaseAccessError(e),[3,4];case 4:return[2,t]}})})},n.prototype.containsKey=function(t){return ke(this,void 0,void 0,function(){var e,i;return Re(this,function(r){switch(r.label){case 0:if(e=this.inMemoryCache.containsKey(t))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(t)];case 2:return[2,r.sent()];case 3:return i=r.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2,e]}})})},n.prototype.clear=function(){return ke(this,void 0,void 0,function(){var t,e;return Re(this,function(i){switch(i.label){case 0:this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted"),this.logger.verbose("Deleting persistent keystore "+this.storeName),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.deleteDatabase()];case 2:return(t=i.sent())&&this.logger.verbose("Persistent keystore "+this.storeName+" deleted"),[2,t];case 3:return e=i.sent(),this.handleDatabaseAccessError(e),[2,!1];case 4:return[2]}})})},n}(),th=(()=>(function(n){n.asymmetricKeys="asymmetricKeys",n.symmetricKeys="symmetricKeys"}(th||(th={})),th))(),ite=function(){function n(t,e){this.logger=t,this.browserCrypto=new eg(this.logger),this.b64Encode=new xR,this.b64Decode=new Qee,this.guidGenerator=new TR(this.browserCrypto),this.pkceGenerator=new Zee(this.browserCrypto),this.cache={asymmetricKeys:new IR(this.logger,th.asymmetricKeys),symmetricKeys:new IR(this.logger,th.symmetricKeys)},this.performanceClient=e}return n.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},n.prototype.base64Encode=function(t){return this.b64Encode.encode(t)},n.prototype.base64Decode=function(t){return this.b64Decode.decode(t)},n.prototype.generatePkceCodes=function(){return ke(this,void 0,void 0,function(){return Re(this,function(t){return[2,this.pkceGenerator.generateCodes()]})})},n.prototype.getPublicKeyThumbprint=function(t){var e;return ke(this,void 0,void 0,function(){var i,r,o,a,l,c,u;return Re(this,function(d){switch(d.label){case 0:return i=null===(e=this.performanceClient)||void 0===e?void 0:e.startMeasurement(di.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(n.EXTRACTABLE,n.POP_KEY_USAGES)];case 1:return r=d.sent(),[4,this.browserCrypto.exportJwk(r.publicKey)];case 2:return o=d.sent(),a=eg.getJwkString({e:o.e,kty:o.kty,n:o.n}),[4,this.hashString(a)];case 3:return l=d.sent(),[4,this.browserCrypto.exportJwk(r.privateKey)];case 4:return c=d.sent(),[4,this.browserCrypto.importJwk(c,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(l,{privateKey:u,publicKey:r.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return d.sent(),i&&i.endMeasurement({success:!0}),[2,l]}})})},n.prototype.removeTokenBindingKey=function(t){return ke(this,void 0,void 0,function(){return Re(this,function(i){switch(i.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(t)];case 1:return i.sent(),[4,this.cache.asymmetricKeys.containsKey(t)];case 2:return[2,!i.sent()]}})})},n.prototype.clearKeystore=function(){return ke(this,void 0,void 0,function(){var t;return Re(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),this.logger.verbose("Deleting in-memory and persistent asymmetric key stores"),[4,this.cache.asymmetricKeys.clear()];case 1:return e.sent(),this.logger.verbose("Successfully deleted asymmetric key stores"),this.logger.verbose("Deleting in-memory and persistent symmetric key stores"),[4,this.cache.symmetricKeys.clear()];case 2:return e.sent(),this.logger.verbose("Successfully deleted symmetric key stores"),[2,!0];case 3:return(t=e.sent())instanceof Error?this.logger.error("Clearing keystore failed with error: "+t.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},n.prototype.signJwt=function(t,e,i){var r;return ke(this,void 0,void 0,function(){var o,s,a,l,c,u,d,h,f,_,S,U,Z;return Re(this,function(ve){switch(ve.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(di.CryptoOptsSignJwt,i),[4,this.cache.asymmetricKeys.getItem(e)];case 1:if(!(s=ve.sent()))throw Ue.createSigningKeyNotFoundInStorageError(e);return[4,this.browserCrypto.exportJwk(s.publicKey)];case 2:return a=ve.sent(),l=eg.getJwkString(a),c=this.b64Encode.urlEncode(JSON.stringify({kid:e})),u=Yee.getShrHeaderString({kid:c,alg:a.alg}),d=this.b64Encode.urlEncode(u),t.cnf={jwk:JSON.parse(l)},h=this.b64Encode.urlEncode(JSON.stringify(t)),_=Uc.stringToArrayBuffer(f=d+"."+h),[4,this.browserCrypto.sign(s.privateKey,_)];case 3:return S=ve.sent(),U=this.b64Encode.urlEncodeArr(new Uint8Array(S)),Z=f+"."+U,o&&o.endMeasurement({success:!0}),[2,Z]}})})},n.prototype.hashString=function(t){return ke(this,void 0,void 0,function(){var e,i;return Re(this,function(r){switch(r.label){case 0:return[4,this.browserCrypto.sha256Digest(t)];case 1:return e=r.sent(),i=new Uint8Array(e),[2,this.b64Encode.urlEncodeArr(i)]}})})},n.POP_KEY_USAGES=["sign","verify"],n.EXTRACTABLE=!0,n}(),_i=(()=>(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace"}(_i||(_i={})),_i))(),MR=function(){function n(t,e,i){this.level=_i.Info,this.localCallback=t.loggerCallback||function(){},this.piiLoggingEnabled=t.piiLoggingEnabled||!1,this.level="number"==typeof t.logLevel?t.logLevel:_i.Info,this.correlationId=t.correlationId||J.EMPTY_STRING,this.packageName=e||J.EMPTY_STRING,this.packageVersion=i||J.EMPTY_STRING}return n.prototype.clone=function(t,e,i){return new n({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:i||this.correlationId},t,e)},n.prototype.logMessage=function(t,e){if(!(e.logLevel>this.level||!this.piiLoggingEnabled&&e.containsPii)){var r,i=(new Date).toUTCString();r=$e.isEmpty(e.correlationId)?$e.isEmpty(this.correlationId)?"["+i+"]":"["+i+"] : ["+this.correlationId+"]":"["+i+"] : ["+e.correlationId+"]",this.executeCallback(e.logLevel,r+" : "+this.packageName+"@"+this.packageVersion+" : "+_i[e.logLevel]+" - "+t,e.containsPii||!1)}},n.prototype.executeCallback=function(t,e,i){this.localCallback&&this.localCallback(t,e,i)},n.prototype.error=function(t,e){this.logMessage(t,{logLevel:_i.Error,containsPii:!1,correlationId:e||J.EMPTY_STRING})},n.prototype.errorPii=function(t,e){this.logMessage(t,{logLevel:_i.Error,containsPii:!0,correlationId:e||J.EMPTY_STRING})},n.prototype.warning=function(t,e){this.logMessage(t,{logLevel:_i.Warning,containsPii:!1,correlationId:e||J.EMPTY_STRING})},n.prototype.warningPii=function(t,e){this.logMessage(t,{logLevel:_i.Warning,containsPii:!0,correlationId:e||J.EMPTY_STRING})},n.prototype.info=function(t,e){this.logMessage(t,{logLevel:_i.Info,containsPii:!1,correlationId:e||J.EMPTY_STRING})},n.prototype.infoPii=function(t,e){this.logMessage(t,{logLevel:_i.Info,containsPii:!0,correlationId:e||J.EMPTY_STRING})},n.prototype.verbose=function(t,e){this.logMessage(t,{logLevel:_i.Verbose,containsPii:!1,correlationId:e||J.EMPTY_STRING})},n.prototype.verbosePii=function(t,e){this.logMessage(t,{logLevel:_i.Verbose,containsPii:!0,correlationId:e||J.EMPTY_STRING})},n.prototype.trace=function(t,e){this.logMessage(t,{logLevel:_i.Trace,containsPii:!1,correlationId:e||J.EMPTY_STRING})},n.prototype.tracePii=function(t,e){this.logMessage(t,{logLevel:_i.Trace,containsPii:!0,correlationId:e||J.EMPTY_STRING})},n.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},n}(),kR=function(){function n(t,e,i,r,o,s){this.authority=e,this.libraryName=r,this.libraryVersion=o,this.applicationTelemetry=s,this.clientId=t,this.logger=i,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.measurementsById=new Map}return n.prototype.startMeasurement=function(t,e){var r,o,i=this,s=e||this.generateId();e||this.logger.info("PerformanceClient: No correlation id provided for "+t+", generating",s),this.logger.trace("PerformanceClient: Performance measurement started for "+t,s);var a=this.startPerformanceMeasuremeant(t,s);a.startMeasurement();var l={eventId:this.generateId(),status:ul.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,appName:null===(r=this.applicationTelemetry)||void 0===r?void 0:r.appName,appVersion:null===(o=this.applicationTelemetry)||void 0===o?void 0:o.appVersion,clientId:this.clientId,name:t,startTimeMs:Date.now(),correlationId:s};return this.cacheEventByCorrelationId(l),this.cacheMeasurement(l,a),{endMeasurement:function(c){var u=i.endMeasurement(zn(zn({},l),c));return u&&i.cacheEventByCorrelationId(u),u},flushMeasurement:function(){return i.flushMeasurements(l.name,l.correlationId)},discardMeasurement:function(){return i.discardMeasurements(l.correlationId)},measurement:a,event:l}},n.prototype.endMeasurement=function(t){var e=this.measurementsById.get(t.eventId);if(e){this.measurementsById.delete(t.eventId),e.endMeasurement();var i=e.flushMeasurement();if(null!==i)return this.logger.trace("PerformanceClient: Performance measurement ended for "+t.name+": "+i+" ms",t.correlationId),zn(zn({durationMs:Math.round(i)},t),{status:ul.Completed});this.logger.trace("PerformanceClient: Performance measurement not taken",t.correlationId)}else this.logger.trace("PerformanceClient: Measurement not found for "+t.eventId,t.correlationId);return null},n.prototype.cacheEventByCorrelationId=function(t){var e=this.eventsByCorrelationId.get(t.correlationId);e?(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" added/updated",t.correlationId),e.set(t.eventId,t)):(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" started",t.correlationId),this.eventsByCorrelationId.set(t.correlationId,(new Map).set(t.eventId,t)))},n.prototype.cacheMeasurement=function(t,e){this.measurementsById.set(t.eventId,e)},n.prototype.flushMeasurements=function(t,e){var i=this;this.logger.trace("PerformanceClient: Performance measurements flushed for "+t,e);var r=this.eventsByCorrelationId.get(e);if(r){this.discardMeasurements(e);var o=[];r.forEach(function(u){if(u.name!==t&&u.status!==ul.Completed){i.logger.trace("PerformanceClient: Incomplete submeasurement "+u.name+" found for "+t,e);var d=i.endMeasurement(u);d&&o.push(d)}o.push(u)});var s=o.sort(function(u,d){return u.startTimeMs-d.startTimeMs}),a=s.filter(function(u){return u.name===t&&u.status===ul.Completed});if(a.length>0){a.length>1&&this.logger.verbose("PerformanceClient: Multiple distinct top-level performance events found, using the first",e);var l=a[0];this.logger.verbose("PerformanceClient: Measurement found for "+t,e);var c=s.reduce(function(u,d){if(d.name!==t){i.logger.trace("PerformanceClient: Complete submeasurement found for "+d.name,e);var h=d.name+"DurationMs";u[h]?i.logger.verbose("PerformanceClient: Submeasurement for "+t+" already exists for "+d.name+", ignoring",e):u[h]=d.durationMs,d.accessTokenSize&&(u.accessTokenSize=d.accessTokenSize),d.idTokenSize&&(u.idTokenSize=d.idTokenSize)}return u},l);this.emitEvents([c],c.correlationId)}else this.logger.verbose("PerformanceClient: No completed top-level measurements found for "+t,e)}else this.logger.verbose("PerformanceClient: No measurements found",e)},n.prototype.discardMeasurements=function(t){this.logger.trace("PerformanceClient: Performance measurements discarded",t),this.eventsByCorrelationId.delete(t)},n.prototype.addPerformanceCallback=function(t){var e=this.generateId();return this.callbacks.set(e,t),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+e),e},n.prototype.removePerformanceCallback=function(t){var e=this.callbacks.delete(t);return this.logger.verbose(e?"PerformanceClient: Performance callback "+t+" removed.":"PerformanceClient: Performance callback "+t+" not removed."),e},n.prototype.emitEvents=function(t,e){var i=this;this.logger.verbose("PerformanceClient: Emitting performance events",e),this.callbacks.forEach(function(r,o){i.logger.trace("PerformanceClient: Emitting event to callback "+o,e),r.apply(null,[t])})},n}(),rte=function(){function n(){}return n.prototype.startMeasurement=function(){},n.prototype.endMeasurement=function(){},n.prototype.flushMeasurement=function(){return null},n}(),ote=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ur(t,n),t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new rte},t}(kR),tg={createNewGuid:function(){throw ut.createUnexpectedError("Crypto interface - createNewGuid() has not been implemented")},base64Decode:function(){throw ut.createUnexpectedError("Crypto interface - base64Decode() has not been implemented")},base64Encode:function(){throw ut.createUnexpectedError("Crypto interface - base64Encode() has not been implemented")},generatePkceCodes:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")})})},getPublicKeyThumbprint:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")})})},removeTokenBindingKey:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")})})},clearKeystore:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")})})},signJwt:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Crypto interface - signJwt() has not been implemented")})})},hashString:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Crypto interface - hashString() has not been implemented")})})}},RR=["interaction_required","consent_required","login_required"],ste=["message_only","additional_action","basic_action","user_password_expired","consent_required"],nh_noTokensFoundError_code="no_tokens_found",nh_noTokensFoundError_desc="No refresh token found in the cache. Please sign-in.",nh_native_account_unavailable_code="native_account_unavailable",nh_native_account_unavailable_desc="The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",Co=function(n){function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.name="InteractionRequiredAuthError",Object.setPrototypeOf(o,t.prototype),o}return ur(t,n),t.isInteractionRequiredError=function(e,i,r){var o=!!e&&RR.indexOf(e)>-1,s=!!r&&ste.indexOf(r)>-1,a=!!i&&RR.some(function(l){return i.indexOf(l)>-1});return o||a||s},t.createNoTokensFoundError=function(){return new t(nh_noTokensFoundError_code,nh_noTokensFoundError_desc)},t.createNativeAccountUnavailableError=function(){return new t(nh_native_account_unavailable_code,nh_native_account_unavailable_desc)},t}(ut),dl=function(n){function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.name="ServerError",Object.setPrototypeOf(o,t.prototype),o}return ur(t,n),t}(ut);function ng(n,t){if($e.isEmpty(n))throw it.createClientInfoEmptyError();try{var e=t.base64Decode(n);return JSON.parse(e)}catch(i){throw it.createClientInfoDecodingError(i)}}function qc(n){if($e.isEmpty(n))throw it.createClientInfoDecodingError("Home account ID was empty.");var t=n.split(dr.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?J.EMPTY_STRING:t[1]}}var Xo=(()=>(function(n){n[n.Default=0]="Default",n[n.Adfs=1]="Adfs"}(Xo||(Xo={})),Xo))(),Fi=function(){function n(){}return n.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(dr.CACHE_KEY_SEPARATOR).toLowerCase()},n.prototype.generateAccountKey=function(){return n.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},n.prototype.generateType=function(){switch(this.authorityType){case Uo.ADFS_ACCOUNT_TYPE:return qo.ADFS;case Uo.MSAV1_ACCOUNT_TYPE:return qo.MSA;case Uo.MSSTS_ACCOUNT_TYPE:return qo.MSSTS;case Uo.GENERIC_ACCOUNT_TYPE:return qo.GENERIC;default:throw it.createUnexpectedAccountTypeError()}},n.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},n.generateAccountCacheKey=function(t){return[t.homeAccountId,t.environment||J.EMPTY_STRING,t.tenantId||J.EMPTY_STRING].join(dr.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAccount=function(t,e,i,r,o,s,a,l){var c,u,d,h,f,_,S=new n;S.authorityType=Uo.MSSTS_ACCOUNT_TYPE,S.clientInfo=t,S.homeAccountId=e,S.nativeAccountId=l;var U=a||r&&r.getPreferredCache();if(!U)throw it.createInvalidCacheEnvironmentError();return S.environment=U,S.realm=(null===(c=i?.claims)||void 0===c?void 0:c.tid)||J.EMPTY_STRING,i&&(S.idTokenClaims=i.claims,S.localAccountId=(null===(u=i?.claims)||void 0===u?void 0:u.oid)||(null===(d=i?.claims)||void 0===d?void 0:d.sub)||J.EMPTY_STRING,S.username=(null===(h=i?.claims)||void 0===h?void 0:h.preferred_username)||(null!==(f=i?.claims)&&void 0!==f&&f.emails?i.claims.emails[0]:J.EMPTY_STRING),S.name=null===(_=i?.claims)||void 0===_?void 0:_.name),S.cloudGraphHostName=o,S.msGraphHost=s,S},n.createGenericAccount=function(t,e,i,r,o,s){var a,l,c,u,d=new n;d.authorityType=i&&i.authorityType===Xo.Adfs?Uo.ADFS_ACCOUNT_TYPE:Uo.GENERIC_ACCOUNT_TYPE,d.homeAccountId=t,d.realm=J.EMPTY_STRING;var h=s||i&&i.getPreferredCache();if(!h)throw it.createInvalidCacheEnvironmentError();return e&&(d.localAccountId=(null===(a=e?.claims)||void 0===a?void 0:a.oid)||(null===(l=e?.claims)||void 0===l?void 0:l.sub)||J.EMPTY_STRING,d.username=(null===(c=e?.claims)||void 0===c?void 0:c.upn)||J.EMPTY_STRING,d.name=(null===(u=e?.claims)||void 0===u?void 0:u.name)||J.EMPTY_STRING,d.idTokenClaims=e?.claims),d.environment=h,d.cloudGraphHostName=r,d.msGraphHost=o,d},n.generateHomeAccountId=function(t,e,i,r,o){var s,a=null!==(s=o?.claims)&&void 0!==s&&s.sub?o.claims.sub:J.EMPTY_STRING;if(e===Xo.Adfs)return a;if(t)try{var l=ng(t,r);if(!$e.isEmpty(l.uid)&&!$e.isEmpty(l.utid))return""+l.uid+dr.CLIENT_INFO_SEPARATOR+l.utid}catch{}return i.verbose("No client info in response"),a},n.isAccountEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("localAccountId")&&t.hasOwnProperty("username")&&t.hasOwnProperty("authorityType")},n.accountInfoIsEqual=function(t,e,i){if(!t||!e)return!1;var r=!0;if(i){var o=t.idTokenClaims||{},s=e.idTokenClaims||{};r=o.iat===s.iat&&o.nonce===s.nonce}return t.homeAccountId===e.homeAccountId&&t.localAccountId===e.localAccountId&&t.username===e.username&&t.tenantId===e.tenantId&&t.environment===e.environment&&t.nativeAccountId===e.nativeAccountId&&r},n}(),ih=function(){function n(){}return n.prototype.generateAccountId=function(){return n.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},n.prototype.generateCredentialId=function(){return n.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},n.prototype.generateTarget=function(){return n.generateTargetForCacheKey(this.target)},n.prototype.generateCredentialKey=function(){return n.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},n.prototype.generateType=function(){switch(this.credentialType){case qt.ID_TOKEN:return qo.ID_TOKEN;case qt.ACCESS_TOKEN:case qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return qo.ACCESS_TOKEN;case qt.REFRESH_TOKEN:return qo.REFRESH_TOKEN;default:throw it.createUnexpectedCredentialTypeError()}},n.getCredentialType=function(t){return-1!==t.indexOf(qt.ACCESS_TOKEN.toLowerCase())?-1!==t.indexOf(qt.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())?qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:qt.ACCESS_TOKEN:-1!==t.indexOf(qt.ID_TOKEN.toLowerCase())?qt.ID_TOKEN:-1!==t.indexOf(qt.REFRESH_TOKEN.toLowerCase())?qt.REFRESH_TOKEN:J.NOT_DEFINED},n.generateCredentialCacheKey=function(t,e,i,r,o,s,a,l,c){return[this.generateAccountIdForCacheKey(t,e),this.generateCredentialIdForCacheKey(i,r,o,a),this.generateTargetForCacheKey(s),this.generateClaimsHashForCacheKey(c),this.generateSchemeForCacheKey(l)].join(dr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateAccountIdForCacheKey=function(t,e){return[t,e].join(dr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateCredentialIdForCacheKey=function(t,e,i,r){return[t,t===qt.REFRESH_TOKEN&&r||e,i||J.EMPTY_STRING].join(dr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateTargetForCacheKey=function(t){return(t||J.EMPTY_STRING).toLowerCase()},n.generateClaimsHashForCacheKey=function(t){return(t||J.EMPTY_STRING).toLowerCase()},n.generateSchemeForCacheKey=function(t){return t&&t.toLowerCase()!==fn.BEARER.toLowerCase()?t.toLowerCase():J.EMPTY_STRING},n}(),fr=function(){function n(t){var e=this,i=t?$e.trimArrayEntries(Rf(t)):[],r=i?$e.removeEmptyStringsFromArray(i):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(function(o){return e.scopes.add(o)})}return n.fromString=function(t){return new n((t||J.EMPTY_STRING).split(" "))},n.prototype.validateInputScopes=function(t){if(!t||t.length<1)throw xn.createEmptyScopesArrayError()},n.prototype.containsScope=function(t){var i=new n(this.printScopesLowerCase().split(" "));return!$e.isEmpty(t)&&i.scopes.has(t.toLowerCase())},n.prototype.containsScopeSet=function(t){var e=this;return!(!t||t.scopes.size<=0)&&this.scopes.size>=t.scopes.size&&t.asArray().every(function(i){return e.containsScope(i)})},n.prototype.containsOnlyOIDCScopes=function(){var t=this,e=0;return LI.forEach(function(i){t.containsScope(i)&&(e+=1)}),this.scopes.size===e},n.prototype.appendScope=function(t){$e.isEmpty(t)||this.scopes.add(t.trim())},n.prototype.appendScopes=function(t){var e=this;try{t.forEach(function(i){return e.appendScope(i)})}catch(i){throw it.createAppendScopeSetError(i)}},n.prototype.removeScope=function(t){if($e.isEmpty(t))throw it.createRemoveEmptyScopeFromSetError(t);this.scopes.delete(t.trim())},n.prototype.removeOIDCScopes=function(){var t=this;LI.forEach(function(e){t.scopes.delete(e)})},n.prototype.unionScopeSets=function(t){if(!t)throw it.createEmptyInputScopeSetError();var e=new Set;return t.scopes.forEach(function(i){return e.add(i.toLowerCase())}),this.scopes.forEach(function(i){return e.add(i.toLowerCase())}),e},n.prototype.intersectingScopeSets=function(t){if(!t)throw it.createEmptyInputScopeSetError();t.containsOnlyOIDCScopes()||t.removeOIDCScopes();var e=this.unionScopeSets(t),i=t.getScopeCount(),r=this.getScopeCount();return e.size1)throw it.createMultipleMatchingAccountsInCacheError();return i[0]},n.prototype.readIdTokenFromCache=function(t,e){var r=this.getCredentialsFilteredBy({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:qt.ID_TOKEN,clientId:t,realm:e.tenantId}),o=Object.keys(r.idTokens).map(function(a){return r.idTokens[a]}),s=o.length;if(s<1)return null;if(s>1)throw it.createMultipleMatchingTokensInCacheError();return o[0]},n.prototype.readAccessTokenFromCache=function(t,e,i){var r=new fr(i.scopes||[]),o=i.authenticationScheme||fn.BEARER,s=o&&o.toLowerCase()!==fn.BEARER.toLowerCase()?qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:qt.ACCESS_TOKEN,a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:s,clientId:t,realm:e.tenantId,target:r.printScopesLowerCase(),tokenType:o,keyId:i.sshKid,requestedClaimsHash:i.requestedClaimsHash},l=this.getCredentialsFilteredBy(a),c=Object.keys(l.accessTokens).map(function(d){return l.accessTokens[d]}),u=c.length;if(u<1)return null;if(u>1)throw it.createMultipleMatchingTokensInCacheError();return c[0]},n.prototype.readRefreshTokenFromCache=function(t,e,i){var s=this.getCredentialsFilteredBy({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:qt.REFRESH_TOKEN,clientId:t,familyId:i?"1":void 0}),a=Object.keys(s.refreshTokens).map(function(c){return s.refreshTokens[c]});return a.length<1?null:a[0]},n.prototype.readAppMetadataFromCache=function(t,e){var r=this.getAppMetadataFilteredBy({environment:t,clientId:e}),o=Object.keys(r).map(function(a){return r[a]}),s=o.length;if(s<1)return null;if(s>1)throw it.createMultipleMatchingAppMetadataInCacheError();return o[0]},n.prototype.isAppMetadataFOCI=function(t,e){var i=this.readAppMetadataFromCache(t,e);return!(!i||"1"!==i.familyId)},n.prototype.matchHomeAccountId=function(t,e){return!(!t.homeAccountId||e!==t.homeAccountId)},n.prototype.matchUserAssertionHash=function(t,e){return!(!t.userAssertionHash||e!==t.userAssertionHash)},n.prototype.matchEnvironment=function(t,e){var i=this.getAuthorityMetadataByAlias(e);return!!(i&&i.aliases.indexOf(t.environment)>-1)},n.prototype.matchCredentialType=function(t,e){return t.credentialType&&e.toLowerCase()===t.credentialType.toLowerCase()},n.prototype.matchClientId=function(t,e){return!(!t.clientId||e!==t.clientId)},n.prototype.matchFamilyId=function(t,e){return!(!t.familyId||e!==t.familyId)},n.prototype.matchRealm=function(t,e){return!(!t.realm||e!==t.realm)},n.prototype.matchNativeAccountId=function(t,e){return!(!t.nativeAccountId||e!==t.nativeAccountId)},n.prototype.matchTarget=function(t,e){if(t.credentialType!==qt.ACCESS_TOKEN&&t.credentialType!==qt.ACCESS_TOKEN_WITH_AUTH_SCHEME||!t.target)return!1;var r=fr.fromString(t.target),o=fr.fromString(e);return o.containsOnlyOIDCScopes()?o.removeScope(J.OFFLINE_ACCESS_SCOPE):o.removeOIDCScopes(),r.containsScopeSet(o)},n.prototype.matchTokenType=function(t,e){return!(!t.tokenType||t.tokenType!==e)},n.prototype.matchKeyId=function(t,e){return!(!t.keyId||t.keyId!==e)},n.prototype.isAppMetadata=function(t){return-1!==t.indexOf(Tb)},n.prototype.isAuthorityMetadata=function(t){return-1!==t.indexOf("authority-metadata")},n.prototype.generateAuthorityMetadataCacheKey=function(t){return"authority-metadata-"+this.clientId+"-"+t},n.prototype.getSpecificCredential=function(t,e){switch(e){case qt.ID_TOKEN:return this.getIdTokenCredential(t);case qt.ACCESS_TOKEN:case qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(t);case qt.REFRESH_TOKEN:return this.getRefreshTokenCredential(t);default:return null}},n.toObject=function(t,e){for(var i in e)t[i]=e[i];return t},n}(),ate=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ur(t,n),t.prototype.setAccount=function(){throw ut.createUnexpectedError("Storage interface - setAccount() has not been implemented for the cacheStorage interface.")},t.prototype.getAccount=function(){throw ut.createUnexpectedError("Storage interface - getAccount() has not been implemented for the cacheStorage interface.")},t.prototype.setIdTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getIdTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAccessTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getAccessTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setRefreshTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getRefreshTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAppMetadata=function(){throw ut.createUnexpectedError("Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAppMetadata=function(){throw ut.createUnexpectedError("Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.setServerTelemetry=function(){throw ut.createUnexpectedError("Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.getServerTelemetry=function(){throw ut.createUnexpectedError("Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.setAuthorityMetadata=function(){throw ut.createUnexpectedError("Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadata=function(){throw ut.createUnexpectedError("Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadataKeys=function(){throw ut.createUnexpectedError("Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.")},t.prototype.setThrottlingCache=function(){throw ut.createUnexpectedError("Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.getThrottlingCache=function(){throw ut.createUnexpectedError("Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.removeItem=function(){throw ut.createUnexpectedError("Storage interface - removeItem() has not been implemented for the cacheStorage interface.")},t.prototype.containsKey=function(){throw ut.createUnexpectedError("Storage interface - containsKey() has not been implemented for the cacheStorage interface.")},t.prototype.getKeys=function(){throw ut.createUnexpectedError("Storage interface - getKeys() has not been implemented for the cacheStorage interface.")},t.prototype.clear=function(){return Dt(this,void 0,void 0,function(){return St(this,function(i){throw ut.createUnexpectedError("Storage interface - clear() has not been implemented for the cacheStorage interface.")})})},t.prototype.updateCredentialCacheKey=function(){throw ut.createUnexpectedError("Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.")},t}(wo),rh=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ur(t,n),t.createIdTokenEntity=function(e,i,r,o,s){var a=new t;return a.credentialType=qt.ID_TOKEN,a.homeAccountId=e,a.environment=i,a.clientId=o,a.secret=r,a.realm=s,a},t.isIdTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===qt.ID_TOKEN},t}(ih),Qr=function(){function n(){}return n.nowSeconds=function(){return Math.round((new Date).getTime()/1e3)},n.isTokenExpired=function(t,e){var i=Number(t)||0;return n.nowSeconds()+e>i},n.wasClockTurnedBack=function(t){return Number(t)>n.nowSeconds()},n.delay=function(t,e){return new Promise(function(i){return setTimeout(function(){return i(e)},t)})},n}(),oh=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ur(t,n),t.createAccessTokenEntity=function(e,i,r,o,s,a,l,c,u,d,h,f,_,S,U){var Z,ve,ee=new t;ee.homeAccountId=e,ee.credentialType=qt.ACCESS_TOKEN,ee.secret=r;var Te=Qr.nowSeconds();if(ee.cachedAt=Te.toString(),ee.expiresOn=l.toString(),ee.extendedExpiresOn=c.toString(),d&&(ee.refreshOn=d.toString()),ee.environment=i,ee.clientId=o,ee.realm=s,ee.target=a,ee.userAssertionHash=f,ee.tokenType=$e.isEmpty(h)?fn.BEARER:h,S&&(ee.requestedClaims=S,ee.requestedClaimsHash=U),(null===(Z=ee.tokenType)||void 0===Z?void 0:Z.toLowerCase())!==fn.BEARER.toLowerCase())switch(ee.credentialType=qt.ACCESS_TOKEN_WITH_AUTH_SCHEME,ee.tokenType){case fn.POP:var et=ma.extractTokenClaims(r,u);if(null===(ve=et?.cnf)||void 0===ve||!ve.kid)throw it.createTokenClaimsRequiredError();ee.keyId=et.cnf.kid;break;case fn.SSH:ee.keyId=_}return ee},t.isAccessTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.hasOwnProperty("target")&&(e.credentialType===qt.ACCESS_TOKEN||e.credentialType===qt.ACCESS_TOKEN_WITH_AUTH_SCHEME)},t}(ih),uw=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ur(t,n),t.createRefreshTokenEntity=function(e,i,r,o,s,a){var l=new t;return l.clientId=o,l.credentialType=qt.REFRESH_TOKEN,l.environment=i,l.homeAccountId=e,l.secret=r,l.userAssertionHash=a,s&&(l.familyId=s),l},t.isRefreshTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===qt.REFRESH_TOKEN},t}(ih),dw=function(){function n(){}return n.prototype.generateAppMetadataKey=function(){return n.generateAppMetadataCacheKey(this.environment,this.clientId)},n.generateAppMetadataCacheKey=function(t,e){return[Tb,t,e].join(dr.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAppMetadataEntity=function(t,e,i){var r=new n;return r.clientId=t,r.environment=e,i&&(r.familyId=i),r},n.isAppMetadataEntity=function(t,e){return!!e&&0===t.indexOf(Tb)&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment")},n}(),ig=function(){function n(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return n.isServerTelemetryEntity=function(t,e){var i=0===t.indexOf(Si.CACHE_KEY),r=!0;return e&&(r=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),i&&r},n}(),hw=function(){function n(){this.expiresAt=Qr.nowSeconds()+86400}return n.prototype.updateCloudDiscoveryMetadata=function(t,e){this.aliases=t.aliases,this.preferred_cache=t.preferred_cache,this.preferred_network=t.preferred_network,this.aliasesFromNetwork=e},n.prototype.updateEndpointMetadata=function(t,e){this.authorization_endpoint=t.authorization_endpoint,this.token_endpoint=t.token_endpoint,this.end_session_endpoint=t.end_session_endpoint,this.issuer=t.issuer,this.endpointsFromNetwork=e,this.jwks_uri=t.jwks_uri},n.prototype.updateCanonicalAuthority=function(t){this.canonical_authority=t},n.prototype.resetExpiresAt=function(){this.expiresAt=Qr.nowSeconds()+86400},n.prototype.isExpired=function(){return this.expiresAt<=Qr.nowSeconds()},n.isAuthorityMetadataEntity=function(t,e){return!!e&&0===t.indexOf("authority-metadata")&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri")},n}(),OR=function(){function n(){}return n.isThrottlingEntity=function(t,e){var i=!1;t&&(i=0===t.indexOf("throttling"));var r=!0;return e&&(r=e.hasOwnProperty("throttleTime")),i&&r},n}(),Fs=function(){function n(){}return n.setRequestState=function(t,e,i){var r=n.generateLibraryState(t,i);return $e.isEmpty(e)?r:""+r+J.RESOURCE_DELIM+e},n.generateLibraryState=function(t,e){if(!t)throw it.createNoCryptoObjectError("generateLibraryState");var i={id:t.createNewGuid()};e&&(i.meta=e);var r=JSON.stringify(i);return t.base64Encode(r)},n.parseRequestState=function(t,e){if(!t)throw it.createNoCryptoObjectError("parseRequestState");if($e.isEmpty(e))throw it.createInvalidStateError(e,"Null, undefined or empty state");try{var i=e.split(J.RESOURCE_DELIM),r=i[0],o=i.length>1?i.slice(1).join(J.RESOURCE_DELIM):J.EMPTY_STRING,s=t.base64Decode(r),a=JSON.parse(s);return{userRequestState:$e.isEmpty(o)?J.EMPTY_STRING:o,libraryState:a}}catch(l){throw it.createInvalidStateError(e,l)}},n}(),mr=(()=>(function(n){n.HOME_ACCOUNT_ID="home_account_id",n.UPN="UPN"}(mr||(mr={})),mr))(),PR=function(){function n(t){this.validateWindowStorage(t),this.windowStorage=window[t]}return n.prototype.validateWindowStorage=function(t){if(t!==Ai.LocalStorage&&t!==Ai.SessionStorage)throw Hf.createStorageNotSupportedError(t);if(!window[t])throw Hf.createStorageNotSupportedError(t)},n.prototype.getItem=function(t){return this.windowStorage.getItem(t)},n.prototype.setItem=function(t,e){this.windowStorage.setItem(t,e)},n.prototype.removeItem=function(t){this.windowStorage.removeItem(t)},n.prototype.getKeys=function(){return Object.keys(this.windowStorage)},n.prototype.containsKey=function(t){return this.windowStorage.hasOwnProperty(t)},n}(),LR=function(){function n(){}return n.extractBrowserRequestState=function(t,e){if($e.isEmpty(e))return null;try{return Fs.parseRequestState(t,e).libraryState.meta}catch(r){throw it.createInvalidStateError(e,r)}},n.parseServerResponseFromHash=function(t){if(!t)return{};var e=new nn(t);return nn.getDeserializedHash(e.getHash())},n}(),pw=function(n){function t(e,i,r,o){var s=n.call(this,e,r)||this;return s.COOKIE_LIFE_MULTIPLIER=864e5,s.cacheConfig=i,s.logger=o,s.internalStorage=new cw,s.browserStorage=s.setupBrowserStorage(s.cacheConfig.cacheLocation),s.temporaryCacheStorage=s.setupTemporaryCacheStorage(s.cacheConfig.cacheLocation),s.migrateCacheEntries(),s}return Ti(t,n),t.prototype.setupBrowserStorage=function(e){switch(e){case Ai.LocalStorage:case Ai.SessionStorage:try{return new PR(e)}catch(i){this.logger.verbose(i);break}}return this.cacheConfig.cacheLocation=Ai.MemoryStorage,new cw},t.prototype.setupTemporaryCacheStorage=function(e){switch(e){case Ai.LocalStorage:case Ai.SessionStorage:try{return new PR(Ai.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,r=J.CACHE_PREFIX+"."+ri.CLIENT_INFO,o=J.CACHE_PREFIX+"."+ri.ERROR,s=J.CACHE_PREFIX+"."+ri.ERROR_DESC,d=[this.browserStorage.getItem(J.CACHE_PREFIX+"."+ri.ID_TOKEN),this.browserStorage.getItem(r),this.browserStorage.getItem(o),this.browserStorage.getItem(s)];[ri.ID_TOKEN,ri.CLIENT_INFO,ri.ERROR,ri.ERROR_DESC].forEach(function(f,_){return e.migrateCacheEntry(f,d[_])})},t.prototype.migrateCacheEntry=function(e,i){i&&this.setTemporaryCache(e,i,!0)},t.prototype.validateAndParseJson=function(e){try{var i=JSON.parse(e);return i&&"object"==typeof i?i:null}catch{return null}},t.prototype.getItem=function(e){return this.browserStorage.getItem(e)},t.prototype.setItem=function(e,i){this.browserStorage.setItem(e,i)},t.prototype.getAccount=function(e){var i=this.getItem(e);if(!i)return null;var r=this.validateAndParseJson(i);return r&&Fi.isAccountEntity(r)?wo.toObject(new Fi,r):null},t.prototype.setAccount=function(e){this.logger.trace("BrowserCacheManager.setAccount called");var i=e.generateAccountKey();this.setItem(i,JSON.stringify(e))},t.prototype.getIdTokenCredential=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&rh.isIdTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),wo.toObject(new rh,r)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null)},t.prototype.setIdTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var i=e.generateCredentialKey();this.setItem(i,JSON.stringify(e))},t.prototype.getAccessTokenCredential=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&oh.isAccessTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),wo.toObject(new oh,r)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null)},t.prototype.setAccessTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var i=e.generateCredentialKey();this.setItem(i,JSON.stringify(e))},t.prototype.getRefreshTokenCredential=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&uw.isRefreshTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),wo.toObject(new uw,r)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null)},t.prototype.setRefreshTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var i=e.generateCredentialKey();this.setItem(i,JSON.stringify(e))},t.prototype.getAppMetadata=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&dw.isAppMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),wo.toObject(new dw,r)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},t.prototype.setAppMetadata=function(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");var i=e.generateAppMetadataKey();this.setItem(i,JSON.stringify(e))},t.prototype.getServerTelemetry=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&ig.isServerTelemetryEntity(e,r)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),wo.toObject(new ig,r)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},t.prototype.setServerTelemetry=function(e,i){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(i))},t.prototype.getAuthorityMetadata=function(e){var i=this.internalStorage.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&hw.isAuthorityMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),wo.toObject(new hw,r)):null},t.prototype.getAuthorityMetadataKeys=function(){var e=this;return this.internalStorage.getKeys().filter(function(r){return e.isAuthorityMetadata(r)})},t.prototype.setWrapperMetadata=function(e,i){this.internalStorage.setItem(Xa.WRAPPER_SKU,e),this.internalStorage.setItem(Xa.WRAPPER_VER,i)},t.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(Xa.WRAPPER_SKU)||J.EMPTY_STRING,this.internalStorage.getItem(Xa.WRAPPER_VER)||J.EMPTY_STRING]},t.prototype.setAuthorityMetadata=function(e,i){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(i))},t.prototype.getActiveAccount=function(){var e=this.generateCacheKey(ri.ACTIVE_ACCOUNT_FILTERS),i=this.getItem(e);if(!i){this.logger.trace("No active account filters cache schema found, looking for legacy schema");var r=this.generateCacheKey(ri.ACTIVE_ACCOUNT),o=this.getItem(r);if(!o)return this.logger.trace("No active account found"),null;var s=this.getAccountInfoByFilter({localAccountId:o})[0]||null;return s?(this.logger.trace("Legacy active account cache schema found"),this.logger.trace("Adding active account filters cache schema"),this.setActiveAccount(s),s):null}var a=this.validateAndParseJson(i);return a?(this.logger.trace("Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:a.homeAccountId,localAccountId:a.localAccountId})[0]||null):(this.logger.trace("No active account found"),null)},t.prototype.setActiveAccount=function(e){var i=this.generateCacheKey(ri.ACTIVE_ACCOUNT_FILTERS),r=this.generateCacheKey(ri.ACTIVE_ACCOUNT);e?(this.logger.verbose("setActiveAccount: Active account set"),this.browserStorage.setItem(i,JSON.stringify({homeAccountId:e.homeAccountId,localAccountId:e.localAccountId})),this.browserStorage.setItem(r,e.localAccountId)):(this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(i),this.browserStorage.removeItem(r))},t.prototype.getAccountInfoByFilter=function(e){return this.getAllAccounts().filter(function(r){return!(e.username&&e.username.toLowerCase()!==r.username.toLowerCase()||e.homeAccountId&&e.homeAccountId!==r.homeAccountId||e.localAccountId&&e.localAccountId!==r.localAccountId||e.tenantId&&e.tenantId!==r.tenantId||e.environment&&e.environment!==r.environment)})},t.prototype.getAccountInfoByHints=function(e,i){var r=this.getAllAccounts().filter(function(o){return i?i===(o.idTokenClaims&&o.idTokenClaims.sid):!!e&&e===o.username});if(1===r.length)return r[0];if(r.length>1)throw it.createMultipleMatchingAccountsInCacheError();return null},t.prototype.getThrottlingCache=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&OR.isThrottlingEntity(e,r)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),wo.toObject(new OR,r)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},t.prototype.setThrottlingCache=function(e,i){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(i))},t.prototype.getTemporaryCache=function(e,i){var r=i?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){var o=this.getItemCookie(r);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}var s=this.temporaryCacheStorage.getItem(r);if(!s){if(this.cacheConfig.cacheLocation===Ai.LocalStorage){var a=this.browserStorage.getItem(r);if(a)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),a}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),s},t.prototype.setTemporaryCache=function(e,i,r){var o=r?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(o,i),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(o,i))},t.prototype.removeItem=function(e){return this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e)),!0},t.prototype.containsKey=function(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)},t.prototype.getKeys=function(){return HI(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return ke(this,void 0,void 0,function(){var e=this;return Re(this,function(i){switch(i.label){case 0:return[4,this.removeAllAccounts()];case 1:return i.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(r){(e.browserStorage.containsKey(r)||e.temporaryCacheStorage.containsKey(r))&&(-1!==r.indexOf(J.CACHE_PREFIX)||-1!==r.indexOf(e.clientId))&&e.removeItem(r)}),this.internalStorage.clear(),[2]}})})},t.prototype.setItemCookie=function(e,i,r){var o=encodeURIComponent(e)+"="+encodeURIComponent(i)+";path=/;SameSite=Lax;";r&&(o+="expires="+this.getCookieExpirationTime(r)+";"),this.cacheConfig.secureCookies&&(o+="Secure;"),document.cookie=o},t.prototype.getItemCookie=function(e){for(var i=encodeURIComponent(e)+"=",r=document.cookie.split(";"),o=0;o(function(n){n.AAD="AAD",n.OIDC="OIDC"}(sh||(sh={})),sh))(),zc=(()=>(function(n){n[n.None=0]="None",n.AzurePublic="https://login.microsoftonline.com",n.AzurePpe="https://login.windows-ppe.net",n.AzureChina="https://login.chinacloudapi.cn",n.AzureGermany="https://login.microsoftonline.de",n.AzureUsGovernment="https://login.microsoftonline.us"}(zc||(zc={})),zc))(),FR={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1,proxyUrl:J.EMPTY_STRING},dte={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:_i.Info,correlationId:J.EMPTY_STRING},hte={sendGetRequestAsync:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented")})})},sendPostRequestAsync:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented")})})}},pte={sku:J.SKU,version:"7.3.0",cpu:J.EMPTY_STRING,os:J.EMPTY_STRING},fte={clientSecret:J.EMPTY_STRING,clientAssertion:void 0},mte={azureCloudInstance:zc.None,tenant:""+J.DEFAULT_COMMON_TENANT},gte={application:{appName:"",appVersion:""}};function vte(n){return zn({clientCapabilities:[],azureCloudOptions:mte,skipAuthorityMetadataCache:!1},n)}var yte={sendGetRequestAsync:function(){return Promise.reject(ut.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented for the Network interface."))},sendPostRequestAsync:function(){return Promise.reject(ut.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented for the Network interface."))}},bte=function(){function n(){}return n.prototype.navigateInternal=function(t,e){return n.defaultNavigateWindow(t,e)},n.prototype.navigateExternal=function(t,e){return n.defaultNavigateWindow(t,e)},n.defaultNavigateWindow=function(t,e){return e.noHistory?window.location.replace(t):window.location.assign(t),new Promise(function(i){setTimeout(function(){i(!0)},e.timeout)})},n}(),mw="@azure/msal-browser",ah="2.28.1",Ste=function(){function n(t,e){this.eventCallbacks=new Map,this.logger=t,this.browserCrypto=e,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return n.prototype.addEventCallback=function(t){if(typeof window<"u"){var e=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(e,t),this.logger.verbose("Event callback registered with id: "+e),e}return null},n.prototype.removeEventCallback=function(t){this.eventCallbacks.delete(t),this.logger.verbose("Event callback "+t+" removed.")},n.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},n.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},n.prototype.emitEvent=function(t,e,i,r){var o=this;if(typeof window<"u"){var s={eventType:t,interactionType:e||null,payload:i||null,error:r||null,timestamp:Date.now()};this.logger.info("Emitting event: "+t),this.eventCallbacks.forEach(function(a,l){o.logger.verbose("Emitting event to callback "+l+": "+t),a.apply(null,[s])})}},n.prototype.handleAccountCacheChange=function(t){try{var e=t.newValue||t.oldValue;if(!e)return;var i=JSON.parse(e);if("object"!=typeof i||!Fi.isAccountEntity(i))return;var o=wo.toObject(new Fi,i).getAccountInfo();!t.oldValue&&t.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(st.ACCOUNT_ADDED,void 0,o)):!t.newValue&&t.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(st.ACCOUNT_REMOVED,void 0,o))}catch{return}},n}(),rg=function(){function n(){}return n.generateThrottlingStorageKey=function(t){return"throttling."+JSON.stringify(t)},n.preProcess=function(t,e){var i,r=n.generateThrottlingStorageKey(e),o=t.getThrottlingCache(r);if(o){if(o.throttleTime=500&&t.status<600},n.checkResponseForRetryAfter=function(t){return!!t.headers&&t.headers.hasOwnProperty(jo.RETRY_AFTER)&&(t.status<200||t.status>=300)},n.calculateThrottleTime=function(t){var e=t<=0?0:t,i=Date.now()/1e3;return Math.floor(1e3*Math.min(i+(e||60),i+3600))},n.removeThrottle=function(t,e,i,r){var s=this.generateThrottlingStorageKey({clientId:e,authority:i.authority,scopes:i.scopes,homeAccountIdentifier:r,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid});return t.removeItem(s,oa.THROTTLING)},n}(),Ate=function(){function n(t,e){this.networkClient=t,this.cacheManager=e}return n.prototype.sendPostRequest=function(t,e,i){return Dt(this,void 0,void 0,function(){var r,o;return St(this,function(s){switch(s.label){case 0:rg.preProcess(this.cacheManager,t),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(e,i)];case 2:return r=s.sent(),[3,4];case 3:throw(o=s.sent())instanceof ut?o:it.createNetworkError(e,o);case 4:return rg.postProcess(this.cacheManager,t,r),[2,r]}})})},n}(),gw=function(){function n(t,e){this.config=function _te(n){var t=n.authOptions,e=n.systemOptions,i=n.loggerOptions,r=n.storageInterface,o=n.networkInterface,s=n.cryptoInterface,a=n.clientCredentials,l=n.libraryInfo,c=n.telemetry,u=n.serverTelemetryManager,d=n.persistencePlugin,h=n.serializableCache,f=zn(zn({},dte),i);return{authOptions:vte(t),systemOptions:zn(zn({},FR),e),loggerOptions:f,storageInterface:r||new ate(t.clientId,tg),networkInterface:o||hte,cryptoInterface:s||tg,clientCredentials:a||fte,libraryInfo:zn(zn({},pte),l),telemetry:zn(zn({},gte),c),serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:h||null}}(t),this.logger=new MR(this.config.loggerOptions,"@azure/msal-common","7.3.0"),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new Ate(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=e}return n.prototype.createTokenRequestHeaders=function(t){var e={};if(e[jo.CONTENT_TYPE]=J.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&t)switch(t.type){case mr.HOME_ACCOUNT_ID:try{var i=qc(t.credential);e[jo.CCS_HEADER]="Oid:"+i.uid+"@"+i.utid}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case mr.UPN:e[jo.CCS_HEADER]="UPN: "+t.credential}return e},n.prototype.executePostToTokenEndpoint=function(t,e,i,r){return Dt(this,void 0,void 0,function(){var o;return St(this,function(s){switch(s.label){case 0:return[4,this.networkManager.sendPostRequest(r,t,{body:e,headers:i,proxyUrl:this.config.systemOptions.proxyUrl})];case 1:return o=s.sent(),this.config.serverTelemetryManager&&o.status<500&&429!==o.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,o]}})})},n.prototype.updateAuthority=function(t){if(!t.discoveryComplete())throw it.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=t},n}(),hl=function(){function n(){}return n.validateRedirectUri=function(t){if($e.isEmpty(t))throw xn.createRedirectUriEmptyError()},n.validatePrompt=function(t){var e=[];for(var i in Li)e.push(Li[i]);if(e.indexOf(t)<0)throw xn.createInvalidPromptError(t)},n.validateClaims=function(t){try{JSON.parse(t)}catch{throw xn.createInvalidClaimsRequestError()}},n.validateCodeChallengeParams=function(t,e){if($e.isEmpty(t)||$e.isEmpty(e))throw xn.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(e)},n.validateCodeChallengeMethod=function(t){if([NI.PLAIN,NI.S256].indexOf(t)<0)throw xn.createInvalidCodeChallengeMethodError()},n.sanitizeEQParams=function(t,e){return t?(e.forEach(function(i,r){t[r]&&delete t[r]}),t):{}},n}(),Gc=function(){function n(){this.parameters=new Map}return n.prototype.addResponseTypeCode=function(){this.parameters.set(xt.RESPONSE_TYPE,encodeURIComponent(J.CODE_RESPONSE_TYPE))},n.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(xt.RESPONSE_TYPE,encodeURIComponent(J.TOKEN_RESPONSE_TYPE+" "+J.ID_TOKEN_RESPONSE_TYPE))},n.prototype.addResponseMode=function(t){this.parameters.set(xt.RESPONSE_MODE,encodeURIComponent(t||gd.QUERY))},n.prototype.addNativeBroker=function(){this.parameters.set(xt.NATIVE_BROKER,encodeURIComponent("1"))},n.prototype.addScopes=function(t,e){void 0===e&&(e=!0);var i=e?Rf(t||[],fd):t||[],r=new fr(i);this.parameters.set(xt.SCOPE,encodeURIComponent(r.printScopes()))},n.prototype.addClientId=function(t){this.parameters.set(xt.CLIENT_ID,encodeURIComponent(t))},n.prototype.addRedirectUri=function(t){hl.validateRedirectUri(t),this.parameters.set(xt.REDIRECT_URI,encodeURIComponent(t))},n.prototype.addPostLogoutRedirectUri=function(t){hl.validateRedirectUri(t),this.parameters.set(xt.POST_LOGOUT_URI,encodeURIComponent(t))},n.prototype.addIdTokenHint=function(t){this.parameters.set(xt.ID_TOKEN_HINT,encodeURIComponent(t))},n.prototype.addDomainHint=function(t){this.parameters.set(wc.DOMAIN_HINT,encodeURIComponent(t))},n.prototype.addLoginHint=function(t){this.parameters.set(wc.LOGIN_HINT,encodeURIComponent(t))},n.prototype.addCcsUpn=function(t){this.parameters.set(jo.CCS_HEADER,encodeURIComponent("UPN:"+t))},n.prototype.addCcsOid=function(t){this.parameters.set(jo.CCS_HEADER,encodeURIComponent("Oid:"+t.uid+"@"+t.utid))},n.prototype.addSid=function(t){this.parameters.set(wc.SID,encodeURIComponent(t))},n.prototype.addClaims=function(t,e){var i=this.addClientCapabilitiesToClaims(t,e);hl.validateClaims(i),this.parameters.set(xt.CLAIMS,encodeURIComponent(i))},n.prototype.addCorrelationId=function(t){this.parameters.set(xt.CLIENT_REQUEST_ID,encodeURIComponent(t))},n.prototype.addLibraryInfo=function(t){this.parameters.set(xt.X_CLIENT_SKU,t.sku),this.parameters.set(xt.X_CLIENT_VER,t.version),t.os&&this.parameters.set(xt.X_CLIENT_OS,t.os),t.cpu&&this.parameters.set(xt.X_CLIENT_CPU,t.cpu)},n.prototype.addApplicationTelemetry=function(t){t?.appName&&this.parameters.set(xt.X_APP_NAME,t.appName),t?.appVersion&&this.parameters.set(xt.X_APP_VER,t.appVersion)},n.prototype.addPrompt=function(t){hl.validatePrompt(t),this.parameters.set(""+xt.PROMPT,encodeURIComponent(t))},n.prototype.addState=function(t){$e.isEmpty(t)||this.parameters.set(xt.STATE,encodeURIComponent(t))},n.prototype.addNonce=function(t){this.parameters.set(xt.NONCE,encodeURIComponent(t))},n.prototype.addCodeChallengeParams=function(t,e){if(hl.validateCodeChallengeParams(t,e),!t||!e)throw xn.createInvalidCodeChallengeParamsError();this.parameters.set(xt.CODE_CHALLENGE,encodeURIComponent(t)),this.parameters.set(xt.CODE_CHALLENGE_METHOD,encodeURIComponent(e))},n.prototype.addAuthorizationCode=function(t){this.parameters.set(xt.CODE,encodeURIComponent(t))},n.prototype.addDeviceCode=function(t){this.parameters.set(xt.DEVICE_CODE,encodeURIComponent(t))},n.prototype.addRefreshToken=function(t){this.parameters.set(xt.REFRESH_TOKEN,encodeURIComponent(t))},n.prototype.addCodeVerifier=function(t){this.parameters.set(xt.CODE_VERIFIER,encodeURIComponent(t))},n.prototype.addClientSecret=function(t){this.parameters.set(xt.CLIENT_SECRET,encodeURIComponent(t))},n.prototype.addClientAssertion=function(t){$e.isEmpty(t)||this.parameters.set(xt.CLIENT_ASSERTION,encodeURIComponent(t))},n.prototype.addClientAssertionType=function(t){$e.isEmpty(t)||this.parameters.set(xt.CLIENT_ASSERTION_TYPE,encodeURIComponent(t))},n.prototype.addOboAssertion=function(t){this.parameters.set(xt.OBO_ASSERTION,encodeURIComponent(t))},n.prototype.addRequestTokenUse=function(t){this.parameters.set(xt.REQUESTED_TOKEN_USE,encodeURIComponent(t))},n.prototype.addGrantType=function(t){this.parameters.set(xt.GRANT_TYPE,encodeURIComponent(t))},n.prototype.addClientInfo=function(){this.parameters.set("client_info","1")},n.prototype.addExtraQueryParameters=function(t){var e=this;hl.sanitizeEQParams(t,this.parameters),Object.keys(t).forEach(function(i){e.parameters.set(i,t[i])})},n.prototype.addClientCapabilitiesToClaims=function(t,e){var i;if(t)try{i=JSON.parse(t)}catch{throw xn.createInvalidClaimsRequestError()}else i={};return e&&e.length>0&&(i.hasOwnProperty(Ya.ACCESS_TOKEN)||(i[Ya.ACCESS_TOKEN]={}),i[Ya.ACCESS_TOKEN][Ya.XMS_CC]={values:e}),JSON.stringify(i)},n.prototype.addUsername=function(t){this.parameters.set(bd.username,encodeURIComponent(t))},n.prototype.addPassword=function(t){this.parameters.set(bd.password,encodeURIComponent(t))},n.prototype.addPopToken=function(t){$e.isEmpty(t)||(this.parameters.set(xt.TOKEN_TYPE,fn.POP),this.parameters.set(xt.REQ_CNF,encodeURIComponent(t)))},n.prototype.addSshJwk=function(t){$e.isEmpty(t)||(this.parameters.set(xt.TOKEN_TYPE,fn.SSH),this.parameters.set(xt.REQ_CNF,encodeURIComponent(t)))},n.prototype.addServerTelemetry=function(t){this.parameters.set(xt.X_CLIENT_CURR_TELEM,t.generateCurrentRequestHeaderValue()),this.parameters.set(xt.X_CLIENT_LAST_TELEM,t.generateLastRequestHeaderValue())},n.prototype.addThrottling=function(){this.parameters.set(xt.X_MS_LIB_CAPABILITY,"retry-after, h429")},n.prototype.addLogoutHint=function(t){this.parameters.set(xt.LOGOUT_HINT,encodeURIComponent(t))},n.prototype.createQueryString=function(){var t=new Array;return this.parameters.forEach(function(e,i){t.push(i+"="+e)}),t.join("&")},n}(),Tte=function n(t,e,i,r,o){this.account=t||null,this.idToken=e||null,this.accessToken=i||null,this.refreshToken=r||null,this.appMetadata=o||null},og=(()=>(function(n){n.SW="sw",n.UHW="uhw"}(og||(og={})),og))(),Wc=function(){function n(t){this.cryptoUtils=t}return n.prototype.generateCnf=function(t){return Dt(this,void 0,void 0,function(){var e,i,r;return St(this,function(o){switch(o.label){case 0:return[4,this.generateKid(t)];case 1:return e=o.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(e)),r={kid:e.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(r.reqCnfHash=o.sent(),r)]}})})},n.prototype.generateKid=function(t){return Dt(this,void 0,void 0,function(){return St(this,function(i){switch(i.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(t)];case 1:return[2,{kid:i.sent(),xms_ksl:og.SW}]}})})},n.prototype.signPopToken=function(t,e,i){return Dt(this,void 0,void 0,function(){return St(this,function(r){return[2,this.signPayload(t,e,i)]})})},n.prototype.signPayload=function(t,e,i,r){return Dt(this,void 0,void 0,function(){var o,s,a,l,c,u;return St(this,function(d){switch(d.label){case 0:return o=i.resourceRequestMethod,a=i.shrClaims,l=i.shrNonce,c=(s=i.resourceRequestUri)?new nn(s):void 0,u=c?.getUrlComponents(),[4,this.cryptoUtils.signJwt(zn({at:t,ts:Qr.nowSeconds(),m:o?.toUpperCase(),u:u?.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:u?.AbsolutePath,q:u?.QueryString?[[],u.QueryString]:void 0,client_claims:a||void 0},r),e,i.correlationId)];case 1:return[2,d.sent()]}})})},n}(),xte=function(){function n(t,e){this.cache=t,this.hasChanged=e}return Object.defineProperty(n.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),n}(),sg=function(){function n(t,e,i,r,o,s){this.clientId=t,this.cacheStorage=e,this.cryptoObj=i,this.logger=r,this.serializableCache=o,this.persistencePlugin=s}return n.prototype.validateServerAuthorizationCodeResponse=function(t,e,i){if(!t.state||!e)throw it.createStateNotFoundError(t.state?"Cached State":"Server State");if(decodeURIComponent(t.state)!==decodeURIComponent(e))throw it.createStateMismatchError();if(t.error||t.error_description||t.suberror)throw Co.isInteractionRequiredError(t.error,t.error_description,t.suberror)?new Co(t.error||J.EMPTY_STRING,t.error_description,t.suberror):new dl(t.error||J.EMPTY_STRING,t.error_description,t.suberror);t.client_info&&ng(t.client_info,i)},n.prototype.validateTokenResponse=function(t){if(t.error||t.error_description||t.suberror){if(Co.isInteractionRequiredError(t.error,t.error_description,t.suberror))throw new Co(t.error,t.error_description,t.suberror);throw new dl(t.error,t.error_codes+" - ["+t.timestamp+"]: "+t.error_description+" - Correlation ID: "+t.correlation_id+" - Trace ID: "+t.trace_id,t.suberror)}},n.prototype.handleServerTokenResponse=function(t,e,i,r,o,s,a,l){return Dt(this,void 0,void 0,function(){var c,u,d,h,f;return St(this,function(S){switch(S.label){case 0:if(t.id_token&&(c=new ma(t.id_token||J.EMPTY_STRING,this.cryptoObj),o&&!$e.isEmpty(o.nonce)&&c.claims.nonce!==o.nonce))throw it.createNonceMismatchError();this.homeAccountIdentifier=Fi.generateHomeAccountId(t.client_info||J.EMPTY_STRING,e.authorityType,this.logger,this.cryptoObj,c),!!o&&!!o.state&&(u=Fs.parseRequestState(this.cryptoObj,o.state)),t.key_id=t.key_id||r.sshKid||void 0,d=this.generateCacheRecord(t,e,i,r,c,s,o),S.label=1;case 1:return S.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new xte(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(h)]):[3,3];case 2:S.sent(),S.label=3;case 3:return a&&!l&&d.account&&(f=d.account.generateAccountKey(),!this.cacheStorage.getAccount(f))?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,n.generateAuthenticationResult(this.cryptoObj,e,d,!1,r,c,u,void 0)]):[4,this.cacheStorage.saveCacheRecord(d)];case 4:return S.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&h?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(h)]):[3,7];case 6:S.sent(),S.label=7;case 7:return[7];case 8:return[2,n.generateAuthenticationResult(this.cryptoObj,e,d,!1,r,c,u,t.spa_code)]}})})},n.prototype.generateCacheRecord=function(t,e,i,r,o,s,a){var c,u,l=e.getPreferredCache();if($e.isEmpty(l))throw it.createInvalidCacheEnvironmentError();!$e.isEmpty(t.id_token)&&o&&(c=rh.createIdTokenEntity(this.homeAccountIdentifier,l,t.id_token||J.EMPTY_STRING,this.clientId,o.claims.tid||J.EMPTY_STRING),u=this.generateAccountEntity(t,o,e,a));var d=null;if(!$e.isEmpty(t.access_token)){var h=t.scope?fr.fromString(t.scope):new fr(r.scopes||[]),f=("string"==typeof t.expires_in?parseInt(t.expires_in,10):t.expires_in)||0,_=("string"==typeof t.ext_expires_in?parseInt(t.ext_expires_in,10):t.ext_expires_in)||0,S=("string"==typeof t.refresh_in?parseInt(t.refresh_in,10):t.refresh_in)||void 0,U=i+f,Z=U+_,ve=S&&S>0?i+S:void 0;d=oh.createAccessTokenEntity(this.homeAccountIdentifier,l,t.access_token||J.EMPTY_STRING,this.clientId,o?o.claims.tid||J.EMPTY_STRING:e.tenant,h.printScopes(),U,Z,this.cryptoObj,ve,t.token_type,s,t.key_id,r.claims,r.requestedClaimsHash)}var ee=null;$e.isEmpty(t.refresh_token)||(ee=uw.createRefreshTokenEntity(this.homeAccountIdentifier,l,t.refresh_token||J.EMPTY_STRING,this.clientId,t.foci,s));var Te=null;return $e.isEmpty(t.foci)||(Te=dw.createAppMetadataEntity(this.clientId,l,t.foci)),new Tte(u,c,d,ee,Te)},n.prototype.generateAccountEntity=function(t,e,i,r){var s=r?r.cloud_graph_host_name:J.EMPTY_STRING,a=r?r.msgraph_host:J.EMPTY_STRING;if(i.authorityType===Xo.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Fi.createGenericAccount(this.homeAccountIdentifier,e,i,s,a);if($e.isEmpty(t.client_info)&&"AAD"===i.protocolMode)throw it.createClientInfoEmptyError();return t.client_info?Fi.createAccount(t.client_info,this.homeAccountIdentifier,e,i,s,a):Fi.createGenericAccount(this.homeAccountIdentifier,e,i,s,a)},n.generateAuthenticationResult=function(t,e,i,r,o,s,a,l){var c,u,d;return Dt(this,void 0,void 0,function(){var h,f,_,S,U,Z,ve,ee,Te;return St(this,function(Gt){switch(Gt.label){case 0:if(h=J.EMPTY_STRING,f=[],_=null,U=J.EMPTY_STRING,!i.accessToken)return[3,4];if(i.accessToken.tokenType!==fn.POP)return[3,2];if(Z=new Wc(t),ee=(ve=i.accessToken).secret,!(Te=ve.keyId))throw it.createKeyIdMissingError();return[4,Z.signPopToken(ee,Te,o)];case 1:return h=Gt.sent(),[3,3];case 2:h=i.accessToken.secret,Gt.label=3;case 3:f=fr.fromString(i.accessToken.target).asArray(),_=new Date(1e3*Number(i.accessToken.expiresOn)),S=new Date(1e3*Number(i.accessToken.extendedExpiresOn)),Gt.label=4;case 4:return i.appMetadata&&(U="1"===i.appMetadata.familyId?"1":J.EMPTY_STRING),[2,{authority:e.canonicalAuthority,uniqueId:s?.claims.oid||s?.claims.sub||J.EMPTY_STRING,tenantId:s?.claims.tid||J.EMPTY_STRING,scopes:f,account:i.account?i.account.getAccountInfo():null,idToken:s?s.rawToken:J.EMPTY_STRING,idTokenClaims:s?s.claims:{},accessToken:h,fromCache:r,expiresOn:_,correlationId:o.correlationId,extExpiresOn:S,familyId:U,tokenType:(null===(c=i.accessToken)||void 0===c?void 0:c.tokenType)||J.EMPTY_STRING,state:a?a.userRequestState:J.EMPTY_STRING,cloudGraphHostName:(null===(u=i.account)||void 0===u?void 0:u.cloudGraphHostName)||J.EMPTY_STRING,msGraphHost:(null===(d=i.account)||void 0===d?void 0:d.msGraphHost)||J.EMPTY_STRING,code:l,fromNativeBroker:!1}]}})})},n}(),BR=function(n){function t(e){var i=n.call(this,e)||this;return i.includeRedirectUri=!0,i}return ur(t,n),t.prototype.getAuthCodeUrl=function(e){return Dt(this,void 0,void 0,function(){var i;return St(this,function(r){switch(r.label){case 0:return[4,this.createAuthCodeUrlQueryString(e)];case 1:return i=r.sent(),[2,nn.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},t.prototype.acquireToken=function(e,i){return Dt(this,void 0,void 0,function(){var r,o,s;return St(this,function(a){switch(a.label){case 0:if(this.logger.info("in acquireToken call"),!e||$e.isEmpty(e.code))throw it.createTokenRequestCannotBeMadeError();return r=Qr.nowSeconds(),[4,this.executeTokenRequest(this.authority,e)];case 1:return o=a.sent(),(s=new sg(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(o.body),[4,s.handleServerTokenResponse(o.body,this.authority,r,e,i)];case 2:return[2,a.sent()]}})})},t.prototype.handleFragmentResponse=function(e,i){var r=new sg(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),o=new nn(e),s=nn.getDeserializedHash(o.getHash());if(r.validateServerAuthorizationCodeResponse(s,i,this.cryptoUtils),!s.code)throw it.createNoAuthCodeInServerResponseError();return zn(zn({},s),{code:s.code})},t.prototype.getLogoutUri=function(e){if(!e)throw xn.createEmptyLogoutRequestError();var i=this.createLogoutUrlQueryString(e);return nn.appendQueryString(this.authority.endSessionEndpoint,i)},t.prototype.executeTokenRequest=function(e,i){return Dt(this,void 0,void 0,function(){var r,o,s,a,l,c,u;return St(this,function(d){switch(d.label){case 0:return r={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:i.scopes,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid},[4,this.createTokenRequestBody(i)];case 1:if(o=d.sent(),s=this.createTokenQueryParameters(i),a=void 0,i.clientInfo)try{l=ng(i.clientInfo,this.cryptoUtils),a={credential:""+l.uid+dr.CLIENT_INFO_SEPARATOR+l.utid,type:mr.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}return c=this.createTokenRequestHeaders(a||i.ccsCredential),u=$e.isEmpty(s)?e.tokenEndpoint:e.tokenEndpoint+"?"+s,[2,this.executePostToTokenEndpoint(u,o,c,r)]}})})},t.prototype.createTokenQueryParameters=function(e){var i=new Gc;return e.tokenQueryParameters&&i.addExtraQueryParameters(e.tokenQueryParameters),i.createQueryString()},t.prototype.createTokenRequestBody=function(e){return Dt(this,void 0,void 0,function(){var i,r,s,a,l,c,u;return St(this,function(d){switch(d.label){case 0:return(i=new Gc).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(e.redirectUri):hl.validateRedirectUri(e.redirectUri),i.addScopes(e.scopes),i.addAuthorizationCode(e.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&i.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(i.addClientAssertion((r=this.config.clientCredentials.clientAssertion).assertion),i.addClientAssertionType(r.assertionType)),i.addGrantType(_d.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),e.authenticationScheme!==fn.POP?[3,2]:[4,new Wc(this.cryptoUtils).generateCnf(e)];case 1:return s=d.sent(),i.addPopToken(s.reqCnfString),[3,3];case 2:if(e.authenticationScheme===fn.SSH){if(!e.sshJwk)throw xn.createMissingSshJwkError();i.addSshJwk(e.sshJwk)}d.label=3;case 3:if(a=e.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(a),(!$e.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(e.claims,this.config.authOptions.clientCapabilities),l=void 0,e.clientInfo)try{c=ng(e.clientInfo,this.cryptoUtils),l={credential:""+c.uid+dr.CLIENT_INFO_SEPARATOR+c.utid,type:mr.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}else l=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&l)switch(l.type){case mr.HOME_ACCOUNT_ID:try{c=qc(l.credential),i.addCcsOid(c)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case mr.UPN:i.addCcsUpn(l.credential)}return e.tokenBodyParameters&&i.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[xt.RETURN_SPA_CODE])&&i.addExtraQueryParameters(((u={})[xt.RETURN_SPA_CODE]="1",u)),[2,i.createQueryString()]}})})},t.prototype.createAuthCodeUrlQueryString=function(e){return Dt(this,void 0,void 0,function(){var i,r,o,s,a,l,u;return St(this,function(d){switch(d.label){case 0:if((i=new Gc).addClientId(this.config.authOptions.clientId),r=Rf(e.scopes||[],e.extraScopesToConsent||[]),i.addScopes(r),i.addRedirectUri(e.redirectUri),o=e.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(o),i.addResponseMode(e.responseMode),i.addResponseTypeCode(),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&i.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&i.addPrompt(e.prompt),e.domainHint&&i.addDomainHint(e.domainHint),e.prompt!==Li.SELECT_ACCOUNT)if(e.sid&&e.prompt===Li.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),i.addSid(e.sid);else if(e.account){if(s=this.extractAccountSid(e.account),a=this.extractLoginHint(e.account)){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),i.addLoginHint(a);try{l=qc(e.account.homeAccountId),i.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(s&&e.prompt===Li.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),i.addSid(s);try{l=qc(e.account.homeAccountId),i.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),i.addLoginHint(e.loginHint),i.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),i.addLoginHint(e.account.username);try{l=qc(e.account.homeAccountId),i.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),i.addLoginHint(e.loginHint),i.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&i.addNonce(e.nonce),e.state&&i.addState(e.state),(!$e.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&i.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker?(i.addNativeBroker(),e.authenticationScheme!==fn.POP?[3,2]:[4,new Wc(this.cryptoUtils).generateCnf(e)]):[3,2];case 1:u=d.sent(),i.addPopToken(u.reqCnfHash),d.label=2;case 2:return[2,i.createQueryString()]}})})},t.prototype.createLogoutUrlQueryString=function(e){var i=new Gc;return e.postLogoutRedirectUri&&i.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&i.addCorrelationId(e.correlationId),e.idTokenHint&&i.addIdTokenHint(e.idTokenHint),e.state&&i.addState(e.state),e.logoutHint&&i.addLogoutHint(e.logoutHint),e.extraQueryParameters&&i.addExtraQueryParameters(e.extraQueryParameters),i.createQueryString()},t.prototype.extractAccountSid=function(e){var i;return(null===(i=e.idTokenClaims)||void 0===i?void 0:i.sid)||null},t.prototype.extractLoginHint=function(e){var i;return(null===(i=e.idTokenClaims)||void 0===i?void 0:i.login_hint)||null},t}(gw);function Ite(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}var VR={"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},jR={"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},kte=function(){function n(t){this.networkInterface=t}return n.prototype.detectRegion=function(t,e,i){return Dt(this,void 0,void 0,function(){var r,o,s,a,l;return St(this,function(c){switch(c.label){case 0:if(r=t)return[3,8];o=n.IMDS_OPTIONS,i&&(o.proxyUrl=i),c.label=1;case 1:return c.trys.push([1,6,,7]),[4,this.getRegionFromIMDS(J.IMDS_VERSION,o)];case 2:return(s=c.sent()).status===Qa.httpSuccess&&(r=s.body,e.region_source=Ts.IMDS),s.status!==Qa.httpBadRequest?[3,5]:[4,this.getCurrentVersion(o)];case 3:return(a=c.sent())?[4,this.getRegionFromIMDS(a,o)]:(e.region_source=Ts.FAILED_AUTO_DETECTION,[2,null]);case 4:(l=c.sent()).status===Qa.httpSuccess&&(r=l.body,e.region_source=Ts.IMDS),c.label=5;case 5:return[3,7];case 6:return c.sent(),e.region_source=Ts.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:e.region_source=Ts.ENVIRONMENT_VARIABLE,c.label=9;case 9:return r||(e.region_source=Ts.FAILED_AUTO_DETECTION),[2,r||null]}})})},n.prototype.getRegionFromIMDS=function(t,e){return Dt(this,void 0,void 0,function(){return St(this,function(i){return[2,this.networkInterface.sendGetRequestAsync(J.IMDS_ENDPOINT+"?api-version="+t+"&format=text",e,J.IMDS_TIMEOUT)]})})},n.prototype.getCurrentVersion=function(t){return Dt(this,void 0,void 0,function(){var e;return St(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(J.IMDS_ENDPOINT+"?format=json",t)];case 1:return(e=i.sent()).status===Qa.httpBadRequest&&e.body&&e.body["newest-versions"]&&e.body["newest-versions"].length>0?[2,e.body["newest-versions"][0]]:[2,null];case 2:return i.sent(),[2,null];case 3:return[2]}})})},n.IMDS_OPTIONS={headers:{Metadata:"true"}},n}(),ag=function(){function n(t,e,i,r,o){this.canonicalAuthority=t,this._canonicalAuthority.validateAsUri(),this.networkInterface=e,this.cacheManager=i,this.authorityOptions=r,this.regionDiscovery=new kte(e),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.proxyUrl=o||J.EMPTY_STRING}return Object.defineProperty(n.prototype,"authorityType",{get:function(){var t=this.canonicalAuthorityUrlComponents.PathSegments;return t.length&&t[0].toLowerCase()===J.ADFS?Xo.Adfs:Xo.Default},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(t){this._canonicalAuthority=new nn(t),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(t)}throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(t)}throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(t)}throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw it.createLogoutNotSupportedError();var t=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(t)}throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.issuer);return this.replaceTenant(t)}throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(t)}throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),n.prototype.replaceTenant=function(t){return t.replace(/{tenant}|{tenantid}/g,this.tenant)},n.prototype.replacePath=function(t){var e=t,r=new nn(this.metadata.canonical_authority).getUrlComponents().PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach(function(s,a){var l=r[a];s!==l&&(e=e.replace("/"+l+"/","/"+s+"/"))}),e},Object.defineProperty(n.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===Xo.Adfs||this.protocolMode===sh.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),n.prototype.discoveryComplete=function(){return!!this.metadata},n.prototype.resolveEndpointsAsync=function(){return Dt(this,void 0,void 0,function(){var t,e,i,r;return St(this,function(o){switch(o.label){case 0:return(t=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(t=new hw).updateCanonicalAuthority(this.canonicalAuthority),[4,this.updateCloudDiscoveryMetadata(t)];case 1:return e=o.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,t.preferred_network),[4,this.updateEndpointMetadata(t)];case 2:return i=o.sent(),e!==Tr.CACHE&&i!==Tr.CACHE&&(t.resetExpiresAt(),t.updateCanonicalAuthority(this.canonicalAuthority)),r=this.cacheManager.generateAuthorityMetadataCacheKey(t.preferred_cache),this.cacheManager.setAuthorityMetadata(r,t),this.metadata=t,[2]}})})},n.prototype.updateEndpointMetadata=function(t){var e,i;return Dt(this,void 0,void 0,function(){var r,o;return St(this,function(s){switch(s.label){case 0:return(r=this.getEndpointMetadataFromConfig())?(t.updateEndpointMetadata(r,!1),[2,Tr.CONFIG]):this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!t.isExpired()?[2,Tr.CACHE]:(o=this.getEndpointMetadataFromHardcodedValues(),[4,this.getEndpointMetadataFromNetwork()]);case 1:return(r=s.sent())?null!==(e=this.authorityOptions.azureRegionConfiguration)&&void 0!==e&&e.azureRegion?[4,this.updateMetadataWithRegionalInformation(r)]:[3,3]:[3,4];case 2:r=s.sent(),s.label=3;case 3:return t.updateEndpointMetadata(r,!0),[2,Tr.NETWORK];case 4:return o&&!this.authorityOptions.skipAuthorityMetadataCache?null!==(i=this.authorityOptions.azureRegionConfiguration)&&void 0!==i&&i.azureRegion?[4,this.updateMetadataWithRegionalInformation(o)]:[3,6]:[3,7];case 5:o=s.sent(),s.label=6;case 6:return t.updateEndpointMetadata(o,!1),[2,Tr.HARDCODED_VALUES];case 7:throw it.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},n.prototype.isAuthoritySameType=function(t){return new nn(t.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length},n.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw xn.createInvalidAuthorityMetadataError()}return null},n.prototype.getEndpointMetadataFromNetwork=function(){return Dt(this,void 0,void 0,function(){var t,e;return St(this,function(i){switch(i.label){case 0:t={},this.proxyUrl&&(t.proxyUrl=this.proxyUrl),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return[2,Ite((e=i.sent()).body)?e.body:null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},n.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in VR?VR[this.canonicalAuthority]:null},n.prototype.updateMetadataWithRegionalInformation=function(t){var e,i,r,o,s;return Dt(this,void 0,void 0,function(){var a,l;return St(this,function(c){switch(c.label){case 0:return[4,this.regionDiscovery.detectRegion(null===(e=this.authorityOptions.azureRegionConfiguration)||void 0===e?void 0:e.environmentRegion,this.regionDiscoveryMetadata,this.proxyUrl)];case 1:return a=c.sent(),l=(null===(i=this.authorityOptions.azureRegionConfiguration)||void 0===i?void 0:i.azureRegion)===J.AZURE_REGION_AUTO_DISCOVER_FLAG?a:null===(r=this.authorityOptions.azureRegionConfiguration)||void 0===r?void 0:r.azureRegion,this.regionDiscoveryMetadata.region_outcome=(null===(o=this.authorityOptions.azureRegionConfiguration)||void 0===o?void 0:o.azureRegion)===J.AZURE_REGION_AUTO_DISCOVER_FLAG?a?sa.AUTO_DETECTION_REQUESTED_SUCCESSFUL:sa.AUTO_DETECTION_REQUESTED_FAILED:a?(null===(s=this.authorityOptions.azureRegionConfiguration)||void 0===s?void 0:s.azureRegion)===a?sa.CONFIGURED_MATCHES_DETECTED:sa.CONFIGURED_NOT_DETECTED:sa.CONFIGURED_NO_AUTO_DETECTION,l?(this.regionDiscoveryMetadata.region_used=l,[2,n.replaceWithRegionalInformation(t,l)]):[2,t]}})})},n.prototype.updateCloudDiscoveryMetadata=function(t){return Dt(this,void 0,void 0,function(){var e,i;return St(this,function(r){switch(r.label){case 0:return(e=this.getCloudDiscoveryMetadataFromConfig())?(t.updateCloudDiscoveryMetadata(e,!1),[2,Tr.CONFIG]):this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!t.isExpired()?[2,Tr.CACHE]:(i=this.getCloudDiscoveryMetadataFromHarcodedValues(),[4,this.getCloudDiscoveryMetadataFromNetwork()]);case 1:if(e=r.sent())return t.updateCloudDiscoveryMetadata(e,!0),[2,Tr.NETWORK];if(i&&!this.options.skipAuthorityMetadataCache)return t.updateCloudDiscoveryMetadata(i,!1),[2,Tr.HARDCODED_VALUES];throw xn.createUntrustedAuthorityError()}})})},n.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityOptions.cloudDiscoveryMetadata)try{var t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),e=n.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(e)return e}catch{throw xn.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},n.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return Dt(this,void 0,void 0,function(){var t,e,i,r,o;return St(this,function(s){switch(s.label){case 0:t=""+J.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",e={},this.proxyUrl&&(e.proxyUrl=this.proxyUrl),i=null,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t,e)];case 2:return r=s.sent(),o=function Mte(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}(r.body)?r.body.metadata:[],0===o.length?[2,null]:(i=n.getCloudDiscoveryMetadataFromNetworkResponse(o,this.hostnameAndPort),[3,4]);case 3:return s.sent(),[2,null];case 4:return i||(i=n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}})})},n.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in jR?jR[this.canonicalAuthority]:null},n.prototype.isInKnownAuthorities=function(){var t=this;return this.authorityOptions.knownAuthorities.filter(function(i){return nn.getDomainFromUrl(i).toLowerCase()===t.hostnameAndPort}).length>0},n.generateAuthority=function(t,e){var i;return e&&e.azureCloudInstance!==zc.None&&(i=e.azureCloudInstance+"/"+(e.tenant?e.tenant:J.DEFAULT_COMMON_TENANT)+"/"),i||t},n.createCloudDiscoveryMetadataFromHost=function(t){return{preferred_network:t,preferred_cache:t,aliases:[t]}},n.getCloudDiscoveryMetadataFromNetworkResponse=function(t,e){for(var i=0;i-1)return r}return null},n.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},n.prototype.isAlias=function(t){return this.metadata.aliases.indexOf(t)>-1},n.isPublicCloudAuthority=function(t){return J.KNOWN_PUBLIC_CLOUDS.indexOf(t)>=0},n.buildRegionalAuthorityString=function(t,e,i){var r=new nn(t);r.validateAsUri();var o=r.getUrlComponents(),s=e+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(s=e+"."+J.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=nn.constructAuthorityUriFromObject(zn(zn({},r.getUrlComponents()),{HostNameAndPort:s})).urlString;return i?a+"?"+i:a},n.replaceWithRegionalInformation=function(t,e){return t.authorization_endpoint=n.buildRegionalAuthorityString(t.authorization_endpoint,e),t.token_endpoint=n.buildRegionalAuthorityString(t.token_endpoint,e,"allowestsrnonmsi=true"),t.end_session_endpoint&&(t.end_session_endpoint=n.buildRegionalAuthorityString(t.end_session_endpoint,e)),t},n}(),lg=function(){function n(){}return n.createDiscoveredInstance=function(t,e,i,r,o){return Dt(this,void 0,void 0,function(){var s,a;return St(this,function(l){switch(l.label){case 0:s=n.createInstance(t,e,i,r,o),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,s.resolveEndpointsAsync()];case 2:return l.sent(),[2,s];case 3:throw a=l.sent(),it.createEndpointDiscoveryIncompleteError(a);case 4:return[2]}})})},n.createInstance=function(t,e,i,r,o){if($e.isEmpty(t))throw xn.createUrlEmptyError();return new ag(t,e,i,r,o)},n}(),Rte=function(){function n(t,e){this.cacheOutcome=aa.NO_CACHE_HIT,this.cacheManager=e,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||J.EMPTY_STRING,this.wrapperVer=t.wrapperVer||J.EMPTY_STRING,this.telemetryCacheKey=Si.CACHE_KEY+dr.CACHE_KEY_SEPARATOR+t.clientId}return n.prototype.generateCurrentRequestHeaderValue=function(){var t=""+this.apiId+Si.VALUE_SEPARATOR+this.cacheOutcome,e=[this.wrapperSKU,this.wrapperVer].join(Si.VALUE_SEPARATOR),r=[t,this.getRegionDiscoveryFields()].join(Si.VALUE_SEPARATOR);return[Si.SCHEMA_VERSION,r,e].join(Si.CATEGORY_SEPARATOR)},n.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),e=n.maxErrorsToSend(t),i=t.failedRequests.slice(0,2*e).join(Si.VALUE_SEPARATOR),r=t.errors.slice(0,e).join(Si.VALUE_SEPARATOR),o=t.errors.length,a=[o,e=Si.MAX_CACHED_ERRORS&&(e.failedRequests.shift(),e.failedRequests.shift(),e.errors.shift()),e.failedRequests.push(this.apiId,this.correlationId),$e.isEmpty(t.subError)?$e.isEmpty(t.errorCode)?t&&t.toString()?e.errors.push(t.toString()):e.errors.push(Si.UNKNOWN_ERROR):e.errors.push(t.errorCode):e.errors.push(t.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e)},n.prototype.incrementCacheHits=function(){var t=this.getLastRequests();return t.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t),t.cacheHits},n.prototype.getLastRequests=function(){var t=new ig;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||t},n.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),e=n.maxErrorsToSend(t);if(e===t.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{var r=new ig;r.failedRequests=t.failedRequests.slice(2*e),r.errors=t.errors.slice(e),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}},n.maxErrorsToSend=function(t){var e,i=0,r=0,o=t.errors.length;for(e=0;e(function(n){n.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",n.USER_CANCEL="USER_CANCEL",n.NO_NETWORK="NO_NETWORK",n.TRANSIENT_ERROR="TRANSIENT_ERROR",n.PERSISTENT_ERROR="PERSISTENT_ERROR",n.DISABLED="DISABLED",n.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"}(Bs||(Bs={})),Bs))(),lh_extensionError_code="ContentError",lh_userSwitch_code="user_switch",lh_userSwitch_desc="User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again.",lh_tokensNotFoundInCache_code="tokens_not_found_in_internal_memory_cache",lh_tokensNotFoundInCache_desc="Tokens not cached in MSAL JS internal memory, please make the WAM request",Zo=function(n){function t(e,i,r){var o=n.call(this,e,i)||this;return Object.setPrototypeOf(o,t.prototype),o.name="NativeAuthError",o.ext=r,o}return Ti(t,n),t.prototype.isFatal=function(){return!(!this.ext||!this.ext.status||this.ext.status!==Bs.PERSISTENT_ERROR&&this.ext.status!==Bs.DISABLED)||this.errorCode===lh_extensionError_code},t.createError=function(e,i,r){if(r&&r.status)switch(r.status){case Bs.ACCOUNT_UNAVAILABLE:return Co.createNativeAccountUnavailableError();case Bs.USER_INTERACTION_REQUIRED:return new Co(e,i);case Bs.USER_CANCEL:return Ue.createUserCancelledError();case Bs.NO_NETWORK:return Ue.createNoNetworkConnectivityError()}return new t(e,i,r)},t.createUserSwitchError=function(){return new t(lh_userSwitch_code,lh_userSwitch_desc)},t.createTokensNotFoundInCacheError=function(){return new t(lh_tokensNotFoundInCache_code,lh_tokensNotFoundInCache_desc)},t}(ut),qR=function(n){function t(e,i){return n.call(this,e,i)||this}return ur(t,n),t.prototype.acquireToken=function(e){return Dt(this,void 0,void 0,function(){var i,r,o;return St(this,function(s){switch(s.label){case 0:return i=Qr.nowSeconds(),[4,this.executeTokenRequest(e,this.authority)];case 1:return r=s.sent(),(o=new sg(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(r.body),[2,o.handleServerTokenResponse(r.body,this.authority,i,e,void 0,void 0,!0,e.forceCache)]}})})},t.prototype.acquireTokenByRefreshToken=function(e){return Dt(this,void 0,void 0,function(){var o;return St(this,function(s){if(!e)throw xn.createEmptyTokenRequestError();if(!e.account)throw it.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(e.account.environment,this.config.authOptions.clientId))try{return[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(a){if(o=a instanceof dl&&"invalid_grant"===a.errorCode&&"client_mismatch"===a.subError,a instanceof Co&&a.errorCode===nh_noTokensFoundError_code||o)return[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw a}return[2,this.acquireTokenWithCachedRefreshToken(e,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(e,i){return Dt(this,void 0,void 0,function(){var r,o;return St(this,function(s){if(!(r=this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId,e.account,i)))throw Co.createNoTokensFoundError();return o=zn(zn({},e),{refreshToken:r.secret,authenticationScheme:e.authenticationScheme||fn.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:mr.HOME_ACCOUNT_ID}}),[2,this.acquireToken(o)]})})},t.prototype.executeTokenRequest=function(e,i){var r;return Dt(this,void 0,void 0,function(){var o,s,a,l,c,u;return St(this,function(d){switch(d.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(di.RefreshTokenClientExecuteTokenRequest,e.correlationId),[4,this.createTokenRequestBody(e)];case 1:return s=d.sent(),a=this.createTokenQueryParameters(e),l=this.createTokenRequestHeaders(e.ccsCredential),c={clientId:this.config.authOptions.clientId,authority:i.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},u=nn.appendQueryString(i.tokenEndpoint,a),[2,this.executePostToTokenEndpoint(u,s,l,c).then(function(h){return o?.endMeasurement({success:!0}),h}).catch(function(h){throw o?.endMeasurement({success:!1}),h})]}})})},t.prototype.createTokenQueryParameters=function(e){var i=new Gc;return e.tokenQueryParameters&&i.addExtraQueryParameters(e.tokenQueryParameters),i.createQueryString()},t.prototype.createTokenRequestBody=function(e){var i;return Dt(this,void 0,void 0,function(){var r,o,s,a,c,u;return St(this,function(d){switch(d.label){case 0:return r=e.correlationId,o=null===(i=this.performanceClient)||void 0===i?void 0:i.startMeasurement(di.BaseClientCreateTokenRequestHeaders,r),(s=new Gc).addClientId(this.config.authOptions.clientId),s.addScopes(e.scopes),s.addGrantType(_d.REFRESH_TOKEN_GRANT),s.addClientInfo(),s.addLibraryInfo(this.config.libraryInfo),s.addApplicationTelemetry(this.config.telemetry.application),s.addThrottling(),this.serverTelemetryManager&&s.addServerTelemetry(this.serverTelemetryManager),s.addCorrelationId(r),s.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&s.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(s.addClientAssertion((a=this.config.clientCredentials.clientAssertion).assertion),s.addClientAssertionType(a.assertionType)),e.authenticationScheme!==fn.POP?[3,2]:[4,new Wc(this.cryptoUtils).generateCnf(e)];case 1:return c=d.sent(),s.addPopToken(c.reqCnfString),[3,3];case 2:if(e.authenticationScheme===fn.SSH){if(!e.sshJwk)throw o?.endMeasurement({success:!1}),xn.createMissingSshJwkError();s.addSshJwk(e.sshJwk)}d.label=3;case 3:if((!$e.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&s.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case mr.HOME_ACCOUNT_ID:try{u=qc(e.ccsCredential.credential),s.addCcsOid(u)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case mr.UPN:s.addCcsUpn(e.ccsCredential.credential)}return o?.endMeasurement({success:!0}),[2,s.createQueryString()]}})})},t}(gw),Ote=function(n){function t(e,i){return n.call(this,e,i)||this}return ur(t,n),t.prototype.acquireToken=function(e){return Dt(this,void 0,void 0,function(){var i;return St(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.acquireCachedToken(e)];case 1:return[2,o.sent()];case 2:if((i=o.sent())instanceof it&&i.errorCode===Le_tokenRefreshRequired_code)return[2,new qR(this.config,this.performanceClient).acquireTokenByRefreshToken(e)];throw i;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(e){var i,r,o,s;return Dt(this,void 0,void 0,function(){var a,l;return St(this,function(c){switch(c.label){case 0:if(!e)throw xn.createEmptyTokenRequestError();if(e.forceRefresh)throw null===(i=this.serverTelemetryManager)||void 0===i||i.setCacheOutcome(aa.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),it.createRefreshRequiredError();if(!e.account)throw it.createNoAccountInSilentRequestError();if(a=e.authority||this.authority.getPreferredCache(),!(l=this.cacheManager.readCacheRecord(e.account,this.config.authOptions.clientId,e,a)).accessToken)throw null===(r=this.serverTelemetryManager)||void 0===r||r.setCacheOutcome(aa.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),it.createRefreshRequiredError();if(Qr.wasClockTurnedBack(l.accessToken.cachedAt)||Qr.isTokenExpired(l.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(aa.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),it.createRefreshRequiredError();if(l.accessToken.refreshOn&&Qr.isTokenExpired(l.accessToken.refreshOn,0))throw null===(s=this.serverTelemetryManager)||void 0===s||s.setCacheOutcome(aa.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),it.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(l,e)];case 1:return[2,c.sent()]}})})},t.prototype.generateResultFromCacheRecord=function(e,i){return Dt(this,void 0,void 0,function(){var r;return St(this,function(o){switch(o.label){case 0:return e.idToken&&(r=new ma(e.idToken.secret,this.config.cryptoInterface)),[4,sg.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,i,r)];case 1:return[2,o.sent()]}})})},t}(gw),zR=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ti(t,n),t.prototype.acquireToken=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a;return Re(this,function(l){switch(l.label){case 0:return i=this.performanceClient.startMeasurement(di.SilentCacheClientAcquireToken,e.correlationId),r=this.initializeServerTelemetryManager(Cn.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(r,e.authority,e.azureCloudOptions)];case 1:o=l.sent(),this.logger.verbose("Silent auth client created"),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,o.acquireCachedToken(e)];case 3:return s=l.sent(),i.endMeasurement({success:!0,fromCache:!0}),[2,s];case 4:throw(a=l.sent())instanceof Ue&&a.errorCode===Me_signingKeyNotFoundInStorage_code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),i.endMeasurement({errorCode:a instanceof ut&&a.errorCode||void 0,subErrorCode:a instanceof ut&&a.subError||void 0,success:!1}),a;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(Ue.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,i,r){return ke(this,void 0,void 0,function(){var o;return Re(this,function(s){switch(s.label){case 0:return[4,this.getClientConfiguration(e,i,r)];case 1:return o=s.sent(),[2,new Ote(o,this.performanceClient)]}})})},t.prototype.initializeSilentRequest=function(e,i){return ke(this,void 0,void 0,function(){var r;return Re(this,function(o){switch(o.label){case 0:return r=[at({},e)],[4,this.initializeBaseRequest(e)];case 1:return[2,at.apply(void 0,[at.apply(void 0,r.concat([o.sent()])),{account:i,forceRefresh:e.forceRefresh||!1}])]}})})},t}($c),Kc=function(n){function t(e,i,r,o,s,a,l,c,u,d,h,f){var _=n.call(this,e,i,r,o,s,a,c,u,f)||this;return _.apiId=l,_.accountId=d,_.nativeMessageHandler=u,_.nativeStorageManager=h,_.silentCacheClient=new zR(e,_.nativeStorageManager,r,o,s,a,c,u,f),_}return Ti(t,n),t.prototype.acquireToken=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,l,c;return Re(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),i=this.performanceClient.startMeasurement(di.NativeInteractionClientAcquireToken,e.correlationId),r=Qr.nowSeconds(),[4,this.initializeNativeRequest(e)];case 1:o=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,o)];case 3:return s=u.sent(),i.endMeasurement({success:!0,isNativeBroker:!0,fromCache:!0}),[2,s];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return[4,this.nativeMessageHandler.sendMessage({method:zo.GetToken,request:o})];case 6:return l=u.sent(),c=this.validateNativeResponse(l),[2,this.handleNativeResponse(c,o,r).then(function(d){return i.endMeasurement({success:!0,isNativeBroker:!0}),d}).catch(function(d){throw i.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},t.prototype.createSilentCacheRequest=function(e,i){return{authority:e.authority,correlationId:this.correlationId,scopes:fr.fromString(e.scope).asArray(),account:i,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(e,i){return ke(this,void 0,void 0,function(){var r,o,s;return Re(this,function(c){switch(c.label){case 0:if(!(r=this.browserStorage.readAccountFromCacheWithNativeAccountId(e)))throw it.createNoAccountFoundError();o=r.getAccountInfo(),c.label=1;case 1:return c.trys.push([1,3,,4]),s=this.createSilentCacheRequest(i,o),[4,this.silentCacheClient.acquireToken(s)];case 2:return[2,c.sent()];case 3:throw c.sent();case 4:return[2]}})})},t.prototype.acquireTokenRedirect=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a,l;return Re(this,function(c){switch(c.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(e)];case 1:i=c.sent(),r={method:zo.GetToken,request:i},c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(r)];case 3:return o=c.sent(),this.validateNativeResponse(o),[3,5];case 4:if((s=c.sent())instanceof Zo&&s.isFatal())throw s;return[3,5];case 5:return this.browserStorage.setTemporaryCache(an.NATIVE_REQUEST,JSON.stringify(i),!0),a={apiId:Cn.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},l=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri),[4,this.navigationClient.navigateExternal(l,a)];case 6:return c.sent(),[2]}})})},t.prototype.handleRedirectPromise=function(){return ke(this,void 0,void 0,function(){var e,i,r,o,s,a;return Re(this,function(l){switch(l.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(e=this.browserStorage.getCachedNativeRequest()))return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];this.browserStorage.removeItem(this.browserStorage.generateCacheKey(an.NATIVE_REQUEST)),i={method:zo.GetToken,request:e},r=Qr.nowSeconds(),l.label=1;case 1:return l.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return o=l.sent(),this.validateNativeResponse(o),s=this.handleNativeResponse(o,e,r),this.browserStorage.setInteractionInProgress(!1),[2,s];case 3:throw a=l.sent(),this.browserStorage.setInteractionInProgress(!1),a;case 4:return[2]}})})},t.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},t.prototype.handleNativeResponse=function(e,i,r){return ke(this,void 0,void 0,function(){var o,s,a,l,c,u,d,h,f,_,S,Z,ve,ee,Te,et,_t,Gt,hn,Gn=this;return Re(this,function(vi){switch(vi.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==i.accountId)throw Zo.createUserSwitchError();return o=new ma(e.id_token||J.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(i.authority)];case 1:return s=vi.sent(),a=s.getPreferredCache(),l=Fi.generateHomeAccountId(e.client_info||J.EMPTY_STRING,Xo.Default,this.logger,this.browserCrypto,o),c=Fi.createAccount(e.client_info,l,o,void 0,void 0,void 0,a,e.account.id),this.browserStorage.setAccount(c),u=fr.fromString(e.scope?e.scope:i.scope),h=(d=e.account.properties||{}).UID||o.claims.oid||o.claims.sub||J.EMPTY_STRING,f=d.TenantId||o.claims.tid||J.EMPTY_STRING,S=fn.BEARER,i.tokenType===fn.POP?[3,2]:[3,4];case 2:if(S=fn.POP,e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),_=e.shr,[3,5];if(Z=new Wc(this.browserCrypto),ve={resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,shrNonce:i.shrNonce},!i.keyId)throw it.createKeyIdMissingError();return[4,Z.signPopToken(e.access_token,i.keyId,ve)];case 3:return _=vi.sent(),[3,5];case 4:_=e.access_token,vi.label=5;case 5:return ee=this.getMATSFromResponse(e),Te={authority:s.canonicalAuthority,uniqueId:h,tenantId:f,scopes:u.asArray(),account:c.getAccountInfo(),idToken:e.id_token,idTokenClaims:o.claims,accessToken:_,fromCache:!!ee&&this.isResponseFromCache(ee),expiresOn:new Date(1e3*Number(r+e.expires_in)),tokenType:S,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0},et=rh.createIdTokenEntity(l,i.authority,e.id_token||J.EMPTY_STRING,i.clientId,o.claims.tid||J.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(et),_t=S===fn.POP?J.SHR_NONCE_VALIDITY:("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,Gt=r+_t,hn=oh.createAccessTokenEntity(l,i.authority,_,i.clientId,f,u.printScopes(),Gt,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(hn),this.browserStorage.removeAccountContext(c).catch(function(ga){Gn.logger.error("Error occurred while removing account context from browser storage. "+ga)}),[2,Te]}})})},t.prototype.validateNativeResponse=function(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw Zo.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},t.prototype.isResponseFromCache=function(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached},t.prototype.initializeNativeRequest=function(e){return ke(this,void 0,void 0,function(){var r,o,s,a,l,c,u,h,f=this;return Re(this,function(_){switch(_.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),(r=new nn(e.authority||this.config.auth.authority)).validateAsUri(),o=e.scopes,s=function qq(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(n);rs&&(i.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(l),o(Ue.createMonitorPopupTimeoutError())))},50)})},t.prototype.waitForLogoutPopup=function(e){var i=this;return new Promise(function(r){i.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var o=setInterval(function(){e.closed&&(i.logger.error("PopupHandler.waitForLogoutPopup - window closed"),i.cleanPopup(),clearInterval(o),r());var s=J.EMPTY_STRING;try{s=e.location.href}catch{}$e.isEmpty(s)||"about:blank"===s||(i.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(o),i.cleanPopup(e),r())},50)})},t.prototype.openPopup=function(e,i){try{var r=void 0;if(i.popup?(r=i.popup,this.logger.verbosePii("Navigating popup window to: "+e),r.location.assign(e)):typeof i.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+e),r=this.openSizedPopup(e,i.popupName,i.popupWindowAttributes)),!r)throw Ue.createEmptyWindowCreatedError();return r.focus&&r.focus(),this.currentWindow=r,window.addEventListener("beforeunload",this.unloadWindow),r}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),Ue.createPopupWindowError(o.toString())}},t.prototype.openSizedPopup=function(e,i,r){var o,s,a,l,c=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,f=null===(o=r.popupSize)||void 0===o?void 0:o.width,_=null===(s=r.popupSize)||void 0===s?void 0:s.height,S=null===(a=r.popupPosition)||void 0===a?void 0:a.top,U=null===(l=r.popupPosition)||void 0===l?void 0:l.left;return(!f||f<0||f>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),f=483),(!_||_<0||_>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),_=600),(!S||S<0||S>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),S=Math.max(0,h/2-300+u)),(!U||U<0||U>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),U=Math.max(0,d/2-241.5+c)),window.open(e,i,"width="+f+", height="+_+", top="+S+", left="+U+", scrollbars=yes")},t.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType(We.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()},t.prototype.cleanPopup=function(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.generatePopupName=function(e,i){return"msal."+this.config.auth.clientId+"."+e.join("-")+"."+i+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(e){return"msal."+this.config.auth.clientId+"."+(e.account&&e.account.homeAccountId)+"."+this.correlationId},t}($c),GR=function(n){function t(e,i,r,o,s){var a=n.call(this,e,i,r,o)||this;return a.browserCrypto=s,a}return Ti(t,n),t.prototype.initiateAuthRequest=function(e,i){return ke(this,void 0,void 0,function(){var r;return Re(this,function(s){switch(s.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),$e.isEmpty(e)?[3,7]:(i.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(an.ORIGIN_URI,i.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(an.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),r={apiId:Cn.acquireTokenRedirect,timeout:i.redirectTimeout,noHistory:!1},"function"!=typeof i.onRedirectNavigate?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1===i.onRedirectNavigate(e)?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,i.navigationClient.navigateExternal(e,r)])));case 1:case 5:return s.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,i.navigationClient.navigateExternal(e,r)];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),Ue.createEmptyNavigationUriError();case 8:return[2]}})})},t.prototype.handleCodeResponseFromHash=function(e,i,r,o){return ke(this,void 0,void 0,function(){var s,a,l,c,u,d,h;return Re(this,function(f){switch(f.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),$e.isEmpty(e))throw Ue.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),s=this.browserStorage.generateStateKey(i),!(a=this.browserStorage.getTemporaryCache(s)))throw it.createStateNotFoundError("Cached State");try{l=this.authModule.handleFragmentResponse(e,a)}catch(_){throw _ instanceof dl&&_.subError===Me_userCancelledError_code?Ue.createUserCancelledError():_}return c=this.browserStorage.generateNonceKey(a),u=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=l.code,l.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(l.cloud_instance_host_name,r,o)]:[3,2];case 1:f.sent(),f.label=2;case 2:return l.nonce=u||void 0,l.state=a,l.client_info?this.authCodeRequest.clientInfo=l.client_info:(d=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=d),[4,this.authModule.acquireToken(this.authCodeRequest,l)];case 3:return h=f.sent(),this.browserStorage.cleanRequestByState(i),[2,h]}})})},t}(_w),Lte=function(n){function t(e,i,r,o,s,a,l,c,u,d){var h=n.call(this,e,i,r,o,s,a,l,u,d)||this;return h.nativeStorage=c,h}return Ti(t,n),t.prototype.acquireToken=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a,l,c,u,d,h=this;return Re(this,function(f){switch(f.label){case 0:return[4,this.initializeAuthorizationRequest(e,We.Redirect)];case 1:i=f.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||J.EMPTY_STRING,i.account||null),r=this.initializeServerTelemetryManager(Cn.acquireTokenRedirect),o=function(_){_.persisted&&(h.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),h.browserStorage.cleanRequestByState(i.state))},f.label=2;case 2:return f.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(i)];case 3:return s=f.sent(),[4,this.createAuthCodeClient(r,i.authority,i.azureCloudOptions)];case 4:return a=f.sent(),this.logger.verbose("Auth code client created"),l=new GR(a,this.browserStorage,s,this.logger,this.browserCrypto),[4,a.getAuthCodeUrl(at(at({},i),{nativeBroker:pl.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}))];case 5:return c=f.sent(),u=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",o),[4,l.initiateAuthRequest(c,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,f.sent()];case 7:throw(d=f.sent())instanceof ut&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",o),r.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(i.state),d;case 8:return[2]}})})},t.prototype.handleRedirectPromise=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a,l,c,u,d,h,f,_;return Re(this,function(S){switch(S.label){case 0:i=this.initializeServerTelemetryManager(Cn.handleRedirectPromise),S.label=1;case 1:if(S.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(r=this.getRedirectResponseHash(e||window.location.hash)))return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(We.Redirect),[2,null];o=void 0;try{s=nn.getDeserializedHash(r),o=this.validateAndExtractStateFromHash(s,We.Redirect),this.logger.verbose("State extracted from hash")}catch(U){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+U),this.browserStorage.cleanRequestByInteractionType(We.Redirect),[2,null]}return a=this.browserStorage.getTemporaryCache(an.ORIGIN_URI,!0)||J.EMPTY_STRING,l=nn.removeHashFromUrl(a),c=nn.removeHashFromUrl(window.location.href),l===c&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(r,o,i)]):[3,3];case 2:return u=S.sent(),a.indexOf("#")>-1&&Ln.replaceHash(a),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(r,o,i)]);case 4:return!Ln.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(an.URL_HASH,r,!0),d={apiId:Cn.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,a&&"null"!==a?[3,6]:(f=Ln.getHomepage(),this.browserStorage.setTemporaryCache(an.ORIGIN_URI,f,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(f,d)])):[3,9];case 5:return h=S.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+a),[4,this.navigationClient.navigateInternal(a,d)];case 7:h=S.sent(),S.label=8;case 8:if(!h)return[2,this.handleHash(r,o,i)];S.label=9;case 9:return[2,null];case 10:throw(_=S.sent())instanceof ut&&_.setCorrelationId(this.correlationId),i.cacheFailedRequest(_),this.browserStorage.cleanRequestByInteractionType(We.Redirect),_;case 11:return[2]}})})},t.prototype.getRedirectResponseHash=function(e){if(this.logger.verbose("getRedirectResponseHash called"),nn.hashContainsKnownProperties(e))return Ln.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var r=this.browserStorage.getTemporaryCache(an.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(an.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),r},t.prototype.handleHash=function(e,i,r){return ke(this,void 0,void 0,function(){var o,s,a,l,c,u,h=this;return Re(this,function(f){switch(f.label){case 0:if(o=this.browserStorage.getCachedRequest(i,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),(s=nn.getDeserializedHash(e)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Ue.createNativeConnectionNotEstablishedError();return a=new Kc(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,s.accountId,this.browserStorage,o.correlationId),l=Fs.parseRequestState(this.browserCrypto,i).userRequestState,[2,a.acquireToken(at(at({},o),{state:l,prompt:void 0})).finally(function(){h.browserStorage.cleanRequestByState(i)})]}if(!(c=this.browserStorage.getCachedAuthority(i)))throw Ue.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(r,c)];case 1:return u=f.sent(),this.logger.verbose("Auth code client created"),rg.removeThrottle(this.browserStorage,this.config.auth.clientId,o),[4,new GR(u,this.browserStorage,o,this.logger,this.browserCrypto).handleCodeResponseFromHash(e,i,u.authority,this.networkClient)];case 2:return[2,f.sent()]}})})},t.prototype.logout=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a,c;return Re(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),i=this.initializeLogoutRequest(e),r=this.initializeServerTelemetryManager(Cn.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(st.LOGOUT_START,We.Redirect,e),[4,this.clearCacheOnLogout(i.account)];case 2:return u.sent(),o={apiId:Cn.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(r,e&&e.authority)];case 3:return s=u.sent(),this.logger.verbose("Auth code client created"),a=s.getLogoutUri(i),this.eventHandler.emitEvent(st.LOGOUT_SUCCESS,We.Redirect,i),e&&"function"==typeof e.onRedirectNavigate?!1===e.onRedirectNavigate(a)?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,o)]):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,o)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw(c=u.sent())instanceof ut&&c.setCorrelationId(this.correlationId),r.cacheFailedRequest(c),this.eventHandler.emitEvent(st.LOGOUT_FAILURE,We.Redirect,null,c),this.eventHandler.emitEvent(st.LOGOUT_END,We.Redirect),c;case 11:return this.eventHandler.emitEvent(st.LOGOUT_END,We.Redirect),[2]}})})},t.prototype.getRedirectStartPage=function(e){var i=e||window.location.href;return nn.getAbsoluteUrl(i,Ln.getCurrentUri())},t}($c),WR=function(n){function t(e,i,r,o,s){var a=n.call(this,e,i,r,o)||this;return a.navigateFrameWait=s,a}return Ti(t,n),t.prototype.initiateAuthRequest=function(e){return ke(this,void 0,void 0,function(){var i;return Re(this,function(r){switch(r.label){case 0:if($e.isEmpty(e))throw this.logger.info("Navigate url is empty"),Ue.createEmptyNavigationUriError();return this.navigateFrameWait?[4,this.loadFrame(e)]:[3,2];case 1:return i=r.sent(),[3,3];case 2:i=this.loadFrameSync(e),r.label=3;case 3:return[2,i]}})})},t.prototype.monitorIframeForHash=function(e,i){var r=this;return new Promise(function(o,s){i<6e3&&r.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+i+"ms) than the default (6000ms). This may result in timeouts.");var l=window.performance.now()+i,c=setInterval(function(){if(window.performance.now()>l)return r.removeHiddenIframe(e),clearInterval(c),void s(Ue.createMonitorIframeTimeoutError());var u=J.EMPTY_STRING,d=e.contentWindow;try{u=d?d.location.href:J.EMPTY_STRING}catch{}if(!$e.isEmpty(u)){var h=d?d.location.hash:J.EMPTY_STRING;if(nn.hashContainsKnownProperties(h))return r.removeHiddenIframe(e),clearInterval(c),void o(h)}},50)})},t.prototype.loadFrame=function(e){var i=this;return new Promise(function(r,o){var s=i.createHiddenIframe();setTimeout(function(){s?(s.src=e,r(s)):o("Unable to load iframe")},i.navigateFrameWait)})},t.prototype.loadFrameSync=function(e){var i=this.createHiddenIframe();return i.src=e,i},t.prototype.createHiddenIframe=function(){var e=document.createElement("iframe");return e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(e),e},t.prototype.removeHiddenIframe=function(e){document.body===e.parentNode&&document.body.removeChild(e)},t}(_w),Nte=function(n){function t(e,i,r,o,s,a,l,c,u,d,h){var f=n.call(this,e,i,r,o,s,a,c,d,h)||this;return f.apiId=l,f.nativeStorage=u,f}return Ti(t,n),t.prototype.acquireToken=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a;return Re(this,function(l){switch(l.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),i=this.performanceClient.startMeasurement(di.SilentIframeClientAcquireToken,e.correlationId),$e.isEmpty(e.loginHint)&&$e.isEmpty(e.sid)&&(!e.account||$e.isEmpty(e.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==Li.NONE)throw i.endMeasurement({success:!1}),Ue.createSilentPromptValueError(e.prompt);return[4,this.initializeAuthorizationRequest(at(at({},e),{prompt:Li.NONE}),We.Silent)];case 1:r=l.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||J.EMPTY_STRING,r.account||null),o=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,5,,6]),[4,this.createAuthCodeClient(o,r.authority,r.azureCloudOptions)];case 3:return s=l.sent(),this.logger.verbose("Auth code client created"),[4,this.silentTokenHelper(s,r).then(function(c){return i.endMeasurement({success:!0,fromCache:!1}),c})];case 4:return[2,l.sent()];case 5:throw(a=l.sent())instanceof ut&&a.setCorrelationId(this.correlationId),o.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(r.state),i.endMeasurement({errorCode:a instanceof ut&&a.errorCode||void 0,subErrorCode:a instanceof ut&&a.subError||void 0,success:!1}),a;case 6:return[2]}})})},t.prototype.logout=function(){return Promise.reject(Ue.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,i){return ke(this,void 0,void 0,function(){var r,o,s,a,l,c,u,d,h,f=this;return Re(this,function(_){switch(_.label){case 0:return[4,this.initializeAuthorizationCodeRequest(i)];case 1:return r=_.sent(),[4,e.getAuthCodeUrl(at(at({},i),{nativeBroker:pl.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,i.authenticationScheme)}))];case 2:return o=_.sent(),[4,(s=new WR(e,this.browserStorage,r,this.logger,this.config.system.navigateFrameWait)).initiateAuthRequest(o)];case 3:return a=_.sent(),[4,s.monitorIframeForHash(a,this.config.system.iframeHashTimeout)];case 4:if(l=_.sent(),c=nn.getDeserializedHash(l),u=this.validateAndExtractStateFromHash(c,We.Silent,r.correlationId),c.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Ue.createNativeConnectionNotEstablishedError();return d=new Kc(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,c.accountId,this.browserStorage,this.correlationId),h=Fs.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(at(at({},i),{state:h,prompt:Li.NONE})).finally(function(){f.browserStorage.cleanRequestByState(u)})]}return[2,s.handleCodeResponseFromHash(l,u,e.authority,this.networkClient)]}})})},t}($c),Fte=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ti(t,n),t.prototype.acquireToken=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a,l=this;return Re(this,function(c){switch(c.label){case 0:return r=[at({},e)],[4,this.initializeBaseRequest(e)];case 1:return i=at.apply(void 0,r.concat([c.sent()])),o=this.performanceClient.startMeasurement(di.SilentRefreshClientAcquireToken,i.correlationId),s=this.initializeServerTelemetryManager(Cn.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(s,i.authority,i.azureCloudOptions)];case 2:return a=c.sent(),this.logger.verbose("Refresh token client created"),[2,a.acquireTokenByRefreshToken(i).then(function(u){return o.endMeasurement({success:!0,fromCache:u.fromCache}),u}).catch(function(u){throw u instanceof ut&&u.setCorrelationId(l.correlationId),s.cacheFailedRequest(u),o.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},t.prototype.logout=function(){return Promise.reject(Ue.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,i,r){return ke(this,void 0,void 0,function(){var o;return Re(this,function(s){switch(s.label){case 0:return[4,this.getClientConfiguration(e,i,r)];case 1:return o=s.sent(),[2,new qR(o,this.performanceClient)]}})})},t}($c),Bte=function(){function n(t,e,i,r){this.isBrowserEnvironment=typeof window<"u",this.config=t,this.storage=e,this.logger=i,this.cryptoObj=r}return n.prototype.loadExternalTokens=function(t,e,i){if(this.logger.info("TokenCache - loadExternalTokens called"),!e.id_token)throw Ue.createUnableToLoadTokenError("Please ensure server response includes id token.");if(t.account)this.loadIdToken(e.id_token,t.account.homeAccountId,t.account.environment,t.account.tenantId,i),this.loadAccessToken(t,e,t.account.homeAccountId,t.account.environment,t.account.tenantId,i);else{if(!t.authority)throw Ue.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var r=ag.generateAuthority(t.authority,t.azureCloudOptions),s=new ag(r,this.config.system.networkClient,this.storage,{protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache});if(i.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),this.loadIdToken(e.id_token,i.clientInfo,s.hostnameAndPort,s.tenant,i),this.loadAccessToken(t,e,i.clientInfo,s.hostnameAndPort,s.tenant,i);else{if(!e.client_info)throw Ue.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");this.logger.trace("TokenCache - homeAccountId from response"),this.loadIdToken(e.id_token,e.client_info,s.hostnameAndPort,s.tenant,i),this.loadAccessToken(t,e,e.client_info,s.hostnameAndPort,s.tenant,i)}}},n.prototype.loadIdToken=function(t,e,i,r,o){var s=rh.createIdTokenEntity(e,i,t,this.config.auth.clientId,r),a=new ma(t,this.cryptoObj),l=o.clientInfo?Fi.createAccount(o.clientInfo,e,a,void 0,void 0,void 0,i):Fi.createGenericAccount(e,a,void 0,void 0,void 0,i);if(!this.isBrowserEnvironment)throw Ue.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading id token"),this.storage.setAccount(l),this.storage.setIdTokenCredential(s)},n.prototype.loadAccessToken=function(t,e,i,r,o,s){if(e.access_token){if(!e.expires_in)throw Ue.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!s.extendedExpiresOn)throw Ue.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var a=new fr(t.scopes).printScopes(),l=s.expiresOn||e.expires_in+(new Date).getTime()/1e3,u=oh.createAccessTokenEntity(i,r,e.access_token,this.config.auth.clientId,o,a,l,s.extendedExpiresOn,this.cryptoObj);if(!this.isBrowserEnvironment)throw Ue.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u)}else this.logger.verbose("TokenCache - No access token provided for caching")},n}(),Hte=function(n){function t(e){var i=n.call(this,e)||this;return i.includeRedirectUri=!1,i}return Ti(t,n),t}(BR),Vte=function(n){function t(e,i,r,o,s,a,l,c,u,d){var h=n.call(this,e,i,r,o,s,a,c,u,d)||this;return h.apiId=l,h}return Ti(t,n),t.prototype.acquireToken=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a,c;return Re(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!e.code)throw Ue.createAuthCodeRequiredError();return[4,this.initializeAuthorizationRequest(e,We.Silent)];case 1:i=u.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||J.EMPTY_STRING,i.account||null),r=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),o=at(at({},i),{code:e.code}),[4,this.getClientConfiguration(r,i.authority)];case 3:return s=u.sent(),a=new Hte(s),this.logger.verbose("Auth code client created"),[2,new WR(a,this.browserStorage,o,this.logger,this.config.system.navigateFrameWait).handleCodeResponseFromServer({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},i.state,a.authority,this.networkClient,!1)];case 4:throw(c=u.sent())instanceof ut&&c.setCorrelationId(this.correlationId),r.cacheFailedRequest(c),this.browserStorage.cleanRequestByState(i.state),c;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(Ue.createSilentLogoutUnsupportedError())},t}($c),jte=function(){function n(t,e){this.correlationId=e,this.measureName="msal.measure."+t+"."+this.correlationId,this.startMark="msal.start."+t+"."+this.correlationId,this.endMark="msal.end."+t+"."+this.correlationId}return n.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&"function"==typeof window.performance.mark&&"function"==typeof window.performance.measure&&"function"==typeof window.performance.clearMarks&&"function"==typeof window.performance.clearMeasures&&"function"==typeof window.performance.getEntriesByName},n.prototype.startMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},n.prototype.endMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},n.prototype.flushMeasurement=function(){if(n.supportsBrowserPerformance())try{var t=window.performance.getEntriesByName(this.measureName,"measure");if(t.length>0){var e=t[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),e}}catch{}return null},n}(),Ute=function(n){function t(e,i,r,o,s,a){var l=n.call(this,e,i,r,o,s,a)||this;return l.browserCrypto=new eg(l.logger),l.guidGenerator=new TR(l.browserCrypto),l}return Ti(t,n),t.prototype.startPerformanceMeasuremeant=function(e,i){return new jte(e,i)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var e;return(null===(e=document.visibilityState)||void 0===e?void 0:e.toString())||null},t.prototype.startMeasurement=function(e,i){var r=this,o=this.getPageVisibility(),s=n.prototype.startMeasurement.call(this,e,i);return at(at({},s),{endMeasurement:function(a){return s.endMeasurement(at({startPageVisibility:o,endPageVisibility:r.getPageVisibility()},a))}})},t}(kR),qte=function(){function n(t){this.isBrowserEnvironment=typeof window<"u",this.config=function Dte(n,t){var e=n.auth,i=n.cache,r=n.system,o=n.telemetry,s={clientId:J.EMPTY_STRING,authority:""+J.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:J.EMPTY_STRING,authorityMetadata:J.EMPTY_STRING,redirectUri:J.EMPTY_STRING,postLogoutRedirectUri:J.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:sh.AAD,azureCloudOptions:{azureCloudInstance:zc.None,tenant:J.EMPTY_STRING},skipAuthorityMetadataCache:!1},a={cacheLocation:Ai.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},l={loggerCallback:function(){},logLevel:_i.Info,piiLoggingEnabled:!1},c=at(at({},FR),{loggerOptions:l,networkClient:t?Ln.getBrowserNetworkClient():yte,navigationClient:new bte,loadFrameTimeout:0,windowHashTimeout:r?.loadFrameTimeout||6e4,iframeHashTimeout:r?.loadFrameTimeout||6e3,navigateFrameWait:t&&Ln.detectIEOrEdge()?500:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:r?.nativeBrokerHandshakeTimeout||2e3}),u={application:{appName:J.EMPTY_STRING,appVersion:J.EMPTY_STRING}};return{auth:at(at({},s),e),cache:at(at({},a),i),system:at(at({},c),r),telemetry:at(at({},u),o)}}(t,this.isBrowserEnvironment),this.initialized=!1,this.logger=new MR(this.config.system.loggerOptions,mw,ah),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new Ute(this.config.auth.clientId,this.config.auth.authority,this.logger,mw,ah,this.config.telemetry.application):new ote(this.config.auth.clientId,this.config.auth.authority,this.logger,mw,ah,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new ite(this.logger,this.performanceClient):tg,this.eventHandler=new Ste(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new pw(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):function(n,t){return new pw(n,{cacheLocation:Ai.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},tg,t)}(this.config.auth.clientId,this.logger),this.nativeInternalStorage=new pw(this.config.auth.clientId,{cacheLocation:Ai.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},this.browserCrypto,this.logger),this.tokenCache=new Bte(this.config,this.browserStorage,this.logger,this.browserCrypto)}return n.prototype.initialize=function(){return ke(this,void 0,void 0,function(){var t,e;return Re(this,function(i){switch(i.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(this.eventHandler.emitEvent(st.INITIALIZE_START),!this.config.system.allowNativeBroker)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),t=this,[4,pl.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout)];case 2:return t.nativeExtensionProvider=i.sent(),[3,4];case 3:return e=i.sent(),this.logger.verbose(e),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(st.INITIALIZE_END),[2]}})})},n.prototype.handleRedirectPromise=function(t){return ke(this,void 0,void 0,function(){var e,i,r,o,s,a,l,c,u=this;return Re(this,function(d){return this.logger.verbose("handleRedirectPromise called"),Ln.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e=this.getAllAccounts(),this.isBrowserEnvironment?(typeof(r=this.redirectResponse.get(i=t||J.EMPTY_STRING))>"u"?(this.eventHandler.emitEvent(st.HANDLE_REDIRECT_START,We.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),s=void 0,o&&pl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!t?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new Kc(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,o.accountId,this.nativeInternalStorage,o.correlationId),s=a.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),l=this.browserStorage.getTemporaryCache(an.CORRELATION_ID,!0)||J.EMPTY_STRING,c=this.createRedirectClient(l),s=c.handleRedirectPromise(t)),r=s.then(function(h){return h&&(e.length0?st.ACQUIRE_TOKEN_FAILURE:st.LOGIN_FAILURE,We.Redirect,null,h),u.eventHandler.emitEvent(st.HANDLE_REDIRECT_END,We.Redirect),h}),this.redirectResponse.set(i,r)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,r]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},n.prototype.acquireTokenRedirect=function(t){return ke(this,void 0,void 0,function(){var e,i,r,o,s,a=this;return Re(this,function(l){return e=this.getRequestCorrelationId(t),this.logger.verbose("acquireTokenRedirect called",e),this.preflightBrowserEnvironmentCheck(We.Redirect),i=this.getAllAccounts().length>0,this.eventHandler.emitEvent(i?st.ACQUIRE_TOKEN_START:st.LOGIN_START,We.Redirect,t),this.nativeExtensionProvider&&this.canUseNative(t)?(o=new Kc(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),r=o.acquireTokenRedirect(t).catch(function(c){if(c instanceof Zo&&c.isFatal())return a.nativeExtensionProvider=void 0,a.createRedirectClient(t.correlationId).acquireToken(t);if(c instanceof Co)return a.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),a.createRedirectClient(t.correlationId).acquireToken(t);throw a.browserStorage.setInteractionInProgress(!1),c})):(s=this.createRedirectClient(t.correlationId),r=s.acquireToken(t)),[2,r.catch(function(c){throw a.eventHandler.emitEvent(i?st.ACQUIRE_TOKEN_FAILURE:st.LOGIN_FAILURE,We.Redirect,null,c),c})]})})},n.prototype.acquireTokenPopup=function(t){var e=this,i=this.getRequestCorrelationId(t),r=this.performanceClient.startMeasurement(di.AcquireTokenPopup,i);try{this.logger.verbose("acquireTokenPopup called",i),this.preflightBrowserEnvironmentCheck(We.Popup)}catch(l){return Promise.reject(l)}var o=this.getAllAccounts();return this.eventHandler.emitEvent(o.length>0?st.ACQUIRE_TOKEN_START:st.LOGIN_START,We.Popup,t),(this.canUseNative(t)?this.acquireTokenNative(t,Cn.acquireTokenPopup).then(function(l){return e.browserStorage.setInteractionInProgress(!1),r.endMeasurement({success:!0,isNativeBroker:!0,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),r.flushMeasurement(),l}).catch(function(l){if(l instanceof Zo&&l.isFatal())return e.nativeExtensionProvider=void 0,e.createPopupClient(t.correlationId).acquireToken(t);if(l instanceof Co)return e.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),e.createPopupClient(t.correlationId).acquireToken(t);throw e.browserStorage.setInteractionInProgress(!1),l}):this.createPopupClient(t.correlationId).acquireToken(t)).then(function(l){var c=o.length0?st.ACQUIRE_TOKEN_FAILURE:st.LOGIN_FAILURE,We.Popup,null,l),r.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),r.flushMeasurement(),Promise.reject(l)})},n.prototype.ssoSilent=function(t){return ke(this,void 0,void 0,function(){var e,i,r,o,s,a=this;return Re(this,function(l){return e=this.getRequestCorrelationId(t),i=at(at({},t),{prompt:Li.NONE,correlationId:e}),this.preflightBrowserEnvironmentCheck(We.Silent),r=this.performanceClient.startMeasurement(di.SsoSilent,e),this.logger.verbose("ssoSilent called",e),this.eventHandler.emitEvent(st.SSO_SILENT_START,We.Silent,i),this.canUseNative(i)?o=this.acquireTokenNative(i,Cn.ssoSilent).catch(function(c){if(c instanceof Zo&&c.isFatal())return a.nativeExtensionProvider=void 0,a.createSilentIframeClient(i.correlationId).acquireToken(i);throw c}):(s=this.createSilentIframeClient(i.correlationId),o=s.acquireToken(i)),[2,o.then(function(c){return a.eventHandler.emitEvent(st.SSO_SILENT_SUCCESS,We.Silent,c),r.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),r.flushMeasurement(),c}).catch(function(c){throw a.eventHandler.emitEvent(st.SSO_SILENT_FAILURE,We.Silent,null,c),r.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),r.flushMeasurement(),c})]})})},n.prototype.acquireTokenByCode=function(t){return ke(this,void 0,void 0,function(){var e,i,r,o,s=this;return Re(this,function(a){e=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck(We.Silent),this.logger.trace("acquireTokenByCode called",e),this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_START,We.Silent,t),i=this.performanceClient.startMeasurement(di.AcquireTokenByCode,t.correlationId);try{if(t.code)return(o=this.hybridAuthCodeResponses.get(r=t.code))?(this.logger.verbose("Existing acquireTokenByCode request found",t.correlationId),i.endMeasurement({success:!0}),i.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",e),o=this.acquireTokenByCodeAsync(at(at({},t),{correlationId:e})).then(function(l){return s.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_SUCCESS,We.Silent,l),s.hybridAuthCodeResponses.delete(r),i.endMeasurement({success:!0,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length,isNativeBroker:l.fromNativeBroker}),i.flushMeasurement(),l}).catch(function(l){throw s.hybridAuthCodeResponses.delete(r),s.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_FAILURE,We.Silent,null,l),i.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),i.flushMeasurement(),l}),this.hybridAuthCodeResponses.set(r,o)),[2,o];if(t.nativeAccountId){if(this.canUseNative(t,t.nativeAccountId))return[2,this.acquireTokenNative(t,Cn.acquireTokenByCode,t.nativeAccountId).catch(function(l){throw l instanceof Zo&&l.isFatal()&&(s.nativeExtensionProvider=void 0),l})];throw Ue.createUnableToAcquireTokenFromNativePlatformError()}throw Ue.createAuthCodeOrNativeAccountIdRequiredError()}catch(l){throw this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_FAILURE,We.Silent,null,l),i.endMeasurement({errorCode:l instanceof ut&&l.errorCode||void 0,subErrorCode:l instanceof ut&&l.subError||void 0,success:!1}),l}return[2]})})},n.prototype.acquireTokenByCodeAsync=function(t){return ke(this,void 0,void 0,function(){return Re(this,function(r){switch(r.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",t.correlationId),[4,this.createSilentAuthCodeClient(t.correlationId).acquireToken(t)];case 1:return[2,r.sent()]}})})},n.prototype.acquireTokenByRefreshToken=function(t){return ke(this,void 0,void 0,function(){var e,r=this;return Re(this,function(o){return Ln.blockReloadInHiddenIframes(),e=this.performanceClient.startMeasurement(di.AcquireTokenByRefreshToken,t.correlationId),this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_NETWORK_START,We.Silent,t),[2,this.createSilentRefreshClient(t.correlationId).acquireToken(t).then(function(s){return e.endMeasurement({success:!0,fromCache:s.fromCache,accessTokenSize:s.accessToken.length,idTokenSize:s.idToken.length}),s}).catch(function(s){if(s instanceof dl&&"invalid_grant"===s.errorCode&&!(s instanceof Co))return r.logger.verbose("Refresh token expired or invalid, attempting acquire token by iframe",t.correlationId),r.createSilentIframeClient(t.correlationId).acquireToken(t).then(function(d){return e.endMeasurement({success:!0,fromCache:d.fromCache,accessTokenSize:d.accessToken.length,idTokenSize:d.idToken.length}),d}).catch(function(d){throw e.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d});throw e.endMeasurement({success:!1}),s})]})})},n.prototype.logout=function(t){return ke(this,void 0,void 0,function(){var e;return Re(this,function(i){return e=this.getRequestCorrelationId(t),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",e),[2,this.logoutRedirect(at({correlationId:e},t))]})})},n.prototype.logoutRedirect=function(t){return ke(this,void 0,void 0,function(){var e;return Re(this,function(r){return e=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck(We.Redirect),[2,this.createRedirectClient(e).logout(t)]})})},n.prototype.logoutPopup=function(t){try{var e=this.getRequestCorrelationId(t);return this.preflightBrowserEnvironmentCheck(We.Popup),this.createPopupClient(e).logout(t)}catch(r){return Promise.reject(r)}},n.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},n.prototype.getAccountByUsername=function(t){var e=this.getAllAccounts();return!$e.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+t),e.filter(function(i){return i.username.toLowerCase()===t.toLowerCase()})[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},n.prototype.getAccountByHomeId=function(t){var e=this.getAllAccounts();return!$e.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+t),e.filter(function(i){return i.homeAccountId===t})[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},n.prototype.getAccountByLocalId=function(t){var e=this.getAllAccounts();return!$e.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+t),e.filter(function(i){return i.localAccountId===t})[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},n.prototype.setActiveAccount=function(t){this.browserStorage.setActiveAccount(t)},n.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},n.prototype.preflightBrowserEnvironmentCheck=function(t,e){if(void 0===e&&(e=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Ln.blockNonBrowserEnvironment(this.isBrowserEnvironment),Ln.blockRedirectInIframe(t,this.config.system.allowRedirectInIframe),Ln.blockReloadInHiddenIframes(),Ln.blockAcquireTokenInPopups(),Ln.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t===We.Redirect&&this.config.cache.cacheLocation===Ai.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Hf.createInMemoryRedirectUnavailableError();(t===We.Redirect||t===We.Popup)&&this.preflightInteractiveRequest(e)},n.prototype.preflightInteractiveRequest=function(t){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Ln.blockReloadInHiddenIframes(),t&&this.browserStorage.setInteractionInProgress(!0)},n.prototype.acquireTokenNative=function(t,e,i){return ke(this,void 0,void 0,function(){return Re(this,function(o){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw Ue.createNativeConnectionNotEstablishedError();return[2,new Kc(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,e,this.performanceClient,this.nativeExtensionProvider,i||this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId).acquireToken(t)]})})},n.prototype.canUseNative=function(t,e){if(this.logger.trace("canUseNative called"),!pl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(t.prompt)switch(t.prompt){case Li.NONE:case Li.CONSENT:case Li.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+t.prompt+" is not compatible with native flow, returning false"),!1}return!(!e&&!this.getNativeAccountId(t)&&(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),1))},n.prototype.getNativeAccountId=function(t){var e=t.account||this.browserStorage.getAccountInfoByHints(t.loginHint,t.sid)||this.getActiveAccount();return e&&e.nativeAccountId||""},n.prototype.createPopupClient=function(t){return new Pte(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createRedirectClient=function(t){return new Lte(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createSilentIframeClient=function(t){return new Nte(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createSilentCacheClient=function(t){return new zR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentRefreshClient=function(t){return new Fte(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentAuthCodeClient=function(t){return new Vte(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.addEventCallback=function(t){return this.eventHandler.addEventCallback(t)},n.prototype.removeEventCallback=function(t){this.eventHandler.removeEventCallback(t)},n.prototype.addPerformanceCallback=function(t){return this.performanceClient.addPerformanceCallback(t)},n.prototype.removePerformanceCallback=function(t){return this.performanceClient.removePerformanceCallback(t)},n.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},n.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},n.prototype.getTokenCache=function(){return this.tokenCache},n.prototype.getLogger=function(){return this.logger},n.prototype.setLogger=function(t){this.logger=t},n.prototype.initializeWrapperLibrary=function(t,e){this.browserStorage.setWrapperMetadata(t,e)},n.prototype.setNavigationClient=function(t){this.navigationClient=t},n.prototype.getConfiguration=function(){return this.config},n.prototype.getRequestCorrelationId=function(t){return t?.correlationId?t.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():J.EMPTY_STRING},n}(),zte=function(n){function t(e){var i=n.call(this,e)||this;return i.activeSilentTokenRequests=new Map,i}return Ti(t,n),t.prototype.loginRedirect=function(e){return ke(this,void 0,void 0,function(){var i;return Re(this,function(r){return i=this.getRequestCorrelationId(e),this.logger.verbose("loginRedirect called",i),[2,this.acquireTokenRedirect(at({correlationId:i},e||BI))]})})},t.prototype.loginPopup=function(e){var i=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",i),this.acquireTokenPopup(at({correlationId:i},e||BI))},t.prototype.acquireTokenSilent=function(e){return ke(this,void 0,void 0,function(){var i,r,o,a,l,c,u=this;return Re(this,function(d){if(i=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(di.AcquireTokenSilent,i),this.preflightBrowserEnvironmentCheck(We.Silent),this.logger.verbose("acquireTokenSilent called",i),!(o=e.account||this.getActiveAccount()))throw Ue.createNoAccountError();return a=JSON.stringify({clientId:this.config.auth.clientId,authority:e.authority||J.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:o.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid}),typeof(l=this.activeSilentTokenRequests.get(a))>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",i),c=this.acquireTokenSilentAsync(at(at({},e),{correlationId:i}),o).then(function(h){return u.activeSilentTokenRequests.delete(a),r.endMeasurement({success:!0,fromCache:h.fromCache,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,isNativeBroker:h.fromNativeBroker}),r.flushMeasurement(),h}).catch(function(h){throw u.activeSilentTokenRequests.delete(a),r.endMeasurement({success:!1}),r.flushMeasurement(),h}),this.activeSilentTokenRequests.set(a,c),[2,c]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",i),r.endMeasurement({success:!0}),r.discardMeasurement(),[2,l])})})},t.prototype.acquireTokenSilentAsync=function(e,i){return ke(this,void 0,void 0,function(){var r,o,s,a,l,c=this;return Re(this,function(u){switch(u.label){case 0:return this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_START,We.Silent,e),r=this.performanceClient.startMeasurement(di.AcquireTokenSilentAsync,e.correlationId),pl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&i.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),s=at(at({},e),{account:i}),o=this.acquireTokenNative(s,Cn.acquireTokenSilent_silentFlow).catch(function(d){return ke(c,void 0,void 0,function(){return Re(this,function(f){if(d instanceof Zo&&d.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,[2,this.createSilentIframeClient(e.correlationId).acquireToken(e)];throw d})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),[4,(a=this.createSilentCacheClient(e.correlationId)).initializeSilentRequest(e,i)];case 2:l=u.sent(),o=a.acquireToken(l).catch(function(){return ke(c,void 0,void 0,function(){return Re(this,function(d){return[2,this.acquireTokenByRefreshToken(l)]})})}),u.label=3;case 3:return[2,o.then(function(d){return c.eventHandler.emitEvent(st.ACQUIRE_TOKEN_SUCCESS,We.Silent,d),r.endMeasurement({success:!0,fromCache:d.fromCache,accessTokenSize:d.accessToken.length,idTokenSize:d.idToken.length,isNativeBroker:d.fromNativeBroker}),d}).catch(function(d){throw c.eventHandler.emitEvent(st.ACQUIRE_TOKEN_FAILURE,We.Silent,null,d),r.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d})]}})})},t}(qte);let Gte=(()=>{class n{constructor(e,i){this.domSanitizer=e,this.cdRef=i,this.sessionSet=!1,localStorage.getItem("webInt")}ngOnInit(){Office.onReady().then(()=>{Office.context.ui.addHandlerAsync(Office.EventType.DialogParentMessageReceived,this.onMessageFromParent.bind(this)),Office.context.ui.messageParent("ready")})}onMessageFromParent(e){console.log("ON MESSAGE"),"message"in e&&(console.log("On Message"),console.log(this.webInt),console.log("Got Message"),console.log("TEST:"),console.log(e),this.webInt=e.message,console.log("WEB INT CHANGED"),console.log(this.webInt),this.sessionSet=!0,this.redirectURL="https://localhost:3000/businessmail?redirect",window.open(e.message+"?isOutlookClient=true","_self"))}}return n.\u0275fac=function(e){return new(e||n)(p(Ba),p(Bt))},n.\u0275cmp=ze({type:n,selectors:[["app-redirect"]],decls:2,vars:0,template:function(e,i){1&e&&(g(0,"p"),j(1,"Redirecting..."),v())}}),n})();const vw=["name","companyName","birthdate","-BLANK-","phone","cellphone","homephone","-BLANK-","homepage","skype","pointer","companyPointer","isCompany","additional"];function $R(n,t){const e=vw.indexOf(n.key),i=vw.indexOf(t.key);return-1===e&&-1===i?0:-1===e?1:-1===i||ei?1:0}(n=>{const t=[];vw.forEach((e,i)=>{e.includes("-BLANK-")&&t.push(i)})})();let Yc=(()=>{class n{constructor(e,i,r){this.waitlist=e,this.messageService=i,this.globals=r,this.subscriptions={}}waitForDisplayChanges(e,i,r){this.initKey(e);for(const o of i)this.subscriptions[e].push(this.changeAttachDisplay(o).subscribe(()=>{r.detectChanges()}))}unsubscribeAll(e){if(this.subscriptions[e])for(const i of this.subscriptions[e])i.unsubscribe()}showInfoToast(){this.messageService.showInfo(this.globals.languageConfLocal.attachments)}get getInfoText(){return this.globals.languageConfLocal.attachments}initKey(e){null==this.subscriptions[e]&&(this.subscriptions[e]=[])}changeAttachDisplay(e){return new b(i=>this.waitlist.addToWaitList(e,i))}}return n.\u0275fac=function(e){return new(e||n)(T(Ji),T(en),T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wte=["searchExpansionPanel"],$te=["searchTextInput"];function Kte(n,t){if(1&n){const e=je();g(0,"span",17),X("click",function(r){return oe(e),se(x(2).clearTextClicked(r))}),j(1,"cancel"),v()}}function Yte(n,t){1&n&&(g(0,"span",18),j(1,"expand_less"),v())}function Qte(n,t){1&n&&(g(0,"span",18),j(1,"search"),v())}function Xte(n,t){if(1&n&&(g(0,"mat-option",22),j(1),v()),2&n){const e=t.$implicit;y("value",e.value),m(1),we(e.viewValue)}}function Zte(n,t){if(1&n){const e=je();g(0,"mat-form-field",19)(1,"mat-label"),j(2),v(),g(3,"mat-select",20),X("valueChange",function(r){return oe(e),se(x(2).selectedDB=r)})("selectionChange",function(){return oe(e),se(x(2).selectedDBChanged())}),V(4,Xte,2,2,"mat-option",21),v()()}if(2&n){const e=x(2);m(2),we(e.globals.languageConfLocal.addressDatabase),m(1),y("value",e.selectedDB),m(1),y("ngForOf",e.databases)}}function Jte(n,t){if(1&n&&(g(0,"div",23),j(1),v()),2&n){const e=x(2);m(1),Qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function ene(n,t){if(1&n){const e=je();g(0,"div",24),X("click",function(r){return oe(e),se(x(2).clickedElement(r))})("dblclick",function(r){return oe(e),se(x(2).dblClickedElement(r))}),xe(1,"img",25),g(2,"div",26)(3,"span",27),j(4),v(),xe(5,"br"),g(6,"span",28),j(7),v(),xe(8,"br"),g(9,"span",28),j(10),v(),xe(11,"br"),v()()}if(2&n){const e=t.$implicit,i=t.index,r=x(2);Ot("title",r.parseHtmlEntities(e.lineOne)),ot("data-fdme",e.fdMe)("data-email",e.email)("data-order",i+1),m(1),y("src",r.datasource.getImageSrc(e.image),Zn),m(2),Ot("title",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")),m(1),Qe(" ",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")," "),m(2),Ot("title",r.parseHtmlEntities(e.lineTwo)),m(1),we(r.parseHtmlEntities(e.lineTwo)),m(2),Ot("title",r.parseHtmlEntities(e.lineThree)),m(1),we(r.parseHtmlEntities(e.lineThree))}}function tne(n,t){if(1&n){const e=je();g(0,"div",29)(1,"button",30),X("click",function(){return oe(e),se(x(2).addSelectedTo("requiredAttendees"))}),j(2),v(),g(3,"button",30),X("click",function(){return oe(e),se(x(2).addSelectedTo("optionalAttendees"))}),j(4),v()()}if(2&n){const e=x(2);m(2),we(e.globals.languageConfLocal.requiredAttendee),m(2),we(e.globals.languageConfLocal.optionalAttendee)}}function nne(n,t){if(1&n){const e=je();g(0,"div",29)(1,"button",30),X("click",function(){return oe(e),se(x(2).addSelectedTo("to"))}),j(2),v(),g(3,"button",30),X("click",function(){return oe(e),se(x(2).addSelectedTo("cc"))}),j(4,"Cc"),v(),g(5,"button",30),X("click",function(){return oe(e),se(x(2).addSelectedTo("bcc"))}),j(6,"Bcc"),v()()}if(2&n){const e=x(2);m(2),we(e.globals.languageConfLocal.to)}}function ine(n,t){if(1&n){const e=je();g(0,"div",31)(1,"div",32),X("click",function(r){return oe(e),se(x(2).addSelectedTo("requiredAttendees",r))}),j(2),v(),g(3,"div",32),X("click",function(r){return oe(e),se(x(2).addSelectedTo("optionalAttendees",r))}),j(4),v()()}if(2&n){const e=x(2);m(2),Qe(" ",e.globals.languageConfLocal.requiredAttendee,""),m(2),Qe(" ",e.globals.languageConfLocal.optionalAttendee,"")}}function rne(n,t){if(1&n){const e=je();g(0,"div",31)(1,"div",32),X("click",function(r){return oe(e),se(x(2).addSelectedTo("to",r))}),j(2),v(),g(3,"div",32),X("click",function(r){return oe(e),se(x(2).addSelectedTo("cc",r))}),j(4,"Cc"),v(),g(5,"div",32),X("click",function(r){return oe(e),se(x(2).addSelectedTo("bcc",r))}),j(6,"Bcc"),v()()}if(2&n){const e=x(2);m(2),Qe(" ",e.globals.languageConfLocal.to,"")}}function one(n,t){if(1&n){const e=je();g(0,"div",1),xe(1,"br"),g(2,"mat-expansion-panel",2,3),X("closed",function(){return oe(e),se(x().searchResultsPanelClosed())})("opened",function(){return oe(e),se(x().searchResultsPanelOpened())}),g(4,"mat-expansion-panel-header")(5,"mat-panel-title",4)(6,"mat-form-field",5)(7,"mat-label",6),j(8),v(),g(9,"input",7,8),X("keydown.Space",function(r){return oe(e),se(x().noCloseOnSpace(r))})("input",function(r){return oe(e),se(x().textChanged(r))})("focus",function(r){return oe(e),se(x().searchInputFocused(r))})("click",function(r){return oe(e),se(x().searchInputClicked(r))})("ngModelChange",function(r){return oe(e),se(x().textInSearchInput=r)}),v()(),V(11,Kte,2,0,"span",9),V(12,Yte,2,0,"span",10),V(13,Qte,2,0,"span",10),v()(),V(14,Zte,5,3,"mat-form-field",11),g(15,"div",12),V(16,Jte,2,1,"div",13),V(17,ene,12,11,"div",14),v(),V(18,tne,5,2,"div",15),V(19,nne,7,1,"div",15),V(20,ine,5,2,"div",16),V(21,rne,7,1,"div",16),v()()}if(2&n){const e=sn(10),i=x();m(8),we(i.globals.languageConfLocal.searchInCRMForContacts),m(1),y("ngModel",i.textInSearchInput),m(2),y("ngIf",e.value.length>0),m(1),y("ngIf",i.searchPanelExpanded),m(1),y("ngIf",!i.searchPanelExpanded),m(1),y("ngIf",null!=i.databases&&i.databases.length>0),m(2),y("ngIf",i.showRecentlyUsed),m(1),y("ngForOf",i.searchResultsArray),m(1),y("ngIf",i.isAppointment),m(1),y("ngIf",!i.isAppointment),m(1),y("ngIf",i.isAppointment),m(1),y("ngIf",!i.isAppointment)}}let sne=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.messageService=i,this.mailLoadedService=r,this.ref=o,this.translate=s,this.waitList=a,this.datasource=l,this.lsm=c,this.dps=u,this.compareFunc=$R,this.searchResultsArray=[],this.databases=[],this.selection=new nl(!1),this.showRecentlyUsed=!1,this.initialDBSelection=!1,this.events=["contextmenu","touchstart"],this.lastTap=0,this.gotFocused=!1,this.addressFetched=!1,this.addresses=[],this.subscriptions=[],this.currentAvatarURL="",this.filteredAdditionalValues={},this.commonPointerData={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){let e=Office.context.mailbox.item;e&&(this.isCompose=null==e.itemId,this.isAppointment="appointment"===e.itemType,this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync),this.events.forEach(i=>{document.addEventListener(i,r=>{if(null==r.srcElement.closest("#resultsContainer"))return;let o=document.getElementsByClassName("resultListEntry");if(this.countSelected(o)<=1){this.deselectAll(o);let _=r.srcElement.closest(".resultListEntry");this.selectOneElement(_)}r.preventDefault();let a=document.getElementById("context-menu");if(!a)return;let l=r.clientX||r.touches[0].clientX,c=r.clientY||r.touches[0].clientY,u=a.getBoundingClientRect().height,d=a.getBoundingClientRect().width,h=window.innerWidth,f=window.innerHeight;h-l<=200?(a.style.borderRadius="5px 0 5px 5px",a.style.left=h-d+"px",a.style.top=c+"px",f-c<=200&&(a.style.top=c-u+"px",a.style.borderRadius="5px 5px 0 5px")):(a.style.borderRadius="0 5px 5px 5px",a.style.left=l+"px",a.style.top=c+"px",f-c<=200&&(a.style.top=c-u+"px",a.style.borderRadius="5px 5px 5px 0")),a.style.visibility="visible"},{passive:!1})}),document.addEventListener("touchend",i=>{document.getElementById("context-menu")}),document.addEventListener("click",i=>{let r=document.getElementById("context-menu");!r||(r.style.visibility="hidden")}),this.getContactDBs(),this.dps.addThingToClose("contactSearch",()=>{this.searchExpansionPanel?.close()})}ngOnDestroy(){for(const e of this.subscriptions)e.unsubscribe();this.mailLoadedService.unsubscribeAll(this.constructor.name)}detectChanges(){this.ref.detectChanges()}waitForConnector(){return new b(e=>{this.waitList.addToWaitList("connector",e)})}textChanged(e){this.textInSearchInput.length>0&&this.searchExpansionPanel.open(),this.getContacts()}clearTextClicked(e){this.textInSearchInput="",this.searchPanelExpanded&&(this.getContacts(),this.searchTextInput.nativeElement.focus()),e.stopPropagation()}addSelectedTo(e,i=null){let r=Office.context.mailbox.item;if(r){let o=document.getElementsByClassName("resultListEntry"),s=this.countSelected(o);if(0===s)return void this.translate.get("Nothing is selected!").subscribe(a=>{this.messageService.showWarning(this.globals.languageConfLocal.NothingIsSelected,void 0)});for(let a=0;a{s.status===Office.AsyncResultStatus.Failed?this.messageService.showError("Not able to read outlook item.",void 0):0===s.value.filter(l=>l.emailAddress.toLowerCase()===i.dataset.email.toLowerCase()).length&&(this.datasource.addToRecentlyUsed(i.dataset.fdme),e[r].addAsync([{displayName:i.title,emailAddress:i.dataset.email}]))})}clickedElement(e){let i=document.getElementsByClassName("resultListEntry"),r=this.countSelected(i),o=e.currentTarget,s=o.dataset.order-1;if(!e.ctrlKey&&!e.shiftKey&&this.deselectAll(i,s),e.shiftKey){let a=this.lastSelected,l=s;a>l&&(a=s,l=this.lastSelected),this.selectBetween(i,a,l)}else"true"===o.dataset.selected?this.deselectOneElement(o):(this.selectOneElement(o),this.lastSelected=o.dataset.order-1),!e.ctrlKey&&r>1&&(this.selectOneElement(o),this.lastSelected=o.dataset.order-1)}dblClickedElement(e){let r=Office.context.mailbox.item;this.addOneContact(r,e.currentTarget,this.isAppointment?"requiredAttendees":"to",!1)}deselectAll(e,i=null){for(let r=0;r{this.selectOneElement(e[o])},10)}countSelected(e){let i=0;for(let r=0;r{console.log("DBs:",e),this.filterForContacts(e)}})}filterForContacts(e){const i={};for(const r in e)"GeOfficeAliases"!==r&&"Contact"===e[r].type&&(i[r]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){this.databases=[];for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:e[i]});if(console.log(this.databases),this.databases.length>0){let i=this.lsm.getValue(tn.contactDB);null!==i?this.databases.forEach(r=>{r.value===i&&(this.selectedDB=r.value)}):this.selectedDB=this.databases[0].value}this.getContacts()}selectedDBChanged(){this.getContacts(),this.initialDBSelection?this.initialDBSelection=!1:this.lsm.setValue(tn.contactDB,this.selectedDB)}getContacts(){"ba"===this.globals.system&&(this.showRecentlyUsed=!this.textInSearchInput||0===this.textInSearchInput?.length),this.datasource.fetchSearch(this.selectedDB,void 0,this.textInSearchInput).subscribe({next:e=>{this.searchResultsArray=this.datasource.handleSearchResult(e,da.contacts)}})}searchResultsPanelOpened(){let e=this.searchExpansionPanel._body.nativeElement.childNodes[0];e.style.paddingRight="3px",e.style.paddingLeft="3px",e.style.paddingBottom="3px",e.style.backgroundColor="#ffffff",e.style.zIndex=5,this.searchPanelExpanded=!0,this.searchTextInput.nativeElement.focus()}searchResultsPanelClosed(){this.searchPanelExpanded=!1}searchInputFocused(e){setTimeout(()=>{this.searchExpansionPanel.open()},100),this.gotFocused=!0}searchInputClicked(e){this.gotFocused&&e.stopPropagation(),this.gotFocused=!1}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}noCloseOnSpace(e){e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(en),p(Yc),p(Bt),p(Xt),p(Ji),p(bo),p(Br),p(Fc))},n.\u0275cmp=ze({type:n,selectors:[["app-contact-selector"]],viewQuery:function(e,i){if(1&e&&(Oe(Wte,5),Oe($te,5)),2&e){let r;me(r=ge())&&(i.searchExpansionPanel=r.first),me(r=ge())&&(i.searchTextInput=r.first)}},decls:1,vars:1,consts:[["class","contactSelectorDiv",4,"ngIf"],[1,"contactSelectorDiv"],["hideToggle","",1,"searchResultsPanel","mat-elevation-z0",3,"closed","opened"],["searchExpansionPanel",""],[1,"searchInCRMHeader"],[2,"width","100%","vertical-align","bottom"],[2,"font-size","small"],["matInput","","type","search","id","searchText","name","searchText",3,"ngModel","keydown.Space","input","focus","click","ngModelChange"],["searchTextInput",""],["class","material-symbols-rounded clearIcon",3,"click",4,"ngIf"],["class","material-symbols-rounded searchIcon",4,"ngIf"],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click","dblclick",4,"ngFor","ngForOf"],["class","btn-group",4,"ngIf"],["id","context-menu",4,"ngIf"],[1,"material-symbols-rounded","clearIcon",3,"click"],[1,"material-symbols-rounded","searchIcon"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click","dblclick"],[1,"normalImage",3,"src"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],[1,"btn-group"],[3,"click"],["id","context-menu"],[1,"item",3,"click"]],template:function(e,i){1&e&&V(0,one,22,12,"div",0),2&e&&y("ngIf",!i.isReadMode)},dependencies:[ci,_n,fo,Fo,ps,Ko,Gr,ua,vo,Yo,ew,Wk,$k],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}#resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#context-menu[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 20px #25282a38;color:#1f194c;width:10em;padding:.8em .6em;font-size:13px;position:fixed;visibility:hidden}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:.3em 1.2em}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;cursor:pointer}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#5f5f5f}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}#searchText[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:4.5em;font-size:small}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expanded[_ngcontent-%COMP%]{border:#4d4d4d;border-width:3px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.contactSelectorDiv[_ngcontent-%COMP%]{width:100%;height:-moz-fit-content;height:fit-content}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}.searchIcon[_ngcontent-%COMP%]{position:absolute;right:3px;bottom:22px}.clearIcon[_ngcontent-%COMP%]{position:absolute;right:27px;bottom:22px}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.databaseSearchSelect[_ngcontent-%COMP%] + .searchResultsPanel[_ngcontent-%COMP%]{margin-top:-16px}']}),n})();var fl=(()=>(function(n){n[n.activity=0]="activity"}(fl||(fl={})),fl))();let ane=(()=>{class n{constructor(e){this.globals=e}getImgUrl(e){return this.globals.webInt+e}getLocalImgUrl(e,i){if(i)return"assets/images/defaultCompany_80x104.png";if(null!=e)switch(e.toLowerCase()){case"herr":case"mr":case"mister":case"male":return"assets/images/defaultMan_80x104.png";case"frau":case"mrs":case"ms":case"miss":case"female":return"assets/images/defaultWoman_80x104.png"}return"assets/images/defaultUnisex_80x104.png"}getViewImgFileName(e){return"vwicn"+e.toString().padStart(3,"0")+".png"}getViewIconUrl(e){return this.getImgUrl(this.getViewImgFileName(e))}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const lne=["selectedContact"],cne=["firstDocumentDestination"],une=["secondDocumentDestination"],dne=["docDestSelector"];function hne(n,t){if(1&n&&(g(0,"div",12),j(1),v()),2&n){const e=x();y("title",e.currentEmailSubject),m(1),Qe("",e.currentEmailSubject,"\n")}}function pne(n,t){if(1&n){const e=je();g(0,"button",13),X("click",function(){return oe(e),se(x().documentItem())}),j(1),v()}if(2&n){const e=x();y("disabled",e.noneSelected)("title",e.documentButtonTooltip),m(1),we(e.globals.languageConfLocal.documentVerb)}}function fne(n,t){if(1&n){const e=je();g(0,"button",14),X("click",function(){return oe(e),se(x().updateItem())}),j(1),v()}if(2&n){const e=x();y("title",e.updateButtonTooltip),m(1),we(e.globals.languageConfLocal.updateVerb)}}function mne(n,t){if(1&n&&(g(0,"mat-option",15),j(1),v()),2&n){const e=x();m(1),Qe(" ",e.globals.languageConfLocal.doNotDocument," ")}}function gne(n,t){if(1&n&&(g(0,"mat-option",18)(1,"div",19),j(2),v(),g(3,"div",20),j(4),v()()),2&n){const e=t.$implicit;y("value",e.email),m(2),we(e.display),m(2),we(e.email)}}function _ne(n,t){if(1&n&&(g(0,"mat-optgroup",16),V(1,gne,5,3,"mat-option",17),v()),2&n){const e=x();y("label",e.primaryRecipients),m(1),y("ngForOf",e.addresses)("ngForTrackBy",e.tracker)}}function vne(n,t){if(1&n&&(g(0,"mat-option",18)(1,"div",19),j(2),v(),g(3,"div",20),j(4),v()()),2&n){const e=t.$implicit;y("value",e.email),m(2),we(e.display),m(2),we(e.email)}}function yne(n,t){if(1&n&&(g(0,"mat-optgroup",16),V(1,vne,5,3,"mat-option",17),v()),2&n){const e=x();y("label",e.secondaryRecipients),m(1),y("ngForOf",e.addresses2nd)("ngForTrackBy",e.tracker)}}function bne(n,t){if(1&n&&(g(0,"mat-optgroup",16)(1,"mat-option",18)(2,"div",19),j(3),v(),g(4,"div",20),j(5),v()()()),2&n){const e=x();y("label",e.theOwnerText),m(1),y("value",e.theSender.email),m(2),we(e.theSender.display),m(2),we(e.theSender.email)}}function Cne(n,t){if(1&n&&(g(0,"mat-optgroup",16)(1,"mat-option",18)(2,"div",19),j(3),v(),g(4,"div",20),j(5),v()()()),2&n){const e=x();y("label",e.theAssignedText),m(1),y("value",e.theAssignee.email),m(2),we(e.theAssignee.display),m(2),we(e.theAssignee.email)}}function wne(n,t){if(1&n&&(g(0,"small"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" (",e.dbTitle,")")}}function Ene(n,t){if(1&n){const e=je();g(0,"button",34),X("valueChange",function(r){return se(oe(e).$implicit.pointer=r)})("click",function(){const o=oe(e).$implicit;return se(x(3).subdestinationClick(o.pointer))}),g(1,"span",35),j(2),V(3,wne,2,1,"small",9),v()()}if(2&n){const e=t.$implicit,i=x(3);y("value",e.pointer)("ngClass",e.pointer===i.displayedDestination.pointer?"selectedDestination":""),m(1),y("title",e.name+(e.dbTitle?" ("+e.dbTitle+")":"")),m(1),Oo("",e.name,"",e.companyName?" ("+e.companyName+")":""," "),m(1),y("ngIf",e.dbTitle)}}function Dne(n,t){if(1&n&&(g(0,"div",29)(1,"button",30),xe(2,"img",31),v(),g(3,"mat-menu",null,32),V(5,Ene,4,6,"button",33),v()()),2&n){const e=sn(4),i=x(2);m(1),y("matBadge",i.destinationsToDisplay.length)("matMenuTriggerFor",e),m(1),y("src",i.currentAvatarURL,Zn),m(3),y("ngForOf",i.destinationsToDisplay)}}function Sne(n,t){if(1&n&&(g(0,"div",29),xe(1,"img",31),v()),2&n){const e=x(2);m(1),y("src",e.currentAvatarURL,Zn)}}function Ane(n,t){if(1&n&&(g(0,"a",36),j(1),v()),2&n){const e=x(2);y("href",e.displayedDestination.parentUrl,Zn)("title",e.displayedDestination.companyName),m(1),we(e.displayedDestination.companyName)}}function Tne(n,t){if(1&n){const e=je();g(0,"mat-checkbox",25,37),X("change",function(r){return oe(e),se(x(2).destinationSelectorClicked(r))}),v()}if(2&n){const e=x(2);y("name",e.displayedDestination.companyPointer)("checked",e.initSelectedDoc&&e.displayedDestination.companyPointer===e.initSelectedDoc)}}function xne(n,t){if(1&n&&(g(0,"div")(1,"span",38),j(2,"cake"),v(),g(3,"span",39),j(4),v()()),2&n){const e=x(2);m(4),we(e.displayedDestination.additional.birthdate)}}function Ine(n,t){if(1&n&&(g(0,"div")(1,"span",38),j(2,"call"),v(),g(3,"a",40),j(4),v()()),2&n){const e=x(2);m(3),Ot("href","tel:"+e.displayedDestination.additional.phone,Zn),m(1),we(e.displayedDestination.additional.phone)}}function Mne(n,t){if(1&n&&(g(0,"div")(1,"span",38),j(2,"phone_android"),v(),g(3,"a",40),j(4),v()()),2&n){const e=x(2);m(3),Ot("href","tel:"+e.displayedDestination.additional.cellphone,Zn),m(1),we(e.displayedDestination.additional.cellphone)}}function kne(n,t){if(1&n){const e=je();g(0,"div",21)(1,"div",22),V(2,Dne,6,4,"div",23),V(3,Sne,2,1,"div",23),g(4,"a",24),j(5),v(),g(6,"mat-checkbox",25,26),X("change",function(r){return oe(e),se(x().destinationSelectorClicked(r))}),v(),V(9,Ane,2,3,"a",27),V(10,Tne,3,2,"mat-checkbox",28),v(),V(11,xne,5,1,"div",9),V(12,Ine,5,2,"div",9),V(13,Mne,5,2,"div",9),v()}if(2&n){const e=x();m(2),y("ngIf",e.destinationsToDisplay&&e.destinationsToDisplay.length>1),m(1),y("ngIf",e.destinationsToDisplay&&1===e.destinationsToDisplay.length),m(1),y("href",e.displayedDestination.url,Zn)("title",e.displayedDestination.name),m(1),we(e.displayedDestination.name),m(1),y("name",e.displayedDestination.pointer)("checked",e.initSelectedDoc&&e.displayedDestination.pointer===e.initSelectedDoc),m(3),y("ngIf",!e.displayedDestination.isCompany&&e.displayedDestination.companyName&&e.displayedDestination.companyName.length>0),m(1),y("ngIf",!e.displayedDestination.isCompany&&e.displayedDestination.companyName&&e.displayedDestination.companyName.length>0),m(1),y("ngIf",e.displayedDestination.additional.birthdate),m(1),y("ngIf",e.displayedDestination.additional.phone),m(1),y("ngIf",e.displayedDestination.additional.cellphone)}}function Rne(n,t){if(1&n&&(g(0,"div")(1,"div"),j(2),v()()),2&n){const e=x();m(2),we(e.globals.languageConfLocal.emailNotFoundInCRM)}}function One(n,t){if(1&n&&(g(0,"div")(1,"div"),j(2),v()()),2&n){const e=x();m(2),we(e.globals.languageConfLocal.afterSendNoAutomaticDocument)}}function Pne(n,t){if(1&n){const e=je();g(0,"div")(1,"button",41),X("click",function(){return oe(e),se(x().quickCreate())}),j(2),v()()}if(2&n){const e=x();m(1),Ot("disabled",!e.extractedContactData),y("title",e.globals.languageConfLocal.ContactQuickCreation),m(1),we(e.globals.languageConfLocal.ContactQuickCreation)}}function Lne(n,t){if(1&n&&(g(0,"mat-option",18),j(1),v()),2&n){const e=t.$implicit;y("value",e.db),m(1),Qe(" ",e.alias," ")}}function Nne(n,t){if(1&n){const e=je();g(0,"mat-form-field",42)(1,"mat-label"),j(2),v(),g(3,"mat-select",43),X("valueChange",function(r){return oe(e),se(x().selectedOfficeDB=r)})("selectionChange",function(){return oe(e),se(x().setOfficeDB())}),V(4,Lne,2,2,"mat-option",44),v()()}if(2&n){const e=x();m(2),we(e.globals.languageConfLocal.officeDatabase),m(1),y("value",e.selectedOfficeDB),m(1),y("ngForOf",e.officeDatabases)}}let Fne=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this.globals=e,this.messageService=i,this.addressService=r,this.translate=o,this.datasource=s,this.ref=a,this.connectionService=l,this.waitListService=c,this.lsm=u,this.imageService=d,this.dialogService=h,this.ews=f,this.compareFunc=$R,this.isNew=!0,this.isUpdate=!1,this.searchTextInput="",this.searchValue="",this.selection=new nl(!1),this.showRecentlyUsed=!0,this.isSet=!1,this.itRuns=!1,this.noneSelected=!1,this.whatItemIsThis="",this.theOwnerText="",this.theAssignedText="",this.primaryRecipients="",this.secondaryRecipients="",this.primaryPointer="",this.showDocumentButton=!1,this.doNotDocConst="doNotDocument",this.incomingRecognition=new RegExp("(X-MS-Exchange-Organization-MessageDirectionality): *(Incoming|Originating)"),this.subscriptions=[],this.currentAvatarURL="",this.filteredAdditionalValues={},this.commonPointerData={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.selectedEmailDropdown=new Yu,this.recognizeCurrentItem();let e=Office.context.mailbox.item;e?.addHandlerAsync(Office.EventType.RecipientsChanged,this.recipientChanged,{asyncContext:this},i=>{Office}),this.waitForDocumentDestinationCheckChanged().subscribe({next:()=>{this.detectChanges()}}),this.waitForItemRecognition().subscribe(i=>{"appointment"===e?.itemType?this.ews.GetExtendedData(i).subscribe(r=>{r&&(r.selEm===this.doNotDocConst&&(this.noneSelected=!0,this.noMoreAutoSelect=!0),void 0!==this.contactCreationOpened&&(this.contactCreationOpened=void 0),void 0===r.documentTarget&&void 0===r.selEm?(this.isNew=!0,this.lsm.setValue(tn.appointmentIsNew,"1")):this.isNew="1"===this.lsm.getValue(tn.appointmentIsNew),"gi"===this.globals.system?e?.requiredAttendees.getAsync(o=>{this.isNew&&void 0===r.docEm&&o.value.length>0&&(r.selEm=o.value[0].emailAddress,r.docEm=o.value[0].emailAddress,this.ews.SaveExtendedData(i,r).subscribe(s=>{this.finishAppointmentProcessing(r)}))}):this.finishAppointmentProcessing(r))}):(this.doProcessAddresses(),e?.body.getAsync(Office.CoercionType.Html,{},r=>{this.convertedBody=(0,Gd.convert)(r.value,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),this.datasource.extractContactData(this.convertedBody).subscribe(o=>{this.extractedContactData=o})}))}),this.waitForUpdateBM4ODataCommand().subscribe(i=>{i.selEm=this.selectedEmailAddress,i.documentTarget=this.primaryPointer,i.selDest=this.displayedDestination?.pointer,i.otherDoc=!this.firstDocumentDestination.checked&&!this.secondDocumentDestination.checked,"gi"===this.globals.system&&(i.officeDB=this.selectedOfficeDB)}),this.globals.infoShower=this}finishAppointmentProcessing(e){this.initSelectedDoc=e?.documentTarget??"",e.otherDoc&&(this.initSelectedDoc=""),e.selEm?(this.selectedEmailAddress=e.selEm,this.doSelectContactOverEmail(e.selEm,e.selDest)):this.selectedEmailAddress=this.doNotDocConst,this.doProcessAddresses(e)}recognizeCurrentItem(){let e=Office.context.mailbox.item;if(this.noMoreAutoSelect=!1,e)if(this.globals.incomingMail=!1,this.isAppointment="appointment"===e.itemType,this.isAppointment){this.whatItemIsThis="Meeting",this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync,this.translate.get("translationWait").subscribe(()=>{this.updateButtonTooltip=this.globals.languageConf.updateButtonTooltip,this.theOwnerText=this.globals.languageConfLocal.owner,this.theAssignedText=this.globals.languageConfLocal.assignedTo,this.primaryRecipients=this.globals.languageConfLocal.requiredAttendee,this.secondaryRecipients=this.globals.languageConfLocal.optionalAttendee});let i="1"===this.lsm.getValue(tn.sendInProcess);"function"==typeof e.saveAsync&&this.datasource.IsTaskpaneActive()&&!i?e.saveAsync(r=>{this.currentItemId=r.value,this.itemRecognized()}):(this.currentItemId=e.itemId,this.itemRecognized())}else"function"==typeof e.getAllInternetHeadersAsync?e.getAllInternetHeadersAsync(i=>{(i?.value?.length>0&&this.incomingRecognition.test(i.value)||e?.to[0].emailAddress===Office.context.mailbox.userProfile.emailAddress&&e.from.emailAddress.indexOf("noreply@microsoft.com")>0)&&(this.globals.incomingMail=!0),this.recognizeEmail(e)}):this.recognizeEmail(e);"gi"===this.globals.system?(this.showRecentlyUsed=!1,this.isAppointment&&(this.showDocumentButton=!1)):this.isAppointment&&(this.showDocumentButton=!1)}recognizeEmail(e){if(e){this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync,this.whatItemIsThis="Email",this.translate.get("translationWait").subscribe(()=>{this.theOwnerText=this.globals.languageConfLocal.sender,this.primaryRecipients="("+this.globals.languageConfLocal.to+") "+this.globals.languageConfLocal.recipients,this.secondaryRecipients="(Cc) "+this.globals.languageConfLocal.recipients}),this.showDocumentButton=this.isReadMode;let i="1"===this.lsm.getValue(tn.sendInProcess);this.isReadMode?(this.translate.get("translateWait").subscribe(()=>{this.documentButtonTooltip=this.globals.languageConfLocal.DocumentTheMail+" "+e?.subject}),this.currentEmailSubject=e.subject,this.currentItemId=e.itemId,this.itemRecognized()):e.saveAsync&&"function"==typeof e.saveAsync&&this.datasource.IsTaskpaneActive()&&!i&&e.saveAsync(r=>{this.currentItemId=r.value,this.itemRecognized()})}}detectChanges(){this.ref.detectChanges()}ngOnDestroy(){clearInterval(this.refreshInt);for(const e of this.subscriptions)e.unsubscribe()}doProcessAddresses(e){this.itRuns||(this.itRuns=!0,this.addressService.newProcessAddress().subscribe({next:i=>{this.ews.GetExtendedData(this.currentItemId).subscribe(r=>{if(i.fromEmail&&(this.theSender=new iC,this.theSender.display=i.fromName,this.theSender.email=i.fromEmail,this.theSender.fromEmail=!0),this.addresses=i.primary,this.theSender){let o=this.addresses.findIndex(s=>s.email.toLowerCase()===this.theSender.email.toLowerCase());o>=0&&this.addresses.splice(o,1)}this.addresses2nd=i.secondary,this.addressesAll=i.primary.concat(i.secondary),r&&r.docEm&&-1===this.addressesAll.findIndex(o=>o.email.toLowerCase()===r.docEm?.toLowerCase())&&(this.theAssignee=new iC,this.theAssignee.email=r.docEm,this.theAssignee.display=r.docEm,this.addressesAll.push(this.theAssignee)),0===this.addressesAll.length&&(r.selEm=this.doNotDocConst,r.docEm=void 0,r.selDest=void 0,this.ews.SaveExtendedData(this.currentItemId,r).subscribe(o=>{this.selectNothing()})),this.addressesAll.push(this.theSender),this.detectChanges(),this.itRuns=!1,this.findCRMAddress(0,e)})}}))}findCRMAddress(e,i){if(this.noMoreAutoSelect)return;if(i){let s=i.selEm;if(!s&&0===e){s=this.addressesAll[0].email,this.selectedContact.value=s;let a=i.otherDoc;(i=new Dm).selDest="INITIALIZE",i.otherDoc=a}if(s)return void this.fetchEmailDataFromCRM(s,e,!0,i)}if(this.globals.incomingMail){let s=this.addressesAll.find(a=>a.fromEmail);if(s)return void this.fetchEmailDataFromCRM(s.email,e,!1,i)}if(this.addressesAll.some(s=>s.email===this.selectedContact.value&&!s.fromEmail))return;if(this.addressesAll[e]&&this.addressesAll[e].fromEmail&&this.findCRMAddress(e+1),e+1>this.addressesAll.length){if(!(this.addressesAll.length>0))return void this.selectNothing();{let s=this.addressesAll[0];if(!s||s.fromEmail)return void this.selectNothing();this.selectedContact.value=s.email,this.selectedContactChanged(null,s.email)}return void this.detectChanges()}let r=this.addressesAll[e];r.fromEmail||this.fetchEmailDataFromCRM(r.email,e,!1,i)}fetchEmailDataFromCRM(e,i,r=!1,o){let s=new Yt;s=s.set("mail",e),this.connectionService.processAddress(s).subscribe(a=>{this.selectedAddressDetails=a,console.log("Addressdetails:",this.selectedAddressDetails),this.processAvatar(this.selectedAddressDetails.data[0]),this.definePossibleDestinations().subscribe(()=>{if(!(this.selectedAddressDetails&&this.selectedAddressDetails.data.length>0))return this.globals.incomingMail?(this.selectedContact.value=e,this.selectedContactChanged(null,e,null),void this.destinationChanged(o)):void(r||this.findCRMAddress(i+1));void 0===this.selectedContact.value||!this.addressesAll.some(l=>l.email===this.selectedContact.value)||this.noneSelected||e&&e!==this.selectedContact.value?(this.selectedContact.value=e,this.selectedContactChanged(null,e,this.selectedAddressDetails.data[0].pointer),this.destinationChanged(o)):(this.detectChanges(),this.destinationChanged(o))})})}processAvatar(e){let i=e?.additional?.imageURL,r=e?.additional?.base64image,o=e?.additional?.gender;this.currentAvatarURL=r||(i?this.imageService.getImgUrl(i):this.imageService.getLocalImgUrl(o,e?.isCompany))}selectNothing(){this.destinationsToDisplay=[],this.displayedDestination=null,this.destinationChanged(),this.selectedEmailAddress=this.doNotDocConst,this.noneSelected=!0,this.detectChanges()}selectedContactChanged(e,i="",r=null){if(this.initSelectedDoc="",this.unselectDestinations(),this.isAppointment&&this.selectedEmailAddress===this.doNotDocConst){let o=new Dm;return o.selEm=this.doNotDocConst,this.ews.SaveExtendedData(this.currentItemId,o).subscribe(s=>{}),this.selectNothing(),this.noMoreAutoSelect=!0,void this.globals.hideSpinner()}this.noMoreAutoSelect=!i&&!r&&this.selectedEmailAddress===this.doNotDocConst,this.officeDatabases=[],this.noneSelected=!1,i||(i=this.selectedContact.value),this.lsm.setValue(tn.selectedEmail,i),i&&i!==this.doNotDocConst?r?(this.setDestinationInfo(r),this.detectChanges()):this.doSelectContactOverEmail(i):(this.ews.GetExtendedData(this.currentItemId).subscribe(o=>{o.selEm=i,this.ews.SaveExtendedData(this.currentItemId,o).subscribe(s=>{})}),this.noneSelected=!0,this.displayedDestination=null,this.selectedAddressDetails={},this.destinationChanged(),this.detectChanges()),this.globals.hideSpinner()}doSelectContactOverEmail(e,i){let r=new Yt;r=r.set("mail",e),this.connectionService.processAddress(r).subscribe(o=>{this.selectedAddressDetails=o,this.definePossibleDestinations().subscribe(()=>{this.selectedAddressDetails&&this.selectedAddressDetails.data.length>0?i&&"appointment"===Office.context.mailbox.item?.itemType?(this.displayedDestination=this.destinationsToDisplay.find(s=>s.pointer===i),this.processAvatar(this.displayedDestination),this.ews.GetExtendedData(this.currentItemId).subscribe(s=>{this.destinationChanged(s),this.detectChanges()})):(this.setDestinationInfo(this.selectedAddressDetails.data[0].pointer),this.destinationChanged(),this.detectChanges()):(this.noneSelected=!0,this.ews.GetExtendedData(this.currentItemId).subscribe(s=>{s.selEm=e,s.selDest="",this.destinationChanged(s),this.detectChanges(),this.ews.SaveExtendedData(this.currentItemId,s).subscribe(a=>{})}))})})}getOfficeDBs(e,i=null){var r=this;return Ee(function*(){r.getDBConnections().subscribe(o=>{o&&r.extractOfficeDBs(e,o,i)})})()}extractOfficeDBs(e,i,r=null){var o=this;return Ee(function*(){try{let s=e;if(o.officeDatabases=[],o.selectedOfficeDB="",s)if(r===fl.activity){const a=o.extractDBFromPointer(s);i.hasOwnProperty(a)?o.extractOfficeDBsOfContact(s,i):(o.officeDatabases=[{db:a,alias:""}],o.selectedOfficeDB=o.officeDatabases[0].db,o.setOfficeDB(),o.detectChanges())}else o.extractOfficeDBsOfContact(s,i)}catch{o.translate.get("LC39396").subscribe(a=>{o.messageService.showError(a)})}})()}extractOfficeDBsOfContact(e,i){const o=i[this.extractDBFromPointer(e)].officeDBs;for(const s of o)this.officeDatabases.push({db:s,alias:i.GeOfficeAliases[s]});this.officeDatabases.length>=1&&(this.selectedOfficeDB=this.officeDatabases[0].db,this.setOfficeDB()),this.detectChanges(),this.officeDatabases.length<1&&this.translate.get("LC39396").subscribe(s=>{this.messageService.showError(s)})}extractDBFromPointer(e){return e.substring(e.lastIndexOf("|")+1)}subdestinationClick(e){this.initSelectedDoc="",this.unselectDestinations(),this.displayedDestination=this.destinationsToDisplay.find(i=>i.pointer===e),this.destinationChanged(),this.setDestinationInfo(e),this.detectChanges()}definePossibleDestinations(){return new b(e=>{let i=this.selectedAddressDetails.data.filter(r=>!r.isCompany).map(r=>r.companyPointer);this.destinationsToDisplay=this.selectedAddressDetails.data.filter(r=>!r.isCompany||0===i.length||!i.some(o=>o===r.pointer)),this.destinationsToDisplay.length>0?(!this.displayedDestination||!this.displayedDestination.pointer||0===this.displayedDestination.pointer.length||!this.destinationsToDisplay.some(r=>r.pointer===this.displayedDestination.pointer))&&(this.getDBConnections().subscribe(r=>{if(r)for(let o of this.destinationsToDisplay)if(o.pointer){let s=this.extractDBFromPointer(o.pointer);o.dbTitle=r[s].title}}),this.displayedDestination=this.destinationsToDisplay[0]):this.displayedDestination=null,this.globals.mainDestinationCheckboxes=this.destinationCheckboxes,this.displayedDestination?this.ews.GetExtendedData(this.currentItemId).subscribe(r=>{r.selEm=this.displayedDestination.additional.mail,r.documentTarget=this.displayedDestination.pointer,this.ews.SaveExtendedData(this.currentItemId,r).subscribe(o=>{e.next()})}):e.next()})}setDestinationInfo(e,i=null,r=!1){this.lsm.clear(),this.primaryPointer=e,this.documentDestinationCheckChanged(),Office.context.mailbox.item&&(this.lsm.setValue(tn.primaryTarget,e),this.ews.GetExtendedData(this.currentItemId).subscribe(s=>{s.selEm=this.selectedEmailAddress,s.documentTarget=e,s.otherDoc=r,this.displayedDestination&&(s.selDest=this.displayedDestination.pointer),this.ews.SaveExtendedData(this.currentItemId,s).subscribe(a=>{a.value.indexOf("NoError")<0&&this.messageService.showError(this.globals.languageConfLocal.errorWhileSavingCRMData),this.getOfficeDBs(e,i)})}))}setOfficeDB(){Office.context.mailbox.item&&(this.lsm.setValue(tn.officeDB,this.selectedOfficeDB),this.ews.GetExtendedData(this.currentItemId).subscribe(i=>{i.officeDB=this.selectedOfficeDB,this.ews.SaveExtendedData(this.currentItemId,i).subscribe(r=>{})}))}destinationSelectorClicked(e){if(e.checked){this.ews.GetExtendedData(this.currentItemId).subscribe(r=>{r.otherDoc=!1,this.ews.SaveExtendedData(this.currentItemId,r)}),this.officeDatabases=[];let i=this.destinationCheckboxes.toArray();this.globals.otherDestinationCheckboxes&&this.globals.otherDestinationCheckboxes.length>0&&(i=i.concat(this.globals.otherDestinationCheckboxes.toArray())),i.forEach(r=>{r.name!==e.source.name&&(r.checked=!1)}),this.setDestinationInfo(e.source.name)}else this.setDestinationInfo("");this.detectChanges()}selectFirst(){let e=new rR;e.source=this.firstDocumentDestination,e.checked=!0,this.firstDocumentDestination.checked=!0,this.destinationSelectorClicked(e)}tracker(e,i){return i.email}collapsibleClicked(e){let i=e.currentTarget;i.classList.toggle("active");let r=i.nextElementSibling;r.classList.contains("initOpened")&&(r.classList.remove("initOpened"),r.classList.add("content"),r.style.maxHeight=r.scrollHeight+"px"),r.style.maxHeight=r.style.maxHeight?null:r.scrollHeight+"px"}unselectDestinations(){this.secondDocumentDestination&&(this.secondDocumentDestination.checked=!1),this.firstDocumentDestination&&(this.firstDocumentDestination.checked=!1)}tabChanged(e){this.destinationChanged()}destinationChanged(e){let i=this.displayedDestination;(!e||"INITIALIZE"===e.selDest||e.otherDoc)&&this.firstDocumentDestination&&(this.unselectDestinations(),e?.otherDoc||(this.firstDocumentDestination.checked=!0)),this.processAvatar(i);for(const r of this.waitListService.accessWaitList("destinationChanged"))r.next(i)}waitForDestinationChange(){return new b(e=>{this.waitListService.addToWaitList("destinationChanged",e)})}waitForDocumentDestinationCheckChanged(){return new b(e=>{this.waitListService.addToWaitList("documentDestinationCheckChanged",e)})}documentDestinationCheckChanged(){let e=this.displayedDestination;for(const i of this.waitListService.accessWaitList("documentDestinationCheckChanged"))i.next(e)}itemRecognized(){if(this.isAppointment)this.datasource.readCRMDataForItem(this.currentItemId).subscribe(()=>{for(const e of this.waitListService.accessWaitList("itemRecognized"))e.next(this.currentItemId)});else for(const e of this.waitListService.accessWaitList("itemRecognized"))e.next(this.currentItemId)}waitForItemRecognition(){return new b(e=>{this.waitListService.addToWaitList("itemRecognized",e)})}documentItem(){let e=Office.context.mailbox.item;e&&this.isReadMode&&this.ews.GetExtendedData(this.currentItemId).subscribe({next:i=>{this.globals.hideSpinner(),i.documentedOnSend&&!this.globals.incomingMail?this.dialogService.createDialogWithType(il.alreadyDocumented).subscribe(r=>{r.afterClosed().subscribe(o=>{!0===o&&this.startDocumentation(e,i)})}):this.startDocumentation(e,i)},error:i=>{this.globals.hideSpinner()}})}startDocumentation(e,i){i.documentTarget&&(i.type="appointment"===e?.itemType?"appointment":"mail",this.datasource.documentItemWithUI(i))}recipientChanged(e){document.getElementById("recipientsEventTrigger").click()}recipientsEventTrigger(){this.doProcessAddresses()}getDBConnections(){return new b(e=>{this.datasource.fetchDBs("dbConnections",null).subscribe(i=>{e.next(i)})})}getHomepageUrl(e){return e&&e.length>0&&!e.toLowerCase().startsWith("http")?"http://"+e:e}quickCreate(){this.contactCreationOpened=this.isNew,this.displayedDestination&&this.displayedDestination.additional.fallback&&(this.extractedContactData.CompanyName=this.displayedDestination.name,this.extractedContactData.CompanyAddress=this.displayedDestination.additional.fullAddress,this.extractedContactData.CompanyPointer=this.displayedDestination.pointer),this.globals.activeWindow="contactCreation"}updateItem(){this.isUpdate=!0,this.updateBM4ODataCommand()}waitForUpdateBM4ODataCommand(){return new b(e=>{this.waitListService.addToWaitList("updateBM4OData",e)})}updateBM4ODataCommand(){this.ews.GetExtendedData(this.currentItemId).subscribe(e=>{for(const i of this.waitListService.accessWaitList("updateBM4OData"))i.next(e);this.ews.SaveExtendedData(this.currentItemId,e).subscribe(i=>{this.isUpdate=!1,this.messageService.showSuccess(this.globals.languageConfLocal.crmDataUpdated)})})}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(en),p(Rs),p(Xt),p(bo),p(Bt),p(Nn),p(Ji),p(Br),p(ane),p(Em),p(rl))},n.\u0275cmp=ze({type:n,selectors:[["app-info-shower"]],viewQuery:function(e,i){if(1&e&&(Oe(lne,5),Oe(cne,5),Oe(une,5),Oe(dne,5)),2&e){let r;me(r=ge())&&(i.selectedContact=r.first),me(r=ge())&&(i.firstDocumentDestination=r.first),me(r=ge())&&(i.secondDocumentDestination=r.first),me(r=ge())&&(i.destinationCheckboxes=r)}},decls:21,vars:16,consts:[["class","emailSubjectLine",3,"title",4,"ngIf"],["mat-flat-button","","color","documentBtn","style","width: 100%;margin-top: 4px; margin-bottom: 10px;",3,"disabled","title","click",4,"ngIf"],["mat-flat-button","","color","documentBtn","style","width: 100%;margin-top: 4px; margin-bottom: 10px;",3,"title","click",4,"ngIf"],["appearance","fill",1,"noLabel",2,"width","100%"],[1,"documentationContactSelector",3,"ngModel","formControl","selectionChange","ngModelChange"],["selectedContact",""],["class","doNotDocument","value","doNotDocument",4,"ngIf"],[3,"label",4,"ngIf"],["class","contactCardPart",4,"ngIf"],[4,"ngIf"],["hidden","","id","recipientsEventTrigger",3,"click"],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],[1,"emailSubjectLine",3,"title"],["mat-flat-button","","color","documentBtn",2,"width","100%","margin-top","4px","margin-bottom","10px",3,"disabled","title","click"],["mat-flat-button","","color","documentBtn",2,"width","100%","margin-top","4px","margin-bottom","10px",3,"title","click"],["value","doNotDocument",1,"doNotDocument"],[3,"label"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[3,"value"],[1,"displayInSelection"],[1,"emailInSelection"],[1,"contactCardPart"],[1,"destinationSelectorHolder"],["class","destinationImage",4,"ngIf"],["target","_blank",1,"addressLabel","importantText",3,"href","title"],[1,"destinationSelector",3,"name","checked","change"],["firstDocumentDestination","","docDestSelector",""],["target","_blank","class","addressLabel",3,"href","title",4,"ngIf"],["class","destinationSelector",3,"name","checked","change",4,"ngIf"],[1,"destinationImage"],["mat-icon-button","","matBadgePosition","before","matBadgeSize","small","matBadgeOverlap","true",3,"matBadge","matMenuTriggerFor"],[3,"src"],["menu","matMenu"],["mat-menu-item","",3,"value","ngClass","valueChange","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"value","ngClass","valueChange","click"],[3,"title"],["target","_blank",1,"addressLabel",3,"href","title"],["docDestSelector","","secondDocumentDestination",""],[1,"material-symbols-rounded"],[1,"webTelLink"],["target","_blank",1,"webTelLink",3,"href"],["mat-flat-button","","color","documentBtn",2,"width","100%","margin-top","1em","margin-bottom","1em",3,"disabled","title","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(V(0,hne,2,2,"div",0),V(1,pne,2,3,"button",1),V(2,fne,2,2,"button",2),g(3,"div")(4,"mat-form-field",3)(5,"mat-select",4,5),X("selectionChange",function(o){return i.selectedContactChanged(o)})("ngModelChange",function(o){return i.selectedEmailAddress=o}),g(7,"mat-select-trigger"),j(8),v(),V(9,mne,2,1,"mat-option",6),V(10,_ne,2,3,"mat-optgroup",7),V(11,yne,2,3,"mat-optgroup",7),V(12,bne,6,4,"mat-optgroup",7),V(13,Cne,6,4,"mat-optgroup",7),v()()(),V(14,kne,14,12,"div",8),V(15,Rne,3,1,"div",9),V(16,One,3,1,"div",9),V(17,Pne,3,3,"div",9),g(18,"button",10),X("click",function(){return i.recipientsEventTrigger()}),v(),xe(19,"br"),V(20,Nne,5,3,"mat-form-field",11)),2&e&&(y("ngIf",i.isReadMode&&!i.isAppointment),m(1),y("ngIf",i.showDocumentButton),m(1),y("ngIf",!i.isNew),m(3),y("ngModel",i.selectedEmailAddress)("formControl",i.selectedEmailDropdown),m(3),Qe(" ","doNotDocument"===i.selectedEmailDropdown.value?i.globals.languageConfLocal.doNotDocument:i.selectedEmailDropdown.value," "),m(1),y("ngIf",!i.isReadMode||i.isAppointment),m(1),y("ngIf",i.addresses&&i.addresses.length>0),m(1),y("ngIf",i.addresses2nd&&i.addresses2nd.length>0),m(1),y("ngIf",i.theSender),m(1),y("ngIf",i.theAssignee),m(1),y("ngIf",i.displayedDestination),m(1),y("ngIf",!i.isAppointment&&i.destinationsToDisplay&&0===(null==i.destinationsToDisplay?null:i.destinationsToDisplay.length)&&"doNotDocument"!==i.selectedEmailAddress&&i.addressesAll.length>1),m(1),y("ngIf",!i.isAppointment&&(i.noneSelected||i.destinationsToDisplay&&0===(null==i.destinationsToDisplay?null:i.destinationsToDisplay.length))&&!i.isReadMode),m(1),y("ngIf",!i.isAppointment&&(i.destinationsToDisplay&&0===(null==i.destinationsToDisplay?null:i.destinationsToDisplay.length)&&"doNotDocument"!==i.selectedEmailAddress&&i.addressesAll.length>1||i.displayedDestination&&i.displayedDestination.additional.fallback)),m(3),y("ngIf",null!=i.officeDatabases&&i.officeDatabases.length>1&&!i.isAppointment))},dependencies:[Fa,ci,_n,Fo,Wp,z1,Wd,$1,Ko,Gr,ua,KG,vo,x6,Nc,aee,nw],styles:['.emailSubjectLine{margin:auto;padding-top:30px;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.buttonP{float:left}.buttonN{float:right}.buttonContainer{width:100%;overflow:hidden}.pages{display:flex;width:400%;box-sizing:border-box}.page{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;transition:all .7s}.hidden{display:none}.grayDiv{background-color:#faf3f3}.mat-option{height:4em!important}.destinationSelectorHolder{display:grid;grid-template-columns:22% 71% 7%;padding-bottom:.5em}.contactCardPart{padding:5px;background-color:#0000000a;border-radius:0 0 5px 5px;border:1px solid #e5e5e5}.material-symbols-rounded{font-variation-settings:"FILL" 0,"wght" 300,"GRAD" -25,"opsz" 18}.mat-checkbox-background,.mat-checkbox-frame{border-radius:50%!important}.mat-checkbox .mat-checkbox-frame,.mat-checkbox-checked .mat-checkbox-background{transform:scale(1.1)}.mat-checkbox-checkmark{width:10px!important;top:3px!important;left:3px!important}.destinationImage{grid-row:span 2}.destinationImage>button>* img,.destinationImage>img,.destinationImage>button{object-fit:cover;border-radius:50%;height:55px;width:55px}button{background-color:transparent}.mat-badge-content.mat-badge-active{top:.05em!important;left:.1em!important}.addressLabel{font-weight:600;margin-right:2px;max-width:95%;line-height:normal;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}table>tbody>tr>td{padding:0!important}.noLabel>* .mat-form-field-flex{padding-top:0!important}.mat-form-field.noLabel{padding-top:3px}.mat-form-field.noLabel .mat-form-field-wrapper{padding-bottom:0}.mat-form-field.noLabel .mat-form-field-underline{bottom:0}.mat-optgroup-label{background-color:#f0f0f0}.displayInSelection{height:1.1em}.emailInSelection{color:#616161;font-size:smaller}.webTelLink{padding-left:5px;vertical-align:top}.doNotDocument{color:#f08080}.selectedDestination{background-color:#0000001f}mat-form-field.noLabel>div{border-radius:5px;border:1px solid #e5e5e5;border-bottom:none}.mat-documentBtn{background-color:#f28e00;color:#f0f0f0}.databaseSearchSelect{width:100%}.emailSubjectLine{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap;padding-bottom:5px;font-size:medium;padding-top:5px}\n'],encapsulation:2}),n})();const Bne=["docDestSelector"];function Hne(n,t){if(1&n){const e=je();g(0,"mat-chip",11),X("removed",function(){const o=oe(e).$implicit;return se(x(3).removeDocumentDestination(o))}),xe(1,"img",12),g(2,"div",13),j(3),v(),g(4,"button",14)(5,"span",15),j(6,"cancel"),v()()()}if(2&n){const e=t.$implicit,i=x(3);y("removable",!0)("title",e.name),m(1),y("src",i.datasource.getImageSrc(e.image),Zn),m(2),we(e.name)}}function Vne(n,t){1&n&&xe(0,"input",16,17),2&n&&(x(),y("matChipInputFor",sn(4)))}function jne(n,t){if(1&n&&(g(0,"mat-form-field",5)(1,"mat-label",6),j(2),v(),g(3,"mat-chip-list",7,8),V(5,Hne,7,4,"mat-chip",9),V(6,Vne,2,1,"input",10),v()()),2&n){const e=x(2);m(2),we(e.getDocumentedLabel()),m(3),y("ngForOf",e.documentsAsDestinations),m(1),y("ngIf",e.documentsAsDestinations&&e.documentsAsDestinations.length>0)}}function Une(n,t){if(1&n&&(g(0,"mat-option",18),j(1),v()),2&n){const e=t.$implicit;y("value",e.alias),m(1),Qe(" ",e.name," ")}}function qne(n,t){if(1&n&&(g(0,"div",28),j(1),v()),2&n){const e=x().$implicit;y("title",e.lineTwoOverride),m(1),we(e.lineTwoOverride)}}function zne(n,t){if(1&n&&(g(0,"div",28),j(1),v()),2&n){const e=x().$implicit,i=x(3);y("title",i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US")),m(1),we(i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US"))}}function Gne(n,t){if(1&n){const e=je();g(0,"div",21),xe(1,"img",22),g(2,"a",23)(3,"div")(4,"div",24),j(5),v(),V(6,qne,2,2,"div",25),V(7,zne,2,2,"div",25),v()(),g(8,"mat-checkbox",26,27),X("change",function(r){const s=oe(e).$implicit;return se(x(3).destinationActivitySelectorClicked(r,s.subject,s.viewIconUrl))}),v()()}if(2&n){const e=t.$implicit,i=x(3);m(1),y("src",e.viewIconUrl,Zn),m(1),Ot("href","gi"===i.globals.system?i.createWebintLink(e.pointer):e.url,Zn),m(2),y("title",e.subject),m(1),we(e.subject),m(1),y("ngIf",e.lineTwoOverride&&null!=e.lineTwoOverride),m(1),y("ngIf",!e.lineTwoOverride||null==e.lineTwoOverride),m(1),y("name",e.pointer)("checked",e.pointer===i.initSelectedDoc)}}function Wne(n,t){if(1&n&&(g(0,"div",29),j(1),v()),2&n){const e=x(3);m(1),we(e.globals.languageConfLocal.noActivities)}}function $ne(n,t){if(1&n&&(g(0,"div"),V(1,Gne,10,8,"div",19),V(2,Wne,2,1,"div",20),v()),2&n){const e=x(2);m(1),y("ngForOf",e.activities),m(1),y("ngIf",0===e.activities.length)}}function Kne(n,t){if(1&n){const e=je();g(0,"div"),V(1,jne,7,3,"mat-form-field",1),g(2,"mat-form-field",2),xe(3,"mat-label"),g(4,"mat-select",3),X("valueChange",function(r){return oe(e),se(x().selectedType=r)})("selectionChange",function(){return oe(e),se(x().activityTypeChanged())}),V(5,Une,2,2,"mat-option",4),v()(),V(6,$ne,3,2,"div",0),v()}if(2&n){const e=x();m(1),y("ngIf",e.documentsAsDestinations&&e.documentsAsDestinations.length>0),m(3),y("value",e.selectedType),m(1),y("ngForOf",e.types),m(1),y("ngIf",e.activities)}}let Yne=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.globals=e,this.translate=i,this.mailLoadedService=r,this.webintLinkService=o,this.ref=s,this.messageService=a,this.ews=l,this.datasource=c,this.documentsAsDestinations=[],this.displayedColumns=["subject"],this.activity={},this.types=[],this.selectedType="0",this.activityDocImage={background:"no-repeat url(assets/images/icons_business_mail.png)"},this.selectArrow={background:"no-repeat url(assets/images/DropDownArrowOffsetRight.png) right"},this.headerText=""}ngOnInit(){this.globals.infoShower.waitForDestinationChange().subscribe({next:e=>{this.datasource.fetchActivityTypes(e?.pointer).subscribe(i=>{this.types=i,this.ews.GetExtendedData(this.globals.infoShower.currentItemId).subscribe(r=>{this.selectedType=r?.docTyp,this.selectedType||(this.selectedType="gi"===this.globals.system?i[0].alias:i.find(s=>s.name.startsWith("Vorg")||s.name.startsWith("Activ"))?.alias??i[0].alias),"appointment"===Office.context.mailbox.item?.itemType&&r.otherDoc&&(this.initSelectedDoc=r?.documentTarget,this.datasource.getDocumentsChips([r.documentTarget]).subscribe(s=>{this.documentsAsDestinations=[],s.forEach(a=>{this.documentsAsDestinations.push({name:a.name,image:a.image,fdMe:a.fdMe})})})),this.loadRecentDocuments(e)})})}}),this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:()=>{this.documentsAsDestinations=[],this.detectChanges()}}),this.globals.addressActivities=this}loadRecentDocuments(e){if(null===e)return this.activities=null,void this.detectChanges();this.currentAddress=e,this.datasource.fetchActivities(this.currentAddress).subscribe({next:i=>{if(console.log("Activities:",i),i.selectedType)this.selectedType=i.selectedType;else if(i.displayType){let r=this.types.find(o=>o.alias===i.displayType.toString());r&&(this.selectedType=r.alias)}if(i?.activities?.length>=0){if(i?.activities[0]?.viewIcon)for(let r of i.activities)r.viewIconUrl=this.datasource.getImageSrc(r.viewIcon);this.activities=i.activities}this.detectChanges(),this.globals.otherDestinationCheckboxes=this.destinationCheckboxes},error:i=>{this.messageService.showError(i)}})}ngOnDestroy(){this.mailLoadedService.unsubscribeAll(this.constructor.name)}detectChanges(){this.ref.detectChanges()}refresh(){this.loadRecentDocuments(this.currentAddress)}createWebintLink(e){return this.webintLinkService.convertToLink(e)}formatDate(e,i,r){return hT(e,"dd.MM.YYYY HH:mm","en_US")}destinationActivitySelectorClicked(e,i,r){e.checked?(this.getAllCheckboxes().forEach(o=>{o.name!==e.source.name&&(o.checked=!1)}),this.globals.infoShower.setDestinationInfo(e.source.name,fl.activity,!0),this.documentsAsDestinations=[],this.documentsAsDestinations.push({name:i,image:r,fdMe:e.source.name})):(this.documentsAsDestinations=[],this.globals.infoShower.setDestinationInfo("",fl.activity)),this.detectChanges()}getAllCheckboxes(){let e=this.destinationCheckboxes.toArray();return this.globals.mainDestinationCheckboxes?.length>0&&(e=e.concat(this.globals.mainDestinationCheckboxes.toArray())),e}activityTypeChanged(){this.ews.GetExtendedData(this.globals.infoShower.currentItemId).subscribe(e=>{e.docTyp=this.selectedType,this.ews.SaveExtendedData(this.globals.infoShower.currentItemId,e).subscribe(i=>{})}),this.datasource.changeActivityListType(this.selectedType).subscribe(()=>{this.loadRecentDocuments(this.currentAddress)})}removeDocumentDestination(e){this.documentsAsDestinations=[],this.getAllCheckboxes().forEach(i=>{i.checked=!1}),this.globals.infoShower.setDestinationInfo("",fl.activity),this.globals.infoShower.selectFirst()}getDocumentedLabel(){return this.globals.infoShower.isAppointment?this.globals.languageConfLocal.DocumentedTo:this.globals.languageConfLocal.DocumentTo}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(Xt),p(Yc),p(Wo),p(Bt),p(en),p(rl),p(bo))},n.\u0275cmp=ze({type:n,selectors:[["app-address-activities"]],viewQuery:function(e,i){if(1&e&&Oe(Bne,5),2&e){let r;me(r=ge())&&(i.destinationCheckboxes=r)}},decls:1,vars:1,consts:[[4,"ngIf"],["style","width:100%;","id","selectedDocumentAsDestination",4,"ngIf"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["id","selectedDocumentAsDestination",2,"width","100%"],[2,"font-size","small"],[1,"projectsChipsHolder"],["chipsDocumentAsDestination",""],[3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","","readonly","","class","projectChipsNoInput",3,"matChipInputFor",4,"ngIf"],[3,"removable","title","removed"],[1,"chipImage",3,"src"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"],["matInput","","readonly","",1,"projectChipsNoInput",3,"matChipInputFor"],["documentAsDestinationInputRO",""],[3,"value"],["class","activityItemListEntry itemListEntry",4,"ngFor","ngForOf"],["class","listEntryItemMainLine",4,"ngIf"],[1,"activityItemListEntry","itemListEntry"],["onerror","this.src='assets/images/vwicn001.png';",3,"src"],["target","_blank",3,"href"],[1,"listEntryItemMainLine",3,"title"],["class","listEntryItemSubLine",3,"title",4,"ngIf"],[1,"destinationSelector","activityDestinationSelector","spanTwoRows",3,"name","checked","change"],["docDestSelector",""],[1,"listEntryItemSubLine",3,"title"],[1,"listEntryItemMainLine"]],template:function(e,i){1&e&&V(0,Kne,7,4,"div",0),2&e&&y("ngIf",!i.globals.infoShower.noneSelected&&i.globals.infoShower.destinationsToDisplay&&i.globals.infoShower.destinationsToDisplay.length>0)},dependencies:[ci,_n,Ko,Gr,ua,vo,Yo,nw,$m,Vc,Km,Wm],styles:["table[_ngcontent-%COMP%]{width:100%;box-shadow:none}.mat-row[_ngcontent-%COMP%]:hover .mat-cell[_ngcontent-%COMP%]{background-color:#d3d3d3}.uncheckedToggle[_ngcontent-%COMP%]{display:none}.activityItemListEntry[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:20px;width:20px}.activityItemListEntry[_ngcontent-%COMP%] .activityDestinationSelector[_ngcontent-%COMP%]{margin-left:auto;padding-right:8px;align-self:center;visibility:hidden;display:block!important}.activityItemListEntry[_ngcontent-%COMP%] .activityDestinationSelector.mat-checkbox-checked[_ngcontent-%COMP%], .activityItemListEntry[_ngcontent-%COMP%]:hover .activityDestinationSelector[_ngcontent-%COMP%]{visibility:visible}.spanTwoRows[_ngcontent-%COMP%]{grid-row:span 2}.activityIcon[_ngcontent-%COMP%]{height:18px;width:18px;margin-top:2px}tr.mat-row[_ngcontent-%COMP%]{height:10px!important}.regionHeader[_ngcontent-%COMP%]{font-size:small;border-bottom:1px solid #949494;font-family:Roboto,Helvetica Neue,sans-serif;color:#0000008a}"]}),n})(),Qne=(()=>{class n{constructor(e,i,r,o){this.datasource=e,this.lsm=i,this.ews=r,this.messageService=o}ngOnInit(){}documentItem(e){this.lsm.setValue(tn.sendInProcess,"1"),this.datasource.IsTaskpaneActive()&&!this.datasource.doNotDocumentSelected()?Office.context.mailbox.item?this.datasource.retrieveItemIdForItem().subscribe({next:r=>{this.ews.GetExtendedData(r).subscribe(o=>{o.documentTarget?(o.type="mail",this.datasource.documentItemWithoutUI(o).subscribe({next:s=>{if(void 0!==s&&200!==s?.status&&!0!==s)return this.messageService.showMessageAsync(s.statusText,lr.error),this.lsm.setValue(tn.sendInProcess,"0"),void e.completed({allowEvent:!1,errorMessage:s.statusText});this.ews.GetExtendedData(r).subscribe(a=>{a.documentedOnSend=!0,this.ews.SaveExtendedData(r,a).subscribe(l=>{this.lsm.setValue(tn.sendInProcess,"0"),e.completed({allowEvent:!0})})})},error:s=>{this.lsm.setValue(tn.sendInProcess,"0"),e.completed({allowEvent:!1,errorMessage:s})}})):(this.lsm.setValue(tn.sendInProcess,"0"),e.completed({allowEvent:!0}))})}}):(this.lsm.setValue(tn.sendInProcess,"0"),e.completed({allowEvent:!0})):e.completed({allowEvent:!0})}sendEventTrigger(){let e=window.theEvent;this.documentItem(e)}}return n.\u0275fac=function(e){return new(e||n)(p(bo),p(Br),p(rl),p(en))},n.\u0275cmp=ze({type:n,selectors:[["app-item-documentor"]],decls:1,vars:0,consts:[["hidden","","id","sendEventTrigger",3,"click"]],template:function(e,i){1&e&&(g(0,"button",0),X("click",function(){return i.sendEventTrigger()}),v())}}),n})();class yw{}const Xne=["projectSelectorPanel"],Zne=["searchProjectsInput"],Jne=["destinationProjectsInputRO"],KR=["destinationProjectsInput"],YR=["searchProjectPhasesInput"],eie=["allProjectsButton"];function tie(n,t){if(1&n){const e=je();g(0,"mat-chip",15),X("removed",function(){const o=oe(e).$implicit;return se(x(2).removeProject(o))}),xe(1,"img",16),g(2,"div",17),j(3),v(),g(4,"button",18)(5,"span",19),j(6,"cancel"),v()()()}if(2&n){const e=t.$implicit,i=x(2);y("removable",!0)("title",e.name),m(1),y("src",i.datasource.getImageSrc(e.image),Zn),m(2),we(e.name)}}function nie(n,t){if(1&n){const e=je();g(0,"input",20,21),X("focus",function(r){return oe(e),se(x(2).showProjectSelector(r))}),v()}2&n&&(x(),y("matChipInputFor",sn(5)))}function iie(n,t){if(1&n){const e=je();g(0,"input",22,23),X("input",function(r){return oe(e),se(x(2).searchParticipatingProjects(r))}),v()}if(2&n){x();const e=sn(5),i=sn(10),r=x();y("matChipInputFor",e)("formControl",r.destinationProjects)("matAutocomplete",i)}}function rie(n,t){if(1&n&&(g(0,"mat-option",24),xe(1,"img",25),g(2,"div",26)(3,"div",27),j(4),v(),g(5,"div",28),j(6),v(),g(7,"div",28),j(8),v()()()),2&n){const e=t.$implicit,i=x(2);y("value",e),ot("data-fdme",e.fdMe)("data-image",e.image),m(1),y("src",i.datasource.getImageSrc(e.image),Zn),m(2),Ot("title",i.parseHtmlEntities(e.lineOne)),m(1),Qe(" ",i.parseHtmlEntities(e.lineOne)," "),m(1),Ot("title",i.parseHtmlEntities(e.lineTwo)),m(1),Qe(" ",i.parseHtmlEntities(e.lineTwo)," "),m(1),Ot("title",i.parseHtmlEntities(e.lineThree)),m(1),Qe(" ",i.parseHtmlEntities(e.lineThree)," ")}}function oie(n,t){if(1&n){const e=je();g(0,"mat-chip",15),X("removed",function(){const o=oe(e).$implicit;return se(x(3).removeProjectPhase(o))}),xe(1,"img",16),g(2,"div",17),j(3),v(),g(4,"button",18)(5,"span",19),j(6,"cancel"),v()()()}if(2&n){const e=t.$implicit,i=x(3);y("removable",!0)("title",e.name),m(1),y("src",i.datasource.getImageSrc(e.image),Zn),m(2),we(e.name)}}function sie(n,t){if(1&n){const e=je();g(0,"input",22,30),X("input",function(r){return oe(e),se(x(3).searchProjectPhases(r))}),v()}if(2&n){x();const e=sn(4),i=sn(8),r=x(2);y("matChipInputFor",e)("formControl",r.projectPhasesControl)("matAutocomplete",i)}}function aie(n,t){if(1&n&&(g(0,"mat-option",24),xe(1,"img",25),g(2,"div",26)(3,"div",27),j(4),v(),g(5,"div",28),j(6),v(),g(7,"div",28),j(8),v()()()),2&n){const e=t.$implicit,i=x(3);y("value",e),ot("data-fdme",e.fdMe)("data-image",e.image),m(1),y("src",i.datasource.getImageSrc(e.image),Zn),m(2),Ot("title",i.parseHtmlEntities(e.lineOne)),m(1),Qe(" ",i.parseHtmlEntities(e.lineOne)," "),m(1),Ot("title",i.parseHtmlEntities(e.lineTwo)),m(1),Qe(" ",i.parseHtmlEntities(e.lineTwo)," "),m(1),Ot("title",i.parseHtmlEntities(e.lineThree)),m(1),Qe(" ",i.parseHtmlEntities(e.lineThree)," ")}}function lie(n,t){if(1&n){const e=je();g(0,"mat-form-field",29)(1,"mat-label",2),j(2),v(),g(3,"mat-chip-list",3,4),V(5,oie,7,4,"mat-chip",5),V(6,sie,2,3,"input",7),g(7,"mat-autocomplete",8,9),X("optionSelected",function(r){return oe(e),se(x(2).autoProjectPhaseSelected(r))})("opened",function(){return oe(e),se(x(2).autocompleteOpened("phasesAuto"))}),V(9,aie,9,10,"mat-option",10),v()()()}if(2&n){const e=x(2);m(2),Oo("",e.globals.languageConfLocal.selectProjectPhases," (",e.projectPhaseResultArray.length,")"),m(3),y("ngForOf",e.projectPhases),m(1),y("ngIf",e.projectPhaseResultArray.length>0),m(3),y("ngForOf",e.filteredProjectPhases)}}function cie(n,t){if(1&n&&(g(0,"mat-option",50),j(1),v()),2&n){const e=t.$implicit;y("value",e.value),m(1),we(e.viewValue)}}function uie(n,t){if(1&n){const e=je();g(0,"mat-form-field",47)(1,"mat-label"),j(2),v(),g(3,"mat-select",48),X("valueChange",function(r){return oe(e),se(x(3).selectedDB=r)})("selectionChange",function(){return oe(e),se(x(3).getProjects(!1))}),V(4,cie,2,2,"mat-option",49),v()()}if(2&n){const e=x(3);m(2),we(e.globals.languageConfLocal.projectDatabase),m(1),y("value",e.selectedDB),m(1),y("ngForOf",e.databases)}}function die(n,t){if(1&n&&(g(0,"div",51),j(1),v()),2&n){const e=x(3);m(1),Qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function hie(n,t){if(1&n){const e=je();g(0,"div",52),X("click",function(r){return oe(e),se(x(3).dblClickedElement(r))}),xe(1,"img",25),g(2,"div",53)(3,"span",27),j(4),v(),xe(5,"br"),g(6,"span",28),j(7),v(),xe(8,"br"),g(9,"span",28),j(10),v(),xe(11,"br"),v()()}if(2&n){const e=t.$implicit,i=t.index,r=x(3);Ot("title",e.lineOne),ot("data-order",i+1)("data-fdme",e.fdMe)("data-displayname",r.parseHtmlEntities(e.lineOne))("data-image",e.image),m(1),y("src",r.datasource.getImageSrc(e.image),Zn),m(2),Ot("title",r.parseHtmlEntities(e.lineOne)),m(1),we(r.parseHtmlEntities(e.lineOne)),m(2),Ot("title",r.parseHtmlEntities(e.lineTwo)),m(1),we(r.parseHtmlEntities(e.lineTwo)),m(2),Ot("title",r.parseHtmlEntities(e.lineThree)),m(1),we(r.parseHtmlEntities(e.lineThree))}}function pie(n,t){if(1&n){const e=je();g(0,"mat-chip",15),X("removed",function(){const o=oe(e).$implicit;return se(x(3).removeProject(o))}),xe(1,"img",16),g(2,"div",17),j(3),v(),g(4,"button",18)(5,"span",19),j(6,"cancel"),v()()()}if(2&n){const e=t.$implicit,i=x(3);y("removable",!0)("title",e.name),ot("data-pointer",e.pointer),m(1),y("src",i.datasource.getImageSrc(e.image),Zn),m(2),we(e.name)}}function fie(n,t){if(1&n){const e=je();g(0,"mat-card",31,32),xe(2,"br"),g(3,"mat-card-title",33),j(4),g(5,"span",34),X("click",function(){return oe(e),se(x(2).hideProjectSelector())}),j(6,"check_circle"),v()(),g(7,"mat-card-content",35)(8,"mat-form-field",36)(9,"mat-label"),j(10),v(),g(11,"input",37,38),X("input",function(r){return oe(e),se(x(2).textChanged(r))}),v()(),V(13,uie,5,3,"mat-form-field",39),xe(14,"br"),g(15,"div",40),V(16,die,2,1,"div",41),V(17,hie,12,12,"div",42),v()(),g(18,"mat-card-footer",43),xe(19,"mat-divider",44),g(20,"mat-chip-list",3,45),V(22,pie,7,5,"mat-chip",5),xe(23,"input",46),v()()()}if(2&n){const e=sn(21),i=x(2);m(4),Qe(" ",i.globals.languageConfLocal.projectSelection," "),m(6),we(i.globals.languageConfLocal.searchProjectsInCRM),m(3),y("ngIf",null!=i.databases&&i.databases.length>0),m(3),y("ngIf",i.showRecentlyUsed),m(1),y("ngForOf",i.searchResultsArray),m(5),y("ngForOf",i.projects),m(1),y("matChipInputFor",e)}}function mie(n,t){if(1&n){const e=je();g(0,"div")(1,"mat-form-field",1),X("click",function(r){return oe(e),se(x().showProjectSelector(r))}),g(2,"mat-label",2),j(3),v(),g(4,"mat-chip-list",3,4),V(6,tie,7,4,"mat-chip",5),V(7,nie,2,1,"input",6),V(8,iie,2,3,"input",7),g(9,"mat-autocomplete",8,9),X("optionSelected",function(r){return oe(e),se(x().autoProjectSelected(r))})("opened",function(){return oe(e),se(x().autocompleteOpened("projectAuto"))}),V(11,rie,9,10,"mat-option",10),v(),g(12,"span",11,12),X("click",function(r){return oe(e),se(x().showProjectSelector(r))}),j(14,"open_in_new"),v()()(),V(15,lie,10,5,"mat-form-field",13),V(16,fie,24,7,"mat-card",14),v()}if(2&n){const e=x();m(3),we(e.getProjectsLabel()),m(3),y("ngForOf",e.projects),m(1),y("ngIf",0===e.destinationDirectProjectsCount),m(1),y("ngIf",e.destinationDirectProjectsCount>0),m(3),y("ngForOf",e.filteredParticipatedResultsArray),m(1),y("title",e.globals.languageConfLocal.selectProjectsCRM),m(3),y("ngIf",e.projectPhaseResultArray.length>0),m(1),y("ngIf",e.projectSelectorPanelVisible)}}let gie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this.globals=e,this.mailLoadedService=i,this.ref=r,this.snack=o,this.translate=s,this.datasource=a,this.zone=l,this.lsm=c,this.dps=u,this.ews=d,this.projectSelectorPanelVisible=!1,this.searchTextInput="",this.searchResultsArray=[],this.projectPhaseResultArray=[],this.projectPhaseSearchResultArray=[],this.projectPhaseFilter="",this.participatedResultsArray=[],this.databases=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.destinationProjects=new Yu(""),this.projectPhasesControl=new Yu(""),this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.projects=[];let e=Office.context.mailbox.item;e&&(this.isCompose=null==e.itemId,this.isAppointment="appointment"===e.itemType,this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync),"gi"===this.globals.system&&(this.showRecentlyUsed=!1),this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:i=>{this.projectPhases=[],this.projectPhaseResultArray=[],this.getProjects(!0)}}),this.getProjectDBs(this.globals.infoShower.primaryPointer),this.dps.addThingToClose("projectAuto",()=>{this.projectsAutocompleteTrigger?.closePanel()}),this.dps.addThingToClose("phasesAuto",()=>{this.phasesAutocompleteTrigger?.closePanel()}),this.dps.addThingToClose("projectDialog",()=>{this.projectSelectorPanelVisible=!1,this.searchValue=""}),this.globals.infoShower.waitForItemRecognition().subscribe(i=>{"appointment"===e?.itemType&&this.ews.GetExtendedData(i).subscribe(r=>{r&&r.selectedProjects&&(this.projects=JSON.parse(r.selectedProjects)),this.projects=this.projects.filter(o=>null!=o)})}),this.globals.infoShower.waitForUpdateBM4ODataCommand().subscribe(i=>{i.selectedProjects=JSON.stringify(this.projects.concat(this.projectPhases))})}ngOnDestroy(){this.mailLoadedService.unsubscribeAll(this.constructor.name)}detectChanges(){this.ref.detectChanges()}showProjectSelector(e){e.stopPropagation(),"mainInputProjectSelector"!==e.currentTarget.id&&(this.projectSelectorPanelVisible=!0,this.getProjects(!1),setTimeout(()=>{this.searchProjectsInput.nativeElement.focus()},0),this.dps.closeAll("projectDialog"))}hideProjectSelector(){this.projectSelectorPanelVisible=!1,this.searchValue=""}removeProject(e){this.projects.splice(this.projects.findIndex(i=>i.pointer===e.pointer),1),this.projectChipsChanged()}removeProjectPhase(e){this.projectPhases.splice(this.projects.findIndex(i=>i.pointer===e.pointer),1),this.projectPhaseChipsChanged()}projectChipsChanged(){if(Office.context.mailbox.item){let i=JSON.stringify(this.projects.concat(this.projectPhases)),r=this.globals.infoShower.currentItemId;this.lsm.setValue(tn.selectedProjects,i),this.ews.GetExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.ews.SaveExtendedData(r,o).subscribe(s=>{})})}if(this.projects.length>0){this.destinationProjectsInput?.nativeElement.classList.add("hasProjects"),this.destinationProjectsInputRO?.nativeElement.classList.add("hasProjects"),this.allProjectsButton?.nativeElement.classList.add("hasProjects");let i=this.projects.map(r=>r.pointer);this.datasource.getPhasesOfPointer(i).subscribe(r=>{this.projectPhaseResultArray=r,console.log("Projectphases:",this.projectPhaseResultArray)})}else this.destinationProjectsInput?.nativeElement.classList.remove("hasProjects"),this.destinationProjectsInputRO?.nativeElement.classList.remove("hasProjects"),this.allProjectsButton?.nativeElement.classList.remove("hasProjects")}projectPhaseChipsChanged(){if(Office.context.mailbox.item){let i=JSON.stringify(this.projects.concat(this.projectPhases)),r=this.globals.infoShower.currentItemId;this.lsm.setValue(tn.selectedProjects,i),this.ews.GetExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.ews.SaveExtendedData(r,o).subscribe(s=>{})})}}textChanged(e){let i=e.target.value;"ba"===this.globals.system&&(this.showRecentlyUsed=0===i.length),i.length>0&&!this.searchPanelExpanded?this.searchPanelExpanded=!0:0===i.length&&this.searchPanelExpanded&&(this.searchPanelExpanded=!1),this.searchValue=i,this.getProjects(!1)}searchParticipatingProjects(e){this.participatingProjectsFilter=e.target.value}searchProjectPhases(e){this.projectPhaseFilter=e.target.value}dblClickedElement(e){let i=e.currentTarget;if(!this.projects.some(r=>r.pointer===i.dataset.fdme)){let r=new yw;r.name=i.dataset.displayname,r.pointer=i.dataset.fdme,r.image=i.dataset.image,this.datasource.addToRecentlyUsed(i.dataset.fdme),this.projects.push(r),setTimeout(()=>{const o=document.querySelector(".allProjectsFooter .mat-chip-list-wrapper");o&&(o.scrollTop=o.scrollHeight),this.blinkChip(r.pointer)},10),this.projectChipsChanged()}}blinkChip(e){document.querySelector('mat-chip[data-pointer="'+e+'"]')?.classList.add("fade-it")}getProjectDBs(e){const i={};e?i.pointer=e:i.onlyOptions=!0;const r=new Yt({fromObject:i});this.datasource.fetchDBs("projects",r).subscribe(o=>{console.log("ProjectDBs:",o),o&&this.generateSelectionArrProjectDbs(o.databases,e)})}generateSelectionArrProjectDbs(e,i){for(const s of e)this.databases.push({value:s.alias,viewValue:s.title});console.log("this.databases:",this.databases),this.databases.length>0&&(this.selectedDB=this.databases[0].value)}getProjects(e){e&&!this.globals.infoShower.primaryPointer||this.datasource.searchProjects(this.selectedDB,e?this.globals.infoShower.primaryPointer:"",this.searchValue).subscribe({next:i=>{i.MessageDetail&&i.MessageDetail.indexOf("BM4OProjects")>0?this.globals.noProjects=!0:(this.searchResultsArray=this.datasource.handleSearchResult(i,da.projects,{participantProjects:e}),e&&(this.destinationDirectProjectsCount=this.searchResultsArray.length,this.participatedResultsArray=this.datasource.handleSearchResult(i,da.projects,{participantProjects:e}),this.zone.run(()=>{setTimeout(()=>{this.showProjectSnack()},0)})),this.detectChanges(),console.log("ProjectSearchResults:",this.searchResultsArray))}})}showProjectSnack(){this.globals.infoShower.isReadMode||(this.projectSnack?.dismiss(),1===this.destinationDirectProjectsCount?(this.projectSnack=this.snack.open(this.globals.languageConfLocal.selectedAddressHasAssignedProject,this.globals.languageConfLocal.LC73057,{duration:7500}),this.projectSnack.afterOpened().subscribe(()=>{this.detectChanges()}),this.projectSnack.onAction().subscribe(()=>{this.projects=[],this.addOneProjectChip(this.searchResultsArray[0])})):this.destinationDirectProjectsCount>1&&(this.projectSnack=this.snack.open(this.globals.languageConfLocal.selectedAddressHasAssignedProjects,"OK",{duration:9500}),this.projectSnack.afterOpened().subscribe(()=>{this.detectChanges()}),this.projectSnack.onAction().subscribe(()=>{setTimeout(()=>{this.projectsAutocompleteTrigger?.openPanel(),this.destinationProjectsInput.nativeElement.focus()},10)})))}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}autoProjectSelected(e){this.addOneProjectChip(e.option.value),this.participatingProjectsFilter="",this.destinationProjectsInput.nativeElement.value=""}autoProjectPhaseSelected(e){this.addOneProjectPhaseChip(e.option.value),this.projectPhaseFilter=""}addOneProjectChip(e){let i=new yw;i.name=e.lineOne,i.pointer=e.fdMe,i.image=e.image,this.datasource.addToRecentlyUsed(e.fdme),this.projects.push(i),this.projectChipsChanged()}addOneProjectPhaseChip(e){let i=new yw;i.name=e.lineOne,i.pointer=e.fdMe,i.image=e.image,this.datasource.addToRecentlyUsed(e.fdme),this.projectPhases.push(i);let r=this.projects.findIndex(o=>o.pointer===e.parentPointer);-1!==r&&this.projects.splice(r,1),this.projectPhaseChipsChanged()}get filteredParticipatedResultsArray(){let e=this.participatingProjectsFilter?.toLowerCase();return this.participatedResultsArray.filter(i=>!this.projects.map(r=>r.pointer).some(r=>r===i.fdMe)&&(!e||i.lineOne.toLowerCase().includes(e)||i.lineTwo?.toLowerCase().includes(e)||i.lineThree?.toLowerCase().includes(e)))}get filteredProjectPhases(){let e=this.projectPhaseFilter?.toLowerCase();return this.projectPhaseResultArray.filter(i=>!this.projectPhases.map(r=>r.pointer).some(r=>r===i.fdMe)&&(!e||i.lineOne.toLowerCase().includes(e)||i.lineTwo?.toLowerCase().includes(e)||i.lineThree?.toLowerCase().includes(e)))}getProjectsLabel(){return this.projects.length>0?this.globals.languageConfLocal.selectedProjects:this.destinationDirectProjectsCount>0?this.globals.languageConfLocal.assignedProjects+" ("+this.destinationDirectProjectsCount+")":this.globals.languageConfLocal.selectProjectsCRM}autocompleteOpened(e){this.dps.closeAll(e)}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(Yc),p(Bt),p(Bk),p(Xt),p(bo),p(nt),p(Br),p(Fc),p(rl))},n.\u0275cmp=ze({type:n,selectors:[["app-project-selector"]],viewQuery:function(e,i){if(1&e&&(Oe(Xne,5),Oe(Zne,5),Oe(Jne,5),Oe(KR,5),Oe(YR,5),Oe(eie,5),Oe(KR,5,Hc),Oe(YR,5,Hc)),2&e){let r;me(r=ge())&&(i.projectSelectorPanel=r.first),me(r=ge())&&(i.searchProjectsInput=r.first),me(r=ge())&&(i.destinationProjectsInputRO=r.first),me(r=ge())&&(i.destinationProjectsInput=r.first),me(r=ge())&&(i.searchProjectPhasesInput=r.first),me(r=ge())&&(i.allProjectsButton=r.first),me(r=ge())&&(i.projectsAutocompleteTrigger=r.first),me(r=ge())&&(i.phasesAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],["id","mainInputProjectSelector",2,"width","100%",3,"click"],[2,"font-size","small"],[1,"projectsChipsHolder"],["chipsInMain",""],[3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","","readonly","","class","projectChipsNoInput",3,"matChipInputFor","focus",4,"ngIf"],["matInput","","class","projectChipsInput",3,"matChipInputFor","formControl","matAutocomplete","input",4,"ngIf"],[1,"projectSelectorAutocomplete",3,"optionSelected","opened"],["auto","matAutocomplete"],["class","projectOption",3,"value",4,"ngFor","ngForOf"],[1,"material-symbols-rounded","allProjects",3,"title","click"],["allProjectsButton",""],["style","width:100%;","id","mainInputProjectPhaseSelector",4,"ngIf"],["class","allProjectsCard",4,"ngIf"],[3,"removable","title","removed"],[1,"chipImage",3,"src"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"],["matInput","","readonly","",1,"projectChipsNoInput",3,"matChipInputFor","focus"],["destinationProjectsInputRO",""],["matInput","",1,"projectChipsInput",3,"matChipInputFor","formControl","matAutocomplete","input"],["destinationProjectsInput",""],[1,"projectOption",3,"value"],[3,"src"],[2,"float","left"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],["id","mainInputProjectPhaseSelector",2,"width","100%"],["searchProjectPhasesInput",""],[1,"allProjectsCard"],["projectSelectorPanel",""],[1,"allProjectsTitle"],[1,"material-symbols-rounded","green",2,"position","relative","cursor","pointer","right","-90px",3,"click"],[1,"allProjectsContent"],[2,"width","100%"],["matInput","","type","text",3,"input"],["searchProjectsInput",""],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click",4,"ngFor","ngForOf"],[1,"allProjectsFooter"],[2,"padding-bottom","2px"],["chipsInCard",""],["matInput","","readonly","",2,"width","100%","height","0px","margin","0px",3,"matChipInputFor"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click"],[1,"resultsLineWrapper"]],template:function(e,i){1&e&&V(0,mie,17,8,"div",0),2&e&&y("ngIf",!i.globals.infoShower.noneSelected&&!i.globals.noProjects)},dependencies:[ci,_n,fo,Fo,Wp,H7,Ko,Gr,ua,vo,Yo,Qk,Kk,Yk,QJ,$m,Vc,Km,Wm,Ok,Hc],styles:['.projectSelectorAutocomplete .mat-option,.projectOption>.mat-option-text,.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.projectSelectorAutocomplete .mat-option>div,.projectOption>.mat-option-text>div,.itemListEntry>div,.projectSelectorAutocomplete .mat-option a,.projectOption>.mat-option-text a,.itemListEntry a,.projectSelectorAutocomplete .mat-option a>div,.projectOption>.mat-option-text a>div,.itemListEntry a>div{display:block;overflow:hidden}.projectSelectorAutocomplete .mat-option>div>[class^=listEntryItem],.projectOption>.mat-option-text>div>[class^=listEntryItem],.itemListEntry>div>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>[class^=listEntryItem],.projectOption>.mat-option-text a>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>div>[class^=listEntryItem],.projectOption>.mat-option-text a>div>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.projectSelectorAutocomplete .mat-option:not(:last-child),.projectOption>.mat-option-text:not(:last-child),.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]),.projectOption>.mat-option-text:hover:not([data-selected=true]),.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]) .resultsLineWrapper,.projectOption>.mat-option-text:hover:not([data-selected=true]) .resultsLineWrapper,.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}.projectSelectorAutocomplete [data-selected=true].mat-option,.projectOption>[data-selected=true].mat-option-text,[data-selected=true].itemListEntry{background-color:#d3d3d3}.projectSelectorAutocomplete [data-selected=true].mat-option .resultsLineWrapper,.projectOption>[data-selected=true].mat-option-text .resultsLineWrapper,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.projectSelectorAutocomplete .mat-option img,.projectOption>.mat-option-text img,.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.projectSelectorAutocomplete .mat-option .resultsLineWrapper,.projectOption>.mat-option-text .resultsLineWrapper,.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.allProjectsContent #resultsContainer{height:50vh;overflow-y:auto}.allProjectsContent #resultsContainer>.recentlyUsed{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}.allProjectsContent #resultsContainer>.recentlyUsed+.itemListEntry{padding-top:8px}.resultsLineWrapper{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}#searchText{font-size:12px}.searchResultsPanel{width:calc(100% - 1px);z-index:4;border-radius:5px}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .projectChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .projectChipsInput:focus{height:auto}.mat-form-field.mat-focused .projectChipsInput{height:auto}.allProjects{cursor:pointer;position:absolute;right:-.1em;top:0em}.allProjects.hasProjects{top:-.7em}.projectOption{height:4em;padding-left:.5em!important}.projectOption>.mat-option-text{display:flex!important;border-bottom:none!important}.projectsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.projectChipsNoInput:not(.hasProjects){display:block;height:0}.projectChipsNoInput.hasProjects{display:none}.allProjectsCard{position:absolute!important;top:.1em;left:3%;z-index:10;width:94%;height:96%;display:flex!important;flex-direction:column;box-shadow:0 0 20px #25282a38!important}.allProjectsTitle{flex-shrink:0;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.allProjectsContent{flex-grow:1;overflow:auto;font-size:12px;margin-bottom:0!important}.allProjectsContent #resultsContainer{height:max-content;overflow:auto;max-height:calc(100% - 50px)}.allProjectsFooter{padding-bottom:.3em}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}.projectOption span.mat-option-text{grid-gap:4px}@keyframes green-fade{0%{background:#4e850c}to{background:#fcfcfc}}.fade-it{animation:green-fade 1s ease-in-out 0s}span.material-symbols-rounded.green:hover{color:#00b800;font-weight:900}\n'],encapsulation:2}),n})();const _ie=["searchExpansionPanel"],vie=["searchTextInput"];function yie(n,t){if(1&n&&(g(0,"mat-option",17),j(1),v()),2&n){const e=t.$implicit;y("value",e.value),m(1),we(e.viewValue)}}function bie(n,t){if(1&n){const e=je();g(0,"mat-form-field",15)(1,"mat-label"),j(2),v(),g(3,"mat-select",7),X("valueChange",function(r){return oe(e),se(x().selectedDB=r)})("selectionChange",function(){return oe(e),se(x().selectedDBChanged())}),V(4,yie,2,2,"mat-option",16),v()()}if(2&n){const e=x();m(2),we(e.globals.languageConfLocal.contactsDatabase),m(1),y("value",e.selectedDB),m(1),y("ngForOf",e.databases)}}function Cie(n,t){if(1&n&&(g(0,"mat-option",18),j(1),v()),2&n){const e=x();m(1),we(e.globals.languageConfLocal.NoCompany)}}function wie(n,t){if(1&n&&(g(0,"mat-option",19),j(1),v()),2&n){const e=x();m(1),we(e.globals.languageConfLocal.ExistingCompany)}}function Eie(n,t){if(1&n){const e=je();g(0,"div")(1,"mat-form-field",20)(2,"mat-label"),j(3),v(),g(4,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Company=r)}),v()(),g(5,"mat-form-field",22)(6,"mat-label"),j(7),v(),g(8,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.CompanyEmail=r)}),v()(),g(9,"mat-form-field",22)(10,"mat-label"),j(11),v(),g(12,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.CompanyPhone=r)}),v()(),g(13,"mat-form-field",22)(14,"mat-label"),j(15),v(),g(16,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.CompanyFax=r)}),v()(),g(17,"mat-form-field",22)(18,"mat-label"),j(19),v(),g(20,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Url=r)}),v()(),g(21,"mat-form-field",22)(22,"mat-label"),j(23),v(),g(24,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Street=r)}),v()(),g(25,"mat-form-field",22)(26,"mat-label"),j(27),v(),g(28,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.City=r)}),v()(),g(29,"mat-form-field",22)(30,"mat-label"),j(31),v(),g(32,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Zip=r)}),v()()()}if(2&n){const e=x();m(3),we(e.globals.languageConfLocal.Name),m(1),y("ngModel",e.extractedContact.Company),m(3),we(e.globals.languageConfLocal.Email),m(1),y("ngModel",e.extractedContact.CompanyEmail),m(3),we(e.globals.languageConfLocal.Telephone),m(1),y("ngModel",e.extractedContact.CompanyPhone),m(3),we(e.globals.languageConfLocal.Fax),m(1),y("ngModel",e.extractedContact.CompanyFax),m(3),we(e.globals.languageConfLocal.Web),m(1),y("ngModel",e.extractedContact.Url),m(3),we(e.globals.languageConfLocal.Street),m(1),y("ngModel",e.extractedContact.Street),m(3),we(e.globals.languageConfLocal.City),m(1),y("ngModel",e.extractedContact.City),m(3),we(e.globals.languageConfLocal.Zip),m(1),y("ngModel",e.extractedContact.Zip)}}function Die(n,t){if(1&n){const e=je();g(0,"span",37),X("click",function(r){return oe(e),se(x(3).clearTextClicked(r))}),j(1,"cancel"),v()}}function Sie(n,t){1&n&&(g(0,"span",38),j(1,"expand_less"),v())}function Aie(n,t){1&n&&(g(0,"span",38),j(1,"search"),v())}function Tie(n,t){if(1&n&&(g(0,"div",39),j(1),v()),2&n){const e=x(3);m(1),Qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function xie(n,t){if(1&n){const e=je();g(0,"div",40),X("click",function(r){return oe(e),se(x(3).clickedElement(r))}),xe(1,"img",41),g(2,"div",42)(3,"span",43),j(4),v(),xe(5,"br"),g(6,"span",44),j(7),v(),xe(8,"br"),g(9,"span",44),j(10),v(),xe(11,"br"),v()()}if(2&n){const e=t.$implicit,i=t.index,r=x(3);Ot("title",r.parseHtmlEntities(e.lineOne)),ot("data-fdme",e.fdMe)("data-email",e.email)("data-order",i+1),m(1),y("src",r.datasource.getImageSrc(e.image),Zn),m(2),Ot("title",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")),m(1),Qe(" ",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")," "),m(2),Ot("title",r.parseHtmlEntities(e.lineTwo)),m(1),we(r.parseHtmlEntities(e.lineTwo)),m(2),Ot("title",r.parseHtmlEntities(e.lineThree)),m(1),we(r.parseHtmlEntities(e.lineThree))}}function Iie(n,t){if(1&n){const e=je();g(0,"mat-expansion-panel",25,26),X("closed",function(){return oe(e),se(x(2).searchResultsPanelClosed())})("opened",function(){return oe(e),se(x(2).searchResultsPanelOpened())}),g(2,"mat-expansion-panel-header")(3,"mat-panel-title",27)(4,"mat-form-field",28)(5,"mat-label",29),j(6,"Search for company"),v(),g(7,"input",30,31),X("keydown.Space",function(r){return oe(e),se(x(2).noCloseOnSpace(r))})("input",function(r){return oe(e),se(x(2).textChanged(r))})("focus",function(r){return oe(e),se(x(2).searchInputFocused(r))})("click",function(r){return oe(e),se(x(2).searchInputClicked(r))})("ngModelChange",function(r){return oe(e),se(x(2).textInSearchInput=r)}),v()(),V(9,Die,2,0,"span",32),V(10,Sie,2,0,"span",33),V(11,Aie,2,0,"span",33),v()(),g(12,"div",34),V(13,Tie,2,1,"div",35),V(14,xie,12,11,"div",36),v()()}if(2&n){const e=sn(8),i=x(2);m(7),y("ngModel",i.textInSearchInput),m(2),y("ngIf",e.value.length>0),m(1),y("ngIf",i.searchPanelExpanded),m(1),y("ngIf",!i.searchPanelExpanded),m(2),y("ngIf",i.showRecentlyUsed),m(1),y("ngForOf",i.searchResultsArray)}}function Mie(n,t){if(1&n){const e=je();g(0,"div"),V(1,Iie,15,6,"mat-expansion-panel",23),g(2,"mat-form-field",20)(3,"mat-label"),j(4),v(),g(5,"input",24),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.CompanyName=r)}),v()(),g(6,"mat-form-field",22)(7,"mat-label"),j(8),v(),g(9,"input",24),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.CompanyAddress=r)}),v()()()}if(2&n){const e=x();m(1),y("ngIf",e.letThereBeSearch),m(3),we(e.globals.languageConfLocal.Name),m(1),y("ngModel",e.extractedContact.CompanyName),m(3),we(e.globals.languageConfLocal.Address),m(1),y("ngModel",e.extractedContact.CompanyAddress)}}function kie(n,t){if(1&n&&(g(0,"mat-option",45),j(1),v()),2&n){const e=x();m(1),we(e.globals.languageConfLocal.NoContact)}}function Rie(n,t){if(1&n){const e=je();g(0,"div")(1,"mat-form-field",22)(2,"mat-label"),j(3),v(),g(4,"input",21),X("ngModelChange",function(r){return oe(e),se(x(2).extractedContact.Street=r)}),v()(),g(5,"mat-form-field",22)(6,"mat-label"),j(7),v(),g(8,"input",21),X("ngModelChange",function(r){return oe(e),se(x(2).extractedContact.City=r)}),v()(),g(9,"mat-form-field",22)(10,"mat-label"),j(11),v(),g(12,"input",21),X("ngModelChange",function(r){return oe(e),se(x(2).extractedContact.Zip=r)}),v()()()}if(2&n){const e=x(2);m(3),we(e.globals.languageConfLocal.Street),m(1),y("ngModel",e.extractedContact.Street),m(3),we(e.globals.languageConfLocal.City),m(1),y("ngModel",e.extractedContact.City),m(3),we(e.globals.languageConfLocal.Zip),m(1),y("ngModel",e.extractedContact.Zip)}}function Oie(n,t){if(1&n){const e=je();g(0,"div")(1,"mat-form-field",20)(2,"mat-label"),j(3),v(),g(4,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.LastName=r)}),v()(),g(5,"mat-form-field",22)(6,"mat-label"),j(7),v(),g(8,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.FirstName=r)}),v()(),g(9,"mat-form-field",22)(10,"mat-label"),j(11),v(),g(12,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Department=r)}),v()(),g(13,"mat-form-field",22)(14,"mat-label"),j(15),v(),g(16,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Phone=r)}),v()(),g(17,"mat-form-field",22)(18,"mat-label"),j(19),v(),g(20,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Mobile=r)}),v()(),g(21,"mat-form-field",22)(22,"mat-label"),j(23),v(),g(24,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Fax=r)}),v()(),g(25,"mat-form-field",22)(26,"mat-label"),j(27),v(),g(28,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Email=r)}),v()(),V(29,Rie,13,6,"div",11),v()}if(2&n){const e=x();m(3),we(e.globals.languageConfLocal.Lastname),m(1),y("ngModel",e.extractedContact.LastName),m(3),we(e.globals.languageConfLocal.Firstname),m(1),y("ngModel",e.extractedContact.FirstName),m(3),we(e.globals.languageConfLocal.Department),m(1),y("ngModel",e.extractedContact.Department),m(3),we(e.globals.languageConfLocal.Telephone),m(1),y("ngModel",e.extractedContact.Phone),m(3),we(e.globals.languageConfLocal.Mobile),m(1),y("ngModel",e.extractedContact.Mobile),m(3),we(e.globals.languageConfLocal.Fax),m(1),y("ngModel",e.extractedContact.Fax),m(3),we(e.globals.languageConfLocal.Email),m(1),y("ngModel",e.extractedContact.Email),m(1),y("ngIf","compNo"===e.companyAction)}}let Pie=(()=>{class n{constructor(e,i,r,o,s){this.globals=e,this.datasource=i,this.messageService=r,this.htmlHelper=o,this.lsm=s,this.searchResultsArray=[],this.showRecentlyUsed=!1,this.showExistingCompany=!0,this.showNoContact=!0,this.letThereBeSearch=!1,this.databases=[],this.emailRegex=/^((?!\.)[\w\-_.]*[^.])(@((?!\.)[\w\-_.]*[^.]))(\.\w+(\.\w+)?[^.\W])$/,this.gotFocused=!1,this.extractedContact=new wm}ngOnInit(){this.getContactDBs(),this.globals.infoShower.displayedDestination&&this.globals.infoShower.displayedDestination.additional.fallback?(this.companyAction="compExist",this.showNoContact=!1):(this.companyAction="compNew",this.showExistingCompany=!1),this.contactAction="contNew",this.companyActionOldValue=this.companyAction,this.contactActionOldValue=this.contactAction,this.extractedContact=this.globals.infoShower.extractedContactData,this.comapanyMail=this.extractedContact.CompanyEmail,this.recognizedMail=this.extractedContact.Email,this.compannyName=this.extractedContact.Company,this.itIsGI="gi"===this.globals.system,this.generateDataBaseOnTheEmail(this.contactAction,null,this.companyAction,null)}creationSelectionChange(e){this.showNoContact="compExist"!==this.companyAction,"compExist"===this.companyAction&&(this.contactAction="contNew"),this.extractedContact.Company="compExist"!==this.companyAction||this.extractedContact.CompanyPointer?this.compannyName:"",this.generateDataBaseOnTheEmail(this.contactAction,this.contactActionOldValue,this.companyAction,this.companyActionOldValue),this.companyActionOldValue=this.companyAction,this.contactActionOldValue=this.contactAction}generateDataBaseOnTheEmail(e,i,r,o){null!=i&&null!=o&&("compNew"===r&&"contNo"===e&&(this.extractedContact.CompanyEmail||(this.extractedContact.CompanyEmail=this.extractedContact.Email)),r===o&&!this.extractedContact.CompanyFax&&(this.extractedContact.CompanyFax=this.extractedContact.Fax),r===o&&!this.extractedContact.CompanyPhone&&(this.extractedContact.CompanyPhone=this.extractedContact.Phone))}createClicked(){this.globals.showSpinner();let e=document.querySelectorAll(".textInputControl"),i="";e.forEach(r=>{let o=r;this.htmlHelper.isHtml(o.value)&&(i+="["+o.parentNode.children[1].innerText+"] "+this.globals.languageConfLocal.ContainsDangerousContent+"
")}),"compNew"===this.companyAction&&((!this.extractedContact.Company||0===this.extractedContact.Company.trim().length)&&(i+=this.globals.languageConfLocal.CompanyNameRequired+"
"),this.extractedContact.CompanyEmail&&this.extractedContact.CompanyEmail.length>0&&!this.emailRegex.test(this.extractedContact.CompanyEmail)&&(i+=this.globals.languageConfLocal.EmailCompanyNotInCorrectFormat+"
")),"contNew"===this.contactAction&&((!this.extractedContact.LastName||0===this.extractedContact.LastName.trim().length)&&(i+=this.globals.languageConfLocal.LastNameRequired+"
"),this.extractedContact.Email&&0!==this.extractedContact.Email.trim().length?this.extractedContact.Email&&this.extractedContact.Email.length>0&&!this.emailRegex.test(this.extractedContact.Email)&&(i+=this.globals.languageConfLocal.EmailContactNotInCorrectFormat+"
"):i+=this.globals.languageConfLocal.EmailRequired+"
"),this.datasource.validateDataInBackend(this.extractedContact,this.contactAction,this.companyAction,this.selectedDB).subscribe(r=>{"PASS"!==r.Validation&&(i+=r.errors.join("
")),i?(this.globals.hideSpinner(),this.messageService.showError(i,"Error",!1,15e3)):this.datasource.quickCreateContact(this.extractedContact,this.contactAction,this.companyAction,this.selectedDB).subscribe({next:o=>{o&&("contNew"===this.contactAction?this.messageService.showMessageAsync("compNew"===this.companyAction?this.globals.languageConfLocal.NewCompanyAndContactCreated:"compExist"===this.companyAction?this.globals.languageConfLocal.NewContactCreatedAndAdded:this.globals.languageConfLocal.NewStandaloneContactCreated,lr.success):"compNew"===this.companyAction&&this.messageService.showMessageAsync(this.globals.languageConfLocal.NewCompanyCreated,lr.success),this.globals.hideSpinner(),this.globals.activeWindow="main")},error:o=>{this.globals.hideSpinner()}})})}cancelClicked(){this.globals.activeWindow="main"}searchResultsPanelOpened(){let e=this.searchExpansionPanel._body.nativeElement.childNodes[0];e.style.paddingRight="3px",e.style.paddingLeft="3px",e.style.paddingBottom="3px",e.style.backgroundColor="#ffffff",e.style.zIndex=5,this.searchPanelExpanded=!0,this.searchTextInput.nativeElement.focus()}searchResultsPanelClosed(){this.searchPanelExpanded=!1}noCloseOnSpace(e){e.stopPropagation()}textChanged(e){this.textInSearchInput.length>0&&this.searchExpansionPanel.open(),this.getCompanies()}clearTextClicked(e){this.textInSearchInput="",this.searchPanelExpanded&&(this.getCompanies(),this.searchTextInput.nativeElement.focus()),e.stopPropagation()}searchInputFocused(e){setTimeout(()=>{this.searchExpansionPanel.open()},100),this.gotFocused=!0}searchInputClicked(e){this.gotFocused&&e.stopPropagation(),this.gotFocused=!1}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}clickedElement(e){this.selectCompany(e.currentTarget)}getCompanies(){}selectCompany(e){}getContactDBs(){this.datasource.fetchDBs("dbConnections",null).subscribe({next:e=>{console.log("DBs:",e),this.filterForContacts(e)}})}filterForContacts(e){const i={};for(const r in e)"GeOfficeAliases"!==r&&"Contact"===e[r].type&&(i[r]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){this.databases=[];for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:e[i]});if(console.log(this.databases),this.databases.length>0){let i=this.lsm.getValue(tn.contactDB);null!==i?this.databases.forEach(r=>{r.value===i&&(this.selectedDB=r.value)}):this.selectedDB=this.databases[0].value}}selectedDBChanged(){this.initialDBSelection?this.initialDBSelection=!1:this.lsm.setValue(tn.contactDB,this.selectedDB)}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(bo),p(en),p(bC),p(Br))},n.\u0275cmp=ze({type:n,selectors:[["app-contact-creator"]],viewQuery:function(e,i){if(1&e&&(Oe(_ie,5),Oe(vie,5)),2&e){let r;me(r=ge())&&(i.searchExpansionPanel=r.first),me(r=ge())&&(i.searchTextInput=r.first)}},decls:32,vars:16,consts:[[2,"box-shadow","none"],[1,"left-right-align"],[1,"material-symbols-rounded","green",2,"cursor","pointer",3,"click"],[1,"material-symbols-rounded","red",2,"cursor","pointer",3,"click"],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],[1,"noHeaderText"],["floatLabel","auto",2,"width","100%","margin-left","5px","margin-right","5px"],[3,"value","valueChange","selectionChange"],["value","compNo",4,"ngIf"],["value","compNew"],["value","compExist",4,"ngIf"],[4,"ngIf"],["value","contNo",4,"ngIf"],["value","contNew"],[1,"cardWithBackground"],["appearance","standard",1,"databaseSearchSelect"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["value","compNo"],["value","compExist"],["floatLabel","auto",2,"width","100%","margin-top","5px"],["matInput","",1,"textInputControl",3,"ngModel","ngModelChange"],["floatLabel","auto",2,"width","100%"],["class","searchResultsPanel mat-elevation-z0","hideToggle","",3,"closed","opened",4,"ngIf"],["matInput","","disabled","",3,"ngModel","ngModelChange"],["hideToggle","",1,"searchResultsPanel","mat-elevation-z0",3,"closed","opened"],["searchExpansionPanel",""],[1,"searchInCRMHeader"],[2,"width","100%","vertical-align","bottom"],[2,"font-size","small"],["matInput","","type","search","id","searchText","name","searchText",3,"ngModel","keydown.Space","input","focus","click","ngModelChange"],["searchTextInput",""],["class","material-symbols-rounded clearIcon",3,"click",4,"ngIf"],["class","material-symbols-rounded searchIcon",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click",4,"ngFor","ngForOf"],[1,"material-symbols-rounded","clearIcon",3,"click"],[1,"material-symbols-rounded","searchIcon"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click"],[1,"normalImage",3,"src"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],["value","contNo"]],template:function(e,i){1&e&&(g(0,"mat-card",0)(1,"mat-card-title",1),j(2),g(3,"div")(4,"span",2),X("click",function(){return i.createClicked()}),j(5,"check_circle"),v(),g(6,"span",3),X("click",function(){return i.cancelClicked()}),j(7,"cancel"),v()()(),V(8,bie,5,3,"mat-form-field",4),g(9,"mat-card-header",5)(10,"mat-form-field",6)(11,"mat-label"),j(12),v(),g(13,"mat-select",7),X("valueChange",function(o){return i.companyAction=o})("selectionChange",function(o){return i.creationSelectionChange(o)}),V(14,Cie,2,1,"mat-option",8),g(15,"mat-option",9),j(16),v(),V(17,wie,2,1,"mat-option",10),v()()(),g(18,"mat-card-content"),V(19,Eie,33,16,"div",11),V(20,Mie,10,5,"div",11),v()(),g(21,"mat-card",0)(22,"mat-card-header",5)(23,"mat-form-field",6)(24,"mat-label"),j(25),v(),g(26,"mat-select",7),X("valueChange",function(o){return i.contactAction=o})("selectionChange",function(o){return i.creationSelectionChange(o)}),V(27,kie,2,1,"mat-option",12),g(28,"mat-option",13),j(29),v()()()(),g(30,"mat-card-content",14),V(31,Oie,30,15,"div",11),v()()),2&e&&(m(2),Qe(" ",i.globals.languageConfLocal.ContactQuickCreation," "),m(6),y("ngIf",null!=i.databases&&i.databases.length>0),m(4),we(i.globals.languageConfLocal.ComapnyAction),m(1),y("value",i.companyAction),m(1),y("ngIf",i.itIsGI),m(2),we(i.globals.languageConfLocal.NewCompany),m(1),y("ngIf",i.showExistingCompany),m(1),wi("compExist"!==i.companyAction?"cardWithBackground":"cardWithBackgroundDarker"),m(1),y("ngIf","compNew"===i.companyAction),m(1),y("ngIf","compExist"===i.companyAction),m(5),we(i.globals.languageConfLocal.ContactAction),m(1),y("value",i.contactAction),m(1),y("ngIf",i.showNoContact),m(2),we(i.globals.languageConfLocal.NewContact),m(2),y("ngIf","contNew"===i.contactAction))},dependencies:[ci,_n,fo,Fo,ps,Ko,Gr,ua,vo,Yo,ew,Wk,$k,Qk,XJ,Kk,Yk],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}#resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.mat-card-header[_ngcontent-%COMP%]{background-color:#d3d3d3;padding:5px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#context-menu[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 20px #25282a38;color:#1f194c;width:10em;padding:.8em .6em;font-size:13px;position:fixed;visibility:hidden}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:.3em 1.2em}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;cursor:pointer}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#5f5f5f}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}#searchText[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:4.5em;font-size:small}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expanded[_ngcontent-%COMP%]{border:#4d4d4d;border-width:3px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.contactSelectorDiv[_ngcontent-%COMP%]{width:100%;height:-moz-fit-content;height:fit-content}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}.searchIcon[_ngcontent-%COMP%]{position:absolute;right:3px;bottom:22px}.clearIcon[_ngcontent-%COMP%]{position:absolute;right:27px;bottom:22px}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.databaseSearchSelect[_ngcontent-%COMP%] + .searchResultsPanel[_ngcontent-%COMP%]{margin-top:-16px}.material-symbols-rounded[_ngcontent-%COMP%]{font-variation-settings:"FILL" 0,"wght" 300,"GRAD" -25,"opsz" 18} .noHeaderText>div.mat-card-header-text{display:none}.noHeaderText[_ngcontent-%COMP%]{border-top-right-radius:5px;border-top-left-radius:5px}.cardWithBackground[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#f1f1f1;border-bottom-left-radius:5px;border-bottom-right-radius:5px;padding:5px}.cardWithBackgroundDarker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#e8e8e8;border-bottom-left-radius:5px;border-bottom-right-radius:5px;padding:5px}.mat-input-element[_ngcontent-%COMP%]:disabled{color:#000}span.material-symbols-rounded.red[_ngcontent-%COMP%]:hover{color:red;font-weight:900}span.material-symbols-rounded.green[_ngcontent-%COMP%]:hover{color:#00b800;font-weight:900}.left-right-align[_ngcontent-%COMP%]{display:flex;justify-content:space-between}']}),n})();const QR={appVersion:G(4147).i8+"-beta",production:!0,basehref:"businessmail-beta"};let Lie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.messageService=i,this.mailLoadedService=r,this.ref=o,this.translate=s,this.waitList=a,this.datasource=l,this.lsm=c,this.dps=u}ngOnInit(){this.datasource.getProductVersion().subscribe(e=>{this.globals.backendVersion=e,this.crmVersion=this.globals.system.toUpperCase()+" "+this.globals.backendVersion}),this.appVersion=QR.appVersion,this.disclaimer=this.globals.languageConfLocal.Disclaimer.replace("{{currentYear}}",(new Date).getFullYear().toString())}closeClicked(){this.globals.activeWindow="main"}openGedys(){window.open("http://www.gedys-intraware.de","_blank")}licenseInfo(){window.open("assets/licenseInfo.txt","_blank")}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(en),p(Yc),p(Bt),p(Xt),p(Ji),p(bo),p(Br),p(Fc))},n.\u0275cmp=ze({type:n,selectors:[["app-about"]],decls:17,vars:5,consts:[[2,"text-align","center"],[2,"margin-top","25px"],["href","#",3,"click"],["mat-button","",2,"background-color","rgb(212, 212, 212)","position","fixed","bottom","30px","left","40%",3,"click"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"h1",1),j(2,"BusinessMail4Outlook"),v(),g(3,"h4"),j(4),v(),g(5,"h4"),j(6),v(),g(7,"div"),j(8),g(9,"a",2),X("click",function(){return i.openGedys()}),j(10,"www.gedys-intraware.de"),v()(),g(11,"div"),xe(12,"br"),g(13,"a",2),X("click",function(){return i.licenseInfo()}),j(14),v()(),g(15,"button",3),X("click",function(){return i.closeClicked()}),j(16),v()()),2&e&&(m(4),Qe("Addin version: ",i.appVersion,""),m(2),Qe("CRM version: ",i.crmVersion,""),m(2),Qe("",i.disclaimer," "),m(6),we(i.globals.languageConfLocal.licenseInfo),m(2),we(i.globals.languageConfLocal.Close))},dependencies:[Nc],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}#resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#context-menu[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 20px #25282a38;color:#1f194c;width:10em;padding:.8em .6em;font-size:13px;position:fixed;visibility:hidden}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:.3em 1.2em}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;cursor:pointer}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#5f5f5f}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}#searchText[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:4.5em;font-size:small}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expanded[_ngcontent-%COMP%]{border:#4d4d4d;border-width:3px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.contactSelectorDiv[_ngcontent-%COMP%]{width:100%;height:-moz-fit-content;height:fit-content}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}.searchIcon[_ngcontent-%COMP%]{position:absolute;right:3px;bottom:22px}.clearIcon[_ngcontent-%COMP%]{position:absolute;right:27px;bottom:22px}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.databaseSearchSelect[_ngcontent-%COMP%] + .searchResultsPanel[_ngcontent-%COMP%]{margin-top:-16px}']}),n})(),Nie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this.globals=e,this.messageService=i,this.mailLoadedService=r,this.ref=o,this.translate=s,this.waitList=a,this.datasource=l,this.lsm=c,this.http=u,this.dps=d}ngOnInit(){this.http.get("assets/licenseInfo.txt",{responseType:"text"}).subscribe(e=>{this.licInfo=e})}closeClicked(){this.globals.activeWindow="about"}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(en),p(Yc),p(Bt),p(Xt),p(Ji),p(bo),p(Br),p(Xu),p(Fc))},n.\u0275cmp=ze({type:n,selectors:[["app-license-information"]],decls:6,vars:2,consts:[[2,"text-align","center"],[2,"margin-bottom","0px","height","calc(100vh - 1px)","text-align","justify"],["mat-button","",2,"background-color","rgb(212, 212, 212)","position","fixed","bottom","30px","left","40%",3,"click"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"div")(2,"pre",1),j(3),v()(),g(4,"button",2),X("click",function(){return i.closeClicked()}),j(5),v()()),2&e&&(m(3),Qe(" ",i.licInfo,"\n "),m(2),we(i.globals.languageConfLocal.Close))},dependencies:[Nc]}),n})();const Fie=["projectSelectorPanel"],Bie=["searchProjectsInput"],XR=["tagsInput"];function Hie(n,t){if(1&n){const e=je();g(0,"mat-chip",11),X("removed",function(){const o=oe(e).$implicit;return se(x(2).removeTag(o))}),g(1,"div",12),j(2),v(),g(3,"button",13)(4,"span",14),j(5,"cancel"),v()()()}if(2&n){const e=t.$implicit;y("removable",!0)("title",e[1]),m(2),we(e[1])}}function Vie(n,t){if(1&n&&(g(0,"mat-option",15)(1,"div",16)(2,"div",17),j(3),v()()()),2&n){const e=t.$implicit,i=x(2);y("value",e),ot("data-key",e[0]),m(2),Ot("title",i.parseHtmlEntities(e[1])),m(1),Qe(" ",i.parseHtmlEntities(e[1])," ")}}function jie(n,t){if(1&n){const e=je();g(0,"div")(1,"mat-form-field",1)(2,"mat-label",2),j(3),v(),g(4,"mat-chip-list",3,4),V(6,Hie,6,3,"mat-chip",5),g(7,"input",6,7),X("input",function(r){return oe(e),se(x().searchTags(r))}),v(),g(9,"mat-autocomplete",8,9),X("optionSelected",function(r){return oe(e),se(x().autoTagsSelected(r))})("opened",function(){return oe(e),se(x().autocompleteOpened("tagsAuto"))}),V(11,Vie,4,4,"mat-option",10),v()()()()}if(2&n){const e=sn(5),i=sn(10),r=x();m(3),we(r.globals.languageConfLocal.tags),m(3),y("ngForOf",r.enums),m(1),y("matChipInputFor",e)("matAutocomplete",i),m(4),y("ngForOf",r.filteredParticipatedResultsArray)}}let Uie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this.globals=e,this.mailLoadedService=i,this.ref=r,this.snack=o,this.translate=s,this.datasource=a,this.zone=l,this.lsm=c,this.dps=u,this.ews=d,this.searchResultsArray=[],this.searchTextInput="",this.availableTags=[],this.databases=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.enums=[],this.tagsVisible=!0;let e=Office.context.mailbox.item;e&&(this.tagsVisible="appointment"!==e.itemType),"gi"===this.globals.system&&(this.showRecentlyUsed=!1,this.tagsVisible=!1),this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:i=>{this.getTags()}}),this.dps.addThingToClose("tagsAuto",()=>{this.projectsAutocompleteTrigger?.closePanel()}),this.globals.infoShower.waitForItemRecognition().subscribe(i=>{"appointment"===e?.itemType&&this.ews.GetExtendedData(i).subscribe(r=>{})}),this.globals.infoShower.waitForUpdateBM4ODataCommand().subscribe(i=>{})}ngOnDestroy(){this.mailLoadedService.unsubscribeAll(this.constructor.name)}detectChanges(){this.ref.detectChanges()}removeTag(e){this.enums.splice(this.enums.findIndex(i=>i[0]===e[0]),1),this.tagsChipsChanged()}tagsChipsChanged(){if(Office.context.mailbox.item){let i=JSON.stringify(this.enums),r=this.globals.infoShower.currentItemId;this.lsm.setValue(tn.selectedProjects,i),this.ews.GetExtendedData(r).subscribe(o=>{o.tags=i,this.ews.SaveExtendedData(r,o).subscribe(s=>{})})}}textChanged(e){let i=e.target.value;"ba"===this.globals.system&&(this.showRecentlyUsed=0===i.length),i.length>0&&!this.searchPanelExpanded?this.searchPanelExpanded=!0:0===i.length&&this.searchPanelExpanded&&(this.searchPanelExpanded=!1),this.searchValue=i,this.getTags()}searchTags(e){this.participatingProjectsFilter=e.target.value}getTags(){this.datasource.getEnumValues("CD5C4D16-354E-40F3-A978-CB467D5A0E3A").subscribe({next:e=>{this.searchResultsArray=e,this.detectChanges()}})}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}autoTagsSelected(e){this.addOneProjectChip(e.option.value),this.participatingProjectsFilter="",this.tagsInput.nativeElement.value=""}addOneProjectChip(e){this.enums.push(e),this.tagsChipsChanged()}get filteredParticipatedResultsArray(){let e=this.participatingProjectsFilter?.toLowerCase();return this.searchResultsArray.filter(i=>!this.enums.map(r=>r[0]).some(r=>r===i[0])&&(!e||i[1].toLowerCase().includes(e)))}autocompleteOpened(e){this.dps.closeAll(e)}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(Yc),p(Bt),p(Bk),p(Xt),p(bo),p(nt),p(Br),p(Fc),p(rl))},n.\u0275cmp=ze({type:n,selectors:[["app-tags-selector"]],viewQuery:function(e,i){if(1&e&&(Oe(Fie,5),Oe(Bie,5),Oe(XR,5),Oe(XR,5,Hc)),2&e){let r;me(r=ge())&&(i.projectSelectorPanel=r.first),me(r=ge())&&(i.searchProjectsInput=r.first),me(r=ge())&&(i.tagsInput=r.first),me(r=ge())&&(i.projectsAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],["id","mainInputTagsSelector",2,"width","100%"],[2,"font-size","small"],[1,"tagsChipsHolder"],["chipsInMain",""],[3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","",1,"tagsChipsInput",3,"matChipInputFor","matAutocomplete","input"],["tagsInput",""],[1,"tagsSelectorAutocomplete",3,"optionSelected","opened"],["auto","matAutocomplete"],["class","tagsOption",3,"value",4,"ngFor","ngForOf"],[3,"removable","title","removed"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"],[1,"tagsOption",3,"value"],[2,"float","left"],[1,"listEntryItemMainLine",3,"title"]],template:function(e,i){1&e&&V(0,jie,12,5,"div",0),2&e&&y("ngIf",!i.globals.infoShower.noneSelected&&i.tagsVisible)},dependencies:[ci,_n,Ko,Gr,vo,Yo,$m,Vc,Km,Wm,Ok,Hc],styles:['.tagsSelectorAutocomplete .mat-option,.tagsOption>.mat-option-text,.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.tagsSelectorAutocomplete .mat-option>div,.tagsOption>.mat-option-text>div,.itemListEntry>div,.tagsSelectorAutocomplete .mat-option a,.tagsOption>.mat-option-text a,.itemListEntry a,.tagsSelectorAutocomplete .mat-option a>div,.tagsOption>.mat-option-text a>div,.itemListEntry a>div{display:block;overflow:hidden}.tagsSelectorAutocomplete .mat-option>div>[class^=listEntryItem],.tagsOption>.mat-option-text>div>[class^=listEntryItem],.itemListEntry>div>[class^=listEntryItem],.tagsSelectorAutocomplete .mat-option a>[class^=listEntryItem],.tagsOption>.mat-option-text a>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.tagsSelectorAutocomplete .mat-option a>div>[class^=listEntryItem],.tagsOption>.mat-option-text a>div>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.tagsSelectorAutocomplete .mat-option:not(:last-child),.tagsOption>.mat-option-text:not(:last-child),.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.tagsSelectorAutocomplete .mat-option:hover:not([data-selected=true]),.tagsOption>.mat-option-text:hover:not([data-selected=true]),.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.tagsSelectorAutocomplete .mat-option:hover:not([data-selected=true]) .resultsLineWrapper,.tagsOption>.mat-option-text:hover:not([data-selected=true]) .resultsLineWrapper,.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}.tagsSelectorAutocomplete [data-selected=true].mat-option,.tagsOption>[data-selected=true].mat-option-text,[data-selected=true].itemListEntry{background-color:#d3d3d3}.tagsSelectorAutocomplete [data-selected=true].mat-option .resultsLineWrapper,.tagsOption>[data-selected=true].mat-option-text .resultsLineWrapper,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.tagsSelectorAutocomplete .mat-option img,.tagsOption>.mat-option-text img,.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.tagsSelectorAutocomplete .mat-option .resultsLineWrapper,.tagsOption>.mat-option-text .resultsLineWrapper,.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .tagsChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .tagsChipsInput:focus{height:auto}.mat-form-field.mat-focused .tagsChipsInput{height:auto}.tagsOption{height:2.5em!important;padding-left:.5em!important}.tagsOption>.mat-option-text{display:flex!important;border-bottom:none!important}.tagsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tagsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.tagsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}.tagsOption span.mat-option-text{grid-gap:4px}\n'],encapsulation:2}),n})(),ZR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n,bootstrap:[EC]}),n.\u0275inj=lt({providers:[pt,CC,EI,Nn,Em,{provide:Df,useValue:{}},{provide:Oy,useClass:Qj,multi:!0},tl],imports:[WT,kj,Rj,Yj,kZ,TI.forRoot({preventDuplicates:!0}),J7,DQ,EI,QG,am,nW,MW,ia,tY,T1,zee,ZM,MJ,GJ,ZJ,ree,lee,bee,Mee,Nk,lJ,YZ,ZM.forRoot(new zte({auth:{clientId:"82cc362f-b9da-43a3-b9f8-3008e6d47d9e"},cache:{cacheLocation:"localStorage",storeAuthStateInCookie:!0}}),{interactionType:We.Redirect,authRequest:{scopes:["user.read"]}},{interactionType:We.Redirect,protectedResourceMap:new Map}),hU.forRoot({defaultLanguage:"en",loader:{provide:Zu,useClass:jZ}})]}),n})();(function Tw(n,t,e){const i=n.\u0275cmp;i.directiveDefs=()=>("function"==typeof t?t():t).map(xw),i.pipeDefs=()=>("function"==typeof e?e():e).map(qi)})(EC,function(){return[_n,Qs,Nc,Ns,IQ,RQ,VZ,Kee,Gte,sne,Lie,Fne,Pie,Yne,Qne,gie,Uie,Nie]},[]),QR.production&&function g4(){KA=!1}();try{Office.initialize=()=>{UT().bootstrapModule(ZR)}}catch{UT().bootstrapModule(ZR).catch(t=>console.error(t))}},4999:Pe=>{"use strict";var C=function(z){return function G(B){return!!B&&"object"==typeof B}(z)&&!function le(B){var z=Object.prototype.toString.call(B);return"[object RegExp]"===z||"[object Date]"===z||function Y(B){return B.$$typeof===K}(B)}(z)},K="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function F(B,z){return!1!==z.clone&&z.isMergeableObject(B)?D(function q(B){return Array.isArray(B)?[]:{}}(B),B,z):B}function M(B,z,ne){return B.concat(z).map(function(Ce){return F(Ce,ne)})}function w(B){return Object.keys(B).concat(function A(B){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(B).filter(function(z){return B.propertyIsEnumerable(z)}):[]}(B))}function P(B,z){try{return z in B}catch{return!1}}function D(B,z,ne){(ne=ne||{}).arrayMerge=ne.arrayMerge||M,ne.isMergeableObject=ne.isMergeableObject||C,ne.cloneUnlessOtherwiseSpecified=F;var Ce=Array.isArray(z);return Ce===Array.isArray(B)?Ce?ne.arrayMerge(B,z,ne):function k(B,z,ne){var Ce={};return ne.isMergeableObject(B)&&w(B).forEach(function(W){Ce[W]=F(B[W],ne)}),w(z).forEach(function(W){(function E(B,z){return P(B,z)&&!(Object.hasOwnProperty.call(B,z)&&Object.propertyIsEnumerable.call(B,z))})(B,W)||(Ce[W]=P(B,W)&&ne.isMergeableObject(z[W])?function O(B,z){if(!z.customMerge)return D;var ne=z.customMerge(B);return"function"==typeof ne?ne:D}(W,ne)(B[W],z[W],ne):F(z[W],ne))}),Ce}(B,z,ne):F(z,ne)}D.all=function(z,ne){if(!Array.isArray(z))throw new Error("first argument should be an array");return z.reduce(function(Ce,W){return D(Ce,W,ne)},{})},Pe.exports=D},2094:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.attributeNames=C.elementNames=void 0,C.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),C.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},3192:function(Pe,C,G){"use strict";var le=this&&this.__assign||function(){return le=Object.assign||function(W){for(var te,b=1,$=arguments.length;b<$;b++)for(var N in te=arguments[b])Object.prototype.hasOwnProperty.call(te,N)&&(W[N]=te[N]);return W},le.apply(this,arguments)},ce=this&&this.__createBinding||(Object.create?function(W,te,b,$){void 0===$&&($=b),Object.defineProperty(W,$,{enumerable:!0,get:function(){return te[b]}})}:function(W,te,b,$){void 0===$&&($=b),W[$]=te[b]}),K=this&&this.__setModuleDefault||(Object.create?function(W,te){Object.defineProperty(W,"default",{enumerable:!0,value:te})}:function(W,te){W.default=te}),Y=this&&this.__importStar||function(W){if(W&&W.__esModule)return W;var te={};if(null!=W)for(var b in W)"default"!==b&&Object.prototype.hasOwnProperty.call(W,b)&&ce(te,W,b);return K(te,W),te};Object.defineProperty(C,"__esModule",{value:!0});var q=Y(G(6316)),F=G(9673),M=G(2094),O=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]),w=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function P(W,te){void 0===te&&(te={});for(var b=("length"in W?W:[W]),$="",N=0;N"}(W);case q.Comment:return function Ce(W){return"\x3c!--"+W.data+"--\x3e"}(W);case q.CDATA:return function ne(W){return""}(W);case q.Script:case q.Style:case q.Tag:return function I(W,te){var b;"foreign"===te.xmlMode&&(W.name=null!==(b=M.elementNames.get(W.name))&&void 0!==b?b:W.name,W.parent&&k.has(W.parent.name)&&(te=le(le({},te),{xmlMode:!1}))),!te.xmlMode&&D.has(W.name)&&(te=le(le({},te),{xmlMode:"foreign"}));var $="<"+W.name,N=function A(W,te){if(W)return Object.keys(W).map(function(b){var $,N,ie=null!==($=W[b])&&void 0!==$?$:"";return"foreign"===te.xmlMode&&(b=null!==(N=M.attributeNames.get(b))&&void 0!==N?N:b),te.emptyAttrs||te.xmlMode||""!==ie?b+'="'+(!1!==te.decodeEntities?F.encodeXML(ie):ie.replace(/"/g,"""))+'"':b}).join(" ")}(W.attribs,te);return N&&($+=" "+N),0===W.children.length&&(te.xmlMode?!1!==te.selfClosingTags:te.selfClosingTags&&w.has(W.name))?(te.xmlMode||($+=" "),$+="/>"):($+=">",W.children.length>0&&($+=P(W.children,te)),(te.xmlMode||!w.has(W.name))&&($+="")),$}(W,te);case q.Text:return function z(W,te){var b=W.data||"";return!1!==te.decodeEntities&&!(!te.xmlMode&&W.parent&&O.has(W.parent.name))&&(b=F.encodeXML(b)),b}(W,te)}}C.default=P;var k=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),D=new Set(["svg","math"])},6316:(Pe,C)=>{"use strict";var G,ce;Object.defineProperty(C,"__esModule",{value:!0}),C.Doctype=C.CDATA=C.Tag=C.Style=C.Script=C.Comment=C.Directive=C.Text=C.Root=C.isTag=C.ElementType=void 0,(ce=G=C.ElementType||(C.ElementType={})).Root="root",ce.Text="text",ce.Directive="directive",ce.Comment="comment",ce.Script="script",ce.Style="style",ce.Tag="tag",ce.CDATA="cdata",ce.Doctype="doctype",C.isTag=function le(ce){return ce.type===G.Tag||ce.type===G.Script||ce.type===G.Style},C.Root=G.Root,C.Text=G.Text,C.Directive=G.Directive,C.Comment=G.Comment,C.Script=G.Script,C.Style=G.Style,C.Tag=G.Tag,C.CDATA=G.CDATA,C.Doctype=G.Doctype},2962:function(Pe,C,G){"use strict";var le=this&&this.__createBinding||(Object.create?function(O,A,w,P){void 0===P&&(P=w);var E=Object.getOwnPropertyDescriptor(A,w);(!E||("get"in E?!A.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return A[w]}}),Object.defineProperty(O,P,E)}:function(O,A,w,P){void 0===P&&(P=w),O[P]=A[w]}),ce=this&&this.__exportStar||function(O,A){for(var w in O)"default"!==w&&!Object.prototype.hasOwnProperty.call(A,w)&&le(A,O,w)};Object.defineProperty(C,"__esModule",{value:!0}),C.DomHandler=void 0;var K=G(6316),Y=G(3416);ce(G(3416),C);var q=/\s+/g,F={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},M=function(){function O(A,w,P){this.dom=[],this.root=new Y.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof w&&(P=w,w=F),"object"==typeof A&&(w=A,A=void 0),this.callback=A??null,this.options=w??F,this.elementCB=P??null}return O.prototype.onparserinit=function(A){this.parser=A},O.prototype.onreset=function(){this.dom=[],this.root=new Y.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},O.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},O.prototype.onerror=function(A){this.handleCallback(A)},O.prototype.onclosetag=function(){this.lastNode=null;var A=this.tagStack.pop();this.options.withEndIndices&&(A.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(A)},O.prototype.onopentag=function(A,w){var E=new Y.Element(A,w,void 0,this.options.xmlMode?K.ElementType.Tag:void 0);this.addNode(E),this.tagStack.push(E)},O.prototype.ontext=function(A){var w=this.options.normalizeWhitespace,P=this.lastNode;if(P&&P.type===K.ElementType.Text)w?P.data=(P.data+A).replace(q," "):P.data+=A,this.options.withEndIndices&&(P.endIndex=this.parser.endIndex);else{w&&(A=A.replace(q," "));var E=new Y.Text(A);this.addNode(E),this.lastNode=E}},O.prototype.oncomment=function(A){if(this.lastNode&&this.lastNode.type===K.ElementType.Comment)this.lastNode.data+=A;else{var w=new Y.Comment(A);this.addNode(w),this.lastNode=w}},O.prototype.oncommentend=function(){this.lastNode=null},O.prototype.oncdatastart=function(){var A=new Y.Text(""),w=new Y.NodeWithChildren(K.ElementType.CDATA,[A]);this.addNode(w),A.parent=w,this.lastNode=A},O.prototype.oncdataend=function(){this.lastNode=null},O.prototype.onprocessinginstruction=function(A,w){var P=new Y.ProcessingInstruction(A,w);this.addNode(P)},O.prototype.handleCallback=function(A){if("function"==typeof this.callback)this.callback(A,this.dom);else if(A)throw A},O.prototype.addNode=function(A){var w=this.tagStack[this.tagStack.length-1],P=w.children[w.children.length-1];this.options.withStartIndices&&(A.startIndex=this.parser.startIndex),this.options.withEndIndices&&(A.endIndex=this.parser.endIndex),w.children.push(A),P&&(A.prev=P,P.next=A),A.parent=w,this.lastNode=null},O}();C.DomHandler=M,C.default=M},3416:function(Pe,C,G){"use strict";var b,le=this&&this.__extends||(b=function($,N){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,_e){ie.__proto__=_e}||function(ie,_e){for(var H in _e)Object.prototype.hasOwnProperty.call(_e,H)&&(ie[H]=_e[H])})($,N)},function($,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function ie(){this.constructor=$}b($,N),$.prototype=null===N?Object.create(N):(ie.prototype=N.prototype,new ie)}),ce=this&&this.__assign||function(){return ce=Object.assign||function(b){for(var $,N=1,ie=arguments.length;N0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"childNodes",{get:function(){return this.children},set:function(N){this.children=N},enumerable:!1,configurable:!0}),$}(q);C.NodeWithChildren=w;var P=function(b){function $(N){return b.call(this,K.ElementType.Root,N)||this}return le($,b),$}(w);C.Document=P;var E=function(b){function $(N,ie,_e,H){void 0===_e&&(_e=[]),void 0===H&&(H="script"===N?K.ElementType.Script:"style"===N?K.ElementType.Style:K.ElementType.Tag);var L=b.call(this,H,_e)||this;return L.name=N,L.attribs=ie,L}return le($,b),Object.defineProperty($.prototype,"tagName",{get:function(){return this.name},set:function(N){this.name=N},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"attributes",{get:function(){var N=this;return Object.keys(this.attribs).map(function(ie){var _e,H;return{name:ie,value:N.attribs[ie],namespace:null===(_e=N["x-attribsNamespace"])||void 0===_e?void 0:_e[ie],prefix:null===(H=N["x-attribsPrefix"])||void 0===H?void 0:H[ie]}})},enumerable:!1,configurable:!0}),$}(w);function k(b){return(0,K.isTag)(b)}function D(b){return b.type===K.ElementType.CDATA}function I(b){return b.type===K.ElementType.Text}function B(b){return b.type===K.ElementType.Comment}function z(b){return b.type===K.ElementType.Directive}function ne(b){return b.type===K.ElementType.Root}function W(b,$){var N;if(void 0===$&&($=!1),I(b))N=new M(b.data);else if(B(b))N=new O(b.data);else if(k(b)){var ie=$?te(b.children):[],_e=new E(b.name,ce({},b.attribs),ie);ie.forEach(function(de){return de.parent=_e}),null!=b.namespace&&(_e.namespace=b.namespace),b["x-attribsNamespace"]&&(_e["x-attribsNamespace"]=ce({},b["x-attribsNamespace"])),b["x-attribsPrefix"]&&(_e["x-attribsPrefix"]=ce({},b["x-attribsPrefix"])),N=_e}else if(D(b)){ie=$?te(b.children):[];var H=new w(K.ElementType.CDATA,ie);ie.forEach(function(ue){return ue.parent=H}),N=H}else if(ne(b)){ie=$?te(b.children):[];var L=new P(ie);ie.forEach(function(ue){return ue.parent=L}),b["x-mode"]&&(L["x-mode"]=b["x-mode"]),N=L}else{if(!z(b))throw new Error("Not implemented yet: ".concat(b.type));var Q=new A(b.name,b.data);null!=b["x-name"]&&(Q["x-name"]=b["x-name"],Q["x-publicId"]=b["x-publicId"],Q["x-systemId"]=b["x-systemId"]),N=Q}return N.startIndex=b.startIndex,N.endIndex=b.endIndex,null!=b.sourceCodeLocation&&(N.sourceCodeLocation=b.sourceCodeLocation),N}function te(b){for(var $=b.map(function(ie){return W(ie,!0)}),N=1;N<$.length;N++)$[N].prev=$[N-1],$[N-1].next=$[N];return $}C.Element=E,C.isTag=k,C.isCDATA=D,C.isText=I,C.isComment=B,C.isDirective=z,C.isDocument=ne,C.hasChildren=function Ce(b){return Object.prototype.hasOwnProperty.call(b,"children")},C.cloneNode=W},6534:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.getFeed=void 0;var le=G(4543),ce=G(9735);C.getFeed=function K(k){var D=A(E,k);return D?"feed"===D.name?function Y(k){var D,I=k.children,B={type:"atom",items:(0,ce.getElementsByTagName)("entry",I).map(function(Ce){var W,te=Ce.children,b={media:O(te)};P(b,"id","id",te),P(b,"title","title",te);var $=null===(W=A("link",te))||void 0===W?void 0:W.attribs.href;$&&(b.link=$);var N=w("summary",te)||w("content",te);N&&(b.description=N);var ie=w("updated",te);return ie&&(b.pubDate=new Date(ie)),b})};P(B,"id","id",I),P(B,"title","title",I);var z=null===(D=A("link",I))||void 0===D?void 0:D.attribs.href;z&&(B.link=z),P(B,"description","subtitle",I);var ne=w("updated",I);return ne&&(B.updated=new Date(ne)),P(B,"author","email",I,!0),B}(D):function q(k){var D,I,B=null!==(I=null===(D=A("channel",k.children))||void 0===D?void 0:D.children)&&void 0!==I?I:[],z={type:k.name.substr(0,3),id:"",items:(0,ce.getElementsByTagName)("item",k.children).map(function(Ce){var W=Ce.children,te={media:O(W)};P(te,"id","guid",W),P(te,"title","title",W),P(te,"link","link",W),P(te,"description","description",W);var b=w("pubDate",W);return b&&(te.pubDate=new Date(b)),te})};P(z,"title","title",B),P(z,"link","link",B),P(z,"description","description",B);var ne=w("lastBuildDate",B);return ne&&(z.updated=new Date(ne)),P(z,"author","managingEditor",B,!0),z}(D):null};var F=["url","type","lang"],M=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function O(k){return(0,ce.getElementsByTagName)("media:content",k).map(function(D){for(var I=D.attribs,B={medium:I.medium,isDefault:!!I.isDefault},z=0,ne=F;z{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.uniqueSort=C.compareDocumentPosition=C.removeSubsets=void 0;var le=G(2962);function K(q,F){var M=[],O=[];if(q===F)return 0;for(var A=(0,le.hasChildren)(q)?q:q.parent;A;)M.unshift(A),A=A.parent;for(A=(0,le.hasChildren)(F)?F:F.parent;A;)O.unshift(A),A=A.parent;for(var w=Math.min(M.length,O.length),P=0;Pk.indexOf(I)?E===F?20:4:E===q?10:2}C.removeSubsets=function ce(q){for(var F=q.length;--F>=0;){var M=q[F];if(F>0&&q.lastIndexOf(M,F-1)>=0)q.splice(F,1);else for(var O=M.parent;O;O=O.parent)if(q.includes(O)){q.splice(F,1);break}}return q},C.compareDocumentPosition=K,C.uniqueSort=function Y(q){return(q=q.filter(function(F,M,O){return!O.includes(F,M+1)})).sort(function(F,M){var O=K(F,M);return 2&O?-1:4&O?1:0}),q}},2155:function(Pe,C,G){"use strict";var le=this&&this.__createBinding||(Object.create?function(Y,q,F,M){void 0===M&&(M=F),Object.defineProperty(Y,M,{enumerable:!0,get:function(){return q[F]}})}:function(Y,q,F,M){void 0===M&&(M=F),Y[M]=q[F]}),ce=this&&this.__exportStar||function(Y,q){for(var F in Y)"default"!==F&&!Object.prototype.hasOwnProperty.call(q,F)&&le(q,Y,F)};Object.defineProperty(C,"__esModule",{value:!0}),C.hasChildren=C.isDocument=C.isComment=C.isText=C.isCDATA=C.isTag=void 0,ce(G(4543),C),ce(G(4757),C),ce(G(6525),C),ce(G(7237),C),ce(G(9735),C),ce(G(485),C),ce(G(6534),C);var K=G(2962);Object.defineProperty(C,"isTag",{enumerable:!0,get:function(){return K.isTag}}),Object.defineProperty(C,"isCDATA",{enumerable:!0,get:function(){return K.isCDATA}}),Object.defineProperty(C,"isText",{enumerable:!0,get:function(){return K.isText}}),Object.defineProperty(C,"isComment",{enumerable:!0,get:function(){return K.isComment}}),Object.defineProperty(C,"isDocument",{enumerable:!0,get:function(){return K.isDocument}}),Object.defineProperty(C,"hasChildren",{enumerable:!0,get:function(){return K.hasChildren}})},9735:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.getElementsByTagType=C.getElementsByTagName=C.getElementById=C.getElements=C.testElement=void 0;var le=G(2962),ce=G(7237),K={tag_name:function(E){return"function"==typeof E?function(k){return(0,le.isTag)(k)&&E(k.name)}:"*"===E?le.isTag:function(k){return(0,le.isTag)(k)&&k.name===E}},tag_type:function(E){return"function"==typeof E?function(k){return E(k.type)}:function(k){return k.type===E}},tag_contains:function(E){return"function"==typeof E?function(k){return(0,le.isText)(k)&&E(k.data)}:function(k){return(0,le.isText)(k)&&k.data===E}}};function Y(E,k){return"function"==typeof k?function(D){return(0,le.isTag)(D)&&k(D.attribs[E])}:function(D){return(0,le.isTag)(D)&&D.attribs[E]===k}}function q(E,k){return function(D){return E(D)||k(D)}}function F(E){var k=Object.keys(E).map(function(D){var I=E[D];return Object.prototype.hasOwnProperty.call(K,D)?K[D](I):Y(D,I)});return 0===k.length?null:k.reduce(q)}C.testElement=function M(E,k){var D=F(E);return!D||D(k)},C.getElements=function O(E,k,D,I){void 0===I&&(I=1/0);var B=F(E);return B?(0,ce.filter)(B,k,D,I):[]},C.getElementById=function A(E,k,D){return void 0===D&&(D=!0),Array.isArray(k)||(k=[k]),(0,ce.findOne)(Y("id",E),k,D)},C.getElementsByTagName=function w(E,k,D,I){return void 0===D&&(D=!0),void 0===I&&(I=1/0),(0,ce.filter)(K.tag_name(E),k,D,I)},C.getElementsByTagType=function P(E,k,D,I){return void 0===D&&(D=!0),void 0===I&&(I=1/0),(0,ce.filter)(K.tag_type(E),k,D,I)}},6525:(Pe,C)=>{"use strict";function G(F){if(F.prev&&(F.prev.next=F.next),F.next&&(F.next.prev=F.prev),F.parent){var M=F.parent.children;M.splice(M.lastIndexOf(F),1)}}Object.defineProperty(C,"__esModule",{value:!0}),C.prepend=C.prependChild=C.append=C.appendChild=C.replaceElement=C.removeElement=void 0,C.removeElement=G,C.replaceElement=function le(F,M){var O=M.prev=F.prev;O&&(O.next=M);var A=M.next=F.next;A&&(A.prev=M);var w=M.parent=F.parent;if(w){var P=w.children;P[P.lastIndexOf(F)]=M}},C.appendChild=function ce(F,M){if(G(M),M.next=null,M.parent=F,F.children.push(M)>1){var O=F.children[F.children.length-2];O.next=M,M.prev=O}else M.prev=null},C.append=function K(F,M){G(M);var O=F.parent,A=F.next;if(M.next=A,M.prev=F,F.next=M,M.parent=O,A){if(A.prev=M,O){var w=O.children;w.splice(w.lastIndexOf(A),0,M)}}else O&&O.children.push(M)},C.prependChild=function Y(F,M){if(G(M),M.parent=F,M.prev=null,1!==F.children.unshift(M)){var O=F.children[1];O.prev=M,M.next=O}else M.next=null},C.prepend=function q(F,M){G(M);var O=F.parent;if(O){var A=O.children;A.splice(A.indexOf(F),0,M)}F.prev&&(F.prev.next=M),M.parent=O,M.prev=F.prev,M.next=F,F.prev=M}},7237:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.findAll=C.existsOne=C.findOne=C.findOneChild=C.find=C.filter=void 0;var le=G(2962);function K(O,A,w,P){for(var E=[],k=0,D=A;k0){var B=K(O,I.children,w,P);if(E.push.apply(E,B),(P-=B.length)<=0)break}}return E}C.filter=function ce(O,A,w,P){return void 0===w&&(w=!0),void 0===P&&(P=1/0),Array.isArray(A)||(A=[A]),K(O,A,w,P)},C.find=K,C.findOneChild=function Y(O,A){return A.find(O)},C.findOne=function q(O,A,w){void 0===w&&(w=!0);for(var P=null,E=0;E0&&(P=q(O,k.children)))}return P},C.existsOne=function F(O,A){return A.some(function(w){return(0,le.isTag)(w)&&(O(w)||w.children.length>0&&F(O,w.children))})},C.findAll=function M(O,A){for(var w,k,P=[],E=A.filter(le.isTag);k=E.shift();){var D=null===(w=k.children)||void 0===w?void 0:w.filter(le.isTag);D&&D.length>0&&E.unshift.apply(E,D),O(k)&&P.push(k)}return P}},4543:function(Pe,C,G){"use strict";var le=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(C,"__esModule",{value:!0}),C.innerText=C.textContent=C.getText=C.getInnerHTML=C.getOuterHTML=void 0;var ce=G(2962),K=le(G(3192)),Y=G(6316);function q(w,P){return(0,K.default)(w,P)}C.getOuterHTML=q,C.getInnerHTML=function F(w,P){return(0,ce.hasChildren)(w)?w.children.map(function(E){return q(E,P)}).join(""):""},C.getText=function M(w){return Array.isArray(w)?w.map(M).join(""):(0,ce.isTag)(w)?"br"===w.name?"\n":M(w.children):(0,ce.isCDATA)(w)?M(w.children):(0,ce.isText)(w)?w.data:""},C.textContent=function O(w){return Array.isArray(w)?w.map(O).join(""):(0,ce.hasChildren)(w)&&!(0,ce.isComment)(w)?O(w.children):(0,ce.isText)(w)?w.data:""},C.innerText=function A(w){return Array.isArray(w)?w.map(A).join(""):(0,ce.hasChildren)(w)&&(w.type===Y.ElementType.Tag||(0,ce.isCDATA)(w))?A(w.children):(0,ce.isText)(w)?w.data:""}},4757:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.prevElementSibling=C.nextElementSibling=C.getName=C.hasAttrib=C.getAttributeValue=C.getSiblings=C.getParent=C.getChildren=void 0;var le=G(2962),ce=[];function K(P){var E;return null!==(E=P.children)&&void 0!==E?E:ce}function Y(P){return P.parent||null}C.getChildren=K,C.getParent=Y,C.getSiblings=function q(P){var D=Y(P);if(null!=D)return K(D);for(var I=[P],B=P.prev,z=P.next;null!=B;)I.unshift(B),B=B.prev;for(;null!=z;)I.push(z),z=z.next;return I},C.getAttributeValue=function F(P,E){var k;return null===(k=P.attribs)||void 0===k?void 0:k[E]},C.hasAttrib=function M(P,E){return null!=P.attribs&&Object.prototype.hasOwnProperty.call(P.attribs,E)&&null!=P.attribs[E]},C.getName=function O(P){return P.name},C.nextElementSibling=function A(P){for(var k=P.next;null!==k&&!(0,le.isTag)(k);)k=k.next;return k},C.prevElementSibling=function w(P){for(var k=P.prev;null!==k&&!(0,le.isTag)(k);)k=k.prev;return k}},547:function(Pe,C,G){"use strict";var le=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(C,"__esModule",{value:!0}),C.decodeHTML=C.decodeHTMLStrict=C.decodeXML=void 0;var ce=le(G(9323)),K=le(G(9591)),Y=le(G(2586)),q=le(G(672)),F=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function M(w){var P=A(w);return function(E){return String(E).replace(F,P)}}C.decodeXML=M(Y.default),C.decodeHTMLStrict=M(ce.default);var O=function(w,P){return w65535&&(q-=65536,F+=String.fromCharCode(q>>>10&1023|55296),q=56320|1023&q),F+String.fromCharCode(q)};C.default=function Y(q){return q>=55296&&q<=57343||q>1114111?"\ufffd":(q in ce.default&&(q=ce.default[q]),K(q))}},3854:function(Pe,C,G){"use strict";var le=this&&this.__importDefault||function(ne){return ne&&ne.__esModule?ne:{default:ne}};Object.defineProperty(C,"__esModule",{value:!0}),C.escapeUTF8=C.escape=C.encodeNonAsciiHTML=C.encodeHTML=C.encodeXML=void 0;var K=O(le(G(2586)).default),Y=A(K);C.encodeXML=z(K);var F=O(le(G(9323)).default),M=A(F);function O(ne){return Object.keys(ne).sort().reduce(function(Ce,W){return Ce[ne[W]]="&"+W+";",Ce},{})}function A(ne){for(var Ce=[],W=[],te=0,b=Object.keys(ne);te1?P(ne):ne.charCodeAt(0)).toString(16).toUpperCase()+";"}var D=new RegExp(Y.source+"|"+w.source,"g");function z(ne){return function(Ce){return Ce.replace(D,function(W){return ne[W]||E(W)})}}C.escape=function I(ne){return ne.replace(D,E)},C.escapeUTF8=function B(ne){return ne.replace(Y,E)}},9673:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.decodeXMLStrict=C.decodeHTML5Strict=C.decodeHTML4Strict=C.decodeHTML5=C.decodeHTML4=C.decodeHTMLStrict=C.decodeHTML=C.decodeXML=C.encodeHTML5=C.encodeHTML4=C.escapeUTF8=C.escape=C.encodeNonAsciiHTML=C.encodeHTML=C.encodeXML=C.encode=C.decodeStrict=C.decode=void 0;var le=G(547),ce=G(3854);C.decode=function K(O,A){return(!A||A<=0?le.decodeXML:le.decodeHTML)(O)},C.decodeStrict=function Y(O,A){return(!A||A<=0?le.decodeXML:le.decodeHTMLStrict)(O)},C.encode=function q(O,A){return(!A||A<=0?ce.encodeXML:ce.encodeHTML)(O)};var F=G(3854);Object.defineProperty(C,"encodeXML",{enumerable:!0,get:function(){return F.encodeXML}}),Object.defineProperty(C,"encodeHTML",{enumerable:!0,get:function(){return F.encodeHTML}}),Object.defineProperty(C,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return F.encodeNonAsciiHTML}}),Object.defineProperty(C,"escape",{enumerable:!0,get:function(){return F.escape}}),Object.defineProperty(C,"escapeUTF8",{enumerable:!0,get:function(){return F.escapeUTF8}}),Object.defineProperty(C,"encodeHTML4",{enumerable:!0,get:function(){return F.encodeHTML}}),Object.defineProperty(C,"encodeHTML5",{enumerable:!0,get:function(){return F.encodeHTML}});var M=G(547);Object.defineProperty(C,"decodeXML",{enumerable:!0,get:function(){return M.decodeXML}}),Object.defineProperty(C,"decodeHTML",{enumerable:!0,get:function(){return M.decodeHTML}}),Object.defineProperty(C,"decodeHTMLStrict",{enumerable:!0,get:function(){return M.decodeHTMLStrict}}),Object.defineProperty(C,"decodeHTML4",{enumerable:!0,get:function(){return M.decodeHTML}}),Object.defineProperty(C,"decodeHTML5",{enumerable:!0,get:function(){return M.decodeHTML}}),Object.defineProperty(C,"decodeHTML4Strict",{enumerable:!0,get:function(){return M.decodeHTMLStrict}}),Object.defineProperty(C,"decodeHTML5Strict",{enumerable:!0,get:function(){return M.decodeHTMLStrict}}),Object.defineProperty(C,"decodeXMLStrict",{enumerable:!0,get:function(){return M.decodeXML}})},3537:function(Pe,C,G){var le;Pe=G.nmd(Pe),function(ce){"object"==typeof global&&global;var F=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,M=/[\x01-\x7F]/g,O=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,A=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,w={"\xad":"shy","\u200c":"zwnj","\u200d":"zwj","\u200e":"lrm","\u2063":"ic","\u2062":"it","\u2061":"af","\u200f":"rlm","\u200b":"ZeroWidthSpace","\u2060":"NoBreak","\u0311":"DownBreve","\u20db":"tdot","\u20dc":"DotDot","\t":"Tab","\n":"NewLine","\u2008":"puncsp","\u205f":"MediumSpace","\u2009":"thinsp","\u200a":"hairsp","\u2004":"emsp13","\u2002":"ensp","\u2005":"emsp14","\u2003":"emsp","\u2007":"numsp","\xa0":"nbsp","\u205f\u200a":"ThickSpace","\u203e":"oline",_:"lowbar","\u2010":"dash","\u2013":"ndash","\u2014":"mdash","\u2015":"horbar",",":"comma",";":"semi","\u204f":"bsemi",":":"colon","\u2a74":"Colone","!":"excl","\xa1":"iexcl","?":"quest","\xbf":"iquest",".":"period","\u2025":"nldr","\u2026":"mldr","\xb7":"middot","'":"apos","\u2018":"lsquo","\u2019":"rsquo","\u201a":"sbquo","\u2039":"lsaquo","\u203a":"rsaquo",'"':"quot","\u201c":"ldquo","\u201d":"rdquo","\u201e":"bdquo","\xab":"laquo","\xbb":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","\u2308":"lceil","\u2309":"rceil","\u230a":"lfloor","\u230b":"rfloor","\u2985":"lopar","\u2986":"ropar","\u298b":"lbrke","\u298c":"rbrke","\u298d":"lbrkslu","\u298e":"rbrksld","\u298f":"lbrksld","\u2990":"rbrkslu","\u2991":"langd","\u2992":"rangd","\u2993":"lparlt","\u2994":"rpargt","\u2995":"gtlPar","\u2996":"ltrPar","\u27e6":"lobrk","\u27e7":"robrk","\u27e8":"lang","\u27e9":"rang","\u27ea":"Lang","\u27eb":"Rang","\u27ec":"loang","\u27ed":"roang","\u2772":"lbbrk","\u2773":"rbbrk","\u2016":"Vert","\xa7":"sect","\xb6":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","\u2030":"permil","\u2031":"pertenk","\u2020":"dagger","\u2021":"Dagger","\u2022":"bull","\u2043":"hybull","\u2032":"prime","\u2033":"Prime","\u2034":"tprime","\u2057":"qprime","\u2035":"bprime","\u2041":"caret","`":"grave","\xb4":"acute","\u02dc":"tilde","^":"Hat","\xaf":"macr","\u02d8":"breve","\u02d9":"dot","\xa8":"die","\u02da":"ring","\u02dd":"dblac","\xb8":"cedil","\u02db":"ogon",\u02c6:"circ",\u02c7:"caron","\xb0":"deg","\xa9":"copy","\xae":"reg","\u2117":"copysr",\u2118:"wp","\u211e":"rx","\u2127":"mho","\u2129":"iiota","\u2190":"larr","\u219a":"nlarr","\u2192":"rarr","\u219b":"nrarr","\u2191":"uarr","\u2193":"darr","\u2194":"harr","\u21ae":"nharr","\u2195":"varr","\u2196":"nwarr","\u2197":"nearr","\u2198":"searr","\u2199":"swarr","\u219d":"rarrw","\u219d\u0338":"nrarrw","\u219e":"Larr","\u219f":"Uarr","\u21a0":"Rarr","\u21a1":"Darr","\u21a2":"larrtl","\u21a3":"rarrtl","\u21a4":"mapstoleft","\u21a5":"mapstoup","\u21a6":"map","\u21a7":"mapstodown","\u21a9":"larrhk","\u21aa":"rarrhk","\u21ab":"larrlp","\u21ac":"rarrlp","\u21ad":"harrw","\u21b0":"lsh","\u21b1":"rsh","\u21b2":"ldsh","\u21b3":"rdsh","\u21b5":"crarr","\u21b6":"cularr","\u21b7":"curarr","\u21ba":"olarr","\u21bb":"orarr","\u21bc":"lharu","\u21bd":"lhard","\u21be":"uharr","\u21bf":"uharl","\u21c0":"rharu","\u21c1":"rhard","\u21c2":"dharr","\u21c3":"dharl","\u21c4":"rlarr","\u21c5":"udarr","\u21c6":"lrarr","\u21c7":"llarr","\u21c8":"uuarr","\u21c9":"rrarr","\u21ca":"ddarr","\u21cb":"lrhar","\u21cc":"rlhar","\u21d0":"lArr","\u21cd":"nlArr","\u21d1":"uArr","\u21d2":"rArr","\u21cf":"nrArr","\u21d3":"dArr","\u21d4":"iff","\u21ce":"nhArr","\u21d5":"vArr","\u21d6":"nwArr","\u21d7":"neArr","\u21d8":"seArr","\u21d9":"swArr","\u21da":"lAarr","\u21db":"rAarr","\u21dd":"zigrarr","\u21e4":"larrb","\u21e5":"rarrb","\u21f5":"duarr","\u21fd":"loarr","\u21fe":"roarr","\u21ff":"hoarr","\u2200":"forall","\u2201":"comp","\u2202":"part","\u2202\u0338":"npart","\u2203":"exist","\u2204":"nexist","\u2205":"empty","\u2207":"Del","\u2208":"in","\u2209":"notin","\u220b":"ni","\u220c":"notni","\u03f6":"bepsi","\u220f":"prod","\u2210":"coprod","\u2211":"sum","+":"plus","\xb1":"pm","\xf7":"div","\xd7":"times","<":"lt","\u226e":"nlt","<\u20d2":"nvlt","=":"equals","\u2260":"ne","=\u20e5":"bne","\u2a75":"Equal",">":"gt","\u226f":"ngt",">\u20d2":"nvgt","\xac":"not","|":"vert","\xa6":"brvbar","\u2212":"minus","\u2213":"mp","\u2214":"plusdo","\u2044":"frasl","\u2216":"setmn","\u2217":"lowast","\u2218":"compfn","\u221a":"Sqrt","\u221d":"prop","\u221e":"infin","\u221f":"angrt","\u2220":"ang","\u2220\u20d2":"nang","\u2221":"angmsd","\u2222":"angsph","\u2223":"mid","\u2224":"nmid","\u2225":"par","\u2226":"npar","\u2227":"and","\u2228":"or","\u2229":"cap","\u2229\ufe00":"caps","\u222a":"cup","\u222a\ufe00":"cups","\u222b":"int","\u222c":"Int","\u222d":"tint","\u2a0c":"qint","\u222e":"oint","\u222f":"Conint","\u2230":"Cconint","\u2231":"cwint","\u2232":"cwconint","\u2233":"awconint","\u2234":"there4","\u2235":"becaus","\u2236":"ratio","\u2237":"Colon","\u2238":"minusd","\u223a":"mDDot","\u223b":"homtht","\u223c":"sim","\u2241":"nsim","\u223c\u20d2":"nvsim","\u223d":"bsim","\u223d\u0331":"race","\u223e":"ac","\u223e\u0333":"acE","\u223f":"acd","\u2240":"wr","\u2242":"esim","\u2242\u0338":"nesim","\u2243":"sime","\u2244":"nsime","\u2245":"cong","\u2247":"ncong","\u2246":"simne","\u2248":"ap","\u2249":"nap","\u224a":"ape","\u224b":"apid","\u224b\u0338":"napid","\u224c":"bcong","\u224d":"CupCap","\u226d":"NotCupCap","\u224d\u20d2":"nvap","\u224e":"bump","\u224e\u0338":"nbump","\u224f":"bumpe","\u224f\u0338":"nbumpe","\u2250":"doteq","\u2250\u0338":"nedot","\u2251":"eDot","\u2252":"efDot","\u2253":"erDot","\u2254":"colone","\u2255":"ecolon","\u2256":"ecir","\u2257":"cire","\u2259":"wedgeq","\u225a":"veeeq","\u225c":"trie","\u225f":"equest","\u2261":"equiv","\u2262":"nequiv","\u2261\u20e5":"bnequiv","\u2264":"le","\u2270":"nle","\u2264\u20d2":"nvle","\u2265":"ge","\u2271":"nge","\u2265\u20d2":"nvge","\u2266":"lE","\u2266\u0338":"nlE","\u2267":"gE","\u2267\u0338":"ngE","\u2268\ufe00":"lvnE","\u2268":"lnE","\u2269":"gnE","\u2269\ufe00":"gvnE","\u226a":"ll","\u226a\u0338":"nLtv","\u226a\u20d2":"nLt","\u226b":"gg","\u226b\u0338":"nGtv","\u226b\u20d2":"nGt","\u226c":"twixt","\u2272":"lsim","\u2274":"nlsim","\u2273":"gsim","\u2275":"ngsim","\u2276":"lg","\u2278":"ntlg","\u2277":"gl","\u2279":"ntgl","\u227a":"pr","\u2280":"npr","\u227b":"sc","\u2281":"nsc","\u227c":"prcue","\u22e0":"nprcue","\u227d":"sccue","\u22e1":"nsccue","\u227e":"prsim","\u227f":"scsim","\u227f\u0338":"NotSucceedsTilde","\u2282":"sub","\u2284":"nsub","\u2282\u20d2":"vnsub","\u2283":"sup","\u2285":"nsup","\u2283\u20d2":"vnsup","\u2286":"sube","\u2288":"nsube","\u2287":"supe","\u2289":"nsupe","\u228a\ufe00":"vsubne","\u228a":"subne","\u228b\ufe00":"vsupne","\u228b":"supne","\u228d":"cupdot","\u228e":"uplus","\u228f":"sqsub","\u228f\u0338":"NotSquareSubset","\u2290":"sqsup","\u2290\u0338":"NotSquareSuperset","\u2291":"sqsube","\u22e2":"nsqsube","\u2292":"sqsupe","\u22e3":"nsqsupe","\u2293":"sqcap","\u2293\ufe00":"sqcaps","\u2294":"sqcup","\u2294\ufe00":"sqcups","\u2295":"oplus","\u2296":"ominus","\u2297":"otimes","\u2298":"osol","\u2299":"odot","\u229a":"ocir","\u229b":"oast","\u229d":"odash","\u229e":"plusb","\u229f":"minusb","\u22a0":"timesb","\u22a1":"sdotb","\u22a2":"vdash","\u22ac":"nvdash","\u22a3":"dashv","\u22a4":"top","\u22a5":"bot","\u22a7":"models","\u22a8":"vDash","\u22ad":"nvDash","\u22a9":"Vdash","\u22ae":"nVdash","\u22aa":"Vvdash","\u22ab":"VDash","\u22af":"nVDash","\u22b0":"prurel","\u22b2":"vltri","\u22ea":"nltri","\u22b3":"vrtri","\u22eb":"nrtri","\u22b4":"ltrie","\u22ec":"nltrie","\u22b4\u20d2":"nvltrie","\u22b5":"rtrie","\u22ed":"nrtrie","\u22b5\u20d2":"nvrtrie","\u22b6":"origof","\u22b7":"imof","\u22b8":"mumap","\u22b9":"hercon","\u22ba":"intcal","\u22bb":"veebar","\u22bd":"barvee","\u22be":"angrtvb","\u22bf":"lrtri","\u22c0":"Wedge","\u22c1":"Vee","\u22c2":"xcap","\u22c3":"xcup","\u22c4":"diam","\u22c5":"sdot","\u22c6":"Star","\u22c7":"divonx","\u22c8":"bowtie","\u22c9":"ltimes","\u22ca":"rtimes","\u22cb":"lthree","\u22cc":"rthree","\u22cd":"bsime","\u22ce":"cuvee","\u22cf":"cuwed","\u22d0":"Sub","\u22d1":"Sup","\u22d2":"Cap","\u22d3":"Cup","\u22d4":"fork","\u22d5":"epar","\u22d6":"ltdot","\u22d7":"gtdot","\u22d8":"Ll","\u22d8\u0338":"nLl","\u22d9":"Gg","\u22d9\u0338":"nGg","\u22da\ufe00":"lesg","\u22da":"leg","\u22db":"gel","\u22db\ufe00":"gesl","\u22de":"cuepr","\u22df":"cuesc","\u22e6":"lnsim","\u22e7":"gnsim","\u22e8":"prnsim","\u22e9":"scnsim","\u22ee":"vellip","\u22ef":"ctdot","\u22f0":"utdot","\u22f1":"dtdot","\u22f2":"disin","\u22f3":"isinsv","\u22f4":"isins","\u22f5":"isindot","\u22f5\u0338":"notindot","\u22f6":"notinvc","\u22f7":"notinvb","\u22f9":"isinE","\u22f9\u0338":"notinE","\u22fa":"nisd","\u22fb":"xnis","\u22fc":"nis","\u22fd":"notnivc","\u22fe":"notnivb","\u2305":"barwed","\u2306":"Barwed","\u230c":"drcrop","\u230d":"dlcrop","\u230e":"urcrop","\u230f":"ulcrop","\u2310":"bnot","\u2312":"profline","\u2313":"profsurf","\u2315":"telrec","\u2316":"target","\u231c":"ulcorn","\u231d":"urcorn","\u231e":"dlcorn","\u231f":"drcorn","\u2322":"frown","\u2323":"smile","\u232d":"cylcty","\u232e":"profalar","\u2336":"topbot","\u233d":"ovbar","\u233f":"solbar","\u237c":"angzarr","\u23b0":"lmoust","\u23b1":"rmoust","\u23b4":"tbrk","\u23b5":"bbrk","\u23b6":"bbrktbrk","\u23dc":"OverParenthesis","\u23dd":"UnderParenthesis","\u23de":"OverBrace","\u23df":"UnderBrace","\u23e2":"trpezium","\u23e7":"elinters","\u2423":"blank","\u2500":"boxh","\u2502":"boxv","\u250c":"boxdr","\u2510":"boxdl","\u2514":"boxur","\u2518":"boxul","\u251c":"boxvr","\u2524":"boxvl","\u252c":"boxhd","\u2534":"boxhu","\u253c":"boxvh","\u2550":"boxH","\u2551":"boxV","\u2552":"boxdR","\u2553":"boxDr","\u2554":"boxDR","\u2555":"boxdL","\u2556":"boxDl","\u2557":"boxDL","\u2558":"boxuR","\u2559":"boxUr","\u255a":"boxUR","\u255b":"boxuL","\u255c":"boxUl","\u255d":"boxUL","\u255e":"boxvR","\u255f":"boxVr","\u2560":"boxVR","\u2561":"boxvL","\u2562":"boxVl","\u2563":"boxVL","\u2564":"boxHd","\u2565":"boxhD","\u2566":"boxHD","\u2567":"boxHu","\u2568":"boxhU","\u2569":"boxHU","\u256a":"boxvH","\u256b":"boxVh","\u256c":"boxVH","\u2580":"uhblk","\u2584":"lhblk","\u2588":"block","\u2591":"blk14","\u2592":"blk12","\u2593":"blk34","\u25a1":"squ","\u25aa":"squf","\u25ab":"EmptyVerySmallSquare","\u25ad":"rect","\u25ae":"marker","\u25b1":"fltns","\u25b3":"xutri","\u25b4":"utrif","\u25b5":"utri","\u25b8":"rtrif","\u25b9":"rtri","\u25bd":"xdtri","\u25be":"dtrif","\u25bf":"dtri","\u25c2":"ltrif","\u25c3":"ltri","\u25ca":"loz","\u25cb":"cir","\u25ec":"tridot","\u25ef":"xcirc","\u25f8":"ultri","\u25f9":"urtri","\u25fa":"lltri","\u25fb":"EmptySmallSquare","\u25fc":"FilledSmallSquare","\u2605":"starf","\u2606":"star","\u260e":"phone","\u2640":"female","\u2642":"male","\u2660":"spades","\u2663":"clubs","\u2665":"hearts","\u2666":"diams","\u266a":"sung","\u2713":"check","\u2717":"cross","\u2720":"malt","\u2736":"sext","\u2758":"VerticalSeparator","\u27c8":"bsolhsub","\u27c9":"suphsol","\u27f5":"xlarr","\u27f6":"xrarr","\u27f7":"xharr","\u27f8":"xlArr","\u27f9":"xrArr","\u27fa":"xhArr","\u27fc":"xmap","\u27ff":"dzigrarr","\u2902":"nvlArr","\u2903":"nvrArr","\u2904":"nvHarr","\u2905":"Map","\u290c":"lbarr","\u290d":"rbarr","\u290e":"lBarr","\u290f":"rBarr","\u2910":"RBarr","\u2911":"DDotrahd","\u2912":"UpArrowBar","\u2913":"DownArrowBar","\u2916":"Rarrtl","\u2919":"latail","\u291a":"ratail","\u291b":"lAtail","\u291c":"rAtail","\u291d":"larrfs","\u291e":"rarrfs","\u291f":"larrbfs","\u2920":"rarrbfs","\u2923":"nwarhk","\u2924":"nearhk","\u2925":"searhk","\u2926":"swarhk","\u2927":"nwnear","\u2928":"toea","\u2929":"tosa","\u292a":"swnwar","\u2933":"rarrc","\u2933\u0338":"nrarrc","\u2935":"cudarrr","\u2936":"ldca","\u2937":"rdca","\u2938":"cudarrl","\u2939":"larrpl","\u293c":"curarrm","\u293d":"cularrp","\u2945":"rarrpl","\u2948":"harrcir","\u2949":"Uarrocir","\u294a":"lurdshar","\u294b":"ldrushar","\u294e":"LeftRightVector","\u294f":"RightUpDownVector","\u2950":"DownLeftRightVector","\u2951":"LeftUpDownVector","\u2952":"LeftVectorBar","\u2953":"RightVectorBar","\u2954":"RightUpVectorBar","\u2955":"RightDownVectorBar","\u2956":"DownLeftVectorBar","\u2957":"DownRightVectorBar","\u2958":"LeftUpVectorBar","\u2959":"LeftDownVectorBar","\u295a":"LeftTeeVector","\u295b":"RightTeeVector","\u295c":"RightUpTeeVector","\u295d":"RightDownTeeVector","\u295e":"DownLeftTeeVector","\u295f":"DownRightTeeVector","\u2960":"LeftUpTeeVector","\u2961":"LeftDownTeeVector","\u2962":"lHar","\u2963":"uHar","\u2964":"rHar","\u2965":"dHar","\u2966":"luruhar","\u2967":"ldrdhar","\u2968":"ruluhar","\u2969":"rdldhar","\u296a":"lharul","\u296b":"llhard","\u296c":"rharul","\u296d":"lrhard","\u296e":"udhar","\u296f":"duhar","\u2970":"RoundImplies","\u2971":"erarr","\u2972":"simrarr","\u2973":"larrsim","\u2974":"rarrsim","\u2975":"rarrap","\u2976":"ltlarr","\u2978":"gtrarr","\u2979":"subrarr","\u297b":"suplarr","\u297c":"lfisht","\u297d":"rfisht","\u297e":"ufisht","\u297f":"dfisht","\u299a":"vzigzag","\u299c":"vangrt","\u299d":"angrtvbd","\u29a4":"ange","\u29a5":"range","\u29a6":"dwangle","\u29a7":"uwangle","\u29a8":"angmsdaa","\u29a9":"angmsdab","\u29aa":"angmsdac","\u29ab":"angmsdad","\u29ac":"angmsdae","\u29ad":"angmsdaf","\u29ae":"angmsdag","\u29af":"angmsdah","\u29b0":"bemptyv","\u29b1":"demptyv","\u29b2":"cemptyv","\u29b3":"raemptyv","\u29b4":"laemptyv","\u29b5":"ohbar","\u29b6":"omid","\u29b7":"opar","\u29b9":"operp","\u29bb":"olcross","\u29bc":"odsold","\u29be":"olcir","\u29bf":"ofcir","\u29c0":"olt","\u29c1":"ogt","\u29c2":"cirscir","\u29c3":"cirE","\u29c4":"solb","\u29c5":"bsolb","\u29c9":"boxbox","\u29cd":"trisb","\u29ce":"rtriltri","\u29cf":"LeftTriangleBar","\u29cf\u0338":"NotLeftTriangleBar","\u29d0":"RightTriangleBar","\u29d0\u0338":"NotRightTriangleBar","\u29dc":"iinfin","\u29dd":"infintie","\u29de":"nvinfin","\u29e3":"eparsl","\u29e4":"smeparsl","\u29e5":"eqvparsl","\u29eb":"lozf","\u29f4":"RuleDelayed","\u29f6":"dsol","\u2a00":"xodot","\u2a01":"xoplus","\u2a02":"xotime","\u2a04":"xuplus","\u2a06":"xsqcup","\u2a0d":"fpartint","\u2a10":"cirfnint","\u2a11":"awint","\u2a12":"rppolint","\u2a13":"scpolint","\u2a14":"npolint","\u2a15":"pointint","\u2a16":"quatint","\u2a17":"intlarhk","\u2a22":"pluscir","\u2a23":"plusacir","\u2a24":"simplus","\u2a25":"plusdu","\u2a26":"plussim","\u2a27":"plustwo","\u2a29":"mcomma","\u2a2a":"minusdu","\u2a2d":"loplus","\u2a2e":"roplus","\u2a2f":"Cross","\u2a30":"timesd","\u2a31":"timesbar","\u2a33":"smashp","\u2a34":"lotimes","\u2a35":"rotimes","\u2a36":"otimesas","\u2a37":"Otimes","\u2a38":"odiv","\u2a39":"triplus","\u2a3a":"triminus","\u2a3b":"tritime","\u2a3c":"iprod","\u2a3f":"amalg","\u2a40":"capdot","\u2a42":"ncup","\u2a43":"ncap","\u2a44":"capand","\u2a45":"cupor","\u2a46":"cupcap","\u2a47":"capcup","\u2a48":"cupbrcap","\u2a49":"capbrcup","\u2a4a":"cupcup","\u2a4b":"capcap","\u2a4c":"ccups","\u2a4d":"ccaps","\u2a50":"ccupssm","\u2a53":"And","\u2a54":"Or","\u2a55":"andand","\u2a56":"oror","\u2a57":"orslope","\u2a58":"andslope","\u2a5a":"andv","\u2a5b":"orv","\u2a5c":"andd","\u2a5d":"ord","\u2a5f":"wedbar","\u2a66":"sdote","\u2a6a":"simdot","\u2a6d":"congdot","\u2a6d\u0338":"ncongdot","\u2a6e":"easter","\u2a6f":"apacir","\u2a70":"apE","\u2a70\u0338":"napE","\u2a71":"eplus","\u2a72":"pluse","\u2a73":"Esim","\u2a77":"eDDot","\u2a78":"equivDD","\u2a79":"ltcir","\u2a7a":"gtcir","\u2a7b":"ltquest","\u2a7c":"gtquest","\u2a7d":"les","\u2a7d\u0338":"nles","\u2a7e":"ges","\u2a7e\u0338":"nges","\u2a7f":"lesdot","\u2a80":"gesdot","\u2a81":"lesdoto","\u2a82":"gesdoto","\u2a83":"lesdotor","\u2a84":"gesdotol","\u2a85":"lap","\u2a86":"gap","\u2a87":"lne","\u2a88":"gne","\u2a89":"lnap","\u2a8a":"gnap","\u2a8b":"lEg","\u2a8c":"gEl","\u2a8d":"lsime","\u2a8e":"gsime","\u2a8f":"lsimg","\u2a90":"gsiml","\u2a91":"lgE","\u2a92":"glE","\u2a93":"lesges","\u2a94":"gesles","\u2a95":"els","\u2a96":"egs","\u2a97":"elsdot","\u2a98":"egsdot","\u2a99":"el","\u2a9a":"eg","\u2a9d":"siml","\u2a9e":"simg","\u2a9f":"simlE","\u2aa0":"simgE","\u2aa1":"LessLess","\u2aa1\u0338":"NotNestedLessLess","\u2aa2":"GreaterGreater","\u2aa2\u0338":"NotNestedGreaterGreater","\u2aa4":"glj","\u2aa5":"gla","\u2aa6":"ltcc","\u2aa7":"gtcc","\u2aa8":"lescc","\u2aa9":"gescc","\u2aaa":"smt","\u2aab":"lat","\u2aac":"smte","\u2aac\ufe00":"smtes","\u2aad":"late","\u2aad\ufe00":"lates","\u2aae":"bumpE","\u2aaf":"pre","\u2aaf\u0338":"npre","\u2ab0":"sce","\u2ab0\u0338":"nsce","\u2ab3":"prE","\u2ab4":"scE","\u2ab5":"prnE","\u2ab6":"scnE","\u2ab7":"prap","\u2ab8":"scap","\u2ab9":"prnap","\u2aba":"scnap","\u2abb":"Pr","\u2abc":"Sc","\u2abd":"subdot","\u2abe":"supdot","\u2abf":"subplus","\u2ac0":"supplus","\u2ac1":"submult","\u2ac2":"supmult","\u2ac3":"subedot","\u2ac4":"supedot","\u2ac5":"subE","\u2ac5\u0338":"nsubE","\u2ac6":"supE","\u2ac6\u0338":"nsupE","\u2ac7":"subsim","\u2ac8":"supsim","\u2acb\ufe00":"vsubnE","\u2acb":"subnE","\u2acc\ufe00":"vsupnE","\u2acc":"supnE","\u2acf":"csub","\u2ad0":"csup","\u2ad1":"csube","\u2ad2":"csupe","\u2ad3":"subsup","\u2ad4":"supsub","\u2ad5":"subsub","\u2ad6":"supsup","\u2ad7":"suphsub","\u2ad8":"supdsub","\u2ad9":"forkv","\u2ada":"topfork","\u2adb":"mlcp","\u2ae4":"Dashv","\u2ae6":"Vdashl","\u2ae7":"Barv","\u2ae8":"vBar","\u2ae9":"vBarv","\u2aeb":"Vbar","\u2aec":"Not","\u2aed":"bNot","\u2aee":"rnmid","\u2aef":"cirmid","\u2af0":"midcir","\u2af1":"topcir","\u2af2":"nhpar","\u2af3":"parsim","\u2afd":"parsl","\u2afd\u20e5":"nparsl","\u266d":"flat","\u266e":"natur","\u266f":"sharp","\xa4":"curren","\xa2":"cent",$:"dollar","\xa3":"pound","\xa5":"yen","\u20ac":"euro","\xb9":"sup1","\xbd":"half","\u2153":"frac13","\xbc":"frac14","\u2155":"frac15","\u2159":"frac16","\u215b":"frac18","\xb2":"sup2","\u2154":"frac23","\u2156":"frac25","\xb3":"sup3","\xbe":"frac34","\u2157":"frac35","\u215c":"frac38","\u2158":"frac45","\u215a":"frac56","\u215d":"frac58","\u215e":"frac78",\u{1d4b6}:"ascr",\u{1d552}:"aopf",\u{1d51e}:"afr",\u{1d538}:"Aopf",\u{1d504}:"Afr",\u{1d49c}:"Ascr",\u00aa:"ordf",\u00e1:"aacute",\u00c1:"Aacute",\u00e0:"agrave",\u00c0:"Agrave",\u0103:"abreve",\u0102:"Abreve",\u00e2:"acirc",\u00c2:"Acirc",\u00e5:"aring",\u00c5:"angst",\u00e4:"auml",\u00c4:"Auml",\u00e3:"atilde",\u00c3:"Atilde",\u0105:"aogon",\u0104:"Aogon",\u0101:"amacr",\u0100:"Amacr",\u00e6:"aelig",\u00c6:"AElig",\u{1d4b7}:"bscr",\u{1d553}:"bopf",\u{1d51f}:"bfr",\u{1d539}:"Bopf",\u212c:"Bscr",\u{1d505}:"Bfr",\u{1d520}:"cfr",\u{1d4b8}:"cscr",\u{1d554}:"copf",\u212d:"Cfr",\u{1d49e}:"Cscr",\u2102:"Copf",\u0107:"cacute",\u0106:"Cacute",\u0109:"ccirc",\u0108:"Ccirc",\u010d:"ccaron",\u010c:"Ccaron",\u010b:"cdot",\u010a:"Cdot",\u00e7:"ccedil",\u00c7:"Ccedil","\u2105":"incare",\u{1d521}:"dfr",\u2146:"dd",\u{1d555}:"dopf",\u{1d4b9}:"dscr",\u{1d49f}:"Dscr",\u{1d507}:"Dfr",\u2145:"DD",\u{1d53b}:"Dopf",\u010f:"dcaron",\u010e:"Dcaron",\u0111:"dstrok",\u0110:"Dstrok",\u00f0:"eth",\u00d0:"ETH",\u2147:"ee",\u212f:"escr",\u{1d522}:"efr",\u{1d556}:"eopf",\u2130:"Escr",\u{1d508}:"Efr",\u{1d53c}:"Eopf",\u00e9:"eacute",\u00c9:"Eacute",\u00e8:"egrave",\u00c8:"Egrave",\u00ea:"ecirc",\u00ca:"Ecirc",\u011b:"ecaron",\u011a:"Ecaron",\u00eb:"euml",\u00cb:"Euml",\u0117:"edot",\u0116:"Edot",\u0119:"eogon",\u0118:"Eogon",\u0113:"emacr",\u0112:"Emacr",\u{1d523}:"ffr",\u{1d557}:"fopf",\u{1d4bb}:"fscr",\u{1d509}:"Ffr",\u{1d53d}:"Fopf",\u2131:"Fscr",\ufb00:"fflig",\ufb03:"ffilig",\ufb04:"ffllig",\ufb01:"filig",fj:"fjlig",\ufb02:"fllig",\u0192:"fnof",\u210a:"gscr",\u{1d558}:"gopf",\u{1d524}:"gfr",\u{1d4a2}:"Gscr",\u{1d53e}:"Gopf",\u{1d50a}:"Gfr",\u01f5:"gacute",\u011f:"gbreve",\u011e:"Gbreve",\u011d:"gcirc",\u011c:"Gcirc",\u0121:"gdot",\u0120:"Gdot",\u0122:"Gcedil",\u{1d525}:"hfr",\u210e:"planckh",\u{1d4bd}:"hscr",\u{1d559}:"hopf",\u210b:"Hscr",\u210c:"Hfr",\u210d:"Hopf",\u0125:"hcirc",\u0124:"Hcirc",\u210f:"hbar",\u0127:"hstrok",\u0126:"Hstrok",\u{1d55a}:"iopf",\u{1d526}:"ifr",\u{1d4be}:"iscr",\u2148:"ii",\u{1d540}:"Iopf",\u2110:"Iscr",\u2111:"Im",\u00ed:"iacute",\u00cd:"Iacute",\u00ec:"igrave",\u00cc:"Igrave",\u00ee:"icirc",\u00ce:"Icirc",\u00ef:"iuml",\u00cf:"Iuml",\u0129:"itilde",\u0128:"Itilde",\u0130:"Idot",\u012f:"iogon",\u012e:"Iogon",\u012b:"imacr",\u012a:"Imacr",\u0133:"ijlig",\u0132:"IJlig",\u0131:"imath",\u{1d4bf}:"jscr",\u{1d55b}:"jopf",\u{1d527}:"jfr",\u{1d4a5}:"Jscr",\u{1d50d}:"Jfr",\u{1d541}:"Jopf",\u0135:"jcirc",\u0134:"Jcirc",\u0237:"jmath",\u{1d55c}:"kopf",\u{1d4c0}:"kscr",\u{1d528}:"kfr",\u{1d4a6}:"Kscr",\u{1d542}:"Kopf",\u{1d50e}:"Kfr",\u0137:"kcedil",\u0136:"Kcedil",\u{1d529}:"lfr",\u{1d4c1}:"lscr",\u2113:"ell",\u{1d55d}:"lopf",\u2112:"Lscr",\u{1d50f}:"Lfr",\u{1d543}:"Lopf",\u013a:"lacute",\u0139:"Lacute",\u013e:"lcaron",\u013d:"Lcaron",\u013c:"lcedil",\u013b:"Lcedil",\u0142:"lstrok",\u0141:"Lstrok",\u0140:"lmidot",\u013f:"Lmidot",\u{1d52a}:"mfr",\u{1d55e}:"mopf",\u{1d4c2}:"mscr",\u{1d510}:"Mfr",\u{1d544}:"Mopf",\u2133:"Mscr",\u{1d52b}:"nfr",\u{1d55f}:"nopf",\u{1d4c3}:"nscr",\u2115:"Nopf",\u{1d4a9}:"Nscr",\u{1d511}:"Nfr",\u0144:"nacute",\u0143:"Nacute",\u0148:"ncaron",\u0147:"Ncaron",\u00f1:"ntilde",\u00d1:"Ntilde",\u0146:"ncedil",\u0145:"Ncedil","\u2116":"numero",\u014b:"eng",\u014a:"ENG",\u{1d560}:"oopf",\u{1d52c}:"ofr",\u2134:"oscr",\u{1d4aa}:"Oscr",\u{1d512}:"Ofr",\u{1d546}:"Oopf",\u00ba:"ordm",\u00f3:"oacute",\u00d3:"Oacute",\u00f2:"ograve",\u00d2:"Ograve",\u00f4:"ocirc",\u00d4:"Ocirc",\u00f6:"ouml",\u00d6:"Ouml",\u0151:"odblac",\u0150:"Odblac",\u00f5:"otilde",\u00d5:"Otilde",\u00f8:"oslash",\u00d8:"Oslash",\u014d:"omacr",\u014c:"Omacr",\u0153:"oelig",\u0152:"OElig",\u{1d52d}:"pfr",\u{1d4c5}:"pscr",\u{1d561}:"popf",\u2119:"Popf",\u{1d513}:"Pfr",\u{1d4ab}:"Pscr",\u{1d562}:"qopf",\u{1d52e}:"qfr",\u{1d4c6}:"qscr",\u{1d4ac}:"Qscr",\u{1d514}:"Qfr",\u211a:"Qopf",\u0138:"kgreen",\u{1d52f}:"rfr",\u{1d563}:"ropf",\u{1d4c7}:"rscr",\u211b:"Rscr",\u211c:"Re",\u211d:"Ropf",\u0155:"racute",\u0154:"Racute",\u0159:"rcaron",\u0158:"Rcaron",\u0157:"rcedil",\u0156:"Rcedil",\u{1d564}:"sopf",\u{1d4c8}:"sscr",\u{1d530}:"sfr",\u{1d54a}:"Sopf",\u{1d516}:"Sfr",\u{1d4ae}:"Sscr","\u24c8":"oS",\u015b:"sacute",\u015a:"Sacute",\u015d:"scirc",\u015c:"Scirc",\u0161:"scaron",\u0160:"Scaron",\u015f:"scedil",\u015e:"Scedil",\u00df:"szlig",\u{1d531}:"tfr",\u{1d4c9}:"tscr",\u{1d565}:"topf",\u{1d4af}:"Tscr",\u{1d517}:"Tfr",\u{1d54b}:"Topf",\u0165:"tcaron",\u0164:"Tcaron",\u0163:"tcedil",\u0162:"Tcedil","\u2122":"trade",\u0167:"tstrok",\u0166:"Tstrok",\u{1d4ca}:"uscr",\u{1d566}:"uopf",\u{1d532}:"ufr",\u{1d54c}:"Uopf",\u{1d518}:"Ufr",\u{1d4b0}:"Uscr",\u00fa:"uacute",\u00da:"Uacute",\u00f9:"ugrave",\u00d9:"Ugrave",\u016d:"ubreve",\u016c:"Ubreve",\u00fb:"ucirc",\u00db:"Ucirc",\u016f:"uring",\u016e:"Uring",\u00fc:"uuml",\u00dc:"Uuml",\u0171:"udblac",\u0170:"Udblac",\u0169:"utilde",\u0168:"Utilde",\u0173:"uogon",\u0172:"Uogon",\u016b:"umacr",\u016a:"Umacr",\u{1d533}:"vfr",\u{1d567}:"vopf",\u{1d4cb}:"vscr",\u{1d519}:"Vfr",\u{1d54d}:"Vopf",\u{1d4b1}:"Vscr",\u{1d568}:"wopf",\u{1d4cc}:"wscr",\u{1d534}:"wfr",\u{1d4b2}:"Wscr",\u{1d54e}:"Wopf",\u{1d51a}:"Wfr",\u0175:"wcirc",\u0174:"Wcirc",\u{1d535}:"xfr",\u{1d4cd}:"xscr",\u{1d569}:"xopf",\u{1d54f}:"Xopf",\u{1d51b}:"Xfr",\u{1d4b3}:"Xscr",\u{1d536}:"yfr",\u{1d4ce}:"yscr",\u{1d56a}:"yopf",\u{1d4b4}:"Yscr",\u{1d51c}:"Yfr",\u{1d550}:"Yopf",\u00fd:"yacute",\u00dd:"Yacute",\u0177:"ycirc",\u0176:"Ycirc",\u00ff:"yuml",\u0178:"Yuml",\u{1d4cf}:"zscr",\u{1d537}:"zfr",\u{1d56b}:"zopf",\u2128:"Zfr",\u2124:"Zopf",\u{1d4b5}:"Zscr",\u017a:"zacute",\u0179:"Zacute",\u017e:"zcaron",\u017d:"Zcaron",\u017c:"zdot",\u017b:"Zdot",\u01b5:"imped",\u00fe:"thorn",\u00de:"THORN",\u0149:"napos",\u03b1:"alpha",\u0391:"Alpha",\u03b2:"beta",\u0392:"Beta",\u03b3:"gamma",\u0393:"Gamma",\u03b4:"delta",\u0394:"Delta",\u03b5:"epsi",\u03f5:"epsiv",\u0395:"Epsilon",\u03dd:"gammad",\u03dc:"Gammad",\u03b6:"zeta",\u0396:"Zeta",\u03b7:"eta",\u0397:"Eta",\u03b8:"theta",\u03d1:"thetav",\u0398:"Theta",\u03b9:"iota",\u0399:"Iota",\u03ba:"kappa",\u03f0:"kappav",\u039a:"Kappa",\u03bb:"lambda",\u039b:"Lambda",\u03bc:"mu",\u00b5:"micro",\u039c:"Mu",\u03bd:"nu",\u039d:"Nu",\u03be:"xi",\u039e:"Xi",\u03bf:"omicron",\u039f:"Omicron",\u03c0:"pi",\u03d6:"piv",\u03a0:"Pi",\u03c1:"rho",\u03f1:"rhov",\u03a1:"Rho",\u03c3:"sigma",\u03a3:"Sigma",\u03c2:"sigmaf",\u03c4:"tau",\u03a4:"Tau",\u03c5:"upsi",\u03a5:"Upsilon",\u03d2:"Upsi",\u03c6:"phi",\u03d5:"phiv",\u03a6:"Phi",\u03c7:"chi",\u03a7:"Chi",\u03c8:"psi",\u03a8:"Psi",\u03c9:"omega",\u03a9:"ohm",\u0430:"acy",\u0410:"Acy",\u0431:"bcy",\u0411:"Bcy",\u0432:"vcy",\u0412:"Vcy",\u0433:"gcy",\u0413:"Gcy",\u0453:"gjcy",\u0403:"GJcy",\u0434:"dcy",\u0414:"Dcy",\u0452:"djcy",\u0402:"DJcy",\u0435:"iecy",\u0415:"IEcy",\u0451:"iocy",\u0401:"IOcy",\u0454:"jukcy",\u0404:"Jukcy",\u0436:"zhcy",\u0416:"ZHcy",\u0437:"zcy",\u0417:"Zcy",\u0455:"dscy",\u0405:"DScy",\u0438:"icy",\u0418:"Icy",\u0456:"iukcy",\u0406:"Iukcy",\u0457:"yicy",\u0407:"YIcy",\u0439:"jcy",\u0419:"Jcy",\u0458:"jsercy",\u0408:"Jsercy",\u043a:"kcy",\u041a:"Kcy",\u045c:"kjcy",\u040c:"KJcy",\u043b:"lcy",\u041b:"Lcy",\u0459:"ljcy",\u0409:"LJcy",\u043c:"mcy",\u041c:"Mcy",\u043d:"ncy",\u041d:"Ncy",\u045a:"njcy",\u040a:"NJcy",\u043e:"ocy",\u041e:"Ocy",\u043f:"pcy",\u041f:"Pcy",\u0440:"rcy",\u0420:"Rcy",\u0441:"scy",\u0421:"Scy",\u0442:"tcy",\u0422:"Tcy",\u045b:"tshcy",\u040b:"TSHcy",\u0443:"ucy",\u0423:"Ucy",\u045e:"ubrcy",\u040e:"Ubrcy",\u0444:"fcy",\u0424:"Fcy",\u0445:"khcy",\u0425:"KHcy",\u0446:"tscy",\u0426:"TScy",\u0447:"chcy",\u0427:"CHcy",\u045f:"dzcy",\u040f:"DZcy",\u0448:"shcy",\u0428:"SHcy",\u0449:"shchcy",\u0429:"SHCHcy",\u044a:"hardcy",\u042a:"HARDcy",\u044b:"ycy",\u042b:"Ycy",\u044c:"softcy",\u042c:"SOFTcy",\u044d:"ecy",\u042d:"Ecy",\u044e:"yucy",\u042e:"YUcy",\u044f:"yacy",\u042f:"YAcy",\u2135:"aleph",\u2136:"beth",\u2137:"gimel",\u2138:"daleth"},P=/["&'<>`]/g,E={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},k=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,D=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,I=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,B={aacute:"\xe1",Aacute:"\xc1",abreve:"\u0103",Abreve:"\u0102",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",acy:"\u0430",Acy:"\u0410",aelig:"\xe6",AElig:"\xc6",af:"\u2061",afr:"\u{1d51e}",Afr:"\u{1d504}",agrave:"\xe0",Agrave:"\xc0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",Alpha:"\u0391",amacr:"\u0101",Amacr:"\u0100",amalg:"\u2a3f",amp:"&",AMP:"&",and:"\u2227",And:"\u2a53",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",aogon:"\u0105",Aogon:"\u0104",aopf:"\u{1d552}",Aopf:"\u{1d538}",ap:"\u2248",apacir:"\u2a6f",ape:"\u224a",apE:"\u2a70",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",aring:"\xe5",Aring:"\xc5",ascr:"\u{1d4b6}",Ascr:"\u{1d49c}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",bcy:"\u0431",Bcy:"\u0411",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",beta:"\u03b2",Beta:"\u0392",beth:"\u2136",between:"\u226c",bfr:"\u{1d51f}",Bfr:"\u{1d505}",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bNot:"\u2aed",bopf:"\u{1d553}",Bopf:"\u{1d539}",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxhD:"\u2565",boxHd:"\u2564",boxHD:"\u2566",boxhu:"\u2534",boxhU:"\u2568",boxHu:"\u2567",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",Breve:"\u02d8",brvbar:"\xa6",bscr:"\u{1d4b7}",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpe:"\u224f",bumpE:"\u2aae",bumpeq:"\u224f",Bumpeq:"\u224e",cacute:"\u0107",Cacute:"\u0106",cap:"\u2229",Cap:"\u22d2",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",ccaron:"\u010d",Ccaron:"\u010c",ccedil:"\xe7",Ccedil:"\xc7",ccirc:"\u0109",Ccirc:"\u0108",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",Cdot:"\u010a",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\u{1d520}",Cfr:"\u212d",chcy:"\u0447",CHcy:"\u0427",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",Chi:"\u03a7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cire:"\u2257",cirE:"\u29c3",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",colone:"\u2254",Colone:"\u2a74",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\u{1d554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xa9",COPY:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",cscr:"\u{1d4b8}",Cscr:"\u{1d49e}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cup:"\u222a",Cup:"\u22d3",cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",dArr:"\u21d3",Darr:"\u21a1",dash:"\u2010",dashv:"\u22a3",Dashv:"\u2ae4",dbkarow:"\u290f",dblac:"\u02dd",dcaron:"\u010f",Dcaron:"\u010e",dcy:"\u0434",Dcy:"\u0414",dd:"\u2146",DD:"\u2145",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",delta:"\u03b4",Delta:"\u0394",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\u{1d521}",Dfr:"\u{1d507}",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",DJcy:"\u0402",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\u{1d555}",Dopf:"\u{1d53b}",dot:"\u02d9",Dot:"\xa8",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",downarrow:"\u2193",Downarrow:"\u21d3",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",dscr:"\u{1d4b9}",Dscr:"\u{1d49f}",dscy:"\u0455",DScy:"\u0405",dsol:"\u29f6",dstrok:"\u0111",Dstrok:"\u0110",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",dzcy:"\u045f",DZcy:"\u040f",dzigrarr:"\u27ff",eacute:"\xe9",Eacute:"\xc9",easter:"\u2a6e",ecaron:"\u011b",Ecaron:"\u011a",ecir:"\u2256",ecirc:"\xea",Ecirc:"\xca",ecolon:"\u2255",ecy:"\u044d",Ecy:"\u042d",eDDot:"\u2a77",edot:"\u0117",eDot:"\u2251",Edot:"\u0116",ee:"\u2147",efDot:"\u2252",efr:"\u{1d522}",Efr:"\u{1d508}",eg:"\u2a9a",egrave:"\xe8",Egrave:"\xc8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",Emacr:"\u0112",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",eng:"\u014b",ENG:"\u014a",ensp:"\u2002",eogon:"\u0119",Eogon:"\u0118",eopf:"\u{1d556}",Eopf:"\u{1d53c}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",Epsilon:"\u0395",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",esim:"\u2242",Esim:"\u2a73",eta:"\u03b7",Eta:"\u0397",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",Fcy:"\u0424",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\u{1d523}",Ffr:"\u{1d509}",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\u{1d557}",Fopf:"\u{1d53d}",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\u{1d4bb}",Fscr:"\u2131",gacute:"\u01f5",gamma:"\u03b3",Gamma:"\u0393",gammad:"\u03dd",Gammad:"\u03dc",gap:"\u2a86",gbreve:"\u011f",Gbreve:"\u011e",Gcedil:"\u0122",gcirc:"\u011d",Gcirc:"\u011c",gcy:"\u0433",Gcy:"\u0413",gdot:"\u0121",Gdot:"\u0120",ge:"\u2265",gE:"\u2267",gel:"\u22db",gEl:"\u2a8c",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\u{1d524}",Gfr:"\u{1d50a}",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",gjcy:"\u0453",GJcy:"\u0403",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",gopf:"\u{1d558}",Gopf:"\u{1d53e}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",gscr:"\u210a",Gscr:"\u{1d4a2}",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gt:">",Gt:"\u226b",GT:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",hardcy:"\u044a",HARDcy:"\u042a",harr:"\u2194",hArr:"\u21d4",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",hcirc:"\u0125",Hcirc:"\u0124",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\u{1d525}",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\u{1d559}",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1d4bd}",Hscr:"\u210b",hslash:"\u210f",hstrok:"\u0127",Hstrok:"\u0126",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",iacute:"\xed",Iacute:"\xcd",ic:"\u2063",icirc:"\xee",Icirc:"\xce",icy:"\u0438",Icy:"\u0418",Idot:"\u0130",iecy:"\u0435",IEcy:"\u0415",iexcl:"\xa1",iff:"\u21d4",ifr:"\u{1d526}",Ifr:"\u2111",igrave:"\xec",Igrave:"\xcc",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",IJlig:"\u0132",Im:"\u2111",imacr:"\u012b",Imacr:"\u012a",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",int:"\u222b",Int:"\u222c",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",iocy:"\u0451",IOcy:"\u0401",iogon:"\u012f",Iogon:"\u012e",iopf:"\u{1d55a}",Iopf:"\u{1d540}",iota:"\u03b9",Iota:"\u0399",iprod:"\u2a3c",iquest:"\xbf",iscr:"\u{1d4be}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",Itilde:"\u0128",iukcy:"\u0456",Iukcy:"\u0406",iuml:"\xef",Iuml:"\xcf",jcirc:"\u0135",Jcirc:"\u0134",jcy:"\u0439",Jcy:"\u0419",jfr:"\u{1d527}",Jfr:"\u{1d50d}",jmath:"\u0237",jopf:"\u{1d55b}",Jopf:"\u{1d541}",jscr:"\u{1d4bf}",Jscr:"\u{1d4a5}",jsercy:"\u0458",Jsercy:"\u0408",jukcy:"\u0454",Jukcy:"\u0404",kappa:"\u03ba",Kappa:"\u039a",kappav:"\u03f0",kcedil:"\u0137",Kcedil:"\u0136",kcy:"\u043a",Kcy:"\u041a",kfr:"\u{1d528}",Kfr:"\u{1d50e}",kgreen:"\u0138",khcy:"\u0445",KHcy:"\u0425",kjcy:"\u045c",KJcy:"\u040c",kopf:"\u{1d55c}",Kopf:"\u{1d542}",kscr:"\u{1d4c0}",Kscr:"\u{1d4a6}",lAarr:"\u21da",lacute:"\u013a",Lacute:"\u0139",laemptyv:"\u29b4",lagran:"\u2112",lambda:"\u03bb",Lambda:"\u039b",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",larr:"\u2190",lArr:"\u21d0",Larr:"\u219e",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",latail:"\u2919",lAtail:"\u291b",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",Lcaron:"\u013d",lcedil:"\u013c",Lcedil:"\u013b",lceil:"\u2308",lcub:"{",lcy:"\u043b",Lcy:"\u041b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",leftarrow:"\u2190",Leftarrow:"\u21d0",LeftArrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",Leftrightarrow:"\u21d4",LeftRightArrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",leg:"\u22da",lEg:"\u2a8b",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",lfr:"\u{1d529}",Lfr:"\u{1d50f}",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",LJcy:"\u0409",ll:"\u226a",Ll:"\u22d8",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",Lmidot:"\u013f",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",Longleftarrow:"\u27f8",LongLeftArrow:"\u27f5",longleftrightarrow:"\u27f7",Longleftrightarrow:"\u27fa",LongLeftRightArrow:"\u27f7",longmapsto:"\u27fc",longrightarrow:"\u27f6",Longrightarrow:"\u27f9",LongRightArrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",lopf:"\u{1d55d}",Lopf:"\u{1d543}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\u{1d4c1}",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",lstrok:"\u0142",Lstrok:"\u0141",lt:"<",Lt:"\u226a",LT:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21a6",Map:"\u2905",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",Mcy:"\u041c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",mfr:"\u{1d52a}",Mfr:"\u{1d510}",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",mopf:"\u{1d55e}",Mopf:"\u{1d544}",mp:"\u2213",mscr:"\u{1d4c2}",Mscr:"\u2133",mstpos:"\u223e",mu:"\u03bc",Mu:"\u039c",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",nacute:"\u0144",Nacute:"\u0143",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",Ncaron:"\u0147",ncedil:"\u0146",Ncedil:"\u0145",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",Ncy:"\u041d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1d52b}",Nfr:"\u{1d511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",ngt:"\u226f",nGt:"\u226b\u20d2",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",NJcy:"\u040a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nlt:"\u226e",nLt:"\u226a\u20d2",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nopf:"\u{1d55f}",Nopf:"\u2115",not:"\xac",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nscr:"\u{1d4c3}",Nscr:"\u{1d4a9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2ac5\u0338",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2ac6\u0338",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntilde:"\xf1",Ntilde:"\xd1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",nu:"\u03bd",Nu:"\u039d",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xf3",Oacute:"\xd3",oast:"\u229b",ocir:"\u229a",ocirc:"\xf4",Ocirc:"\xd4",ocy:"\u043e",Ocy:"\u041e",odash:"\u229d",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29bf",ofr:"\u{1d52c}",Ofr:"\u{1d512}",ogon:"\u02db",ograve:"\xf2",Ograve:"\xd2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",omacr:"\u014d",Omacr:"\u014c",omega:"\u03c9",Omega:"\u03a9",omicron:"\u03bf",Omicron:"\u039f",omid:"\u29b6",ominus:"\u2296",oopf:"\u{1d560}",Oopf:"\u{1d546}",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",or:"\u2228",Or:"\u2a54",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",oscr:"\u2134",Oscr:"\u{1d4aa}",oslash:"\xf8",Oslash:"\xd8",osol:"\u2298",otilde:"\xf5",Otilde:"\xd5",otimes:"\u2297",Otimes:"\u2a37",otimesas:"\u2a36",ouml:"\xf6",Ouml:"\xd6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",pcy:"\u043f",Pcy:"\u041f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",pfr:"\u{1d52d}",Pfr:"\u{1d513}",phi:"\u03c6",Phi:"\u03a6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",pi:"\u03c0",Pi:"\u03a0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\u{1d561}",Popf:"\u2119",pound:"\xa3",pr:"\u227a",Pr:"\u2abb",prap:"\u2ab7",prcue:"\u227c",pre:"\u2aaf",prE:"\u2ab3",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",pscr:"\u{1d4c5}",Pscr:"\u{1d4ab}",psi:"\u03c8",Psi:"\u03a8",puncsp:"\u2008",qfr:"\u{1d52e}",Qfr:"\u{1d514}",qint:"\u2a0c",qopf:"\u{1d562}",Qopf:"\u211a",qprime:"\u2057",qscr:"\u{1d4c6}",Qscr:"\u{1d4ac}",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",racute:"\u0155",Racute:"\u0154",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarr:"\u2192",rArr:"\u21d2",Rarr:"\u21a0",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",Rarrtl:"\u2916",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",Rcaron:"\u0158",rcedil:"\u0157",Rcedil:"\u0156",rceil:"\u2309",rcub:"}",rcy:"\u0440",Rcy:"\u0420",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",reg:"\xae",REG:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\u{1d52f}",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rho:"\u03c1",Rho:"\u03a1",rhov:"\u03f1",RightAngleBracket:"\u27e9",rightarrow:"\u2192",Rightarrow:"\u21d2",RightArrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\u{1d563}",Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\u{1d4c7}",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",Sacute:"\u015a",sbquo:"\u201a",sc:"\u227b",Sc:"\u2abc",scap:"\u2ab8",scaron:"\u0161",Scaron:"\u0160",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",scedil:"\u015f",Scedil:"\u015e",scirc:"\u015d",Scirc:"\u015c",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",scy:"\u0441",Scy:"\u0421",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1d530}",Sfr:"\u{1d516}",sfrown:"\u2322",sharp:"\u266f",shchcy:"\u0449",SHCHcy:"\u0429",shcy:"\u0448",SHcy:"\u0428",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",sigma:"\u03c3",Sigma:"\u03a3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",SOFTcy:"\u042c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\u{1d564}",Sopf:"\u{1d54a}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",sscr:"\u{1d4c8}",Sscr:"\u{1d4ae}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",star:"\u2606",Star:"\u22c6",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",sube:"\u2286",subE:"\u2ac5",subedot:"\u2ac3",submult:"\u2ac1",subne:"\u228a",subnE:"\u2acb",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",sup:"\u2283",Sup:"\u22d1",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supe:"\u2287",supE:"\u2ac6",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supne:"\u228b",supnE:"\u2acc",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",tau:"\u03c4",Tau:"\u03a4",tbrk:"\u23b4",tcaron:"\u0165",Tcaron:"\u0164",tcedil:"\u0163",Tcedil:"\u0162",tcy:"\u0442",Tcy:"\u0422",tdot:"\u20db",telrec:"\u2315",tfr:"\u{1d531}",Tfr:"\u{1d517}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",theta:"\u03b8",Theta:"\u0398",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",thorn:"\xfe",THORN:"\xde",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",topf:"\u{1d565}",Topf:"\u{1d54b}",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\u{1d4c9}",Tscr:"\u{1d4af}",tscy:"\u0446",TScy:"\u0426",tshcy:"\u045b",TSHcy:"\u040b",tstrok:"\u0167",Tstrok:"\u0166",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",uacute:"\xfa",Uacute:"\xda",uarr:"\u2191",uArr:"\u21d1",Uarr:"\u219f",Uarrocir:"\u2949",ubrcy:"\u045e",Ubrcy:"\u040e",ubreve:"\u016d",Ubreve:"\u016c",ucirc:"\xfb",Ucirc:"\xdb",ucy:"\u0443",Ucy:"\u0423",udarr:"\u21c5",udblac:"\u0171",Udblac:"\u0170",udhar:"\u296e",ufisht:"\u297e",ufr:"\u{1d532}",Ufr:"\u{1d518}",ugrave:"\xf9",Ugrave:"\xd9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",Umacr:"\u016a",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",uogon:"\u0173",Uogon:"\u0172",uopf:"\u{1d566}",Uopf:"\u{1d54c}",uparrow:"\u2191",Uparrow:"\u21d1",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",Updownarrow:"\u21d5",UpDownArrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",upsilon:"\u03c5",Upsilon:"\u03a5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",Uring:"\u016e",urtri:"\u25f9",uscr:"\u{1d4ca}",Uscr:"\u{1d4b0}",utdot:"\u22f0",utilde:"\u0169",Utilde:"\u0168",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",uuml:"\xfc",Uuml:"\xdc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",vcy:"\u0432",Vcy:"\u0412",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",vee:"\u2228",Vee:"\u22c1",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",vfr:"\u{1d533}",Vfr:"\u{1d519}",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",vopf:"\u{1d567}",Vopf:"\u{1d54d}",vprop:"\u221d",vrtri:"\u22b3",vscr:"\u{1d4cb}",Vscr:"\u{1d4b1}",vsubne:"\u228a\ufe00",vsubnE:"\u2acb\ufe00",vsupne:"\u228b\ufe00",vsupnE:"\u2acc\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",wcirc:"\u0175",Wcirc:"\u0174",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1d534}",Wfr:"\u{1d51a}",wopf:"\u{1d568}",Wopf:"\u{1d54e}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1d4cc}",Wscr:"\u{1d4b2}",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",xfr:"\u{1d535}",Xfr:"\u{1d51b}",xharr:"\u27f7",xhArr:"\u27fa",xi:"\u03be",Xi:"\u039e",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",xopf:"\u{1d569}",Xopf:"\u{1d54f}",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",xscr:"\u{1d4cd}",Xscr:"\u{1d4b3}",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",yacute:"\xfd",Yacute:"\xdd",yacy:"\u044f",YAcy:"\u042f",ycirc:"\u0177",Ycirc:"\u0176",ycy:"\u044b",Ycy:"\u042b",yen:"\xa5",yfr:"\u{1d536}",Yfr:"\u{1d51c}",yicy:"\u0457",YIcy:"\u0407",yopf:"\u{1d56a}",Yopf:"\u{1d550}",yscr:"\u{1d4ce}",Yscr:"\u{1d4b4}",yucy:"\u044e",YUcy:"\u042e",yuml:"\xff",Yuml:"\u0178",zacute:"\u017a",Zacute:"\u0179",zcaron:"\u017e",Zcaron:"\u017d",zcy:"\u0437",Zcy:"\u0417",zdot:"\u017c",Zdot:"\u017b",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",zeta:"\u03b6",Zeta:"\u0396",zfr:"\u{1d537}",Zfr:"\u2128",zhcy:"\u0436",ZHcy:"\u0416",zigrarr:"\u21dd",zopf:"\u{1d56b}",Zopf:"\u2124",zscr:"\u{1d4cf}",Zscr:"\u{1d4b5}",zwj:"\u200d",zwnj:"\u200c"},z={aacute:"\xe1",Aacute:"\xc1",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",aelig:"\xe6",AElig:"\xc6",agrave:"\xe0",Agrave:"\xc0",amp:"&",AMP:"&",aring:"\xe5",Aring:"\xc5",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",brvbar:"\xa6",ccedil:"\xe7",Ccedil:"\xc7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",COPY:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",Eacute:"\xc9",ecirc:"\xea",Ecirc:"\xca",egrave:"\xe8",Egrave:"\xc8",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",GT:">",iacute:"\xed",Iacute:"\xcd",icirc:"\xee",Icirc:"\xce",iexcl:"\xa1",igrave:"\xec",Igrave:"\xcc",iquest:"\xbf",iuml:"\xef",Iuml:"\xcf",laquo:"\xab",lt:"<",LT:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",Ntilde:"\xd1",oacute:"\xf3",Oacute:"\xd3",ocirc:"\xf4",Ocirc:"\xd4",ograve:"\xf2",Ograve:"\xd2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",Oslash:"\xd8",otilde:"\xf5",Otilde:"\xd5",ouml:"\xf6",Ouml:"\xd6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',QUOT:'"',raquo:"\xbb",reg:"\xae",REG:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",THORN:"\xde",times:"\xd7",uacute:"\xfa",Uacute:"\xda",ucirc:"\xfb",Ucirc:"\xdb",ugrave:"\xf9",Ugrave:"\xd9",uml:"\xa8",uuml:"\xfc",Uuml:"\xdc",yacute:"\xfd",Yacute:"\xdd",yen:"\xa5",yuml:"\xff"},ne={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"},Ce=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],W=String.fromCharCode,b={}.hasOwnProperty,$=function(Ie,He){return b.call(Ie,He)},ie=function(Ie,He){if(!Ie)return He;var ye,re={};for(ye in He)re[ye]=$(Ie,ye)?Ie[ye]:He[ye];return re},_e=function(Ie,He){var re="";return Ie>=55296&&Ie<=57343||Ie>1114111?(He&&Q("character reference outside the permissible Unicode range"),"\ufffd"):$(ne,Ie)?(He&&Q("disallowed character reference"),ne[Ie]):(He&&function(Ie,He){for(var re=-1,ye=Ie.length;++re65535&&(re+=W((Ie-=65536)>>>10&1023|55296),Ie=56320|1023&Ie),re+=W(Ie))},H=function(Ie){return"&#x"+Ie.toString(16).toUpperCase()+";"},L=function(Ie){return"&#"+Ie+";"},Q=function(Ie){throw Error("Parse error: "+Ie)},de=function(Ie,He){(He=ie(He,de.options)).strict&&D.test(Ie)&&Q("forbidden code point");var be=He.useNamedReferences,ae=He.allowUnsafeSymbols,R=He.decimal?L:H,Ge=function(qe){return R(qe.charCodeAt(0))};return He.encodeEverything?(Ie=Ie.replace(M,function(qe){return be&&$(w,qe)?"&"+w[qe]+";":Ge(qe)}),be&&(Ie=Ie.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),be&&(Ie=Ie.replace(A,function(qe){return"&"+w[qe]+";"}))):be?(ae||(Ie=Ie.replace(P,function(qe){return"&"+w[qe]+";"})),Ie=(Ie=Ie.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(A,function(qe){return"&"+w[qe]+";"})):ae||(Ie=Ie.replace(P,Ge)),Ie.replace(F,function(qe){var Nt=qe.charCodeAt(0),ln=qe.charCodeAt(1);return R(1024*(Nt-55296)+ln-56320+65536)}).replace(O,Ge)};de.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var ue=function(Ie,He){var re=(He=ie(He,ue.options)).strict;return re&&k.test(Ie)&&Q("malformed character reference"),Ie.replace(I,function(ye,be,ae,R,Ge,qe,Nt,ln,hi){var Hi,Vs,ch,uh,Et,Do;return be?B[Et=be]:ae?(Et=ae,(Do=R)&&He.isAttributeValue?(re&&"="==Do&&Q("`&` did not start a character reference"),ye):(re&&Q("named character reference was not terminated by a semicolon"),z[Et]+(Do||""))):Ge?(ch=Ge,Vs=qe,re&&!Vs&&Q("character reference was not terminated by a semicolon"),Hi=parseInt(ch,10),_e(Hi,re)):Nt?(uh=Nt,Vs=ln,re&&!Vs&&Q("character reference was not terminated by a semicolon"),Hi=parseInt(uh,16),_e(Hi,re)):(re&&Q("named character reference was not terminated by a semicolon"),ye)})};ue.options={isAttributeValue:!1,strict:!1};var Fe={version:"1.2.0",encode:de,decode:ue,escape:function(Ie){return Ie.replace(P,function(He){return E[He]})},unescape:ue};void 0!==(le=function(){return Fe}.call(C,G,C,Pe))&&(Pe.exports=le)}()},4856:(Pe,C,G)=>{Pe.exports=G(1652)},7287:(Pe,C,G)=>{G(9542);const{trimCharacter:ce}=G(1458),{BlockStackItem:Y,TableCellStackItem:q,TableRowStackItem:F,TableStackItem:M,TransformerStackItem:O}=G(6237),{tableToString:A}=G(8186),{WhitespaceProcessor:w}=G(7139);function E(D){if(!(D instanceof Y||D instanceof q))throw new Error("Only blocks and table cells can be requested for text contents.");return D.inlineTextBuilder.isEmpty()?D.rawText:D.rawText+D.inlineTextBuilder.toString()}function k(D,I,B,z){if(!(D instanceof Y||D instanceof q))throw new Error("Only blocks and table cells can contain text.");const ne=E(D),Ce=Math.max(D.stashedLineBreaks,B);D.inlineTextBuilder.clear(),ne?D.rawText=ne+"\n".repeat(Ce)+I:(D.rawText=I,D.leadingLineBreaks=Ce),D.stashedLineBreaks=z}G(4563),Pe.exports={BlockTextBuilder:class P{constructor(I,B){this.options=I,this.picker=B,this.whitespaceProcessor=new w(I),this._stackItem=new Y(I),this._wordTransformer=void 0}pushWordTransform(I){this._wordTransformer=new O(this._wordTransformer,I)}popWordTransform(){if(!this._wordTransformer)return;const I=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,I}_getCombinedWordTransformer(){const I=(B,z)=>z?I(z.transform(B),z.next):B;return B=>I(B,this._wordTransformer)}_popStackItem(){const I=this._stackItem;return this._stackItem=I.next,I}addLineBreak(){(this._stackItem instanceof Y||this._stackItem instanceof q)&&(this._stackItem.isPre?this._stackItem.rawText+="\n":this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof Y||this._stackItem instanceof q)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(I,B={}){this._addInline(I,"object"==typeof B?B:{noWordTransform:B})}_addInline(I,{noWordTransform:B=!1}={}){if(this._stackItem instanceof Y||this._stackItem instanceof q){if(this._stackItem.isPre)return void(this._stackItem.rawText+=I);if(0!==I.length&&(!this._stackItem.stashedLineBreaks||this.whitespaceProcessor.testContainsWords(I))){if(this.options.preserveNewlines){const z=this.whitespaceProcessor.countNewlinesNoWords(I);if(z>0)return void this._stackItem.inlineTextBuilder.startNewLine(z)}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(I,this._stackItem.inlineTextBuilder,this._wordTransformer&&!B?this._getCombinedWordTransformer():void 0),this._stackItem.stashedLineBreaks=0}}}openBlock(I={},B,z){this._openBlock("object"==typeof I?I:{isPre:z,leadingLineBreaks:I,reservedLineLength:B})}_openBlock({leadingLineBreaks:I=1,reservedLineLength:B=0,isPre:z=!1}={}){const ne=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-B);this._stackItem=new Y(this.options,this._stackItem,I,ne),z&&(this._stackItem.isPre=!0)}closeBlock(I={},B){this._closeBlock("object"==typeof I?I:{trailingLineBreaks:I,blockTransform:B})}_closeBlock({trailingLineBreaks:I=1,blockTransform:B}={}){const z=this._popStackItem(),ne=B?B(E(z)):E(z);k(this._stackItem,ne,z.leadingLineBreaks,Math.max(z.stashedLineBreaks,I))}openTable(){this._stackItem=new M(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof M))throw new Error("Can't add table row to something that is not a table! Check the formatter.");this._stackItem=new F(this._stackItem)}openTableCell(I={}){this._openTableCell("object"==typeof I?I:{maxColumnWidth:I})}_openTableCell({maxColumnWidth:I}={}){if(!(this._stackItem instanceof F))throw new Error("Can't add table cell to something that is not a table row! Check the formatter.");this._stackItem=new q(this.options,this._stackItem,I)}closeTableCell(I={},B){this._closeTableCell("object"==typeof I?I:{colspan:I,rowspan:B})}_closeTableCell({colspan:I=1,rowspan:B=1}={}){const z=this._popStackItem(),ne=ce(E(z),"\n");z.next.cells.push({colspan:I,rowspan:B,text:ne})}closeTableRow(){const I=this._popStackItem();I.next.rows.push(I.cells)}closeTable(I={},B,z,ne){this._closeTable("object"==typeof I?I:{colSpacing:I,leadingLineBreaks:z,rowSpacing:B,trailingLineBreaks:ne})}_closeTable({colSpacing:I=3,rowSpacing:B=0,leadingLineBreaks:z=2,trailingLineBreaks:ne=2}={}){const Ce=this._popStackItem(),W=A(Ce.rows,B,I);W&&k(this._stackItem,W,z,ne)}toString(){return E(this._stackItem.getRoot())}}}},7723:(Pe,C,G)=>{const le=G(3537),{get:ce,numberToLetterSequence:K,numberToRoman:Y,splitClassesAndIds:q,trimCharacter:F}=G(1458);function A(H,L,Q,de){Q.openBlock({leadingLineBreaks:de.leadingLineBreaks}),L(H.children,Q),Q.closeBlock({trailingLineBreaks:de.trailingLineBreaks})}function z(H,L){return L?("string"==typeof L[0]?L[0]:"[")+H+("string"==typeof L[1]?L[1]:"]"):H}function W(H,L,Q,de,ue){const Ne="li"===ce(H,["parent","name"]);let Fe=0;const At=(H.children||[]).filter(re=>"text"!==re.type||!/^\s*$/.test(re.data)).map(function(re){if("li"!==re.name)return{node:re,prefix:""};const ye=Ne?ue().trimStart():ue();return ye.length>Fe&&(Fe=ye.length),{node:re,prefix:ye}});if(!At.length)return;const Ie=Fe,He="\n"+" ".repeat(Ie);Q.openBlock({leadingLineBreaks:Ne?1:de.leadingLineBreaks||2});for(const{node:re,prefix:ye}of At)Q.openBlock({leadingLineBreaks:1,reservedLineLength:Ie}),L([re],Q),Q.closeBlock({trailingLineBreaks:1,blockTransform:be=>ye+" ".repeat(Ie-ye.length)+be.replace(/\n/g,He)});Q.closeBlock({trailingLineBreaks:Ne?1:de.trailingLineBreaks||2})}function _e(H,L,Q,de){function ue(Fe){const At=+ce(Fe,["attribs","colspan"])||1,Ie=+ce(Fe,["attribs","rowspan"])||1;Q.openTableCell({maxColumnWidth:de.maxColumnWidth}),L(Fe.children,Q),Q.closeTableCell({colspan:At,rowspan:Ie})}Q.openTable(),H.children.forEach(function Ne(Fe){if("tag"!==Fe.type)return;const At=!1!==de.uppercaseHeaderCells?Ie=>{Q.pushWordTransform(He=>He.toUpperCase()),ue(Ie),Q.popWordTransform()}:ue;switch(Fe.name){case"thead":case"tbody":case"tfoot":case"center":return void Fe.children.forEach(Ne);case"tr":Q.openTableRow();for(const Ie of Fe.children)if("tag"===Ie.type)switch(Ie.name){case"th":At(Ie);break;case"td":ue(Ie)}Q.closeTableRow()}}),Q.closeTable({colSpacing:de.colSpacing,leadingLineBreaks:de.leadingLineBreaks,rowSpacing:de.rowSpacing,trailingLineBreaks:de.trailingLineBreaks})}G(4563),Pe.exports={anchor:function Ce(H,L,Q,de){const Ne=function ue(){if(de.ignoreHref||!H.attribs||!H.attribs.href)return"";let Fe=H.attribs.href.replace(/^mailto:/,"");return de.noAnchorUrl&&"#"===Fe[0]?"":(Fe=de.baseUrl&&"/"===Fe[0]?de.baseUrl+Fe:Fe,le.decode(Fe,Q.options.decodeOptions))}();if(Ne){let Fe="";Q.pushWordTransform(Ie=>(Ie&&(Fe+=Ie),Ie)),L(H.children,Q),Q.popWordTransform(),de.hideLinkHrefIfSameAsText&&Ne===Fe||Q.addInline(Fe?" "+z(Ne,de.linkBrackets):Ne,{noWordTransform:!0})}else L(H.children,Q)},block:A,blockquote:function B(H,L,Q,de){Q.openBlock({leadingLineBreaks:de.leadingLineBreaks||2,reservedLineLength:2}),L(H.children,Q),Q.closeBlock({trailingLineBreaks:de.trailingLineBreaks||2,blockTransform:ue=>(!1!==de.trimEmptyLines?F(ue,"\n"):ue).split("\n").map(Ne=>"> "+Ne).join("\n")})},dataTable:_e,heading:function I(H,L,Q,de){Q.openBlock({leadingLineBreaks:de.leadingLineBreaks||2}),!1!==de.uppercase?(Q.pushWordTransform(ue=>ue.toUpperCase()),L(H.children,Q),Q.popWordTransform()):L(H.children,Q),Q.closeBlock({trailingLineBreaks:de.trailingLineBreaks||2})},horizontalLine:function E(H,L,Q,de){Q.openBlock({leadingLineBreaks:de.leadingLineBreaks||2}),Q.addInline("-".repeat(de.length||Q.options.wordwrap||40)),Q.closeBlock({trailingLineBreaks:de.trailingLineBreaks||2})},image:function ne(H,L,Q,de){const ue=H.attribs||{},Ne=ue.alt?le.decode(ue.alt,Q.options.decodeOptions):"",Fe=ue.src?de.baseUrl&&0===ue.src.indexOf("/")?de.baseUrl+ue.src:ue.src:"",At=Fe?Ne?Ne+" "+z(Fe,de.linkBrackets):z(Fe,de.linkBrackets):Ne;Q.addInline(At)},inline:function O(H,L,Q,de){L(H.children,Q)},lineBreak:function w(H,L,Q,de){Q.addLineBreak()},orderedList:function b(H,L,Q,de){let ue=Number(H.attribs.start||"1");const Ne=function $(H="1"){switch(H){case"a":return L=>K(L,"a");case"A":return L=>K(L,"A");case"i":return L=>Y(L).toLowerCase();case"I":return L=>Y(L);default:return L=>L.toString()}}(H.attribs.type);return W(H,L,Q,de,()=>" "+Ne(ue++)+". ")},paragraph:function k(H,L,Q,de){Q.openBlock({leadingLineBreaks:de.leadingLineBreaks||2}),L(H.children,Q),Q.closeBlock({trailingLineBreaks:de.trailingLineBreaks||2})},pre:function D(H,L,Q,de){Q.openBlock({isPre:!0,leadingLineBreaks:de.leadingLineBreaks||2}),L(H.children,Q),Q.closeBlock({trailingLineBreaks:de.trailingLineBreaks||2})},skip:function M(H,L,Q,de){},table:function ie(H,L,Q,de){return function N(H,L){if(!0===L)return!0;if(!H)return!1;const{classes:Q,ids:de}=q(L),ue=(H.class||"").split(" "),Ne=(H.id||"").split(" ");return ue.some(Fe=>Q.includes(Fe))||Ne.some(Fe=>de.includes(Fe))}(H.attribs,Q.options.tables)?_e(H,L,Q,de):A(H,L,Q,de)},unorderedList:function te(H,L,Q,de){const ue=de.itemPrefix||" * ";return W(H,L,Q,de,()=>ue)},wbr:function P(H,L,Q,de){Q.addWordBreakOpportunity()}}},1458:(Pe,C,G)=>{const le=G(4999),q=["I","X","C","M"],F=["V","L","D"],P=(E,k,D)=>[...k];Pe.exports={get:function A(E,k){for(const D of k){if(!E)return;E=E[D]}return E},limitedDepthRecursive:function K(E,k,D=(()=>{})){if(void 0===E){const I=function(...B){return k(I,...B)};return I}return E>=0?function(...I){return k(K(E-1,k,D),...I)}:D},mergeDuplicatesPreferLast:function w(E,k){const D=new Map;for(let I=E.length;I-- >0;){const B=E[I],z=k(B);D.set(z,D.has(z)?le(B,D.get(z),{arrayMerge:P}):B)}return[...D.values()].reverse()},numberToLetterSequence:function Y(E,k="a",D=26){const I=[];do{I.push((E-=1)%D),E=E/D>>0}while(E>0);const B=k.charCodeAt(0);return I.reverse().map(z=>String.fromCharCode(B+z)).join("")},numberToRoman:function M(E){return[...E+""].map(k=>+k).reverse().map((k,D)=>k%5<4?(k<5?"":F[D])+q[D].repeat(k%5):q[D]+(k<5?F[D]:q[D+1])).reverse().join("")},splitClassesAndIds:function ce(E){const k=[],D=[];for(const I of E)I.startsWith(".")?k.push(I.substring(1)):I.startsWith("#")&&D.push(I.substring(1));return{classes:k,ids:D}},trimCharacter:function O(E,k){let D=0,I=E.length;for(;DD&&E[I-1]===k;)--I;return D>0||I{const{hp2Builder:le}=G(5999),ce=G(4999),K=G(3537),Y=G(534),q=G(9542),{BlockTextBuilder:F}=G(7287),M=G(7723),{limitedDepthRecursive:O,mergeDuplicatesPreferLast:A,get:w}=G(1458);G(4563);const P={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeOptions:{isAttributeValue:!1,strict:!1},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block"},{selector:"aside",format:"block"},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block"},{selector:"footer",format:"block"},{selector:"form",format:"block"},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block"},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block"},{selector:"nav",format:"block"},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block"},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:" \t\r\n\f\u200b",wordwrap:80},k=(b,$,N)=>[...$],D=(b,$,N)=>b.some(ie=>"object"==typeof ie)?((b,$,N)=>[...b,...$])(b,$):k(0,$);function I(b={}){(b=ce(P,b,{arrayMerge:k,customMerge:L=>"selectors"===L?D:void 0})).formatters=Object.assign({},M,b.formatters),b.selectors=A(b.selectors,L=>L.selector),function ne(b){const $=b.selectors;if(b.tags){const _e=Object.entries(b.tags).map(([H,L])=>({...L,selector:H||"*"}));$.push(..._e)}function N(_e,H,L){const Q=H.pop();for(const de of H){let ue=_e[de];ue||(ue={},_e[de]=ue),_e=ue}_e[Q]=L}function ie(_e,H,L){if(void 0!==b[_e])for(const Q of $)Q.format===H&&N(Q,["options",L],b[_e])}if(ie("hideLinkHrefIfSameAsText","anchor","hideLinkHrefIfSameAsText"),ie("ignoreHref","anchor","ignoreHref"),ie("linkHrefBaseUrl","anchor","baseUrl"),ie("noAnchorUrl","anchor","noAnchorUrl"),ie("noLinkBrackets","anchor","noLinkBrackets"),ie("linkHrefBaseUrl","image","baseUrl"),ie("unorderedListItemPrefix","unorderedList","itemPrefix"),ie("uppercaseHeadings","heading","uppercase"),ie("uppercaseHeadings","table","uppercaseHeadings"),ie("uppercaseHeadings","dataTable","uppercaseHeadings"),b.ignoreImage)for(const _e of $)"image"===_e.format&&(_e.format="skip");if(b.singleNewLineParagraphs)for(const _e of $)("paragraph"===_e.format||"pre"===_e.format)&&(N(_e,["options","leadingLineBreaks"],1),N(_e,["options","trailingLineBreaks"],1));if(b.baseElement){const _e=b.baseElement;N(b,["baseElements","selectors"],Array.isArray(_e)?_e:[_e])}void 0!==b.returnDomByDefault&&N(b,["baseElements","returnDomByDefault"],b.returnDomByDefault);for(const _e of $)"anchor"===_e.format&&w(_e,["options","noLinkBrackets"])&&N(_e,["options","linkBrackets"],!1)}(b);const $=b.selectors.filter(L=>!L.format);if($.length)throw new Error("Following selectors have no specified format: "+$.map(L=>`\`${L.selector}\``).join(", "));const N=new q.DecisionTree(b.selectors.map(L=>[L.selector,L])).build(le),ie=new q.DecisionTree(b.baseElements.selectors.map((L,Q)=>[L,Q+1])).build(le);function _e(L){return function Ce(b,$,N){const ie=[];return O($.limits.maxDepth,function _e(L,Q){Q=Q.slice(0,$.limits.maxChildNodes);for(const de of Q){if("tag"!==de.type)continue;const ue=N.pick1(de);if(ue>0?ie.push({selectorIndex:ue,element:de}):de.children&&L(de.children),ie.length>=$.limits.maxBaseElements)return}})(b),"occurrence"!==$.baseElements.orderBy&&ie.sort((L,Q)=>L.selectorIndex-Q.selectorIndex),$.baseElements.returnDomByDefault&&0===ie.length?b:ie.map(L=>L.element)}(L,b,ie)}const H=O(b.limits.maxDepth,W,function(L,Q){Q.addInline(b.limits.ellipsis||"")});return function(L){return function B(b,$,N,ie,_e){const H=$.limits.maxInputLength;H&&b&&b.length>H&&(console.warn(`Input length ${b.length} is above allowed limit of ${H}. Truncating without ellipsis.`),b=b.substring(0,H));const L=new Y.DomHandler;new Y.Parser(L,{decodeEntities:!1}).parseComplete(b);const Q=ie(L.dom),de=new F($,N);return _e(Q,de),de.toString()}(L,b,N,_e,H)}}function z(b,$={}){return I($)(b)}function W(b,$,N){if(!$)return;const ie=N.options;$.length>ie.limits.maxChildNodes&&($=$.slice(0,ie.limits.maxChildNodes)).push({data:ie.limits.ellipsis,type:"text"});for(const H of $)switch(H.type){case"text":N.addInline(K.decode(H.data,ie.decodeOptions));break;case"tag":{const L=N.picker.pick1(H);(0,ie.formatters[L.format])(H,b,N,L.options||{});break}}}Pe.exports={compile:I,convert:z,fromString:(b,$={})=>z(b,$),htmlToText:z}},8395:(Pe,C,G)=>{G(4563),Pe.exports={InlineTextBuilder:class le{constructor(K,Y){this.lines=[],this.nextLineWords=[],this.maxLineLength=Y||K.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=K.longWordSplit.wrapCharacters||[],this.forceWrapOnLimit=K.longWordSplit.forceWrapOnLimit||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(K){this.nextLineAvailableChars<=0&&this.startNewLine();const Y=0===this.nextLineWords.length,q=K.length+(Y?0:1);if(q<=this.nextLineAvailableChars)this.nextLineWords.push(K),this.nextLineAvailableChars-=q;else{const[F,...M]=this.splitLongWord(K);Y||this.startNewLine(),this.nextLineWords.push(F),this.nextLineAvailableChars-=F.length;for(const O of M)this.startNewLine(),this.nextLineWords.push(O),this.nextLineAvailableChars-=O.length}}popWord(){const K=this.nextLineWords.pop();return void 0!==K&&(this.nextLineAvailableChars+=K.length+(0===this.nextLineWords.length?0:1)),K}concatWord(K){if(this.wordBreakOpportunity&&K.length>this.nextLineAvailableChars)this.pushWord(K),this.wordBreakOpportunity=!1;else{const Y=this.popWord();this.pushWord(Y?Y.concat(K):K)}}startNewLine(K=1){this.lines.push(this.nextLineWords),K>1&&this.lines.push(...Array.from({length:K-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return 0===this.lines.length&&0===this.nextLineWords.length}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(K=>K.join(" ")).join("\n")}splitLongWord(K){const Y=[];let q=0;for(;K.length>this.maxLineLength;){const F=K.substring(0,this.maxLineLength),M=K.substring(this.maxLineLength),O=F.lastIndexOf(this.wrapCharacters[q]);if(O>-1)K=F.substring(O+1)+M,Y.push(F.substring(0,O+1));else{if(q++,!(qthis.maxLineLength)continue}else K=F+M;break}K=F+M}}return Y.push(K),Y}}}},6237:(Pe,C,G)=>{const{InlineTextBuilder:le}=G(8395);class ce{constructor(A=null){this.next=A}getRoot(){return this.next?this.next:this}}Pe.exports={BlockStackItem:class K extends ce{constructor(A,w=null,P=1,E){super(w),this.leadingLineBreaks=P,this.inlineTextBuilder=new le(A,E),this.rawText="",this.stashedLineBreaks=0,this.isPre=w&&w.isPre}},StackItem:ce,TableCellStackItem:class F extends ce{constructor(A,w=null,P){super(w),this.inlineTextBuilder=new le(A,P),this.rawText="",this.stashedLineBreaks=0,this.isPre=w&&w.isPre}},TableRowStackItem:class q extends ce{constructor(A=null){super(A),this.cells=[],this.isPre=A&&A.isPre}},TableStackItem:class Y extends ce{constructor(A=null){super(A),this.rows=[],this.isPre=A&&A.isPre}},TransformerStackItem:class M extends ce{constructor(A=null,w){super(A),this.transform=w}}}},8186:Pe=>{function C(q,F){return q[F]||(q[F]=[]),q[F]}function G(q,F=0){for(;q[F];)F++;return F}function ce(q,F,M,O){for(let A=0;AA?I.length:A}!function le(q,F){for(let M=0;MA?w:A);const E=[],k=[0];for(let D=0;Dz?Ce.length:z}K(k,D,B.colspan,z+M),B.rendered=!0}I+=B.rowspan}}return E.join("\n")}}},4563:()=>{},7139:(Pe,C,G)=>{G(8395),G(4563),Pe.exports={WhitespaceProcessor:class K{constructor(q){this.whitespaceChars=q.preserveNewlines?q.whitespaceCharacters.replace(/\n/g,""):q.whitespaceCharacters;const F=function ce(Y){return[...Y].map(q=>"\\u"+q.charCodeAt(0).toString(16).padStart(4,"0")).join("")}(this.whitespaceChars);if(this.leadingWhitespaceRe=new RegExp(`^[${F}]`),this.trailingWhitespaceRe=new RegExp(`[${F}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${F}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${F}])`,"g"),q.preserveNewlines){const M=new RegExp(`\\n|[^\\n${F}]+`,"gm");this.shrinkWrapAdd=function(O,A,w=(P=>P)){if(!O)return;const P=A.stashedSpace;let E=!1,k=M.exec(O);if(k)for(E=!0,"\n"===k[0]?A.startNewLine():P||this.testLeadingWhitespace(O)?A.pushWord(w(k[0])):A.concatWord(w(k[0]));null!==(k=M.exec(O));)"\n"===k[0]?A.startNewLine():A.pushWord(w(k[0]));A.stashedSpace=P&&!E||this.testTrailingWhitespace(O)}}else{const M=new RegExp(`[^${F}]+`,"g");this.shrinkWrapAdd=function(O,A,w=(P=>P)){if(!O)return;const P=A.stashedSpace;let E=!1,k=M.exec(O);if(k)for(E=!0,P||this.testLeadingWhitespace(O)?A.pushWord(w(k[0])):A.concatWord(w(k[0]));null!==(k=M.exec(O));)A.pushWord(w(k[0]));A.stashedSpace=P&&!E||this.testTrailingWhitespace(O)}}}testLeadingWhitespace(q){return this.leadingWhitespaceRe.test(q)}testTrailingWhitespace(q){return this.trailingWhitespaceRe.test(q)}testContainsWords(q){return!this.allWhitespaceOrEmptyRe.test(q)}countNewlinesNoWords(q){this.newlineOrNonWhitespaceRe.lastIndex=0;let M,F=0;for(;null!==(M=this.newlineOrNonWhitespaceRe.exec(q));){if("\n"!==M[0])return 0;F++}return F}}}},1126:function(Pe,C,G){"use strict";var W,le=this&&this.__extends||(W=function(te,b){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,N){$.__proto__=N}||function($,N){for(var ie in N)Object.prototype.hasOwnProperty.call(N,ie)&&($[ie]=N[ie])})(te,b)},function(te,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function $(){this.constructor=te}W(te,b),te.prototype=null===b?Object.create(b):($.prototype=b.prototype,new $)}),ce=this&&this.__createBinding||(Object.create?function(W,te,b,$){void 0===$&&($=b),Object.defineProperty(W,$,{enumerable:!0,get:function(){return te[b]}})}:function(W,te,b,$){void 0===$&&($=b),W[$]=te[b]}),K=this&&this.__setModuleDefault||(Object.create?function(W,te){Object.defineProperty(W,"default",{enumerable:!0,value:te})}:function(W,te){W.default=te}),Y=this&&this.__importStar||function(W){if(W&&W.__esModule)return W;var te={};if(null!=W)for(var b in W)"default"!==b&&Object.prototype.hasOwnProperty.call(W,b)&&ce(te,W,b);return K(te,W),te},q=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(C,"__esModule",{value:!0}),C.parseFeed=C.FeedHandler=void 0;var F=q(G(2962)),M=Y(G(2155)),O=G(3380),P=function(W){function te(b,$){return"object"==typeof b&&($=b=void 0),W.call(this,b,$)||this}return le(te,W),te.prototype.onend=function(){var b,$,N=D(ne,this.dom);if(N){var ie={};if("feed"===N.name){var _e=N.children;ie.type="atom",z(ie,"id","id",_e),z(ie,"title","title",_e);var H=B("href",D("link",_e));H&&(ie.link=H),z(ie,"description","subtitle",_e),(L=I("updated",_e))&&(ie.updated=new Date(L)),z(ie,"author","email",_e,!0),ie.items=k("entry",_e).map(function(Q){var de={},ue=Q.children;z(de,"id","id",ue),z(de,"title","title",ue);var Ne=B("href",D("link",ue));Ne&&(de.link=Ne);var Fe=I("summary",ue)||I("content",ue);Fe&&(de.description=Fe);var At=I("updated",ue);return At&&(de.pubDate=new Date(At)),de.media=E(ue),de})}else{var L;_e=null!==($=null===(b=D("channel",N.children))||void 0===b?void 0:b.children)&&void 0!==$?$:[],ie.type=N.name.substr(0,3),ie.id="",z(ie,"title","title",_e),z(ie,"link","link",_e),z(ie,"description","description",_e),(L=I("lastBuildDate",_e))&&(ie.updated=new Date(L)),z(ie,"author","managingEditor",_e,!0),ie.items=k("item",N.children).map(function(ue){var Ne={},Fe=ue.children;z(Ne,"id","guid",Fe),z(Ne,"title","title",Fe),z(Ne,"link","link",Fe),z(Ne,"description","description",Fe);var At=I("pubDate",Fe);return At&&(Ne.pubDate=new Date(At)),Ne.media=E(Fe),Ne})}this.feed=ie,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},te}(F.default);function E(W){return k("media:content",W).map(function(te){var b={medium:te.attribs.medium,isDefault:!!te.attribs.isDefault};return te.attribs.url&&(b.url=te.attribs.url),te.attribs.fileSize&&(b.fileSize=parseInt(te.attribs.fileSize,10)),te.attribs.type&&(b.type=te.attribs.type),te.attribs.expression&&(b.expression=te.attribs.expression),te.attribs.bitrate&&(b.bitrate=parseInt(te.attribs.bitrate,10)),te.attribs.framerate&&(b.framerate=parseInt(te.attribs.framerate,10)),te.attribs.samplingrate&&(b.samplingrate=parseInt(te.attribs.samplingrate,10)),te.attribs.channels&&(b.channels=parseInt(te.attribs.channels,10)),te.attribs.duration&&(b.duration=parseInt(te.attribs.duration,10)),te.attribs.height&&(b.height=parseInt(te.attribs.height,10)),te.attribs.width&&(b.width=parseInt(te.attribs.width,10)),te.attribs.lang&&(b.lang=te.attribs.lang),b})}function k(W,te){return M.getElementsByTagName(W,te,!0)}function D(W,te){return M.getElementsByTagName(W,te,!0,1)[0]}function I(W,te,b){return void 0===b&&(b=!1),M.getText(M.getElementsByTagName(W,te,b,1)).trim()}function B(W,te){return te?te.attribs[W]:null}function z(W,te,b,$,N){void 0===N&&(N=!1);var ie=I(b,$,N);ie&&(W[te]=ie)}function ne(W){return"rss"===W||"feed"===W||"rdf:RDF"===W}C.FeedHandler=P,C.parseFeed=function Ce(W,te){void 0===te&&(te={xmlMode:!0});var b=new P(te);return new O.Parser(b,te).end(W),b.feed}},3380:function(Pe,C,G){"use strict";var le=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(C,"__esModule",{value:!0}),C.Parser=void 0;var ce=le(G(6282)),K=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Y=new Set(["p"]),q={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:Y,h1:Y,h2:Y,h3:Y,h4:Y,h5:Y,h6:Y,select:K,input:K,output:K,button:K,datalist:K,textarea:K,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:Y,article:Y,aside:Y,blockquote:Y,details:Y,div:Y,dl:Y,fieldset:Y,figcaption:Y,figure:Y,footer:Y,form:Y,header:Y,hr:Y,main:Y,nav:Y,ol:Y,pre:Y,section:Y,table:Y,ul:Y,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},F=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),M=new Set(["math","svg"]),O=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),A=/\s|\//,w=function(){function P(E,k){var D,I,B,z,ne;void 0===k&&(k={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=k,this.cbs=E??{},this.lowerCaseTagNames=null!==(D=k.lowerCaseTags)&&void 0!==D?D:!k.xmlMode,this.lowerCaseAttributeNames=null!==(I=k.lowerCaseAttributeNames)&&void 0!==I?I:!k.xmlMode,this.tokenizer=new(null!==(B=k.Tokenizer)&&void 0!==B?B:ce.default)(this.options,this),null===(ne=(z=this.cbs).onparserinit)||void 0===ne||ne.call(z,this)}return P.prototype.updatePosition=function(E){this.startIndex=null===this.endIndex?this.tokenizer.sectionStart<=E?0:this.tokenizer.sectionStart-E:this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},P.prototype.ontext=function(E){var k,D;this.updatePosition(1),this.endIndex--,null===(D=(k=this.cbs).ontext)||void 0===D||D.call(k,E)},P.prototype.onopentagname=function(E){var k,D;if(this.lowerCaseTagNames&&(E=E.toLowerCase()),this.tagname=E,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(q,E))for(var I=void 0;this.stack.length>0&&q[E].has(I=this.stack[this.stack.length-1]);)this.onclosetag(I);(this.options.xmlMode||!F.has(E))&&(this.stack.push(E),M.has(E)?this.foreignContext.push(!0):O.has(E)&&this.foreignContext.push(!1)),null===(D=(k=this.cbs).onopentagname)||void 0===D||D.call(k,E),this.cbs.onopentag&&(this.attribs={})},P.prototype.onopentagend=function(){var E,k;this.updatePosition(1),this.attribs&&(null===(k=(E=this.cbs).onopentag)||void 0===k||k.call(E,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&F.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},P.prototype.onclosetag=function(E){if(this.updatePosition(1),this.lowerCaseTagNames&&(E=E.toLowerCase()),(M.has(E)||O.has(E))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&F.has(E))!this.options.xmlMode&&("br"===E||"p"===E)&&(this.onopentagname(E),this.closeCurrentTag());else{var k=this.stack.lastIndexOf(E);if(-1!==k)if(this.cbs.onclosetag)for(k=this.stack.length-k;k--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=k;else"p"===E&&!this.options.xmlMode&&(this.onopentagname(E),this.closeCurrentTag())}},P.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},P.prototype.closeCurrentTag=function(){var E,k,D=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===D&&(null===(k=(E=this.cbs).onclosetag)||void 0===k||k.call(E,D),this.stack.pop())},P.prototype.onattribname=function(E){this.lowerCaseAttributeNames&&(E=E.toLowerCase()),this.attribname=E},P.prototype.onattribdata=function(E){this.attribvalue+=E},P.prototype.onattribend=function(E){var k,D;null===(D=(k=this.cbs).onattribute)||void 0===D||D.call(k,this.attribname,this.attribvalue,E),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},P.prototype.getInstructionName=function(E){var k=E.search(A),D=k<0?E:E.substr(0,k);return this.lowerCaseTagNames&&(D=D.toLowerCase()),D},P.prototype.ondeclaration=function(E){if(this.cbs.onprocessinginstruction){var k=this.getInstructionName(E);this.cbs.onprocessinginstruction("!"+k,"!"+E)}},P.prototype.onprocessinginstruction=function(E){if(this.cbs.onprocessinginstruction){var k=this.getInstructionName(E);this.cbs.onprocessinginstruction("?"+k,"?"+E)}},P.prototype.oncomment=function(E){var k,D,I,B;this.updatePosition(4),null===(D=(k=this.cbs).oncomment)||void 0===D||D.call(k,E),null===(B=(I=this.cbs).oncommentend)||void 0===B||B.call(I)},P.prototype.oncdata=function(E){var k,D,I,B,z,ne;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(D=(k=this.cbs).oncdatastart)||void 0===D||D.call(k),null===(B=(I=this.cbs).ontext)||void 0===B||B.call(I,E),null===(ne=(z=this.cbs).oncdataend)||void 0===ne||ne.call(z)):this.oncomment("[CDATA["+E+"]]")},P.prototype.onerror=function(E){var k,D;null===(D=(k=this.cbs).onerror)||void 0===D||D.call(k,E)},P.prototype.onend=function(){var E,k;if(this.cbs.onclosetag)for(var D=this.stack.length;D>0;this.cbs.onclosetag(this.stack[--D]));null===(k=(E=this.cbs).onend)||void 0===k||k.call(E)},P.prototype.reset=function(){var E,k,D,I;null===(k=(E=this.cbs).onreset)||void 0===k||k.call(E),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(I=(D=this.cbs).onparserinit)||void 0===I||I.call(D,this)},P.prototype.parseComplete=function(E){this.reset(),this.end(E)},P.prototype.write=function(E){this.tokenizer.write(E)},P.prototype.end=function(E){this.tokenizer.end(E)},P.prototype.pause=function(){this.tokenizer.pause()},P.prototype.resume=function(){this.tokenizer.resume()},P.prototype.parseChunk=function(E){this.write(E)},P.prototype.done=function(E){this.end(E)},P}();C.Parser=w},6282:function(Pe,C,G){"use strict";var le=this&&this.__importDefault||function(ae){return ae&&ae.__esModule?ae:{default:ae}};Object.defineProperty(C,"__esModule",{value:!0});var ce=le(G(672)),K=le(G(9323)),Y=le(G(9591)),q=le(G(2586));function F(ae){return" "===ae||"\n"===ae||"\t"===ae||"\f"===ae||"\r"===ae}function M(ae){return ae>="a"&&ae<="z"||ae>="A"&&ae<="Z"}function O(ae,R,Ge){var qe=ae.toLowerCase();return ae===qe?function(Nt,ln){ln===qe?Nt._state=R:(Nt._state=Ge,Nt._index--)}:function(Nt,ln){ln===qe||ln===ae?Nt._state=R:(Nt._state=Ge,Nt._index--)}}function A(ae,R){var Ge=ae.toLowerCase();return function(qe,Nt){Nt===Ge||Nt===ae?qe._state=R:(qe._state=3,qe._index--)}}var w=O("C",24,16),P=O("D",25,16),E=O("A",26,16),k=O("T",27,16),D=O("A",28,16),I=A("R",35),B=A("I",36),z=A("P",37),ne=A("T",38),Ce=O("R",40,1),W=O("I",41,1),te=O("P",42,1),b=O("T",43,1),$=A("Y",45),N=A("L",46),ie=A("E",47),_e=O("Y",49,1),H=O("L",50,1),L=O("E",51,1),Q=A("I",54),de=A("T",55),ue=A("L",56),Ne=A("E",57),Fe=O("I",58,1),At=O("T",59,1),Ie=O("L",60,1),He=O("E",61,1),re=O("#",63,64),ye=O("X",66,65),be=function(){function ae(R,Ge){var qe;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=Ge,this.xmlMode=!!R?.xmlMode,this.decodeEntities=null===(qe=R?.decodeEntities)||void 0===qe||qe}return ae.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},ae.prototype.write=function(R){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=R,this.parse()},ae.prototype.end=function(R){this.ended&&this.cbs.onerror(Error(".end() after done!")),R&&this.write(R),this.ended=!0,this.running&&this.finish()},ae.prototype.pause=function(){this.running=!1},ae.prototype.resume=function(){this.running=!0,this._indexthis.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&"&"===R&&(1===this.special||4===this.special)&&(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},ae.prototype.isTagStartChar=function(R){return M(R)||this.xmlMode&&!F(R)&&"/"!==R&&">"!==R},ae.prototype.stateBeforeTagName=function(R){"/"===R?this._state=5:"<"===R?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===R||1!==this.special||F(R)?this._state=1:"!"===R?(this._state=15,this.sectionStart=this._index+1):"?"===R?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(R)?(this._state=this.xmlMode||"s"!==R&&"S"!==R?this.xmlMode||"t"!==R&&"T"!==R?3:52:32,this.sectionStart=this._index):this._state=1},ae.prototype.stateInTagName=function(R){("/"===R||">"===R||F(R))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},ae.prototype.stateBeforeClosingTagName=function(R){F(R)||(">"===R?this._state=1:1!==this.special?4===this.special||"s"!==R&&"S"!==R?4!==this.special||"t"!==R&&"T"!==R?(this._state=1,this._index--):this._state=53:this._state=33:this.isTagStartChar(R)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},ae.prototype.stateInClosingTagName=function(R){(">"===R||F(R))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},ae.prototype.stateAfterClosingTagName=function(R){">"===R&&(this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateBeforeAttributeName=function(R){">"===R?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===R?this._state=4:F(R)||(this._state=9,this.sectionStart=this._index)},ae.prototype.stateInSelfClosingTag=function(R){">"===R?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):F(R)||(this._state=8,this._index--)},ae.prototype.stateInAttributeName=function(R){("="===R||"/"===R||">"===R||F(R))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},ae.prototype.stateAfterAttributeName=function(R){"="===R?this._state=11:"/"===R||">"===R?(this.cbs.onattribend(void 0),this._state=8,this._index--):F(R)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},ae.prototype.stateBeforeAttributeValue=function(R){'"'===R?(this._state=12,this.sectionStart=this._index+1):"'"===R?(this._state=13,this.sectionStart=this._index+1):F(R)||(this._state=14,this.sectionStart=this._index,this._index--)},ae.prototype.handleInAttributeValue=function(R,Ge){R===Ge?(this.emitToken("onattribdata"),this.cbs.onattribend(Ge),this._state=8):this.decodeEntities&&"&"===R&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},ae.prototype.stateInAttributeValueDoubleQuotes=function(R){this.handleInAttributeValue(R,'"')},ae.prototype.stateInAttributeValueSingleQuotes=function(R){this.handleInAttributeValue(R,"'")},ae.prototype.stateInAttributeValueNoQuotes=function(R){F(R)||">"===R?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===R&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},ae.prototype.stateBeforeDeclaration=function(R){this._state="["===R?23:"-"===R?18:16},ae.prototype.stateInDeclaration=function(R){">"===R&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateInProcessingInstruction=function(R){">"===R&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateBeforeComment=function(R){"-"===R?(this._state=19,this.sectionStart=this._index+1):this._state=16},ae.prototype.stateInComment=function(R){"-"===R&&(this._state=21)},ae.prototype.stateInSpecialComment=function(R){">"===R&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateAfterComment1=function(R){this._state="-"===R?22:19},ae.prototype.stateAfterComment2=function(R){">"===R?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==R&&(this._state=19)},ae.prototype.stateBeforeCdata6=function(R){"["===R?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},ae.prototype.stateInCdata=function(R){"]"===R&&(this._state=30)},ae.prototype.stateAfterCdata1=function(R){this._state="]"===R?31:29},ae.prototype.stateAfterCdata2=function(R){">"===R?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==R&&(this._state=29)},ae.prototype.stateBeforeSpecialS=function(R){"c"===R||"C"===R?this._state=34:"t"===R||"T"===R?this._state=44:(this._state=3,this._index--)},ae.prototype.stateBeforeSpecialSEnd=function(R){this._state=2!==this.special||"c"!==R&&"C"!==R?3!==this.special||"t"!==R&&"T"!==R?1:48:39},ae.prototype.stateBeforeSpecialLast=function(R,Ge){("/"===R||">"===R||F(R))&&(this.special=Ge),this._state=3,this._index--},ae.prototype.stateAfterSpecialLast=function(R,Ge){">"===R||F(R)?(this.special=1,this._state=6,this.sectionStart=this._index-Ge,this._index--):this._state=1},ae.prototype.parseFixedEntity=function(R){if(void 0===R&&(R=this.xmlMode?q.default:K.default),this.sectionStart+1=2;){var qe=this.buffer.substr(R,Ge);if(Object.prototype.hasOwnProperty.call(Y.default,qe))return this.emitPartial(Y.default[qe]),void(this.sectionStart+=Ge+1);Ge--}},ae.prototype.stateInNamedEntity=function(R){";"===R?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1"9")&&!M(R)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==R&&this.parseFixedEntity(Y.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},ae.prototype.decodeNumericEntity=function(R,Ge,qe){var Nt=this.sectionStart+R;if(Nt!==this._index){var ln=this.buffer.substring(Nt,this._index),hi=parseInt(ln,Ge);this.emitPartial(ce.default(hi)),this.sectionStart=qe?this._index+1:this._index}this._state=this.baseState},ae.prototype.stateInNumericEntity=function(R){";"===R?this.decodeNumericEntity(2,10,!0):(R<"0"||R>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},ae.prototype.stateInHexEntity=function(R){";"===R?this.decodeNumericEntity(3,16,!0):(R<"a"||R>"f")&&(R<"A"||R>"F")&&(R<"0"||R>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},ae.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},ae.prototype.parse=function(){for(;this._index0)throw new Error("RegExp has capture groups: "+Ge+"\nUse (?: \u2026 ) instead");if(!He.lineBreaks&&Ge.test("\n"))throw new Error("Rule should declare lineBreaks: "+Ge);At.push(w(R))}}var Nt=Q&&Q.fallback,ln=q&&!Nt?"ym":"gm",hi=q||Nt?"":"|";return!0===Ne&&(ln+="u"),{regexp:new RegExp(P(At)+hi,ln),groups:Fe,fast:de,error:Q||z}}function W(H,L,Q){var de=H&&(H.push||H.next);if(de&&!Q[de])throw new Error("Missing state '"+de+"' (in token '"+H.defaultType+"' of state '"+L+"')");if(H&&H.pop&&1!=+H.pop)throw new Error("pop must be 1 (in token '"+H.defaultType+"' of state '"+L+"')")}var $=function(H,L){this.startState=L,this.states=H,this.buffer="",this.stack=[],this.reset()};$.prototype.reset=function(H,L){return this.buffer=H||"",this.index=0,this.line=L?L.line:1,this.col=L?L.col:1,this.queuedToken=L?L.queuedToken:null,this.queuedThrow=L?L.queuedThrow:null,this.setState(L?L.state:this.startState),this.stack=L&&L.stack?L.stack.slice():[],this},$.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedThrow:this.queuedThrow}},$.prototype.setState=function(H){if(H&&this.state!==H){this.state=H;var L=this.states[H];this.groups=L.groups,this.error=L.error,this.re=L.regexp,this.fast=L.fast}},$.prototype.popState=function(){this.setState(this.stack.pop())},$.prototype.pushState=function(H){this.stack.push(this.state),this.setState(H)};var N=q?function(H,L){return H.exec(L)}:function(H,L){var Q=H.exec(L);return 0===Q[0].length?null:Q};function ie(){return this.value}if($.prototype._getGroup=function(H){for(var L=this.groups.length,Q=0;Q";throw new Error("Unknown symbol type: "+M)}}return C.highestId=0,C.prototype.toString=function(M){var O=typeof M>"u"?this.symbols.map(F).join(" "):this.symbols.slice(0,M).map(F).join(" ")+" \u25cf "+this.symbols.slice(M).map(F).join(" ");return this.name+" \u2192 "+O},G.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},G.prototype.nextState=function(M){var O=new G(this.rule,this.dot+1,this.reference,this.wantedBy);return O.left=this,O.right=M,O.isComplete&&(O.data=O.build(),O.right=void 0),O},G.prototype.build=function(){var M=[],O=this;do{M.push(O.right.data),O=O.left}while(O.left);return M.reverse(),M},G.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,Y.fail))},le.prototype.process=function(M){for(var O=this.states,A=this.wants,w=this.completed,P=0;P0&&O.push(" ^ "+w+" more lines identical to this"),w=0,O.push(" "+k)),A=k}},Y.prototype.getSymbolDisplay=function(M){return function q(M){var O=typeof M;if("string"===O)return M;if("object"===O){if(M.literal)return JSON.stringify(M.literal);if(M instanceof RegExp)return"character matching "+M;if(M.type)return M.type+" token";if(M.test)return"token matching "+String(M.test);throw new Error("Unknown symbol type: "+M)}}(M)},Y.prototype.buildFirstStateStack=function(M,O){if(-1!==O.indexOf(M))return null;if(0===M.wantedBy.length)return[M];var A=M.wantedBy[0],w=[M].concat(O),P=this.buildFirstStateStack(A,w);return null===P?null:[M].concat(P)},Y.prototype.save=function(){var M=this.table[this.current];return M.lexerState=this.lexerState,M},Y.prototype.restore=function(M){var O=M.index;this.current=O,this.table[O]=M,this.table.splice(O+1),this.lexerState=M.lexerState,this.results=this.finish()},Y.prototype.rewind=function(M){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[M])},Y.prototype.finish=function(){var M=[],O=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(w){w.rule.name===O&&w.dot===w.rule.symbols.length&&0===w.reference&&w.data!==Y.fail&&M.push(w)}),M.map(function(w){return w.data})},{Parser:Y,Grammar:ce,Rule:C}},Pe.exports?Pe.exports=G():this.nearley=G()},5742:(Pe,C,G)=>{"use strict";var ce=G(1557),K=G(4802),Y=G(7448),q=G(7302),F=G(4072),M=function(){function A(w){this._isScalar=!1,w&&(this._subscribe=w)}return A.prototype.lift=function(w){var P=new A;return P.source=this,P.operator=w,P},A.prototype.subscribe=function(w,P,E){var k=this.operator,D=K.toSubscriber(w,P,E);if(D.add(k?k.call(D,this.source):this.source||F.config.useDeprecatedSynchronousErrorHandling&&!D.syncErrorThrowable?this._subscribe(D):this._trySubscribe(D)),F.config.useDeprecatedSynchronousErrorHandling&&D.syncErrorThrowable&&(D.syncErrorThrowable=!1,D.syncErrorThrown))throw D.syncErrorValue;return D},A.prototype._trySubscribe=function(w){try{return this._subscribe(w)}catch(P){F.config.useDeprecatedSynchronousErrorHandling&&(w.syncErrorThrown=!0,w.syncErrorValue=P),ce.canReportError(w)?w.error(P):console.warn(P)}},A.prototype.forEach=function(w,P){var E=this;return new(P=O(P))(function(k,D){var I;I=E.subscribe(function(B){try{w(B)}catch(z){D(z),I&&I.unsubscribe()}},D,k)})},A.prototype._subscribe=function(w){var P=this.source;return P&&P.subscribe(w)},A.prototype[Y.observable]=function(){return this},A.prototype.pipe=function(){for(var w=[],P=0;P{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(4072),ce=G(2422);C.empty={closed:!0,next:function(K){},error:function(K){if(le.config.useDeprecatedSynchronousErrorHandling)throw K;ce.hostReportError(K)},complete:function(){}}},3281:function(Pe,C,G){"use strict";var w,le=this&&this.__extends||(w=function(P,E){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,D){k.__proto__=D}||function(k,D){for(var I in D)D.hasOwnProperty(I)&&(k[I]=D[I])})(P,E)},function(P,E){function k(){this.constructor=P}w(P,E),P.prototype=null===E?Object.create(E):(k.prototype=E.prototype,new k)});Object.defineProperty(C,"__esModule",{value:!0});var ce=G(9607),K=G(7350),Y=G(6052),q=G(2858),F=G(4072),M=G(2422),O=function(w){function P(E,k,D){var I=w.call(this)||this;switch(I.syncErrorValue=null,I.syncErrorThrown=!1,I.syncErrorThrowable=!1,I.isStopped=!1,arguments.length){case 0:I.destination=K.empty;break;case 1:if(!E){I.destination=K.empty;break}if("object"==typeof E){E instanceof P?(I.syncErrorThrowable=E.syncErrorThrowable,I.destination=E,E.add(I)):(I.syncErrorThrowable=!0,I.destination=new A(I,E));break}default:I.syncErrorThrowable=!0,I.destination=new A(I,E,k,D)}return I}return le(P,w),P.prototype[q.rxSubscriber]=function(){return this},P.create=function(E,k,D){var I=new P(E,k,D);return I.syncErrorThrowable=!1,I},P.prototype.next=function(E){this.isStopped||this._next(E)},P.prototype.error=function(E){this.isStopped||(this.isStopped=!0,this._error(E))},P.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},P.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,w.prototype.unsubscribe.call(this))},P.prototype._next=function(E){this.destination.next(E)},P.prototype._error=function(E){this.destination.error(E),this.unsubscribe()},P.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},P.prototype._unsubscribeAndRecycle=function(){var E=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=E,this},P}(Y.Subscription);C.Subscriber=O;var A=function(w){function P(E,k,D,I){var B=w.call(this)||this;B._parentSubscriber=E;var z,ne=B;return ce.isFunction(k)?z=k:k&&(z=k.next,D=k.error,I=k.complete,k!==K.empty&&(ne=Object.create(k),ce.isFunction(ne.unsubscribe)&&B.add(ne.unsubscribe.bind(ne)),ne.unsubscribe=B.unsubscribe.bind(B))),B._context=ne,B._next=z,B._error=D,B._complete=I,B}return le(P,w),P.prototype.next=function(E){if(!this.isStopped&&this._next){var k=this._parentSubscriber;F.config.useDeprecatedSynchronousErrorHandling&&k.syncErrorThrowable?this.__tryOrSetError(k,this._next,E)&&this.unsubscribe():this.__tryOrUnsub(this._next,E)}},P.prototype.error=function(E){if(!this.isStopped){var k=this._parentSubscriber,D=F.config.useDeprecatedSynchronousErrorHandling;if(this._error)D&&k.syncErrorThrowable?(this.__tryOrSetError(k,this._error,E),this.unsubscribe()):(this.__tryOrUnsub(this._error,E),this.unsubscribe());else if(k.syncErrorThrowable)D?(k.syncErrorValue=E,k.syncErrorThrown=!0):M.hostReportError(E),this.unsubscribe();else{if(this.unsubscribe(),D)throw E;M.hostReportError(E)}}},P.prototype.complete=function(){var E=this;if(!this.isStopped){var k=this._parentSubscriber;if(this._complete){var D=function(){return E._complete.call(E._context)};F.config.useDeprecatedSynchronousErrorHandling&&k.syncErrorThrowable?(this.__tryOrSetError(k,D),this.unsubscribe()):(this.__tryOrUnsub(D),this.unsubscribe())}else this.unsubscribe()}},P.prototype.__tryOrUnsub=function(E,k){try{E.call(this._context,k)}catch(D){if(this.unsubscribe(),F.config.useDeprecatedSynchronousErrorHandling)throw D;M.hostReportError(D)}},P.prototype.__tryOrSetError=function(E,k,D){if(!F.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{k.call(this._context,D)}catch(I){return F.config.useDeprecatedSynchronousErrorHandling?(E.syncErrorValue=I,E.syncErrorThrown=!0,!0):(M.hostReportError(I),!0)}return!1},P.prototype._unsubscribe=function(){var E=this._parentSubscriber;this._context=null,this._parentSubscriber=null,E.unsubscribe()},P}(O);C.SafeSubscriber=A},6052:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(5019),ce=G(2556),K=G(9607),Y=G(2142),q=function(){function M(O){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,O&&(this._ctorUnsubscribe=!0,this._unsubscribe=O)}return M.prototype.unsubscribe=function(){var O;if(!this.closed){var A=this,w=A._parentOrParents,P=A._ctorUnsubscribe,E=A._unsubscribe,k=A._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,w instanceof M)w.remove(this);else if(null!==w)for(var D=0;D{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var G=!1;C.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(le){if(le){var ce=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+ce.stack)}else G&&console.log("RxJS: Back to a better error behavior. Thank you. <3");G=le},get useDeprecatedSynchronousErrorHandling(){return G}}},7448:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},2858:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),C.$$rxSubscriber=C.rxSubscriber},2142:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var G=function(){function le(ce){return Error.call(this),this.message=ce?ce.length+" errors occurred during unsubscription:\n"+ce.map(function(K,Y){return Y+1+") "+K.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=ce,this}return le.prototype=Object.create(Error.prototype),le}();C.UnsubscriptionError=G},1557:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(3281);C.canReportError=function ce(K){for(;K;){var F=K.destination;if(K.closed||K.isStopped)return!1;K=F&&F instanceof le.Subscriber?F:null}return!0}},2422:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.hostReportError=function G(le){setTimeout(function(){throw le},0)}},6610:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.identity=function G(le){return le}},5019:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.isArray=Array.isArray||function(G){return G&&"number"==typeof G.length}},9607:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.isFunction=function G(le){return"function"==typeof le}},2556:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.isObject=function G(le){return null!==le&&"object"==typeof le}},7302:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(6610);function K(Y){return 0===Y.length?le.identity:1===Y.length?Y[0]:function(F){return Y.reduce(function(M,O){return O(M)},F)}}C.pipe=function ce(){for(var Y=[],q=0;q{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(3281),ce=G(2858),K=G(7350);C.toSubscriber=function Y(q,F,M){if(q){if(q instanceof le.Subscriber)return q;if(q[ce.rxSubscriber])return q[ce.rxSubscriber]()}return q||F||M?new le.Subscriber(q,F,M):new le.Subscriber(K.empty)}},5999:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(2962),ce=G(9542);function Y(I){const B=I.map(q);return(z,...ne)=>k(B,Ce=>Ce(z,...ne))}function q(I){switch(I.type){case"terminal":{const B=[I.valueContainer];return(z,...ne)=>B}case"tagName":return function F(I){const B={};for(const z of I.variants)B[z.value]=Y(z.cont);return(z,...ne)=>{const Ce=B[z.name];return Ce?Ce(z,...ne):[]}}(I);case"attrValue":return function O(I){const B=[];for(const ne of I.matchers){const Ce=ne.predicate,W=Y(ne.cont);B.push((te,b,...$)=>Ce(te)?W(b,...$):[])}const z=I.name;return(ne,...Ce)=>{const W=ne.attribs[z];return W||""===W?k(B,te=>te(W,ne,...Ce)):[]}}(I);case"attrPresence":return function M(I){const B=I.name,z=Y(I.cont);return(ne,...Ce)=>Object.prototype.hasOwnProperty.call(ne.attribs,B)?z(ne,...Ce):[]}(I);case"pushElement":return function A(I){const B=Y(I.cont),z="+"===I.combinator?w:P;return(ne,...Ce)=>{const W=z(ne);return null===W?[]:B(W,ne,...Ce)}}(I);case"popElement":return function E(I){const B=Y(I.cont);return(z,ne,...Ce)=>B(ne,...Ce)}(I)}}const w=I=>{const B=I.prev;return null===B?null:le.isTag(B)?B:w(B)},P=I=>{const B=I.parent;return B&&le.isTag(B)?B:null};function k(I,B){return[].concat(...function D(I,B){const z=I.length,ne=new Array(z);for(let Ce=0;Ce{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(4847);function K(N){if(N&&N.__esModule)return N;var ie=Object.create(null);return N&&Object.keys(N).forEach(function(_e){if("default"!==_e){var H=Object.getOwnPropertyDescriptor(N,_e);Object.defineProperty(ie,_e,H.get?H:{enumerable:!0,get:function(){return N[_e]}})}}),ie.default=N,Object.freeze(ie)}function q(N){return N[0]}const F=K(G(6456)).compile({ws:{match:/[ \t\r\n\f]+/,lineBreaks:!0},idn:{match:/[a-zA-Z_-][a-zA-Z0-9_-]*/},hashToken:{match:/#[a-zA-Z0-9_-]+/,value:N=>N.slice(1)},str1:{match:/'(?:\\['\\]|[^\n'\\])*'/,value:N=>N.slice(1,-1)},str2:{match:/"(?:\\["\\]|[^\n"\\])*"/,value:N=>N.slice(1,-1)},asterisk:"*",fullstop:".",comma:",",lbr:"[",rbr:"]",eq:"=",gt:">",vbar:"|",plus:"+",tilde:"~",caret:"^",dollar:"$"});function M(N){return N[0].value}function O(N){return N[1]}function A([N,ie,_e],[H,L,Q]){return[N+H,ie+L,_e+Q]}const w={Lexer:F,ParserRules:[{name:"main",symbols:["_","listSelector","_"],postprocess:O},{name:"mainNoList",symbols:["_","complexSelector","_"],postprocess:O},{name:"listSelector",symbols:["complexSelector"],postprocess:([N])=>({type:"list",list:[N]})},{name:"listSelector",symbols:["listSelector","_",F.has("comma")?{type:"comma"}:comma,"_","complexSelector"],postprocess:([N,,,,ie])=>({type:"list",list:[...N.list,ie]})},{name:"complexSelector",symbols:["compoundSelector"],postprocess:q},{name:"complexSelector",symbols:["complexSelector","__","compoundSelector"],postprocess:([N,,ie])=>({type:"compound",list:[...ie.list,{type:"combinator",combinator:" ",left:N,specificity:N.specificity}],specificity:A(N.specificity,ie.specificity)})},{name:"complexSelector",symbols:["complexSelector","_","combinator","_","compoundSelector"],postprocess:([N,,ie,,_e])=>({type:"compound",list:[..._e.list,{type:"combinator",combinator:ie,left:N,specificity:N.specificity}],specificity:A(N.specificity,_e.specificity)})},{name:"combinator",symbols:[F.has("gt")?{type:"gt"}:gt],postprocess:()=>">"},{name:"combinator",symbols:[F.has("plus")?{type:"plus"}:plus],postprocess:()=>"+"},{name:"combinator",symbols:[F.has("tilde")?{type:"tilde"}:tilde],postprocess:()=>"~"},{name:"combinator",symbols:[F.has("vbar")?{type:"vbar"}:vbar,F.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>"||"},{name:"compoundSelector",symbols:["typeSelector"],postprocess:([N])=>({type:"compound",list:[N],specificity:N.specificity})},{name:"compoundSelector",symbols:["subclassSelector"],postprocess:([N])=>({type:"compound",list:[N],specificity:N.specificity})},{name:"compoundSelector",symbols:["compoundSelector","subclassSelector"],postprocess:([N,ie])=>({type:"compound",list:[...N.list,ie],specificity:A(N.specificity,ie.specificity)})},{name:"subclassSelector",symbols:["idSelector"],postprocess:q},{name:"subclassSelector",symbols:["classSelector"],postprocess:q},{name:"subclassSelector",symbols:["attrSelector"],postprocess:q},{name:"attrSelector",symbols:["attrPresenceSelector"],postprocess:q},{name:"attrSelector",symbols:["attrValueSelector"],postprocess:q},{name:"typeSelector",symbols:["tagSelector"],postprocess:q},{name:"typeSelector",symbols:["uniSelector"],postprocess:q},{name:"attrPresenceSelector",symbols:[F.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_",F.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,N])=>({type:"attrPresence",name:N.name,namespace:N.namespace,specificity:[0,1,0]})},{name:"attrValueSelector",symbols:[F.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_","attrMatcher","_","attrValue","_",F.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,N,,ie,,_e])=>({type:"attrValue",name:N.name,namespace:N.namespace,matcher:ie,value:_e.value,modifier:_e.modifier,specificity:[0,1,0]})},{name:"attrMatcher",symbols:[F.has("eq")?{type:"eq"}:eq],postprocess:()=>"="},{name:"attrMatcher",symbols:[F.has("tilde")?{type:"tilde"}:tilde,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"~="},{name:"attrMatcher",symbols:[F.has("vbar")?{type:"vbar"}:vbar,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"|="},{name:"attrMatcher",symbols:[F.has("caret")?{type:"caret"}:caret,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"^="},{name:"attrMatcher",symbols:[F.has("dollar")?{type:"dollar"}:dollar,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"$="},{name:"attrMatcher",symbols:[F.has("asterisk")?{type:"asterisk"}:asterisk,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"*="},{name:"attrValue",symbols:["str"],postprocess:([N])=>({value:N,modifier:null})},{name:"attrValue",symbols:["idn"],postprocess:([N])=>({value:N,modifier:null})},{name:"attrValue",symbols:["str","_","attrModifier"],postprocess:([N,,ie])=>({value:N,modifier:ie})},{name:"attrValue",symbols:["idn","__","attrModifier"],postprocess:([N,,ie])=>({value:N,modifier:ie})},{name:"attrModifier",symbols:[{literal:"i"}],postprocess:()=>"i"},{name:"attrModifier",symbols:[{literal:"I"}],postprocess:()=>"i"},{name:"attrModifier",symbols:[{literal:"s"}],postprocess:()=>"s"},{name:"attrModifier",symbols:[{literal:"S"}],postprocess:()=>"s"},{name:"idSelector",symbols:[F.has("hashToken")?{type:"hashToken"}:hashToken],postprocess:([{value:N}])=>({type:"id",name:N,specificity:[1,0,0]})},{name:"classSelector",symbols:[F.has("fullstop")?{type:"fullstop"}:fullstop,"idn"],postprocess:([,N])=>({type:"class",name:N,specificity:[0,1,0]})},{name:"tagSelector",symbols:["wqname"],postprocess:([N])=>({type:"tag",name:N.name,namespace:N.namespace,specificity:[0,0,1]})},{name:"uniSelector",symbols:[F.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:()=>({type:"universal",namespace:null,specificity:[0,0,0]})},{name:"uniSelector",symbols:["ns",F.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:([N])=>({type:"universal",namespace:N,specificity:[0,0,0]})},{name:"wqname",symbols:["idn"],postprocess:([N])=>({name:N,namespace:null})},{name:"wqname",symbols:["ns","idn"],postprocess:([N,ie])=>({name:ie,namespace:N})},{name:"ns",symbols:[F.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>""},{name:"ns",symbols:["idn",F.has("vbar")?{type:"vbar"}:vbar],postprocess:q},{name:"str",symbols:[F.has("str1")?{type:"str1"}:str1],postprocess:M},{name:"str",symbols:[F.has("str2")?{type:"str2"}:str2],postprocess:M},{name:"idn",symbols:[F.has("idn")?{type:"idn"}:idn],postprocess:M},{name:"_$ebnf$1",symbols:[F.has("ws")?{type:"ws"}:ws],postprocess:q},{name:"_$ebnf$1",symbols:[],postprocess:()=>null},{name:"_",symbols:["_$ebnf$1"],postprocess:()=>null},{name:"__",symbols:[F.has("ws")?{type:"ws"}:ws],postprocess:()=>null}],ParserStart:"main"};var P=Object.freeze({__proto__:null});const E={...w,ParserStart:"mainNoList"};function I(N,ie){const _e=new le.Parser(le.Grammar.fromCompiled(N));if(_e.feed(ie),0===_e.results.length)throw new Error("Failed to parse - input string might be incomplete.");return _e.results[0]}function B(N){if(!N.type)throw new Error("This is not an AST node.");switch(N.type){case"universal":return z(N.namespace)+"*";case"tag":return z(N.namespace)+N.name;case"class":return"."+N.name;case"id":return"#"+N.name;case"attrPresence":return`[${z(N.namespace)}${N.name}]`;case"attrValue":return`[${z(N.namespace)}${N.name}${N.matcher}${function ne(N){return-1===N.indexOf('"')?`"${N}"`:-1===N.indexOf("'")?`'${N}'`:`"${N.replace('"','\\"')}"`}(N.value)}${N.modifier?N.modifier:""}]`;case"combinator":return B(N.left)+N.combinator;case"compound":return N.list.reduce((ie,_e)=>"combinator"===_e.type?B(_e)+ie:ie+B(_e),"");case"list":return N.list.map(B).join(",")}}function z(N){return N||""===N?N+"|":""}function W(N){switch(N.type){case"universal":case"tag":return[1];case"id":return[2];case"class":return[3,N.name];case"attrPresence":return[4,B(N)];case"attrValue":return[5,B(N)];case"combinator":return[15,B(N)]}}function $(N,ie){if(!Array.isArray(N)||!Array.isArray(ie))throw new Error("Arguments must be arrays.");const _e=N.length$(W(ie),W(_e)));break;case"combinator":Ce(N.left);break;case"list":N.list.forEach(Ce),N.list.sort((ie,_e)=>B(ie){"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(2512);function ce(re){if(re&&re.__esModule)return re;var ye=Object.create(null);return re&&Object.keys(re).forEach(function(be){if("default"!==be){var ae=Object.getOwnPropertyDescriptor(re,be);Object.defineProperty(ye,be,ae.get?ae:{enumerable:!0,get:function(){return re[be]}})}}),ye.default=re,Object.freeze(ye)}var K=ce(le),Y=Object.freeze({__proto__:null}),q=Object.freeze({__proto__:null});const M=[["\u251c\u2500","\u2502 "],["\u2514\u2500"," "]],O=[["\u2520\u2500","\u2503 "],["\u2516\u2500"," "]],A=[["\u255f\u2500","\u2551 "],["\u2559\u2500"," "]];function w(re,ye=O){return function E(re,ye){return ye.map((be,ae,{length:R})=>function k(re,ye,be=!0){const ae=re[be?1:0];return ae[0]+ye.split("\n").join("\n"+ae[1])}(re,be,ae===R-1)).join("\n")}(ye,re.map(be=>function P(re){switch(re.type){case"terminal":{const ye=re.valueContainer;return`\u25c1 #${ye.index} ${JSON.stringify(ye.specificity)} ${ye.value}`}case"tagName":return`\u25fb Tag name\n${w(re.variants,A)}`;case"attrValue":return`\u25a3 Attr value: ${re.name}\n${w(re.matchers,A)}`;case"attrPresence":return`\u25e8 Attr presence: ${re.name}\n${w(re.cont)}`;case"pushElement":return`\u25c9 Push element: ${re.combinator}\n${w(re.cont,M)}`;case"popElement":return`\u25cc Pop element\n${w(re.cont,M)}`;case"variant":return`\u25c7 = ${re.value}\n${w(re.cont)}`;case"matcher":return`\u25c8 ${re.matcher} "${re.value}"${re.modifier||""}\n${w(re.cont)}`}}(be)))}var D=Object.freeze({__proto__:null,treeify:re=>"\u25bd\n"+w(re,M)});function z(re){return ne(re),K.normalize(re),re}function ne(re){const ye=[];re.list.forEach(be=>{switch(be.type){case"class":ye.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:be.specificity,type:"attrValue",value:be.name});break;case"id":ye.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:be.specificity,type:"attrValue",value:be.name});break;case"combinator":ne(be.left),ye.push(be);break;case"universal":break;default:ye.push(be)}}),re.list=ye}function Ce(re){const ye=[];for(;re.length;){const be=ue(re,qe=>!0,b),{matches:ae,nonmatches:R,empty:Ge}=te(re,be);re=R,ae.length&&ye.push($(be,ae)),Ge.length&&ye.push(...W(Ge))}return ye}function W(re){const ye=[];for(const be of re){const ae=be.terminal;if("terminal"===ae.type)ye.push(ae);else{const{matches:R,rest:Ge}=Ne(ae.cont,qe=>"terminal"===qe.type);R.forEach(qe=>ye.push(qe)),Ge.length&&(ae.cont=Ge,ye.push(ae))}}return ye}function te(re,ye){const be=[],ae=[],R=[];for(const Ge of re){const qe=Ge.ast.list;qe.length?(qe.some(ln=>b(ln)===ye)?be:ae).push(Ge):R.push(Ge)}return{matches:be,nonmatches:ae,empty:R}}function b(re){switch(re.type){case"attrPresence":return`attrPresence ${re.name}`;case"attrValue":return`attrValue ${re.name}`;case"combinator":return`combinator ${re.combinator}`;default:return re.type}}function $(re,ye){if("tag"===re)return function N(re){const ye=Q(re,ae=>"tag"===ae.type,ae=>ae.name);return{type:"tagName",variants:Object.entries(ye).map(([ae,R])=>({type:"variant",value:ae,cont:Ce(R.items)}))}}(ye);if(re.startsWith("attrValue "))return function _e(re,ye){const be=Q(ye,R=>"attrValue"===R.type&&R.name===re,R=>`${R.matcher} ${R.modifier||""} ${R.value}`),ae=[];for(const R of Object.values(be)){const Ge=R.oneSimpleSelector,qe=H(Ge),Nt=Ce(R.items);ae.push({type:"matcher",matcher:Ge.matcher,modifier:Ge.modifier,value:Ge.value,predicate:qe,cont:Nt})}return{type:"attrValue",name:re,matchers:ae}}(re.substring(10),ye);if(re.startsWith("attrPresence "))return function ie(re,ye){for(const be of ye)de(be,ae=>"attrPresence"===ae.type&&ae.name===re);return{type:"attrPresence",name:re,cont:Ce(ye)}}(re.substring(13),ye);if("combinator >"===re)return L(">",ye);if("combinator +"===re)return L("+",ye);throw new Error(`Unsupported selector kind: ${re}`)}function H(re){if("i"===re.modifier){const ye=re.value.toLowerCase();switch(re.matcher){case"=":return be=>ye===be.toLowerCase();case"~=":return be=>be.toLowerCase().split(/[ \t]+/).includes(ye);case"^=":return be=>be.toLowerCase().startsWith(ye);case"$=":return be=>be.toLowerCase().endsWith(ye);case"*=":return be=>be.toLowerCase().includes(ye);case"|=":return be=>{const ae=be.toLowerCase();return ye===ae||ae.startsWith(ye)&&"-"===ae[ye.length]}}}else{const ye=re.value;switch(re.matcher){case"=":return be=>ye===be;case"~=":return be=>be.split(/[ \t]+/).includes(ye);case"^=":return be=>be.startsWith(ye);case"$=":return be=>be.endsWith(ye);case"*=":return be=>be.includes(ye);case"|=":return be=>ye===be||be.startsWith(ye)&&"-"===be[ye.length]}}}function L(re,ye){const be=Q(ye,R=>"combinator"===R.type&&R.combinator===re,R=>K.serialize(R.left)),ae=[];for(const R of Object.values(be)){const Ge=Ce(R.items);ae.push({ast:R.oneSimpleSelector.left,terminal:{type:"popElement",cont:Ge}})}return{type:"pushElement",combinator:re,cont:Ce(ae)}}function Q(re,ye,be){const ae={};for(;re.length;){const R=ue(re,ye,be),Ge=Hi=>ye(Hi)&&be(Hi)===R,qe=Hi=>Hi.ast.list.some(Ge),{matches:Nt,rest:ln}=Fe(re,qe);let hi=null;for(const Hi of Nt){const Vs=de(Hi,Ge);hi||(hi=Vs)}if(null==hi)throw new Error("No simple selector is found.");ae[R]={oneSimpleSelector:hi,items:Nt},re=ln}return ae}function de(re,ye){const be=re.ast.list,ae=new Array(be.length);let R=-1;for(let qe=be.length;qe-- >0;)ye(be[qe])&&(ae[qe]=!0,R=qe);if(-1==R)throw new Error("Couldn't find the required simple selector.");const Ge=be[R];return re.ast.list=be.filter((qe,Nt)=>!ae[Nt]),Ge}function ue(re,ye,be){const ae={};for(const qe of re){const Nt={};for(const ln of qe.ast.list.filter(ye))Nt[be(ln)]=!0;for(const ln of Object.keys(Nt))ae[ln]?ae[ln]++:ae[ln]=1}let R="",Ge=0;for(const qe of Object.entries(ae))qe[1]>Ge&&(R=qe[0],Ge=qe[1]);return R}function Ne(re,ye){const be=[],ae=[];for(const R of re)ye(R)?be.push(R):ae.push(R);return{matches:be,rest:ae}}function Fe(re,ye){const be=[],ae=[];for(const R of re)ye(R)?be.push(R):ae.push(R);return{matches:be,rest:ae}}function Ie(re,ye){const be=le.compareSpecificity(ye.specificity,re.specificity);return be>0||0===be&&ye.index0||0===be&&ye.index>re.index}C.Ast=Y,C.DecisionTree=class I{constructor(ye){this.branches=Ce(function B(re){const ye=re.length,be=new Array(ye);for(let ae=0;ae{"use strict";Pe.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},9323:Pe=>{"use strict";Pe.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Abreve":"\u0102","abreve":"\u0103","ac":"\u223e","acd":"\u223f","acE":"\u223e\u0333","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","Acy":"\u0410","acy":"\u0430","AElig":"\xc6","aelig":"\xe6","af":"\u2061","Afr":"\u{1d504}","afr":"\u{1d51e}","Agrave":"\xc0","agrave":"\xe0","alefsym":"\u2135","aleph":"\u2135","Alpha":"\u0391","alpha":"\u03b1","Amacr":"\u0100","amacr":"\u0101","amalg":"\u2a3f","amp":"&","AMP":"&","andand":"\u2a55","And":"\u2a53","and":"\u2227","andd":"\u2a5c","andslope":"\u2a58","andv":"\u2a5a","ang":"\u2220","ange":"\u29a4","angle":"\u2220","angmsdaa":"\u29a8","angmsdab":"\u29a9","angmsdac":"\u29aa","angmsdad":"\u29ab","angmsdae":"\u29ac","angmsdaf":"\u29ad","angmsdag":"\u29ae","angmsdah":"\u29af","angmsd":"\u2221","angrt":"\u221f","angrtvb":"\u22be","angrtvbd":"\u299d","angsph":"\u2222","angst":"\xc5","angzarr":"\u237c","Aogon":"\u0104","aogon":"\u0105","Aopf":"\u{1d538}","aopf":"\u{1d552}","apacir":"\u2a6f","ap":"\u2248","apE":"\u2a70","ape":"\u224a","apid":"\u224b","apos":"\'","ApplyFunction":"\u2061","approx":"\u2248","approxeq":"\u224a","Aring":"\xc5","aring":"\xe5","Ascr":"\u{1d49c}","ascr":"\u{1d4b6}","Assign":"\u2254","ast":"*","asymp":"\u2248","asympeq":"\u224d","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","awconint":"\u2233","awint":"\u2a11","backcong":"\u224c","backepsilon":"\u03f6","backprime":"\u2035","backsim":"\u223d","backsimeq":"\u22cd","Backslash":"\u2216","Barv":"\u2ae7","barvee":"\u22bd","barwed":"\u2305","Barwed":"\u2306","barwedge":"\u2305","bbrk":"\u23b5","bbrktbrk":"\u23b6","bcong":"\u224c","Bcy":"\u0411","bcy":"\u0431","bdquo":"\u201e","becaus":"\u2235","because":"\u2235","Because":"\u2235","bemptyv":"\u29b0","bepsi":"\u03f6","bernou":"\u212c","Bernoullis":"\u212c","Beta":"\u0392","beta":"\u03b2","beth":"\u2136","between":"\u226c","Bfr":"\u{1d505}","bfr":"\u{1d51f}","bigcap":"\u22c2","bigcirc":"\u25ef","bigcup":"\u22c3","bigodot":"\u2a00","bigoplus":"\u2a01","bigotimes":"\u2a02","bigsqcup":"\u2a06","bigstar":"\u2605","bigtriangledown":"\u25bd","bigtriangleup":"\u25b3","biguplus":"\u2a04","bigvee":"\u22c1","bigwedge":"\u22c0","bkarow":"\u290d","blacklozenge":"\u29eb","blacksquare":"\u25aa","blacktriangle":"\u25b4","blacktriangledown":"\u25be","blacktriangleleft":"\u25c2","blacktriangleright":"\u25b8","blank":"\u2423","blk12":"\u2592","blk14":"\u2591","blk34":"\u2593","block":"\u2588","bne":"=\u20e5","bnequiv":"\u2261\u20e5","bNot":"\u2aed","bnot":"\u2310","Bopf":"\u{1d539}","bopf":"\u{1d553}","bot":"\u22a5","bottom":"\u22a5","bowtie":"\u22c8","boxbox":"\u29c9","boxdl":"\u2510","boxdL":"\u2555","boxDl":"\u2556","boxDL":"\u2557","boxdr":"\u250c","boxdR":"\u2552","boxDr":"\u2553","boxDR":"\u2554","boxh":"\u2500","boxH":"\u2550","boxhd":"\u252c","boxHd":"\u2564","boxhD":"\u2565","boxHD":"\u2566","boxhu":"\u2534","boxHu":"\u2567","boxhU":"\u2568","boxHU":"\u2569","boxminus":"\u229f","boxplus":"\u229e","boxtimes":"\u22a0","boxul":"\u2518","boxuL":"\u255b","boxUl":"\u255c","boxUL":"\u255d","boxur":"\u2514","boxuR":"\u2558","boxUr":"\u2559","boxUR":"\u255a","boxv":"\u2502","boxV":"\u2551","boxvh":"\u253c","boxvH":"\u256a","boxVh":"\u256b","boxVH":"\u256c","boxvl":"\u2524","boxvL":"\u2561","boxVl":"\u2562","boxVL":"\u2563","boxvr":"\u251c","boxvR":"\u255e","boxVr":"\u255f","boxVR":"\u2560","bprime":"\u2035","breve":"\u02d8","Breve":"\u02d8","brvbar":"\xa6","bscr":"\u{1d4b7}","Bscr":"\u212c","bsemi":"\u204f","bsim":"\u223d","bsime":"\u22cd","bsolb":"\u29c5","bsol":"\\\\","bsolhsub":"\u27c8","bull":"\u2022","bullet":"\u2022","bump":"\u224e","bumpE":"\u2aae","bumpe":"\u224f","Bumpeq":"\u224e","bumpeq":"\u224f","Cacute":"\u0106","cacute":"\u0107","capand":"\u2a44","capbrcup":"\u2a49","capcap":"\u2a4b","cap":"\u2229","Cap":"\u22d2","capcup":"\u2a47","capdot":"\u2a40","CapitalDifferentialD":"\u2145","caps":"\u2229\ufe00","caret":"\u2041","caron":"\u02c7","Cayleys":"\u212d","ccaps":"\u2a4d","Ccaron":"\u010c","ccaron":"\u010d","Ccedil":"\xc7","ccedil":"\xe7","Ccirc":"\u0108","ccirc":"\u0109","Cconint":"\u2230","ccups":"\u2a4c","ccupssm":"\u2a50","Cdot":"\u010a","cdot":"\u010b","cedil":"\xb8","Cedilla":"\xb8","cemptyv":"\u29b2","cent":"\xa2","centerdot":"\xb7","CenterDot":"\xb7","cfr":"\u{1d520}","Cfr":"\u212d","CHcy":"\u0427","chcy":"\u0447","check":"\u2713","checkmark":"\u2713","Chi":"\u03a7","chi":"\u03c7","circ":"\u02c6","circeq":"\u2257","circlearrowleft":"\u21ba","circlearrowright":"\u21bb","circledast":"\u229b","circledcirc":"\u229a","circleddash":"\u229d","CircleDot":"\u2299","circledR":"\xae","circledS":"\u24c8","CircleMinus":"\u2296","CirclePlus":"\u2295","CircleTimes":"\u2297","cir":"\u25cb","cirE":"\u29c3","cire":"\u2257","cirfnint":"\u2a10","cirmid":"\u2aef","cirscir":"\u29c2","ClockwiseContourIntegral":"\u2232","CloseCurlyDoubleQuote":"\u201d","CloseCurlyQuote":"\u2019","clubs":"\u2663","clubsuit":"\u2663","colon":":","Colon":"\u2237","Colone":"\u2a74","colone":"\u2254","coloneq":"\u2254","comma":",","commat":"@","comp":"\u2201","compfn":"\u2218","complement":"\u2201","complexes":"\u2102","cong":"\u2245","congdot":"\u2a6d","Congruent":"\u2261","conint":"\u222e","Conint":"\u222f","ContourIntegral":"\u222e","copf":"\u{1d554}","Copf":"\u2102","coprod":"\u2210","Coproduct":"\u2210","copy":"\xa9","COPY":"\xa9","copysr":"\u2117","CounterClockwiseContourIntegral":"\u2233","crarr":"\u21b5","cross":"\u2717","Cross":"\u2a2f","Cscr":"\u{1d49e}","cscr":"\u{1d4b8}","csub":"\u2acf","csube":"\u2ad1","csup":"\u2ad0","csupe":"\u2ad2","ctdot":"\u22ef","cudarrl":"\u2938","cudarrr":"\u2935","cuepr":"\u22de","cuesc":"\u22df","cularr":"\u21b6","cularrp":"\u293d","cupbrcap":"\u2a48","cupcap":"\u2a46","CupCap":"\u224d","cup":"\u222a","Cup":"\u22d3","cupcup":"\u2a4a","cupdot":"\u228d","cupor":"\u2a45","cups":"\u222a\ufe00","curarr":"\u21b7","curarrm":"\u293c","curlyeqprec":"\u22de","curlyeqsucc":"\u22df","curlyvee":"\u22ce","curlywedge":"\u22cf","curren":"\xa4","curvearrowleft":"\u21b6","curvearrowright":"\u21b7","cuvee":"\u22ce","cuwed":"\u22cf","cwconint":"\u2232","cwint":"\u2231","cylcty":"\u232d","dagger":"\u2020","Dagger":"\u2021","daleth":"\u2138","darr":"\u2193","Darr":"\u21a1","dArr":"\u21d3","dash":"\u2010","Dashv":"\u2ae4","dashv":"\u22a3","dbkarow":"\u290f","dblac":"\u02dd","Dcaron":"\u010e","dcaron":"\u010f","Dcy":"\u0414","dcy":"\u0434","ddagger":"\u2021","ddarr":"\u21ca","DD":"\u2145","dd":"\u2146","DDotrahd":"\u2911","ddotseq":"\u2a77","deg":"\xb0","Del":"\u2207","Delta":"\u0394","delta":"\u03b4","demptyv":"\u29b1","dfisht":"\u297f","Dfr":"\u{1d507}","dfr":"\u{1d521}","dHar":"\u2965","dharl":"\u21c3","dharr":"\u21c2","DiacriticalAcute":"\xb4","DiacriticalDot":"\u02d9","DiacriticalDoubleAcute":"\u02dd","DiacriticalGrave":"`","DiacriticalTilde":"\u02dc","diam":"\u22c4","diamond":"\u22c4","Diamond":"\u22c4","diamondsuit":"\u2666","diams":"\u2666","die":"\xa8","DifferentialD":"\u2146","digamma":"\u03dd","disin":"\u22f2","div":"\xf7","divide":"\xf7","divideontimes":"\u22c7","divonx":"\u22c7","DJcy":"\u0402","djcy":"\u0452","dlcorn":"\u231e","dlcrop":"\u230d","dollar":"$","Dopf":"\u{1d53b}","dopf":"\u{1d555}","Dot":"\xa8","dot":"\u02d9","DotDot":"\u20dc","doteq":"\u2250","doteqdot":"\u2251","DotEqual":"\u2250","dotminus":"\u2238","dotplus":"\u2214","dotsquare":"\u22a1","doublebarwedge":"\u2306","DoubleContourIntegral":"\u222f","DoubleDot":"\xa8","DoubleDownArrow":"\u21d3","DoubleLeftArrow":"\u21d0","DoubleLeftRightArrow":"\u21d4","DoubleLeftTee":"\u2ae4","DoubleLongLeftArrow":"\u27f8","DoubleLongLeftRightArrow":"\u27fa","DoubleLongRightArrow":"\u27f9","DoubleRightArrow":"\u21d2","DoubleRightTee":"\u22a8","DoubleUpArrow":"\u21d1","DoubleUpDownArrow":"\u21d5","DoubleVerticalBar":"\u2225","DownArrowBar":"\u2913","downarrow":"\u2193","DownArrow":"\u2193","Downarrow":"\u21d3","DownArrowUpArrow":"\u21f5","DownBreve":"\u0311","downdownarrows":"\u21ca","downharpoonleft":"\u21c3","downharpoonright":"\u21c2","DownLeftRightVector":"\u2950","DownLeftTeeVector":"\u295e","DownLeftVectorBar":"\u2956","DownLeftVector":"\u21bd","DownRightTeeVector":"\u295f","DownRightVectorBar":"\u2957","DownRightVector":"\u21c1","DownTeeArrow":"\u21a7","DownTee":"\u22a4","drbkarow":"\u2910","drcorn":"\u231f","drcrop":"\u230c","Dscr":"\u{1d49f}","dscr":"\u{1d4b9}","DScy":"\u0405","dscy":"\u0455","dsol":"\u29f6","Dstrok":"\u0110","dstrok":"\u0111","dtdot":"\u22f1","dtri":"\u25bf","dtrif":"\u25be","duarr":"\u21f5","duhar":"\u296f","dwangle":"\u29a6","DZcy":"\u040f","dzcy":"\u045f","dzigrarr":"\u27ff","Eacute":"\xc9","eacute":"\xe9","easter":"\u2a6e","Ecaron":"\u011a","ecaron":"\u011b","Ecirc":"\xca","ecirc":"\xea","ecir":"\u2256","ecolon":"\u2255","Ecy":"\u042d","ecy":"\u044d","eDDot":"\u2a77","Edot":"\u0116","edot":"\u0117","eDot":"\u2251","ee":"\u2147","efDot":"\u2252","Efr":"\u{1d508}","efr":"\u{1d522}","eg":"\u2a9a","Egrave":"\xc8","egrave":"\xe8","egs":"\u2a96","egsdot":"\u2a98","el":"\u2a99","Element":"\u2208","elinters":"\u23e7","ell":"\u2113","els":"\u2a95","elsdot":"\u2a97","Emacr":"\u0112","emacr":"\u0113","empty":"\u2205","emptyset":"\u2205","EmptySmallSquare":"\u25fb","emptyv":"\u2205","EmptyVerySmallSquare":"\u25ab","emsp13":"\u2004","emsp14":"\u2005","emsp":"\u2003","ENG":"\u014a","eng":"\u014b","ensp":"\u2002","Eogon":"\u0118","eogon":"\u0119","Eopf":"\u{1d53c}","eopf":"\u{1d556}","epar":"\u22d5","eparsl":"\u29e3","eplus":"\u2a71","epsi":"\u03b5","Epsilon":"\u0395","epsilon":"\u03b5","epsiv":"\u03f5","eqcirc":"\u2256","eqcolon":"\u2255","eqsim":"\u2242","eqslantgtr":"\u2a96","eqslantless":"\u2a95","Equal":"\u2a75","equals":"=","EqualTilde":"\u2242","equest":"\u225f","Equilibrium":"\u21cc","equiv":"\u2261","equivDD":"\u2a78","eqvparsl":"\u29e5","erarr":"\u2971","erDot":"\u2253","escr":"\u212f","Escr":"\u2130","esdot":"\u2250","Esim":"\u2a73","esim":"\u2242","Eta":"\u0397","eta":"\u03b7","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","euro":"\u20ac","excl":"!","exist":"\u2203","Exists":"\u2203","expectation":"\u2130","exponentiale":"\u2147","ExponentialE":"\u2147","fallingdotseq":"\u2252","Fcy":"\u0424","fcy":"\u0444","female":"\u2640","ffilig":"\ufb03","fflig":"\ufb00","ffllig":"\ufb04","Ffr":"\u{1d509}","ffr":"\u{1d523}","filig":"\ufb01","FilledSmallSquare":"\u25fc","FilledVerySmallSquare":"\u25aa","fjlig":"fj","flat":"\u266d","fllig":"\ufb02","fltns":"\u25b1","fnof":"\u0192","Fopf":"\u{1d53d}","fopf":"\u{1d557}","forall":"\u2200","ForAll":"\u2200","fork":"\u22d4","forkv":"\u2ad9","Fouriertrf":"\u2131","fpartint":"\u2a0d","frac12":"\xbd","frac13":"\u2153","frac14":"\xbc","frac15":"\u2155","frac16":"\u2159","frac18":"\u215b","frac23":"\u2154","frac25":"\u2156","frac34":"\xbe","frac35":"\u2157","frac38":"\u215c","frac45":"\u2158","frac56":"\u215a","frac58":"\u215d","frac78":"\u215e","frasl":"\u2044","frown":"\u2322","fscr":"\u{1d4bb}","Fscr":"\u2131","gacute":"\u01f5","Gamma":"\u0393","gamma":"\u03b3","Gammad":"\u03dc","gammad":"\u03dd","gap":"\u2a86","Gbreve":"\u011e","gbreve":"\u011f","Gcedil":"\u0122","Gcirc":"\u011c","gcirc":"\u011d","Gcy":"\u0413","gcy":"\u0433","Gdot":"\u0120","gdot":"\u0121","ge":"\u2265","gE":"\u2267","gEl":"\u2a8c","gel":"\u22db","geq":"\u2265","geqq":"\u2267","geqslant":"\u2a7e","gescc":"\u2aa9","ges":"\u2a7e","gesdot":"\u2a80","gesdoto":"\u2a82","gesdotol":"\u2a84","gesl":"\u22db\ufe00","gesles":"\u2a94","Gfr":"\u{1d50a}","gfr":"\u{1d524}","gg":"\u226b","Gg":"\u22d9","ggg":"\u22d9","gimel":"\u2137","GJcy":"\u0403","gjcy":"\u0453","gla":"\u2aa5","gl":"\u2277","glE":"\u2a92","glj":"\u2aa4","gnap":"\u2a8a","gnapprox":"\u2a8a","gne":"\u2a88","gnE":"\u2269","gneq":"\u2a88","gneqq":"\u2269","gnsim":"\u22e7","Gopf":"\u{1d53e}","gopf":"\u{1d558}","grave":"`","GreaterEqual":"\u2265","GreaterEqualLess":"\u22db","GreaterFullEqual":"\u2267","GreaterGreater":"\u2aa2","GreaterLess":"\u2277","GreaterSlantEqual":"\u2a7e","GreaterTilde":"\u2273","Gscr":"\u{1d4a2}","gscr":"\u210a","gsim":"\u2273","gsime":"\u2a8e","gsiml":"\u2a90","gtcc":"\u2aa7","gtcir":"\u2a7a","gt":">","GT":">","Gt":"\u226b","gtdot":"\u22d7","gtlPar":"\u2995","gtquest":"\u2a7c","gtrapprox":"\u2a86","gtrarr":"\u2978","gtrdot":"\u22d7","gtreqless":"\u22db","gtreqqless":"\u2a8c","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\ufe00","gvnE":"\u2269\ufe00","Hacek":"\u02c7","hairsp":"\u200a","half":"\xbd","hamilt":"\u210b","HARDcy":"\u042a","hardcy":"\u044a","harrcir":"\u2948","harr":"\u2194","hArr":"\u21d4","harrw":"\u21ad","Hat":"^","hbar":"\u210f","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22b9","hfr":"\u{1d525}","Hfr":"\u210c","HilbertSpace":"\u210b","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21ff","homtht":"\u223b","hookleftarrow":"\u21a9","hookrightarrow":"\u21aa","hopf":"\u{1d559}","Hopf":"\u210d","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\u{1d4bd}","Hscr":"\u210b","hslash":"\u210f","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224e","HumpEqual":"\u224f","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xcd","iacute":"\xed","ic":"\u2063","Icirc":"\xce","icirc":"\xee","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xa1","iff":"\u21d4","ifr":"\u{1d526}","Ifr":"\u2111","Igrave":"\xcc","igrave":"\xec","ii":"\u2148","iiiint":"\u2a0c","iiint":"\u222d","iinfin":"\u29dc","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012a","imacr":"\u012b","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22b7","imped":"\u01b5","Implies":"\u21d2","incare":"\u2105","in":"\u2208","infin":"\u221e","infintie":"\u29dd","inodot":"\u0131","intcal":"\u22ba","int":"\u222b","Int":"\u222c","integers":"\u2124","Integral":"\u222b","intercal":"\u22ba","Intersection":"\u22c2","intlarhk":"\u2a17","intprod":"\u2a3c","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012e","iogon":"\u012f","Iopf":"\u{1d540}","iopf":"\u{1d55a}","Iota":"\u0399","iota":"\u03b9","iprod":"\u2a3c","iquest":"\xbf","iscr":"\u{1d4be}","Iscr":"\u2110","isin":"\u2208","isindot":"\u22f5","isinE":"\u22f9","isins":"\u22f4","isinsv":"\u22f3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xcf","iuml":"\xef","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\u{1d50d}","jfr":"\u{1d527}","jmath":"\u0237","Jopf":"\u{1d541}","jopf":"\u{1d55b}","Jscr":"\u{1d4a5}","jscr":"\u{1d4bf}","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039a","kappa":"\u03ba","kappav":"\u03f0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041a","kcy":"\u043a","Kfr":"\u{1d50e}","kfr":"\u{1d528}","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040c","kjcy":"\u045c","Kopf":"\u{1d542}","kopf":"\u{1d55c}","Kscr":"\u{1d4a6}","kscr":"\u{1d4c0}","lAarr":"\u21da","Lacute":"\u0139","lacute":"\u013a","laemptyv":"\u29b4","lagran":"\u2112","Lambda":"\u039b","lambda":"\u03bb","lang":"\u27e8","Lang":"\u27ea","langd":"\u2991","langle":"\u27e8","lap":"\u2a85","Laplacetrf":"\u2112","laquo":"\xab","larrb":"\u21e4","larrbfs":"\u291f","larr":"\u2190","Larr":"\u219e","lArr":"\u21d0","larrfs":"\u291d","larrhk":"\u21a9","larrlp":"\u21ab","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21a2","latail":"\u2919","lAtail":"\u291b","lat":"\u2aab","late":"\u2aad","lates":"\u2aad\ufe00","lbarr":"\u290c","lBarr":"\u290e","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298b","lbrksld":"\u298f","lbrkslu":"\u298d","Lcaron":"\u013d","lcaron":"\u013e","Lcedil":"\u013b","lcedil":"\u013c","lceil":"\u2308","lcub":"{","Lcy":"\u041b","lcy":"\u043b","ldca":"\u2936","ldquo":"\u201c","ldquor":"\u201e","ldrdhar":"\u2967","ldrushar":"\u294b","ldsh":"\u21b2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27e8","LeftArrowBar":"\u21e4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21d0","LeftArrowRightArrow":"\u21c6","leftarrowtail":"\u21a2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27e6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21c3","LeftFloor":"\u230a","leftharpoondown":"\u21bd","leftharpoonup":"\u21bc","leftleftarrows":"\u21c7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21d4","leftrightarrows":"\u21c6","leftrightharpoons":"\u21cb","leftrightsquigarrow":"\u21ad","LeftRightVector":"\u294e","LeftTeeArrow":"\u21a4","LeftTee":"\u22a3","LeftTeeVector":"\u295a","leftthreetimes":"\u22cb","LeftTriangleBar":"\u29cf","LeftTriangle":"\u22b2","LeftTriangleEqual":"\u22b4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21bf","LeftVectorBar":"\u2952","LeftVector":"\u21bc","lEg":"\u2a8b","leg":"\u22da","leq":"\u2264","leqq":"\u2266","leqslant":"\u2a7d","lescc":"\u2aa8","les":"\u2a7d","lesdot":"\u2a7f","lesdoto":"\u2a81","lesdotor":"\u2a83","lesg":"\u22da\ufe00","lesges":"\u2a93","lessapprox":"\u2a85","lessdot":"\u22d6","lesseqgtr":"\u22da","lesseqqgtr":"\u2a8b","LessEqualGreater":"\u22da","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2aa1","lesssim":"\u2272","LessSlantEqual":"\u2a7d","LessTilde":"\u2272","lfisht":"\u297c","lfloor":"\u230a","Lfr":"\u{1d50f}","lfr":"\u{1d529}","lg":"\u2276","lgE":"\u2a91","lHar":"\u2962","lhard":"\u21bd","lharu":"\u21bc","lharul":"\u296a","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21c7","ll":"\u226a","Ll":"\u22d8","llcorner":"\u231e","Lleftarrow":"\u21da","llhard":"\u296b","lltri":"\u25fa","Lmidot":"\u013f","lmidot":"\u0140","lmoustache":"\u23b0","lmoust":"\u23b0","lnap":"\u2a89","lnapprox":"\u2a89","lne":"\u2a87","lnE":"\u2268","lneq":"\u2a87","lneqq":"\u2268","lnsim":"\u22e6","loang":"\u27ec","loarr":"\u21fd","lobrk":"\u27e6","longleftarrow":"\u27f5","LongLeftArrow":"\u27f5","Longleftarrow":"\u27f8","longleftrightarrow":"\u27f7","LongLeftRightArrow":"\u27f7","Longleftrightarrow":"\u27fa","longmapsto":"\u27fc","longrightarrow":"\u27f6","LongRightArrow":"\u27f6","Longrightarrow":"\u27f9","looparrowleft":"\u21ab","looparrowright":"\u21ac","lopar":"\u2985","Lopf":"\u{1d543}","lopf":"\u{1d55d}","loplus":"\u2a2d","lotimes":"\u2a34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25ca","lozenge":"\u25ca","lozf":"\u29eb","lpar":"(","lparlt":"\u2993","lrarr":"\u21c6","lrcorner":"\u231f","lrhar":"\u21cb","lrhard":"\u296d","lrm":"\u200e","lrtri":"\u22bf","lsaquo":"\u2039","lscr":"\u{1d4c1}","Lscr":"\u2112","lsh":"\u21b0","Lsh":"\u21b0","lsim":"\u2272","lsime":"\u2a8d","lsimg":"\u2a8f","lsqb":"[","lsquo":"\u2018","lsquor":"\u201a","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2aa6","ltcir":"\u2a79","lt":"<","LT":"<","Lt":"\u226a","ltdot":"\u22d6","lthree":"\u22cb","ltimes":"\u22c9","ltlarr":"\u2976","ltquest":"\u2a7b","ltri":"\u25c3","ltrie":"\u22b4","ltrif":"\u25c2","ltrPar":"\u2996","lurdshar":"\u294a","luruhar":"\u2966","lvertneqq":"\u2268\ufe00","lvnE":"\u2268\ufe00","macr":"\xaf","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21a6","mapsto":"\u21a6","mapstodown":"\u21a7","mapstoleft":"\u21a4","mapstoup":"\u21a5","marker":"\u25ae","mcomma":"\u2a29","Mcy":"\u041c","mcy":"\u043c","mdash":"\u2014","mDDot":"\u223a","measuredangle":"\u2221","MediumSpace":"\u205f","Mellintrf":"\u2133","Mfr":"\u{1d510}","mfr":"\u{1d52a}","mho":"\u2127","micro":"\xb5","midast":"*","midcir":"\u2af0","mid":"\u2223","middot":"\xb7","minusb":"\u229f","minus":"\u2212","minusd":"\u2238","minusdu":"\u2a2a","MinusPlus":"\u2213","mlcp":"\u2adb","mldr":"\u2026","mnplus":"\u2213","models":"\u22a7","Mopf":"\u{1d544}","mopf":"\u{1d55e}","mp":"\u2213","mscr":"\u{1d4c2}","Mscr":"\u2133","mstpos":"\u223e","Mu":"\u039c","mu":"\u03bc","multimap":"\u22b8","mumap":"\u22b8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20d2","nap":"\u2249","napE":"\u2a70\u0338","napid":"\u224b\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266e","naturals":"\u2115","natur":"\u266e","nbsp":"\xa0","nbump":"\u224e\u0338","nbumpe":"\u224f\u0338","ncap":"\u2a43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2a6d\u0338","ncup":"\u2a42","Ncy":"\u041d","ncy":"\u043d","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21d7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200b","NegativeThickSpace":"\u200b","NegativeThinSpace":"\u200b","NegativeVeryThinSpace":"\u200b","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226b","NestedLessLess":"\u226a","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\u{1d511}","nfr":"\u{1d52b}","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2a7e\u0338","nges":"\u2a7e\u0338","nGg":"\u22d9\u0338","ngsim":"\u2275","nGt":"\u226b\u20d2","ngt":"\u226f","ngtr":"\u226f","nGtv":"\u226b\u0338","nharr":"\u21ae","nhArr":"\u21ce","nhpar":"\u2af2","ni":"\u220b","nis":"\u22fc","nisd":"\u22fa","niv":"\u220b","NJcy":"\u040a","njcy":"\u045a","nlarr":"\u219a","nlArr":"\u21cd","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219a","nLeftarrow":"\u21cd","nleftrightarrow":"\u21ae","nLeftrightarrow":"\u21ce","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2a7d\u0338","nles":"\u2a7d\u0338","nless":"\u226e","nLl":"\u22d8\u0338","nlsim":"\u2274","nLt":"\u226a\u20d2","nlt":"\u226e","nltri":"\u22ea","nltrie":"\u22ec","nLtv":"\u226a\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xa0","nopf":"\u{1d55f}","Nopf":"\u2115","Not":"\u2aec","not":"\xac","NotCongruent":"\u2262","NotCupCap":"\u226d","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226f","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226b\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2a7e\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224e\u0338","NotHumpEqual":"\u224f\u0338","notin":"\u2209","notindot":"\u22f5\u0338","notinE":"\u22f9\u0338","notinva":"\u2209","notinvb":"\u22f7","notinvc":"\u22f6","NotLeftTriangleBar":"\u29cf\u0338","NotLeftTriangle":"\u22ea","NotLeftTriangleEqual":"\u22ec","NotLess":"\u226e","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226a\u0338","NotLessSlantEqual":"\u2a7d\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2aa2\u0338","NotNestedLessLess":"\u2aa1\u0338","notni":"\u220c","notniva":"\u220c","notnivb":"\u22fe","notnivc":"\u22fd","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2aaf\u0338","NotPrecedesSlantEqual":"\u22e0","NotReverseElement":"\u220c","NotRightTriangleBar":"\u29d0\u0338","NotRightTriangle":"\u22eb","NotRightTriangleEqual":"\u22ed","NotSquareSubset":"\u228f\u0338","NotSquareSubsetEqual":"\u22e2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22e3","NotSubset":"\u2282\u20d2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2ab0\u0338","NotSucceedsSlantEqual":"\u22e1","NotSucceedsTilde":"\u227f\u0338","NotSuperset":"\u2283\u20d2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2afd\u20e5","npart":"\u2202\u0338","npolint":"\u2a14","npr":"\u2280","nprcue":"\u22e0","nprec":"\u2280","npreceq":"\u2aaf\u0338","npre":"\u2aaf\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219b","nrArr":"\u21cf","nrarrw":"\u219d\u0338","nrightarrow":"\u219b","nRightarrow":"\u21cf","nrtri":"\u22eb","nrtrie":"\u22ed","nsc":"\u2281","nsccue":"\u22e1","nsce":"\u2ab0\u0338","Nscr":"\u{1d4a9}","nscr":"\u{1d4c3}","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22e2","nsqsupe":"\u22e3","nsub":"\u2284","nsubE":"\u2ac5\u0338","nsube":"\u2288","nsubset":"\u2282\u20d2","nsubseteq":"\u2288","nsubseteqq":"\u2ac5\u0338","nsucc":"\u2281","nsucceq":"\u2ab0\u0338","nsup":"\u2285","nsupE":"\u2ac6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20d2","nsupseteq":"\u2289","nsupseteqq":"\u2ac6\u0338","ntgl":"\u2279","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"\u2278","ntriangleleft":"\u22ea","ntrianglelefteq":"\u22ec","ntriangleright":"\u22eb","ntrianglerighteq":"\u22ed","Nu":"\u039d","nu":"\u03bd","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224d\u20d2","nvdash":"\u22ac","nvDash":"\u22ad","nVdash":"\u22ae","nVDash":"\u22af","nvge":"\u2265\u20d2","nvgt":">\u20d2","nvHarr":"\u2904","nvinfin":"\u29de","nvlArr":"\u2902","nvle":"\u2264\u20d2","nvlt":"<\u20d2","nvltrie":"\u22b4\u20d2","nvrArr":"\u2903","nvrtrie":"\u22b5\u20d2","nvsim":"\u223c\u20d2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21d6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xd3","oacute":"\xf3","oast":"\u229b","Ocirc":"\xd4","ocirc":"\xf4","ocir":"\u229a","Ocy":"\u041e","ocy":"\u043e","odash":"\u229d","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2a38","odot":"\u2299","odsold":"\u29bc","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29bf","Ofr":"\u{1d512}","ofr":"\u{1d52c}","ogon":"\u02db","Ograve":"\xd2","ograve":"\xf2","ogt":"\u29c1","ohbar":"\u29b5","ohm":"\u03a9","oint":"\u222e","olarr":"\u21ba","olcir":"\u29be","olcross":"\u29bb","oline":"\u203e","olt":"\u29c0","Omacr":"\u014c","omacr":"\u014d","Omega":"\u03a9","omega":"\u03c9","Omicron":"\u039f","omicron":"\u03bf","omid":"\u29b6","ominus":"\u2296","Oopf":"\u{1d546}","oopf":"\u{1d560}","opar":"\u29b7","OpenCurlyDoubleQuote":"\u201c","OpenCurlyQuote":"\u2018","operp":"\u29b9","oplus":"\u2295","orarr":"\u21bb","Or":"\u2a54","or":"\u2228","ord":"\u2a5d","order":"\u2134","orderof":"\u2134","ordf":"\xaa","ordm":"\xba","origof":"\u22b6","oror":"\u2a56","orslope":"\u2a57","orv":"\u2a5b","oS":"\u24c8","Oscr":"\u{1d4aa}","oscr":"\u2134","Oslash":"\xd8","oslash":"\xf8","osol":"\u2298","Otilde":"\xd5","otilde":"\xf5","otimesas":"\u2a36","Otimes":"\u2a37","otimes":"\u2297","Ouml":"\xd6","ouml":"\xf6","ovbar":"\u233d","OverBar":"\u203e","OverBrace":"\u23de","OverBracket":"\u23b4","OverParenthesis":"\u23dc","para":"\xb6","parallel":"\u2225","par":"\u2225","parsim":"\u2af3","parsl":"\u2afd","part":"\u2202","PartialD":"\u2202","Pcy":"\u041f","pcy":"\u043f","percnt":"%","period":".","permil":"\u2030","perp":"\u22a5","pertenk":"\u2031","Pfr":"\u{1d513}","pfr":"\u{1d52d}","Phi":"\u03a6","phi":"\u03c6","phiv":"\u03d5","phmmat":"\u2133","phone":"\u260e","Pi":"\u03a0","pi":"\u03c0","pitchfork":"\u22d4","piv":"\u03d6","planck":"\u210f","planckh":"\u210e","plankv":"\u210f","plusacir":"\u2a23","plusb":"\u229e","pluscir":"\u2a22","plus":"+","plusdo":"\u2214","plusdu":"\u2a25","pluse":"\u2a72","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"\u2a26","plustwo":"\u2a27","pm":"\xb1","Poincareplane":"\u210c","pointint":"\u2a15","popf":"\u{1d561}","Popf":"\u2119","pound":"\xa3","prap":"\u2ab7","Pr":"\u2abb","pr":"\u227a","prcue":"\u227c","precapprox":"\u2ab7","prec":"\u227a","preccurlyeq":"\u227c","Precedes":"\u227a","PrecedesEqual":"\u2aaf","PrecedesSlantEqual":"\u227c","PrecedesTilde":"\u227e","preceq":"\u2aaf","precnapprox":"\u2ab9","precneqq":"\u2ab5","precnsim":"\u22e8","pre":"\u2aaf","prE":"\u2ab3","precsim":"\u227e","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2ab9","prnE":"\u2ab5","prnsim":"\u22e8","prod":"\u220f","Product":"\u220f","profalar":"\u232e","profline":"\u2312","profsurf":"\u2313","prop":"\u221d","Proportional":"\u221d","Proportion":"\u2237","propto":"\u221d","prsim":"\u227e","prurel":"\u22b0","Pscr":"\u{1d4ab}","pscr":"\u{1d4c5}","Psi":"\u03a8","psi":"\u03c8","puncsp":"\u2008","Qfr":"\u{1d514}","qfr":"\u{1d52e}","qint":"\u2a0c","qopf":"\u{1d562}","Qopf":"\u211a","qprime":"\u2057","Qscr":"\u{1d4ac}","qscr":"\u{1d4c6}","quaternions":"\u210d","quatint":"\u2a16","quest":"?","questeq":"\u225f","quot":"\\"","QUOT":"\\"","rAarr":"\u21db","race":"\u223d\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221a","raemptyv":"\u29b3","rang":"\u27e9","Rang":"\u27eb","rangd":"\u2992","range":"\u29a5","rangle":"\u27e9","raquo":"\xbb","rarrap":"\u2975","rarrb":"\u21e5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21a0","rArr":"\u21d2","rarrfs":"\u291e","rarrhk":"\u21aa","rarrlp":"\u21ac","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21a3","rarrw":"\u219d","ratail":"\u291a","rAtail":"\u291c","ratio":"\u2236","rationals":"\u211a","rbarr":"\u290d","rBarr":"\u290f","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298c","rbrksld":"\u298e","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201d","rdquor":"\u201d","rdsh":"\u21b3","real":"\u211c","realine":"\u211b","realpart":"\u211c","reals":"\u211d","Re":"\u211c","rect":"\u25ad","reg":"\xae","REG":"\xae","ReverseElement":"\u220b","ReverseEquilibrium":"\u21cb","ReverseUpEquilibrium":"\u296f","rfisht":"\u297d","rfloor":"\u230b","rfr":"\u{1d52f}","Rfr":"\u211c","rHar":"\u2964","rhard":"\u21c1","rharu":"\u21c0","rharul":"\u296c","Rho":"\u03a1","rho":"\u03c1","rhov":"\u03f1","RightAngleBracket":"\u27e9","RightArrowBar":"\u21e5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21d2","RightArrowLeftArrow":"\u21c4","rightarrowtail":"\u21a3","RightCeiling":"\u2309","RightDoubleBracket":"\u27e7","RightDownTeeVector":"\u295d","RightDownVectorBar":"\u2955","RightDownVector":"\u21c2","RightFloor":"\u230b","rightharpoondown":"\u21c1","rightharpoonup":"\u21c0","rightleftarrows":"\u21c4","rightleftharpoons":"\u21cc","rightrightarrows":"\u21c9","rightsquigarrow":"\u219d","RightTeeArrow":"\u21a6","RightTee":"\u22a2","RightTeeVector":"\u295b","rightthreetimes":"\u22cc","RightTriangleBar":"\u29d0","RightTriangle":"\u22b3","RightTriangleEqual":"\u22b5","RightUpDownVector":"\u294f","RightUpTeeVector":"\u295c","RightUpVectorBar":"\u2954","RightUpVector":"\u21be","RightVectorBar":"\u2953","RightVector":"\u21c0","ring":"\u02da","risingdotseq":"\u2253","rlarr":"\u21c4","rlhar":"\u21cc","rlm":"\u200f","rmoustache":"\u23b1","rmoust":"\u23b1","rnmid":"\u2aee","roang":"\u27ed","roarr":"\u21fe","robrk":"\u27e7","ropar":"\u2986","ropf":"\u{1d563}","Ropf":"\u211d","roplus":"\u2a2e","rotimes":"\u2a35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2a12","rrarr":"\u21c9","Rrightarrow":"\u21db","rsaquo":"\u203a","rscr":"\u{1d4c7}","Rscr":"\u211b","rsh":"\u21b1","Rsh":"\u21b1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22cc","rtimes":"\u22ca","rtri":"\u25b9","rtrie":"\u22b5","rtrif":"\u25b8","rtriltri":"\u29ce","RuleDelayed":"\u29f4","ruluhar":"\u2968","rx":"\u211e","Sacute":"\u015a","sacute":"\u015b","sbquo":"\u201a","scap":"\u2ab8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2abc","sc":"\u227b","sccue":"\u227d","sce":"\u2ab0","scE":"\u2ab4","Scedil":"\u015e","scedil":"\u015f","Scirc":"\u015c","scirc":"\u015d","scnap":"\u2aba","scnE":"\u2ab6","scnsim":"\u22e9","scpolint":"\u2a13","scsim":"\u227f","Scy":"\u0421","scy":"\u0441","sdotb":"\u22a1","sdot":"\u22c5","sdote":"\u2a66","searhk":"\u2925","searr":"\u2198","seArr":"\u21d8","searrow":"\u2198","sect":"\xa7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\u{1d516}","sfr":"\u{1d530}","sfrown":"\u2322","sharp":"\u266f","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xad","Sigma":"\u03a3","sigma":"\u03c3","sigmaf":"\u03c2","sigmav":"\u03c2","sim":"\u223c","simdot":"\u2a6a","sime":"\u2243","simeq":"\u2243","simg":"\u2a9e","simgE":"\u2aa0","siml":"\u2a9d","simlE":"\u2a9f","simne":"\u2246","simplus":"\u2a24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2a33","smeparsl":"\u29e4","smid":"\u2223","smile":"\u2323","smt":"\u2aaa","smte":"\u2aac","smtes":"\u2aac\ufe00","SOFTcy":"\u042c","softcy":"\u044c","solbar":"\u233f","solb":"\u29c4","sol":"/","Sopf":"\u{1d54a}","sopf":"\u{1d564}","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\ufe00","sqcup":"\u2294","sqcups":"\u2294\ufe00","Sqrt":"\u221a","sqsub":"\u228f","sqsube":"\u2291","sqsubset":"\u228f","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25a1","Square":"\u25a1","SquareIntersection":"\u2293","SquareSubset":"\u228f","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25aa","squ":"\u25a1","squf":"\u25aa","srarr":"\u2192","Sscr":"\u{1d4ae}","sscr":"\u{1d4c8}","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22c6","Star":"\u22c6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03f5","straightphi":"\u03d5","strns":"\xaf","sub":"\u2282","Sub":"\u22d0","subdot":"\u2abd","subE":"\u2ac5","sube":"\u2286","subedot":"\u2ac3","submult":"\u2ac1","subnE":"\u2acb","subne":"\u228a","subplus":"\u2abf","subrarr":"\u2979","subset":"\u2282","Subset":"\u22d0","subseteq":"\u2286","subseteqq":"\u2ac5","SubsetEqual":"\u2286","subsetneq":"\u228a","subsetneqq":"\u2acb","subsim":"\u2ac7","subsub":"\u2ad5","subsup":"\u2ad3","succapprox":"\u2ab8","succ":"\u227b","succcurlyeq":"\u227d","Succeeds":"\u227b","SucceedsEqual":"\u2ab0","SucceedsSlantEqual":"\u227d","SucceedsTilde":"\u227f","succeq":"\u2ab0","succnapprox":"\u2aba","succneqq":"\u2ab6","succnsim":"\u22e9","succsim":"\u227f","SuchThat":"\u220b","sum":"\u2211","Sum":"\u2211","sung":"\u266a","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"\u2283","Sup":"\u22d1","supdot":"\u2abe","supdsub":"\u2ad8","supE":"\u2ac6","supe":"\u2287","supedot":"\u2ac4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27c9","suphsub":"\u2ad7","suplarr":"\u297b","supmult":"\u2ac2","supnE":"\u2acc","supne":"\u228b","supplus":"\u2ac0","supset":"\u2283","Supset":"\u22d1","supseteq":"\u2287","supseteqq":"\u2ac6","supsetneq":"\u228b","supsetneqq":"\u2acc","supsim":"\u2ac8","supsub":"\u2ad4","supsup":"\u2ad6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21d9","swarrow":"\u2199","swnwar":"\u292a","szlig":"\xdf","Tab":"\\t","target":"\u2316","Tau":"\u03a4","tau":"\u03c4","tbrk":"\u23b4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20db","telrec":"\u2315","Tfr":"\u{1d517}","tfr":"\u{1d531}","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03b8","thetasym":"\u03d1","thetav":"\u03d1","thickapprox":"\u2248","thicksim":"\u223c","ThickSpace":"\u205f\u200a","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223c","THORN":"\xde","thorn":"\xfe","tilde":"\u02dc","Tilde":"\u223c","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2a31","timesb":"\u22a0","times":"\xd7","timesd":"\u2a30","tint":"\u222d","toea":"\u2928","topbot":"\u2336","topcir":"\u2af1","top":"\u22a4","Topf":"\u{1d54b}","topf":"\u{1d565}","topfork":"\u2ada","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25b5","triangledown":"\u25bf","triangleleft":"\u25c3","trianglelefteq":"\u22b4","triangleq":"\u225c","triangleright":"\u25b9","trianglerighteq":"\u22b5","tridot":"\u25ec","trie":"\u225c","triminus":"\u2a3a","TripleDot":"\u20db","triplus":"\u2a39","trisb":"\u29cd","tritime":"\u2a3b","trpezium":"\u23e2","Tscr":"\u{1d4af}","tscr":"\u{1d4c9}","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040b","tshcy":"\u045b","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226c","twoheadleftarrow":"\u219e","twoheadrightarrow":"\u21a0","Uacute":"\xda","uacute":"\xfa","uarr":"\u2191","Uarr":"\u219f","uArr":"\u21d1","Uarrocir":"\u2949","Ubrcy":"\u040e","ubrcy":"\u045e","Ubreve":"\u016c","ubreve":"\u016d","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21c5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296e","ufisht":"\u297e","Ufr":"\u{1d518}","ufr":"\u{1d532}","Ugrave":"\xd9","ugrave":"\xf9","uHar":"\u2963","uharl":"\u21bf","uharr":"\u21be","uhblk":"\u2580","ulcorn":"\u231c","ulcorner":"\u231c","ulcrop":"\u230f","ultri":"\u25f8","Umacr":"\u016a","umacr":"\u016b","uml":"\xa8","UnderBar":"_","UnderBrace":"\u23df","UnderBracket":"\u23b5","UnderParenthesis":"\u23dd","Union":"\u22c3","UnionPlus":"\u228e","Uogon":"\u0172","uogon":"\u0173","Uopf":"\u{1d54c}","uopf":"\u{1d566}","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21d1","UpArrowDownArrow":"\u21c5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21d5","UpEquilibrium":"\u296e","upharpoonleft":"\u21bf","upharpoonright":"\u21be","uplus":"\u228e","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03c5","Upsi":"\u03d2","upsih":"\u03d2","Upsilon":"\u03a5","upsilon":"\u03c5","UpTeeArrow":"\u21a5","UpTee":"\u22a5","upuparrows":"\u21c8","urcorn":"\u231d","urcorner":"\u231d","urcrop":"\u230e","Uring":"\u016e","uring":"\u016f","urtri":"\u25f9","Uscr":"\u{1d4b0}","uscr":"\u{1d4ca}","utdot":"\u22f0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25b5","utrif":"\u25b4","uuarr":"\u21c8","Uuml":"\xdc","uuml":"\xfc","uwangle":"\u29a7","vangrt":"\u299c","varepsilon":"\u03f5","varkappa":"\u03f0","varnothing":"\u2205","varphi":"\u03d5","varpi":"\u03d6","varpropto":"\u221d","varr":"\u2195","vArr":"\u21d5","varrho":"\u03f1","varsigma":"\u03c2","varsubsetneq":"\u228a\ufe00","varsubsetneqq":"\u2acb\ufe00","varsupsetneq":"\u228b\ufe00","varsupsetneqq":"\u2acc\ufe00","vartheta":"\u03d1","vartriangleleft":"\u22b2","vartriangleright":"\u22b3","vBar":"\u2ae8","Vbar":"\u2aeb","vBarv":"\u2ae9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22a2","vDash":"\u22a8","Vdash":"\u22a9","VDash":"\u22ab","Vdashl":"\u2ae6","veebar":"\u22bb","vee":"\u2228","Vee":"\u22c1","veeeq":"\u225a","vellip":"\u22ee","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200a","Vfr":"\u{1d519}","vfr":"\u{1d533}","vltri":"\u22b2","vnsub":"\u2282\u20d2","vnsup":"\u2283\u20d2","Vopf":"\u{1d54d}","vopf":"\u{1d567}","vprop":"\u221d","vrtri":"\u22b3","Vscr":"\u{1d4b1}","vscr":"\u{1d4cb}","vsubnE":"\u2acb\ufe00","vsubne":"\u228a\ufe00","vsupnE":"\u2acc\ufe00","vsupne":"\u228b\ufe00","Vvdash":"\u22aa","vzigzag":"\u299a","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2a5f","wedge":"\u2227","Wedge":"\u22c0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\u{1d51a}","wfr":"\u{1d534}","Wopf":"\u{1d54e}","wopf":"\u{1d568}","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\u{1d4b2}","wscr":"\u{1d4cc}","xcap":"\u22c2","xcirc":"\u25ef","xcup":"\u22c3","xdtri":"\u25bd","Xfr":"\u{1d51b}","xfr":"\u{1d535}","xharr":"\u27f7","xhArr":"\u27fa","Xi":"\u039e","xi":"\u03be","xlarr":"\u27f5","xlArr":"\u27f8","xmap":"\u27fc","xnis":"\u22fb","xodot":"\u2a00","Xopf":"\u{1d54f}","xopf":"\u{1d569}","xoplus":"\u2a01","xotime":"\u2a02","xrarr":"\u27f6","xrArr":"\u27f9","Xscr":"\u{1d4b3}","xscr":"\u{1d4cd}","xsqcup":"\u2a06","xuplus":"\u2a04","xutri":"\u25b3","xvee":"\u22c1","xwedge":"\u22c0","Yacute":"\xdd","yacute":"\xfd","YAcy":"\u042f","yacy":"\u044f","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042b","ycy":"\u044b","yen":"\xa5","Yfr":"\u{1d51c}","yfr":"\u{1d536}","YIcy":"\u0407","yicy":"\u0457","Yopf":"\u{1d550}","yopf":"\u{1d56a}","Yscr":"\u{1d4b4}","yscr":"\u{1d4ce}","YUcy":"\u042e","yucy":"\u044e","yuml":"\xff","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017a","Zcaron":"\u017d","zcaron":"\u017e","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017b","zdot":"\u017c","zeetrf":"\u2128","ZeroWidthSpace":"\u200b","Zeta":"\u0396","zeta":"\u03b6","zfr":"\u{1d537}","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21dd","zopf":"\u{1d56b}","Zopf":"\u2124","Zscr":"\u{1d4b5}","zscr":"\u{1d4cf}","zwj":"\u200d","zwnj":"\u200c"}')},9591:Pe=>{"use strict";Pe.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","AElig":"\xc6","aelig":"\xe6","Agrave":"\xc0","agrave":"\xe0","amp":"&","AMP":"&","Aring":"\xc5","aring":"\xe5","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","brvbar":"\xa6","Ccedil":"\xc7","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","COPY":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","Eacute":"\xc9","eacute":"\xe9","Ecirc":"\xca","ecirc":"\xea","Egrave":"\xc8","egrave":"\xe8","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","GT":">","Iacute":"\xcd","iacute":"\xed","Icirc":"\xce","icirc":"\xee","iexcl":"\xa1","Igrave":"\xcc","igrave":"\xec","iquest":"\xbf","Iuml":"\xcf","iuml":"\xef","laquo":"\xab","lt":"<","LT":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","Ntilde":"\xd1","ntilde":"\xf1","Oacute":"\xd3","oacute":"\xf3","Ocirc":"\xd4","ocirc":"\xf4","Ograve":"\xd2","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","Oslash":"\xd8","oslash":"\xf8","Otilde":"\xd5","otilde":"\xf5","Ouml":"\xd6","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","QUOT":"\\"","raquo":"\xbb","reg":"\xae","REG":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","THORN":"\xde","thorn":"\xfe","times":"\xd7","Uacute":"\xda","uacute":"\xfa","Ucirc":"\xdb","ucirc":"\xfb","Ugrave":"\xd9","ugrave":"\xf9","uml":"\xa8","Uuml":"\xdc","uuml":"\xfc","Yacute":"\xdd","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},2586:Pe=>{"use strict";Pe.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},4147:Pe=>{"use strict";Pe.exports={i8:"3.0.0"}}},Pe=>{Pe(Pe.s=9287)}]); \ No newline at end of file +(self.webpackChunkBM=self.webpackChunkBM||[]).push([[179],{9287:(Pe,C,G)=>{"use strict";function le(n){return"function"==typeof n}let ce=!1;const K={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else ce&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ce=n},get useDeprecatedSynchronousErrorHandling(){return ce}};function Y(n){setTimeout(()=>{throw n},0)}const q={closed:!0,next(n){},error(n){if(K.useDeprecatedSynchronousErrorHandling)throw n;Y(n)},complete(){}},F=Array.isArray||(n=>n&&"number"==typeof n.length);function M(n){return null!==n&&"object"==typeof n}const A=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class w{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;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 w)e.remove(this);else if(null!==e)for(let s=0;st.concat(e instanceof A?e.errors:e),[])}w.EMPTY=((n=new w).closed=!0,n);const E="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class D extends w{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=q;break;case 1:if(!t){this.destination=q;break}if("object"==typeof t){t instanceof D?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new I(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new I(this,t,e,i)}}[E](){return this}static create(t,e,i){const r=new D(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class I extends D{constructor(t,e,i,r){super(),this._parentSubscriber=t;let o,s=this;le(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==q&&(s=Object.create(e),le(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(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;K.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=K;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Y(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Y(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);K.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),K.useDeprecatedSynchronousErrorHandling)throw i;Y(i)}}__tryOrSetError(t,e,i){if(!K.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return K.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Y(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const ne="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ce(n){return n}function te(n){return 0===n.length?Ce:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let b=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function z(n,t,e){if(n){if(n instanceof D)return n;if(n[E])return n[E]()}return n||t||e?new D(n,t,e):new D(q)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||K.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),K.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){K.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function B(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof D?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)}[ne](){return this}pipe(...e){return 0===e.length?this:te(e)(this)}toPromise(e){return new(e=$(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function $(n){if(n||(n=K.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const ie=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class _e extends w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class H extends D{constructor(t){super(t),this.destination=t}}let L=(()=>{class n extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[E](){return new H(this)}lift(e){const i=new Q(this,this);return i.operator=e,i}next(e){if(this.closed)throw new ie;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew Q(t,e),n})();class Q extends L{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):w.EMPTY}}function de(n){return n&&"function"==typeof n.schedule}function ue(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Ne(n,t))}}class Ne{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new Fe(t,this.project,this.thisArg))}}class Fe extends D{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const At=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function Ge(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const qe=n=>{if(n&&"function"==typeof n[ne])return(n=>t=>{const e=n[ne]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(R(n))return At(n);if(Ge(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Y),t))(n);if(n&&"function"==typeof n[re])return(n=>t=>{const e=n[re]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${M(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function hi(n,t){return new b(e=>{const i=new w;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Et(n,t){return t?function uh(n,t){if(null!=n){if(function Vs(n){return n&&"function"==typeof n[ne]}(n))return function Nt(n,t){return new b(e=>{const i=new w;return i.add(t.schedule(()=>{const r=n[ne]();i.add(r.subscribe({next(o){i.add(t.schedule(()=>e.next(o)))},error(o){i.add(t.schedule(()=>e.error(o)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(Ge(n))return function ln(n,t){return new b(e=>{const i=new w;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(R(n))return hi(n,t);if(function ch(n){return n&&"function"==typeof n[re]}(n)||"string"==typeof n)return function Hi(n,t){if(!n)throw new Error("Iterable cannot be null");return new b(e=>{const i=new w;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[re](),i.add(t.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})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof b?n:new b(qe(n))}class Do extends D{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Zc extends D{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function Jc(n,t){if(t.closed)return;if(n instanceof b)return n.subscribe(t);let e;try{e=qe(n)(t)}catch(i){t.error(i)}return e}function Vi(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(Vi((r,o)=>Et(n(r,o)).pipe(ue((s,a)=>t(r,s,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new eO(n,e)))}class eO{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new tO(t,this.project,this.concurrent))}}class tO extends Zc{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function dh(n=Number.POSITIVE_INFINITY){return Vi(Ce,n)}function ug(n,t){return t?hi(n,t):new b(At(n))}function Mn(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return de(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof b?n[0]:dh(t)(ug(n,e))}function hh(){return function(t){return t.lift(new nO(t))}}class nO{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new iO(t,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class iO extends D{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class ph extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new w,t.add(this.source.subscribe(new oO(this.getSubject(),this))),t.closed&&(this._connection=null,t=w.EMPTY)),t}refCount(){return hh()(this)}}const rO=(()=>{const n=ph.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class oO extends H{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class lO{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(t);return o.add(e.subscribe(r)),o}}function cO(){return new L}function vn(n){for(let t in n)if(n[t]===vn)return t;throw Error("Could not find renamed property on target object.")}function dg(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function yn(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(yn).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function hg(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const uO=vn({__forward_ref__:vn});function Zt(n){return n.__forward_ref__=Zt,n.toString=function(){return yn(this())},n}function Ct(n){return pg(n)?n():n}function pg(n){return"function"==typeof n&&n.hasOwnProperty(uO)&&n.__forward_ref__===Zt}class Se extends Error{constructor(t,e){super(function fh(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function It(n){return"string"==typeof n?n:null==n?"":String(n)}function mh(n,t){throw new Se(-201,!1)}function _r(n,t){null==n&&function pn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function fe(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function lt(n){return{providers:n.providers||[],imports:n.imports||[]}}function fg(n){return ww(n,gh)||ww(n,Dw)}function ww(n,t){return n.hasOwnProperty(t)?n[t]:null}function Ew(n){return n&&(n.hasOwnProperty(mg)||n.hasOwnProperty(vO))?n[mg]:null}const gh=vn({\u0275prov:vn}),mg=vn({\u0275inj:vn}),Dw=vn({ngInjectableDef:vn}),vO=vn({ngInjectorDef:vn});var vt=(()=>((vt=vt||{})[vt.Default=0]="Default",vt[vt.Host=1]="Host",vt[vt.Self=2]="Self",vt[vt.SkipSelf=4]="SkipSelf",vt[vt.Optional=8]="Optional",vt))();let gg;function kr(n){const t=gg;return gg=n,t}function Sw(n,t,e){const i=fg(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&vt.Optional?null:void 0!==t?t:void mh(yn(n))}function js(n){return{toString:n}.toString()}var Zr=(()=>((Zr=Zr||{})[Zr.OnPush=0]="OnPush",Zr[Zr.Default=1]="Default",Zr))(),Jr=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Jr||(Jr={})),Jr))();const gn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),gl={},un=[],_h=vn({\u0275cmp:vn}),_g=vn({\u0275dir:vn}),vg=vn({\u0275pipe:vn}),Aw=vn({\u0275mod:vn}),ts=vn({\u0275fac:vn}),eu=vn({__NG_ELEMENT_ID__:vn});let bO=0;function ze(n){return js(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Zr.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||un,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Jr.Emulated,id:"c"+bO++,styles:n.styles||un,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=Mw(n.inputs,i),r.outputs=Mw(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(xw).filter(Iw):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(qi).filter(Iw):null,r})}function xw(n){return mn(n)||Ui(n)}function Iw(n){return null!==n}const CO={};function dt(n){return js(()=>{const t={type:n.type,bootstrap:n.bootstrap||un,declarations:n.declarations||un,imports:n.imports||un,exports:n.exports||un,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(CO[n.id]=n.type),t})}function Mw(n,t){if(null==n)return gl;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const he=ze;function ji(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function mn(n){return n[_h]||null}function Ui(n){return n[_g]||null}function qi(n){return n[vg]||null}function vr(n,t){const e=n[Aw]||null;if(!e&&!0===t)throw new Error(`Type ${yn(n)} does not have '\u0275mod' property.`);return e}function tr(n){return Array.isArray(n)&&"object"==typeof n[1]}function to(n){return Array.isArray(n)&&!0===n[1]}function Cg(n){return 0!=(8&n.flags)}function Ch(n){return 2==(2&n.flags)}function wh(n){return 1==(1&n.flags)}function no(n){return null!==n.template}function AO(n){return 0!=(256&n[2])}function wa(n,t){return n.hasOwnProperty(ts)?n[ts]:null}class IO{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function kn(){return Ow}function Ow(n){return n.type.prototype.ngOnChanges&&(n.setInput=kO),MO}function MO(){const n=Lw(this),t=n?.current;if(t){const e=n.previous;if(e===gl)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function kO(n,t,e,i){const r=Lw(n)||function RO(n,t){return n[Pw]=t}(n,{previous:gl,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new IO(l&&l.currentValue,t,s===gl),n[i]=t}kn.ngInherit=!0;const Pw="__ngSimpleChanges__";function Lw(n){return n[Pw]||null}function Xn(n){for(;Array.isArray(n);)n=n[0];return n}function Eh(n,t){return Xn(t[n])}function Pr(n,t){return Xn(t[n.index])}function Ag(n,t){return n.data[t]}function Cl(n,t){return n[t]}function br(n,t){const e=t[n];return tr(e)?e:e[0]}function Nw(n){return 4==(4&n[2])}function Tg(n){return 64==(64&n[2])}function Us(n,t){return null==t?null:n[t]}function Fw(n){n[18]=0}function xg(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const Tt={lFrame:Ww(null),bindingsEnabled:!0};function Hw(){return Tt.bindingsEnabled}function Ae(){return Tt.lFrame.lView}function Jt(){return Tt.lFrame.tView}function oe(n){return Tt.lFrame.contextLView=n,n[8]}function se(n){return Tt.lFrame.contextLView=null,n}function oi(){let n=Vw();for(;null!==n&&64===n.type;)n=n.parent;return n}function Vw(){return Tt.lFrame.currentTNode}function So(n,t){const e=Tt.lFrame;e.currentTNode=n,e.isParent=t}function Ig(){return Tt.lFrame.isParent}function Mg(){Tt.lFrame.isParent=!1}function zi(){const n=Tt.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function wl(){return Tt.lFrame.bindingIndex++}function is(n){const t=Tt.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function WO(n,t){const e=Tt.lFrame;e.bindingIndex=e.bindingRootIndex=n,kg(t)}function kg(n){Tt.lFrame.currentDirectiveIndex=n}function Rg(n){const t=Tt.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function qw(){return Tt.lFrame.currentQueryIndex}function Og(n){Tt.lFrame.currentQueryIndex=n}function KO(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function zw(n,t,e){if(e&vt.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&vt.Host||(r=KO(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=Tt.lFrame=Gw();return i.currentTNode=t,i.lView=n,!0}function Pg(n){const t=Gw(),e=n[1];Tt.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Gw(){const n=Tt.lFrame,t=null===n?null:n.child;return null===t?Ww(n):t}function Ww(n){const t={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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function $w(){const n=Tt.lFrame;return Tt.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Kw=$w;function Lg(){const n=$w();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Gi(){return Tt.lFrame.selectedIndex}function qs(n){Tt.lFrame.selectedIndex=n}function Hn(){const n=Tt.lFrame;return Ag(n.tView,n.selectedIndex)}function El(){Tt.lFrame.currentNamespace="svg"}function Sh(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class ou{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function xh(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Bg=!0;function Mh(n){const t=Bg;return Bg=n,t}let aP=0;const Ao={};function au(n,t){const e=Vg(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Hg(i.data,n),Hg(t,null),Hg(i.blueprint,null));const r=kh(n,t),o=n.injectorIndex;if(e0(r)){const s=Dl(r),a=Sl(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function Hg(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Vg(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function kh(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=u0(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Rh(n,t,e){!function lP(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(eu)&&(i=e[eu]),null==i&&(i=e[eu]=aP++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:hP:t}(e);if("function"==typeof o){if(!zw(t,n,i))return i&vt.Host?r0(r,0,i):o0(t,e,i,r);try{const s=o(i);if(null!=s||i&vt.Optional)return s;mh()}finally{Kw()}}else if("number"==typeof o){let s=null,a=Vg(n,t),l=-1,c=i&vt.Host?t[16][6]:null;for((-1===a||i&vt.SkipSelf)&&(l=-1===a?kh(n,t):t[a+8],-1!==l&&c0(i,!1)?(s=t[1],a=Dl(l),t=Sl(l,t)):a=-1);-1!==a;){const u=t[1];if(l0(o,a,u.data)){const d=uP(a,t,e,s,i,c);if(d!==Ao)return d}l=t[a+8],-1!==l&&c0(i,t[1].data[a+8]===c)&&l0(o,a,t)?(s=u,a=Dl(l),t=Sl(l,t)):a=-1}}return r}function uP(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Oh(a,s,e,null==i?Ch(a)&&Bg:i!=s&&0!=(3&a.type),r&vt.Host&&o===a);return null!==u?lu(t,s,u,a):Ao}function Oh(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f=l&&_.type===e)return f}if(r){const f=s[l];if(f&&no(f)&&f.type===e)return l}return null}function lu(n,t,e,i){let r=n[e];const o=t.data;if(function nP(n){return n instanceof ou}(r)){const s=r;s.resolving&&function dO(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Se(-200,`Circular dependency in DI detected for ${n}${e}`)}(function cn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():It(n)}(o[e]));const a=Mh(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?kr(s.injectImpl):null;zw(n,i,vt.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function eP(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Ow(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&kr(l),Mh(a),s.resolving=!1,Kw()}}return r}function l0(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[ts]||jg(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[ts]||jg(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function jg(n){return pg(n)?()=>{const t=jg(Ct(n));return t&&t()}:wa(n)}function u0(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function io(n){return function cP(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function Ug(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);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(xl)?l[xl]:Object.defineProperty(l,xl,{value:[]})[xl];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=n,r.annotationCls=r,r})}class pe{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=fe({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Cr(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?rs(e,t):t(e))}function h0(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Ph(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function du(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function _P(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function zg(n,t){const e=kl(n,t);if(e>=0)return n[1|e]}function kl(n,t){return function m0(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Hh}()?.createHTML(n)||n}function A0(n){return function Xg(){if(void 0===Vh&&(Vh=null,gn.trustedTypes))try{Vh=gn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Vh}()?.createHTML(n)||n}class Da{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class qP extends Da{getTypeName(){return"HTML"}}class zP extends Da{getTypeName(){return"Style"}}class GP extends Da{getTypeName(){return"Script"}}class WP extends Da{getTypeName(){return"URL"}}class $P extends Da{getTypeName(){return"ResourceURL"}}function Er(n){return n instanceof Da?n.changingThisBreaksApplicationSecurity:n}function To(n,t){const e=function KP(n){return n instanceof Da&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}class eL{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Pl(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class tL{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Pl(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Pl(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0vu(t.trim())).join(", ")}function xo(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function yu(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const k0=xo("area,br,col,hr,img,wbr"),R0=xo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),O0=xo("rp,rt"),Zg=yu(k0,yu(R0,xo("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")),yu(O0,xo("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")),yu(O0,R0)),Jg=xo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),e_=xo("srcset"),P0=yu(Jg,e_,xo("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),xo("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")),oL=xo("script,style,template");class sL{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.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(t){const e=t.nodeName.toLowerCase();if(!Zg.hasOwnProperty(e))return this.sanitizedSomething=!0,!oL.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();Zg.hasOwnProperty(e)&&!k0.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(L0(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const aL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lL=/([^\#-~ |!])/g;function L0(n){return n.replace(/&/g,"&").replace(aL,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(lL,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let jh;function N0(n,t){let e=null;try{jh=jh||function I0(n){const t=new tL(n);return function nL(){try{return!!(new window.DOMParser).parseFromString(Pl(""),"text/html")}catch{return!1}}()?new eL(t):t}(n);let i=t?String(t):"";e=jh.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=jh.getInertBodyElement(i)}while(i!==o);return Pl((new sL).sanitizeChildren(t_(e)||e))}finally{if(e){const i=t_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function t_(n){return"content"in n&&function cL(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var on=(()=>((on=on||{})[on.NONE=0]="NONE",on[on.HTML=1]="HTML",on[on.STYLE=2]="STYLE",on[on.SCRIPT=3]="SCRIPT",on[on.URL=4]="URL",on[on.RESOURCE_URL=5]="RESOURCE_URL",on))();function n_(n){const t=bu();return t?A0(t.sanitize(on.HTML,n)||""):To(n,"HTML")?A0(Er(n)):N0(function S0(){return void 0!==Yg?Yg:typeof document<"u"?document:void 0}(),It(n))}function Zn(n){const t=bu();return t?t.sanitize(on.URL,n)||"":To(n,"URL")?Er(n):vu(It(n))}function bu(){const n=Ae();return n&&n[12]}const B0=new pe("ENVIRONMENT_INITIALIZER"),i_=new pe("INJECTOR",-1),H0=new pe("INJECTOR_DEF_TYPES");class V0{get(t,e=hu){if(e===hu){const i=new Error(`NullInjectorError: No provider for ${yn(t)}!`);throw i.name="NullInjectorError",i}return e}}function gL(...n){return{\u0275providers:j0(0,n)}}function j0(n,...t){const e=[],i=new Set;let r;return rs(t,o=>{const s=o;r_(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&U0(r,e),e}function U0(n,t){for(let e=0;e{t.push(o)})}}function r_(n,t,e,i){if(!(n=Ct(n)))return!1;let r=null,o=Ew(n);const s=!o&&mn(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=Ew(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)r_(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{rs(o.imports,u=>{r_(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&U0(c,t)}if(!a){const c=wa(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:un},{provide:H0,useValue:r,multi:!0},{provide:B0,useValue:()=>T(r),multi:!0})}const l=o.providers;null==l||a||rs(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const _L=vn({provide:String,useValue:vn});function o_(n){return null!==n&&"object"==typeof n&&_L in n}function Sa(n){return"function"==typeof n}const s_=new pe("Set Injector scope."),Uh={},yL={};let a_;function qh(){return void 0===a_&&(a_=new V0),a_}class Aa{}class G0 extends Aa{constructor(t,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,c_(t,s=>this.processProvider(s)),this.records.set(i_,Ll(void 0,this)),r.has("environment")&&this.records.set(Aa,Ll(void 0,this));const o=this.records.get(s_);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(H0.multi,un,vt.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=Rl(this),i=kr(void 0);try{return t()}finally{Rl(e),kr(i)}}get(t,e=hu,i=vt.Default){this.assertNotDestroyed();const r=Rl(this),o=kr(void 0);try{if(!(i&vt.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function DL(n){return"function"==typeof n||"object"==typeof n&&n instanceof pe}(t)&&fg(t);a=l&&this.injectableDefInScope(l)?Ll(l_(t),Uh):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&vt.Self?qh():this.parent).get(t,e=i&vt.Optional&&e===hu?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Nh]=s[Nh]||[]).unshift(yn(t)),r)throw s;return function IP(n,t,e,i){const r=n[Nh];throw t[g0]&&r.unshift(t[g0]),n.message=function MP(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=yn(t);if(Array.isArray(t))r=t.map(yn).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):yn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(SP,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Nh]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{kr(o),Rl(r)}}resolveInjectorInitializers(){const t=Rl(this),e=kr(void 0);try{const i=this.get(B0.multi,un,vt.Self);for(const r of i)r()}finally{Rl(t),kr(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(yn(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Se(205,!1)}processProvider(t){let e=Sa(t=Ct(t))?t:Ct(t&&t.provide);const i=function CL(n){return o_(n)?Ll(void 0,n.useValue):Ll(W0(n),Uh)}(t);if(Sa(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Ll(void 0,Uh,!0),r.factory=()=>$g(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Uh&&(e.value=yL,e.value=e.factory()),"object"==typeof e.value&&e.value&&function EL(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Ct(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function l_(n){const t=fg(n),e=null!==t?t.factory:wa(n);if(null!==e)return e;if(n instanceof pe)throw new Se(204,!1);if(n instanceof Function)return function bL(n){const t=n.length;if(t>0)throw du(t,"?"),new Se(204,!1);const e=function gO(n){const t=n&&(n[gh]||n[Dw]);if(t){const e=function _O(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Se(204,!1)}function W0(n,t,e){let i;if(Sa(n)){const r=Ct(n);return wa(r)||l_(r)}if(o_(n))i=()=>Ct(n.useValue);else if(function z0(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...$g(n.deps||[]));else if(function q0(n){return!(!n||!n.useExisting)}(n))i=()=>T(Ct(n.useExisting));else{const r=Ct(n&&(n.useClass||n.provide));if(!function wL(n){return!!n.deps}(n))return wa(r)||l_(r);i=()=>new r(...$g(n.deps))}return i}function Ll(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function SL(n){return!!n.\u0275providers}function c_(n,t){for(const e of n)Array.isArray(e)?c_(e,t):SL(e)?c_(e.\u0275providers,t):t(e)}class $0{}class xL{resolveComponentFactory(t){throw function TL(n){const t=Error(`No component factory found for ${yn(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let ro=(()=>{class n{}return n.NULL=new xL,n})();function IL(){return Nl(oi(),Ae())}function Nl(n,t){return new Je(Pr(n,t))}let Je=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=IL,n})();function ML(n){return n instanceof Je?n.nativeElement:n}class Cu{}let oo=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function kL(){const n=Ae(),e=br(oi().index,n);return(tr(e)?e:n)[11]}(),n})(),RL=(()=>{class n{}return n.\u0275prov=fe({token:n,providedIn:"root",factory:()=>null}),n})();class Ta{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Y0=new Ta("14.1.0"),u_={};function m_(n){return n.ngOriginalError}class Gs{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&m_(t);for(;e&&m_(e);)e=m_(e);return e||null}}const g_=new Map;let GL=0;const v_="__ngContext__";function ki(n,t){tr(t)?(n[v_]=t[20],function $L(n){g_.set(n[20],n)}(t)):n[v_]=t}function wu(n){const t=n[v_];return"number"==typeof t?function eE(n){return g_.get(n)||null}(t):t||null}function y_(n){const t=wu(n);return t?tr(t)?t:t.lView:null}const nN=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(gn))();function ss(n){return n instanceof Function?n():n}var nr=(()=>((nr=nr||{})[nr.Important=1]="Important",nr[nr.DashCase=2]="DashCase",nr))();function C_(n,t){return undefined(n,t)}function Eu(n){const t=n[3];return to(t)?t[3]:t}function w_(n){return lE(n[13])}function E_(n){return lE(n[4])}function lE(n){for(;null!==n&&!to(n);)n=n[4];return n}function Bl(n,t,e,i,r){if(null!=i){let o,s=!1;to(i)?o=i:tr(i)&&(s=!0,i=i[0]);const a=Xn(i);0===n&&null!==e?null==r?fE(t,e,a):xa(t,e,a,r||null,!0):1===n&&null!==e?xa(t,e,a,r||null,!0):2===n?function CE(n,t,e){const i=zh(n,t);i&&function bN(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function EN(n,t,e,i,r){const o=e[7];o!==Xn(e)&&Bl(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=Ph(n,10+t);!function hN(n,t){Du(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function dE(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&Du(n,t,e,3,null,null),function mN(n){let t=n[13];if(!t)return T_(n[1],n);for(;t;){let e=null;if(tr(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)tr(t)&&T_(t[1],t),t=t[3];null===t&&(t=n),tr(t)&&T_(t[1],t),e=t&&t[4]}t=e}}(t)}}function T_(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function yN(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==DE(f,c,0)||2&i&&c!==h){if(so(i))return!1;s=!0}}}}else{if(!s&&!so(i)&&!so(l))return!1;if(s&&so(l))continue;s=!1,i=l|1&i}}return so(i)||s}function so(n){return 0==(1&n)}function xN(n,t,e,i){if(null===t)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&&!so(s)&&(t+=xE(o,r),r=""),i=s,o=o||!so(i);e++}return""!==r&&(t+=xE(o,r)),t}const Mt={};function m(n){IE(Jt(),Ae(),Gi()+n,!1)}function IE(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Ah(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Th(t,o,0,e)}qs(e)}function OE(n,t=null,e=null,i){const r=PE(n,t,e,i);return r.resolveInjectorInitializers(),r}function PE(n,t=null,e=null,i,r=new Set){const o=[e||un,gL(n)];return i=i||("object"==typeof n?void 0:yn(n)),new G0(o,t||qh(),i||null,r)}let Rn=(()=>{class n{static create(e,i){if(Array.isArray(e))return OE({name:""},i,e,"");{const r=e.name??"";return OE({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=hu,n.NULL=new V0,n.\u0275prov=fe({token:n,providedIn:"any",factory:()=>T(i_)}),n.__NG_ELEMENT_ID__=-1,n})();function p(n,t=vt.Default){const e=Ae();return null===e?T(n,t):s0(oi(),e,Ct(n),t)}function Vl(){throw new Error("invalid")}function Kh(n,t){return n<<17|t<<2}function ao(n){return n>>17&32767}function N_(n){return 2|n}function as(n){return(131068&n)>>2}function F_(n,t){return-131069&n|t<<2}function B_(n){return 1|n}function XE(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&IE(n,t,22,!1),e(i,r)}finally{qs(o)}}function JE(n,t,e){if(Cg(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function sD(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function aD(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function SF(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&J_(e)}}function J_(n){for(let i=w_(n);null!==i;i=E_(i))for(let r=10;r0&&J_(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&J_(r)}}function RF(n,t){const e=br(t,n),i=e[1];(function OF(n,t){for(let e=t.length;ePromise.resolve(null))();function pD(n){return n[7]||(n[7]=[])}function fD(n){return n.cleanup||(n.cleanup=[])}function mD(n,t,e){return(null===n||no(n))&&(e=function NO(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function gD(n,t){const e=n[9],i=e?e.get(Gs,null):null;i&&i.handleError(t)}function iv(n,t,e,i,r){for(let o=0;o-1&&(A_(t,i),Ph(e,i))}this._attachedToViewContainer=!1}dE(this._lView[1],this._lView)}onDestroy(t){tD(this._lView[1],this._lView,null,t)}markForCheck(){ev(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function tv(n,t,e){const i=t[10];i.begin&&i.begin();try{Su(n,t,n.template,e)}catch(r){throw gD(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Se(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function fN(n,t){Du(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Se(902,!1);this._appRef=t}}class NF extends Au{constructor(t){super(t),this._view=t}detectChanges(){hD(this._view)}checkNoChanges(){}get context(){return null}}class rv extends ro{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=mn(t);return new Tu(e,this.ngModule)}}function _D(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class BF{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,u_,i);return r!==u_||e===u_?r:this.parentInjector.get(t,e,i)}}class Tu extends $0{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function PN(n){return n.map(ON).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return _D(this.componentDef.inputs)}get outputs(){return _D(this.componentDef.outputs)}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Aa?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new BF(t,o):t,a=s.get(Cu,null);if(null===a)throw new Se(407,!1);const l=s.get(RL,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function mF(n,t,e){return n.selectRootElement(t,e===Jr.ShadowDom)}(c,i,this.componentDef.encapsulation):S_(a.createRenderer(null,this.componentDef),u,function FF(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),h=this.componentDef.onPush?288:272,f=function qF(n,t){return{components:[],scheduler:n||nN,clean:LF,playerHandler:t||null,flags:0}}(),_=Q_(0,null,null,1,0,null,null,null,null,null),S=Xh(null,_,f,h,null,null,a,c,l,s,null);let U,Z;Pg(S);try{const ve=function jF(n,t,e,i,r,o){const s=e[1];e[22]=n;const l=jl(s,22,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(ep(l,c,!0),null!==n&&(xh(r,n,c),null!==l.classes&&k_(r,n,l.classes),null!==l.styles&&EE(r,n,l.styles)));const u=i.createRenderer(n,t),d=Xh(e,eD(t),null,t.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(Rh(au(l,e),s,t.type),aD(s,l),lD(l,e.length,1)),Jh(e,d),e[22]=d}(d,this.componentDef,S,a,c);if(d)if(i)xh(c,d,["ng-version",Y0.full]);else{const{attrs:ee,classes:Te}=function LN(n){const t=[],e=[];let i=1,r=2;for(;i0&&k_(c,d,Te.join(" "))}if(Z=Ag(_,22),void 0!==e){const ee=Z.projection=[];for(let Te=0;Te=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ih(r.hostAttrs,e=Ih(e,r.hostAttrs))}}(i)}function ov(n){return n===gl?{}:n===un?[]:n}function WF(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function $F(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function KF(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let np=null;function Ia(){if(!np){const n=gn.Symbol;if(n&&n.iterator)np=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Xn(et[i.index])):i.index;let Te=null;if(!a&&l&&(Te=function l3(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==Te)(Te.__ngLastListenerFn__||Te).__ngNextListenerFn__=o,Te.__ngLastListenerFn__=o,f=!1;else{o=kD(i,t,d,o,!1);const et=e.listen(Z,r,o);h.push(o,et),u&&u.push(r,ee,ve,ve+1)}}else o=kD(i,t,d,o,!1);const _=i.outputs;let S;if(f&&null!==_&&(S=_[r])){const U=S.length;if(U)for(let Z=0;Z0;)t=t[15],n--;return t}(n,Tt.lFrame.contextLView))[8]}(n)}function c3(n,t){let e=null;const i=function IN(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const ai={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jD(n){return n.substring(ai.key,ai.keyEnd)}function UD(n,t){const e=ai.textEnd;return e===t?-1:(t=ai.keyEnd=function g3(n,t,e){for(;t32;)t++;return t}(n,ai.key=t,e),Zl(n,t,e))}function Zl(n,t,e){for(;t=0;e=UD(t,e))wr(n,jD(t),!0)}function lo(n,t,e,i){const r=Ae(),o=Jt(),s=is(2);o.firstUpdatePass&&KD(o,n,s,i),t!==Mt&&Ri(r,s,t)&&QD(o,o.data[Gi()],r,r[11],n,r[s+1]=function A3(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=yn(Er(n)))),n}(t,e),i,s)}function co(n,t,e,i){const r=Jt(),o=is(2);r.firstUpdatePass&&KD(r,null,o,i);const s=Ae();if(e!==Mt&&Ri(s,o,e)){const a=r.data[Gi()];if(ZD(a,i)&&!$D(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=hg(l,e||"")),av(r,a,s,e,i)}else!function S3(n,t,e,i,r,o,s,a){r===Mt&&(r=un);let l=0,c=0,u=0=n.expandoStartIndex}function KD(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[Gi()],s=$D(n,e);ZD(o,i)&&null===t&&!s&&(t=!1),t=function b3(n,t,e,i){const r=Rg(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=ku(e=uv(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=uv(r,n,t,e,i),null===o){let l=function C3(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==as(i))return n[ao(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=uv(null,n,t,l[1],i),l=ku(l,t.attrs,i),function w3(n,t,e,i){n[ao(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function E3(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=ao(n[a+1]);n[i+1]=Kh(h,a),0!==h&&(n[h+1]=F_(n[h+1],i)),n[a+1]=function eF(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Kh(a,0),0!==a&&(n[a+1]=F_(n[a+1],i)),a=i;else n[i+1]=Kh(l,0),0===a?a=i:n[l+1]=F_(n[l+1],i),l=i;c&&(n[i+1]=N_(n[i+1])),VD(n,u,i,!0),VD(n,u,i,!1),function d3(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&kl(o,t)>=0&&(e[i+1]=B_(e[i+1]))}(t,u,n,i,o),s=Kh(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function uv(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Mt&&(h=d?un:void 0);let f=d?zg(h,i):u===i?h:void 0;if(c&&!op(f)&&(f=zg(l,i)),op(f)&&(a=f,s))return a;const _=n[r+1];r=s?ao(_):as(_)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=zg(l,i))}return a}function op(n){return void 0!==n}function ZD(n,t){return 0!=(n.flags&(t?16:32))}function j(n,t=""){const e=Ae(),i=Jt(),r=n+22,o=i.firstCreatePass?jl(i,r,1,t,null):i.data[r],s=e[r]=function D_(n,t){return n.createText(t)}(e[11],t);Gh(i,e,s,o),So(o,!1)}function we(n){return Qe("",n,""),we}function Qe(n,t,e){const i=Ae(),r=zl(i,n,t,e);return r!==Mt&&ls(i,Gi(),r),Qe}function Oo(n,t,e,i,r){const o=Ae(),s=Gl(o,n,t,e,i,r);return s!==Mt&&ls(o,Gi(),s),Oo}function Po(n,t,e){const i=Ae();return Ri(i,wl(),t)&&Dr(Jt(),Hn(),i,n,t,i[11],e,!0),Po}function Ru(n,t,e){const i=Ae();if(Ri(i,wl(),t)){const o=Jt(),s=Hn();Dr(o,s,i,n,t,mD(Rg(o.data),s,i),e,!0)}return Ru}const ka=void 0;var G3=["en",[["a","p"],["AM","PM"],ka],[["AM","PM"],ka,ka],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ka,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ka,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ka,"{1} 'at' {0}",ka],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function z3(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Jl={};function $i(n){const t=function W3(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=_S(t);if(e)return e;const i=t.split("-")[0];if(e=_S(i),e)return e;if("en"===i)return G3;throw new Se(701,!1)}function _S(n){return n in Jl||(Jl[n]=gn.ng&&gn.ng.common&&gn.ng.common.locales&&gn.ng.common.locales[n]),Jl[n]}var Ye=(()=>((Ye=Ye||{})[Ye.LocaleId=0]="LocaleId",Ye[Ye.DayPeriodsFormat=1]="DayPeriodsFormat",Ye[Ye.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ye[Ye.DaysFormat=3]="DaysFormat",Ye[Ye.DaysStandalone=4]="DaysStandalone",Ye[Ye.MonthsFormat=5]="MonthsFormat",Ye[Ye.MonthsStandalone=6]="MonthsStandalone",Ye[Ye.Eras=7]="Eras",Ye[Ye.FirstDayOfWeek=8]="FirstDayOfWeek",Ye[Ye.WeekendRange=9]="WeekendRange",Ye[Ye.DateFormat=10]="DateFormat",Ye[Ye.TimeFormat=11]="TimeFormat",Ye[Ye.DateTimeFormat=12]="DateTimeFormat",Ye[Ye.NumberSymbols=13]="NumberSymbols",Ye[Ye.NumberFormats=14]="NumberFormats",Ye[Ye.CurrencyCode=15]="CurrencyCode",Ye[Ye.CurrencySymbol=16]="CurrencySymbol",Ye[Ye.CurrencyName=17]="CurrencyName",Ye[Ye.Currencies=18]="Currencies",Ye[Ye.Directionality=19]="Directionality",Ye[Ye.PluralCase=20]="PluralCase",Ye[Ye.ExtraData=21]="ExtraData",Ye))();const ec="en-US";let vS=ec;function pv(n,t,e,i,r){if(n=Ct(n),Array.isArray(n))for(let o=0;o>20;if(Sa(n)||!n.multi){const f=new ou(l,r,p),_=mv(a,t,r?u:u+h,d);-1===_?(Rh(au(c,s),o,a),fv(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[_]=f,s[_]=f)}else{const f=mv(a,t,u+h,d),_=mv(a,t,u,u+h),S=f>=0&&e[f],U=_>=0&&e[_];if(r&&!U||!r&&!S){Rh(au(c,s),o,a);const Z=function qB(n,t,e,i,r){const o=new ou(n,e,p);return o.multi=[],o.index=t,o.componentProviders=0,qS(o,r,i&&!e),o}(r?UB:jB,e.length,r,i,l);!r&&U&&(e[_].providerFactory=Z),fv(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(Z),s.push(Z)}else fv(o,n,f>-1?f:_,qS(e[r?_:f],l,!r&&i));!r&&i&&U&&e[_].componentProviders++}}}function fv(n,t,e,i){const r=Sa(t),o=function vL(n){return!!n.useClass}(t);if(r||o){const l=(o?Ct(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.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 qS(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function mv(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function VB(n,t,e){const i=Jt();if(i.firstCreatePass){const r=no(n);pv(e,i.data,i.blueprint,r,!0),pv(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Ra{}class zS{}class GS extends Ra{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new rv(this);const i=vr(t);this._bootstrapComponents=ss(i.bootstrap),this._r3Injector=PE(t,e,[{provide:Ra,useValue:this},{provide:ro,useValue:this.componentFactoryResolver}],yn(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class _v extends zS{constructor(t){super(),this.moduleType=t}create(t){return new GS(this.moduleType,t)}}class GB extends Ra{constructor(t,e,i){super(),this.componentFactoryResolver=new rv(this),this.instance=null;const r=new G0([...t,{provide:Ra,useValue:this},{provide:ro,useValue:this.componentFactoryResolver}],e||qh(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function bv(n,t,e){const i=zi()+n,r=Ae();return r[i]===Mt?Mo(r,i,e?t.call(e):t()):function Iu(n,t){return n[t]}(r,i)}function Wn(n,t,e,i){return JS(Ae(),zi(),n,t,e,i)}function ZS(n,t,e,i,r){return function eA(n,t,e,i,r,o,s){const a=t+e;return Ma(n,a,r,o)?Mo(n,a+2,s?i.call(s,r,o):i(r,o)):Fu(n,a+2)}(Ae(),zi(),n,t,e,i,r)}function Ki(n,t,e,i,r,o,s){return function nA(n,t,e,i,r,o,s,a,l){const c=t+e;return function Lr(n,t,e,i,r,o){const s=Ma(n,t,e,i);return Ma(n,t+2,r,o)||s}(n,c,r,o,s,a)?Mo(n,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):Fu(n,c+4)}(Ae(),zi(),n,t,e,i,r,o,s)}function Fu(n,t){const e=n[t];return e===Mt?void 0:e}function JS(n,t,e,i,r,o){const s=t+e;return Ri(n,s,r)?Mo(n,s+1,o?i.call(o,r):i(r)):Fu(n,s+1)}function Xe(n,t){const e=Jt();let i;const r=n+22;e.firstCreatePass?(i=function c5(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,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=wa(i.type)),s=kr(p);try{const a=Mh(!1),l=o();return Mh(a),function o3(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,Ae(),r,l),l}finally{kr(s)}}function Ze(n,t,e){const i=n+22,r=Ae(),o=Cl(r,i);return function Bu(n,t){return n[1].data[t].pure}(r,i)?JS(r,zi(),t,o.transform,e,o):o.transform(e)}function Cv(n){return t=>{setTimeout(n,void 0,t)}}const Be=class f5 extends L{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Cv(o),r&&(r=Cv(r)),s&&(s=Cv(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof w&&t.add(a),a}};function m5(){return this._results[Ia()]()}class Oa{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Ia(),i=Oa.prototype;i[e]||(i[e]=m5)}get changes(){return this._changes||(this._changes=new Be)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=Cr(t);(this._changesDetected=!function mP(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=v5,n})();const g5=bn,_5=class extends g5{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=Xh(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),Zh(i,r,t),new Au(r)}};function v5(){return up(oi(),Ae())}function up(n,t){return 4&n.type?new _5(t,n,Nl(n,t)):null}let En=(()=>{class n{}return n.__NG_ELEMENT_ID__=y5,n})();function y5(){return sA(oi(),Ae())}const b5=En,rA=class extends b5{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Nl(this._hostTNode,this._hostLView)}get injector(){return new Al(this._hostTNode,this._hostLView)}get parentInjector(){const t=kh(this._hostTNode,this._hostLView);if(e0(t)){const e=Sl(t,this._hostLView),i=Dl(t);return new Al(e[1].data[i+8],e)}return new Al(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=oA(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function uu(n){return"function"==typeof n}(t);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?t:new Tu(mn(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Aa,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function BO(n){return to(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new rA(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function gN(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=hp,this.reject=hp,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 n.\u0275fac=function(e){return new(e||n)(T(MA,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oc=new pe("AppId",{providedIn:"root",factory:function kA(){return`${Rv()}${Rv()}${Rv()}`}});function Rv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const RA=new pe("Platform Initializer"),fp=new pe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),K5=new pe("appBootstrapListener"),Un=new pe("AnimationModuleType");let Y5=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Lo=new pe("LocaleId",{providedIn:"root",factory:()=>Ea(Lo,vt.Optional|vt.SkipSelf)||function Q5(){return typeof $localize<"u"&&$localize.locale||ec}()});class Z5{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let OA=(()=>{class n{compileModuleSync(e){return new _v(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=ss(vr(e).declarations).reduce((s,a)=>{const l=mn(a);return l&&s.push(new Tu(l)),s},[]);return new Z5(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const t4=(()=>Promise.resolve(0))();function Ov(n){typeof Zone>"u"?t4.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class nt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Be(!1),this.onMicrotaskEmpty=new Be(!1),this.onStable=new Be(!1),this.onError=new Be(!1),typeof Zone>"u")throw new Se(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function n4(){let n=gn.requestAnimationFrame,t=gn.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function s4(n){const t=()=>{!function o4(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(gn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Lv(n),n.isCheckStableRunning=!0,Pv(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Lv(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return NA(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),FA(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return NA(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),FA(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Lv(n),Pv(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!nt.isInAngularZone())throw new Se(909,!1)}static assertNotInAngularZone(){if(nt.isInAngularZone())throw new Se(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,r4,hp,hp);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const r4={};function Pv(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Lv(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function NA(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function FA(n){n._nesting--,Pv(n)}class a4{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Be,this.onMicrotaskEmpty=new Be,this.onStable=new Be,this.onError=new Be}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const BA=new pe(""),mp=new pe("");let Bv,Nv=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Bv||(function l4(n){Bv=n}(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:()=>{nt.assertNotInAngularZone(),Ov(()=>{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())Ov(()=>{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 n.\u0275fac=function(e){return new(e||n)(T(nt),T(Fv),T(mp))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),Fv=(()=>{class n{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 Bv?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Ks=null;const HA=new pe("AllowMultipleToken"),Hv=new pe("PlatformDestroyListeners");function jA(n,t,e=[]){const i=`Platform: ${t}`,r=new pe(i);return(o=[])=>{let s=Vv();if(!s||s.injector.get(HA,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function d4(n){if(Ks&&!Ks.get(HA,!1))throw new Se(400,!1);Ks=n;const t=n.get(qA);(function VA(n){const t=n.get(RA,null);t&&t.forEach(e=>e())})(n)}(function UA(n=[],t){return Rn.create({name:t,providers:[{provide:s_,useValue:"platform"},{provide:Hv,useValue:new Set([()=>Ks=null])},...n]})}(a,i))}return function p4(n){const t=Vv();if(!t)throw new Se(401,!1);return t}()}}function Vv(){return Ks?.get(qA)??null}let qA=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function f4(n,t){let e;return e="noop"===n?new a4:("zone.js"===n?void 0:n)||new nt(t),e}(i?.ngZone,function zA(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:nt,useValue:r}];return r.run(()=>{const s=Rn.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(Gs,null);if(!l)throw new Se(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{gp(this._modules,a),c.unsubscribe()})}),function GA(n,t,e){try{const i=e();return Mu(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(pp);return c.runInitializers(),c.donePromise.then(()=>(function yS(n){_r(n,"Expected localeId to be defined"),"string"==typeof n&&(vS=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Lo,ec)||ec),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=WA({},i);return function c4(n,t,e){const i=new _v(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ys);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Se(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 Se(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Hv,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(T(Rn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function WA(n,t){return Array.isArray(t)?t.reduce(WA,n):{...n,...t}}let Ys=(()=>{class n{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 b(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new b(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{nt.assertNotInAngularZone(),Ov(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{nt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Mn(o,s.pipe(function Cw(){return n=>hh()(function aO(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new lO(r,t));const o=Object.create(i,rO);return o.source=i,o.subjectFactory=r,o}}(cO)(n))}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof $0;if(!this._injector.get(pp).done)throw!r&&function ic(n){const t=mn(n)||Ui(n)||qi(n);return null!==t&&t.standalone}(e),new Se(405,false);let s;s=r?e:this._injector.get(ro).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function u4(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Ra),c=s.create(Rn.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(BA,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),gp(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Se(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;gp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(K5,[]).concat(this._bootstrapListeners).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),()=>gp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Se(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(T(nt),T(Aa),T(Gs))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function gp(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let KA=!0,Bt=(()=>{class n{}return n.__NG_ELEMENT_ID__=_4,n})();function _4(n){return function v4(n,t,e){if(Ch(n)&&!e){const i=br(n.index,t);return new Au(i,i)}return 47&n.type?new Au(t[16],t):null}(oi(),Ae(),16==(16&n))}class JA{constructor(){}supports(t){return xu(t)}create(t){return new D4(t)}}const E4=(n,t)=>t;class D4{constructor(t){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=t||E4}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){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=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new S4(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=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(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new eT),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new eT),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class S4{constructor(t,e){this.item=t,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 A4{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class eT{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new A4,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function tT(n,t,e){const i=n.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(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);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 x4(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class x4{constructor(t){this.key=t,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 iT(){return new us([new JA])}let us=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||iT()),deps:[[n,new mu,new os]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Se(901,!1)}}return n.\u0275prov=fe({token:n,providedIn:"root",factory:iT}),n})();function rT(){return new Vu([new nT])}let Vu=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||rT()),deps:[[n,new mu,new os]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Se(901,!1)}}return n.\u0275prov=fe({token:n,providedIn:"root",factory:rT}),n})();const k4=jA(null,"core",[]);let R4=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(T(Ys))},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})();let yp=null;function No(){return yp}const ht=new pe("DocumentToken");let Gv=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:function(){return function N4(){return T(oT)}()},providedIn:"platform"}),n})(),oT=(()=>{class n extends Gv{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return No().getBaseHref(this._doc)}onPopState(e){const i=No().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=No().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){sT()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){sT()?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 n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({token:n,factory:function(){return function F4(){return new oT(T(ht))}()},providedIn:"platform"}),n})();function sT(){return!!window.history.pushState}function aT(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function lT(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function La(n){return n&&"?"!==n[0]?"?"+n:n}let bp=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:function(){return function B4(){const n=T(ht).location;return new V4(T(Gv),n&&n.origin||"")}()},providedIn:"root"}),n})();const H4=new pe("appBaseHref");let V4=(()=>{class n extends bp{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");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}prepareExternalUrl(e){return aT(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+La(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+La(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+La(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 n.\u0275fac=function(e){return new(e||n)(T(Gv),T(H4,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),Na=(()=>{class n{constructor(e){this._subject=new Be,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=lT(cT(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+La(i))}normalize(e){return n.stripTrailingSlash(function U4(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,cT(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+La(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+La(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 n.normalizeQueryParams=La,n.joinWithSlash=aT,n.stripTrailingSlash=lT,n.\u0275fac=function(e){return new(e||n)(T(bp))},n.\u0275prov=fe({token:n,factory:function(){return function j4(){return new Na(T(bp))}()},providedIn:"root"}),n})();function cT(n){return n.replace(/\/index.html$/,"")}var $n=(()=>(($n=$n||{})[$n.Format=0]="Format",$n[$n.Standalone=1]="Standalone",$n))(),Kt=(()=>((Kt=Kt||{})[Kt.Narrow=0]="Narrow",Kt[Kt.Abbreviated=1]="Abbreviated",Kt[Kt.Wide=2]="Wide",Kt[Kt.Short=3]="Short",Kt))(),On=(()=>((On=On||{})[On.Short=0]="Short",On[On.Medium=1]="Medium",On[On.Long=2]="Long",On[On.Full=3]="Full",On))(),mt=(()=>((mt=mt||{})[mt.Decimal=0]="Decimal",mt[mt.Group=1]="Group",mt[mt.List=2]="List",mt[mt.PercentSign=3]="PercentSign",mt[mt.PlusSign=4]="PlusSign",mt[mt.MinusSign=5]="MinusSign",mt[mt.Exponential=6]="Exponential",mt[mt.SuperscriptingExponent=7]="SuperscriptingExponent",mt[mt.PerMille=8]="PerMille",mt[mt.Infinity=9]="Infinity",mt[mt.NaN=10]="NaN",mt[mt.TimeSeparator=11]="TimeSeparator",mt[mt.CurrencyDecimal=12]="CurrencyDecimal",mt[mt.CurrencyGroup=13]="CurrencyGroup",mt))();function Cp(n,t){return Fr($i(n)[Ye.DateFormat],t)}function wp(n,t){return Fr($i(n)[Ye.TimeFormat],t)}function Ep(n,t){return Fr($i(n)[Ye.DateTimeFormat],t)}function Nr(n,t){const e=$i(n),i=e[Ye.NumberSymbols][t];if(typeof i>"u"){if(t===mt.CurrencyDecimal)return e[Ye.NumberSymbols][mt.Decimal];if(t===mt.CurrencyGroup)return e[Ye.NumberSymbols][mt.Group]}return i}function dT(n){if(!n[Ye.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[Ye.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Fr(n,t){for(let e=t;e>-1;e--)if(typeof n[e]<"u")return n[e];throw new Error("Locale data API: locale data undefined")}function $v(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const tH=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ju={},nH=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var li=(()=>((li=li||{})[li.Short=0]="Short",li[li.ShortGMT=1]="ShortGMT",li[li.Long=2]="Long",li[li.Extended=3]="Extended",li))(),yt=(()=>((yt=yt||{})[yt.FullYear=0]="FullYear",yt[yt.Month=1]="Month",yt[yt.Date=2]="Date",yt[yt.Hours=3]="Hours",yt[yt.Minutes=4]="Minutes",yt[yt.Seconds=5]="Seconds",yt[yt.FractionalSeconds=6]="FractionalSeconds",yt[yt.Day=7]="Day",yt))(),jt=(()=>((jt=jt||{})[jt.DayPeriods=0]="DayPeriods",jt[jt.Days=1]="Days",jt[jt.Months=2]="Months",jt[jt.Eras=3]="Eras",jt))();function hT(n,t,e,i){let r=function dH(n){if(mT(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,o=1,s=1]=n.split("-").map(a=>+a);return Dp(r,o-1,s)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(tH))return function hH(n){const t=new Date(0);let e=0,i=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,o=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const s=Number(n[4]||0)-e,a=Number(n[5]||0)-i,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return o.call(t,s,a,l,c),t}(i)}const t=new Date(n);if(!mT(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=hs(e,t)||t;let a,s=[];for(;t;){if(a=nH.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;t=u}}let l=r.getTimezoneOffset();i&&(l=fT(i,l),r=function uH(n,t,e){const i=e?-1:1,r=n.getTimezoneOffset();return function cH(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(fT(t,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function lH(n){if(Yv[n])return Yv[n];let t;switch(n){case"G":case"GG":case"GGG":t=Dn(jt.Eras,Kt.Abbreviated);break;case"GGGG":t=Dn(jt.Eras,Kt.Wide);break;case"GGGGG":t=Dn(jt.Eras,Kt.Narrow);break;case"y":t=ei(yt.FullYear,1,0,!1,!0);break;case"yy":t=ei(yt.FullYear,2,0,!0,!0);break;case"yyy":t=ei(yt.FullYear,3,0,!1,!0);break;case"yyyy":t=ei(yt.FullYear,4,0,!1,!0);break;case"Y":t=xp(1);break;case"YY":t=xp(2,!0);break;case"YYY":t=xp(3);break;case"YYYY":t=xp(4);break;case"M":case"L":t=ei(yt.Month,1,1);break;case"MM":case"LL":t=ei(yt.Month,2,1);break;case"MMM":t=Dn(jt.Months,Kt.Abbreviated);break;case"MMMM":t=Dn(jt.Months,Kt.Wide);break;case"MMMMM":t=Dn(jt.Months,Kt.Narrow);break;case"LLL":t=Dn(jt.Months,Kt.Abbreviated,$n.Standalone);break;case"LLLL":t=Dn(jt.Months,Kt.Wide,$n.Standalone);break;case"LLLLL":t=Dn(jt.Months,Kt.Narrow,$n.Standalone);break;case"w":t=Kv(1);break;case"ww":t=Kv(2);break;case"W":t=Kv(1,!0);break;case"d":t=ei(yt.Date,1);break;case"dd":t=ei(yt.Date,2);break;case"c":case"cc":t=ei(yt.Day,1);break;case"ccc":t=Dn(jt.Days,Kt.Abbreviated,$n.Standalone);break;case"cccc":t=Dn(jt.Days,Kt.Wide,$n.Standalone);break;case"ccccc":t=Dn(jt.Days,Kt.Narrow,$n.Standalone);break;case"cccccc":t=Dn(jt.Days,Kt.Short,$n.Standalone);break;case"E":case"EE":case"EEE":t=Dn(jt.Days,Kt.Abbreviated);break;case"EEEE":t=Dn(jt.Days,Kt.Wide);break;case"EEEEE":t=Dn(jt.Days,Kt.Narrow);break;case"EEEEEE":t=Dn(jt.Days,Kt.Short);break;case"a":case"aa":case"aaa":t=Dn(jt.DayPeriods,Kt.Abbreviated);break;case"aaaa":t=Dn(jt.DayPeriods,Kt.Wide);break;case"aaaaa":t=Dn(jt.DayPeriods,Kt.Narrow);break;case"b":case"bb":case"bbb":t=Dn(jt.DayPeriods,Kt.Abbreviated,$n.Standalone,!0);break;case"bbbb":t=Dn(jt.DayPeriods,Kt.Wide,$n.Standalone,!0);break;case"bbbbb":t=Dn(jt.DayPeriods,Kt.Narrow,$n.Standalone,!0);break;case"B":case"BB":case"BBB":t=Dn(jt.DayPeriods,Kt.Abbreviated,$n.Format,!0);break;case"BBBB":t=Dn(jt.DayPeriods,Kt.Wide,$n.Format,!0);break;case"BBBBB":t=Dn(jt.DayPeriods,Kt.Narrow,$n.Format,!0);break;case"h":t=ei(yt.Hours,1,-12);break;case"hh":t=ei(yt.Hours,2,-12);break;case"H":t=ei(yt.Hours,1);break;case"HH":t=ei(yt.Hours,2);break;case"m":t=ei(yt.Minutes,1);break;case"mm":t=ei(yt.Minutes,2);break;case"s":t=ei(yt.Seconds,1);break;case"ss":t=ei(yt.Seconds,2);break;case"S":t=ei(yt.FractionalSeconds,1);break;case"SS":t=ei(yt.FractionalSeconds,2);break;case"SSS":t=ei(yt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ap(li.Short);break;case"ZZZZZ":t=Ap(li.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ap(li.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ap(li.Long);break;default:return null}return Yv[n]=t,t}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Dp(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function hs(n,t){const e=function q4(n){return $i(n)[Ye.LocaleId]}(n);if(ju[e]=ju[e]||{},ju[e][t])return ju[e][t];let i="";switch(t){case"shortDate":i=Cp(n,On.Short);break;case"mediumDate":i=Cp(n,On.Medium);break;case"longDate":i=Cp(n,On.Long);break;case"fullDate":i=Cp(n,On.Full);break;case"shortTime":i=wp(n,On.Short);break;case"mediumTime":i=wp(n,On.Medium);break;case"longTime":i=wp(n,On.Long);break;case"fullTime":i=wp(n,On.Full);break;case"short":const r=hs(n,"shortTime"),o=hs(n,"shortDate");i=Sp(Ep(n,On.Short),[r,o]);break;case"medium":const s=hs(n,"mediumTime"),a=hs(n,"mediumDate");i=Sp(Ep(n,On.Medium),[s,a]);break;case"long":const l=hs(n,"longTime"),c=hs(n,"longDate");i=Sp(Ep(n,On.Long),[l,c]);break;case"full":const u=hs(n,"fullTime"),d=hs(n,"fullDate");i=Sp(Ep(n,On.Full),[u,d])}return i&&(ju[e][t]=i),i}function Sp(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function ho(n,t,e="-",i,r){let o="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,o=e));let s=String(n);for(;s.length0||a>-e)&&(a+=e),n===yt.Hours)0===a&&-12===e&&(a=12);else if(n===yt.FractionalSeconds)return function iH(n,t){return ho(n,3).substring(0,t)}(a,t);const l=Nr(s,mt.MinusSign);return ho(a,t,l,i,r)}}function Dn(n,t,e=$n.Format,i=!1){return function(r,o){return function oH(n,t,e,i,r,o){switch(e){case jt.Months:return function W4(n,t,e){const i=$i(n),o=Fr([i[Ye.MonthsFormat],i[Ye.MonthsStandalone]],t);return Fr(o,e)}(t,r,i)[n.getMonth()];case jt.Days:return function G4(n,t,e){const i=$i(n),o=Fr([i[Ye.DaysFormat],i[Ye.DaysStandalone]],t);return Fr(o,e)}(t,r,i)[n.getDay()];case jt.DayPeriods:const s=n.getHours(),a=n.getMinutes();if(o){const c=function Q4(n){const t=$i(n);return dT(t),(t[Ye.ExtraData][2]||[]).map(i=>"string"==typeof i?$v(i):[$v(i[0]),$v(i[1])])}(t),u=function X4(n,t,e){const i=$i(n);dT(i);const o=Fr([i[Ye.ExtraData][0],i[Ye.ExtraData][1]],t)||[];return Fr(o,e)||[]}(t,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,_]=h,S=s>=f.hours&&a>=f.minutes,U=s<_.hours||s===_.hours&&a<_.minutes;if(f.hours<_.hours){if(S&&U)return!0}else if(S||U)return!0}else if(h.hours===s&&h.minutes===a)return!0;return!1});if(-1!==d)return u[d]}return function z4(n,t,e){const i=$i(n),o=Fr([i[Ye.DayPeriodsFormat],i[Ye.DayPeriodsStandalone]],t);return Fr(o,e)}(t,r,i)[s<12?0:1];case jt.Eras:return function $4(n,t){return Fr($i(n)[Ye.Eras],t)}(t,i)[n.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,o,n,t,e,i)}}function Ap(n){return function(t,e,i){const r=-1*i,o=Nr(e,mt.MinusSign),s=r>0?Math.floor(r/60):Math.ceil(r/60);switch(n){case li.Short:return(r>=0?"+":"")+ho(s,2,o)+ho(Math.abs(r%60),2,o);case li.ShortGMT:return"GMT"+(r>=0?"+":"")+ho(s,1,o);case li.Long:return"GMT"+(r>=0?"+":"")+ho(s,2,o)+":"+ho(Math.abs(r%60),2,o);case li.Extended:return 0===i?"Z":(r>=0?"+":"")+ho(s,2,o)+":"+ho(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${n}"`)}}}function pT(n){return Dp(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function Kv(n,t=!1){return function(e,i){let r;if(t){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=pT(e),s=function aH(n){const t=Dp(n,0,1).getDay();return Dp(n,0,1+(t<=4?4:11)-t)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return ho(r,n,Nr(i,mt.MinusSign))}}function xp(n,t=!1){return function(e,i){return ho(pT(e).getFullYear(),n,Nr(i,mt.MinusSign),t)}}const Yv={};function fT(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function mT(n){return n instanceof Date&&!isNaN(n.valueOf())}function yT(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let Fa=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(xu(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${yn(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(p(us),p(Vu),p(Je),p(oo))},n.\u0275dir=he({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class SH{constructor(t,e,i,r){this.$implicit=t,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 ci=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}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 SH(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),wT(a,r)}});for(let r=0,o=i.length;r{wT(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(bn),p(us))},n.\u0275dir=he({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function wT(n,t){n.context.$implicit=t.item}let _n=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new TH,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){ET("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){ET("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 n.\u0275fac=function(e){return new(e||n)(p(En),p(bn))},n.\u0275dir=he({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class TH{constructor(){this.$implicit=null,this.ngIf=null}}function ET(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${yn(t)}'.`)}class ty{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let sc=(()=>{class n{constructor(){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||(this._defaultViews=[]),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&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new ty(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(bn),p(sc,9))},n.\u0275dir=he({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),DT=(()=>{class n{constructor(e,i,r){r._addDefault(new ty(e,i))}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(bn),p(sc,9))},n.\u0275dir=he({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),Qs=(()=>{class n{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:nr.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 n.\u0275fac=function(e){return new(e||n)(p(Je),p(Vu),p(oo))},n.\u0275dir=he({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),Qi=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(p(En))},n.\u0275dir=he({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[kn]}),n})(),Xi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})();const TT="browser";class IT{}class ry extends class tV extends class L4{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function P4(n){yp||(yp=n)}(new ry)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function nV(){return qu=qu||document.querySelector("base"),qu?qu.getAttribute("href"):null}();return null==e?null:function iV(n){kp=kp||document.createElement("a"),kp.setAttribute("href",n);const t=kp.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){qu=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return yT(document.cookie,t)}}let kp,qu=null;const MT=new pe("TRANSITION_ID"),oV=[{provide:MA,useFactory:function rV(n,t,e){return()=>{e.get(pp).donePromise.then(()=>{const i=No(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const Rp=new pe("EventManagerPlugins");let Op=(()=>{class n{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 n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),zu=(()=>{class n extends RT{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(OT),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(OT))}}return n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();function OT(n){No().remove(n)}const oy={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/"},sy=/%COMP%/g;function Pp(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Lp=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ay(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Jr.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new pV(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Jr.ShadowDom:return new fV(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Pp(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(T(Op),T(zu),T(oc))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class ay{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(oy[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(BT(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(BT(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=oy[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=oy[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(nr.DashCase|nr.Important)?t.style.setProperty(e,i,r&nr.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&nr.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,NT(i)):this.eventManager.addEventListener(t,e,NT(i))}}function BT(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class pV extends ay{constructor(t,e,i,r){super(t),this.component=i;const o=Pp(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function uV(n){return"_ngcontent-%COMP%".replace(sy,n)}(r+"-"+i.id),this.hostAttr=function dV(n){return"_nghost-%COMP%".replace(sy,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class fV extends ay{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Pp(r.id,r.styles,[]);for(let s=0;s{class n extends kT{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 n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const HT=["alt","control","meta","shift"],_V={"\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"},VT={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},vV={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let yV=(()=>{class n extends kT{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>No().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=n._normalizeKey(i.pop());let s="";if(HT.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const a={};return a.domEventName=r,a.fullKey=s,a}static getEventFullKey(e){let i="",r=function bV(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&VT.hasOwnProperty(t)&&(t=VT[t]))}return _V[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),HT.forEach(o=>{o!=r&&(0,vV[o])(e)&&(i+=o+".")}),i+=r,i}static eventCallback(e,i,r){return o=>{n.getEventFullKey(o)===e&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const jT=[{provide:fp,useValue:TT},{provide:RA,useValue:function CV(){ry.makeCurrent()},multi:!0},{provide:ht,useFactory:function EV(){return function VP(n){Yg=n}(document),document},deps:[]}],UT=jA(k4,"browser",jT),qT=new pe(""),zT=[{provide:mp,useClass:class sV{addToWindow(t){gn.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},gn.getAllAngularTestabilities=()=>t.getAllTestabilities(),gn.getAllAngularRootElements=()=>t.getAllRootElements(),gn.frameworkStabilizers||(gn.frameworkStabilizers=[]),gn.frameworkStabilizers.push(i=>{const r=gn.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(t,e,i){return null==e?null:t.getTestability(e)??(i?No().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:BA,useClass:Nv,deps:[nt,Fv,mp]},{provide:Nv,useClass:Nv,deps:[nt,Fv,mp]}],GT=[{provide:s_,useValue:"root"},{provide:Gs,useFactory:function wV(){return new Gs},deps:[]},{provide:Rp,useClass:mV,multi:!0,deps:[ht,nt,fp]},{provide:Rp,useClass:yV,multi:!0,deps:[ht]},{provide:Lp,useClass:Lp,deps:[Op,zu,oc]},{provide:Cu,useExisting:Lp},{provide:RT,useExisting:zu},{provide:zu,useClass:zu,deps:[ht]},{provide:Op,useClass:Op,deps:[Rp,nt]},{provide:IT,useClass:aV,deps:[]},[]];let WT=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:oc,useValue:e.appId},{provide:MT,useExisting:oc},oV]}}}return n.\u0275fac=function(e){return new(e||n)(T(qT,12))},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[...GT,...zT],imports:[Xi,R4]}),n})();typeof window<"u"&&window;let Ba=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:function(e){let i=null;return i=e?new(e||n):T(QT),i},providedIn:"root"}),n})(),QT=(()=>{class n extends Ba{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case on.NONE:return i;case on.HTML:return To(i,"HTML")?Er(i):N0(this._doc,String(i)).toString();case on.STYLE:return To(i,"Style")?Er(i):i;case on.SCRIPT:if(To(i,"Script"))return Er(i);throw new Error("unsafe value used in a script context");case on.URL:return To(i,"URL")?Er(i):vu(String(i));case on.RESOURCE_URL:if(To(i,"ResourceURL"))return Er(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function YP(n){return new qP(n)}(e)}bypassSecurityTrustStyle(e){return function QP(n){return new zP(n)}(e)}bypassSecurityTrustScript(e){return function XP(n){return new GP(n)}(e)}bypassSecurityTrustUrl(e){return function ZP(n){return new WP(n)}(e)}bypassSecurityTrustResourceUrl(e){return function JP(n){return new $P(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({token:n,factory:function(e){let i=null;return i=e?new e:function OV(n){return new QT(n.get(ht))}(T(Rn)),i},providedIn:"root"}),n})();function uy(...n){if(1===n.length){const t=n[0];if(F(t))return Np(t,null);if(M(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Np(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return Np(n=1===n.length&&F(n[0])?n[0]:n,null).pipe(ue(e=>t(...e)))}return Np(n,null)}function Np(n,t){return new b(e=>{const i=n.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(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let XT=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(p(oo),p(Je))},n.\u0275dir=he({type:n}),n})(),Ha=(()=>{class n extends XT{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,features:[De]}),n})();const rr=new pe("NgValueAccessor"),LV={provide:rr,useExisting:Zt(()=>fo),multi:!0},FV=new pe("CompositionEventMode");let fo=(()=>{class n extends XT{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function NV(){const n=No()?No().getUserAgent():"";return/android (\d+)/.test(n.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 n.\u0275fac=function(e){return new(e||n)(p(oo),p(Je),p(FV,8))},n.\u0275dir=he({type:n,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&&X("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:[rt([LV]),De]}),n})();function Zs(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function JT(n){return null!=n&&"number"==typeof n.length}const fi=new pe("NgValidators"),Js=new pe("NgAsyncValidators"),HV=/^(?=.{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 dy{static min(t){return function ex(n){return t=>{if(Zs(t.value)||Zs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(Zs(t.value)||Zs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function nx(n){return Zs(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function ix(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function rx(n){return Zs(n.value)||HV.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function ox(n){return t=>Zs(t.value)||!JT(t.value)?null:t.value.lengthJT(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function ax(n){if(!n)return Fp;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Zs(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return px(t)}static composeAsync(t){return fx(t)}}function Fp(n){return null}function lx(n){return null!=n}function cx(n){return Mu(n)?Et(n):n}function ux(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function dx(n,t){return t.map(e=>e(n))}function hx(n){return n.map(t=>function VV(n){return!n.validate}(t)?t:e=>t.validate(e))}function px(n){if(!n)return null;const t=n.filter(lx);return 0==t.length?null:function(e){return ux(dx(e,t))}}function hy(n){return null!=n?px(hx(n)):null}function fx(n){if(!n)return null;const t=n.filter(lx);return 0==t.length?null:function(e){return uy(dx(e,t).map(cx)).pipe(ue(ux))}}function py(n){return null!=n?fx(hx(n)):null}function mx(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function gx(n){return n._rawValidators}function _x(n){return n._rawAsyncValidators}function fy(n){return n?Array.isArray(n)?n:[n]:[]}function Bp(n,t){return Array.isArray(n)?n.includes(t):n===t}function vx(n,t){const e=fy(t);return fy(n).forEach(r=>{Bp(e,r)||e.push(r)}),e}function yx(n,t){return fy(t).filter(e=>!Bp(n,e))}class bx{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(t){this._rawValidators=t||[],this._composedValidatorFn=hy(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=py(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Zi extends bx{get formDirective(){return null}get path(){return null}}class mo extends bx{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let Fo=(()=>{class n extends class Cx{constructor(t){this._cd=t}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}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(p(mo,2))},n.\u0275dir=he({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&wt("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:[De]}),n})();const Gu="VALID",Vp="INVALID",ac="PENDING",Wu="DISABLED";function vy(n){return(jp(n)?n.validators:n)||null}function Ex(n){return Array.isArray(n)?hy(n):n||null}function yy(n,t){return(jp(t)?t.asyncValidators:n)||null}function Dx(n){return Array.isArray(n)?py(n):n||null}function jp(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class Tx{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Ex(this._rawValidators),this._composedAsyncValidatorFn=Dx(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Gu}get invalid(){return this.status===Vp}get pending(){return this.status==ac}get disabled(){return this.status===Wu}get enabled(){return this.status!==Wu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Ex(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Dx(t)}addValidators(t){this.setValidators(vx(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(vx(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(yx(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(yx(t,this._rawAsyncValidators))}hasValidator(t){return Bp(this._rawValidators,t)}hasAsyncValidator(t){return Bp(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ac,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Wu,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Gu,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Gu||this.status===ac)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Wu:Gu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ac,this._hasOwnPendingAsyncValidator=!0;const e=cx(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Be,this.statusChanges=new Be}_calculateStatus(){return this._allControlsDisabled()?Wu:this.errors?Vp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ac)?ac:this._anyControlsHaveStatus(Vp)?Vp:Gu}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){jp(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class by extends Tx{constructor(t,e,i){super(vy(e),yy(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function Ax(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new Se(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function Sx(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new Se(1e3,"");if(!i[e])throw new Se(1001,"")})(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}function $u(n,t){Cy(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function QV(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&xx(n,t)})}(n,t),function ZV(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function XV(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&xx(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function YV(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function qp(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Gp(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function zp(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Cy(n,t){const e=gx(n);null!==t.validator?n.setValidators(mx(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=_x(n);null!==t.asyncValidator?n.setAsyncValidators(mx(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();zp(t._rawValidators,r),zp(t._rawAsyncValidators,r)}function Gp(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=gx(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=_x(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return zp(t._rawValidators,i),zp(t._rawAsyncValidators,i),e}function xx(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Ix(n,t){Cy(n,t)}function wy(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function kx(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Ey(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===fo?e=o:function tj(n){return Object.getPrototypeOf(n.constructor)===Ha}(o)?i=o:r=o}),r||i||e||null}const ij={provide:Zi,useExisting:Zt(()=>lc)},Ku=(()=>Promise.resolve(null))();let lc=(()=>{class n extends Zi{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Be,this.form=new by({},hy(e),py(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ku.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),$u(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ku.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ku.then(()=>{const i=this._findContainer(e.path),r=new by({});Ix(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ku.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Ku.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,kx(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(p(fi,10),p(Js,10))},n.\u0275dir=he({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&X("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rt([ij]),De]}),n})();function Rx(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function Ox(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Yu=class extends Tx{constructor(t=null,e,i){super(vy(e),yy(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),jp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Ox(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Rx(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Rx(this._onDisabledChange,t)}_forEachChild(t){}_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(t){Ox(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},sj={provide:mo,useExisting:Zt(()=>ps)},Nx=(()=>Promise.resolve(null))();let ps=(()=>{class n extends mo{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new Yu,this._registered=!1,this.update=new Be,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Ey(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),wy(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){$u(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Nx.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function ds(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);Nx.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Up(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(p(Zi,9),p(fi,10),p(Js,10),p(rr,10),p(Bt,8))},n.\u0275dir=he({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[rt([sj]),De,kn]}),n})(),Bx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})();const Dy=new pe("NgModelWithFormControlWarning"),hj={provide:mo,useExisting:Zt(()=>Wp)};let Wp=(()=>{class n extends mo{constructor(e,i,r,o){super(),this._ngModelWarningConfig=o,this.update=new Be,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Ey(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&qp(i,this,!1),$u(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}wy(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&qp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(p(fi,10),p(Js,10),p(rr,10),p(Dy,8))},n.\u0275dir=he({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[rt([hj]),De,kn]}),n})();const pj={provide:Zi,useExisting:Zt(()=>cc)};let cc=(()=>{class n extends Zi{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Be,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&&(Gp(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 $u(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){qp(e.control||null,e,!1),function nj(n,t){const e=n.indexOf(t);e>-1&&n.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,kx(this.form,this.directives),this.ngSubmit.emit(e),!1}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&&(qp(i||null,e),(n=>n instanceof Yu)(r)&&($u(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);Ix(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function JV(n,t){return Gp(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Cy(this.form,this),this._oldForm&&Gp(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(p(fi,10),p(Js,10))},n.\u0275dir=he({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&X("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rt([pj]),De,kn]}),n})(),Jx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Bx]}),n})(),kj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Jx]}),n})(),Rj=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Dy,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Jx]}),n})();function Ve(...n){let t=n[n.length-1];return de(t)?(n.pop(),hi(n,t)):ug(n)}function Bo(n,t){return Vi(n,t,1)}function Sn(n,t){return function(i){return i.lift(new Pj(n,t))}}class Pj{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Lj(t,this.predicate,this.thisArg))}}class Lj extends D{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class e2{}class t2{}class fs{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.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(t).forEach(e=>{let i=t[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(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof fs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new fs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof fs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.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(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Nj{encodeKey(t){return n2(t)}encodeValue(t){return n2(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const Bj=/%(\d[a-f0-9])/gi,Hj={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function n2(n){return encodeURIComponent(n).replace(Bj,(t,e)=>Hj[e]??t)}function Kp(n){return`${n}`}class Yt{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Nj,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Fj(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(Kp):[Kp(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[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(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Yt({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Kp(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Kp(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class Vj{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function r2(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function o2(n){return typeof Blob<"u"&&n instanceof Blob}function s2(n){return typeof FormData<"u"&&n instanceof FormData}class Qu{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function jj(n){switch(n){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 fs),this.context||(this.context=new Vj),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,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new Qu(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var ti=(()=>((ti=ti||{})[ti.Sent=0]="Sent",ti[ti.UploadProgress=1]="UploadProgress",ti[ti.ResponseHeader=2]="ResponseHeader",ti[ti.DownloadProgress=3]="DownloadProgress",ti[ti.Response=4]="Response",ti[ti.User=5]="User",ti))();class My{constructor(t,e=200,i="OK"){this.headers=t.headers||new fs,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class ky extends My{constructor(t={}){super(t),this.type=ti.ResponseHeader}clone(t={}){return new ky({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Yp extends My{constructor(t={}){super(t),this.type=ti.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Yp({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class a2 extends My{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Ry(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Xu=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Qu)o=e;else{let l,c;l=r.headers instanceof fs?r.headers:new fs(r.headers),r.params&&(c=r.params instanceof Yt?r.params:new Yt({fromObject:r.params})),o=new Qu(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=Ve(o).pipe(Bo(l=>this.handler.handle(l)));if(e instanceof Qu||"events"===r.observe)return s;const a=s.pipe(Sn(l=>l instanceof Yp));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ue(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(ue(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(ue(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ue(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 Yt).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,Ry(r,i))}post(e,i,r={}){return this.request("POST",e,Ry(r,i))}put(e,i,r={}){return this.request("PUT",e,Ry(r,i))}}return n.\u0275fac=function(e){return new(e||n)(T(e2))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class l2{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Oy=new pe("HTTP_INTERCEPTORS");let qj=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const zj=/^\)\]\}',?\n/;let c2=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,_)=>r.setRequestHeader(f,_.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",_=new fs(r.getAllResponseHeaders()),S=function Gj(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new ky({headers:_,status:r.status,statusText:f,url:S}),s},l=()=>{let{headers:f,status:_,statusText:S,url:U}=a(),Z=null;204!==_&&(Z=typeof r.response>"u"?r.responseText:r.response),0===_&&(_=Z?200:0);let ve=_>=200&&_<300;if("json"===e.responseType&&"string"==typeof Z){const ee=Z;Z=Z.replace(zj,"");try{Z=""!==Z?JSON.parse(Z):null}catch(Te){Z=ee,ve&&(ve=!1,Z={error:Te,text:Z})}}ve?(i.next(new Yp({body:Z,headers:f,status:_,statusText:S,url:U||void 0})),i.complete()):i.error(new a2({error:Z,headers:f,status:_,statusText:S,url:U||void 0}))},c=f=>{const{url:_}=a(),S=new a2({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:_||void 0});i.error(S)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let _={type:ti.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(_.total=f.total),"text"===e.responseType&&!!r.responseText&&(_.partialText=r.responseText),i.next(_)},h=f=>{let _={type:ti.UploadProgress,loaded:f.loaded};f.lengthComputable&&(_.total=f.total),i.next(_)};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:ti.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 n.\u0275fac=function(e){return new(e||n)(T(IT))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const Py=new pe("XSRF_COOKIE_NAME"),Ly=new pe("XSRF_HEADER_NAME");class u2{}let Wj=(()=>{class n{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=yT(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(fp),T(Py))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),Ny=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(T(u2),T(Ly))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),$j=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(Oy,[]);this.chain=i.reduceRight((r,o)=>new l2(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(T(t2),T(Rn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),Kj=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Ny,useClass:qj}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Py,useValue:e.cookieName}:[],e.headerName?{provide:Ly,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[Ny,{provide:Oy,useExisting:Ny,multi:!0},{provide:u2,useClass:Wj},{provide:Py,useValue:"XSRF-TOKEN"},{provide:Ly,useValue:"X-XSRF-TOKEN"}]}),n})(),Yj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[Xu,{provide:e2,useClass:$j},c2,{provide:t2,useExisting:c2}],imports:[Kj.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})(),Qj=(()=>{class n{constructor(){}intercept(e,i){if(e.params.has("noCache")){const r=e.clone({setHeaders:{"Cache-Control":"no-cache, no-store, must-revalidate"},params:e.params.delete("noCache")});return i.handle(r)}return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();function d2(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function Ee(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){d2(o,i,r,s,a,"next",l)}function a(l){d2(o,i,r,s,a,"throw",l)}s(void 0)})}}let Br=(()=>{class n{constructor(){}getValue(e){return localStorage.getItem(e.toString())}setValue(e,i){localStorage.setItem(e.toString(),i)}removeValue(e){localStorage.removeItem(e.toString())}clear(){Object.keys(tn).forEach(i=>{i.toString().includes("PERSISTENT")||localStorage.removeItem(i.toString())})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var tn=(()=>(function(n){n.primaryTarget="primaryTarget",n.selectedProjects="selectedProjects",n.officeDB="officeDB",n.sendInProcess="sendInProcess",n.contactDB="contactDB PERSISTENT",n.taskpaneActive="taskpaneActive",n.documentedItemId="documentedItemId PERSISTENT",n.asyncMessage="asyncMessage PERSISTENT",n.selectedEmail="selectedEmail",n.appointmentIsNew="appointmentIsNew"}(tn||(tn={})),tn))();class Ei{constructor(t,e){this.component=t,this.data=e}}function ms(n){return!!n&&(n instanceof b||"function"==typeof n.lift&&"function"==typeof n.subscribe)}function uc(...n){return function Xj(){return dh(1)}()(Ve(...n))}const gs=new b(n=>n.complete());function Qp(n){return n?function Zj(n){return new b(t=>n.schedule(()=>t.complete()))}(n):gs}function ea(n){return new b(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?Et(e):Qp()).subscribe(t)})}const h2=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function dn(n){return t=>0===n?Qp():t.lift(new Jj(n))}class Jj{constructor(t){if(this.total=t,this.total<0)throw new h2}call(t,e){return e.subscribe(new eU(t,this.total))}}class eU extends D{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}class tU extends w{constructor(t,e){super()}schedule(t,e=0){return this}}class Xp extends tU{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;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(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=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!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let p2=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class go extends p2{constructor(t,e=p2.now){super(t,()=>go.delegate&&go.delegate!==this?go.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return go.delegate&&go.delegate!==this?go.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const rU=new class iU extends go{}(class nU extends Xp{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}});function ja(n,t){return new b(t?e=>t.schedule(oU,0,{error:n,subscriber:e}):e=>e.error(n))}function oU({error:n,subscriber:t}){t.error(n)}class or{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Ve(this.value);case"E":return ja(this.error);case"C":return Qp()}throw new Error("unexpected notification kind value")}static createNext(t){return typeof t<"u"?new or("N",t):or.undefinedValueNotification}static createError(t){return new or("E",void 0,t)}static createComplete(){return or.completeNotification}}or.completeNotification=new or("C"),or.undefinedValueNotification=new or("N",void 0);class Zp extends D{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Zp.dispatch,this.delay,new aU(t,this.destination)))}_next(t){this.scheduleMessage(or.createNext(t))}_error(t){this.scheduleMessage(or.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(or.createComplete()),this.unsubscribe()}}class aU{constructor(t,e){this.notification=t,this.destination=e}}class f2 extends L{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new lU(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;let s;if(this.closed)throw new ie;if(this.isStopped||this.hasError?s=w.EMPTY:(this.observers.push(t),s=new _e(this,t)),r&&t.add(t=new Zp(t,r)),e)for(let a=0;ae&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class lU{constructor(t,e){this.time=t,this.value=e}}function m2(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function cU({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,s,o=0,a=!1,l=!1;return function(u){let d;o++,!r||a?(a=!1,r=new f2(n,t,i),d=r.subscribe(this),s=u.subscribe({next(h){r.next(h)},error(h){a=!0,r.error(h)},complete(){l=!0,s=void 0,r.complete()}}),l&&(s=void 0)):d=r.subscribe(this),this.add(()=>{o--,d.unsubscribe(),d=void 0,s&&!l&&e&&0===o&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}function Kn(n,t){return"function"==typeof t?e=>e.pipe(Kn((i,r)=>Et(n(i,r)).pipe(ue((o,s)=>t(i,o,r,s))))):e=>e.lift(new uU(n))}class uU{constructor(t){this.project=t}call(t,e){return e.subscribe(new dU(t,this.project))}}class dU extends Zc{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Do(this),r=this.destination;r.add(i),this.innerSubscription=Jc(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}class Zu{}let g2=(()=>{class n extends Zu{getTranslation(e){return Ve({})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class Fy{}let _2=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();function Ju(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!=n&&t!=t)return!0;let r,o,s,e=typeof n;if(e==typeof t&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(t))return!1;for(o in s=Object.create(null),n){if(!Ju(n[o],t[o]))return!1;s[o]=!0}for(o in t)if(!(o in s)&&typeof t[o]<"u")return!1;return!0}if(!Array.isArray(t))return!1;if((r=n.length)==t.length){for(o=0;o{By(t[i])?i in n?e[i]=v2(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}class Jp{}let y2=(()=>{class n extends Jp{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,i){let r;return r="string"==typeof e?this.interpolateString(e,i):"function"==typeof e?this.interpolateFunction(e,i):e,r}getValue(e,i){let r="string"==typeof i?i.split("."):[i];i="";do{i+=r.shift(),!Sr(e)||!Sr(e[i])||"object"!=typeof e[i]&&r.length?r.length?i+=".":e=void 0:(e=e[i],i="")}while(r.length);return e}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let s=this.getValue(i,o);return Sr(s)?s:r}):e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class ef{}let b2=(()=>{class n extends ef{compile(e,i){return e}compileTranslations(e,i){return e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class C2{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Be,this.onLangChange=new Be,this.onDefaultLangChange=new Be}}const Hy=new pe("USE_STORE"),Vy=new pe("USE_DEFAULT_LANG"),jy=new pe("DEFAULT_LANGUAGE"),Uy=new pe("USE_EXTEND");let Xt=(()=>{class n{constructor(e,i,r,o,s,a=!0,l=!1,c=!1,u){this.store=e,this.currentLoader=i,this.compiler=r,this.parser=o,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=l,this.extend=c,this.pending=!1,this._onTranslationChange=new Be,this._onLangChange=new Be,this._onDefaultLangChange=new Be,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let i=this.retrieveTranslations(e);typeof i<"u"?(null==this.defaultLang&&(this.defaultLang=e),i.pipe(dn(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Ve(this.translations[e]);let i=this.retrieveTranslations(e);return typeof i<"u"?(this.currentLang||(this.currentLang=e),i.pipe(dn(1)).subscribe(r=>{this.changeLang(e)}),i):(this.changeLang(e),Ve(this.translations[e]))}retrieveTranslations(e){let i;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),i=this._translationRequests[e]),i}getTranslation(e){this.pending=!0;const i=this.currentLoader.getTranslation(e).pipe(m2(1),dn(1));return this.loadingTranslations=i.pipe(ue(r=>this.compiler.compileTranslations(r,e)),m2(1),dn(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){i=this.compiler.compileTranslations(i,e),this.translations[e]=(r||this.extend)&&this.translations[e]?v2(this.translations[e],i):i,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(i=>{-1===this.langs.indexOf(i)&&this.langs.push(i)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,i,r){let o;if(i instanceof Array){let s={},a=!1;for(let l of i)s[l]=this.getParsedResult(e,l,r),ms(s[l])&&(a=!0);return a?uy(i.map(c=>ms(s[c])?s[c]:Ve(s[c]))).pipe(ue(c=>{let u={};return c.forEach((d,h)=>{u[i[h]]=d}),u})):s}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,i),r)),typeof o>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],i),r)),typeof o>"u"){let s={key:i,translateService:this};typeof r<"u"&&(s.interpolateParams=r),o=this.missingTranslationHandler.handle(s)}return typeof o<"u"?o:i}get(e,i){if(!Sr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Bo(r=>ms(r=this.getParsedResult(r,e,i))?r:Ve(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,i);return ms(r)?r:Ve(r)}}getStreamOnTranslationChange(e,i){if(!Sr(e)||!e.length)throw new Error('Parameter "key" required');return uc(ea(()=>this.get(e,i)),this.onTranslationChange.pipe(Kn(r=>{const o=this.getParsedResult(r.translations,e,i);return"function"==typeof o.subscribe?o:Ve(o)})))}stream(e,i){if(!Sr(e)||!e.length)throw new Error('Parameter "key" required');return uc(ea(()=>this.get(e,i)),this.onLangChange.pipe(Kn(r=>{const o=this.getParsedResult(r.translations,e,i);return ms(o)?o:Ve(o)})))}instant(e,i){if(!Sr(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,i);if(ms(r)){if(e instanceof Array){let o={};return e.forEach((s,a)=>{o[e[a]]=e[a]}),o}return e}return r}set(e,i,r=this.currentLang){this.translations[r][e]=this.compiler.compile(i,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(T(C2),T(Zu),T(ef),T(Jp),T(Fy),T(Vy),T(Hy),T(Uy),T(jy))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),Pi=(()=>{class n{constructor(e,i){this.translate=e,this._ref=i,this.value=""}updateValue(e,i,r){let o=s=>{this.value=void 0!==s?s:e,this.lastKey=e,this._ref.markForCheck()};if(r){let s=this.translate.getParsedResult(r,e,i);ms(s.subscribe)?s.subscribe(o):o(s)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Ju(e,this.lastKey)&&Ju(i,this.lastParams))return this.value;let r;if(Sr(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){let o=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(o)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else"object"==typeof i[0]&&!Array.isArray(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(p(Xt,16),p(Bt,16))},n.\u0275pipe=ji({name:"translate",type:n,pure:!1}),n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),hU=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:Zu,useClass:g2},e.compiler||{provide:ef,useClass:b2},e.parser||{provide:Jp,useClass:y2},e.missingTranslationHandler||{provide:Fy,useClass:_2},C2,{provide:Hy,useValue:e.isolate},{provide:Vy,useValue:e.useDefaultLang},{provide:Uy,useValue:e.extend},{provide:jy,useValue:e.defaultLanguage},Xt]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:Zu,useClass:g2},e.compiler||{provide:ef,useClass:b2},e.parser||{provide:Jp,useClass:y2},e.missingTranslationHandler||{provide:Fy,useClass:_2},{provide:Hy,useValue:e.isolate},{provide:Vy,useValue:e.useDefaultLang},{provide:Uy,useValue:e.extend},{provide:jy,useValue:e.defaultLanguage},Xt]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})(),Hr=(()=>{class n{constructor(e){this.translate=e,this.messageEvent=new Be,this.nextModal=null,this.previousModal=null,e.setDefaultLang("all"),e.use("all")}ngOnInit(){this.next=this.data.nextType}ngAfterViewInit(){this.messageEvent.emit(this.modalTemp),this.modalHeader=this.data.modalHeader,this.modalFooter=this.data.modalFooter}getTemplate(){return this.modalTemp}extractDBFromPointer(e){return e.substring(e.lastIndexOf("|")+1)}confirmAction(){}cancelAction(){this.data.closeAllModal()}closeAll(){this.data.closeAllModal()}get next(){return this.nextModal}set next(e){this.nextModal=e}get previous(){return this.previousModal}set previous(e){this.previousModal=e}set title(e){this.modalTitle=e}openAnotherModal(e,i){return null!=e?this.modalMain.loadComponent(e,i):null}}return n.\u0275fac=function(e){return new(e||n)(p(Xt))},n.\u0275dir=he({type:n,inputs:{data:"data",modalMain:"modalMain"},outputs:{messageEvent:"messageEvent"}}),n})();const pU=["address","path","index","lc","localLC","modalDesign","init","webInt","webIntModal","login","mailAddr","addressChange","graphRequired","graphLoaded","attachmentsLoaded","deleteAttachments","documentIconReady","connector","platform","destinationChanged","documentDestinationCheckChanged","itemRecognized","updateBM4OData"];let qy,Ji=(()=>{class n{constructor(){this.waitListRecord={},this.waitListWithFunction={},pU.forEach(e=>{this.waitListRecord[e]=[],this.waitListWithFunction[e]=[]})}addToWaitList(e,i){this.waitListRecord[e].push(i)}addToWaitListFunc(e,i,r){this.waitListWithFunction[e].push({subscriber:i,function:r})}accessWaitList(e){return this.waitListRecord[e]}clearWaitList(e){this.waitListRecord[e].length=0}resolveFuncWaitList(e){for(const i of this.waitListWithFunction[e])i.function(i.subscriber);this.waitListWithFunction[e].length=0}notifyWaitList(e,i,r){for(const o of this.accessWaitList(e))o.next(i),r&&o.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pt=(()=>{class n{constructor(e){this.waitListService=e,this.loggedIn=!1,this.curSystem="gi";const i=window.localStorage.getItem("webInt");null!==i&&""!==i&&(this.curSystem="start"),this.currentWebInt="",null!=window.localStorage.getItem("webInt")&&(this.currentWebInt=window.localStorage.getItem("webInt"),this.currentWebInt=encodeURI(this.currentWebInt),this.setSystemFromURL(this.currentWebInt)),this.mailAddr="",this.mailUnid="",this.subject="",this.resetMailAddr="",this.cc=[],this.to=[],this.from={},this.mailAddrCount=0,this.currentWebInt&&(this.webIntUrl=new URL(this.currentWebInt)),this.lcs={},this.lcsLocal={},this.selectedContacts=null,this.modalSessionCache=!1,this.rippleColorRGBA="rgba(154, 169, 255, 0.1)",this.createAddressOpen=!1,this.ownMail="",this.showMailBody=!0,this.connectorType=null,this.allowActions=!1,this.allowCreate=!1,this.attachmentsLoaded=!0,this.hideBackground=!1,this.useClient=!1,this.redirect=!1,this.redirect=!!new URLSearchParams(window.location.search).has("redirect"),this.optionsObj={method:"GET",mode:"cors",cache:"no-cache",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},redirect:"follow",referrerPolicy:"no-referrer"}}setSystemFromURL(e){return e.includes(".nsf")?(this.system="gi","gi"):(this.system="ba","ba")}get isRedirectPage(){return this.redirect}set hideForLogin(e){this.hideBackground=e}get hideForLogin(){return this.hideBackground}set isClient(e){this.useClient=e}get isClient(){return this.useClient}set attachmentsReady(e){this.attachmentsLoaded=e,this.waitListService.notifyWaitList("attachmentsLoaded",e,!0)}get attachmentsReady(){return this.attachmentsLoaded}set system(e){this.curSystem=e}get system(){return this.curSystem}set loginOpen(e){this.loginWindowOpen=e}get loginOpen(){return this.loginWindowOpen}set curOWAMessageID(e){this.messageID=e}get curOWAMessageID(){return this.messageID}set actionsAllowed(e){this.allowActions=e}get actionsAllowed(){return this.allowActions}set createAllowed(e){this.allowCreate=e}get createAllowed(){return this.allowCreate}set openMail(e){this.openEMail=e}get openMail(){return this.openEMail}set deleteAttachments(e){this.waitListService.notifyWaitList("deleteAttachments",e),this.deleteAttach=e}get deleteAttachments(){return this.deleteAttach}set curConnectorType(e){this.connectorType=e}get curConnectorType(){return this.connectorType}set curConnector(e){this.connector=e,this.waitListService.notifyWaitList("connector",!0)}get curConnector(){return this.connector}get isCreateBlockOpen(){return this.createAddressOpen}get rippleColor(){return this.rippleColorRGBA}set webInt(e){this.currentWebInt=e,this.webIntUrl=new URL(this.currentWebInt),null!=this.currentWebInt&&""!==this.currentWebInt&&this.notifyWaitList()}get webInt(){return this.currentWebInt}set displayMailBody(e){this.showMailBody=e}get displayMailBody(){return this.showMailBody}set curMailAddr(e){""===this.resetMailAddr&&(this.resetMailAddr=e),this.mailAddr=e,this.waitListService.resolveFuncWaitList("mailAddr")}get curMailAddr(){return this.mailAddr}get startMailAddr(){return this.resetMailAddr}set curSubject(e){this.subject=e}get curSubject(){return this.subject}set curCC(e){this.cc=e}get curCC(){return this.cc}set curTo(e){this.to=e}get curTo(){return this.to}set curFrom(e){this.from=e}get curFrom(){return this.from}set curMailAddrCount(e){this.mailAddrCount=e}get curMailAddrCount(){return this.mailAddrCount}set curMailUnid(e){this.mailUnid=e}get curMailUnid(){return this.mailUnid}get origin(){return this.webIntUrl.origin}get options(){return this.optionsObj}get languageConf(){return this.lcs}set languageConf(e){this.lcs=e}set ownMailAddr(e){this.ownMail=e}set languageConfLocal(e){this.lcsLocal=e}get languageConfLocal(){return this.lcsLocal}get currentContactsDB(){return this.selectedContacts}set currentContactsDB(e){this.selectedContacts=e}get modalCacheFlag(){return this.modalSessionCache}set modalCacheFlag(e){this.modalSessionCache=e}languageEntry(e){return this.lcs[e]}changeGlobalOptions(e){return this.changeOptionsObj(e,this.optionsObj)}changeOwnOptions(e){const i={};return Object.assign(i,this.optionsObj),this.changeOptionsObj(e,i)}objectWithParams(e){let i={};return i=Object.assign(i,this.options),i.params=e,i}clearTemps(){this.clearModalTemps()}clearModalTemps(){this.currentContactsDB=null}createAddressToggle(){this.createAddressOpen=!this.createAddressOpen}waitForWebInt(e){this.waitListService.addToWaitList("webInt",e)}notifyWaitList(){this.waitListService.notifyWaitList("webInt",this.webInt,!0),this.waitListService.clearWaitList("webInt")}changeOptionsObj(e,i){return new Map(Object.entries(e)).forEach((o,s)=>{i[s]=o}),i}showSpinner(){document.getElementById("loadingSpinner").style.display="block"}hideSpinner(){document.getElementById("loadingSpinner").style.display="none"}numericBackendVersion(){if("ba"===this.curSystem){if(!this.backendVersion)return 8e4;let e=this.backendVersion.split("."),i="";return e.forEach(r=>{i+=r.padStart(2,"0")}),Number.parseInt(i,10)}return 8}}return n.\u0275fac=function(e){return new(e||n)(T(Ji))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();try{qy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{qy=!1}let dc,Pn=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function JH(n){return n===TT}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!qy)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(T(fp))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const w2=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function E2(){if(dc)return dc;if("object"!=typeof document||!document)return dc=new Set(w2),dc;let n=document.createElement("input");return dc=new Set(w2.filter(t=>(n.setAttribute("type",t),n.type===t))),dc}let ed,Ua,zy;function _s(n){return function fU(){if(null==ed&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ed=!0}))}finally{ed=ed||!1}return ed}()?n:!!n.capture}function mU(){if(null==Ua){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ua=!1,Ua;if("scrollBehavior"in document.documentElement.style)Ua=!0;else{const n=Element.prototype.scrollTo;Ua=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Ua}function nf(n){if(function gU(){if(null==zy){const n=typeof document<"u"?document.head:null;zy=!(!n||!n.createShadowRoot&&!n.attachShadow)}return zy}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Gy(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function Vr(n){return n.composedPath?n.composedPath()[0]:n.target}function Wy(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}class sr extends L{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ie;return this._value}next(t){super.next(this._value=t)}}function Di(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function na(){}function Yn(n,t,e){return function(r){return r.lift(new xU(n,t,e))}}class xU{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new IU(t,this.nextOrObserver,this.error,this.complete))}}class IU extends D{constructor(t,e,i,r){super(t),this._tapNext=na,this._tapError=na,this._tapComplete=na,this._tapError=i||na,this._tapComplete=r||na,le(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||na,this._tapError=e.error||na,this._tapComplete=e.complete||na)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const fc=new go(Xp);function Qy(n,t=fc){return e=>e.lift(new MU(n,t))}class MU{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new kU(t,this.dueTime,this.scheduler))}}class kU extends D{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(RU,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function RU(n){n.debouncedNext()}function Xy(n){return t=>t.lift(new OU(n))}class OU{constructor(t){this.total=t}call(t,e){return e.subscribe(new PU(t,this.total))}}class PU extends D{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function af(n,t){return e=>e.lift(new LU(n,t))}class LU{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new NU(t,this.compare,this.keySelector))}}class NU extends D{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}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(t))}}function Qt(n){return t=>t.lift(new FU(n))}class FU{constructor(t){this.notifier=t}call(t,e){const i=new BU(t),r=Jc(this.notifier,new Do(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class BU extends Zc{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function ct(n){return null!=n&&"false"!=`${n}`}function ys(n,t=0){return function HU(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function lf(n){return Array.isArray(n)?n:[n]}function ni(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Qn(n){return n instanceof Je?n.nativeElement:n}let D2=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jU=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Qn(e);return new b(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new L,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(T(D2))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cf=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Be,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ct(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ys(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Qy(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(jU),p(Je),p(nt))},n.\u0275dir=he({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),td=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[D2]}),n})();class UU extends D{notifyNext(t,e,i,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class qU extends D{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function zU(n,t,e,i,r=new qU(n,e,i)){if(!r.closed)return t instanceof b?t.subscribe(r):qe(t)(r)}const S2={};function Zy(...n){let t,e;return de(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&F(n[0])&&(n=n[0]),ug(n,e).lift(new GU(t))}class GU{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new WU(t,this.resultSelector))}}class WU extends UU{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(S2),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;iuc(n,e,t)):e=>uc(n,e)}const A2=new Set;let mc,$U=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):YU}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function KU(n){if(!A2.has(n))try{mc||(mc=document.createElement("style"),mc.setAttribute("type","text/css"),document.head.appendChild(mc)),mc.sheet&&(mc.sheet.insertRule(`@media ${n} {body{ }}`,0),A2.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(T(Pn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function YU(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let Jy=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new L}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return T2(lf(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Zy(T2(lf(e)).map(s=>this._registerQuery(s).observable));return o=uc(o.pipe(dn(1)),o.pipe(Xy(1),Qy(0))),o.pipe(ue(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new b(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(ii(i),ue(({matches:s})=>({query:e,matches:s})),Qt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(T($U),T(nt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function T2(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function uf(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const I2="cdk-describedby-message",df="cdk-describedby-host";let eb=0,JU=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+eb++,this._document=e,this._id=Ea(oc)+"-"+eb++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=tb(i,r);"string"!=typeof i?(M2(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=tb(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const s=this._messageRegistry.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${df}="${this._id}"]`);for(let i=0;i0!=r.indexOf(I2));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function XU(n,t,e){const i=uf(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(df,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function ZU(n,t,e){const r=uf(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(df)}_isElementDescribedByMessage(e,i){const r=uf(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(Pn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function tb(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function M2(n,t){n.id||(n.id=`${I2}-${t}-${eb++}`)}class k2{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new L,this._typeaheadSubscription=w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new L,this.change=new L,t instanceof Oa&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Yn(e=>this._pressedLetters.push(e)),Qy(t),Sn(()=>this._pressedLetters.length>0),ue(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Di(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Oa?this._items.toArray():this._items}}class R2 extends k2{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class hf extends k2{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let pf=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function t8(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function e8(n){try{return n.frameElement}catch{return null}}(function c8(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===P2(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=P2(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function a8(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function l8(n){return!function i8(n){return function o8(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function n8(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function r8(n){return function s8(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||O2(n))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(T(Pn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function O2(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function P2(n){if(!O2(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class u8{constructor(t,e,i,r,o=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(dn(1)).subscribe(t)}}let nb=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new u8(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(T(pf),T(nt),T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ff(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function mf(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const d8=new pe("cdk-input-modality-detector-options"),h8={ignoreKeys:[18,17,224,91,16]},gc=_s({passive:!0,capture:!0});let p8=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new sr(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Vr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ff(s)?"keyboard":"mouse"),this._mostRecentTarget=Vr(s))},this._onTouchstart=s=>{mf(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Vr(s))},this._options={...h8,...o},this.modalityDetected=this._modality.pipe(Xy(1)),this.modalityChanged=this.modalityDetected.pipe(af()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,gc),r.addEventListener("mousedown",this._onMousedown,gc),r.addEventListener("touchstart",this._onTouchstart,gc)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,gc),document.removeEventListener("mousedown",this._onMousedown,gc),document.removeEventListener("touchstart",this._onTouchstart,gc))}}return n.\u0275fac=function(e){return new(e||n)(T(Pn),T(nt),T(ht),T(d8,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const f8=new pe("liveAnnouncerElement",{providedIn:"root",factory:function m8(){return null}}),g8=new pe("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ib=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o{class n{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new L,this._rootNodeFocusAndBlurListener=a=>{for(let c=Vr(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(e,i=!1){const r=Qn(e);if(!this._platform.isBrowser||1!==r.nodeType)return Ve(null);const o=nf(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new L,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Qn(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=Qn(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Vr(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,gf),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,gf)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Qt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,gf),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,gf),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Be}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(_o))},n.\u0275dir=he({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const N2="cdk-high-contrast-black-on-white",F2="cdk-high-contrast-white-on-black",rb="cdk-high-contrast-active";let B2=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Ea(Jy).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(rb,N2,F2),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(rb,N2):2===i&&e.add(rb,F2)}}}return n.\u0275fac=function(e){return new(e||n)(T(Pn),T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ob=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(T(B2))},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[td]}),n})();function bs(n,t,e,i){return le(e)&&(i=e,e=void 0),i?bs(n,t,e).pipe(ue(r=>F(r)?i(...r):i(r))):new b(r=>{H2(n,t,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function H2(n,t,e,i,r){let o;if(function C8(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(t,e,r),o=()=>s.removeEventListener(t,e,r)}else if(function b8(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(t,e),o=()=>s.off(t,e)}else if(function y8(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(t,e),o=()=>s.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;s0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let D8=1;const S8=Promise.resolve(),_f={};function j2(n){return n in _f&&(delete _f[n],!0)}const U2={setImmediate(n){const t=D8++;return _f[t]=!0,S8.then(()=>j2(t)&&n()),t},clearImmediate(n){j2(n)}},sb=new class T8 extends go{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=U2.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(U2.clearImmediate(e),t.scheduled=void 0)}});class I8{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new M8(t,this.durationSelector))}}class M8 extends Zc{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=Jc(e,new Do(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function ab(n){return!F(n)&&n-parseFloat(n)+1>=0}function q2(n=0,t,e){let i=-1;return ab(t)?i=Number(t)<1?1:Number(t):de(t)&&(e=t),de(e)||(e=fc),new b(r=>{const o=ab(n)?n:+n-e.now();return e.schedule(k8,o,{index:0,period:i,subscriber:r})})}function k8(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function z2(n,t=fc){return function x8(n){return function(e){return e.lift(new I8(n))}}(()=>q2(n,t))}const R8=new pe("cdk-dir-doc",{providedIn:"root",factory:function O8(){return Ea(ht)}}),P8=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let er=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new Be,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function L8(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?P8.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(T(R8,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})(),F8=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new L,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new b(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(z2(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ve()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Sn(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Qn(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>bs(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(T(nt),T(Pn),T(ht,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ho=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new L,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(z2(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(T(Pn),T(nt),T(ht,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_c=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})(),lb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[nd,_c,nd,_c]}),n})();class cb{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class id extends cb{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Cs extends cb{constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class H8 extends cb{constructor(t){super(),this.element=t instanceof Je?t.nativeElement:t}}class vf{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof id?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Cs?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof H8?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class V8 extends vf{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{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(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||Rn.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=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.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=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let j8=(()=>{class n extends Cs{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(En))},n.\u0275dir=he({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[De]}),n})(),Es=(()=>{class n extends vf{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Be,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(p(ro),p(En),p(ht))},n.\u0275dir=he({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[De]}),n})(),za=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})();function G2(n,t=!1){return e=>e.lift(new U8(n,t))}class U8{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new q8(t,this.predicate,this.inclusive))}}class q8 extends D{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const W2=mU();class z8{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=ni(-this._previousScrollPosition.left),t.style.top=ni(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),W2&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),W2&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class G8{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class $2{enable(){}disable(){}attach(){}}function ub(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function K2(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class W8{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();ub(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let $8=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new $2,this.close=s=>new G8(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new z8(this._viewportRuler,this._document),this.reposition=s=>new W8(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(T(F8),T(Ho),T(nt),T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class vc{constructor(t){if(this.scrollStrategy=new $2,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class K8{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let Y2=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Y8=(()=>{class n extends Y2{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(nt,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Q8=(()=>{class n extends Y2{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Vr(o)},this._clickListener=o=>{const s=Vr(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(o)):d.next(o)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(Pn),T(nt,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yf=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Wy()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new L,this._outsidePointerEvents=new L,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(dn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=ni(this._config.width),t.height=ni(this._config.height),t.minWidth=ni(this._config.minWidth),t.minHeight=ni(this._config.minHeight),t.maxWidth=ni(this._config.maxWidth),t.maxHeight=ni(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const r=lf(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Qt(Mn(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Q2="cdk-overlay-connected-position-bounding-box",X8=/([A-Za-z%]+)$/;class Z8{constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new L,this._resizeSubscription=w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(Q2),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?o.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ga(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Q2),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,o;if("center"==i.originX)r=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?s:a}return e.left<0&&(r-=e.left),o="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=Z2(e);let{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,_=this._subtractOverflows(o.width,0-s,s+o.width-i.width),S=this._subtractOverflows(o.height,h,f),U=_*S;return{visibleArea:U,isCompletelyWithinViewport:o.width*o.height===U,fitsInViewportVertically:S===o.height,fitsInViewportHorizontally:_==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=X2(this._overlayRef.getConfig().minHeight),a=X2(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=Z2(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:t.x_&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-_/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),_=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>_&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-_/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=ni(i.height),r.top=ni(i.top),r.bottom=ni(i.bottom),r.width=ni(i.width),r.left=ni(i.left),r.right=ni(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=ni(o)),s&&(r.maxWidth=ni(s))}this._lastBoundingBoxSize=i,Ga(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ga(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ga(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Ga(i,this._getExactOverlayY(e,t,u)),Ga(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=ni(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ni(s.maxWidth):o&&(i.maxWidth="")),Ga(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=ni(o.y),r}_getExactOverlayX(t,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=ni(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:K2(t,i),isOriginOutsideView:ub(t,i),isOverlayClipped:K2(e,i),isOverlayOutsideView:ub(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?t.offsetX??this._offsetX:t.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&lf(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Je)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Ga(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function X2(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(X8);return e&&"px"!==e?null:parseFloat(t)}return n||null}function Z2(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const J2="cdk-global-overlay-wrapper";class J8{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(J2),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",_="",S="";l?S="flex-start":"center"===u?(S="center",h?_=d:f=d):h?"left"===u||"end"===u?(S="flex-end",f=d):("right"===u||"start"===u)&&(S="flex-start",_=d):"left"===u||"start"===u?(S="flex-start",f=d):("right"===u||"end"===u)&&(S="flex-end",_=d),t.position=this._cssPosition,t.marginLeft=l?"0":f,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":_,e.justifyContent=S,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(J2),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let e6=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new J8}flexibleConnectedTo(e){return new Z8(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(T(Ho),T(ht),T(Pn),T(yf))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),t6=0,ar=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new vc(e);return s.direction=s.direction||this._directionality.value,new rd(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+t6++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ys)),new V8(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(T($8),T(yf),T(ro),T(e6),T(Y8),T(Rn),T(nt),T(ht),T(er),T(Na),T(Q8),T(Un,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const n6=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],eI=new pe("cdk-connected-overlay-scroll-strategy");let tI=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(Je))},n.\u0275dir=he({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),nI=(()=>{class n{constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=w.EMPTY,this._attachSubscription=w.EMPTY,this._detachSubscription=w.EMPTY,this._positionSubscription=w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Be,this.positionChange=new Be,this.attach=new Be,this.detach=new Be,this.overlayKeydown=new Be,this.overlayOutsideClick=new Be,this._templatePortal=new Cs(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ct(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=ct(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=ct(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=ct(e)}get push(){return this._push}set push(e){this._push=ct(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=n6);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Di(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new vc({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof tI?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(G2(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(ar),p(bn),p(En),p(eI),p(er,8))},n.\u0275dir=he({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[kn]}),n})();const r6={provide:eI,deps:[ar],useFactory:function i6(n){return()=>n.scrollStrategies.reposition()}};let yc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[ar,r6],imports:[nd,za,lb,lb]}),n})();function o6(n,t){}class bf{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let iI=(()=>{class n extends vf{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=Gy(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Gy();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Gy())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nb),p(ht,8),p(bf),p(pf),p(nt),p(rd),p(_o))},n.\u0275cmp=ze({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&Oe(Es,7),2&e){let r;me(r=ge())&&(i._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,i){2&e&&ot("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[De],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&V(0,o6,0,0,"ng-template",0)},dependencies:[Es],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class db{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new L,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!Di(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(t,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),i.next(t),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",e=""){return this.overlayRef.updateSize({width:t,height:e}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}}const rI=new pe("DialogScrollStrategy"),s6=new pe("DialogData"),a6=new pe("DefaultDialogConfig"),c6={provide:rI,deps:[ar],useFactory:function l6(n){return()=>n.scrollStrategies.block()}};let u6=0,oI=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new L,this._afterOpenedAtThisLevel=new L,this._ariaHiddenElements=new Map,this.afterAllClosed=ea(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ii(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,i){(i={...this._defaultOptions||new bf,...i}).id=i.id||"cdk-dialog-"+u6++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new db(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){hb(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){hb(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),hb(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new vc({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:bf,useValue:r},{provide:db,useValue:i},{provide:rd,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=iI;const l=new id(a,r.viewContainerRef,Rn.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof bn){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new Cs(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new id(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,r,o){const s=e.injector||e.viewContainerRef?.injector,a=[{provide:s6,useValue:e.data},{provide:db,useValue:i}];return e.providers&&("function"==typeof e.providers?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(er,null,vt.Optional))&&a.push({provide:er,useValue:{value:e.direction,change:Ve()}}),Rn.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(T(ar),T(Rn),T(a6,8),T(n,12),T(yf),T(rI))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();function hb(n,t){let e=n.length;for(;e--;)t(n[e])}let d6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[oI,c6],imports:[yc,za,ob,za]}),n})();const h6=["*",[["mat-option"],["ng-container"]]],p6=["*","mat-option, ng-container"];function f6(n,t){if(1&n&&xe(0,"mat-pseudo-checkbox",4),2&n){const e=x();y("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function m6(n,t){if(1&n&&(g(0,"span",5),j(1),v()),2&n){const e=x();m(1),Qe("(",e.group.label,")")}}const g6=["*"],v6=new pe("mat-sanity-checks",{providedIn:"root",factory:function _6(){return!0}});let Pt=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Wy()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(T(B2),T(v6,8),T(ht))},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[nd,nd]}),n})();function Ds(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ct(t)}}}function Wa(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function Vo(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ct(t)}}}function od(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?ys(e):this.defaultTabIndex}}}function pb(n){return class extends n{constructor(...t){super(...t),this.errorState=!1}updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}}}let sd=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),b6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function ad(n,t,e){n.nativeElement.classList.toggle(t,e)}let lI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt,Pt]}),n})();class w6{constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const cI={enterDuration:225,exitDuration:150},fb=_s({passive:!0}),uI=["mousedown","touchstart"],dI=["mouseup","mouseleave","touchend","touchcancel"];class hI{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Qn(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...cI,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function D6(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),f=d.transitionDuration,_="none"===d.transitionProperty||"0s"===f||"0s, 0s"===f,S=new w6(this,u,i,_);u.style.transform="scale3d(1, 1, 1)",S.state=0,i.persistent||(this._mostRecentTransientRipple=S);let U=null;return!_&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Z=()=>this._finishRippleTransition(S),ve=()=>this._destroyRipple(S);u.addEventListener("transitionend",Z),u.addEventListener("transitioncancel",ve),U={onTransitionEnd:Z,onTransitionCancel:ve}}),this._activeRipples.set(S,U),(_||!c)&&this._finishRippleTransition(S),S}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...cI,...t.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Qn(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(uI))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(dI),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=1,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==e&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=ff(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,fb)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(uI.forEach(t=>{this._triggerElement.removeEventListener(t,this,fb)}),this._pointerUpEventsRegistered&&dI.forEach(t=>{this._triggerElement.removeEventListener(t,this,fb)}))}}const pI=new pe("mat-ripple-global-options");let Ar=(()=>{class n{constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new hI(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nt),p(Pn),p(pI,8),p(Un,8))},n.\u0275dir=he({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&wt("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),ia=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt,Pt]}),n})(),fI=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(p(Un,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&wt("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),n})(),mb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt]}),n})();const Cf=new pe("MAT_OPTION_PARENT_COMPONENT"),S6=Ds(class{});let A6=0,T6=(()=>{class n extends S6{constructor(e){super(),this._labelId="mat-optgroup-label-"+A6++,this._inert=e?.inertGroups??!1}}return n.\u0275fac=function(e){return new(e||n)(p(Cf,8))},n.\u0275dir=he({type:n,inputs:{label:"label"},features:[De]}),n})();const wf=new pe("MatOptgroup");let x6=(()=>{class n extends T6{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275cmp=ze({type:n,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(e,i){2&e&&(ot("role",i._inert?null:"group")("aria-disabled",i._inert?null:i.disabled.toString())("aria-labelledby",i._inert?null:i._labelId),wt("mat-optgroup-disabled",i.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[rt([{provide:wf,useExisting:n}]),De],ngContentSelectors:p6,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(e,i){1&e&&(Vn(h6),g(0,"span",0),j(1),Ht(2),v(),Ht(3,1)),2&e&&(y("id",i._labelId),m(1),Qe("",i.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}"],encapsulation:2,changeDetection:0}),n})(),I6=0;class mI{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let M6=(()=>{class n{constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+I6++,this.onSelectionChange=new Be,this._stateChanges=new L}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=ct(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Di(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new mI(this,e))}}return n.\u0275fac=function(e){Vl()},n.\u0275dir=he({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),vo=(()=>{class n extends M6{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(Cf,8),p(wf,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&X("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Po("id",i.id),ot("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),wt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[De],ngContentSelectors:g6,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(Vn(),V(0,f6,1,2,"mat-pseudo-checkbox",0),g(1,"span",1),Ht(2),v(),V(3,m6,2,1,"span",2),xe(4,"div",3)),2&e&&(y("ngIf",i.multiple),m(3),y("ngIf",i.group&&i.group._inert),m(1),y("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[Ar,_n,fI],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),n})();function gb(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let s=0;se+i?Math.max(0,n-i+t):e}let Ef=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[ia,Xi,Pt,mb]}),n})();class _I{}const Ss="*";function jr(n,t){return{type:7,name:n,definitions:t,options:{}}}function mi(n,t=null){return{type:4,styles:t,timings:n}}function vI(n,t=null){return{type:3,steps:n,options:t}}function yI(n,t=null){return{type:2,steps:n,options:t}}function Lt(n){return{type:6,styles:n,offset:null}}function qn(n,t,e){return{type:0,name:n,styles:t,options:e}}function R6(n){return{type:5,steps:n}}function ui(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function _b(n=null){return{type:9,options:n}}function vb(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function bI(n){Promise.resolve(null).then(n)}class ld{constructor(t=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=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){bI(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class CI{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?bI(()=>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(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function O6(n,t){}const bc={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},P6={dialogContainer:jr("dialogContainer",[qn("void, exit",Lt({opacity:0,transform:"scale(0.7)"})),qn("enter",Lt({transform:"none"})),ui("* => enter",vI([mi("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Lt({transform:"none",opacity:1})),vb("@*",_b(),{optional:!0})]),bc),ui("* => void, * => exit",vI([mi("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Lt({opacity:0})),vb("@*",_b(),{optional:!0})]),bc)])};class Cc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=bc.params.enterAnimationDuration,this.exitAnimationDuration=bc.params.exitAnimationDuration}}let L6=(()=>{class n extends iI{constructor(e,i,r,o,s,a,l,c){super(e,i,r,o,s,a,l,c),this._animationStateChanged=new Be}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nb),p(ht,8),p(Cc),p(pf),p(nt),p(rd),p(_o))},n.\u0275cmp=ze({type:n,selectors:[["ng-component"]],features:[De],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),N6=(()=>{class n extends L6{constructor(e,i,r,o,s,a,l,c,u){super(e,i,r,o,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?this._openAnimationDone(i):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||bc.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||bc.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nb),p(ht,8),p(Cc),p(pf),p(nt),p(rd),p(Bt),p(_o))},n.\u0275cmp=ze({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&rp("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&(Po("id",i._config.id),ot("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Ru("@dialogContainer",i._getAnimationState()))},features:[De],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&V(0,O6,0,0,"ng-template",0)},dependencies:[Es],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[P6.dialogContainer]}}),n})();class Df{constructor(t,e,i){this._ref=t,this._containerInstance=i,this._afterOpened=new L,this._beforeClosed=new L,this._state=0,this.disableClose=e.disableClose,this.id=t.id,i._animationStateChanged.pipe(Sn(r=>"opened"===r.state),dn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Sn(r=>"closed"===r.state),dn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Mn(this.backdropClick(),this.keydownEvents().pipe(Sn(r=>27===r.keyCode&&!this.disableClose&&!Di(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function F6(n,t,e){n._closeInteractionType=t,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Sn(e=>"closing"===e.state),dn(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const B6=new pe("MatDialogData"),H6=new pe("mat-dialog-default-options"),wI=new pe("mat-dialog-scroll-strategy"),j6={provide:wI,deps:[ar],useFactory:function V6(n){return()=>n.scrollStrategies.block()}};let U6=0,q6=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new L,this._afterOpenedAtThisLevel=new L,this._idPrefix="mat-dialog-",this.afterAllClosed=ea(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ii(void 0))),this._scrollStrategy=a,this._dialog=i.get(oI)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){let r;(i={...this._defaultOptions||new Cc,...i}).id=i.id||`${this._idPrefix}${U6++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Cc,useValue:i},{provide:bf,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){Vl()},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),As=(()=>{class n extends q6{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,Df,N6,B6,c)}}return n.\u0275fac=function(e){return new(e||n)(T(ar),T(Rn),T(Na,8),T(H6,8),T(wI),T(n,12),T(yf),T(Un,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),z6=0,G6=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+z6++}ngOnInit(){this._dialogRef||(this._dialogRef=function $6(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(p(Df,8),p(Je),p(As))},n.\u0275dir=he({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&Po("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),Sf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),W6=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,i){2&e&&wt("mat-dialog-actions-align-center","center"===i.align)("mat-dialog-actions-align-end","end"===i.align)},inputs:{align:"align"}}),n})(),EI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[As,j6],imports:[d6,yc,za,Pt,Pt]}),n})();const DI=["toast-component",""];function K6(n,t){if(1&n){const e=je();g(0,"button",5),X("click",function(){return oe(e),se(x().remove())}),g(1,"span",6),j(2,"\xd7"),v()()}}function Y6(n,t){if(1&n&&(bi(0),j(1),Ci()),2&n){const e=x(2);m(1),Qe("[",e.duplicatesCount+1,"]")}}function Q6(n,t){if(1&n&&(g(0,"div"),j(1),V(2,Y6,2,1,"ng-container",4),v()),2&n){const e=x();wi(e.options.titleClass),ot("aria-label",e.title),m(1),Qe(" ",e.title," "),m(1),y("ngIf",e.duplicatesCount)}}function X6(n,t){if(1&n&&xe(0,"div",7),2&n){const e=x();wi(e.options.messageClass),y("innerHTML",e.message,n_)}}function Z6(n,t){if(1&n&&(g(0,"div",8),j(1),v()),2&n){const e=x();wi(e.options.messageClass),ot("aria-label",e.message),m(1),Qe(" ",e.message," ")}}function J6(n,t){if(1&n&&(g(0,"div"),xe(1,"div",9),v()),2&n){const e=x();m(1),Oi("width",e.width+"%")}}function tq(n,t){if(1&n){const e=je();g(0,"button",5),X("click",function(){return oe(e),se(x().remove())}),g(1,"span",6),j(2,"\xd7"),v()()}}function nq(n,t){if(1&n&&(bi(0),j(1),Ci()),2&n){const e=x(2);m(1),Qe("[",e.duplicatesCount+1,"]")}}function iq(n,t){if(1&n&&(g(0,"div"),j(1),V(2,nq,2,1,"ng-container",4),v()),2&n){const e=x();wi(e.options.titleClass),ot("aria-label",e.title),m(1),Qe(" ",e.title," "),m(1),y("ngIf",e.duplicatesCount)}}function rq(n,t){if(1&n&&xe(0,"div",7),2&n){const e=x();wi(e.options.messageClass),y("innerHTML",e.message,n_)}}function oq(n,t){if(1&n&&(g(0,"div",8),j(1),v()),2&n){const e=x();wi(e.options.messageClass),ot("aria-label",e.message),m(1),Qe(" ",e.message," ")}}function sq(n,t){if(1&n&&(g(0,"div"),xe(1,"div",9),v()),2&n){const e=x();m(1),Oi("width",e.width+"%")}}class Af{constructor(t,e,i,r,o,s){this.toastId=t,this.config=e,this.message=i,this.title=r,this.toastType=o,this.toastRef=s,this._onTap=new L,this._onAction=new L,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const bb={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},cd=new pe("ToastConfig");class aq{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class cq extends class lq{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,i){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=i}attachComponentPortal(t,e){const i=this._componentFactoryResolver.resolveComponentFactory(t.component);let r;return r=i.create(t.injector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(r),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(r)),r}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let SI=(()=>{class n{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),this._document.body.appendChild(e),this._containerElement=e}}return n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=fe({factory:function(){return new n(T(ht))},token:n,providedIn:"root"}),n})();class uq{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let AI=(()=>{class n{constructor(e,i,r,o){this._overlayContainer=e,this._componentFactoryResolver=i,this._appRef=r,this._document=o,this._paneElements=new Map}create(e,i){return this._createOverlayRef(this.getPaneElement(e,i))}getPaneElement(e="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[e]||(this._paneElements.get(i)[e]=this._createPaneElement(e,i)),this._paneElements.get(i)[e]}_createPaneElement(e,i){const r=this._document.createElement("div");return r.id="toast-container",r.classList.add(e),r.classList.add("toast-container"),i?i.getContainerElement().appendChild(r):this._overlayContainer.getContainerElement().appendChild(r),r}_createPortalHost(e){return new cq(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new uq(this._createPortalHost(e))}}return n.\u0275fac=function(e){return new(e||n)(T(SI),T(ro),T(Ys),T(ht))},n.\u0275prov=fe({factory:function(){return new n(T(SI),T(ro),T(Ys),T(ht))},token:n,providedIn:"root"}),n})();class dq{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new L,this._activate=new L,this._manualClose=new L,this._resetTimeout=new L,this._countDuplicate=new L}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class hq{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,i){return t===Af?this._toastPackage:this._parentInjector.get(t,e,i)}}let Cb=(()=>{class n{constructor(e,i,r,o,s){this.overlay=i,this._injector=r,this.sanitizer=o,this.ngZone=s,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))}show(e,i,r={},o=""){return this._preBuildNotification(o,e,i,this.applyConfig(r))}success(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,i,this.applyConfig(r))}error(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,i,this.applyConfig(r))}info(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,i,this.applyConfig(r))}warning(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,i,this.applyConfig(r))}clear(e){for(const i of this.toasts)if(void 0!==e){if(i.toastId===e)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}remove(e){const i=this._findToast(e);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,i,r,o)):this._buildNotification(e,i,r,o)}_buildNotification(e,i,r,o){if(!o.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(r,i,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&r||i)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=i;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let c=i;i&&o.enableHtml&&(c=this.sanitizer.sanitize(on.HTML,i));const u=new dq(l),d=new Af(this.index,o,c,r,e,u),h=new hq(d,this._injector),f=new aq(o.toastComponent,h),_=l.attach(f,this.toastrConfig.newestOnTop);u.componentInstance=_.instance;const S={toastId:this.index,title:r||"",message:i||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:_};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{S.toastRef.activate()})),this.toasts.push(S),S}}return n.\u0275fac=function(e){return new(e||n)(T(cd),T(AI),T(Rn),T(Ba),T(nt))},n.\u0275prov=fe({factory:function(){return new n(T(cd),T(AI),T(i_),T(Ba),T(nt))},token:n,providedIn:"root"}),n})(),pq=(()=>{class n{constructor(e,i,r){this.toastrService=e,this.toastPackage=i,this.ngZone=r,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),i)):this.timeout=setTimeout(()=>e(),i)}outsideInterval(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),i)):this.intervalId=setInterval(()=>e(),i)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}}return n.\u0275fac=function(e){return new(e||n)(p(Cb),p(Af),p(nt))},n.\u0275cmp=ze({type:n,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,i){1&e&&X("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&e&&(Ru("@flyInOut",i.state),wi(i.toastClasses),Oi("display",i.displayStyle))},attrs:DI,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(e,i){1&e&&(V(0,K6,3,0,"button",0),V(1,Q6,3,5,"div",1),V(2,X6,1,3,"div",2),V(3,Z6,2,4,"div",3),V(4,J6,2,2,"div",4)),2&e&&(y("ngIf",i.options.closeButton),m(1),y("ngIf",i.title),m(1),y("ngIf",i.message&&i.options.enableHtml),m(1),y("ngIf",i.message&&!i.options.enableHtml),m(1),y("ngIf",i.options.progressBar))},dependencies:[_n],encapsulation:2,data:{animation:[jr("flyInOut",[qn("inactive",Lt({opacity:0})),qn("active",Lt({opacity:1})),qn("removed",Lt({opacity:0})),ui("inactive => active",mi("{{ easeTime }}ms {{ easing }}")),ui("active => removed",mi("{{ easeTime }}ms {{ easing }}"))])]}}),n})();const fq=Object.assign(Object.assign({},bb),{toastComponent:pq});let TI=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[{provide:cd,useValue:{default:fq,config:e}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Xi]}),n})(),mq=(()=>{class n{constructor(e,i,r){this.toastrService=e,this.toastPackage=i,this.appRef=r,this.width=-1,this.toastClasses="",this.state="inactive",this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return n.\u0275fac=function(e){return new(e||n)(p(Cb),p(Af),p(Ys))},n.\u0275cmp=ze({type:n,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,i){1&e&&X("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&e&&(wi(i.toastClasses),Oi("display",i.displayStyle))},attrs:DI,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(e,i){1&e&&(V(0,tq,3,0,"button",0),V(1,iq,3,5,"div",1),V(2,rq,1,3,"div",2),V(3,oq,2,4,"div",3),V(4,sq,2,2,"div",4)),2&e&&(y("ngIf",i.options.closeButton),m(1),y("ngIf",i.title),m(1),y("ngIf",i.message&&i.options.enableHtml),m(1),y("ngIf",i.message&&!i.options.enableHtml),m(1),y("ngIf",i.options.progressBar))},dependencies:[_n],encapsulation:2}),n})();Object.assign(Object.assign({},bb),{toastComponent:mq});let en=(()=>{class n{constructor(e,i,r){this.toastr=e,this.globals=i,this.lsm=r,this.toastrObj={timeOut:3e3,positionClass:"toast-bottom-center",preventDuplicates:!0,progressBar:!0,closeButton:!0,maxOpen:0,newestOnTop:!1,enableHtml:!0},this.defaultTitle="",this.connectionTimeout=null,this.waitForAsyncMessage()}showError(e,i=this.defaultTitle,r,o=3e3){if((null===e||""===e?.trim())&&(e="An error occurred. Please try again."),r){const s={};Object.assign(s,this.toastrObj),s.disableTimeOut=!0,this.toastr.error(e,i,s)}else this.toastrObj.timeOut=o,this.toastr.error(e,i,this.toastrObj)}waitForAsyncMessage(){setInterval(()=>{let e=this.lsm.getValue(tn.asyncMessage);if(e){let i=JSON.parse(e);switch(i.type){case lr.error:this.showError(i.message,"",void 0,1e4);break;case lr.info:this.showInfo(i.message);break;case lr.success:let o=(i.message.split(" ").length-1)/3*1e3;this.showSuccess(i.message,"",o);break;case lr.warning:this.showWarning(i.message);break;default:this.showCommon(i.message)}}this.lsm.removeValue(tn.asyncMessage)},1e3)}showMessageAsync(e,i){let r=JSON.stringify({message:e,type:i});this.lsm.setValue(tn.asyncMessage,r)}showInfo(e,i=this.defaultTitle){this.toastr.info(e,i,this.toastrObj)}showSuccess(e,i=this.defaultTitle,r=3e3){this.toastrObj.timeOut=r,this.toastr.success(e,i,this.toastrObj)}showWarning(e,i=this.defaultTitle){this.toastr.warning(e,i,this.toastrObj)}showCommon(e,i=this.defaultTitle){this.toastr.show(e,i,this.toastrObj)}setConnectionTimeout(e,i=this.defaultTitle){this.clearConnectionTimeout(),this.connectionTimeout=setTimeout(()=>{this.globals.loginOpen||this.showError(e,i,!0)},5e3)}clearConnectionTimeout(){null!=this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null)}getTimeoutMS(){return this.toastrObj.timeOut}clearToasts(){this.toastr.clear()}changeClass(e){this.toastrObj.positionClass=e}}return n.\u0275fac=function(e){return new(e||n)(T(Cb),T(pt),T(Br))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var lr=(()=>(function(n){n.error="Error",n.info="Info",n.success="Success",n.warning="Warning"}(lr||(lr={})),lr))();function An(n,t,e,i){return new(e||(e=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}const MI=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn"]),Cq=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"],Eb=n=>{const t=n&&n.constructor&&n.constructor.name;if("Buffer"===t||"Blob"===t||"File"===t||"FormData"===t||"string"==typeof n)return n;if("ArrayBuffer"===t)n=Buffer.from(n);else if("Int8Array"===t||"Int16Array"===t||"Int32Array"===t||"Uint8Array"===t||"Uint16Array"===t||"Uint32Array"===t||"Uint8ClampedArray"===t||"Float32Array"===t||"Float64Array"===t||"DataView"===t)n=Buffer.from(n.buffer);else try{n=JSON.stringify(n)}catch{throw new Error("Unable to stringify the content")}return n};class $a{constructor(t=[]){this.middlewareOptions=new Map;for(const e of t)this.middlewareOptions.set(e.constructor,e)}getMiddlewareOptions(t){return this.middlewareOptions.get(t)}setMiddlewareOptions(t,e){this.middlewareOptions.set(t,e)}}const kI=(n,t,e)=>{let i=null;if(typeof Request<"u"&&n instanceof Request)i=n.headers.get(e);else if(typeof t<"u"&&void 0!==t.headers)if(typeof Headers<"u"&&t.headers instanceof Headers)i=t.headers.get(e);else if(t.headers instanceof Array){const r=t.headers;for(let o=0,s=r.length;o{if(typeof Request<"u"&&n instanceof Request)n.headers.set(e,i);else if(typeof t<"u")if(void 0===t.headers)t.headers=new Headers({[e]:i});else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(e,i);else if(t.headers instanceof Array){let r=0;const o=t.headers.length;for(;r{typeof Request<"u"&&n instanceof Request?n.headers.append(e,i):typeof t<"u"&&(void 0===t.headers?t.headers=new Headers({[e]:i}):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(e,i):t.headers instanceof Array?t.headers.push([e,i]):void 0===t.headers?t.headers={[e]:i}:void 0===t.headers[e]?t.headers[e]=i:t.headers[e]+=`, ${i}`)};var Ka=(()=>(function(n){n[n.NONE=0]="NONE",n[n.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",n[n.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",n[n.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"}(Ka||(Ka={})),Ka))();class ra{constructor(){this.featureUsage=Ka.NONE}static updateFeatureUsageFlag(t,e){let i;t.middlewareControl instanceof $a?i=t.middlewareControl.getMiddlewareOptions(ra):t.middlewareControl=new $a,typeof i>"u"&&(i=new ra,t.middlewareControl.setMiddlewareOptions(ra,i)),i.setFeatureUsage(e)}setFeatureUsage(t){this.featureUsage=this.featureUsage|t}getFeatureUsage(){return this.featureUsage.toString(16)}}let Tq=(()=>{class n{execute(e){return An(this,void 0,void 0,function*(){try{if((n=>{if(-1!==(n=n.toLowerCase()).indexOf("https://")){const t=(n=n.replace("https://","")).indexOf(":"),e=n.indexOf("/");let i="";if(-1!==e)return-1!==t&&t{let n="";for(let t=0;t<32;t++)(8===t||12===t||16===t||20===t)&&(n+="-"),n+=Math.floor(16*Math.random()).toString(16);return n})(),RI(e.request,e.options,n.CLIENT_REQUEST_ID_HEADER,r));let s,o=`${n.PRODUCT_NAME}/2.2.1`;if(e.middlewareControl instanceof $a&&(s=e.middlewareControl.getMiddlewareOptions(ra)),s){const a=s.getFeatureUsage();o+=` (${n.FEATURE_USAGE_STRING}=${a})`}OI(e.request,e.options,n.SDK_VERSION_HEADER,o)}else delete e.options.headers[n.CLIENT_REQUEST_ID_HEADER],delete e.options.headers[n.SDK_VERSION_HEADER];return yield this.nextMiddleware.execute(e)}catch(i){throw i}})}setNext(e){this.nextMiddleware=e}}return n.CLIENT_REQUEST_ID_HEADER="client-request-id",n.SDK_VERSION_HEADER="SdkVersion",n.PRODUCT_NAME="graph-js",n.FEATURE_USAGE_STRING="featureUsage",n})();class Iq{constructor(t){this.provider=t}getAccessToken(){return An(this,void 0,void 0,function*(){return new Promise((t,e)=>{this.provider((i,r)=>{r?t(r):e(i)})})})}}class ud extends Error{constructor(t=-1,e,i){super(e||i&&i.message),Object.setPrototypeOf(this,ud.prototype),this.statusCode=t,this.code=null,this.requestId=null,this.date=new Date,this.body=null,this.stack=i?i.stack:this.stack}}class xf{static constructError(t,e){const i=new ud(e,"",t);return void 0!==t.name&&(i.code=t.name),i.body=t.toString(),i.date=new Date,i}static constructErrorFromResponse(t,e){const i=new ud(e,(t=t.error).message);i.code=t.code,void 0!==t.innerError&&(i.requestId=t.innerError["request-id"],i.date=new Date(t.innerError.date));try{i.body=JSON.stringify(t)}catch{}return i}static getError(t=null,e=-1,i){return An(this,void 0,void 0,function*(){let r;if(r=t&&t.error?xf.constructErrorFromResponse(t,e):typeof Error<"u"&&t instanceof Error?xf.constructError(t,e):new ud(e),"function"!=typeof i)return r;i(r,null)})}}var Ur=(()=>(function(n){n.ARRAYBUFFER="arraybuffer",n.BLOB="blob",n.DOCUMENT="document",n.JSON="json",n.RAW="raw",n.STREAM="stream",n.TEXT="text"}(Ur||(Ur={})),Ur))(),If=(()=>(function(n){n.TEXT_HTML="text/html",n.TEXT_XML="text/xml",n.APPLICATION_XML="application/xml",n.APPLICATION_XHTML="application/xhtml+xml"}(If||(If={})),If))(),dd=(()=>(function(n){n.TEXT_PLAIN="text/plain",n.APPLICATION_JSON="application/json"}(dd||(dd={})),dd))(),hd=(()=>(function(n){n.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",n.IMAGE="^image\\/.+"}(hd||(hd={})),hd))();class pd{static parseDocumentResponse(t,e){try{return typeof DOMParser<"u"?new Promise((i,r)=>{t.text().then(o=>{try{const a=(new DOMParser).parseFromString(o,e);i(a)}catch(s){r(s)}})}):Promise.resolve(t.body)}catch(i){throw i}}static convertResponse(t,e){return An(this,void 0,void 0,function*(){if(204===t.status)return Promise.resolve();let i;try{switch(e){case Ur.ARRAYBUFFER:i=yield t.arrayBuffer();break;case Ur.BLOB:i=yield t.blob();break;case Ur.DOCUMENT:i=yield pd.parseDocumentResponse(t,If.TEXT_XML);break;case Ur.JSON:i=yield t.json();break;case Ur.STREAM:i=yield Promise.resolve(t.body);break;case Ur.TEXT:i=yield t.text();break;default:const r=t.headers.get("Content-type");if(null!==r){const o=r.split(";")[0];i=new RegExp(hd.DOCUMENT).test(o)?yield pd.parseDocumentResponse(t,o):new RegExp(hd.IMAGE).test(o)?t.blob():o===dd.TEXT_PLAIN?yield t.text():o===dd.APPLICATION_JSON?yield t.json():Promise.resolve(t.body)}else i=Promise.resolve(t.body)}}catch(r){throw r}return i})}static getResponse(t,e,i){return An(this,void 0,void 0,function*(){try{if(e===Ur.RAW)return Promise.resolve(t);{const r=yield pd.convertResponse(t,e);if(!t.ok)throw r;if("function"!=typeof i)return r;i(null,r)}}catch(r){throw r}})}}var cr=(()=>(function(n){n.GET="GET",n.PATCH="PATCH",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE"}(cr||(cr={})),cr))();class Mq{constructor(t,e,i){this.parsePath=r=>{if(-1!==r.indexOf("https://")){const s=(r=r.replace("https://","")).indexOf("/");-1!==s&&(this.urlComponents.host="https://"+r.substring(0,s),r=r.substring(s+1,r.length));const a=r.indexOf("/");-1!==a&&(this.urlComponents.version=r.substring(0,a),r=r.substring(a+1,r.length))}"/"===r.charAt(0)&&(r=r.substr(1));const o=r.indexOf("?");if(-1===o)this.urlComponents.path=r;else{this.urlComponents.path=r.substr(0,o);const s=r.substring(o+1,r.length).split("&");for(const a of s)this.parseQueryParameter(a)}},this.httpClient=t,this.config=e,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(i)}addCsvQueryParameter(t,e,i){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";let r=[];i.length>1&&"string"==typeof e?r=Array.prototype.slice.call(i):"string"==typeof e?r.push(e):r=r.concat(e),this.urlComponents.oDataQueryParams[t]+=r.join(",")}buildFullUrl(){const t=(n=>{const t=o=>o.replace(/\/+$/,""),e=o=>o.replace(/^\/+/,"");return Array.prototype.slice.call([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path]).reduce((o,s)=>[t(o),e(s)].join("/"))})()+this.createQueryString();return this.config.debugLogging&&console.log(t),t}createQueryString(){const t=this.urlComponents,e=[];if(0!==Object.keys(t.oDataQueryParams).length)for(const i in t.oDataQueryParams)t.oDataQueryParams.hasOwnProperty(i)&&e.push(i+"="+t.oDataQueryParams[i]);if(0!==Object.keys(t.otherURLQueryParams).length)for(const i in t.otherURLQueryParams)t.otherURLQueryParams.hasOwnProperty(i)&&e.push(i+"="+t.otherURLQueryParams[i]);if(0!==t.otherURLQueryOptions.length)for(const i of t.otherURLQueryOptions)e.push(i);return e.length>0?"?"+e.join("&"):""}parseQueryParameter(t){if("string"==typeof t)if("?"===t.charAt(0)&&(t=t.substring(1)),-1!==t.indexOf("&")){const e=t.split("&");for(const i of e)this.parseQueryParamenterString(i)}else this.parseQueryParamenterString(t);else if(t.constructor===Object)for(const e in t)t.hasOwnProperty(e)&&this.setURLComponentsQueryParamater(e,t[e]);return this}parseQueryParamenterString(t){if(this.isValidQueryKeyValuePair(t)){const e=t.indexOf("="),i=t.substring(0,e),r=t.substring(e+1);this.setURLComponentsQueryParamater(i,r)}else this.urlComponents.otherURLQueryOptions.push(t)}setURLComponentsQueryParamater(t,e){if(-1!==Cq.indexOf(t)){const i=this.urlComponents.oDataQueryParams[t];this.urlComponents.oDataQueryParams[t]=!i||"$expand"!==t&&"$select"!==t&&"$orderby"!==t?e:i+","+e}else this.urlComponents.otherURLQueryParams[t]=e}isValidQueryKeyValuePair(t){const e=t.indexOf("=");return!(-1===e||-1!==t.indexOf("(")&&t.indexOf("(")1?this.parseMiddleWareArray(t):this.middleware=t[0]}parseMiddleWareArray(t){t.forEach((e,i)=>{i{class n{constructor(e){this.authenticationProvider=e}execute(e){return An(this,void 0,void 0,function*(){try{let i,r,o;e.middlewareControl instanceof $a&&(i=e.middlewareControl.getMiddlewareOptions(kq)),typeof i<"u"&&(r=i.authenticationProvider,o=i.authenticationProviderOptions),typeof r>"u"&&(r=this.authenticationProvider);const a=`Bearer ${yield r.getAccessToken(o)}`;return OI(e.request,e.options,n.AUTHORIZATION_HEADER,a),ra.updateFeatureUsageFlag(e,Ka.AUTHENTICATION_HANDLER_ENABLED),yield this.nextMiddleware.execute(e)}catch(i){throw i}})}setNext(e){this.nextMiddleware=e}}return n.AUTHORIZATION_HEADER="Authorization",n})();class Oq{execute(t){return An(this,void 0,void 0,function*(){try{return void(t.response=yield fetch(t.request,t.options))}catch(e){throw e}})}}let Mf=(()=>{class n{constructor(e=n.DEFAULT_MAX_REDIRECTS,i=n.DEFAULT_SHOULD_RETRY){if(e>n.MAX_MAX_REDIRECTS){const r=new Error(`MaxRedirects should not be more than ${n.MAX_MAX_REDIRECTS}`);throw r.name="MaxLimitExceeded",r}if(e<0){const r=new Error("MaxRedirects should not be negative");throw r.name="MinExpectationNotMet",r}this.maxRedirects=e,this.shouldRedirect=i}}return n.DEFAULT_MAX_REDIRECTS=5,n.MAX_MAX_REDIRECTS=20,n.DEFAULT_SHOULD_RETRY=()=>!0,n})(),Db=(()=>{class n{constructor(e=n.DEFAULT_DELAY,i=n.DEFAULT_MAX_RETRIES,r=n.DEFAULT_SHOULD_RETRY){if(e>n.MAX_DELAY&&i>n.MAX_MAX_RETRIES){const o=new Error(`Delay and MaxRetries should not be more than ${n.MAX_DELAY} and ${n.MAX_MAX_RETRIES}`);throw o.name="MaxLimitExceeded",o}if(e>n.MAX_DELAY){const o=new Error(`Delay should not be more than ${n.MAX_DELAY}`);throw o.name="MaxLimitExceeded",o}if(i>n.MAX_MAX_RETRIES){const o=new Error(`MaxRetries should not be more than ${n.MAX_MAX_RETRIES}`);throw o.name="MaxLimitExceeded",o}if(e<0&&i<0){const o=new Error("Delay and MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}if(e<0){const o=new Error("Delay should not be negative");throw o.name="MinExpectationNotMet",o}if(i<0){const o=new Error("MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}this.delay=Math.min(e,n.MAX_DELAY),this.maxRetries=Math.min(i,n.MAX_MAX_RETRIES),this.shouldRetry=r}getMaxDelay(){return n.MAX_DELAY}}return n.DEFAULT_DELAY=3,n.DEFAULT_MAX_RETRIES=3,n.MAX_DELAY=180,n.MAX_MAX_RETRIES=10,n.DEFAULT_SHOULD_RETRY=()=>!0,n})(),Pq=(()=>{class n{constructor(e=new Mf){this.options=e}isRedirect(e){return-1!==n.REDIRECT_STATUS_CODES.indexOf(e.status)}hasLocationHeader(e){return e.headers.has(n.LOCATION_HEADER)}getLocationHeader(e){return e.headers.get(n.LOCATION_HEADER)}isRelativeURL(e){return-1===e.indexOf("://")}shouldDropAuthorizationHeader(e,i){const r=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,o=r.exec(e);let s,a;null!==o&&(s=o[0]);const l=r.exec(i);return null!==l&&(a=l[0]),typeof s<"u"&&typeof a<"u"&&s!==a}updateRequestUrl(e,i){return An(this,void 0,void 0,function*(){i.request="string"==typeof i.request?e:yield((n,t)=>An(void 0,void 0,void 0,function*(){const e=t.headers.get("Content-Type")?yield t.blob():yield Promise.resolve(void 0),{method:i,headers:r,referrer:o,referrerPolicy:s,mode:a,credentials:l,cache:c,redirect:u,integrity:d,keepalive:h,signal:f}=t;return new Request(n,{method:i,headers:r,body:e,referrer:o,referrerPolicy:s,mode:a,credentials:l,cache:c,redirect:u,integrity:d,keepalive:h,signal:f})}))(e,i.request)})}getOptions(e){let i;return e.middlewareControl instanceof $a&&(i=e.middlewareControl.getMiddlewareOptions(Mf)),typeof i>"u"&&(i=Object.assign(new Mf,this.options)),i}executeWithRedirect(e,i,r){return An(this,void 0,void 0,function*(){try{yield this.nextMiddleware.execute(e);const o=e.response;if(!(i{class n{constructor(e=new Db){this.options=e}isRetry(e){return-1!==n.RETRY_STATUS_CODES.indexOf(e.status)}isBuffered(e,i){const r="string"==typeof e?i.method:e.method;return!((r===cr.PUT||r===cr.PATCH||r===cr.POST)&&"application/octet-stream"===kI(e,i,"Content-Type"))}getDelay(e,i,r){const o=()=>Number(Math.random().toFixed(3)),s=void 0!==e.headers?e.headers.get(n.RETRY_AFTER_HEADER):null;let a;return a=null!==s?Number.isNaN(Number(s))?Math.round((new Date(s).getTime()-Date.now())/1e3):Number(s):i>=2?this.getExponentialBackOffTime(i)+r+o():r+o(),Math.min(a,this.options.getMaxDelay()+o())}getExponentialBackOffTime(e){return Math.round(.5*(Math.pow(2,e)-1))}sleep(e){return An(this,void 0,void 0,function*(){const i=1e3*e;return new Promise(r=>setTimeout(r,i))})}getOptions(e){let i;return e.middlewareControl instanceof $a&&(i=e.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof i>"u"&&(i=Object.assign(new Db,this.options)),i}executeWithRetry(e,i,r){return An(this,void 0,void 0,function*(){try{if(yield this.nextMiddleware.execute(e),i{if(typeof Promise>"u"&&typeof fetch>"u"){const n=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw n.name="PolyFillNotAvailable",n}if(typeof Promise>"u"){const n=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw n.name="PolyFillNotAvailable",n}if(typeof fetch>"u"){const n=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw n.name="PolyFillNotAvailable",n}})()}catch(i){throw i}for(const i in t)t.hasOwnProperty(i)&&(this.config[i]=t[i]);let e;if(void 0!==t.authProvider&&void 0!==t.middleware){const i=new Error;throw i.name="AmbiguityInInitialization",i.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",i}if(void 0!==t.authProvider)e=Sb.createWithAuthenticationProvider(t.authProvider);else{if(void 0===t.middleware){const i=new Error;throw i.name="InvalidMiddlewareChain",i.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",i}e=new PI(...[].concat(t.middleware))}this.httpClient=e}static init(t){const e={};for(const i in t)t.hasOwnProperty(i)&&(e[i]="authProvider"===i?new Iq(t[i]):t[i]);return kf.initWithMiddleware(e)}static initWithMiddleware(t){try{return new kf(t)}catch(e){throw e}}api(t){return new Mq(this.httpClient,this.config,t)}}class Bq{}var Ab=function(n,t){return(Ab=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])})(n,t)};function ur(n,t){function e(){this.constructor=n}Ab(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var zn=function(){return zn=Object.assign||function(t){for(var e,i=1,r=arguments.length;i0&&o[o.length-1])&&(6===c[0]||2===c[0])){e=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1](function(n){n.CONTENT_TYPE="Content-Type",n.RETRY_AFTER="Retry-After",n.CCS_HEADER="X-AnchorMailbox",n.WWWAuthenticate="WWW-Authenticate",n.AuthenticationInfo="Authentication-Info"}(jo||(jo={})),jo))(),ri=(()=>(function(n){n.ID_TOKEN="idtoken",n.CLIENT_INFO="client.info",n.ADAL_ID_TOKEN="adal.idtoken",n.ERROR="error",n.ERROR_DESC="error.description",n.ACTIVE_ACCOUNT="active-account",n.ACTIVE_ACCOUNT_FILTERS="active-account-filters"}(ri||(ri={})),ri))(),md=(()=>(function(n){n.COMMON="common",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers"}(md||(md={})),md))(),xt=(()=>(function(n){n.CLIENT_ID="client_id",n.REDIRECT_URI="redirect_uri",n.RESPONSE_TYPE="response_type",n.RESPONSE_MODE="response_mode",n.GRANT_TYPE="grant_type",n.CLAIMS="claims",n.SCOPE="scope",n.ERROR="error",n.ERROR_DESCRIPTION="error_description",n.ACCESS_TOKEN="access_token",n.ID_TOKEN="id_token",n.REFRESH_TOKEN="refresh_token",n.EXPIRES_IN="expires_in",n.STATE="state",n.NONCE="nonce",n.PROMPT="prompt",n.SESSION_STATE="session_state",n.CLIENT_INFO="client_info",n.CODE="code",n.CODE_CHALLENGE="code_challenge",n.CODE_CHALLENGE_METHOD="code_challenge_method",n.CODE_VERIFIER="code_verifier",n.CLIENT_REQUEST_ID="client-request-id",n.X_CLIENT_SKU="x-client-SKU",n.X_CLIENT_VER="x-client-VER",n.X_CLIENT_OS="x-client-OS",n.X_CLIENT_CPU="x-client-CPU",n.X_CLIENT_CURR_TELEM="x-client-current-telemetry",n.X_CLIENT_LAST_TELEM="x-client-last-telemetry",n.X_MS_LIB_CAPABILITY="x-ms-lib-capability",n.X_APP_NAME="x-app-name",n.X_APP_VER="x-app-ver",n.POST_LOGOUT_URI="post_logout_redirect_uri",n.ID_TOKEN_HINT="id_token_hint",n.DEVICE_CODE="device_code",n.CLIENT_SECRET="client_secret",n.CLIENT_ASSERTION="client_assertion",n.CLIENT_ASSERTION_TYPE="client_assertion_type",n.TOKEN_TYPE="token_type",n.REQ_CNF="req_cnf",n.OBO_ASSERTION="assertion",n.REQUESTED_TOKEN_USE="requested_token_use",n.ON_BEHALF_OF="on_behalf_of",n.FOCI="foci",n.CCS_HEADER="X-AnchorMailbox",n.RETURN_SPA_CODE="return_spa_code",n.NATIVE_BROKER="nativebroker",n.LOGOUT_HINT="logout_hint"}(xt||(xt={})),xt))(),Ya=(()=>(function(n){n.ACCESS_TOKEN="access_token",n.XMS_CC="xms_cc"}(Ya||(Ya={})),Ya))(),Li={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create"},wc=(()=>(function(n){n.ACCOUNT="account",n.SID="sid",n.LOGIN_HINT="login_hint",n.ID_TOKEN="id_token",n.DOMAIN_HINT="domain_hint",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers",n.ACCOUNT_ID="accountIdentifier",n.HOMEACCOUNT_ID="homeAccountIdentifier"}(wc||(wc={})),wc))(),NI={PLAIN:"plain",S256:"S256"},gd=(()=>(function(n){n.QUERY="query",n.FRAGMENT="fragment",n.FORM_POST="form_post"}(gd||(gd={})),gd))(),_d=(()=>(function(n){n.IMPLICIT_GRANT="implicit",n.AUTHORIZATION_CODE_GRANT="authorization_code",n.CLIENT_CREDENTIALS_GRANT="client_credentials",n.RESOURCE_OWNER_PASSWORD_GRANT="password",n.REFRESH_TOKEN_GRANT="refresh_token",n.DEVICE_CODE_GRANT="device_code",n.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"}(_d||(_d={})),_d))(),Uo=(()=>(function(n){n.MSSTS_ACCOUNT_TYPE="MSSTS",n.ADFS_ACCOUNT_TYPE="ADFS",n.MSAV1_ACCOUNT_TYPE="MSA",n.GENERIC_ACCOUNT_TYPE="Generic"}(Uo||(Uo={})),Uo))(),dr=(()=>(function(n){n.CACHE_KEY_SEPARATOR="-",n.CLIENT_INFO_SEPARATOR="."}(dr||(dr={})),dr))(),qt=(()=>(function(n){n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",n.REFRESH_TOKEN="RefreshToken"}(qt||(qt={})),qt))(),oa=(()=>(function(n){n.ACCOUNT="Account",n.CREDENTIAL="Credential",n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.REFRESH_TOKEN="RefreshToken",n.APP_METADATA="AppMetadata",n.TEMPORARY="TempCache",n.TELEMETRY="Telemetry",n.UNDEFINED="Undefined",n.THROTTLING="Throttling"}(oa||(oa={})),oa))(),qo=(()=>(function(n){n[n.ADFS=1001]="ADFS",n[n.MSA=1002]="MSA",n[n.MSSTS=1003]="MSSTS",n[n.GENERIC=1004]="GENERIC",n[n.ACCESS_TOKEN=2001]="ACCESS_TOKEN",n[n.REFRESH_TOKEN=2002]="REFRESH_TOKEN",n[n.ID_TOKEN=2003]="ID_TOKEN",n[n.APP_METADATA=3001]="APP_METADATA",n[n.UNDEFINED=9999]="UNDEFINED"}(qo||(qo={})),qo))(),Tb="appmetadata",Tr=(()=>(function(n){n.CONFIG="config",n.CACHE="cache",n.NETWORK="network",n.HARDCODED_VALUES="hardcoded_values"}(Tr||(Tr={})),Tr))(),Si={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},fn=(()=>(function(n){n.BEARER="Bearer",n.POP="pop",n.SSH="ssh-cert"}(fn||(fn={})),fn))(),bd=(()=>(function(n){n.username="username",n.password="password"}(bd||(bd={})),bd))(),Qa=(()=>(function(n){n[n.httpSuccess=200]="httpSuccess",n[n.httpBadRequest=400]="httpBadRequest"}(Qa||(Qa={})),Qa))(),Ts=(()=>(function(n){n.FAILED_AUTO_DETECTION="1",n.INTERNAL_CACHE="2",n.ENVIRONMENT_VARIABLE="3",n.IMDS="4"}(Ts||(Ts={})),Ts))(),sa=(()=>(function(n){n.CONFIGURED_MATCHES_DETECTED="1",n.CONFIGURED_NO_AUTO_DETECTION="2",n.CONFIGURED_NOT_DETECTED="3",n.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",n.AUTO_DETECTION_REQUESTED_FAILED="5"}(sa||(sa={})),sa))(),aa=(()=>(function(n){n.NO_CACHE_HIT="0",n.FORCE_REFRESH="1",n.NO_CACHED_ACCESS_TOKEN="2",n.CACHED_ACCESS_TOKEN_EXPIRED="3",n.REFRESH_CACHED_ACCESS_TOKEN="4"}(aa||(aa={})),aa))(),Pf=(()=>(function(n){n.Jwt="JWT",n.Jwk="JWK"}(Pf||(Pf={})),Pf))(),Cd_CHANNEL_ID="53ee284d-920a-4b59-9d30-a60315b26836",zo=(()=>(function(n){n.HandshakeRequest="Handshake",n.HandshakeResponse="HandshakeResponse",n.GetToken="GetToken",n.Response="Response"}(zo||(zo={})),zo))(),Ai=(()=>(function(n){n.LocalStorage="localStorage",n.SessionStorage="sessionStorage",n.MemoryStorage="memoryStorage"}(Ai||(Ai={})),Ai))(),yo=(()=>(function(n){n.GET="GET",n.POST="POST"}(yo||(yo={})),yo))(),an=(()=>(function(n){n.AUTHORITY="authority",n.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",n.SESSION_STATE="session.state",n.REQUEST_STATE="request.state",n.NONCE_IDTOKEN="nonce.id_token",n.ORIGIN_URI="request.origin",n.RENEW_STATUS="token.renew.status",n.URL_HASH="urlHash",n.REQUEST_PARAMS="request.params",n.SCOPES="scopes",n.INTERACTION_STATUS_KEY="interaction.status",n.CCS_CREDENTIAL="ccs.credential",n.CORRELATION_ID="request.correlationId",n.NATIVE_REQUEST="request.native"}(an||(an={})),an))(),Xa=(()=>(function(n){n.WRAPPER_SKU="wrapper.sku",n.WRAPPER_VER="wrapper.version"}(Xa||(Xa={})),Xa))(),Cn=(()=>(function(n){n[n.acquireTokenRedirect=861]="acquireTokenRedirect",n[n.acquireTokenPopup=862]="acquireTokenPopup",n[n.ssoSilent=863]="ssoSilent",n[n.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",n[n.handleRedirectPromise=865]="handleRedirectPromise",n[n.acquireTokenByCode=866]="acquireTokenByCode",n[n.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",n[n.logout=961]="logout",n[n.logoutPopup=962]="logoutPopup"}(Cn||(Cn={})),Cn))(),We=(()=>(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"}(We||(We={})),We))(),gi=(()=>(function(n){n.Startup="startup",n.Login="login",n.Logout="logout",n.AcquireToken="acquireToken",n.SsoSilent="ssoSilent",n.HandleRedirect="handleRedirect",n.None="none"}(gi||(gi={})),gi))(),BI={scopes:fd},Lf="jwk",Nf=(()=>(function(n){n.React="@azure/msal-react",n.Angular="@azure/msal-angular"}(Nf||(Nf={})),Nf))(),Ff="msal.db",st=(()=>(function(n){n.INITIALIZE_START="msal:initializeStart",n.INITIALIZE_END="msal:initializeEnd",n.ACCOUNT_ADDED="msal:accountAdded",n.ACCOUNT_REMOVED="msal:accountRemoved",n.LOGIN_START="msal:loginStart",n.LOGIN_SUCCESS="msal:loginSuccess",n.LOGIN_FAILURE="msal:loginFailure",n.ACQUIRE_TOKEN_START="msal:acquireTokenStart",n.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",n.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",n.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",n.SSO_SILENT_START="msal:ssoSilentStart",n.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",n.SSO_SILENT_FAILURE="msal:ssoSilentFailure",n.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",n.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",n.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",n.HANDLE_REDIRECT_START="msal:handleRedirectStart",n.HANDLE_REDIRECT_END="msal:handleRedirectEnd",n.POPUP_OPENED="msal:popupOpened",n.LOGOUT_START="msal:logoutStart",n.LOGOUT_SUCCESS="msal:logoutSuccess",n.LOGOUT_FAILURE="msal:logoutFailure",n.LOGOUT_END="msal:logoutEnd"}(st||(st={})),st))(),Uq=function(){function n(){}return n.getInteractionStatusFromEvent=function(t,e){switch(t.eventType){case st.LOGIN_START:return gi.Login;case st.SSO_SILENT_START:return gi.SsoSilent;case st.ACQUIRE_TOKEN_START:if(t.interactionType===We.Redirect||t.interactionType===We.Popup)return gi.AcquireToken;break;case st.HANDLE_REDIRECT_START:return gi.HandleRedirect;case st.LOGOUT_START:return gi.Logout;case st.SSO_SILENT_SUCCESS:case st.SSO_SILENT_FAILURE:if(e&&e!==gi.SsoSilent)break;return gi.None;case st.LOGOUT_END:if(e&&e!==gi.Logout)break;return gi.None;case st.HANDLE_REDIRECT_END:if(e&&e!==gi.HandleRedirect)break;return gi.None;case st.LOGIN_SUCCESS:case st.LOGIN_FAILURE:case st.ACQUIRE_TOKEN_SUCCESS:case st.ACQUIRE_TOKEN_FAILURE:if(t.interactionType===We.Redirect||t.interactionType===We.Popup){if(e&&e!==gi.Login&&e!==gi.AcquireToken)break;return gi.None}}return null},n}(),xb=function(n,t){return(xb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])})(n,t)};function Ti(n,t){function e(){this.constructor=n}xb(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var at=function(){return at=Object.assign||function(t){for(var e,i=1,r=arguments.length;i0&&o[o.length-1])&&(6===c[0]||2===c[0])){e=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return o}function HI(){for(var n=[],t=0;t"u"||!t||0===t.length},n.isEmptyObj=function(t){if(t&&!n.isEmpty(t))try{var e=JSON.parse(t);return 0===Object.keys(e).length}catch{}return!0},n.startsWith=function(t,e){return 0===t.indexOf(e)},n.endsWith=function(t,e){return t.length>=e.length&&t.lastIndexOf(e)===t.length-e.length},n.queryStringToObject=function(t){var e={},i=t.split("&"),r=function(o){return decodeURIComponent(o.replace(/\+/g," "))};return i.forEach(function(o){if(o.trim()){var s=o.split(/=(.+)/g,2),a=s[0],l=s[1];a&&l&&(e[r(a)]=r(l))}}),e},n.trimArrayEntries=function(t){return t.map(function(e){return e.trim()})},n.removeEmptyStringsFromArray=function(t){return t.filter(function(e){return!n.isEmpty(e)})},n.jsonParseHelper=function(t){try{return JSON.parse(t)}catch{return null}},n.matchPattern=function(t,e){return new RegExp(t.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(e)},n}(),nn=function(){function n(t){if(this._urlString=t,$e.isEmpty(this._urlString))throw xn.createUrlEmptyError();$e.isEmpty(this.getHash())&&(this._urlString=n.canonicalizeUri(t))}return Object.defineProperty(n.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),n.canonicalizeUri=function(t){if(t){var e=t.toLowerCase();return $e.endsWith(e,"?")?e=e.slice(0,-1):$e.endsWith(e,"?/")&&(e=e.slice(0,-2)),$e.endsWith(e,"/")||(e+="/"),e}return t},n.prototype.validateAsUri=function(){var t;try{t=this.getUrlComponents()}catch(e){throw xn.createUrlParseError(e)}if(!t.HostNameAndPort||!t.PathSegments)throw xn.createUrlParseError("Given url string: "+this.urlString);if(!t.Protocol||"https:"!==t.Protocol.toLowerCase())throw xn.createInsecureAuthorityUriError(this.urlString)},n.appendQueryString=function(t,e){return $e.isEmpty(e)?t:t.indexOf("?")<0?t+"?"+e:t+"&"+e},n.removeHashFromUrl=function(t){return n.canonicalizeUri(t.split("#")[0])},n.prototype.replaceTenantPath=function(t){var e=this.getUrlComponents(),i=e.PathSegments;return t&&0!==i.length&&(i[0]===md.COMMON||i[0]===md.ORGANIZATIONS)&&(i[0]=t),n.constructAuthorityUriFromObject(e)},n.prototype.getHash=function(){return n.parseHash(this.urlString)},n.prototype.getUrlComponents=function(){var t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),e=this.urlString.match(t);if(!e)throw xn.createUrlParseError("Given url string: "+this.urlString);var i={Protocol:e[1],HostNameAndPort:e[4],AbsolutePath:e[5],QueryString:e[7]},r=i.AbsolutePath.split("/");return r=r.filter(function(o){return o&&o.length>0}),i.PathSegments=r,!$e.isEmpty(i.QueryString)&&i.QueryString.endsWith("/")&&(i.QueryString=i.QueryString.substring(0,i.QueryString.length-1)),i},n.getDomainFromUrl=function(t){var e=RegExp("^([^:/?#]+://)?([^/?#]*)"),i=t.match(e);if(!i)throw xn.createUrlParseError("Given url string: "+t);return i[2]},n.getAbsoluteUrl=function(t,e){if(t[0]===J.FORWARD_SLASH){var r=new n(e).getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+t}return t},n.parseHash=function(t){var e=t.indexOf("#"),i=t.indexOf("#/");return i>-1?t.substring(i+2):e>-1?t.substring(e+1):J.EMPTY_STRING},n.constructAuthorityUriFromObject=function(t){return new n(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},n.getDeserializedHash=function(t){if($e.isEmpty(t))return{};var e=n.parseHash(t),i=$e.queryStringToObject($e.isEmpty(e)?t:e);if(!i)throw it.createHashNotDeserializedError(JSON.stringify(i));return i},n.hashContainsKnownProperties=function(t){if($e.isEmpty(t)||t.indexOf("=")<0)return!1;var e=n.getDeserializedHash(t);return!!(e.code||e.error_description||e.error||e.state)},n}(),Me_pkceNotGenerated_code="pkce_not_created",Me_pkceNotGenerated_desc="The PKCE code challenge and verifier could not be generated.",Me_cryptoDoesNotExist_code="crypto_nonexistent",Me_cryptoDoesNotExist_desc="The crypto object or function is not available.",Me_httpMethodNotImplementedError_code="http_method_not_implemented",Me_httpMethodNotImplementedError_desc="The HTTP method given has not been implemented in this library.",Me_emptyNavigateUriError_code="empty_navigate_uri",Me_emptyNavigateUriError_desc="Navigation URI is empty. Please check stack trace for more info.",Me_hashEmptyError_code="hash_empty_error",Me_hashEmptyError_desc="Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors.",Me_hashDoesNotContainStateError_code="no_state_in_hash",Me_hashDoesNotContainStateError_desc="Hash does not contain state. Please verify that the request originated from msal.",Me_hashDoesNotContainKnownPropertiesError_code="hash_does_not_contain_known_properties",Me_hashDoesNotContainKnownPropertiesError_desc="Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors.",Me_unableToParseStateError_code="unable_to_parse_state",Me_unableToParseStateError_desc="Unable to parse state. Please verify that the request originated from msal.",Me_stateInteractionTypeMismatchError_code="state_interaction_type_mismatch",Me_stateInteractionTypeMismatchError_desc="Hash contains state but the interaction type does not match the caller.",Me_interactionInProgress_code="interaction_in_progress",Me_interactionInProgress_desc="Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors.",Me_popupWindowError_code="popup_window_error",Me_popupWindowError_desc="Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",Me_emptyWindowError_code="empty_window_error",Me_emptyWindowError_desc="window.open returned null or undefined window object.",Me_userCancelledError_code="user_cancelled",Me_userCancelledError_desc="User cancelled the flow.",Me_monitorPopupTimeoutError_code="monitor_window_timeout",Me_monitorPopupTimeoutError_desc="Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.",Me_monitorIframeTimeoutError_code="monitor_window_timeout",Me_monitorIframeTimeoutError_desc="Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.",Me_redirectInIframeError_code="redirect_in_iframe",Me_redirectInIframeError_desc="Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",Me_blockTokenRequestsInHiddenIframeError_code="block_iframe_reload",Me_blockTokenRequestsInHiddenIframeError_desc="Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors",Me_blockAcquireTokenInPopupsError_code="block_nested_popups",Me_blockAcquireTokenInPopupsError_desc="Request was blocked inside a popup because MSAL detected it was running in a popup.",Me_iframeClosedPrematurelyError_code="iframe_closed_prematurely",Me_iframeClosedPrematurelyError_desc="The iframe being monitored was closed prematurely.",Me_silentLogoutUnsupportedError_code="silent_logout_unsupported",Me_silentLogoutUnsupportedError_desc="Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",Me_noAccountError_code="no_account_error",Me_noAccountError_desc="No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",Me_silentPromptValueError_code="silent_prompt_value_error",Me_silentPromptValueError_desc="The value given for the prompt value is not valid for silent requests - must be set to 'none'.",Me_noTokenRequestCacheError_code="no_token_request_cache_error",Me_noTokenRequestCacheError_desc="No token request found in cache.",Me_unableToParseTokenRequestCacheError_code="unable_to_parse_token_request_cache_error",Me_unableToParseTokenRequestCacheError_desc="The cached token request could not be parsed.",Me_noCachedAuthorityError_code="no_cached_authority_error",Me_noCachedAuthorityError_desc="No cached authority found.",Me_authRequestNotSet_code="auth_request_not_set_error",Me_authRequestNotSet_desc="Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",Me_invalidCacheType_code="invalid_cache_type",Me_invalidCacheType_desc="Invalid cache type",Me_notInBrowserEnvironment_code="non_browser_environment",Me_notInBrowserEnvironment_desc="Login and token requests are not supported in non-browser environments.",Me_databaseNotOpen_code="database_not_open",Me_databaseNotOpen_desc="Database is not open!",Me_noNetworkConnectivity_code="no_network_connectivity",Me_noNetworkConnectivity_desc="No network connectivity. Check your internet connection.",Me_postRequestFailed_code="post_request_failed",Me_postRequestFailed_desc="Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",Me_getRequestFailed_code="get_request_failed",Me_getRequestFailed_desc="Network request failed. Please check the network trace to determine root cause.",Me_failedToParseNetworkResponse_code="failed_to_parse_response",Me_failedToParseNetworkResponse_desc="Failed to parse network response. Check network trace.",Me_unableToLoadTokenError_code="unable_to_load_token",Me_unableToLoadTokenError_desc="Error loading token to cache.",Me_signingKeyNotFoundInStorage_code="crypto_key_not_found",Me_signingKeyNotFoundInStorage_desc="Cryptographic Key or Keypair not found in browser storage.",Me_authCodeRequired_code="auth_code_required",Me_authCodeRequired_desc="An authorization code must be provided (as the `code` property on the request) to this flow.",Me_authCodeOrNativeAccountRequired_code="auth_code_or_nativeAccountId_required",Me_authCodeOrNativeAccountRequired_desc="An authorization code or nativeAccountId must be provided to this flow.",Me_databaseUnavailable_code="database_unavailable",Me_databaseUnavailable_desc="IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",Me_unableToAcquireTokenFromNativePlatform_code="unable_to_acquire_token_from_native_platform",Me_unableToAcquireTokenFromNativePlatform_desc="Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors.",Me_nativeHandshakeTimeout_code="native_handshake_timeout",Me_nativeHandshakeTimeout_desc="Timed out while attempting to establish connection to browser extension",Me_nativeExtensionNotInstalled_code="native_extension_not_installed",Me_nativeExtensionNotInstalled_desc="Native extension is not installed. If you think this is a mistake call the initialize function.",Me_nativeConnectionNotEstablished_code="native_connection_not_established",Me_nativeConnectionNotEstablished_desc="Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors.",Me_nativeBrokerCalledBeforeInitialize_code="native_broker_called_before_initialize",Me_nativeBrokerCalledBeforeInitialize_desc="You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors.",Me_nativePromptNotSupported_code="native_prompt_not_supported",Me_nativePromptNotSupported_desc="The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",Ue=function(n){function t(e,i){var r=n.call(this,e,i)||this;return Object.setPrototypeOf(r,t.prototype),r.name="BrowserAuthError",r}return Ti(t,n),t.createPkceNotGeneratedError=function(e){return new t(Me_pkceNotGenerated_code,Me_pkceNotGenerated_desc+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(Me_cryptoDoesNotExist_code,Me_cryptoDoesNotExist_desc+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(Me_httpMethodNotImplementedError_code,Me_httpMethodNotImplementedError_desc+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(Me_emptyNavigateUriError_code,Me_emptyNavigateUriError_desc)},t.createEmptyHashError=function(e){return new t(Me_hashEmptyError_code,Me_hashEmptyError_desc+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(Me_hashDoesNotContainStateError_code,Me_hashDoesNotContainStateError_desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(Me_hashDoesNotContainKnownPropertiesError_code,Me_hashDoesNotContainKnownPropertiesError_desc)},t.createUnableToParseStateError=function(){return new t(Me_unableToParseStateError_code,Me_unableToParseStateError_desc)},t.createStateInteractionTypeMismatchError=function(){return new t(Me_stateInteractionTypeMismatchError_code,Me_stateInteractionTypeMismatchError_desc)},t.createInteractionInProgressError=function(){return new t(Me_interactionInProgress_code,Me_interactionInProgress_desc)},t.createPopupWindowError=function(e){var i=Me_popupWindowError_desc;return i=$e.isEmpty(e)?i:i+" Details: "+e,new t(Me_popupWindowError_code,i)},t.createEmptyWindowCreatedError=function(){return new t(Me_emptyWindowError_code,Me_emptyWindowError_desc)},t.createUserCancelledError=function(){return new t(Me_userCancelledError_code,Me_userCancelledError_desc)},t.createMonitorPopupTimeoutError=function(){return new t(Me_monitorPopupTimeoutError_code,Me_monitorPopupTimeoutError_desc)},t.createMonitorIframeTimeoutError=function(){return new t(Me_monitorIframeTimeoutError_code,Me_monitorIframeTimeoutError_desc)},t.createRedirectInIframeError=function(e){return new t(Me_redirectInIframeError_code,Me_redirectInIframeError_desc+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(Me_blockTokenRequestsInHiddenIframeError_code,Me_blockTokenRequestsInHiddenIframeError_desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(Me_blockAcquireTokenInPopupsError_code,Me_blockAcquireTokenInPopupsError_desc)},t.createIframeClosedPrematurelyError=function(){return new t(Me_iframeClosedPrematurelyError_code,Me_iframeClosedPrematurelyError_desc)},t.createSilentLogoutUnsupportedError=function(){return new t(Me_silentLogoutUnsupportedError_code,Me_silentLogoutUnsupportedError_desc)},t.createNoAccountError=function(){return new t(Me_noAccountError_code,Me_noAccountError_desc)},t.createSilentPromptValueError=function(e){return new t(Me_silentPromptValueError_code,Me_silentPromptValueError_desc+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(Me_unableToParseTokenRequestCacheError_code,Me_unableToParseTokenRequestCacheError_desc)},t.createNoTokenRequestCacheError=function(){return new t(Me_noTokenRequestCacheError_code,Me_noTokenRequestCacheError_desc)},t.createAuthRequestNotSetError=function(){return new t(Me_authRequestNotSet_code,Me_authRequestNotSet_desc)},t.createNoCachedAuthorityError=function(){return new t(Me_noCachedAuthorityError_code,Me_noCachedAuthorityError_desc)},t.createInvalidCacheTypeError=function(){return new t(Me_invalidCacheType_code,""+Me_invalidCacheType_desc)},t.createNonBrowserEnvironmentError=function(){return new t(Me_notInBrowserEnvironment_code,Me_notInBrowserEnvironment_desc)},t.createDatabaseNotOpenError=function(){return new t(Me_databaseNotOpen_code,Me_databaseNotOpen_desc)},t.createNoNetworkConnectivityError=function(){return new t(Me_noNetworkConnectivity_code,Me_noNetworkConnectivity_desc)},t.createPostRequestFailedError=function(e,i){return new t(Me_postRequestFailed_code,Me_postRequestFailed_desc+" | Network client threw: "+e+" | Attempted to reach: "+i.split("?")[0])},t.createGetRequestFailedError=function(e,i){return new t(Me_getRequestFailed_code,Me_getRequestFailed_desc+" | Network client threw: "+e+" | Attempted to reach: "+i.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(Me_failedToParseNetworkResponse_code,Me_failedToParseNetworkResponse_desc+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(Me_unableToLoadTokenError_code,Me_unableToLoadTokenError_desc+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(Me_signingKeyNotFoundInStorage_code,Me_signingKeyNotFoundInStorage_desc+" | No match found for KeyId: "+e)},t.createAuthCodeRequiredError=function(){return new t(Me_authCodeRequired_code,Me_authCodeRequired_desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(Me_authCodeOrNativeAccountRequired_code,Me_authCodeOrNativeAccountRequired_desc)},t.createDatabaseUnavailableError=function(){return new t(Me_databaseUnavailable_code,Me_databaseUnavailable_desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(Me_unableToAcquireTokenFromNativePlatform_code,Me_unableToAcquireTokenFromNativePlatform_desc)},t.createNativeHandshakeTimeoutError=function(){return new t(Me_nativeHandshakeTimeout_code,Me_nativeHandshakeTimeout_desc)},t.createNativeExtensionNotInstalledError=function(){return new t(Me_nativeExtensionNotInstalled_code,Me_nativeExtensionNotInstalled_desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(Me_nativeConnectionNotEstablished_code,Me_nativeConnectionNotEstablished_desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(Me_nativeBrokerCalledBeforeInitialize_code,Me_nativeBrokerCalledBeforeInitialize_desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(Me_nativePromptNotSupported_code,Me_nativePromptNotSupported_desc)},t}(ut),Gq=function(){function n(){}return n.prototype.sendGetRequestAsync=function(t,e){return ke(this,void 0,void 0,function(){var i,r,o;return Re(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,fetch(t,{method:yo.GET,headers:this.getFetchHeaders(e)})];case 1:return i=s.sent(),[3,3];case 2:throw r=s.sent(),window.navigator.onLine?Ue.createGetRequestFailedError(r,t):Ue.createNoNetworkConnectivityError();case 3:return s.trys.push([3,5,,6]),o={headers:this.getHeaderDict(i.headers)},[4,i.json()];case 4:return[2,(o.body=s.sent(),o.status=i.status,o)];case 5:throw s.sent(),Ue.createFailedToParseNetworkResponseError(t);case 6:return[2]}})})},n.prototype.sendPostRequestAsync=function(t,e){return ke(this,void 0,void 0,function(){var i,r,o,s;return Re(this,function(a){switch(a.label){case 0:i=e&&e.body||J.EMPTY_STRING,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(t,{method:yo.POST,headers:this.getFetchHeaders(e),body:i})];case 2:return r=a.sent(),[3,4];case 3:throw o=a.sent(),window.navigator.onLine?Ue.createPostRequestFailedError(o,t):Ue.createNoNetworkConnectivityError();case 4:return a.trys.push([4,6,,7]),s={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 5:return[2,(s.body=a.sent(),s.status=r.status,s)];case 6:throw a.sent(),Ue.createFailedToParseNetworkResponseError(t);case 7:return[2]}})})},n.prototype.getFetchHeaders=function(t){var e=new Headers;if(!t||!t.headers)return e;var i=t.headers;return Object.keys(i).forEach(function(r){e.append(r,i[r])}),e},n.prototype.getHeaderDict=function(t){var e={};return t.forEach(function(i,r){e[r]=i}),e},n}(),Wq=function(){function n(){}return n.prototype.sendGetRequestAsync=function(t,e){return ke(this,void 0,void 0,function(){return Re(this,function(i){return[2,this.sendRequestAsync(t,yo.GET,e)]})})},n.prototype.sendPostRequestAsync=function(t,e){return ke(this,void 0,void 0,function(){return Re(this,function(i){return[2,this.sendRequestAsync(t,yo.POST,e)]})})},n.prototype.sendRequestAsync=function(t,e,i){var r=this;return new Promise(function(o,s){var a=new XMLHttpRequest;if(a.open(e,t,!0),r.setXhrHeaders(a,i),a.onload=function(){(a.status<200||a.status>=300)&&s(e===yo.POST?Ue.createPostRequestFailedError("Failed with status "+a.status,t):Ue.createGetRequestFailedError("Failed with status "+a.status,t));try{var l=JSON.parse(a.responseText),c={headers:r.getHeaderDict(a),body:l,status:a.status};o(c)}catch{s(Ue.createFailedToParseNetworkResponseError(t))}},a.onerror=function(){window.navigator.onLine?s(e===yo.POST?Ue.createPostRequestFailedError("Failed with status "+a.status,t):Ue.createGetRequestFailedError("Failed with status "+a.status,t)):s(Ue.createNoNetworkConnectivityError())},e===yo.POST&&i&&i.body)a.send(i.body);else{if(e!==yo.GET)throw Ue.createHttpMethodNotImplementedError(e);a.send()}})},n.prototype.setXhrHeaders=function(t,e){if(e&&e.headers){var i=e.headers;Object.keys(i).forEach(function(r){t.setRequestHeader(r,i[r])})}},n.prototype.getHeaderDict=function(t){var i=t.getAllResponseHeaders().trim().split(/[\r\n]+/),r={};return i.forEach(function(o){var s=o.split(": "),a=s.shift(),l=s.join(": ");a&&l&&(r[a]=l)}),r},n}(),Ln=function(){function n(){}return n.clearHash=function(t){t.location.hash=J.EMPTY_STRING,"function"==typeof t.history.replaceState&&t.history.replaceState(null,J.EMPTY_STRING,""+t.location.origin+t.location.pathname+t.location.search)},n.replaceHash=function(t){var e=t.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):J.EMPTY_STRING},n.isInIframe=function(){return window.parent!==window},n.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf("msal.")},n.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},n.getHomepage=function(){var e=new nn(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},n.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Gq:new Wq},n.blockReloadInHiddenIframes=function(){if(nn.hashContainsKnownProperties(window.location.hash)&&n.isInIframe())throw Ue.createBlockReloadInHiddenIframeError()},n.blockRedirectInIframe=function(t,e){var i=n.isInIframe();if(t===We.Redirect&&i&&!e)throw Ue.createRedirectInIframeError(i)},n.blockAcquireTokenInPopups=function(){if(n.isInPopup())throw Ue.createBlockAcquireTokenInPopupsError()},n.blockNonBrowserEnvironment=function(t){if(!t)throw Ue.createNonBrowserEnvironmentError()},n.blockNativeBrokerCalledBeforeInitialized=function(t,e){if(t&&!e)throw Ue.createNativeBrokerCalledBeforeInitialize()},n.detectIEOrEdge=function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE "),i=t.indexOf("Trident/"),r=t.indexOf("Edge/");return e>0||i>0||r>0},n}();function xs(n){return function(e){const i=new $q(n),r=e.lift(i);return i.caught=r}}class $q{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Kq(t,this.selector,this.caught))}}class Kq extends Zc{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new Do(this);this.add(i);const r=Jc(e,i);r!==i&&this.add(r)}}}const Ec=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function Vf(n=null){return t=>t.lift(new Yq(n))}class Yq{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Qq(t,this.defaultValue))}}class Qq extends D{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function VI(n=Jq){return t=>t.lift(new Xq(n))}class Xq{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Zq(t,this.errorFactory))}}class Zq extends D{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function Jq(){return new Ec}function la(n,t){const e=arguments.length>=2;return i=>i.pipe(n?Sn((r,o)=>n(r,o,i)):Ce,dn(1),e?Vf(t):VI(()=>new Ec))}function jI(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new e9(n,t,e))}}class e9{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new t9(t,this.accumulator,this.seed,this.hasSeed))}}class t9 extends D{constructor(t,e,i,r){super(t),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function Ib(n){return function(e){return 0===n?Qp():e.lift(new n9(n))}}class n9{constructor(t){if(this.total=t,this.total<0)throw new h2}call(t,e){return e.subscribe(new i9(t,this.total))}}class i9 extends D{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){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(n?Sn((r,o)=>n(r,o,i)):Ce,Ib(1),e?Vf(t):VI(()=>new Ec))}class o9{constructor(t){this.value=t}call(t,e){return e.subscribe(new s9(t,this.value))}}class s9 extends D{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function jf(n){return t=>t.lift(new a9(n))}class a9{constructor(t){this.callback=t}call(t,e){return e.subscribe(new l9(t,this.callback))}}class l9 extends D{constructor(t,e){super(t),this.add(new w(e))}}const zt="primary";class c9{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Dc(n){return new c9(n)}function u9(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[o]===r)}return n===t}function GI(n){return n.length>0?n[n.length-1]:null}function xi(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Is(n){return lv(n)?n:Mu(n)?Et(Promise.resolve(n)):Ve(n)}const p9={exact:function KI(n,t,e){if(!Ja(n.segments,t.segments)||!Uf(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!KI(n.children[i],t.children[i],e))return!1;return!0},subset:YI},WI={exact:function f9(n,t){return Go(n,t)},subset:function m9(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>qI(n[e],t[e]))},ignored:()=>!0};function $I(n,t,e){return p9[e.paths](n.root,t.root,e.matrixParams)&&WI[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function YI(n,t,e){return QI(n,t,t.segments,e)}function QI(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Ja(r,e)||t.hasChildren()||!Uf(r,e,i))}if(n.segments.length===e.length){if(!Ja(n.segments,e)||!Uf(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!YI(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(Ja(n.segments,r)&&Uf(n.segments,r,i)&&n.children[zt])&&QI(n.children[zt],t,o,i)}}function Uf(n,t,e){return t.every((i,r)=>WI[e](n[r].parameters,i.parameters))}class Za{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Dc(this.queryParams)),this._queryParamMap}toString(){return v9.serialize(this)}}class $t{constructor(t,e){this.segments=t,this.children=e,this.parent=null,xi(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return qf(this)}}class wd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Dc(this.parameters)),this._parameterMap}toString(){return tM(this)}}function Ja(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class ZI{parse(t){const e=new T9(t);return new Za(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Ed(t.root,!0)}`,i=function C9(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${zf(e)}=${zf(r)}`).join("&"):`${zf(e)}=${zf(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function y9(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const v9=new ZI;function qf(n){return n.segments.map(t=>tM(t)).join("/")}function Ed(n,t){if(!n.hasChildren())return qf(n);if(t){const e=n.children[zt]?Ed(n.children[zt],!1):"",i=[];return xi(n.children,(r,o)=>{o!==zt&&i.push(`${o}:${Ed(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function _9(n,t){let e=[];return xi(n.children,(i,r)=>{r===zt&&(e=e.concat(t(i,r)))}),xi(n.children,(i,r)=>{r!==zt&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===zt?[Ed(n.children[zt],!1)]:[`${r}:${Ed(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[zt]?`${qf(n)}/${e[0]}`:`${qf(n)}/(${e.join("//")})`}}function JI(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function zf(n){return JI(n).replace(/%3B/gi,";")}function kb(n){return JI(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Gf(n){return decodeURIComponent(n)}function eM(n){return Gf(n.replace(/\+/g,"%20"))}function tM(n){return`${kb(n.path)}${function b9(n){return Object.keys(n).map(t=>`;${kb(t)}=${kb(n[t])}`).join("")}(n.parameters)}`}const w9=/^[^\/()?;=#]+/;function Wf(n){const t=n.match(w9);return t?t[0]:""}const E9=/^[^=?&#]+/,S9=/^[^&#]+/;class T9{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $t([],{}):new $t([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[zt]=new $t(t,e)),i}parseSegment(){const t=Wf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Se(4009,!1);return this.capture(t),new wd(Gf(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Wf(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Wf(this.remaining);r&&(i=r,this.capture(i))}t[Gf(e)]=Gf(i)}parseQueryParam(t){const e=function D9(n){const t=n.match(E9);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function A9(n){const t=n.match(S9);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=eM(e),o=eM(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Wf(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Se(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=zt);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[zt]:new $t([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Se(4011,!1)}}function Rb(n){return n.segments.length>0?new $t([],{[zt]:n}):n}function $f(n){const t={};for(const i of Object.keys(n.children)){const o=$f(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function x9(n){if(1===n.numberOfChildren&&n.children[zt]){const t=n.children[zt];return new $t(n.segments.concat(t.segments),t.children)}return n}(new $t(n.segments,t))}function el(n){return n instanceof Za}function k9(n,t,e,i,r){if(0===e.length)return Sc(t.root,t.root,t.root,i,r);const o=function rM(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new iM(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return xi(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?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new iM(e,t,i)}(e);return o.toRoot()?Sc(t.root,t.root,new $t([],{}),i,r):function s(l){const c=function O9(n,t,e,i){if(n.isAbsolute)return new Ac(t.root,!0,0);if(-1===i)return new Ac(e,e===t.root,0);return function oM(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Se(4005,!1);r=i.segments.length}return new Ac(i,!1,r-o)}(e,i+(Dd(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?Ad(c.segmentGroup,c.index,o.commands):Pb(c.segmentGroup,c.index,o.commands);return Sc(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function Dd(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Sd(n){return"object"==typeof n&&null!=n&&n.outlets}function Sc(n,t,e,i,r){let s,o={};i&&xi(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:nM(n,t,e);const a=Rb($f(s));return new Za(a,o,r)}function nM(n,t,e){const i={};return xi(n.children,(r,o)=>{i[o]=r===t?e:nM(r,t,e)}),new $t(n.segments,i)}class iM{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Dd(i[0]))throw new Se(4003,!1);const r=i.find(Sd);if(r&&r!==GI(i))throw new Se(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ac{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Pb(n,t,e){if(n||(n=new $t([],{})),0===n.segments.length&&n.hasChildren())return Ad(n,t,e);const i=function L9(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=n.segments[r],a=e[i];if(Sd(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!aM(l,c,s))return o;i+=2}else{if(!aM(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=Pb(n.children[s],t,o))}),xi(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new $t(n.segments,r)}}function Lb(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=Lb(new $t([],{}),0,e))}),t}function sM(n){const t={};return xi(n,(e,i)=>t[i]=`${e}`),t}function aM(n,t,e){return n==e.path&&Go(t,e.parameters)}class Ms{constructor(t,e){this.id=t,this.url=e}}class lM extends Ms{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Td extends Ms{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Kf extends Ms{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class cM extends Ms{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class F9 extends Ms{constructor(t,e,i,r){super(t,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 B9 extends Ms{constructor(t,e,i,r){super(t,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 H9 extends Ms{constructor(t,e,i,r,o){super(t,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 V9 extends Ms{constructor(t,e,i,r){super(t,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 j9 extends Ms{constructor(t,e,i,r){super(t,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 U9{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class q9{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class z9{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class G9{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class W9{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $9{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class uM{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Nb(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=Nb(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Fb(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return Fb(t,this._root).map(e=>e.value)}}function Nb(n,t){if(n===t.value)return t;for(const e of t.children){const i=Nb(n,e);if(i)return i}return null}function Fb(n,t){if(n===t.value)return[t];for(const e of t.children){const i=Fb(n,e);if(i.length)return i.unshift(t),i}return[]}class ks{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Tc(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class dM extends uM{constructor(t,e){super(t),this.snapshot=e,Bb(this,t)}toString(){return this.snapshot.toString()}}function hM(n,t){const e=function Y9(n,t){const s=new Yf([],{},{},"",{},zt,t,null,n.root,-1,{});return new fM("",new ks(s,[]))}(n,t),i=new sr([new wd("",{})]),r=new sr({}),o=new sr({}),s=new sr({}),a=new sr(""),l=new xc(i,r,s,a,o,zt,t,e.root);return l.snapshot=e.root,new dM(new ks(l,[]),e)}class xc{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,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(ue(t=>Dc(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ue(t=>Dc(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pM(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)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 Q9(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Yf{constructor(t,e,i,r,o,s,a,l,c,u,d,h){this.url=t,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._correctedLastPathIndex=h??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=Dc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Dc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class fM extends uM{constructor(t,e){super(e),this.url=t,Bb(this,e)}toString(){return mM(this._root)}}function Bb(n,t){t.value._routerState=n,t.children.forEach(e=>Bb(n,e))}function mM(n){const t=n.children.length>0?` { ${n.children.map(mM).join(", ")} } `:"";return`${n.value}${t}`}function Hb(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Go(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),Go(t.params,e.params)||n.params.next(e.params),function d9(n,t){if(n.length!==t.length)return!1;for(let e=0;eGo(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||Vb(n.parent,t.parent))}function xd(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function Z9(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return xd(n,i,r);return xd(n,i)})}(n,t,e);return new ks(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>xd(n,a)),s}}const i=function J9(n){return new xc(new sr(n.url),new sr(n.params),new sr(n.queryParams),new sr(n.fragment),new sr(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>xd(n,o));return new ks(i,r)}}const jb="ngNavigationCancelingError";function gM(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=el(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=_M(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function _M(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[jb]=!0,i.cancellationCode=t,e&&(i.url=e),i}function vM(n){return yM(n)&&el(n.url)}function yM(n){return n&&n[jb]}class ez{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Id,this.attachRef=null}}class Id{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new ez,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}const Qf=!1;let bM=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Be,this.deactivateEvents=new Be,this.attachEvents=new Be,this.detachEvents=new Be,this.name=r||zt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&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 Se(4012,Qf);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Se(4012,Qf);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Se(4012,Qf);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 Se(4013,Qf);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new tz(e,a,r.injector);if(i&&function nz(n){return!!n.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 n.\u0275fac=function(e){return new(e||n)(p(Id),p(En),io("name"),p(Bt),p(Aa))},n.\u0275dir=he({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class tz{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===xc?this.route:t===Id?this.childContexts:this.parent.get(t,e)}}let CM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ze({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&xe(0,"router-outlet")},dependencies:[bM],encapsulation:2}),n})();function wM(n,t){return n.providers&&!n._injector&&(n._injector=function vv(n,t,e=null){return new GB(n,t,e).injector}(n.providers,t,`Route: ${n.path}`)),n._injector??t}function qb(n){const t=n.children&&n.children.map(qb),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==zt&&(e.component=CM),e}function zr(n){return n.outlet||zt}function EM(n,t){const e=n.filter(i=>zr(i)===t);return e.push(...n.filter(i=>zr(i)!==t)),e}function DM(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class az{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Hb(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Tc(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),xi(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=Tc(t);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(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=Tc(t);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(t,e,i){const r=Tc(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new $9(o.value.snapshot))}),t.children.length&&this.forwardEvent(new G9(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(Hb(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,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),Hb(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=DM(r.snapshot),l=a?.get(ro)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class SM{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Xf{constructor(t,e){this.component=t,this.route=e}}function lz(n,t,e){const i=n._root;return Md(i,t?t._root:null,e,[i.value])}function Zf(n,t,e){return(DM(t)??e).get(n)}function Md(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Tc(t);return n.children.forEach(s=>{(function uz(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function dz(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Ja(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Ja(n.url,t.url)||!Go(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Vb(n,t)||!Go(n.queryParams,t.queryParams);default:return!Vb(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new SM(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Md(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Xf(a.outlet.component,s))}else s&&kd(t,a,r),r.canActivateChecks.push(new SM(i)),Md(n,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]}),xi(o,(s,a)=>kd(s,e.getContext(a),r)),r}function kd(n,t,e){const i=Tc(n),r=n.value;xi(i,(o,s)=>{kd(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new Xf(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Rd(n){return"function"==typeof n}const Jf=Symbol("INITIAL_VALUE");function Ic(){return Kn(n=>Zy(n.map(t=>t.pipe(dn(1),ii(Jf)))).pipe(ue(t=>{for(const e of t)if(!0!==e){if(e===Jf)return Jf;if(!1===e||e instanceof Za)return e}return!0}),Sn(t=>t!==Jf),dn(1)))}function AM(n){return function W(...n){return te(n)}(Yn(t=>{if(el(t))throw gM(0,t)}),ue(t=>!0===t))}const zb={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function TM(n,t,e,i,r){const o=Gb(n,t,e);return o.matched?function xz(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?Ve(r.map(s=>{const a=n.get(s),l=function _z(n){return n&&Rd(n.canMatch)}(a)?a.canMatch(t,e):a(t,e);return Is(l)})).pipe(Ic(),AM()):Ve(!0)}(i=wM(t,i),t,e).pipe(ue(s=>!0===s?o:{...zb})):Ve(o)}function Gb(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...zb}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||u9)(e,n,t);if(!r)return{...zb};const o={};xi(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 em(n,t,e,i,r="corrected"){if(e.length>0&&function kz(n,t,e){return e.some(i=>tm(n,t,i)&&zr(i)!==zt)}(n,e,i)){const s=new $t(t,function Mz(n,t,e,i){const r={};r[zt]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&zr(o)!==zt){const s=new $t([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[zr(o)]=s}return r}(n,t,i,new $t(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function Rz(n,t,e){return e.some(i=>tm(n,t,i))}(n,e,i)){const s=new $t(n.segments,function Iz(n,t,e,i,r,o){const s={};for(const a of i)if(tm(n,e,a)&&!r[zr(a)]){const l=new $t([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[zr(a)]=l}return{...r,...s}}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new $t(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function tm(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function xM(n,t,e,i){return!!(zr(n)===i||i!==zt&&tm(t,e,n))&&("**"===n.path||Gb(t,n,e).matched)}function IM(n,t,e){return 0===t.length&&!n.children[e]}const nm=!1;class im{constructor(t){this.segmentGroup=t||null}}class MM{constructor(t){this.urlTree=t}}function Od(n){return ja(new im(n))}function kM(n){return ja(new MM(n))}class Nz{constructor(t,e,i,r,o){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const t=em(this.urlTree.root,[],[],this.config).segmentGroup,e=new $t(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,zt).pipe(ue(o=>this.createUrlTree($f(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(xs(o=>{if(o instanceof MM)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof im?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,zt).pipe(ue(r=>this.createUrlTree($f(r),t.queryParams,t.fragment))).pipe(xs(r=>{throw r instanceof im?this.noMatchError(r):r}))}noMatchError(t){return new Se(4002,nm)}createUrlTree(t,e,i){const r=Rb(t);return new Za(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(ue(o=>new $t([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Et(r).pipe(Bo(o=>{const s=i.children[o],a=EM(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(ue(l=>({segment:l,outlet:o})))}),jI((o,s)=>(o[s.outlet]=s.segment,o),{}),UI())}expandSegment(t,e,i,r,o,s){return Et(i).pipe(Bo(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(xs(c=>{if(c instanceof im)return Ve(null);throw c}))),la(a=>!!a),xs((a,l)=>{if(a instanceof Ec||"EmptyError"===a.name)return IM(e,r,o)?Ve(new $t([],{})):Od(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return xM(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):Od(e):Od(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?kM(o):this.lineralizeSegments(i,o).pipe(Vi(s=>{const a=new $t(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Gb(e,r,o);if(!a)return Od(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?kM(d):this.lineralizeSegments(r,d).pipe(Vi(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=wM(i,t),i.loadChildren?(i._loadedRoutes?Ve({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(ue(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new $t(r,{})))):Ve(new $t(r,{}))):TM(e,i,r,t).pipe(Kn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(Vi(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:f,slicedSegments:_}=em(e,a,l,h),S=new $t(f.segments,f.children);if(0===_.length&&S.hasChildren())return this.expandChildren(d,h,S).pipe(ue(ee=>new $t(a,ee)));if(0===h.length&&0===_.length)return Ve(new $t(a,{}));const U=zr(i)===o;return this.expandSegment(d,S,h,_,U?zt:o,!0).pipe(ue(ve=>new $t(a.concat(ve.segments),ve.children)))})):Od(e)))}getChildConfig(t,e,i){return e.children?Ve({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?Ve({routes:e._loadedRoutes,injector:e._loadedInjector}):function Tz(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?Ve(!0):Ve(r.map(s=>{const a=n.get(s),l=function pz(n){return n&&Rd(n.canLoad)}(a)?a.canLoad(t,e):a(t,e);return Is(l)})).pipe(Ic(),AM())}(t,e,i).pipe(Vi(r=>r?this.configLoader.loadChildren(t,e).pipe(Yn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Pz(n){return ja(_M(nm,3))}())):Ve({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Ve(i);if(r.numberOfChildren>1||!r.children[zt])return ja(new Se(4e3,nm));r=r.children[zt]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new Za(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return xi(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return xi(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new $t(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new Se(4001,nm);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}class Bz{}class jz{constructor(t,e,i,r,o,s,a,l){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const t=em(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,zt).pipe(ue(e=>{if(null===e)return null;const i=new Yf([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},zt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ks(i,e),o=new fM(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=pM(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return Et(Object.keys(i.children)).pipe(Bo(r=>{const o=i.children[r],s=EM(e,r);return this.processSegmentGroup(t,s,o,r)}),jI((r,o)=>r&&o?(r.push(...o),r):null),G2(r=>null!==r),Vf(null),UI(),ue(r=>{if(null===r)return null;const o=RM(r);return function Uz(n){n.sort((t,e)=>t.value.outlet===zt?-1:e.value.outlet===zt?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return Et(e).pipe(Bo(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),la(s=>!!s),xs(s=>{if(s instanceof Ec)return IM(i,r,o)?Ve([]):Ve(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!xM(e,i,r,o))return Ve(null);let s;if("**"===e.path){const a=r.length>0?GI(r).parameters:{},l=PM(i)+r.length;s=Ve({snapshot:new Yf(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,NM(e),zr(e),e.component??e._loadedComponent??null,e,OM(i),l,FM(e),l),consumedSegments:[],remainingSegments:[]})}else s=TM(i,e,r,t).pipe(ue(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=PM(i)+l.length;return{snapshot:new Yf(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,NM(e),zr(e),e.component??e._loadedComponent??null,e,OM(i),d,FM(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(Kn(a=>{if(null===a)return Ve(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function qz(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:_}=em(i,c,u,h.filter(U=>void 0===U.redirectTo),this.relativeLinkResolution);if(0===_.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(ue(U=>null===U?null:[new ks(l,U)]));if(0===h.length&&0===_.length)return Ve([new ks(l,[])]);const S=zr(e)===o;return this.processSegment(d,h,f,_,S?zt:o).pipe(ue(U=>null===U?null:[new ks(l,U)]))}))}}function zz(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function RM(n){const t=[],e=new Set;for(const i of n){if(!zz(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=RM(i.children);t.push(new ks(i.value,r))}return t.filter(i=>!e.has(i))}function OM(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function PM(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function NM(n){return n.data||{}}function FM(n){return n.resolve||{}}const Wb=Symbol("RouteTitle");function BM(n){return"string"==typeof n.title||null===n.title}function $b(n){return Kn(t=>{const e=n(t);return e?Et(e).pipe(ue(()=>t)):Ve(t)})}class e7 extends class Jz{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Kb=new pe("ROUTES");let VM=(()=>{class n{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 Ve(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Is(e.loadComponent()).pipe(Yn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),jf(()=>{this.componentLoaders.delete(e)})),r=new ph(i,()=>new L).pipe(hh());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Ve({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(ue(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=function zI(n){return Array.prototype.concat.apply([],n)}(l.get(Kb,[],vt.Self|vt.Optional)));return{routes:c.map(qb),injector:l}}),jf(()=>{this.childrenLoaders.delete(i)})),s=new ph(o,()=>new L).pipe(hh());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Is(e()).pipe(Vi(i=>i instanceof zS||Array.isArray(i)?Ve(i):Et(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(T(Rn),T(OA))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class n7{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function r7(n){throw n}function o7(n,t,e){return t.parse("/")}const s7={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},a7={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let pr=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new L,this.errorHandler=r7,this.malformedUriErrorHandler=o7,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>Ve(void 0),this.urlHandlingStrategy=new n7,this.routeReuseStrategy=new e7,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(VM),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new q9(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new U9(h)),this.ngModule=s.get(Ra),this.console=s.get(Y5);const d=s.get(nt);this.isNgZoneEnabled=d instanceof nt&&nt.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function h9(){return new Za(new $t([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=hM(this.currentUrlTree,this.rootComponentType),this.transitions=new sr({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(Sn(r=>0!==r.id),ue(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Kn(r=>{let o=!1,s=!1;return Ve(r).pipe(Yn(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Kn(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return jM(a.source)&&(this.browserUrlTree=a.extractedUrl),Ve(a).pipe(Kn(d=>{const h=this.transitions.getValue();return i.next(new lM(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?gs:Promise.resolve(d)}),function Fz(n,t,e,i){return Kn(r=>function Lz(n,t,e,i,r){return new Nz(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(ue(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Yn(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function Wz(n,t,e,i,r,o){return Vi(s=>function Vz(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new jz(n,t,e,i,r,s,a,o).recognize().pipe(Kn(l=>null===l?function Hz(n){return new b(t=>t.error(n))}(new Bz):Ve(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(ue(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Yn(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(f,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new F9(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:_,restoredState:S,extras:U}=a,Z=new lM(h,this.serializeUrl(f),_,S);i.next(Z);const ve=hM(f,this.rootComponentType).snapshot;return Ve(r={...a,targetSnapshot:ve,urlAfterRedirects:f,extras:{...U,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),gs}),Yn(a=>{const l=new B9(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ue(a=>r={...a,guards:lz(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function yz(n,t){return Vi(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Ve({...e,guardsResult:!0}):function bz(n,t,e,i){return Et(n).pipe(Vi(r=>function Az(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Ve(o.map(a=>{const l=Zf(a,t,r);return Is(function gz(n){return n&&Rd(n.canDeactivate)}(l)?l.canDeactivate(n,t,e,i):l(n,t,e,i)).pipe(la())})).pipe(Ic()):Ve(!0)}(r.component,r.route,e,t,i)),la(r=>!0!==r,!0))}(s,i,r,n).pipe(Vi(a=>a&&function hz(n){return"boolean"==typeof n}(a)?function Cz(n,t,e,i){return Et(t).pipe(Bo(r=>uc(function Ez(n,t){return null!==n&&t&&t(new z9(n)),Ve(!0)}(r.route.parent,i),function wz(n,t){return null!==n&&t&&t(new W9(n)),Ve(!0)}(r.route,i),function Sz(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function cz(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>ea(()=>Ve(s.guards.map(l=>{const c=Zf(l,s.node,e);return Is(function mz(n){return n&&Rd(n.canActivateChild)}(c)?c.canActivateChild(i,n):c(i,n)).pipe(la())})).pipe(Ic())));return Ve(o).pipe(Ic())}(n,r.path,e),function Dz(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Ve(!0);const r=i.map(o=>ea(()=>{const s=Zf(o,t,e);return Is(function fz(n){return n&&Rd(n.canActivate)}(s)?s.canActivate(t,n):s(t,n)).pipe(la())}));return Ve(r).pipe(Ic())}(n,r.route,e))),la(r=>!0!==r,!0))}(i,o,n,t):Ve(a)),ue(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Yn(a=>{if(r.guardsResult=a.guardsResult,el(a.guardsResult))throw gM(0,a.guardsResult);const l=new H9(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Sn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),$b(a=>{if(a.guards.canActivateChecks.length)return Ve(a).pipe(Yn(l=>{const c=new V9(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Kn(l=>{let c=!1;return Ve(l).pipe(function $z(n,t){return Vi(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Ve(e);let o=0;return Et(r).pipe(Bo(s=>function Kz(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!BM(r)&&(o[Wb]=r.title),function Yz(n,t,e,i){const r=function Qz(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return Ve({});const o={};return Et(r).pipe(Vi(s=>function Xz(n,t,e,i){const r=Zf(n,t,i);return Is(r.resolve?r.resolve(t,e):r(t,e))}(n[s],t,e,i).pipe(la(),Yn(a=>{o[s]=a}))),Ib(1),function r9(n){return t=>t.lift(new o9(n))}(o),xs(s=>s instanceof Ec?gs:ja(s)))}(o,n,t,i).pipe(ue(s=>(n._resolvedData=s,n.data=pM(n,e).resolve,r&&BM(r)&&(n.data[Wb]=r.title),null)))}(s.route,i,n,t)),Yn(()=>o++),Ib(1),Vi(s=>o===r.length?Ve(e):gs))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Yn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Yn(l=>{const c=new j9(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),$b(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Yn(d=>{c.component=d}),ue(()=>{})));for(const d of c.children)u.push(...l(d));return u};return Zy(l(a.targetSnapshot.root)).pipe(Vf(),dn(1))}),$b(()=>this.afterPreactivation()),ue(a=>{const l=function X9(n,t,e){const i=xd(n,t._root,e?e._root:void 0);return new dM(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Yn(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>ue(i=>(new az(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Yn({next(){o=!0},complete(){o=!0}}),jf(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),xs(a=>{if(s=!0,yM(a)){vM(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new Kf(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),vM(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jM(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new cM(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return gs}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(qb),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.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=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),k9(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=el(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function l7(n){for(let t=0;t{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Td(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,f)=>{a=h,l=f});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,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.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.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))}cancelNavigationTransition(e,i,r){const o=new Kf(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){Vl()},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();function jM(n){return"imperative"!==n}const Zb=new pe("MSAL_INSTANCE"),YM=new pe("MSAL_GUARD_CONFIG"),b7=new pe("MSAL_INTERCEPTOR_CONFIG"),C7=new pe("MSAL_BROADCAST_CONFIG"),QM="@azure/msal-angular",Jb="2.4.1";let tl=(()=>{class n{constructor(e,i){this.instance=e,this.location=i;const r=this.location.path(!0).split("#").pop();r&&(this.redirectHash=`#${r}`),this.instance.initializeWrapperLibrary(Nf.Angular,Jb)}initialize(){return Et(this.instance.initialize())}acquireTokenPopup(e){return Et(this.instance.acquireTokenPopup(e))}acquireTokenRedirect(e){return Et(this.instance.acquireTokenRedirect(e))}acquireTokenSilent(e){return Et(this.instance.acquireTokenSilent(e))}handleRedirectObservable(e){return Et(this.instance.handleRedirectPromise(e||this.redirectHash))}loginPopup(e){return Et(this.instance.loginPopup(e))}loginRedirect(e){return Et(this.instance.loginRedirect(e))}logout(e){return Et(this.instance.logout(e))}logoutRedirect(e){return Et(this.instance.logoutRedirect(e))}logoutPopup(e){return Et(this.instance.logoutPopup(e))}ssoSilent(e){return Et(this.instance.ssoSilent(e))}getLogger(){return this.logger||(this.logger=this.instance.getLogger().clone(QM,Jb)),this.logger}setLogger(e){this.logger=e.clone(QM,Jb),this.instance.setLogger(e)}}return n.\u0275fac=function(e){return new(e||n)(T(Zb),T(Na))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),XM=(()=>{class n{constructor(e,i,r){this.msalInstance=e,this.authService=i,this.msalBroadcastConfig=r,this.msalBroadcastConfig&&this.msalBroadcastConfig.eventsToReplay>0?(this.authService.getLogger().verbose(`BroadcastService - replayPastEvents set on BroadcastConfig, replaying the last ${this.msalBroadcastConfig.eventsToReplay} events`),this._msalSubject=new f2(this.msalBroadcastConfig.eventsToReplay)):this._msalSubject=new L,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new sr(gi.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(o=>{this._msalSubject.next(o);const s=Uq.getInteractionStatusFromEvent(o,this._inProgress.value);null!==s&&(this.authService.getLogger().verbose(`BroadcastService - ${o.eventType} results in setting inProgress from ${this._inProgress.value} to ${s}`),this._inProgress.next(s))})}}return n.\u0275fac=function(e){return new(e||n)(T(Zb),T(tl),T(C7,8))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),w7=(()=>{class n{constructor(e,i,r,o,s){this.msalGuardConfig=e,this.msalBroadcastService=i,this.authService=r,this.location=o,this.router=s,this.msalBroadcastService.inProgress$.subscribe()}parseUrl(e){return this.router.parseUrl(e)}getDestinationUrl(e){this.authService.getLogger().verbose("Guard - getting destination url");const i=document.getElementsByTagName("base"),r=this.location.normalize(i.length?i[0].href:window.location.origin),o=this.location.prepareExternalUrl(e);return o.startsWith("#")?(this.authService.getLogger().verbose("Guard - destination by hash routing"),`${r}/${o}`):`${r}${e}`}loginInteractively(e){const i="function"==typeof this.msalGuardConfig.authRequest?this.msalGuardConfig.authRequest(this.authService,e):Object.assign({},this.msalGuardConfig.authRequest);if(this.msalGuardConfig.interactionType===We.Popup)return this.authService.getLogger().verbose("Guard - logging in by popup"),this.authService.loginPopup(i).pipe(ue(o=>(this.authService.getLogger().verbose("Guard - login by popup successful, can activate, setting active account"),this.authService.instance.setActiveAccount(o.account),!0)));this.authService.getLogger().verbose("Guard - logging in by redirect");const r=this.getDestinationUrl(e.url);return this.authService.loginRedirect(Object.assign({redirectStartPage:r},i)).pipe(ue(()=>!1))}activateHelper(e){if(this.msalGuardConfig.interactionType!==We.Popup&&this.msalGuardConfig.interactionType!==We.Redirect)throw new Hf("invalid_interaction_type","Invalid interaction type provided to MSAL Guard. InteractionType.Popup or InteractionType.Redirect must be provided in the MsalGuardConfiguration");if(this.authService.getLogger().verbose("MSAL Guard activated"),!(typeof window<"u"))return this.authService.getLogger().info("Guard - window is undefined, MSAL does not support server-side token acquisition"),Ve(!0);if(nn.hashContainsKnownProperties(window.location.hash)&&Ln.isInIframe()&&!this.authService.instance.getConfiguration().system.allowRedirectInIframe)return this.authService.getLogger().warning("Guard - redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."),Ve(!1);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));const i=this.location.path(!0);return this.authService.handleRedirectObservable().pipe(Bo(()=>{if(!this.authService.instance.getAllAccounts().length)return e?(this.authService.getLogger().verbose("Guard - no accounts retrieved, log in required to activate"),this.loginInteractively(e)):(this.authService.getLogger().verbose("Guard - no accounts retrieved, no state, cannot load"),Ve(!1));if(this.authService.getLogger().verbose("Guard - at least 1 account exists, can activate or load"),e){const r=this.includesCode(e.url),o=!!e.root&&!!e.root.fragment&&this.includesCode(`#${e.root.fragment}`),s=0===this.location.prepareExternalUrl(e.url).indexOf("#");if(r&&(o||s))return this.authService.getLogger().info("Guard - Hash contains known code response, stopping navigation."),i.indexOf("#")>-1?Ve(this.parseUrl(this.location.path())):Ve(this.parseUrl(""))}return Ve(!0)}),xs(r=>(this.authService.getLogger().error("Guard - error while logging in, unable to activate"),this.authService.getLogger().errorPii(`Guard - error: ${r.message}`),this.loginFailedRoute&&parseInt(Y0.major,10)>9&&e?(this.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),Ve(this.loginFailedRoute)):Ve(!1))))}includesCode(e){return e.lastIndexOf("/code")>-1&&e.lastIndexOf("/code")===e.length-5||e.indexOf("#code=")>-1||e.indexOf("&code=")>-1}canActivate(e,i){return this.authService.getLogger().verbose("Guard - canActivate"),this.activateHelper(i)}canActivateChild(e,i){return this.authService.getLogger().verbose("Guard - canActivateChild"),this.activateHelper(i)}canLoad(){return this.authService.getLogger().verbose("Guard - canLoad"),this.activateHelper()}}return n.\u0275fac=function(e){return new(e||n)(T(YM),T(XM),T(tl),T(Na),T(pr))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),ZM=(()=>{class n{static forRoot(e,i,r){return{ngModule:n,providers:[{provide:Zb,useValue:e},{provide:YM,useValue:i},{provide:b7,useValue:r},tl]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[w7,XM],imports:[Xi]}),n})(),Mc=(()=>{class n{constructor(e,i,r){this.msalService=e,this.messageService=i,this.globals=r}setLoginDisplay(){console.log(this.msalService.instance.getAllAccounts().length>0)}isDesktopClient(){return Office.context.platform!==Office.PlatformType.OfficeOnline}signIn(e){return Ee(function*(){})()}clientSignIn(){var e=this;return Ee(function*(){console.log("Client Login"),e.signIn()})()}signOut(){var e=this;return Ee(function*(){yield e.msalService.logout().toPromise(),e.user=void 0,e.authenticated=!1})()}signOutPopup(){var e=this;return Ee(function*(){yield e.msalService.logoutPopup().toPromise(),e.user=void 0,e.authenticated=!1})()}getAccessToken(){return Ee(function*(){return""})()}getUser(){var e=this;return Ee(function*(){if(!e.authenticated)return;const r=yield kf.init({authProvider:(s=Ee(function*(a){const l=yield e.getAccessToken().catch(c=>{a(c,null)});l?a(null,l):a("Could not get an access token",null)}),function(l){return s.apply(this,arguments)})}).api("/me").select("displayName,mail,mailboxSettings,userPrincipalName").get(),o=new Bq;var s;return o.displayName=r.displayName??"",o.email=r.mail??r.userPrincipalName??"",o.timeZone=r.mailboxSettings?.timeZone??"UTC",o.avatar="/assets/no-profile-photo.png",o})()}}return n.\u0275fac=function(e){return new(e||n)(T(tl),T(en),T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wo=(()=>{class n{constructor(e){this.globalsService=e,this.indexParamStart="index.xsp?",this.urlExtension=this.indexParamStart+"loadTabs=false"}convertToLink(e){return this.globalsService.webInt+this.urlExtension+"&openDocument="+e}openWebIntWithParams(e){e=e.set("loadTabs","false"),window.open(this.globalsService.webInt+this.indexParamStart+e.toString(),"_blank")}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const eC="loginBM.xsp";let JM=(()=>{class n{constructor(e,i,r,o,s,a){this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.authService=s,this.webintLinkService=a,this.apiOverviewPath="",this.pathFetchInProgress=!1,this.loggedIn=!1,this.loggingOut=!1,this.listenerSet=!1,this.dialog=null,this.options={},this.apiOverviewPath="restBM.xsp/verserest/"}connect(){return new b(e=>{this.authService.isDesktopClient()?Office.context.ui.displayDialogAsync(window.location.origin+window.location.pathname+"?redirect",{height:25,width:25},i=>{this.dialog=i.value,this.dialog.addEventHandler(Office.EventType.DialogMessageReceived,this.processOutlookMessage.bind(this)),this.dialog.addEventHandler(Office.EventType.DialogEventReceived,this.onDialogClose.bind(this,e))}):(this.createListenerLogin(e),this.loginWindow=this.popupWindow(this.globals.webInt+eC,"login",440,190),this.globals.loginOpen=!0,(!this.loginWindow||this.loginWindow.closed||typeof this.loginWindow.closed>"u")&&(this.loggingOut||this.messageService.showError(this.globals.languageConfLocal.popupBlocked,void 0,!0),"Verse"===this.globals.curConnectorType&&location.reload()))})}objectToHttpParams(e){let i=new Yt;for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=e[r];o&&(i=i.set(r,o))}return i}reload(){if("Owa"===this.globals.curConnectorType)window.location.reload();else if(sessionStorage.setItem("verseAppData",JSON.stringify(this.globals.curConnector.data)),window,!window.location.href.includes("index.html")){let i="index.html";window.location.href.endsWith("/")||(i="/"+i),window.location.href+=i}}getReqModal(e,i){return this.globals.modalCacheFlag?(null==i&&(i=new Yt),this.getReq(e,i)):this.getReqNoCache(e,i)}getReqNoCache(e,i,r,o){return null==i&&(i=new Yt),i=i.append("noCache","true"),this.getReq(e,i,r,o)}getReq(e,i,r,o){let s;return s=null!=r&&!1===r?this.globals.changeOwnOptions({responseType:"text"}):void 0,!e.includes("keepAlive")&&!o&&this.activateSpinner(),null==i&&(i=new Yt),new b(a=>{this.getReqHandler(e,i,a,0,s,r)})}getReqHandler(e,i,r,o,s,a){var l=this;return Ee(function*(){if(null!=l.pathInfo){let u,c=l.globals.webInt+l.apiOverviewPath+l.pathInfo[e].relativePath;u=s?l.globals.changeOwnOptions(s):l.globals.objectWithParams(i),c+="?"+i.toString(),yield fetch(c,u).then(function(){var d=Ee(function*(h){let f;f=null==a||a?yield h.json():yield h.text(),r.next(f),r.complete(),l.globals.hideSpinner()});return function(h){return d.apply(this,arguments)}}()).catch(d=>{r.error(),l.globals.hideSpinner()})}else 10==++o?(null===window.localStorage.getItem("webInt")||l.globals.hideSpinner(),r.error()):setTimeout(()=>{l.getReqHandler(e,i,r,o)},500)})()}postReq(e,i,r=!0,o,s,a){var l=this;if((void 0===s||!s)&&this.activateSpinner(),i instanceof Yt&&(i=i.toString()),r){if(!o){const c={method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}}else if(o)o.method="POST",o.responseType="text","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o);else{const c={responseType:"text",method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}return o&&(o.method="POST","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o)),new b(c=>{if(null!=this.pathInfo){let u=this.globals.webInt+this.apiOverviewPath+this.pathInfo[e].relativePath;a&&(u+=a),Et(fetch(u,o)).subscribe({next:(d=Ee(function*(h){if(200===h.status){let f;f=null==r||r?yield h.json():yield h.text(),c.next(f),l.globals.hideSpinner()}else c.error(h),l.globals.hideSpinner()}),function(f){return d.apply(this,arguments)}),error:d=>{c.error(d),this.globals.hideSpinner()},complete:()=>{}})}var d})}postSoap(e,i){var r=this;return Ee(function*(){r.activateSpinner();const o=yield fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"include",headers:{"Content-Type":"text/xml",SOAPAction:"basicInvoke"},redirect:"follow",referrerPolicy:"no-referrer",body:i});return r.globals.hideSpinner(),o})()}processPath(){return new b(e=>{if(this.pathFetchInProgress)this.waitList.addToWaitList("path",e);else{this.pathFetchInProgress=!0;const i=Et(fetch(this.globals.webInt+this.apiOverviewPath,this.globals.options));null!=this.pathInfo?(this.processPathWaitingList(),this.pathFetchInProgress=!1,e.next(this.pathInfo),e.complete()):this.loginConnect(i,e)}})}processAddress(e){return e=e.set("filterImg","true"),new b(i=>{null!=this.pathInfo&&this.postReq("addresses",e,!0).subscribe({next:r=>{for(let o of r.data)o.url=this.createWebintLink(o.pointer),o.parentUrl=this.createWebintLink(o.companyPointer);i.next(r),i.complete()},error:r=>{},complete:()=>{}})})}waitForLC(){return new b(e=>{null==this.pathInfo?this.processPath().subscribe(()=>{this.processLCHandler(e)}):this.processLCHandler(e)})}processLCHandler(e){var o,i=this;null!=this.pathInfo&&(Object.keys(this.globals.languageConf).length>0?(e.next(!0),e.complete()):Et(fetch(this.globals.webInt+this.apiOverviewPath+this.pathInfo.translation.relativePath+"/businessmail",this.globals.options)).subscribe({next:(o=Ee(function*(s){200!==s.status?e.error(yield s.text()):(i.globals.languageConf=yield s.json(),e.next(!0),e.complete())}),function(a){return o.apply(this,arguments)}),error:o=>{},complete:()=>{}}))}checkWebInt(e){var i=this;return Ee(function*(){return i.activateSpinner(),yield fetch(e+eC,{method:"HEAD"}).then(r=>404===r.status?(i.messageService.showError(i.globals.languageConfLocal.webIntCertError+" "+e,void 0,!0),i.globals.hideSpinner(),!1):(window.localStorage.setItem("webInt",encodeURI(e)),i.globals.webInt=encodeURI(e),!0)).catch(()=>(i.messageService.showError(i.globals.languageConfLocal.webIntCertError+" "+e,void 0,!0),i.globals.hideSpinner(),!1))})()}resetListener(){this.listenerSet=!1}logoutGraph(){var e=this;return Ee(function*(){yield e.authService.signOutPopup()})()}logout(e){var i=this;return Ee(function*(){if(i.activateSpinner(),"gi"===i.globals.system){let r=window.open(i.globals.webInt+"?logout","_blank","toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no, 440, 190");setTimeout(()=>{r?.close()},1e3)}var r;Et(fetch(i.globals.webInt.substring(0,i.globals.webInt.length-1)+"?logout",i.globals.options)).subscribe({next:()=>{(void 0===e||!1===e)&&(i.reload(),"Verse"===i.globals.curConnectorType&&location.reload())},error:(r=Ee(function*(o){const s=yield fetch(i.globals.webInt+"restBM.xsp/verserest/",{method:"get",credentials:"include",cache:"no-cache",mode:"cors"});null!=s.status&&401===s.status?(void 0===e||!1===e)&&i.reload():(null!=s.type&&"cors"===s.type&&(void 0===e||!1===e)&&i.reload(),i.messageService.showError(i.globals.languageConfLocal.webIntLogoutFailed,void 0,!0))}),function(s){return r.apply(this,arguments)})})})()}waitForWebIntModal(){return new b(e=>{this.webIntModalOpen?(e.next(this.webIntModalOpen),e.complete()):this.waitList.addToWaitList("webIntModal",e)})}getUserName(){return new b(e=>{this.getReqNoCache("user",null).subscribe(i=>{e.next(i),e.complete()})})}waitForGraphRequired(){return new b(e=>{this.waitList.addToWaitList("graphRequired",e)})}login(e,i){return Ee(function*(){throw new Error("Method not implemented.")})()}get isLoggedIn(){return this.loggedIn}set webIntModalOpenRef(e){this.webIntModalOpen=e;for(const i of this.waitList.accessWaitList("webIntModal"))i.next(e),i.complete()}getPath(e,i=!0){return this.pathInfo?this.globals.webInt+(i?this.apiOverviewPath:"")+this.pathInfo[e].relativePath:""}openGraphLogin(){return Ee(function*(){return null})()}activateSpinner(){this.globals.webInt&&""!==this.globals.webInt&&this.globals.showSpinner()}processPathWaitingList(){this.waitList.accessWaitList("path").forEach(e=>{null!=this.pathInfo?(e.next(this.pathInfo),e.complete()):e.error()})}loginConnect(e,i){this.globals.webInt&&this.loginConnectHandler(e,i)}loginConnectHandler(e,i){var o,r=this;e.subscribe({next:(o=Ee(function*(s){200!==s.status?r.loginConnectError(s,e,i):(r.pathInfo=yield s.clone().json(),r.loggedIn=!0,r.keepAlive(),r.checkIfLoggedIn(e,i))}),function(a){return o.apply(this,arguments)}),error:o=>{this.loginConnectError(o,e,i)},complete:()=>{}})}loginConnectError(e,i,r){var o=this;return Ee(function*(){o.loggedIn=!1,401===e.status||200===e.status?o.connect().subscribe(o.connectHandler(i,r)):(o.processPathWaitingList(),o.pathFetchInProgress=!1)})()}keepAlive(){var e=this;null!=this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveInterval=setInterval(Ee(function*(){const i=e.getReqNoCache("keepAlive",null,!1).subscribe(()=>{i.unsubscribe()})}),55e3)}connectHandler(e,i){return{next:()=>{},error:r=>{},complete:()=>{const r=Et(fetch(this.globals.webInt+this.apiOverviewPath,this.globals.options));this.loginConnect(r,i)}}}waitForPlatformType(){return new b(e=>{this.waitList.addToWaitList("platform",e)})}processOutlookMessage(e){"message"in e&&null!=this.dialog&&"ready"===e.message.toLowerCase()&&this.dialog.messageChild(this.globals.webInt+eC)}onDialogClose(e,i){if(console.log(i),"error"in i&&12006===i.error){console.log("DIALOG CLOSED"),this.activateSpinner(),e.next("OK"),e.complete(),this.globals.loginOpen=!1;for(const r of this.waitList.accessWaitList("login"))r.next("OK"),r.next("complete")}}checkIfLoggedIn(e,i){var r=this;return Ee(function*(){if(null!=r.pathInfo){let o=new Yt;o=o.set("noCache","true"),r.getReqNoCache("keepAlive",null,!1).subscribe({next:(s=Ee(function*(a){null==a||"OK"!==a?r.connect().subscribe(r.connectHandler(e,i)):(r.processPathWaitingList(),r.pathFetchInProgress=!1,i.next(a),i.complete())}),function(l){return s.apply(this,arguments)}),error:s=>{r.connect().subscribe(r.connectHandler(e,i))}})}var s})()}popupWindow(e,i,r,o){if(!this.loggingOut){const s=screen.width/2-r/2,a=screen.height/2-o/2;return window.open(e,i,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width="+r+", height="+o+", top="+a+", left="+s)}return null}createListenerLogin(e){var i=this;this.listenerSet||(setTimeout(()=>{this.globals.hideSpinner()},4e3),window.addEventListener("message",this.messageListener=function(){var r=Ee(function*(o){if(o.origin===i.globals.origin)if("OK"===o.data){null!=i.loginWindow&&i.loginWindow.close(),window.removeEventListener("message",i.messageListener,!1),i.activateSpinner(),e.next("OK"),e.complete(),i.globals.loginOpen=!1;for(const s of i.waitList.accessWaitList("login"))s.next("OK"),s.next("complete")}else"Close"===o.data&&(i.waitList.addToWaitList("login",e),i.globals.hideSpinner(),i.globals.loginOpen=!1)});return function(o){return r.apply(this,arguments)}}(),!1),this.listenerSet=!0)}createWebintLink(e){return this.webintLinkService.convertToLink(e)}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(Ji),T(As),T(en),T(Mc),T(Wo))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const A7=new pe("JWT_OPTIONS");let T7=(()=>{class n{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let i=e.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(i)}b64decode(e){let r="";if((e=String(e).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let s,a,o=0,l=0;a=e.charAt(l++);~a&&(s=o%4?64*s+a:a,o++%4)?r+=String.fromCharCode(255&s>>(-2*o&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return r}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),i=>"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){if(!e||""===e)return null;const i=e.split(".");if(3!==i.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const r=this.urlBase64Decode(i[1]);if(!r)throw new Error("Cannot decode the token.");return JSON.parse(r)}getTokenExpirationDate(e=this.tokenGetter()){let i;if(i=this.decodeToken(e),!i||!i.hasOwnProperty("exp"))return null;const r=new Date(0);return r.setUTCSeconds(i.exp),r}isTokenExpired(e=this.tokenGetter(),i){if(!e||""===e)return!0;const r=this.getTokenExpirationDate(e);return i=i||0,null!==r&&!(r.valueOf()>(new Date).valueOf()+1e3*i)}getAuthScheme(e,i){return"function"==typeof e?e(i):e}}return n.\u0275fac=function(e){return new(e||n)(T(A7))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),e1=(()=>{class n{constructor(){this.pathObj=null}get path(){return this.pathObj}isPathSet(){return null!=this.pathObj}waitForPath(){var e=this;return Ee(function*(){return e.pathObj=yield e.createPath(),e.pathObj})()}createPath(){return Ee(function*(){return{addresses:{relativePath:"bm4o/AddressesByMailAddress"},activities:{relativePath:"bm4o/ActivitiesByAddress"},document:{relativePath:"bm4o/DocumentMail"},renew:{relativePath:"auth/renewByToken"},search:{relativePath:"bm4o/SearchContacts"},searchProjects:{relativePath:"BM4OProjects/SearchProjects"},emailAlreadyDocumented:{relativePath:"BM4O/EmailAlreadyDocumented"},activityTypes:{relativePath:"bm4o/DocumentTypes"},addRecentlyUsed:{relativePath:"RecentlyUsed/AddRecentlyUsed"},openRecord:{relativePath:"OpenRecord"},baVersion:{relativePath:"bm4o/GetBAVersion"},getChips:{relativePath:"bm4o/GetChips"},readCRMData:{relativePath:"bm4o/GetCRMData"},extractContact:{relativePath:"RestAddressParser/Parse"},createRecord:{relativePath:"v1/record/"},getEnumValues:{relativePath:"v1/enum/"},checkAlive:{relativePath:"bm4o/CheckAlive"}}})()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const I7=["alternativeAddresses"],M7=["pointer","database","mail","imageURL","companyPointer","url","parentUrl","isCompany","gender","base64image"];let tC=(()=>{class n{constructor(e){this.globals=e}convertAddress(e,i,r){var o=this;return Ee(function*(){const s={},a={},l=[];let c=0;if(i?.addresses)for(const d of i.addresses){const h={name:d.entityTitle,pointer:d.oid,companyName:null!=d.parent?d.parent.entityTitle:void 0,companyPointer:null!=d.parent?d.parent.oid:void 0,isCompany:"fe7eb8ae-71be-4220-8da5-dc04078e6b3c"===d.type.oid,url:d.frontEndUri,additional:{mail:r,homepage:d.homepage,birthdate:d.birthday?new Date(d.birthday).toLocaleDateString():null,skype:d.skypeName,imageURL:null,database:null,phone:d.phoneNumber,cellphone:d.mobileNumber,homephone:d.homePhoneNumber,alternativeAddresses:[],gender:d.gender,base64image:d.base64image,fallback:d.fallback,fullAddress:d.fullAddress}};s[d.oid]=d.frontEndUri,null!=d.parent&&(a.hasOwnProperty(d.parent.oid)?a[d.parent.oid].push(c):a[d.parent.oid]=[c]);const f=yield o.removeEmptyEntries(h);l.push(f),c++}yield o.assignParentUrls(l,s,a),e.next({data:l,ignoreInAddress:I7,hide:M7}),e.complete()})()}convertActivity(e,i,r,o){const s=[];let a=this.globals.numericBackendVersion()<9e4?"":this.globals.webInt;for(const c of i.activities){const u={date:c.date,dateInMS:new Date(c.date).getTime(),pointer:c.oid,subject:c.subject,viewIcon:a+c.imageName,viewIconUrl:a+c.imageName,lineTwoOverride:c.lineTwoOverride,url:c.frontEndUri};s.push(u)}e.next({activities:s,selectedType:r,maxEntries:10,type:"activities"})}convertActivityTypes(e){const i=[["Vorg\xe4nge","1"]];i.type="types",e.next(i)}get maxActivities(){return 10}assignParentUrls(e,i,r){return Ee(function*(){for(const o of Object.keys(r))for(const s of r[o])e[s].parentUrl=i[o]})()}removeEmptyEntries(e){return Ee(function*(){for(const[i,r]of Object.entries(e))void 0===r&&e.hasOwnProperty(i)&&delete e[i];return e})()}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nC=(()=>{class n extends JM{constructor(e,i,r,o,s,a,l,c,u){super(e,i,r,o,s,u),this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.authService=s,this.pathBA=a,this.converter=l,this.modalService=c,this.webintLinkService=u,this.apiOverviewPath="api/",this.jwt=new T7}connect(){return new b(e=>{this.loginListener(e)})}objectToHttpParams(e){let i=new Yt;for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=e[r];o&&(i=i.set(r,o))}return i}reload(){if("Owa"===this.globals.curConnectorType)window.location.reload();else if(sessionStorage.setItem("verseAppData",JSON.stringify(this.globals.curConnector.data)),window,!window.location.href.includes("index.html")){let i="index.html";window.location.href.endsWith("/")||(i="/"+i),window.location.href+=i}}getReqModal(e,i){return this.globals.modalCacheFlag?(null==i&&(i=new Yt),this.getReq(e,i)):this.getReqNoCache(e,i)}getReqNoCache(e,i,r,o){return null==i&&(i=new Yt),i=i.append("noCache","true"),this.getReq(e,i,r,o)}getReq(e,i,r=!0,o,s,a){let l;return l=null!=r&&!1===r?this.globals.changeOwnOptions({responseType:"text"}):void 0,!e.includes("renew")&&!o&&this.activateSpinner(),null==i&&(i=new Yt),new b(c=>{this.getReqHandler(e,i,c,0,l,r,s,a)})}getReqHandler(e,i,r,o,s,a,l,c){var u=this;return Ee(function*(){u.processPath().subscribe(Ee(function*(){if(null!=u.pathInfo){let h,d=u.globals.webInt;d+=l?l+u.pathInfo[e].relativePath:u.apiOverviewPath+u.pathInfo[e].relativePath,h=s?u.globals.changeOwnOptions(s):u.globals.objectWithParams(i);const f=yield u.getValidToken();if(""===f)return;h.headers={"Content-Type":"application/json",Authorization:"Bearer "+f},c&&(d+=c),d+="?"+i.toString(),yield fetch(d,h).then(function(){var S=Ee(function*(U){let Z;Z=null==a||a?yield U.json():yield U.text(),r.next(Z),r.complete(),u.globals.hideSpinner()});return function(U){return S.apply(this,arguments)}}()).catch(S=>{r.error(),u.globals.hideSpinner()})}else 3==++o?(null===window.localStorage.getItem("webInt")||u.messageService.setConnectionTimeout(u.globals.languageConfLocal.cantConnect),r.error()):setTimeout(()=>{u.getReqHandler(e,i,r,o)},300)}))})()}postReq(e,i,r=!0,o,s,a,l){if((void 0===s||!s)&&!e.includes("renew")&&this.activateSpinner(),i instanceof Yt&&(i=i.toString()),r){if(!o){const c={method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}}else if(o)o.method="POST",o.responseType="text","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o);else{const c={responseType:"text",method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}return o&&(o.method="POST","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o)),new b(c=>{this.postReqHandler(c,e,o,r,a,l)})}postReqHandler(e,i,r,o=!0,s,a){var l=this;return Ee(function*(){const c=yield l.getValidToken();if(""!==c&&(r&&(r.headers={"Content-Type":"application/json",Authorization:"Bearer "+c}),null!=l.pathInfo)){let d=l.globals.webInt;d+=a?a+l.pathInfo[i].relativePath:l.apiOverviewPath+l.pathInfo[i].relativePath,s&&(d+=s),Et(fetch(d,r)).subscribe({next:(h=Ee(function*(f){if(200===f.status||201===f.status){let _;_=null==o||o?yield f.json():yield f.text(),e.next(_),l.globals.hideSpinner()}else e.error(f),l.globals.hideSpinner()}),function(_){return h.apply(this,arguments)}),error:h=>{e.error(h),l.globals.hideSpinner()},complete:()=>{}})}var h})()}postSoap(e,i){var r=this;return Ee(function*(){r.activateSpinner();const o=yield fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"include",headers:{"Content-Type":"text/xml",SOAPAction:"basicInvoke"},redirect:"follow",referrerPolicy:"no-referrer",body:i});return r.globals.hideSpinner(),o})()}processPath(){return new b(e=>{this.pathFetchInProgress?this.waitList.addToWaitList("path",e):(this.pathFetchInProgress=!0,this.pathBA.isPathSet()&&(this.pathInfo=this.pathBA.path),null!=this.pathInfo?(this.processPathWaitingList(),this.pathFetchInProgress=!1,e.next(this.pathInfo),e.complete()):this.pathHandler(e))})}processAddress(e){return new b(i=>{null!=this.pathInfo&&this.getReq("addresses",e,!0).subscribe({next:r=>{this.converter.convertAddress(i,r,e.get("mail"))},error:r=>{},complete:()=>{}})})}waitForLC(){return new b(e=>{null==this.pathInfo?this.processPath().subscribe(()=>{this.processLCHandler(e)}):this.processLCHandler(e)})}processLCHandler(e){null!=this.pathInfo&&(Object.keys(this.globals.languageConf),e.next(!0),e.complete())}checkWebInt(e,i,r){var o=this;return Ee(function*(){i||(e=yield o.trimURL(e)),o.activateSpinner();const a=new Request(e+"api/bm4o/GetBAVersion",{method:"GET"});return yield fetch(a).then(function(){var l=Ee(function*(c){return 401==c.status?"8.0.0":404==c.status?"7.0.0":c.text()});return function(c){return l.apply(this,arguments)}}()).then(function(){var l=Ee(function*(c){o.globals.backendVersion=c});return function(c){return l.apply(this,arguments)}}()).catch(()=>o.globals.backendVersion="7.0.0"),o.globals.webInt===e||(window.localStorage.setItem("webInt",e),o.globals.webInt=e,o.logout(),!1)})()}resetListener(){this.listenerSet=!1}logoutGraph(){var e=this;return Ee(function*(){yield e.authService.signOutPopup()})()}logout(e){var i=this;return Ee(function*(){window.localStorage.removeItem("token"),i.globals.loggedIn=!1,(void 0===e||!1===e)&&i.reload()})()}waitForWebIntModal(){return new b(e=>{this.webIntModalOpen?(e.next(this.webIntModalOpen),e.complete()):this.waitList.addToWaitList("webIntModal",e)})}getUserName(){return new b(e=>{this.userNameHandler(e)})}userNameHandler(e){var i=this;return Ee(function*(){const r=yield i.getValidToken();if(""!==r){const o=i.jwt.decodeToken(r);e.next(o.name),e.complete()}})()}waitForGraphRequired(){return new b(e=>{this.waitList.addToWaitList("graphRequired",e)})}login(e,i){var r=this;return Ee(function*(){if(!(yield r.checkWebInt(r.globals.webInt,void 0,!0)))return r.messageService.showError(r.globals.languageConfLocal.urlInvalidBase,void 0,!0),r.globals.hideSpinner(),!1;const s=new Request(r.globals.webInt+"api/auth/login",{method:"POST",body:JSON.stringify({username:encodeURIComponent(e),password:encodeURIComponent(i)}),headers:new Headers({"Content-Type":"application/json"})});if(r.globals.numericBackendVersion()<9e4)return yield r.performLogin(s);{const a=new Request(r.globals.webInt+"api/bm4o/checkAlive",{method:"GET"});yield fetch(a).then(function(){var l=Ee(function*(c){return c.text()});return function(c){return l.apply(this,arguments)}}()).then(function(){var l=Ee(function*(c){if("true"===c)return yield r.performLogin(s);if(c.indexOf("The Application is just starting")>0){let u=c.substr(c.indexOf("The Application is just starting")+33,5);return r.messageService.showWarning(r.globals.languageConfLocal.baInstanceStarting+u),r.globals.hideSpinner(),!1}return r.messageService.showError(r.globals.languageConfLocal.baInstanceNotAvailable),r.globals.hideSpinner(),!1});return function(c){return l.apply(this,arguments)}}()).catch(l=>(r.messageService.showError(r.globals.languageConfLocal.baInstanceNotAvailable),r.globals.hideSpinner(),!1))}return!1})()}performLogin(e){var i=this;return Ee(function*(){const r=yield fetch(e).then(o=>o.json()).then(o=>(null!=o.token&&void 0!==o.token?localStorage.setItem("token",o.token):(localStorage.removeItem("token"),i.globals.loggedIn=!1),i.messageService.showSuccess(i.globals.languageConfLocal.loginSuccess),i.globals.hideForLogin=!1,!0)).catch(o=>(localStorage.removeItem("token"),i.globals.loggedIn=!1,i.messageService.showError(i.globals.languageConfLocal.loginFailed),!1));return i.globals.hideSpinner(),r&&i.reload(),r})()}get isLoggedIn(){return this.loggedIn}set webIntModalOpenRef(e){this.webIntModalOpen=e;for(const i of this.waitList.accessWaitList("webIntModal"))i.next(e),i.complete()}openGraphLogin(){return Ee(function*(){return null})()}activateSpinner(){this.globals.webInt&&""!==this.globals.webInt&&this.globals.showSpinner()}processPathWaitingList(){this.waitList.accessWaitList("path").forEach(e=>{null!=this.pathInfo?(e.next(this.pathInfo),e.complete()):e.error()})}pathHandler(e){var i=this;return Ee(function*(){i.pathInfo=yield i.pathBA.waitForPath(),i.loggedIn=!0,i.keepAlive(),i.checkIfLoggedInBA(i.pathInfo,e)})()}keepAlive(){var e=this;null!=this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveInterval=setInterval(Ee(function*(){const i=window.localStorage.getItem("token");if(null!==i||"undefined"===i){const r=yield e.renewRequest(i);yield fetch(r).then(function(){var s=Ee(function*(a){return a.json()});return function(a){return s.apply(this,arguments)}}()).then(s=>{null!=s.token&&void 0!==s.token?localStorage.setItem("token",s.token):(localStorage.removeItem("token"),e.globals.loggedIn=!1)}).catch(s=>{localStorage.removeItem("token"),e.globals.loggedIn=!1,e.messageService.showError(e.globals.languageConfLocal.tokenFailed)})}else null===i&&(e.globals.loggedIn=!1)}),3e5)}trimURL(e){return Ee(function*(){const i=new URL(e),r=i.pathname;return r.includes("/_")&&(i.pathname=r.substring(0,r.indexOf("/_")+1)),i.toString()})()}renewRequest(e){var i=this;return Ee(function*(){const r=i.jwt.decodeToken(e);return new Request(i.globals.webInt+"api/auth/renewByToken",{method:"POST",body:JSON.stringify({username:encodeURIComponent(r.name)}),headers:new Headers({"Content-Type":"application/json",Authorization:"Bearer "+e})})})()}getValidToken(){var e=this;return Ee(function*(){let i=localStorage.getItem("token");(null===i||"undefined"===i)&&(i=void 0);const r=e.jwt.isTokenExpired(i);if(!r||void 0!==i&&null!=i){if(r){const o=yield e.renewRequest(i);yield fetch(o).then(function(){var a=Ee(function*(l){if(401!==l.status)return l.json();i="",yield e.openLoginModal()});return function(l){return a.apply(this,arguments)}}()).then(a=>{null!=a.token&&void 0!==a.token?localStorage.setItem("token",a.token):(localStorage.removeItem("token"),e.globals.loggedIn=!1)}).catch(a=>{console.log(a),localStorage.removeItem("token"),e.globals.loggedIn=!1,e.messageService.showError(e.globals.languageConfLocal.tokenFailed)})}}else yield e.openLoginModal(),i=localStorage.getItem("token");return null==i&&(i=""),i})()}isTokenValid(){var e=this;return Ee(function*(){let i=localStorage.getItem("token");return(null===i||"undefined"===i)&&(i=void 0),e.jwt.isTokenExpired})()}openLoginModal(){var e=this;return Ee(function*(){e.globals.hideForLogin=!0,e.modalService.changeType({newType:"login"}),e.globals.hideSpinner()})()}loginListener(e){var i=this;return Ee(function*(){if(""!==(yield i.getValidToken())){e.next("OK"),e.complete();for(const o of i.waitList.accessWaitList("login"))o.next("OK"),o.next("complete")}else i.waitList.addToWaitList("login",e),i.globals.hideSpinner()})()}checkIfLoggedInBA(e,i){var r=this;return Ee(function*(){if(null!=r.pathInfo){let o=new Yt;o=o.set("noCache","true"),(yield r.isTokenValid())&&(r.processPathWaitingList(),r.pathFetchInProgress=!1,i.next(e),i.complete())}})()}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(Ji),T(As),T(en),T(Mc),T(e1),T(tC),T(ol),T(Wo))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Nn=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.authService=s,this.pathBA=a,this.converter=l,this.modalService=c,this.webintLinkService=u,this.curConnectionSystem||this.setSystem(this.globals.system)}setSystem(e){var i=this;return Ee(function*(){switch(e){case"gi":i.globals.system="gi",i.curConnectionSystem=new JM(i.globals,i.waitList,i.modal,i.messageService,i.authService,i.webintLinkService);break;case"ba":i.globals.system="ba",i.curConnectionSystem=new nC(i.globals,i.waitList,i.modal,i.messageService,i.authService,i.pathBA,i.converter,i.modalService,i.webintLinkService)}})()}get system(){return this.globals.system}connect(){return this.curConnectionSystem.connect()}objectToHttpParams(e){return this.curConnectionSystem.objectToHttpParams(e)}reload(){this.curConnectionSystem.reload()}getReqModal(e,i){return this.curConnectionSystem.getReqModal(e,i)}getReqNoCache(e,i,r,o){return this.curConnectionSystem.getReqNoCache(e,i,r,o)}getReq(e,i,r,o){return this.curConnectionSystem.getReq(e,i,r,o)}getReqHandler(e,i,r,o,s,a){var l=this;return Ee(function*(){return l.curConnectionSystem.getReqHandler(e,i,r,o,s,a)})()}postReq(e,i,r=!0,o,s,a){return this.curConnectionSystem.postReq(e,i,r,o,s,a)}postSoap(e,i){return new b(r=>{r.next(this.curConnectionSystem.postSoap(e,i))})}processPath(){return this.curConnectionSystem.processPath()}processAddress(e){return this.curConnectionSystem.processAddress(e)}waitForLC(){return this.curConnectionSystem.waitForLC()}processLCHandler(e){this.curConnectionSystem.processLCHandler(e)}checkWebInt(e){var i=this;return Ee(function*(){return i.curConnectionSystem.checkWebInt(e)})()}resetListener(){this.curConnectionSystem.resetListener()}logoutGraph(){var e=this;return Ee(function*(){return e.curConnectionSystem.logoutGraph()})()}logout(e){var i=this;return Ee(function*(){return i.curConnectionSystem.logout(e)})()}logoutOldSystem(e){return Ee(function*(){return e.logout()})()}waitForWebIntModal(){return this.curConnectionSystem.waitForWebIntModal()}getUserName(){return this.curConnectionSystem.getUserName()}waitForGraphRequired(){return this.curConnectionSystem.waitForGraphRequired()}login(e,i){var r=this;return Ee(function*(){return r.curConnectionSystem.login(e,i)})()}get isLoggedIn(){return this.curConnectionSystem.isLoggedIn}set webIntModalOpenRef(e){this.curConnectionSystem.webIntModalOpenRef=e}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(Ji),T(As),T(en),T(Mc),T(e1),T(tC),T(ol),T(Wo))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class P7{constructor(){this.primary=[],this.secondary=[]}}class iC{}let rC=(()=>{class n{constructor(e){this.waitList=e,this.isInit=!1}set initComplete(e){this.isInit=e,e&&this.informWaitList()}get initComplete(){return this.isInit}waitForInit(){return new b(e=>{e.next(this.isInit),this.isInit?(e.complete(),this.informWaitList()):this.waitList.addToWaitList("init",e)})}informWaitList(){const e=this.waitList.accessWaitList("init");for(const i of e)i.next(this.initComplete),this.initComplete&&i.complete();this.waitList.clearWaitList("init")}}return n.\u0275fac=function(e){return new(e||n)(T(Ji))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class L7{constructor(){this.items=[{name:"createAddressCompany",lc:"LC73000"},{name:"createAddressToCompany",lc:"LC73001"},{name:"createAddressPerson",lc:"LC73003"}]}addNewItem(t,e){this.items.push({name:t,lc:e})}}const n1=[new class N7{constructor(){this.model={name:"deleteAttachments",value:"",classAssignment:{"":"bmAttachInclude",1:"bmAttachExclude"},titleLC:{"":"LC73172",1:"LC73173"}}}},new class F7{constructor(){this.model={name:"openMail",value:"",classAssignment:{"":"bmDocOFF",1:"bmDocON"},titleLC:{"":"LC73169",1:"LC73168"}}}},new class B7{constructor(){this.model={name:"createAddress",value:"",classAssignment:{"":"bmPlus",1:"bmMinus"},titleLC:{"":"LC73197",1:"LC73197"}}}}];let r1=(()=>{class n{constructor(e){this.globals=e,this.configData=n1,this.subscribers=[],this.createInstance=new L7,this.open=!1}connect(){return new b(e=>{this.subscribers.push(e),e.next(this.globals.isCreateBlockOpen)})}updateObservers(){const e=this.globals.isCreateBlockOpen;for(const i of this.subscribers)i.next(e)}toggleOpen(){this.open=!this.open,this.configData[2].model.value=this.isOpen?"1":"",this.globals.createAddressToggle(),this.updateObservers()}get items(){return this.createInstance.items}get isOpen(){return this.open}set config(e){this.configData=e}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rs=(()=>{class n{constructor(e,i,r,o,s){this.connectionService=e,this.waitListService=i,this.globals=r,this.initService=o,this.createService=s,this.fetchInProgress=!1,this.addressObjectExtended=!1,this.indexToShow=0,this.addressResponseObject={},this.addresses=[]}get toHideList(){return this.addressResponseObject.hide}get currentPointer(){return this.addresses[this.addressIndex].pointer}get currentAddressData(){return this.addresses[this.addressIndex]}get hasAddress(){return this.addresses.length>0}get addressIndex(){return this.indexToShow}set addressIndex(e){this.indexToShow=e,this.notifyIndexSubscriber()}waitForAddresses(){return new b(e=>{this.addresses.length>0?(e.next(this.addresses),e.complete()):this.waitListService.addToWaitList("address",e)})}processAddresses(){return new b(e=>{this.addresses.length<1?this.fetchInProgress?this.waitListService.addToWaitList("address",e):(this.fetchInProgress=!0,this.processData().subscribe({next:i=>{i.forEach(r=>{let o=r;o=this.modifyAdditionalData(o),this.addresses.push(o)}),(i.length<1&&!this.createService.isOpen||i.length>=1&&this.createService.isOpen)&&this.createService.toggleOpen(),e.next(this.addresses),e.complete()},error:()=>{this.processWaitingList(),this.fetchInProgress=!1},complete:()=>{this.processWaitingList(),this.fetchInProgress=!1}})):(e.next(this.addresses),e.complete())})}newProcessAddress(){return new b(e=>{let i=Office.context.mailbox.item,r=new P7;if(i){let s="appointment"===i.itemType;void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync?(s?(i?.organizer.emailAddress&&(r.fromEmail=i.organizer.emailAddress,r.fromName=i.organizer.displayName),i?.requiredAttendees.forEach(l=>{this.addIfNotExist(r.primary,l)}),i?.optionalAttendees.forEach(l=>{this.addIfNotExist(r.secondary,l)})):(i?.from.emailAddress&&(r.fromEmail=i.from.emailAddress,r.fromName=i.from.displayName),i?.to.forEach(l=>{this.addIfNotExist(r.primary,l)}),i?.cc.forEach(l=>{this.addIfNotExist(r.secondary,l)})),e.next(r)):s?i.requiredAttendees.getAsync(l=>{l.status===Office.AsyncResultStatus.Failed||i?.optionalAttendees.getAsync(c=>{c.status===Office.AsyncResultStatus.Failed||i?.organizer.getAsync(u=>{u.status===Office.AsyncResultStatus.Failed||(r.fromEmail=u.value.emailAddress,r.fromName=u.value.displayName,l.value.forEach(d=>{this.addIfNotExist(r.primary,d)}),c.value.forEach(d=>{this.addIfNotExist(r.secondary,d)}),e.next(r))})})}):i.to.getAsync(l=>{l.status===Office.AsyncResultStatus.Failed||i?.cc.getAsync(c=>{c.status===Office.AsyncResultStatus.Failed||i?.from.getAsync(u=>{u.status===Office.AsyncResultStatus.Failed||(l.value.forEach(d=>{this.addIfNotExist(r.primary,d)}),c.value.forEach(d=>{this.addIfNotExist(r.secondary,d)}),r.fromEmail=u.value.emailAddress,r.fromName=u.value.displayName,e.next(r))})})})}})}addIfNotExist(e,i){if(!e.some(r=>r.email===i.emailAddress)){let r=new iC;r.email=i.emailAddress,r.display=i.displayName,e.push(r)}}receiverAtendeeChanged(){this.fetchInProgress=!1}addToIndexListenerList(){return new b(e=>{this.waitListService.addToWaitList("index",e)})}resetAddr(){this.addresses=[]}addressChange(){for(const e of this.waitListService.accessWaitList("addressChange"))e.next(!0)}waitForAddressChange(){return new b(e=>{this.waitListService.addToWaitList("addressChange",e)})}modifyAdditionalData(e){const i=this.addressResponseObject.ignoreInAddress;return i&&i.forEach(r=>{e.additional&&delete e.additional[r]}),e}notifyIndexSubscriber(){this.waitListService.accessWaitList("index").forEach(e=>{e.next(this.addressIndex)})}processWaitingList(){this.waitListService.accessWaitList("address").forEach(e=>{this.addresses.length>0?(e.next(this.addresses),e.complete()):e.error("No address found.")}),this.waitListService.clearWaitList("address")}processData(){return new b(e=>{this.connectionService.processPath().subscribe(()=>{this.globals.curMailUnid&&""!==this.globals.curMailUnid?this.addressHandler(e):this.waitListService.addToWaitListFunc("mailAddr",e,this.addressHandler.bind(this))})})}addressHandler(e){let i=new Yt;i=i.set("mail",this.globals.curMailAddr),this.connectionService.processAddress(i).subscribe(r=>{this.addressResponseObject=r,e.next(r.data),e.complete(),this.notifyIndexSubscriber(),this.initService.initComplete=!0})}getUrlOrigin(e){return new URL(e).origin}}return n.\u0275fac=function(e){return new(e||n)(T(Nn),T(Ji),T(pt),T(rC),T(r1))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function oC(n){return n&&"function"==typeof n.connect&&!(n instanceof ph)}class o1{applyChanges(t,e,i,r,o){t.forEachOperation((s,a,l)=>{let c,u;if(null==s.previousIndex){const d=i(s,a,l);c=e.createEmbeddedView(d.templateRef,d.context,d.index),u=1}else null==l?(e.remove(a),u=3):(c=e.get(a),e.move(c,l),u=2);o&&o({context:c?.context,operation:u,record:s})})}detach(){}}class nl{constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new L,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,i=new Set(t);t.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,t))return!0;return!1}return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let a1=(()=>{class n{constructor(){this._listeners=[]}notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Pd=new pe("_ViewRepeater");let H7=(()=>{class n{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=ct(e)}get inset(){return this._inset}set inset(e){this._inset=ct(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ze({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(ot("aria-orientation",i.vertical?"vertical":"horizontal"),wt("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,i){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),n})(),V7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt,Pt]}),n})();const j7=["*"],q7=["text"];function z7(n,t){if(1&n&&xe(0,"mat-pseudo-checkbox",5),2&n){const e=x();y("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const G7=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],W7=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];let $7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),K7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})();const Y7=Vo(class{}),Q7=Vo(class{}),X7={provide:rr,useExisting:Zt(()=>$o),multi:!0};class Z7{constructor(t,e){this.source=t,this.options=e}}let Os=(()=>{class n extends Q7{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this.selectionList=r,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new Be,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(e){this._color=e}get value(){return this._value}set value(e){this.selected&&!this.selectionList.compareWith(e,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=e}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(e){const i=ct(e);i!==this._disabled&&(this._disabled=i,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(e){const i=ct(e);i!==this._selected&&(this._setSelected(i),(i||this.selectionList.multiple)&&this.selectionList._reportValueChange())}ngOnInit(){const e=this.selectionList;e._value&&e._value.some(r=>e.compareWith(this._value,r))&&this._setSelected(!0);const i=this._selected;Promise.resolve().then(()=>{(this._selected||i)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){!function C6(n,t,e="mat"){n.changes.pipe(ii(n)).subscribe(({length:i})=>{ad(t,`${e}-2-line`,!1),ad(t,`${e}-3-line`,!1),ad(t,`${e}-multi-line`,!1),2===i||3===i?ad(t,`${e}-${i}-line`,!0):i>3&&ad(t,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const e=this._hasFocus,i=this.selectionList._removeOptionFromList(this);e&&i&&i.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(e),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(Zt(()=>$o)))},n.\u0275cmp=ze({type:n,selectors:[["mat-list-option"]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,$7,5),Vt(r,K7,5),Vt(r,b6,5)),2&e){let o;me(o=ge())&&(i._avatar=o.first),me(o=ge())&&(i._icon=o.first),me(o=ge())&&(i._lines=o)}},viewQuery:function(e,i){if(1&e&&Oe(q7,5),2&e){let r;me(r=ge())&&(i._text=r.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&X("focus",function(){return i._handleFocus()})("blur",function(){return i._handleBlur()})("click",function(){return i._handleClick()}),2&e&&(ot("aria-selected",i.selected)("aria-disabled",i.disabled)("tabindex",-1),wt("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)("mat-primary","primary"===i.color)("mat-accent","primary"!==i.color&&"warn"!==i.color)("mat-warn","warn"===i.color)("mat-list-single-selected-option",i.selected&&!i.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[De],ngContentSelectors:W7,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,i){1&e&&(Vn(G7),g(0,"div",0),xe(1,"div",1),V(2,z7,1,2,"mat-pseudo-checkbox",2),g(3,"div",3,4),Ht(5),v(),Ht(6,1),v()),2&e&&(wt("mat-list-item-content-reverse","after"==i.checkboxPosition),m(1),y("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()),m(1),y("ngIf",i.selectionList.multiple))},dependencies:[Ar,fI,_n],encapsulation:2,changeDetection:0}),n})(),$o=(()=>{class n extends Y7{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this._focusMonitor=r,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new Be,this.color="accent",this.compareWith=(o,s)=>o===s,this._disabled=!1,this.selectedOptions=new nl(this._multiple),this._tabIndex=-1,this._onChange=o=>{},this._destroyed=new L,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=ct(e),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(e){const i=ct(e);i!==this._multiple&&(this._multiple=i,this.selectedOptions=new nl(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new hf(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Qt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(ii(null),Qt(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Qt(this._destroyed)).subscribe(e=>{if(e.added)for(let i of e.added)i.selected=!0;if(e.removed)for(let i of e.removed)i.selected=!1}),this._focusMonitor.monitor(this._element).pipe(Qt(this._destroyed)).subscribe(e=>{if("keyboard"===e||"program"===e){let i=0;for(let r=0;r-1&&this._keyManager.activeItemIndex===i&&(i>0?this._keyManager.updateActiveItem(i-1):0===i&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(i+1,this.options.length-1))),this._keyManager.activeItem}_keydown(e){const i=e.keyCode,r=this._keyManager,o=r.activeItemIndex,s=Di(e);switch(i){case 32:case 13:!s&&!r.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&Di(e,"ctrlKey")&&!r.isTyping()){const a=this.options.some(l=>!l.disabled&&!l.selected);this._setAllOptionsSelected(a,!0,!0),e.preventDefault()}else r.onKeydown(e)}this.multiple&&(38===i||40===i)&&e.shiftKey&&r.activeItemIndex!==o&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}_emitChangeEvent(e){this.selectionChange.emit(new Z7(this,e))}writeValue(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}setDisabledState(e){this.disabled=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}_setOptionsFromValues(e){this.options.forEach(i=>i._setSelected(!1)),e.forEach(i=>{const r=this.options.find(o=>!o.selected&&this.compareWith(o.value,i));r&&r._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(e=>e.selected).map(e=>e.value)}_toggleFocusedOption(){let e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){let i=this.options.toArray()[e];i&&!i.disabled&&(this._multiple||!i.selected)&&(i.toggle(),this._emitChangeEvent([i]))}}_setAllOptionsSelected(e,i,r){const o=[];return this.options.forEach(s=>{(!i||!s.disabled)&&s._setSelected(e)&&o.push(s)}),o.length&&(this._reportValueChange(),r&&this._emitChangeEvent(o)),o}_isValidIndex(e){return e>=0&&ee._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(_o))},n.\u0275cmp=ze({type:n,selectors:[["mat-selection-list"]],contentQueries:function(e,i,r){if(1&e&&Vt(r,Os,5),2&e){let o;me(o=ge())&&(i.options=o)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&X("keydown",function(o){return i._keydown(o)}),2&e&&ot("aria-multiselectable",i.multiple)("aria-disabled",i.disabled.toString())("tabindex",i._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[rt([X7]),De,kn],ngContentSelectors:j7,decls:1,vars:0,template:function(e,i){1&e&&(Vn(),Ht(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),J7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[lI,ia,Pt,mb,Xi,lI,Pt,mb,V7]}),n})();const eG=["chOffice"],tG=["dbs"];function nG(n,t){1&n&&(g(0,"p"),j(1),Xe(2,"translate"),v()),2&n&&(m(1),we(Ze(2,1,"LC53515")))}function iG(n,t){if(1&n){const e=je();g(0,"mat-list-option",7),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),v()}if(2&n){const e=t.$implicit,i=x(2);Ot("value",e.db),y("selected",1===i.officeDBs.length?e.db:null),m(1),Qe(" ",e.alias," ")}}const rG=function(n){return{title:n}},oG=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function sG(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),V(5,nG,3,3,"p",5),V(6,iG,2,3,"mat-list-option",6),v()(),Wt(7,1),Xe(8,"translate"),Xe(9,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(13,rG,Ze(1,7,"LC53516"))),m(3),y("multiple",!1),m(2),y("ngIf",e.officeDBs.length<1),m(1),y("ngForOf",e.officeDBs),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(15,oG,Ze(8,9,"LC73135"),Ze(9,11,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let aG=(()=>{class n extends Hr{constructor(e,i,r,o,s,a){super(e),this.translate=e,this.connection=i,this.addressService=r,this.messageService=o,this.webintLink=s,this.globals=a,this.officeDBs=[]}ngOnInit(){super.ngOnInit(),this.fetchContactsDBs()}confirmAction(e,i){try{let r=null;if(r=null!=i?i:this.selection.selectedOptions.selected[0].value,this.globals.currentContactsDB=r,this.data.passedData.ignoreNext){if(this.data.passedData.paramsData){const o=this.data.passedData.paramsData;o.paramsToAdd&&"crmDB"===o.paramsToAdd[0]&&(o.params=o.params.set("crmDB",r)),this.webintLink.openWebIntWithParams(o.params)}}else this.data.passedData.officeDB=r,this.openAnotherModal(this.next,this.data.passedData)}catch{this.translate.get("LC53493").subscribe(o=>{this.messageService.showError(o)})}}fetchContactsDBs(){this.connection.getReqModal("dbConnections",null).subscribe(e=>{this.showOfficeList(e)})}showOfficeList(e){var i=this;return Ee(function*(){try{let r="";r=i.data.passedData.currentContactPointer?i.data.passedData.currentContactPointer:i.addressService.currentPointer,i.clearOfficeDBs(),i.extractOfficeDBsOfContact(r,e),1===i.officeDBs.length&&i.confirmAction(i.selection,i.officeDBs[0].db)}catch{i.translate.get("LC39396").subscribe(o=>{i.messageService.showError(o)})}})()}extractOfficeDBsOfContact(e,i){this.data.passedData.currentContactPointer&&(e=this.data.passedData.currentContactPointer);const o=i[this.extractDBFromPointer(e)].officeDBs;for(const s of o)this.officeDBs.push({db:s,alias:i.GeOfficeAliases[s]});this.officeDBs.length<1&&this.translate.get("LC39396").subscribe(s=>{this.messageService.showError(s),this.cancelAction()})}clearOfficeDBs(){this.officeDBs.length=0}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(Rs),p(en),p(Wo),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-choose-office"]],viewQuery:function(e,i){if(1&e&&(Oe(eG,7),Oe(tG,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["chOffice",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["dbs",""],[4,"ngIf"],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&V(0,sG,10,20,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,$o,Os,Pi]}),n})(),Ld=(()=>{class n{constructor(e){this.sanitizer=e}sanitizeInput(e,i){return this.sanitizer.sanitize(i,e)}}return n.\u0275fac=function(e){return new(e||n)(T(Ba))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sC=(()=>{class n extends Hr{constructor(e,i,r,o,s,a){super(e),this.translate=e,this.globals=i,this.connection=r,this.messageService=o,this.inputService=s,this.addressService=a,this.messageEvent=new Be,this.selection=new nl(!1),this.centered=!1,this.disabled=!1,this.unbounded=!1,this.databases=[],this.searchValue="",this.viewIconBaseURL=i.webInt,this.searchClearImage={background:"no-repeat url(assets/images/widget_settings.png)"},this.displayedColumns=["icon","display"],this.prefix="",this.path=""}ngOnInit(){super.ngOnInit(),this.fetchDBs(),this.tableWrapperClassName="Owa"===this.globals.curConnectorType?"tableWrapper":"tableWrapperVerse"}getTemplate(){return this.modalTemp}get rippleColor(){return this.globals.rippleColor}fetchSearch(e,i){let r=this.searchValue;""===r&&(r="*"),this.selection.clear();const o={};o.searchKey=r,i?o.pointer=i:o.database=e,this.data.type&&(o.type=this.data.type),this.data.parentPointer&&(o.parentPointer=this.data.parentPointer),this.connection.getReqNoCache(this.path,this.connection.objectToHttpParams(o)).subscribe({next:s=>{this.handleResult(s)},error:s=>{},complete:()=>{}})}toggleSelection(e){this.selection.toggle(e)}search(e){let i=this.inputService.sanitizeInput(this.searchValue,4);null!==i?(""===i?i="*":this.searchValue=i,this.fetchSearch(this.selectedDB,e)):this.translate.get("LC53513").subscribe(r=>{this.messageService.showError(r)})}acceptEntryDblClick(e){this.selection.clear(),this.selection.select(e),this.confirmAction()}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(pt),p(Nn),p(en),p(Ld),p(Rs))},n.\u0275dir=he({type:n,inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De]}),n})();const lG=["connectionContainer"],cG=["inputContainer"],uG=["label"];function dG(n,t){1&n&&(bi(0),g(1,"div",14),xe(2,"div",15)(3,"div",16)(4,"div",17),v(),g(5,"div",18),xe(6,"div",15)(7,"div",16)(8,"div",17),v(),Ci())}function hG(n,t){if(1&n){const e=je();g(0,"div",19),X("cdkObserveContent",function(){return oe(e),se(x().updateOutlineGap())}),Ht(1,1),v()}2&n&&y("cdkObserveContentDisabled","outline"!=x().appearance)}function pG(n,t){if(1&n&&(bi(0),Ht(1,2),g(2,"span"),j(3),v(),Ci()),2&n){const e=x(2);m(3),we(e._control.placeholder)}}function fG(n,t){1&n&&Ht(0,3,["*ngSwitchCase","true"])}function mG(n,t){1&n&&(g(0,"span",23),j(1," *"),v())}function gG(n,t){if(1&n){const e=je();g(0,"label",20,21),X("cdkObserveContent",function(){return oe(e),se(x().updateOutlineGap())}),V(2,pG,4,1,"ng-container",12),V(3,fG,1,0,"ng-content",12),V(4,mG,2,0,"span",22),v()}if(2&n){const e=x();wt("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),y("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),ot("for",e._control.id)("aria-owns",e._control.id),m(2),y("ngSwitchCase",!1),m(1),y("ngSwitchCase",!0),m(1),y("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function _G(n,t){1&n&&(g(0,"div",24),Ht(1,4),v())}function vG(n,t){if(1&n&&(g(0,"div",25),xe(1,"span",26),v()),2&n){const e=x();m(1),wt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function yG(n,t){1&n&&(g(0,"div"),Ht(1,5),v()),2&n&&y("@transitionMessages",x()._subscriptAnimationState)}function bG(n,t){if(1&n&&(g(0,"div",30),j(1),v()),2&n){const e=x(2);y("id",e._hintLabelId),m(1),we(e.hintLabel)}}function CG(n,t){if(1&n&&(g(0,"div",27),V(1,bG,2,2,"div",28),Ht(2,6),xe(3,"div",29),Ht(4,7),v()),2&n){const e=x();y("@transitionMessages",e._subscriptAnimationState),m(1),y("ngIf",e.hintLabel)}}const wG=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],EG=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],DG=new pe("MatError"),SG={transitionMessages:jr("transitionMessages",[qn("enter",Lt({opacity:1,transform:"translateY(0%)"})),ui("void => enter",[Lt({opacity:0,transform:"translateY(-5px)"}),mi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Nd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n}),n})();const AG=new pe("MatHint");let Gr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-label"]]}),n})(),TG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-placeholder"]]}),n})();const xG=new pe("MatPrefix"),l1=new pe("MatSuffix");let aC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["","matSuffix",""]],features:[rt([{provide:l1,useExisting:n}])]}),n})(),c1=0;const MG=Wa(class{constructor(n){this._elementRef=n}},"primary"),kG=new pe("MAT_FORM_FIELD_DEFAULT_OPTIONS"),sm=new pe("MatFormField");let Ko=(()=>{class n extends MG{constructor(e,i,r,o,s,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=o,this._platform=s,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new L,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+c1++,this._labelId="mat-form-field-label-"+c1++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=o?.appearance||"legacy",o&&(this._hideRequiredMarker=Boolean(o.hideRequiredMarker),o.color&&(this.color=this.defaultColor=o.color))}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ct(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(ii(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Qt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Qt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Mn(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ii(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ii(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Qt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,bs(this._label.nativeElement,"transitionend").pipe(dn(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",o=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=i.querySelectorAll(`${r}, ${o}`);for(let d=0;d0?.75*_+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Xi,Pt,td,Pt]}),n})();const RG=["trigger"],OG=["panel"];function PG(n,t){if(1&n&&(g(0,"span",8),j(1),v()),2&n){const e=x();m(1),we(e.placeholder)}}function LG(n,t){if(1&n&&(g(0,"span",12),j(1),v()),2&n){const e=x(2);m(1),we(e.triggerValue)}}function NG(n,t){1&n&&Ht(0,0,["*ngSwitchCase","true"])}function FG(n,t){1&n&&(g(0,"span",9),V(1,LG,2,1,"span",10),V(2,NG,1,0,"ng-content",11),v()),2&n&&(y("ngSwitch",!!x().customTrigger),m(2),y("ngSwitchCase",!0))}function BG(n,t){if(1&n){const e=je();g(0,"div",13)(1,"div",14,15),X("@transformPanel.done",function(r){return oe(e),se(x()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return oe(e),se(x()._handleKeydown(r))}),Ht(3,1),v()()}if(2&n){const e=x();y("@transformPanelWrap",void 0),m(1),function sS(n,t,e){co(wr,Ro,zl(Ae(),n,t,e),!0)}("mat-select-panel ",e._getPanelTheme(),""),Oi("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),y("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),ot("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const HG=[[["mat-select-trigger"]],"*"],VG=["mat-select-trigger","*"],d1={transformPanelWrap:jr("transformPanelWrap",[ui("* => void",vb("@transformPanel",[_b()],{optional:!0}))]),transformPanel:jr("transformPanel",[qn("void",Lt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),qn("showing",Lt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),qn("showing-multiple",Lt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ui("void => *",mi("120ms cubic-bezier(0, 0, 0.2, 1)")),ui("* => void",mi("100ms 25ms linear",Lt({opacity:0})))])};let h1=0;const f1=new pe("mat-select-scroll-strategy"),zG=new pe("MAT_SELECT_CONFIG"),GG={provide:f1,deps:[ar],useFactory:function qG(n){return()=>n.scrollStrategies.reposition()}};class WG{constructor(t,e){this.source=t,this.value=e}}const $G=Vo(od(Ds(pb(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r,this.stateChanges=new L}})))),m1=new pe("MatSelectTrigger");let KG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-select-trigger"]],features:[rt([{provide:m1,useExisting:n}])]}),n})(),YG=(()=>{class n extends $G{constructor(e,i,r,o,s,a,l,c,u,d,h,f,_,S){super(s,o,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=_,this._defaultOptions=S,this._panelOpen=!1,this._compareWith=(U,Z)=>U===Z,this._uid="mat-select-"+h1++,this._triggerAriaLabelledBy=null,this._destroy=new L,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+h1++,this._panelDoneAnimatingStream=new L,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=ea(()=>{const U=this.options;return U?U.changes.pipe(ii(U),Kn(()=>Mn(...U.map(Z=>Z.onSelectionChange)))):this._ngZone.onStable.pipe(dn(1),Kn(()=>this.optionSelectionChanges))}),this.openedChange=new Be,this._openedStream=this.openedChange.pipe(Sn(U=>U),ue(()=>{})),this._closedStream=this.openedChange.pipe(Sn(U=>!U),ue(()=>{})),this.selectionChange=new Be,this.valueChange=new Be,this.ngControl&&(this.ngControl.valueAccessor=this),null!=S?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=S.typeaheadDebounceInterval),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(dy.required)??!1}set required(e){this._required=ct(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=ct(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=ct(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=ys(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new nl(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(af(),Qt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Qt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(ii(null),Qt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&o&&!Di(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!i.activeItem||Di(e))if(!s&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(dn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new R2(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Qt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Qt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Mn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Qt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Mn(...this.options.map(i=>i._stateChanges)).pipe(Qt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(p(Ho),p(Bt),p(nt),p(sd),p(Je),p(er,8),p(lc,8),p(cc,8),p(sm,8),p(mo,10),io("tabindex"),p(f1),p(ib),p(zG,8))},n.\u0275dir=he({type:n,viewQuery:function(e,i){if(1&e&&(Oe(RG,5),Oe(OG,5),Oe(nI,5)),2&e){let r;me(r=ge())&&(i.trigger=r.first),me(r=ge())&&(i.panel=r.first),me(r=ge())&&(i._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[De,kn]}),n})(),ua=(()=>{class n extends YG{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,r){const o=this._getItemHeight();return Math.min(Math.max(0,o*e-i+o/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Qt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(dn(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=gb(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:gI((e+i)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new WG(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),o=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let c=this._selectionModel.selected[0]||this.options.first;s=c&&c.group?32:16}r||(s*=-1);const a=0-(e.left+s-(r?o:0)),l=e.right+s-i.width+(r?0:o);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const o=this._getItemHeight(),s=(o-this._triggerRect.height)/2,a=Math.floor(256/o);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*o:this._scrollTop===r?(e-(this._getItemCount()-a))*o+(o-(this._getItemCount()*o-256)%o):i-o/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,s=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>s?this._adjustPanelUp(c,s):a>o?this._adjustPanelDown(a,o,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const o=Math.round(e-i);if(this._scrollTop+=o,this._offsetY+=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),s=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=gb(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,s),this._offsetY=this._calculateOverlayOffsetY(a,l,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275cmp=ze({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,m1,5),Vt(r,vo,5),Vt(r,wf,5)),2&e){let o;me(o=ge())&&(i.customTrigger=o.first),me(o=ge())&&(i.options=o),me(o=ge())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,i){1&e&&X("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(ot("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),wt("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[rt([{provide:Nd,useExisting:n},{provide:Cf,useExisting:n}]),De],ngContentSelectors:VG,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(Vn(HG),g(0,"div",0,1),X("click",function(){return i.toggle()}),g(3,"div",2),V(4,PG,2,1,"span",3),V(5,FG,3,2,"span",4),v(),g(6,"div",5),xe(7,"div",6),v()(),V(8,BG,4,14,"ng-template",7),X("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=sn(1);ot("aria-owns",i.panelOpen?i.id+"-panel":null),m(3),y("ngSwitch",i.empty),ot("id",i._valueId),m(1),y("ngSwitchCase",!0),m(1),y("ngSwitchCase",!1),m(3),y("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[Fa,sc,Mp,DT,nI,tI],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[d1.transformPanelWrap,d1.transformPanel]},changeDetection:0}),n})(),QG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[GG],imports:[Xi,yc,Ef,Pt,_c,am,Ef,Pt]}),n})();const g1=_s({passive:!0});let XG=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return gs;const i=Qn(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new L,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,g1),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,g1)}}),o}stopMonitoring(e){const i=Qn(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(T(Pn),T(nt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})();const ZG=new pe("MAT_INPUT_VALUE_ACCESSOR"),JG=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let eW=0;const tW=pb(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new L}});let Yo=(()=>{class n extends tW{constructor(e,i,r,o,s,a,l,c,u,d){super(a,o,s,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+eW++,this.focused=!1,this.stateChanges=new L,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(_=>E2().has(_)),this._iOSKeyupListener=_=>{const S=_.target;!S.value&&0===S.selectionStart&&0===S.selectionEnd&&(S.setSelectionRange(1,1),S.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ct(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(dy.required)??!1}set required(e){this._required=ct(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&E2().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ct(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,i=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(i!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=i,i?r.setAttribute("placeholder",i):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){JG.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Pn),p(mo,10),p(lc,8),p(cc,8),p(sd),p(ZG,10),p(XG),p(nt),p(sm,8))},n.\u0275dir=he({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&X("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Po("disabled",i.disabled)("required",i.required),ot("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),wt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[rt([{provide:Nd,useExisting:n}]),De,kn]}),n})(),nW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[sd],imports:[_1,am,Pt,_1,am]}),n})();const iW=[[["caption"]],[["colgroup"],["col"]]],rW=["caption","colgroup, col"];function lC(n){return class extends n{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=ct(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Rc=new pe("CDK_TABLE");let Oc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=he({type:n,selectors:[["","cdkCellDef",""]]}),n})(),Pc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=he({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),cm=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=he({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class lW{}const cW=lC(lW);let Ps=(()=>{class n extends cW{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=ct(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(p(Rc,8))},n.\u0275dir=he({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,Oc,5),Vt(r,Pc,5),Vt(r,cm,5)),2&e){let o;me(o=ge())&&(i.cell=o.first),me(o=ge())&&(i.headerCell=o.first),me(o=ge())&&(i.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[rt([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),De]}),n})();let dC=(()=>{class n extends class cC{constructor(t,e){e.nativeElement.classList.add(...t._columnCssClassName)}}{constructor(e,i){if(super(e,i),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(p(Ps),p(Je))},n.\u0275dir=he({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[De]}),n})();class y1{constructor(){this.tasks=[],this.endTasks=[]}}const hC=new pe("_COALESCED_STYLE_SCHEDULER");let b1=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new L}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new y1,this._getScheduleObservable().pipe(Qt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new y1;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Et(Promise.resolve(void 0)):this._ngZone.onStable.pipe(dn(1))}}return n.\u0275fac=function(e){return new(e||n)(T(nt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),pC=(()=>{class n{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Bd?e.headerCell.template:this instanceof Hd?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(us))},n.\u0275dir=he({type:n,features:[kn]}),n})();class uW extends pC{}const dW=lC(uW);let Bd=(()=>{class n extends dW{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(us),p(Rc,8))},n.\u0275dir=he({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[De,kn]}),n})();class hW extends pC{}const pW=lC(hW);let Hd=(()=>{class n extends pW{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(us),p(Rc,8))},n.\u0275dir=he({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[De,kn]}),n})(),um=(()=>{class n extends pC{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(us),p(Rc,8))},n.\u0275dir=he({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[De]}),n})(),Ls=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(p(En))},n.\u0275dir=he({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),gC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ze({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Wt(0,0)},dependencies:[Ls],encapsulation:2}),n})(),dm=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=he({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const C1=["top","bottom","left","right"];class fW{constructor(t,e,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0){if(!t.length||!this._isBrowser||!e.some(h=>h)&&!i.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=t[0],s=o.children.length,a=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(a,e),c=this._getStickyEndColumnPositions(a,i),u=e.lastIndexOf(!0),d=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,f=h?"right":"left",_=h?"left":"right";for(const S of t)for(let U=0;Ue[U]?S:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===d?[]:a.slice(d).map((S,U)=>i[U+d]?S:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const r="bottom"===i?t.slice().reverse():t,o="bottom"===i?e.slice().reverse():e,s=[],a=[],l=[];for(let u=0,d=0;u{for(let u=0;u{e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const r of e)t.style[r]="",t.classList.remove(this._borderCellCss[r]);C1.some(r=>-1===e.indexOf(r)&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of C1)t.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=t.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=t[o]);return i}}const _C=new pe("CDK_SPL");let hm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Je))},n.\u0275dir=he({type:n,selectors:[["","rowOutlet",""]]}),n})(),pm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Je))},n.\u0275dir=he({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),fm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Je))},n.\u0275dir=he({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),mm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Je))},n.\u0275dir=he({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),gm=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=s,this._platform=l,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=d,this._stickyPositioningListener=h,this._ngZone=f,this._onDestroy=new L,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new Be,this.viewChange=new sr({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=ct(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=ct(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Qt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),oC(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,s)=>this._getEmbeddedViewArgs(r.item,s),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&nt.isInAngularZone()?this._ngZone.onStable.pipe(dn(1),Qt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const o=this._footerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,s)=>{this._addStickyColumnStyles([o],this._headerRowDefs[s])}),this._rowDefs.forEach(o=>{const s=[];for(let a=0;a{this._addStickyColumnStyles([o],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(s)?r.get(s):[];if(a.length){const l=a.shift();return l.dataIndex=i,l}return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),_m(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=_m(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=_m(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=_m(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(s,a)=>s||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],oC(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;oC(this.dataSource)?e=this.dataSource.connect(this):ms(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ve(this.dataSource)),this._renderChangeSubscription=e.pipe(Qt(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),o=r.map(a=>a.sticky),s=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,o={}){const s=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),s}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Ls.mostRecentCellOutlet&&Ls.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of i){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const s of r.outlets)o.appendChild(s.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new fW(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Ve()).pipe(Qt(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(i){const o=r.createEmbeddedView(e.templateRef),s=o.rootNodes[0];1===o.rootNodes.length&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i}}return n.\u0275fac=function(e){return new(e||n)(p(us),p(Bt),p(Je),io("role"),p(er,8),p(ht),p(Pn),p(Pd),p(hC),p(Ho),p(_C,12),p(nt,8))},n.\u0275cmp=ze({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,dm,5),Vt(r,Ps,5),Vt(r,um,5),Vt(r,Bd,5),Vt(r,Hd,5)),2&e){let o;me(o=ge())&&(i._noDataRow=o.first),me(o=ge())&&(i._contentColumnDefs=o),me(o=ge())&&(i._contentRowDefs=o),me(o=ge())&&(i._contentHeaderRowDefs=o),me(o=ge())&&(i._contentFooterRowDefs=o)}},viewQuery:function(e,i){if(1&e&&(Oe(hm,7),Oe(pm,7),Oe(fm,7),Oe(mm,7)),2&e){let r;me(r=ge())&&(i._rowOutlet=r.first),me(r=ge())&&(i._headerRowOutlet=r.first),me(r=ge())&&(i._footerRowOutlet=r.first),me(r=ge())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&wt("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[rt([{provide:Rc,useExisting:n},{provide:Pd,useClass:o1},{provide:hC,useClass:b1},{provide:_C,useValue:null}])],ngContentSelectors:rW,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Vn(iW),Ht(0),Ht(1,1),Wt(2,0)(3,1)(4,2)(5,3))},dependencies:[hm,pm,fm,mm],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function _m(n,t){return n.concat(Array.from(t))}let gW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[lb]}),n})();const _W=[[["caption"]],[["colgroup"],["col"]]],vW=["caption","colgroup, col"];let vm=(()=>{class n extends gm{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275cmp=ze({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&wt("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[rt([{provide:Pd,useClass:o1},{provide:gm,useExisting:n},{provide:Rc,useExisting:n},{provide:hC,useClass:b1},{provide:_C,useValue:null}]),De],ngContentSelectors:vW,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Vn(_W),Ht(0),Ht(1,1),Wt(2,0)(3,1)(4,2)(5,3))},dependencies:[hm,pm,fm,mm],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),Vd=(()=>{class n extends Oc{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,selectors:[["","matCellDef",""]],features:[rt([{provide:Oc,useExisting:n}]),De]}),n})(),jd=(()=>{class n extends Ps{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[rt([{provide:Ps,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),De]}),n})(),Ud=(()=>{class n extends dC{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[De]}),n})(),ym=(()=>{class n extends um{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[rt([{provide:um,useExisting:n}]),De]}),n})(),bm=(()=>{class n extends gC{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275cmp=ze({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[rt([{provide:gC,useExisting:n}]),De],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Wt(0,0)},dependencies:[Ls],encapsulation:2}),n})(),MW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[gW,Pt,Pt]}),n})();const RW=["searchContact"];function OW(n,t){if(1&n){const e=je();g(0,"button",13),X("click",function(){return oe(e),se(x(2).searchValue="")}),xe(1,"div",14),v()}if(2&n){const e=x(2);m(1),y("ngStyle",e.searchClearImage)}}function PW(n,t){if(1&n&&(g(0,"mat-option",15),j(1),v()),2&n){const e=t.$implicit;y("value",e.value),m(1),we(e.viewValue)}}const LW=function(n){return{background:n}};function NW(n,t){if(1&n&&xe(0,"mat-cell",22),2&n){const e=t.$implicit,i=x(3);y("ngStyle",Wn(1,LW,"no-repeat url("+i.viewIconBaseURL+e.value.iconURL+")"))}}function FW(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.value.company," ")}}function BW(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.value.postal," ")}}function HW(n,t){if(1&n&&(g(0,"mat-cell",23)(1,"mat-dialog-content")(2,"span",24),j(3),v(),V(4,FW,2,1,"div",25),V(5,BW,2,1,"div",25),v()()),2&n){const e=t.$implicit;m(3),Qe(" ",e.display," "),m(1),y("ngIf",""!==e.value.company&&e.value.company!==e.display),m(1),y("ngIf",""!==e.value.postal)}}function VW(n,t){if(1&n){const e=je();g(0,"mat-row",26),X("click",function(){const o=oe(e).$implicit;return se(x(3).toggleSelection(o))})("dblclick",function(){const o=oe(e).$implicit;return se(x(3).acceptEntryDblClick(o))}),v()}if(2&n){const e=t.$implicit,i=x(3);wt("isSelected",i.selection.isSelected(e)),y("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function jW(n,t){if(1&n&&(g(0,"div")(1,"mat-table",16),bi(2,17),V(3,NW,1,3,"mat-cell",18),Ci(),bi(4,19),V(5,HW,6,3,"mat-cell",20),Ci(),V(6,VW,1,6,"mat-row",21),v()()),2&n){const e=x(2);wi(e.tableWrapperClassName),m(1),y("dataSource",e.searchResults),m(5),y("matRowDefColumns",e.displayedColumns)}}function UW(n,t){1&n&&(g(0,"div"),j(1),Xe(2,"translate"),v()),2&n&&(m(1),we(Ze(2,1,"LC53482")))}const qW=function(n){return{title:n}},zW=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function GW(n,t){if(1&n){const e=je();Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),j(6),Xe(7,"translate"),v(),g(8,"input",5),X("ngModelChange",function(r){return oe(e),se(x().searchValue=r)})("keyup.enter",function(){return oe(e),se(x().search())}),v(),V(9,OW,2,1,"button",6),v(),g(10,"input",7),X("click",function(){return oe(e),se(x().search())}),Xe(11,"translate"),v()(),g(12,"mat-form-field",8)(13,"mat-label"),j(14),Xe(15,"translate"),v(),g(16,"mat-select",9),X("valueChange",function(r){return oe(e),se(x().selectedDB=r)})("selectionChange",function(){oe(e);const r=x();return se(r.fetchSearch(r.selectedDB))}),V(17,PW,2,2,"mat-option",10),v()(),V(18,jW,7,5,"div",11),V(19,UW,3,3,"ng-template",null,12,Tn),v(),Wt(21,1),Xe(22,"translate"),Xe(23,"translate")}if(2&n){const e=sn(20),i=x();y("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",Wn(25,qW,Ze(1,13,"LC53493"))),m(6),we(Ze(7,15,"LC53489")),m(2),y("ngModel",i.searchValue),m(1),y("ngIf",i.searchValue),m(1),Ot("value",Ze(11,17,"LC36251")),m(4),we(Ze(15,19,"LC53516")),m(2),y("value",i.selectedDB),m(1),y("ngForOf",i.databases),m(1),y("ngIf",i.searchResults.length>=1)("ngIfElse",e),m(3),y("ngTemplateOutlet",i.modalFooter)("ngTemplateOutletContext",Ki(27,zW,Ze(22,21,"LC73135"),Ze(23,23,"LC73136"),i.confirmAction.bind(i),i.cancelAction.bind(i)))}}let S1=(()=>{class n extends sC{constructor(e,i,r,o,s,a){super(e,r,i,o,s,a),this.messageEvent=new Be,this.prefix="Contacts: ",this.path="search",this.searchResults=[]}ngOnInit(){super.ngOnInit()}getTemplate(){return this.modalTemp}filterForContacts(e){const i={};for(const r in e)"GeOfficeAliases"!==r&&"Contact"===e[r].type&&(i[r]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:this.prefix+e[i]});this.databases.length>0&&(this.selectedDB=this.databases[0].value,this.fetchSearch(this.selectedDB))}fetchDBs(){this.connection.getReqModal("dbConnections",null).subscribe(e=>{this.filterForContacts(e)})}handleResult(e){this.searchResults=null!=e.result&&Array.isArray(e.result)&&e.result.length>0?e.result:[]}confirmAction(){this.selection.isEmpty()?this.translate.get("LC53493").subscribe(e=>{this.messageService.showError(e)}):this.openAnotherModal(this.next,{currentContactPointer:this.selection.selected[0].value.fdMe,createType:this.data.createType,contactsDB:this.selectedDB})}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(pt),p(en),p(Ld),p(Rs))},n.\u0275cmp=ze({type:n,selectors:[["app-search-contact"]],viewQuery:function(e,i){if(1&e&&Oe(RW,7),2&e){let r;me(r=ge())&&(i.modalTemp=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De],decls:2,vars:0,consts:[["searchContact",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"searchInputWrapper"],[1,"searchInput"],["matInput","","type","text",3,"ngModel","ngModelChange","keyup.enter"],["matSuffix","","aria-label","Clear",3,"click",4,"ngIf"],["id","searchButton","type","button",1,"buttonSilverMiddle",3,"value","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["noResult",""],["matSuffix","","aria-label","Clear",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[3,"value"],[1,"searchTable",3,"dataSource"],["matColumnDef","icon"],["class","searchIcon",3,"ngStyle",4,"matCellDef"],["matColumnDef","display"],["class","searchDisplay",4,"matCellDef"],["matRipple","","class","searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"searchIcon",3,"ngStyle"],[1,"searchDisplay"],[1,"bold"],[4,"ngIf"],["matRipple","",1,"searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","click","dblclick"]],template:function(e,i){1&e&&V(0,GW,24,32,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,Qs,fo,Fo,ps,Sf,Ko,Gr,aC,ua,vo,Yo,vm,jd,Vd,ym,Ud,bm,Ar,Pi],styles:[".searchInputWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.searchInput[_ngcontent-%COMP%]{width:calc(100% - 70px);display:block;padding-bottom:0!important}.searchIcon[_ngcontent-%COMP%]{width:30px;padding:0 10px 0 0!important;background-position:40% 50%!important}.searchRow[_ngcontent-%COMP%] .searchIcon[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%] .searchDisplay[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%]{border-bottom:0px}.searchRow[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.isSelected[_ngcontent-%COMP%]{background:rgb(224,239,255)!important}.searchRow[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;padding-right:5px}.searchRow[_ngcontent-%COMP%]:hover{background:rgba(224,239,255,.4)}.searchDisplay[_ngcontent-%COMP%], .searchTable[_ngcontent-%COMP%]{width:100%}.tableWrapper[_ngcontent-%COMP%], .tableWrapperVerse[_ngcontent-%COMP%], .tableWrapperVerseTabs[_ngcontent-%COMP%]{overflow:auto}.tableWrapper[_ngcontent-%COMP%]{max-height:50vh}.tableWrapperVerse[_ngcontent-%COMP%]{max-height:45vh}.tableWrapperVerseTabs[_ngcontent-%COMP%]{max-height:calc(45vh - 48px)}.overlay-list[_ngcontent-%COMP%], .overlay-selected[_ngcontent-%COMP%]{position:absolute;bottom:0;left:100%;right:0;overflow:hidden;width:0;height:100%;transition:.5s ease;box-shadow:none}.overlay-list[_ngcontent-%COMP%]{background-color:#a1f79b}.overlay-selected[_ngcontent-%COMP%]{background-color:#ff6a6a}.projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-list[_ngcontent-%COMP%], .projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-selected[_ngcontent-%COMP%]{width:30px;left:calc(100% - 30px);box-shadow:0 0 10px #999}.projectButton[_ngcontent-%COMP%]{margin:0;position:absolute;top:50%;left:calc(50% - 9px);transform:translateY(-50%)}#searchButton[_ngcontent-%COMP%]{height:100%;padding:4px;margin:0 0 5px;float:right;font-weight:700;display:flex}"]}),n})();const Cm=["","FirstName","MiddleName","LastName","FirstName#LastName","FirstName#MiddleName#LastName","LastName#FirstName","fdSalutatoryAddress","fdContactTitle","Company","Address1","Address2","ZipCode","City","ZipCode#City","CountryToo","MainPhone","Fax","CellPhone","EMailAddress","HomePage","Title","Department","State"],WW=["EMailAddress","FirstName#LastName","Company","HomePage","Address1","ZipCode#City","State","CountryToo","MainPhone","Fax","CellPhone","Title","fdContactTitle","Department","","","","","","","","",""];let Lc=(()=>{class n{constructor(e,i,r){this.init=e,this.messageService=i,this.globals=r,this.isInit=!1,this.initServiceInit=!1,this.init.waitForInit().subscribe(o=>{this.initServiceInit=o,this.deactivateLoader()}),this.forceOpen=!1,this.loaderTimeout=null,this.isActive=!1}deactivateLoaderAfterTimeout(){this.isActive&&(this.loaderTimeout=setTimeout(()=>{this.forceDeactivateLoader()},5e3))}activateLoader(e,i){this.globals.loginOpen||(this.clearTimeout(),this.deactivateLoaderAfterTimeout()),i&&(this.isActive=!0,this.forceOpen=i),this.isInit&&(this.isActive=!0,this.loaderCompSubscriber.next({activate:!0,modal:e}))}clearTimeout(){this.messageService.clearConnectionTimeout(),this.loaderTimeout&&(clearTimeout(this.loaderTimeout),this.loaderTimeout=null)}deactivateLoader(){this.isInit&&this.initServiceInit&&!this.forceOpen&&(this.isActive=!1,this.globals.loginOpen||this.clearTimeout(),this.messageService.clearConnectionTimeout(),this.loaderCompSubscriber.next({activate:!1}))}forceDeactivateLoader(){this.isActive=!1,this.globals.loginOpen||this.clearTimeout(),this.forceOpen=!1,this.loaderCompSubscriber.next({activate:!1})}connectToService(){return new b(e=>{this.loaderCompSubscriber=e,this.isInit=!0})}}return n.\u0275fac=function(e){return new(e||n)(T(rC),T(en),T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vC=(()=>{class n{constructor(e,i,r,o,s){this.translate=e,this.connection=i,this.globals=r,this.messageService=o,this.loaderService=s}invokeSoap(e,i,r){return new b(o=>{if(null!==i&&"object"==typeof i)try{let s='";for(const a in i)r?(s+="<"+a+' soapenc:arrayType="xsd:string[1]">",r=!1):s+="<"+a+">";s+="",this.connection.postSoap(this.globals.webInt+"/businessMailContacts",s).subscribe(a=>{a.then(l=>{200===l.status?l.text().then(c=>{const u=(new window.DOMParser).parseFromString(c,"text/xml"),d=u.getElementsByTagName(e+"Return")[0],h=[];let f;if(u.childNodes.length>0)for(let _=0;_{this.messageService.showError(a),this.loaderService.deactivateLoader(),o.error(Error(a))})}else this.translate.get("LC53487").subscribe(s=>{throw this.messageService.showError(s),Error(s)})})}arrayToObj(e,i){const r={};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=e[o].split(i);s.length>=2?r[s[0]]=s[1]:1===s.length&&(r[s[0]]="")}return r}}return n.\u0275fac=function(e){return new(e||n)(T(Xt),T(Nn),T(pt),T(en),T(Lc))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wr=navigator.language;let $W=(()=>{class n{constructor(e,i,r,o){this.translate=e,this.messageService=i,this.soapService=r,this.webintLink=o}create(e,i,r,o,s,a,l,c){switch(this.closeAll=l,a){case"company":this.handleCreateCompany(e,i,r,o,s);break;case"toCompany":this.handleCreateAddressToCompany(e,i,r,o,s,c);break;case"person":this.handleCreatePrivatePerson(e,i,r,o,s);break;default:this.translate.get("LC53496").subscribe(u=>{this.messageService.showError(u)})}}replaceWithCompanyData(e,i,r,o,s,a){var l=this;return Ee(function*(){const c=yield l.createResultObject(e,i,r,o);l.searchResultData=yield l.soapService.invokeSoap("GetAddressByID",{fdme:s});let u=l.searchResultData;if(u=Object.keys(u),u.length>0){const d=u[0].split("~*~");null!=d&&(c.Company=d[29],c.Address1=d[10],c.Address2=d[30],c.ZipCode=d[12],c.City=d[11],c.State=d[14],c.CountryToo=d[13],c.MainPhone=d[15],c.Fax=d[17])}return a.Company=c.Company,a.Address1=c.Address1,a.Address2=c.Address2,a["ZipCode#City"]=c.ZipCode+" "+c.City,a.State=c.State,a.CountryToo=c.CountryToo,a.MainPhone=c.MainPhone,a.Fax=c.Fax,a})()}createResultObject(e,i,r,o){var s=this;return Ee(function*(){const a={},l=e.split("\n");let c=null,u=null,d=null,h=null;l.length=o;let f="";s.translate.get("LC53497").subscribe(_=>{f=_});for(const _ in i)if(c=i[_],null!=l[_]&&null!=c&&Number(_)0){u=c.split("#"),d=l[_].split(" ");for(const S in u)if(Number(S)0&&l[_].trim().length>0&&(h=l[_].trim(),i[_].length>0)){if(null!=a[i[_]]&&0!==a[i[_]].localeCompare(h))return f=f.replace("{DUPLICATE}",r.get(i[_])),void s.messageService.showError(f);a[i[_]]=h}return a})()}handleCreateCompany(e,i,r,o,s){var a=this;return Ee(function*(){const l=yield a.createResultObject(e,i,r,s);if(null==l.Company||""===l.Company)return void a.translate.get("LC73202").subscribe(f=>{f=f.replace("{FIELDNAME}",r.get("Company")),a.messageService.showError(f)});let c="";for(const f in l)c+="~*~"+f+"~#~"+l[f];c="~*~"+l.Company+c,c+="~*~fdCorreType~#~GeMain",c+="~*~fdIsNewDoc~#~0",c+="~*~AddressSynch~#~0";const u={};let d;u.addressData=c,u.contactsPath="$"+o,u.targetCompanyId="",u.languageCode=Array.isArray(Wr)&&Wr.length>0?Wr[0]:Wr;try{d=yield a.soapService.invokeSoap("CreateAddresses",u,!0)}catch(f){return void a.messageService.showError(f.message)}const h=Object.keys(d);1===h.length?(window.open(a.webintLink.convertToLink(h[0]),"_blank"),a.closeAll()):a.translate.get("LC53496").subscribe(f=>{a.messageService.showError(f)})})()}handleCreateAddressToCompany(e,i,r,o,s,a){var l=this;return Ee(function*(){if(!a)return void l.translate.get("LC53496").subscribe(S=>{l.messageService.showError(S)});const c=yield l.createResultObject(e,i,r,s);let u=l.searchResultData;if(u=Object.keys(u),u.length>0){const S=u[0].split("~*~");null!=S&&(c.Company=S[29],c.Address1=S[10],c.Address2=S[30],c.ZipCode=S[12],c.City=S[11],c.State=S[14],c.CountryToo=S[13],(null==c.MainPhone||0===c.MainPhone.localeCompare(""))&&(c.MainPhone=S[15]),(null==c.Fax||0===c.Fax.localeCompare(""))&&(c.Fax=S[17]))}if(null==c.LastName||0===c.LastName.localeCompare(""))return void l.translate.get("LC73202").subscribe(S=>{S=S.replace("{FIELDNAME}",r.get("LastName")),l.messageService.showError(S)});let d="";for(const S in c)d+="~*~"+S+"~#~"+c[S];d="~*~"+d,d+="~*~AddressSynch~#~1";const h={};let f;h.addressData=d,h.contactsPath="$"+o,h.targetCompanyId=a,h.languageCode=Array.isArray(Wr)&&Wr.length>0?Wr[0]:Wr;try{f=yield l.soapService.invokeSoap("CreateAddresses",h,!0)}catch(S){return void l.messageService.showError(S.message)}const _=Object.keys(f);1===_.length?window.open(l.webintLink.convertToLink(_[0]),"_blank"):l.translate.get("LC53496").subscribe(S=>{l.messageService.showError(S)}),l.closeAll()})()}handleCreatePrivatePerson(e,i,r,o,s){var a=this;return Ee(function*(){const l=yield a.createResultObject(e,i,r,s);if(delete l.Company,null==l.LastName||0===l.LastName.localeCompare(""))return void a.translate.get("LC73202").subscribe(f=>{f=f.replace("{FIELDNAME}",r.get("LastName")),a.messageService.showError(f)});let c="~*~";for(const f in l)c+="~*~"+f+"~#~"+l[f];c+="~*~fdCorreType~#~GeMain",c+="~*~fdIsNewDoc~#~0",c+="~*~AddressSynch~#~0";const u={};let d;u.addressData=c,u.contactsPath="$"+o,u.targetCompanyId="",u.languageCode=Array.isArray(Wr)&&Wr.length>0?Wr[0]:Wr;try{d=yield a.soapService.invokeSoap("CreateAddresses",u,!0)}catch(f){return void a.messageService.showError(f.message)}const h=Object.keys(d);1===h.length?window.open(a.webintLink.convertToLink(h[0]),"_blank"):a.translate.get("LC53496").subscribe(f=>{a.messageService.showError(f)}),a.closeAll()})()}}return n.\u0275fac=function(e){return new(e||n)(T(Xt),T(en),T(vC),T(Wo))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const KW=["create"],YW=["labels"],QW=["areaData"],XW=["previewData"];function ZW(n,t){if(1&n){const e=je();g(0,"mat-list-option",11),X("click",function(){const r=oe(e),o=r.$implicit,s=r.index;return se(x(2).changeLabel(o,s))}),j(1),v()}if(2&n){const e=t.$implicit,i=t.index,r=x(2);Ot("value",r.currentKeyLabels[i]),m(1),Qe(" ",r.fieldDisplayNameMap.get(e)," ")}}function JW(n,t){1&n&&xe(0,"textarea",12,13)}const e$=function(n){return{title:n}},t$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function n$(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"div",3)(4,"div",4)(5,"mat-selection-list",5,6),V(7,ZW,2,2,"mat-list-option",7),v()(),xe(8,"textarea",8,9),V(10,JW,2,0,"textarea",10),v()(),Wt(11,1),Xe(12,"translate"),Xe(13,"translate")),2&n){const e=sn(9),i=x();y("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",Wn(15,e$,Ze(1,9,"LC73005"))),m(4),y("ngClass",null!==i.globals.curConnectorType?"createAddressLabels"+i.globals.curConnectorType:""),m(1),y("multiple",!1),m(2),y("ngForOf",i.currentKeyLabels),m(1),y("ngClass",null!==i.globals.curConnectorType?"createAddressTextArea"+i.globals.curConnectorType:""),m(2),y("ngIf",i.globals.displayMailBody),m(1),y("ngTemplateOutlet",i.modalFooter)("ngTemplateOutletContext",Ki(17,t$,Ze(12,11,"LC73135"),Ze(13,13,"LC73136"),i.confirmAction.bind(i,e),i.cancelAction.bind(i)))}}let i$=(()=>{class n extends Hr{constructor(e,i,r,o,s){super(e),this.translate=e,this.globals=i,this.messageService=r,this.soapService=o,this.createHandler=s,this.fieldDisplayNameList=[],this.fieldDisplayNameMap=new Map,this.setTranslatedNameList(),this.keyLabels=Cm,this.currentKeyLabels=WW}ngOnInit(){super.ngOnInit(),this.processScanFooter().then(e=>{this.fillTextArea(e)})}getTemplate(){return this.modalTemp}changeLabel(e,i){const r=this.openAnotherModal("createLabel",{labelDisplayMap:this.fieldDisplayNameMap,createLabels:Cm,selected:e});r&&r.afterClosed().subscribe(o=>{o&&(this.currentKeyLabels[i]=o)})}processScanFooter(){var e=this;return Ee(function*(){const i=e.globals.curConnector.curPostData.preview;let r;try{r=yield e.soapService.invokeSoap("scanMailFooter",{mailContent:i})}catch{}return r})()}confirmAction(){let e="";e=Array.isArray(arguments[0])?arguments[0][0].value:arguments[0].value,this.createAddress(e)}fillPreviewDisplay(){this.globals.displayMailBody&&this.previewData&&(this.previewData.nativeElement.textContent=this.globals.curConnector.preview)}createAddress(e){this.createHandler.create(e,this.currentKeyLabels,this.fieldDisplayNameMap,this.data.passedData.contactsDB,23,this.data.passedData.createType,this.data.closeAllModal,this.data.passedData.currentContactPointer)}fillTextArea(e){var i=this;return Ee(function*(){let r="",o=!0;const s=i.globals.curMailAddr;i.data.passedData.currentContactPointer&&(e=yield i.createHandler.replaceWithCompanyData("",i.currentKeyLabels,i.fieldDisplayNameMap,23,i.data.passedData.currentContactPointer,e));for(const a in i.currentKeyLabels)if(Object.prototype.hasOwnProperty.call(i.currentKeyLabels,a)){o?o=!1:r+="\n";let l=e[i.currentKeyLabels[a]];"EMailAddress"===i.currentKeyLabels[a]&&null!=s&&(null==l||""===l)&&(l=Array.isArray(s)&&s.length>0?s[0]:s),null==l&&(l=""),r+=l.trim(),i.areaData.nativeElement.textContent=r}i.fillPreviewDisplay()})()}setTranslatedNameList(){this.translate.get("LC73020").subscribe(e=>{this.fieldDisplayNameList=e.split(";"),this.createDisplayMap(this.fieldDisplayNameList)})}createDisplayMap(e){if(Cm.length===e.length){let i=1;for(const r of Cm)""!==r&&(this.fieldDisplayNameMap.set(r,e[i]),i++);this.fieldDisplayNameMap.set("",this.fieldDisplayNameList[0])}else this.translate.get("LC53488").subscribe(i=>{this.messageService.showError(i)})}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(pt),p(en),p(vC),p($W))},n.\u0275cmp=ze({type:n,selectors:[["app-create-contact"]],viewQuery:function(e,i){if(1&e&&(Oe(KW,7),Oe(YW,5),Oe(QW,5),Oe(XW,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first),me(r=ge())&&(i.areaData=r.first),me(r=ge())&&(i.previewData=r.first)}},inputs:{data:"data"},features:[De],decls:2,vars:0,consts:[["create",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],["id","createWrapper"],["id","createAddressLabels",3,"ngClass"],[3,"multiple"],["labels",""],["checkboxPosition","after",3,"value","click",4,"ngFor","ngForOf"],["id","createAddressTextArea","rows","23",3,"ngClass"],["areaData",""],["id","createMailContentArea","rows","23","readonly","",4,"ngIf"],["checkboxPosition","after",3,"value","click"],["id","createMailContentArea","rows","23","readonly",""],["previewData",""]],template:function(e,i){1&e&&V(0,n$,14,22,"ng-template",null,0,Tn)},dependencies:[Fa,ci,_n,Qi,$o,Os,Pi],styles:[".createAddressLabelsOwa[_ngcontent-%COMP%]{width:110px!important}.createAddressTextAreaOwa[_ngcontent-%COMP%]{width:148px!important;white-space:pre!important;line-height:16px!important;padding-top:2px!important;overflow-y:hidden!important}textarea[_ngcontent-%COMP%], #createAddressLabels[_ngcontent-%COMP%]{overflow:auto;resize:none;font-size:12px;margin:0 2px;outline:none;display:inline-block;border:1px solid rgb(133,133,133)}#createWrapper[_ngcontent-%COMP%]{white-space:nowrap}#createAddressLabels[_ngcontent-%COMP%]{overflow:hidden}@supports (-moz-transform: none){#createAddressLabels[_ngcontent-%COMP%]{top:3px;position:relative}}#createAddressLabels[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding-top:2px}#createAddressLabels[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{overflow:auto;resize:none;font-size:12px;margin:0 2px;outline:none;height:auto}#createAddressLabels[_ngcontent-%COMP%], #createAddressTextArea[_ngcontent-%COMP%], #createMailContentArea[_ngcontent-%COMP%]{height:382px}#createAddressLabels[_ngcontent-%COMP%]{width:131px}#createAddressTextArea[_ngcontent-%COMP%]{width:230px;white-space:pre;line-height:16px;padding-top:2px}#createMailContentArea[_ngcontent-%COMP%]{width:600px}"]}),n})();const r$=["crTicket"],o$=["tiTypes"];function s$(n,t){if(1&n){const e=je();g(0,"mat-list-option",6),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),v()}if(2&n){const e=t.$implicit,i=x(2);Ot("value",e.value),y("selected",e.key===i.recent),m(1),Qe(" ",e.key," ")}}const a$=function(n){return{title:n}},l$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function c$(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),V(5,s$,2,3,"mat-list-option",5),v()(),Wt(6,1),Xe(7,"translate"),Xe(8,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(12,a$,Ze(1,6,"LC53522"))),m(3),y("multiple",!1),m(2),y("ngForOf",e.ticketTypes),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(14,l$,Ze(7,8,"LC73135"),Ze(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let u$=(()=>{class n extends Hr{constructor(e,i,r,o,s,a,l,c){super(e),this.translate=e,this.connection=i,this.messageService=r,this.webintLink=o,this.addressService=s,this.globals=a,this.connectionService=l,this.loader=c,this.validTypes=[],this.ticketTypes=[],this.recent=sessionStorage.getItem("recentTicketType")}ngOnInit(){super.ngOnInit(),this.fetchTypes()}confirmAction(){try{this.createTicket()}catch{this.translate.get("LC53493").subscribe(i=>{this.messageService.showError(i)})}}createTicket(){this.loader.activateLoader(!0,!0);const i=this.selection.selectedOptions.selected[0].value.split("#");if(Array.isArray(i)&&i.length>1){let r="";this.addressService.currentAddressData&&(r=this.addressService.currentAddressData.pointer),this.createTicketHandler(this.globals.curMailUnid,i[0],i[1],r+"~#~"+this.globals.curMailAddr)}}createTicketHandler(e,i,r,o,s){const a=this.globals.curConnector.curPostData;this.loader.activateLoader(!0,!0),null!=a&&("Owa"===this.globals.curConnectorType?this.ticketHandlerOWA(a,e,i,r,o,s):this.ticketHandlerVerse(a,e,i,r,o,s))}ticketHandlerVerse(e,i,r,o,s,a){!0===a?this.ticketPost(i,r,o,s,a):this.handleDuplicate(i,r,o,s)}ticketHandlerOWA(e,i,r,o,s,a){this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:l=>{i=l,!0===a||!this.globals.curConnector.curPostData.officeAlreadyDoc&&!this.globals.curConnector.curPostData.ticketAlreadyDoc?this.ticketPost("OWA:"+i,r,o,s,a):this.handleDuplicate(i,r,o,s)},error:l=>{this.loader.forceDeactivateLoader(),this.messageService.showError(l.statusText)},complete:()=>{}})}ticketPost(e,i,r,o,s){const a={mailunid:e,dbalias:i,targetemail:r,addrpointer:o};!0===s&&(a["allow-duplicate"]=!0),this.connection.postReq("ticket",this.connection.objectToHttpParams(a)).subscribe({next:l=>{window.open(this.webintLink.convertToLink(l.result),"_blank"),this.globals.curConnector.alreadyDocumented={officeAlreadyDoc:this.globals.curConnector.curPostData.officeAlreadyDoc,ticketAlreadyDoc:!0},this.loader.forceDeactivateLoader(),this.translate.get("translationWait").subscribe(c=>{this.messageService.showSuccess(this.globals.languageConfLocal.emailDocumented)}),this.closeAll()},error:l=>{409===l.status?this.handleDuplicate(e,i,r,o):this.messageService.showError(l.statusText)},complete:()=>{}})}handleDuplicate(e,i,r,o){this.loader.forceDeactivateLoader();const s=this.openAnotherModal("duplicate");if(s){const a=s.afterClosed().subscribe(l=>{l?(this.loader.activateLoader(!0,!0),this.createTicketHandler(e,i,r,o,l)):a.unsubscribe()})}}fetchTypes(){this.connection.getReqModal("ticket",null).subscribe(e=>{this.filterTypes(e)})}filterTypes(e){const i={};if(Array.isArray(e))for(const o in e)if(Array.isArray(e[o])&&e[o].length>=2){const s=e[o][0],a=e[o][1];i[s]=a,"giRecentSelection"!==s&&this.ticketTypes.push({key:s,value:a})}if(0===Object.keys(i).length&&i.constructor===Object)return void this.translate.get("LC73225").subscribe(o=>{this.messageService.showError(o)});const r=Object.keys(i);this.validTypes=Object.values(i),window.sessionStorage.setItem("recentTicketType",r[this.validTypes.indexOf(i.giRecentSelection)])}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(en),p(Wo),p(Rs),p(pt),p(Nn),p(Lc))},n.\u0275cmp=ze({type:n,selectors:[["app-create-ticket"]],viewQuery:function(e,i){if(1&e&&(Oe(r$,7),Oe(o$,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["crTicket",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["tiTypes",""],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&V(0,c$,9,19,"ng-template",null,0,Tn)},dependencies:[ci,Qi,$o,Os,Pi]}),n})(),yC=(()=>{class n{constructor(e,i){this.addressService=e,this.globals=i}reload(e){e&&(this.globals.curMailAddr=this.globals.startMailAddr),this.addressService.resetAddr(),this.addressService.addressChange()}}return n.\u0275fac=function(e){return new(e||n)(T(Rs),T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),d$=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.translate=e,this.globals=i,this.loader=r,this.connectionService=o,this.messageService=s,this.webInt=a,this.reloadService=l,this.modalService=c,this.allowDuplicate=!1}documentHandler(e,i,r,o,s){"Owa"===this.globals.curConnectorType?this.documentOWA(e,i,r,o,this.convertProjectsArrToString(s)):this.documentVerse(e,i,r,o,this.convertProjectsArrToString(s))}resetAllowDuplicate(){this.allowDuplicate=!1}convertProjectsArrToString(e){if(!(void 0===e||e.length<1))return e.join(";")}documentVerse(e,i,r,o,s){let a="store";this.globals.deleteAttachments&&(a="storedelattach");let l=new Yt;l=l.set("unid",e.messageID),l=l.set("pointer",i),l=l.set("office",r),l=l.set("command",a),s&&(l=l.set("projects",s)),this.allowDuplicate&&(l=l.set("allow-duplicate","true")),this.connectionService.postReq("document",l,!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:c=>{null!=c&&""!==c?(this.allowDuplicate=!1,this.loader.activateLoader(!0,!0),this.translate.get("translationWait").subscribe(u=>{this.messageService.showSuccess(this.globals.languageConfLocal.emailDocumented),o.closeAll()}),this.globals.openMail&&(l=new Yt,l.set("openDocument",c),window.open(this.webInt.convertToLink(c),"_blank")),this.resetAllowDuplicate(),this.reloadService.reload(),o.closeAll(),this.loader.forceDeactivateLoader()):this.translate.get("LC53488").subscribe(u=>{this.allowDuplicate=!1,this.loader.forceDeactivateLoader(),this.messageService.showError(u)})},error:c=>{if(this.allowDuplicate=!1,409===c.status)this.translate.get("LC73006").subscribe(u=>{this.messageService.showError(u),this.text=u,o.text=u,this.allowDuplicate=!0});else if(200!==c.status)return this.translate.get("LC73235").subscribe(u=>{this.messageService.showError(u)}),500===c.status?this.translate.get("LC53552").subscribe(u=>{this.messageService.showError(u,void 0,!0)}):this.messageService.showError(c.statusText),void this.resetAllowDuplicate();this.loader.forceDeactivateLoader()},complete:()=>{}})}documentOWA(e,i,r,o,s){var c,l,a=this;if("gi"===this.globals.system)this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(l=Ee(function*(c){if(null!=c&&""!==c){a.loader.activateLoader(!0,!0);const u=c;let d="store";a.globals.deleteAttachments&&(d="storedelattach");let h=new Yt;if(h=h.set("unid",u),h=h.set("pointer",i),h=h.set("office",r),h=h.set("command",d),h=h.set("origUnid",a.globals.curMailUnid),s&&(h=h.set("projects",s)),a.allowDuplicate&&(h=h.set("allow-duplicate","true"),a.allowDuplicate=!1),"Owa"===a.globals.curConnectorType&&!h.get("allow-duplicate")&&a.globals.curConnector.isMailAlreadyDoc)return a.loader.forceDeactivateLoader(),void a.translate.get("LC73006").subscribe(f=>{a.changeToDuplicateModal(f,o)});a.connectionService.postReq("convert",h,!1).subscribe({next:f=>{a.loader.activateLoader(!0,!0),a.translate.get("emailDocumented").subscribe(_=>{a.globals.curConnector.alreadyDocumented={officeAlreadyDoc:!0,ticketAlreadyDoc:a.globals.curConnector.curPostData.ticketAlreadyDoc},a.messageService.showSuccess(_)}),a.globals.openMail&&(h=new Yt,h.set("openDocument",f),window.open(a.webInt.convertToLink(f),"_blank")),a.reloadService.reload(),o.closeAll(),a.loader.forceDeactivateLoader()},error:f=>{if(a.loader.forceDeactivateLoader(),409===f.status)a.translate.get("LC73006").subscribe(_=>{a.changeToDuplicateModal(_,o)});else if(200!==f.status)return void(f.statusText.includes("CEGetMail")?(a.messageService.showInfo(a.globals.languageConfLocal.noUserAssignedTicket),setTimeout(()=>{a.modalService.closeAllModals(),a.reloadService.reload()},a.messageService.getTimeoutMS())):(a.translate.get("LC73235").subscribe(_=>{a.messageService.showError(_)}),a.messageService.showError(f.statusText)))},complete:()=>{}})}else a.translate.get("LC53488").subscribe(u=>{a.loader.forceDeactivateLoader(),a.messageService.showError(u)})}),function(u){return l.apply(this,arguments)}),error:l=>{this.messageService.showError(l.statusText),this.loader.forceDeactivateLoader(),o.closeAll()},complete:()=>{}});else{if(this.globals.curConnector.isMailAlreadyDoc&&!this.allowDuplicate)return this.loader.forceDeactivateLoader(),void this.translate.get("LC73006").subscribe(l=>{this.changeToDuplicateModal(l,o)});this.resetAllowDuplicate(),this.connectionService.postReq("document",e,!0,void 0,void 0,"?parentId="+i).subscribe({next:(c=Ee(function*(u){a.baNextHandler(u,o)}),function(d){return c.apply(this,arguments)}),error:function(){var c=Ee(function*(u){if(u.status>=200&&u.status<300)a.baNextHandler(u,o);else{const d=yield u.json();let h="Aktion konnte nicht durchgef\xfchrt werden. Versuchen Sie es sp\xe4ter erneut.";d.hasOwnProperty("ExceptionMessage")?h=d.ExceptionMessage:d.hasOwnProperty("Message")&&(h=d.Message),a.modalService.closeAllModals(),a.messageService.showError(h,"Error"),a.loader.forceDeactivateLoader()}});return function(d){return c.apply(this,arguments)}}(),complete:()=>{}})}}baNextHandler(e,i){var r=this;return Ee(function*(){const o=yield e.json();r.loader.activateLoader(!0,!0),r.translate.get("emailDocumented").subscribe(s=>{r.globals.curConnector.alreadyDocumented={officeAlreadyDoc:!0,ticketAlreadyDoc:r.globals.curConnector.curPostData.ticketAlreadyDoc},r.messageService.showSuccess(s)}),r.globals.openMail&&window.open(o.frontEndUri,"_blank"),r.reloadService.reload(),i.closeAll(),r.loader.forceDeactivateLoader()})()}changeToDuplicateModal(e,i){this.text=e,i.text=e,this.allowDuplicate=!0,this.globals.curConnector.alreadyDocumented={officeAlreadyDoc:!0,ticketAlreadyDoc:this.globals.curConnector.curPostData.ticketAlreadyDoc}}}return n.\u0275fac=function(e){return new(e||n)(T(Xt),T(pt),T(Lc),T(Nn),T(en),T(Wo),T(yC),T(ol))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class qd{}var da=(()=>(function(n){n[n.projects=0]="projects",n[n.contacts=1]="contacts"}(da||(da={})),da))();class h${}var il=(()=>(function(n){n[n.alreadyDocumented=0]="alreadyDocumented"}(il||(il={})),il))();class wm{}const p$=["mat-button",""],f$=["*"],g$=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],_$=Wa(Ds(Vo(class{constructor(n){this._elementRef=n}})));let Nc=(()=>{class n extends _${constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of g$)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(_o),p(Un,8))},n.\u0275cmp=ze({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&Oe(Ar,5),2&e){let r;me(r=ge())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(ot("disabled",i.disabled||null),wt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[De],attrs:p$,ngContentSelectors:f$,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(Vn(),g(0,"span",0),Ht(1),v(),xe(2,"span",1)(3,"span",2)),2&e&&(m(2),wt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),y("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[Ar],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),T1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[ia,Pt,Pt]}),n})(),v$=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this.translate=i,this.globals=r}ngOnInit(){}closeDialog(e){this.dialogRef.close(e)}}return n.\u0275fac=function(e){return new(e||n)(p(Df),p(Xt),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-already-documented-component"]],decls:10,vars:7,consts:[["mat-dialog-title",""],[1,"mat-typography"],["align","end"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(g(0,"h2",0),j(1),Xe(2,"translate"),v(),xe(3,"mat-dialog-content",1),g(4,"mat-dialog-actions",2)(5,"button",3),X("click",function(){return i.closeDialog(!0)}),j(6),Xe(7,"translate"),v(),g(8,"button",3),X("click",function(){return i.closeDialog(!1)}),j(9),v()()),2&e&&(m(1),we(Ze(2,3,"LC73006")),m(5),we(Ze(7,5,"LC73057")),m(3),we(i.globals.languageConfLocal.NO))},dependencies:[G6,Sf,W6,Nc,Pi],encapsulation:2}),n})(),Em=(()=>{class n{constructor(e){this.dialog=e}createDialogWithType(e,i){let r;return i||((i=new Cc).disableClose=!0,i.autoFocus=!0),e===il.alreadyDocumented&&(r=v$),new b(o=>{let s=document.createElement("button");document.body.appendChild(s),s.onclick=()=>{o.next(this.dialog.open(r,i))},s?.click(),s?.remove()})}createCustomDialog(){}}return n.\u0275fac=function(e){return new(e||n)(T(As))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var zd=G(5742);class Dm{}let rl=(()=>{class n{constructor(e){this.globals=e}GetAttachments(e,i){return e=this.fixItemId(e),new zd.y(r=>{let o=void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync;o?this.getAllAttachmentsContent(i,i.attachments,o,e,r):i.getAttachmentsAsync(s=>{this.getAllAttachmentsContent(i,s.value,o,e,r)})})}getAllAttachmentsContent2(e,i,r,o,s){let a=[];a=r?i:i.map(u=>u.id.replace("+","_")),Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n \n \n ',u=>{(new DOMParser).parseFromString(u.value,"text/xml").querySelectorAll("FileAttachment")})}getAllAttachmentsContent(e,i,r,o,s){this.getAttachmentsContent(e,i,0).subscribe(a=>{r||i.map(u=>u.id.replace("+","_")),Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n Default\n\n \n \n \n \n \n \n ',u=>{let f=(new DOMParser).parseFromString(u.value,"text/xml").querySelectorAll("FileAttachment"),_=f.length,S=[],U=[];for(let Z=0;Z<_;Z++){let ve=f[Z];if(ve){let Te,ee=ve.querySelector("IsInline")?.innerHTML,et=!1;"true"===ee&&(Te=ve.querySelector("ContentId")?.innerHTML,et=!0);let _t=ve.querySelector("AttachmentId")?.getAttribute("Id"),Gt=i.find(Gn=>Gn.id===_t),hn=a.find(Gn=>Gn.attachmentId===_t);if((!Gt||!hn)&&s.error("Documentation not possible"),"gi"===this.globals.system)S.push({data:hn.data,name:Gt?.name,type:Gt?.contentType,cid:Te,inline:et});else if(this.globals.deleteAttachments&&!et){let Gn=ve.querySelector("Name");Gn&&U.push(Gn.innerHTML)}else S.push({name:Gt?.name,mimeType:Gt?.contentType,contentID:Te,data:hn.data,isInline:et,inline:et})}}s.next({attachments:S,deletedAttachments:U})})})}getAttachmentsContent(e,i,r){return new zd.y(o=>{let s=[];r+1<=i.length?e.getAttachmentContentAsync(i[r].id,a=>{if(a.status!==Office.AsyncResultStatus.Failed){let c=i[r];s.push({name:c.name,mimeType:"file"===c.attachmentType?c.contentType:c.attachmentType,attachmentId:c.id,data:a.value.content,isInline:c.isInline,inline:c.isInline}),this.getAttachmentsContent(e,i,r+1).subscribe(u=>{s=s.concat(u),o.next(s)})}else o.error("Failed to get attachment content.")}):o.next(s)})}GetExtendedData(e,i=!1){if(!e||null==e){let r=Office.context.mailbox.item;r&&("function"==typeof r.saveAsync?r.saveAsync(o=>(this.globals.infoShower.currentItemId=o.value,this.performGetExtendedData(i,this.globals.infoShower.currentItemId))):(this.globals.infoShower.currentItemId=r.itemId,e=r.itemId))}return this.performGetExtendedData(i,e)}performGetExtendedData(e,i){let r='\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ';return new zd.y(o=>{try{Office.context.mailbox.makeEwsRequestAsync(r,s=>{const c=(new DOMParser).parseFromString(s.value,"text/xml").querySelector("ExtendedProperty>Value")?.innerHTML;if(c)try{o.next(JSON.parse(c))}catch{o.next(new Dm)}else o.next(new Dm)})}catch(s){throw s}})}SaveExtendedData(e,i){if(!e||null==e){let r=Office.context.mailbox.item;r&&("function"==typeof r.saveAsync?r.saveAsync(o=>(this.globals.infoShower.currentItemId=o.value,this.performSaveExtendedData(this.globals.infoShower.currentItemId,i))):(this.globals.infoShower.currentItemId=r.itemId,e=r.itemId))}return this.performSaveExtendedData(e,i)}performSaveExtendedData(e,i){if(!this.globals.infoShower.isNew&&!this.globals.infoShower.isUpdate)return new zd.y(o=>{o.next("NOSAVE")});let r='\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ';return new zd.y(o=>{Office.context.mailbox.makeEwsRequestAsync(r,s=>{const c=(new DOMParser).parseFromString(s.value,"text/xml").querySelector("ItemId")?.getAttribute("ChangeKey");let u='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '+JSON.stringify(i)+"\n \n \n \n \n \n \n \n \n ";Office.context.mailbox.makeEwsRequestAsync(u,d=>{o.next(d)})})})}fixItemId(e){return e}getItemWithExtendedProperties(){Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ',i=>{(new DOMParser).parseFromString(i.value,"text/xml")})}SetExtendedPropOnCalendar(){Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ',i=>{const s=(new DOMParser).parseFromString(i.value,"text/xml").querySelector("ItemId")?.getAttribute("ChangeKey");Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n DoItPlease\n \n \n \n\n \n \n \n \n \n ',l=>{})})}CreateAppointmentUsingEWS(){}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bC=(()=>{class n{constructor(){this.imgTag=//g,this.srcAtt=/(?:\bsrc=)("?)([^>"]+)\1/,this.htmlRegEx=/<\/?[a-z][\s\S]*>/i}fixImgTags(e){return e.replace(this.imgTag,i=>(i=i.replace(this.srcAtt,"")).replace(/\boriginalsrc=/,"src="))}isHtml(e){return this.htmlRegEx.test(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $r=navigator.language;let y$=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this.connection=e,this.modalService=i,this.globals=r,this.connectionService=o,this.webInt=s,this.translate=a,this.messageService=l,this.dialogService=c,this.ews=u,this.htmlHelper=d,this.soapService=h,this.webintLink=f}getContacts(){return Ee(function*(){})()}fetchDBs(e,i){return Et(this.connection.getReqNoCache(e,i,void 0,!0))}fetchActivityTypes(e){return new b(i=>{let r={};r.pointer=e,this.connectionService.getReqNoCache("activityTypes",this.connectionService.objectToHttpParams(r),void 0,!0).subscribe({next:o=>{let s=[];for(let a of o)s.push({name:a[0],alias:a[1]});i.next(s)},error:o=>{i.error(o)},complete:()=>{}})})}fetchActivities(e){return new b(i=>{let r=new Yt;e&&(r=r.append("pointer",e.pointer),void 0!==e.companyPointer&&(r=r.append("companypointer",e.companyPointer)),this.connectionService.getReqNoCache("activities",r,void 0,!0).subscribe({next:o=>{o.type="activities",i.next(o)},error:o=>{i.error(o)},complete:()=>{}})),this.connectionService.getReqNoCache("activityTypes",r,void 0,!0).subscribe({next:o=>{o.type="types",i.next(o)},error:o=>{i.error(o)},complete:()=>{}})})}getContactDBs(){return Et(this.fetchDBs("dbConnections",null))}fetchSearch(e,i,r){let s=r;s||(s="*");const a={};return a.searchKey=s,i?a.pointer=i:a.database=e,Et(this.connection.getReqNoCache("search",this.connection.objectToHttpParams(a),void 0,!0))}searchProjects(e,i,r){let s=r;s||(s="*");const a={};return a.searchKey=s,i&&(a.pointer=i),e&&(a.database=e),Et(this.connection.getReqNoCache("projects",this.connection.objectToHttpParams(a),void 0,!0))}handleSearchResult(e,i,r){let o=Array();if(i===da.contacts){if(null!=e.result&&Array.isArray(e.result)&&e.result.length>0){let s=e.result;for(let a=0;a0)for(let a of e.assignedProjectsWithDisplay){let l=new qd;l.fdMe=a.pointer,l.lineOne=a.name,l.image="025",l.lineTwo=this.globals.infoShower.displayedDestination.name,l.lineThree=a.projectNumber,o.push(l)}else for(let a of e.assignedProjects){let l=s.find(u=>u.pointer===a),c=new qd;l&&(c.fdMe=l.pointer,c.image=l.icon,c.lineOne=l.name,c.lineTwo=l.owner,c.lineThree=l.number,o.push(c))}else if(!r.participantProjects)for(let a=0;a{if(Office.context.mailbox.item){let r=Office.context.mailbox.item;const o=void 0===r.getItemIdAsync||void 0===typeof r.getItemIdAsync;console.log(r),r.body.getAsync(Office.CoercionType.Html,e,s=>{if(s.status!==Office.AsyncResultStatus.Failed){if("appointment"===r.itemType)throw new Error("Appointment direct sync not supported.");o?this.retrieveDataForEmailRead(r,s).subscribe({next:a=>{i.next(a)},error:a=>{i.error(a)}}):this.retrieveDataForEmailEdit(r,s).subscribe({next:a=>{i.next(a)},error:a=>{i.error(a)}})}})}else i.next(null)})}retrieveDataForAppointmentRead(e,i){return new b(r=>{this.ews.GetAttachments(e.itemId,e).subscribe(o=>{r.next({body:i.value,subject:e.subject,optionalAttendees:e.optionalAttendees,requiredAttendees:e.requiredAttendees,start:new Date(e.start).toISOString(),end:new Date(e.end).toISOString(),attachments:o.attachments})},o=>r.error(o))})}retrieveDataForAppointmentEdit(e,i){return new b(r=>{e.subject.getAsync({},o=>{o.status!==Office.AsyncResultStatus.Failed&&e.optionalAttendees.getAsync(s=>{s.status!==Office.AsyncResultStatus.Failed&&e.requiredAttendees.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.start.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.end.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&this.ews.GetAttachments(e.itemId,e).subscribe(u=>{r.next({body:i.value,subject:o.value,optionalAttendees:s.value,requiredAttendees:a.value,start:new Date(l.value).toISOString(),end:new Date(c.value).toISOString(),attachments:u.attachments})},u=>r.error(u))})})})})})})}retrieveDataForEmailRead(e,i){return new b(r=>{this.ews.GetAttachments(e.itemId,e).subscribe(o=>{r.next({to:e.to,from:e.from,cc:e.cc,subject:e.subject,sender:e.sender,contentType:"html",body:i.value,date:new Date(e.dateTimeCreated).getTime(),messageID:e.internetMessageId,preview:"",isIncoming:this.globals.incomingMail,attachments:o.attachments,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""})},o=>r.error(o))})}retrieveDataForEmailEdit(e,i){return new b(r=>{e.saveAsync(o=>{o.status!==Office.AsyncResultStatus.Failed&&e.to.getAsync(s=>{s.status!==Office.AsyncResultStatus.Failed&&e.from.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.cc.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.subject.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&this.ews.GetAttachments(o.value,e).subscribe(u=>{let d=[];u.attachments.forEach(h=>{h.inline&&!i.value.includes(h.cid)||d.push(h)}),r.next({to:s.value,from:a.value,cc:l.value,subject:c.value,sender:e.sender,contentType:"html",body:this.htmlHelper.fixImgTags(i.value),date:(new Date).getTime(),messageID:o.value,preview:"",isIncoming:!1,attachments:d,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""})},u=>r.error(u))})})})})})})}documentItemWithoutUI(e){var i=this;return new b(r=>{"doNotDocument"!==this.globals.infoShower.selectedEmailAddress?this.retrieveDataForItem({}).subscribe({next:o=>{console.log("Documenting new item:",o);let s=new Yt;var a;s=s.set("data",JSON.stringify(o)),s=s.set("isNewItem","true"),this.connectionService.postReq("convert",s,!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(a=Ee(function*(l){if(null!=l&&""!==l){const c=l;let u="store";i.globals.deleteAttachments&&(u="storedelattach");let d=new Yt;if(d=d.set("unid",c),d=d.set("pointer",e.documentTarget),e.officeDB&&(d=d.set("office",e.officeDB)),d=d.set("command",u),d=d.set("origUnid",o.messageID),d=d.set("isNewItem","true"),e.selectedProjects){let h=e.selectedProjects;if(h&&h.length>0){let f=JSON.parse(e.selectedProjects);d=d.set("projects",f.map(_=>_.pointer).join(";"))}}i.allowDuplicate&&(d=d.set("allow-duplicate","true"),i.allowDuplicate=!1),i.connectionService.postReq("convert",d,!1).subscribe({next:h=>{r.next(!0)},error:h=>{i.globals.hideSpinner(),200!==h.status&&(409===h.status?r.next():r.next(h)),r.error(h)},complete:()=>{}})}}),function(c){return a.apply(this,arguments)}),error:a=>{r.next(a),this.globals.hideSpinner()},complete:()=>{}})},error:o=>{this.translate.get(o).subscribe(s=>{r.error(this.globals.languageConfLocal[o])})}}):r.next()})}documentItemWithUI(e){this.globals.showSpinner(),this.retrieveDataForItem({}).subscribe({next:i=>{console.log("Documenting new item:",i);let o,r=e.selectedProjects;e.selectedProjects&&r&&r.length>0&&(o=JSON.parse(e.selectedProjects),o=o.map(a=>a.pointer).join(";"));let s="";e.officeDB&&(s=e.officeDB),this.document(i,e.documentTarget,s,"",o)},error:i=>{this.translate.get(i).subscribe(r=>{this.globals.hideSpinner(),this.messageService.showError(this.globals.languageConfLocal[i],"",void 0,1e4)})}})}document(e,i,r,o,s){var l,a=this;this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(l=Ee(function*(c){if(null!=c&&""!==c){a.globals.showSpinner();const u=c;let d="store";a.globals.deleteAttachments&&(d="storedelattach");let h=new Yt;h=h.set("unid",u),h=h.set("pointer",i),h=h.set("office",r),h=h.set("command",d),h=h.set("origUnid",e.messageID),s&&(h=h.set("projects",s)),a.allowDuplicate&&(h=h.set("allow-duplicate","true"),a.allowDuplicate=!1),a.connectionService.postReq("convert",h,!1).subscribe({next:f=>{a.translate.get("translationWait").subscribe(_=>{a.globals.hideSpinner(),a.messageService.showSuccess(a.globals.languageConfLocal.emailDocumented)}),a.globals.openMail&&(h=new Yt,h.set("openDocument",f),window.open(a.webInt.convertToLink(f),"_blank")),a.globals.addressActivities.refresh(),a.globals.hideSpinner()},error:f=>{if(a.globals.hideSpinner(),409===f.status){const _=new Cc;_.disableClose=!0,_.autoFocus=!0,a.dialogService.createDialogWithType(il.alreadyDocumented,_).subscribe(S=>{S.afterClosed().subscribe(U=>{console.log("Dialog result:",U),!0===U&&(a.globals.showSpinner(),a.allowDuplicate=!0,a.document(e,i,r,o,s))})})}else if(200!==f.status)return void(f.statusText.includes("CEGetMail")?(a.messageService.showInfo(a.globals.languageConfLocal.noUserAssignedTicket),setTimeout(()=>{a.globals.hideSpinner()},a.messageService.getTimeoutMS())):(a.translate.get("LC73235").subscribe(_=>{a.messageService.showError(_)}),a.messageService.showError(f.statusText),a.globals.hideSpinner()))},complete:()=>{}})}else a.translate.get("LC53488").subscribe(u=>{a.globals.hideSpinner(),a.messageService.showError(u)})}),function(u){return l.apply(this,arguments)}),error:l=>{this.messageService.showError(l.statusText),this.globals.hideSpinner()},complete:()=>{}})}resetAllowDuplicate(){this.allowDuplicate=!1}setCRMdata(e,i){return new b(r=>{r.next(null)})}retrieveItemIdForItem(){return new b(e=>{e.next("never called")})}getPhasesOfPointer(e){return new b(i=>{this.connection.postReq("phases",e,!0).subscribe(r=>{let o=[];for(let s=0;ss.lineTwo.localeCompare(a.lineTwo)||s.lineOne.localeCompare(a.lineOne)),i.next(o)})})}changeActivityListType(e){return new b(i=>{this.connectionService.postReq("activityTypes","displaydocumentstype="+e,!1).subscribe(r=>{i.next(r)})})}addToRecentlyUsed(e){}getProductVersion(){return new b(e=>{e.next("8.13")})}getDocumentsChips(e){return new b(i=>{i.next([])})}readCRMDataForItem(e){return new b(i=>{i.next("")})}extractContactData(e){return new b(i=>{try{this.soapService.invokeSoap("scanMailFooter",{mailContent:e}).subscribe(r=>{if(console.log("Soapresponse:",r),r){let o=new wm;o.City=r.City,o.Company=r.Company,o.CompanyAddress=r.Address1,o.CompanyEmail="",o.Department=r.Department,o.Email=r.EMailAddress,o.Fax=r.Fax,o.FirstName=r.FirstName,o.LastName=r.LastName,o.MiddleName=r.MiddleName,o.Mobile=r.CellPhone,o.Phone=r.MainPhone,o.Street=r.Address2,o.Url=r.HomePage,o.Zip=r.ZipCode,o.ZipCity=r["ZipCode#City"],i.next(o)}else i.next(new wm)})}catch{}})}quickCreateContact(e,i,r,o){return new b(s=>{let a={Address1:e.CompanyAddress??"",Address2:e.Street??"",CellPhone:e.Mobile,City:e.City??"",Company:e.Company??"",Department:e.Department??"",EMailAddress:e.Email??"",Fax:e.Fax,FirstName:e.FirstName??"","FirstName#LastName":e.FirstName+"#"+e.LastName,HomePage:e.Url,LastName:e.LastName??"",MainPhone:e.Phone,MiddleName:e.MiddleName??"",State:"",Title:"",ZipCode:e.Zip??"","ZipCode#City":e.Zip??"#"+e.City??""};this.globals.showSpinner();let l="toCompany";"compExist"===r?(l="toCompany",this.create(a,o,l,e.CompanyPointer).subscribe(c=>{s.next(c)})):("contNo"===i?l="company":"contNew"===i&&"compNew"===r?l="toCompany":"contNew"===i&&"compNo"===r&&(l="person"),this.create(a,o,l).subscribe(c=>{s.next(c)}))})}create(e,i,r,o){return new b(s=>{switch(r){case"company":this.handleCreateCompany(e,i).subscribe(a=>{s.next(a)});break;case"toCompany":o?this.handleCreateAddressToCompany(e,i,o).subscribe(a=>{s.next(a)}):this.handleCreateCompany(e,i).subscribe(a=>{s.next(a)});break;case"person":this.handleCreatePrivatePerson(e,i).subscribe(a=>{s.next(a)});break;default:this.translate.get("LC53496").subscribe(a=>{this.messageService.showError(a),s.error(a)})}})}replaceWithCompanyData(e,i){return new b(r=>{this.soapService.invokeSoap("GetAddressByID",{fdme:i}).subscribe(o=>{if((o=Object.keys(o)).length>0){const s=o[0].split("~*~");null!=s&&(e.Company=s[29],e.Address1=s[10],e.Address2=s[30],e.ZipCode=s[12],e.City=s[11],e.State=s[14],e.CountryToo=s[13])}r.next(e)})})}handleCreateCompany(e,i){return new b(r=>{if(null==e.Company||""===e.Company){let o=this.globals.languageConfLocal.CompanyNameRequired;this.messageService.showError(o),r.error(o)}else{let o="";for(const a in e)e.hasOwnProperty(a)&&(o+="~*~"+a+"~#~"+e[a]);o="~*~"+e.Company+o,o+="~*~fdCorreType~#~GeMain",o+="~*~fdIsNewDoc~#~0",o+="~*~AddressSynch~#~0";const s={};s.addressData=o,s.contactsPath="$"+i,s.targetCompanyId="",s.languageCode=Array.isArray($r)&&$r.length>0?$r[0]:$r;try{this.soapService.invokeSoap("CreateAddresses",s,!0).subscribe(a=>{console.log(a),1===Object.keys(a).length?r.next(a):this.translate.get("LC53496").subscribe(c=>{this.messageService.showError(c)})})}catch(a){this.messageService.showError(a.message)}}})}handleCreateAddressToCompany(e,i,r){return new b(o=>{r?this.replaceWithCompanyData(e,r).subscribe(s=>{if(e.Company=s.Company,e.Address1=s.Address1,e.Address2=s.Address2,e.ZipCode=s.ZipCode,e.City=s.City,e.State=s.State,e.CountryToo=s.CountryToo,(null==e.MainPhone||0===e.MainPhone.localeCompare(""))&&(e.MainPhone=s.MainPhone),(null==e.Fax||0===e.Fax.localeCompare(""))&&(e.Fax=s.Fax),null==e.LastName||0===e.LastName.localeCompare("")){let c=this.globals.languageConfLocal.LastNameRequired;c=c.replace("{FIELDNAME}",e.get("LastName")),this.messageService.showError(c)}let a="";for(const c in e)e.hasOwnProperty(c)&&(a+="~*~"+c+"~#~"+e[c]);a="~*~"+a,a+="~*~AddressSynch~#~1";const l={};l.addressData=a,l.contactsPath="$"+i,l.targetCompanyId=r,l.languageCode=Array.isArray($r)&&$r.length>0?$r[0]:$r;try{this.soapService.invokeSoap("CreateAddresses",l,!0).subscribe(c=>{const u=Object.keys(c);1===u.length?(o.next(c),window.open(this.webintLink.convertToLink(u[0]),"_blank")):this.translate.get("LC53496").subscribe(d=>{this.messageService.showError(d)})})}catch(c){this.messageService.showError(c.message),o.error(c.message)}}):this.translate.get("LC53496").subscribe(s=>{this.messageService.showError(s),o.error(s)})})}handleCreatePrivatePerson(e,i){return new b(r=>{if(delete e.Company,null==e.LastName||0===e.LastName.localeCompare("")){let o=this.globals.languageConfLocal.LastNameRequired;o=o.replace("{FIELDNAME}",e.get("LastName")),this.messageService.showError(o),r.error(o)}else{let o="~*~";for(const a in e)e.hasOwnProperty(a)&&(o+="~*~"+a+"~#~"+e[a]);o+="~*~fdCorreType~#~GeMain",o+="~*~fdIsNewDoc~#~0",o+="~*~AddressSynch~#~0";const s={};s.addressData=o,s.contactsPath="$"+i,s.targetCompanyId="",s.languageCode=Array.isArray($r)&&$r.length>0?$r[0]:$r;try{this.soapService.invokeSoap("CreateAddresses",s,!0).subscribe(a=>{const l=Object.keys(a);1===l.length?(r.next(a),window.open(this.webintLink.convertToLink(l[0]),"_blank")):this.translate.get("LC53496").subscribe(c=>{this.messageService.showError(c)})})}catch(a){this.messageService.showError(a.message),r.error(a.message)}}})}validateDataInBackend(){return new b(e=>{e.next({Validation:"PASS"})})}getEnumValues(){return new b(e=>{e.next([])})}}return n.\u0275fac=function(e){return new(e||n)(T(Nn),T(ol),T(pt),T(Nn),T(Wo),T(Xt),T(en),T(Em),T(rl),T(bC),T(vC),T(Wo))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),CC=(()=>{class n{constructor(e,i,r,o,s){this.global=e,this.waitList=i,this.http=r,this.globals=o,this.connectionService=s,this.loaded=!1,"gi"===this.globals.system?(s.waitForLC().subscribe(()=>{this.loaded=!0,this.processLCWaitingList()}),this.setLCSLocal()):s.waitForLC().subscribe(()=>{this.setLCSLocal()})}waitForInit(){return new b(e=>{this.loaded?(e.next(!0),e.complete(),this.processLCWaitingList()):this.waitList.addToWaitList("lc",e)})}getLCEntry(e,i,r){return this.replacePlaceholder(this.global.languageEntry("LC"+e),i,r)}passLCObj(){return this.global.languageConf}getLang(){return navigator.language.toLowerCase().startsWith("de")?"de":"en"}setLCSLocal(){this.http.get("assets/i18n/"+this.getLang()+".json").subscribe(e=>{this.globals.languageConfLocal=e,this.localLCReady()})}localLCReady(){for(const e of this.waitList.accessWaitList("localLC"))e.next(this.globals.languageConfLocal),e.complete();"gi"!==this.globals.system&&(this.globals.languageConf=this.globals.languageConfLocal,this.loaded=!0,this.processLCWaitingList())}processLCWaitingList(){this.waitList.accessWaitList("lc").forEach(e=>{e.next(),e.complete()})}replacePlaceholder(e,i,r){return i&&r&&(e=e.replace(i,r)),e}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(Ji),T(Xu),T(pt),T(Nn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),b$=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this.connection=e,this.modalService=i,this.globals=r,this.lsm=o,this.translate=s,this.messageService=a,this.dialogService=l,this.ews=c,this.htmlHelper=u,this.connectionService=d,this.converter=h,this.lang=f}fetchDBs(e,i){return Ve(null)}fetchSearch(e,i,r){const s={};return s.searchTerm=r,i&&(s.pointer=i),Et(this.connection.getReq("search",this.connection.objectToHttpParams(s),void 0,!0))}fetchActivityTypes(e){const r={};return e&&(r.pointer=e),new b(o=>{this.connection.getReq("activityTypes",this.connection.objectToHttpParams(r),void 0,!0).subscribe({next:s=>{s.type="types",o.next(s)},error:s=>{o.error(s)}})})}fetchActivities(e){return new b(i=>{let r=new Yt;e&&(r=r.append("addressOid",e.pointer),r=r.append("maxCount",this.converter.maxActivities),r=r.append("activitiesType",this.globals.addressActivities.selectedType),this.connectionService.getReqNoCache("activities",r,void 0,!0).subscribe({next:o=>{try{this.converter.convertActivity(i,o,this.globals.addressActivities.selectedType,this)}catch{i.error(this.globals.languageConfLocal.cantLoadData)}},error:o=>{i.error(o)},complete:()=>{}})),this.converter.convertActivityTypes(i)})}searchProjects(e,i,r){const s={};return s.searchTerm=r,i&&(s.pointer=i),Et(this.connection.getReq("searchProjects",this.connection.objectToHttpParams(s),void 0,!0))}handleSearchResult(e,i){return e}getImageSrc(e){if(e&&e.toLowerCase().startsWith("http"))return e;if(e&&e.toLowerCase().startsWith("icon/get")){let i=e.substring(8);return i=i.substring(0,i.indexOf("?")),"assets/images/ba/"+i+".svg"}return"assets/images/ba/"+e+".svg"}retrieveItemIdForItem(){return new b(e=>{e.next("never called")})}retrieveDataForItem(e){return new b(i=>{const r=Office.CoercionType.Html;if(Office.context.mailbox.item){let o=Office.context.mailbox.item;const s=void 0===o.getItemIdAsync||void 0===typeof o.getItemIdAsync;console.log(o),o.body.getAsync(Office.CoercionType.Html,e,a=>{if(a.status!==Office.AsyncResultStatus.Failed){if("appointment"===o.itemType)throw new Error("Appointment direct sync not supported.");s?this.retrieveDataForEmailRead(o,a,r).subscribe({next:l=>{i.next(l)},error:l=>{i.error(l)}}):this.retrieveDataForEmailEdit(o,a,r).subscribe({next:l=>{i.next(l)},error:l=>{i.error(l)}})}})}else i.next(null)})}retrieveDataForAppointmentRead(e,i){return new b(r=>{this.ews.GetAttachments(e.itemId,e).subscribe(o=>{r.next({body:i.value,subject:e.subject,optionalAttendees:e.optionalAttendees,requiredAttendees:e.requiredAttendees,start:new Date(e.start).toISOString(),end:new Date(e.end).toISOString(),attachments:o.attachments,deletedAttachments:o.deletedAttachments})},o=>r.error(o))})}retrieveDataForAppointmentEdit(e,i){return new b(r=>{e.subject.getAsync({},o=>{o.status!==Office.AsyncResultStatus.Failed&&e.optionalAttendees.getAsync(s=>{s.status!==Office.AsyncResultStatus.Failed&&e.requiredAttendees.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.start.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.end.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&this.ews.GetAttachments(e.itemId,e).subscribe(u=>{r.next({body:i.value,subject:o.value,optionalAttendees:s.value,requiredAttendees:a.value,start:new Date(l.value).toISOString(),end:new Date(c.value).toISOString(),attachments:u.attachments,deletedAttachments:u.deletedAttachments})},u=>r.error(u))})})})})})})}retrieveDataForEmailRead(e,i,r){return new b(o=>{this.ews.GetAttachments(e.itemId,e).subscribe(s=>{o.next({fromMail:e.from.emailAddress,toMail:this.filterObjectEntryOfArr(e.to),ccMail:this.filterObjectEntryOfArr(e.cc),messageID:e.itemId,subject:e.subject?e.subject:this.globals.languageConfLocal.noSubject,body:{htmlBody:!!r.toString().toLowerCase().includes("html"),text:Buffer.from(i.value).toString("base64")},type:r.toString(),date:new Date(e.dateTimeCreated).toISOString(),creationDate:new Date(e.dateTimeCreated).getTime(),changingDate:new Date(e.dateTimeCreated).getTime(),attachments:s.attachments,deletedAttachments:s.deletedAttachments,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:"",mailType:this.globals.incomingMail?"Incoming":"Outgoing"})},s=>o.error(s))})}retrieveDataForEmailEdit(e,i,r){return new b(o=>{e.saveAsync(s=>{e.to.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.from.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.cc.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&e.subject.getAsync(u=>{u.status!==Office.AsyncResultStatus.Failed&&this.ews.GetAttachments(s.value,e).subscribe(d=>{o.next({toMail:a.value.map(h=>h.emailAddress),fromMail:l.value.emailAddress,ccMail:c.value.map(h=>h.emailAddress),bccMail:[],subject:u.value,body:{htmlBody:!!r.toString().toLowerCase().includes("html"),text:Buffer.from(this.htmlHelper.fixImgTags(i.value)).toString("base64")},type:r.toString(),date:(new Date).toISOString(),creationDate:(new Date).getTime(),changingDate:(new Date).getTime(),messageID:s.value,mailType:"Outgoing",attachments:d.attachments,deletedAttachments:d.deletedAttachments,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""})},d=>o.error(d))})})})})})})}documentItemWithUI(e){this.globals.showSpinner(),this.retrieveDataForItem({}).subscribe({next:i=>{const o={};o.messageId=i.messageID,Et(this.connection.getReq("emailAlreadyDocumented",this.connection.objectToHttpParams(o),void 0,!0)).subscribe(s=>{s?(this.globals.hideSpinner(),this.dialogService.createDialogWithType(il.alreadyDocumented).subscribe(a=>{a.afterClosed().subscribe(l=>{!0===l&&(this.globals.showSpinner(),this.document(i,e))})})):this.document(i,e)})},error:i=>{this.translate.get(i).subscribe(r=>{this.globals.hideSpinner(),this.messageService.showError(r,"",void 0,1e4)})}})}document(e,i){var r=this;let o="?parentId="+i.documentTarget;var s;o=this.processCRMData(i,o),this.connection.postReq("document",e,!0,void 0,void 0,o).subscribe({next:(s=Ee(function*(a){r.baNextHandler(a)}),function(l){return s.apply(this,arguments)}),error:function(){var s=Ee(function*(a){if(a.status>=200&&a.status<300)r.baNextHandler(a);else{const l=yield a.json();let c="Aktion konnte nicht durchgef\xfchrt werden. Versuchen Sie es sp\xe4ter erneut.";l.hasOwnProperty("ExceptionMessage")?c=l.ExceptionMessage:l.hasOwnProperty("Message")&&(c=l.Message),r.modalService.closeAllModals(),r.messageService.showError(c,"Error")}});return function(l){return s.apply(this,arguments)}}(),complete:()=>{}})}baNextHandler(e){var i=this;return Ee(function*(){const r=e.oid;if(i.translate.get("translationWait").subscribe(o=>{i.messageService.showSuccess(i.globals.languageConfLocal.emailDocumented)}),i.globals.openMail){let o=i.connection.getPath("openRecord",!1)+"/"+r;window.open(o,"_blank")}i.globals.addressActivities.refresh(),i.globals.hideSpinner()})()}documentItemWithoutUI(e){return"appointment"===e.type?new b(i=>{i.next(null)}):this.documentItem(e)}documentItem(e){var i=this;return new b(r=>{this.retrieveDataForItem({}).subscribe({next:o=>{let s="?parentId="+e.documentTarget,a=this.lsm.getValue(tn.documentedItemId);var l;a&&(s+="&existingEmailId="+a),this.lsm.setValue(tn.documentedItemId,""),s=this.processCRMData(e,s),this.connection.postReq("document",o,!0,void 0,void 0,s).subscribe({next:(l=Ee(function*(c){c&&c.oid&&i.lsm.setValue(tn.documentedItemId,c.oid),r.next(c)}),function(u){return l.apply(this,arguments)}),error:function(){var l=Ee(function*(c){r.error(c)});return function(u){return l.apply(this,arguments)}}(),complete:()=>{}})},error:o=>{this.translate.get(o).subscribe(s=>{r.error(s)})}})})}processCRMData(e,i){if(e.selectedProjects){let r=JSON.parse(e.selectedProjects);r&&r.length>0&&(i+="&projectIds="+r.map(o=>o.pointer).join(","))}if(e.tags){let r=JSON.parse(e.tags);r&&r.length>0&&(i+="&tags="+r.map(o=>o[0]).join(","))}return i}filterObjectEntryOfArr(e){const i=[];for(const r of e)i.push(r.emailAddress);return i}setCRMdata(e,i){return new b(r=>{var s;this.connection.postReq("setCRMdata",e,!0,void 0,void 0,"?messageId="+i).subscribe({next:(s=Ee(function*(a){r.next(a)}),function(l){return s.apply(this,arguments)}),error:function(){var s=Ee(function*(a){r.error(a)});return function(l){return s.apply(this,arguments)}}(),complete:()=>{}})})}getPhasesOfPointer(e){return new b(i=>{i.next([])})}changeActivityListType(e){return new b(i=>{i.next(e)})}addToRecentlyUsed(e){this.connection.postReq("addRecentlyUsed","",!0,void 0,void 0,"?recordOid="+e).subscribe(r=>{})}getProductVersion(){return new b(e=>{this.connection.getReq("baVersion",this.connection.objectToHttpParams({}),void 0,!0).subscribe({next:i=>{e.next(i)},error:i=>{e.next("7.0.0.")}})})}getDocumentsChips(e){return new b(i=>{this.connection.getReq("getChips",this.connection.objectToHttpParams({oids:JSON.stringify(e)}),void 0,!0).subscribe({next:r=>{const o=[];for(const s of r)o.push({name:s.subject,image:s.imageName,fdMe:s.oid});i.next(o)},error:r=>{i.error(r)},complete:()=>{}})})}readCRMDataForItem(e){return new b(i=>{this.ews.GetExtendedData(e).subscribe(r=>{i.next(r)})})}extractContactData(e){return new b(i=>{this.connection.getReq("extractContact",this.connection.objectToHttpParams({textBlock:Buffer.from(e).toString("base64")}),void 0,!0).subscribe({next:r=>{i.next(r||new wm)},error:r=>{i.error(r)}})})}getEnumValues(e){return new b(i=>{this.connection.getReq("getEnumValues",null,!0,!0,"rest/",e).subscribe({next:r=>{let o=[],s=this.lang.getLang();r.Values.forEach(a=>{o.push([a.Oid,a["Language_"+s]])}),i.next(o)},error:r=>{i.error(r)}})})}quickCreateContact(e,i,r){return this.postCompanyContactData(e,r,i,!1)}postCompanyContactData(e,i,r,o){var s=this;return new b(a=>{let c=new C$,u=new w$,d=o?"/?validateOnly=true":"";if(c.Name=e.Company,c.Phone=e.CompanyPhone,c.Fax=e.CompanyFax,e.Street&&(c.Addresses=[{Address:e.Street,AddressType:e.MainAddressType,City:e.City,PostalCode:e.Zip}]),e.CompanyEmail&&(c.EmailAddresses=[{EmailAddress:e.CompanyEmail,EmailAddressType:e.MainEmailAddressType}]),u.FirstName=e.FirstName,u.LastName=e.LastName,u.Department=e.Department,u.CellPhone=e.Mobile,u.Phone=e.Phone,u.Fax=e.Fax,u.EmailAddresses=[{EmailAddress:e.Email,EmailAddressType:e.MainEmailAddressType}],"compNew"===i)this.connection.postReq("createRecord",JSON.stringify(c),!0,void 0,void 0,"FE7EB8AE-71BE-4220-8DA5-DC04078E6B3C"+d,"rest/").subscribe({next:(h=Ee(function*(f){if("contNew"===r)s.createContact(u,f.Oid,a,d,!0);else{if(!d){s.addToRecentlyUsed(f.Oid);let _=s.connection.getPath("openRecord",!1)+"/"+f.Oid+"?openInEditMode=true";window.open(_,"_blank")}a.next(f)}}),function(_){return h.apply(this,arguments)}),error:function(){var h=Ee(function*(f){f.json().then(_=>{let S="";_.forEach(U=>{S+=U.ErrorMessage+" "}),s.messageService.showMessageAsync(s.globals.languageConfLocal.companyCreationError+S,lr.error)}),a.error(f)});return function(_){return h.apply(this,arguments)}}()});else{if("compExist"!==i)throw new Error("Not supported for BA");this.createContact(u,e.CompanyPointer,a,d)}var h})}createContact(e,i,r,o,s=!1){var c,a=this;e.RelatedCompany=i,this.connection.postReq("createRecord",JSON.stringify(e),!0,void 0,void 0,"44FCB6FB-9230-48CF-A406-8F1F8C4D0B8C"+o,"rest/").subscribe({next:(c=Ee(function*(u){if(!o){a.addToRecentlyUsed(u.Oid);let d=a.connection.getPath("openRecord",!1)+"/"+u.Oid+"?openInEditMode=true";window.open(d,"_blank"),s&&(d=a.connection.getPath("openRecord",!1)+"/"+i+"?openInEditMode=true",window.open(d,"_blank"))}r.next(u)}),function(d){return c.apply(this,arguments)}),error:function(){var c=Ee(function*(u){u.json().then(d=>{let h="";d.forEach(f=>{h+=f.ErrorMessage+" "}),a.messageService.showMessageAsync(a.globals.languageConfLocal.contactCreationError+h,lr.error)}),r.error(u)});return function(d){return c.apply(this,arguments)}}()})}validateDataInBackend(e,i,r){return this.postCompanyContactData(e,r,i,!0)}}return n.\u0275fac=function(e){return new(e||n)(T(nC),T(ol),T(pt),T(Br),T(Xt),T(en),T(Em),T(rl),T(bC),T(nC),T(tC),T(CC))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class C${}class w${}let bo=(()=>{class n{constructor(e,i,r,o){switch(this.gi=e,this.ba=i,this.lsm=r,this.globals=o,this.dateSourceConfig={},this.datasource=this.gi,this.globals.system){case"gi":this.datasource=this.gi;break;case"ba":this.datasource=this.ba;break;default:throw new Error("Not implemented")}}fetchDBs(e,i){return this.datasource.fetchDBs(e,i)}fetchSearch(e,i,r){return this.datasource.fetchSearch(e,i,r)}fetchActivityTypes(e){return this.datasource.fetchActivityTypes(e)}searchProjects(e,i,r){return this.datasource.searchProjects(e,i,r)}handleSearchResult(e,i,r=new h$){return this.datasource.handleSearchResult(e,i,r)}getImageSrc(e){return this.datasource.getImageSrc(e)}documentItemWithUI(e){return this.datasource.documentItemWithUI(e)}documentItemWithoutUI(e){return this.datasource.documentItemWithoutUI(e)}retrieveDataForItem(e){return this.datasource.retrieveDataForItem(e)}setCRMdata(e,i){return this.datasource.setCRMdata(e,i)}retrieveItemIdForItem(){return new b(e=>{if(Office.context.mailbox.item){let i=Office.context.mailbox.item;void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync?e.next(i.itemId):i.getItemIdAsync(o=>{e.next(o.value)})}else e.next("")})}IsTaskpaneActive(){let e=this.lsm.getValue(tn.taskpaneActive);if(!e)return!1;{let i=new Date(e);if("Invalid Date"===i.toString())return!1;if(((new Date).getTime()-i.getTime())/1e3>20)return!1}return!0}doNotDocumentSelected(){return"doNotDocument"===this.lsm.getValue(tn.selectedEmail)}getPhasesOfPointer(e){return new b(i=>{this.datasource.getPhasesOfPointer(e).subscribe(r=>{i.next(r)})})}changeActivityListType(e){return this.datasource.changeActivityListType(e)}addToRecentlyUsed(e){this.datasource.addToRecentlyUsed(e)}getProductVersion(){return this.datasource.getProductVersion()}getDocumentsChips(e){return this.datasource.getDocumentsChips(e)}fetchActivities(e){return this.datasource.fetchActivities(e)}readCRMDataForItem(e){return this.datasource.readCRMDataForItem(e)}extractContactData(e){return this.datasource.extractContactData(e)}quickCreateContact(e,i,r,o=""){return this.datasource.quickCreateContact(e,i,r,o)}validateDataInBackend(e,i,r,o=""){return this.datasource.validateDataInBackend(e,i,r,o)}getEnumValues(e){return this.datasource.getEnumValues(e)}}return n.\u0275fac=function(e){return new(e||n)(T(y$),T(b$),T(Br),T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const E$=["docFile"],D$=function(n){return{title:n}},S$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function A$(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2),j(3),v(),Wt(4,1),Xe(5,"translate"),Xe(6,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(11,D$,Ze(1,5,"LC73005"))),m(3),we(e.text),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(13,S$,Ze(5,7,"LC73135"),Ze(6,9,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let T$=(()=>{class n extends Hr{constructor(e,i,r,o,s){super(e),this.translate=e,this.globals=i,this.loader=r,this.documentService=o,this.datasourceService=s}ngOnInit(){"gi"===this.globals.system?this.data.passedData.docPointer&&this.data.passedData.docPointer.includes("faActivities")?(this.pointer=this.data.passedData.docPointer,this.officeDB=this.pointer.substring(this.pointer.lastIndexOf("|")+1)):(this.officeDB=this.data.passedData.officeDB,this.pointer=this.data.passedData.currentContactPointer?this.data.passedData.currentContactPointer:this.data.passedData.docPointer):this.pointer=this.data.passedData.docPointer,this.translate.get("LC73019").subscribe(e=>{this.text=e+"..."}),this.confirmAction()}confirmAction(){var e=this;return Ee(function*(){let i=Office.context.mailbox.item,s=!0;i&&(s=void 0!==i.itemClass),e.loader.activateLoader(!0,!0);let a=e.globals.curConnector.curPostData;s?null!==a&&(console.log("Documenting existing mail:",a),e.documentService.documentHandler(a,e.pointer,e.officeDB,e,e.data.passedData.projectPointers?e.data.passedData.projectPointers:void 0)):e.datasourceService.retrieveDataForItem({}).subscribe({next:l=>{console.log("Documenting new item:",l),e.documentService.documentHandler(l,e.pointer,e.officeDB,e,e.data.passedData.projectPointers?e.data.passedData.projectPointers:void 0)}})})()}cancelAction(){this.documentService.resetAllowDuplicate(),this.data.closeAllModal()}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(pt),p(Lc),p(d$),p(bo))},n.\u0275cmp=ze({type:n,selectors:[["app-document-file"]],viewQuery:function(e,i){if(1&e&&Oe(E$,7),2&e){let r;me(r=ge())&&(i.modalTemp=r.first)}},features:[De],decls:2,vars:0,consts:[["docFile",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"]],template:function(e,i){1&e&&V(0,A$,7,18,"ng-template",null,0,Tn)},dependencies:[Qi,Pi]}),n})();const x$=["selContact"],I$=["dbs"];function M$(n,t){1&n&&(g(0,"p"),j(1),Xe(2,"translate"),v()),2&n&&(m(1),we(Ze(2,1,"LC53515")))}function k$(n,t){if(1&n){const e=je();g(0,"mat-list-option",7),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),v()}if(2&n){const e=t.$implicit,i=x(2);Ot("value",e.db),y("selected",1===i.contactDBs.length?e.db:null),m(1),Qe(" ",e.title," ")}}const R$=function(n){return{title:n}},O$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function P$(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),V(5,M$,3,3,"p",5),V(6,k$,2,3,"mat-list-option",6),v()(),Wt(7,1),Xe(8,"translate"),Xe(9,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(13,R$,Ze(1,7,"LC53516"))),m(3),y("multiple",!1),m(2),y("ngIf",e.contactDBs.length<1),m(1),y("ngForOf",e.contactDBs),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(15,O$,Ze(8,9,"LC73135"),Ze(9,11,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let wC=(()=>{class n extends Hr{constructor(e,i,r){super(e),this.translate=e,this.connection=i,this.messageService=r,this.contactDBs=[]}ngOnInit(){super.ngOnInit(),this.fetchContactsDBs()}confirmAction(e,i){try{let r;r=null!=i?i:this.selection.selectedOptions.selected[0].value,this.openAnotherModal(this.next,{contactsDB:r,createType:this.data.createType})}catch{this.translate.get("LC53493").subscribe(o=>{this.messageService.showError(o)})}}fetchContactsDBs(){this.connection.getReqModal("dbConnections",null).subscribe(e=>{this.clearOfficeDBs(),this.extractContacts(e)})}extractContacts(e){var i=this;return Ee(function*(){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if("GeOfficeAliases"===r)continue;"Contact"===e[r].type&&i.contactDBs.push({title:e[r].title,db:r})}i.contactDBs.length<1&&i.translate.get("LC73225").subscribe(r=>{i.messageService.showError(r),i.cancelAction()}),1===i.contactDBs.length&&i.confirmAction(i.selection,i.contactDBs[0].db)})()}clearOfficeDBs(){this.contactDBs.length=0}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(en))},n.\u0275cmp=ze({type:n,selectors:[["app-select-contact"]],viewQuery:function(e,i){if(1&e&&(Oe(x$,7),Oe(I$,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["selContact",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["dbs",""],[4,"ngIf"],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&V(0,P$,10,20,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,$o,Os,Pi]}),n})();const L$=["selLabelCreate"],N$=["selection"];function F$(n,t){if(1&n){const e=je();g(0,"mat-list-option",6),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),v()}if(2&n){const e=t.$implicit,i=x(2);Ot("value",e),y("selected",e===i.selectedEntry),m(1),Qe(" ",i.data.passedData.labelDisplayMap.get(e)," ")}}const B$=function(n){return{title:n}},H$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function V$(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),V(5,F$,2,3,"mat-list-option",5),v()(),Wt(6,1),Xe(7,"translate"),Xe(8,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(12,B$,Ze(1,6,"LC53516"))),m(3),y("multiple",!1),m(2),y("ngForOf",e.data.passedData.createLabels),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(14,H$,Ze(7,8,"LC73135"),Ze(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let j$=(()=>{class n extends Hr{constructor(e,i,r){super(e),this.translate=e,this.messageService=i,this.globals=r,this.selectedEntry=""}ngOnInit(){super.ngOnInit(),-1===this.data.passedData.createLabels.indexOf("")&&this.data.passedData.createLabels.unshift(""),this.selectedEntry=this.data.passedData.selected}confirmAction(){this.data.closeModal(this.selection.selectedOptions.selected[0].value)}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(en),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-select-create-label"]],viewQuery:function(e,i){if(1&e&&(Oe(L$,7),Oe(N$,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["selLabelCreate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["selection",""],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&V(0,V$,9,19,"ng-template",null,0,Tn)},dependencies:[ci,Qi,$o,Os,Pi]}),n})();const U$=["dupl"],q$=function(n){return{title:n}},z$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function G$(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2),j(3),Xe(4,"translate"),v(),Wt(5,1),Xe(6,"translate"),Xe(7,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(13,q$,Ze(1,5,"LC53516"))),m(3),we(Ze(4,7,"LC73006")),m(2),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(15,z$,Ze(6,9,"LC73057"),Ze(7,11,"NO"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let W$=(()=>{class n extends Hr{constructor(e){super(e),this.translate=e}ngOnInit(){super.ngOnInit()}confirmAction(){this.data.closeModal(!0)}}return n.\u0275fac=function(e){return new(e||n)(p(Xt))},n.\u0275cmp=ze({type:n,selectors:[["app-duplicate"]],viewQuery:function(e,i){if(1&e&&Oe(U$,7),2&e){let r;me(r=ge())&&(i.modalTemp=r.first)}},features:[De],decls:2,vars:0,consts:[["dupl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"]],template:function(e,i){1&e&&V(0,G$,8,20,"ng-template",null,0,Tn)},dependencies:[Qi,Pi]}),n})();const $$=["searchTemplate"];function K$(n,t){if(1&n){const e=je();g(0,"button",13),X("click",function(){return oe(e),se(x(2).searchValue="")}),xe(1,"div",14),v()}if(2&n){const e=x(2);m(1),y("ngStyle",e.searchClearImage)}}function Y$(n,t){if(1&n&&(g(0,"mat-option",15),j(1),v()),2&n){const e=t.$implicit;y("value",e.value),m(1),we(e.viewValue)}}const Q$=function(n){return{background:n}};function X$(n,t){if(1&n&&xe(0,"mat-cell",22),2&n){const e=t.$implicit,i=x(3);y("ngStyle",Wn(1,Q$,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function Z$(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Oo(" ",e.name,", ",e.type," ")}}function J$(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.purpose," ")}}function eK(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.category," ")}}function tK(n,t){if(1&n&&(g(0,"mat-cell",23)(1,"mat-dialog-content")(2,"span",24),j(3),v(),V(4,Z$,2,2,"div",25),V(5,J$,2,1,"div",25),V(6,eK,2,1,"div",25),v()()),2&n){const e=t.$implicit;m(3),Qe(" ",e.display," "),m(1),y("ngIf",""!==e.name),m(1),y("ngIf",""!==e.purpose),m(1),y("ngIf",""!==e.category)}}function nK(n,t){if(1&n){const e=je();g(0,"mat-row",26),X("click",function(){const o=oe(e).$implicit;return se(x(3).toggleSelection(o))})("dblclick",function(){const o=oe(e).$implicit;return se(x(3).acceptEntryDblClick(o))}),v()}if(2&n){const e=t.$implicit,i=x(3);wt("isSelected",i.selection.isSelected(e)),y("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function iK(n,t){if(1&n&&(g(0,"div")(1,"mat-table",16),bi(2,17),V(3,X$,1,3,"mat-cell",18),Ci(),bi(4,19),V(5,tK,7,4,"mat-cell",20),Ci(),V(6,nK,1,6,"mat-row",21),v()()),2&n){const e=x(2);wi(e.tableWrapperClassName),m(1),y("dataSource",e.searchResults),m(5),y("matRowDefColumns",e.displayedColumns)}}function rK(n,t){1&n&&(g(0,"div"),j(1),Xe(2,"translate"),v()),2&n&&(m(1),we(Ze(2,1,"LC53482")))}const oK=function(n){return{title:n}},sK=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function aK(n,t){if(1&n){const e=je();Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),j(6),Xe(7,"translate"),v(),g(8,"input",5),X("ngModelChange",function(r){return oe(e),se(x().searchValue=r)})("keyup.enter",function(){return oe(e),se(x().search())}),v(),V(9,K$,2,1,"button",6),v(),g(10,"input",7),X("click",function(){return oe(e),se(x().search())}),Xe(11,"translate"),v()(),g(12,"mat-form-field",8)(13,"mat-label"),j(14),Xe(15,"translate"),v(),g(16,"mat-select",9),X("valueChange",function(r){return oe(e),se(x().selectedDB=r)})("selectionChange",function(){oe(e);const r=x();return se(r.fetchSearch(r.selectedDB))}),V(17,Y$,2,2,"mat-option",10),v()(),V(18,iK,7,5,"div",11),V(19,rK,3,3,"ng-template",null,12,Tn),v(),Wt(21,1),Xe(22,"translate"),Xe(23,"translate")}if(2&n){const e=sn(20),i=x();y("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",Wn(25,oK,Ze(1,13,"LC53493"))),m(6),we(Ze(7,15,"LC53489")),m(2),y("ngModel",i.searchValue),m(1),y("ngIf",i.searchValue),m(1),Ot("value",Ze(11,17,"LC36251")),m(4),we(Ze(15,19,"LC53516")),m(2),y("value",i.selectedDB),m(1),y("ngForOf",i.databases),m(1),y("ngIf",i.searchResults.length>=1)("ngIfElse",e),m(3),y("ngTemplateOutlet",i.modalFooter)("ngTemplateOutletContext",Ki(27,sK,Ze(22,21,"LC73135"),Ze(23,23,"LC73136"),i.confirmAction.bind(i),i.cancelAction.bind(i)))}}let lK=(()=>{class n extends sC{constructor(e,i,r,o,s,a){super(e,r,i,o,s,a),this.messageEvent=new Be,this.prefix="Template: ",this.path="templates",this.searchResults=[]}ngOnInit(){super.ngOnInit()}getTemplate(){return this.modalTemp}createPhoneCallHttpParams(e){let o=new Yt;return o=o.appendAll({createDocument:"faActivities",parentPointer:this.addressService.currentPointer,templatePointer:e,templateType:"PhoneCall"}),null!=this.globals.curSubject&&(o=o.set("cval-Subject",this.globals.curSubject)),{paramsToAdd:["crmDB"],params:o}}convertToArr(e){const i={};for(const r in e)"Template"===e[r].type&&(i[e[r].alias]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:this.prefix+e[i]});this.data.parentPointer=this.addressService.currentPointer,this.databases.length>0&&(this.selectedDB=this.databases[0].value,this.fetchSearch(this.selectedDB))}fetchDBs(){this.connection.getReqModal("templates",this.connection.objectToHttpParams({templateDBs:"true"})).subscribe(e=>{this.convertToArr(e)})}handleResult(e){this.searchResults=null!=e&&Array.isArray(e)&&e.length>0?e:[]}confirmAction(){this.selection.isEmpty()?this.translate.get("LC53493").subscribe(e=>{this.messageService.showError(e)}):this.openAnotherModal(this.next,{paramsData:this.createPhoneCallHttpParams(this.selection.selected[0].pointer),ignoreNext:!0})}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(pt),p(en),p(Ld),p(Rs))},n.\u0275cmp=ze({type:n,selectors:[["app-search-template"]],viewQuery:function(e,i){if(1&e&&Oe($$,7),2&e){let r;me(r=ge())&&(i.modalTemp=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De],decls:2,vars:0,consts:[["searchTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"searchInputWrapper"],[1,"searchInput"],["matInput","","type","text",3,"ngModel","ngModelChange","keyup.enter"],["matSuffix","","aria-label","Clear",3,"click",4,"ngIf"],["id","searchButton","type","button",1,"buttonSilverMiddle",3,"value","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["noResult",""],["matSuffix","","aria-label","Clear",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[3,"value"],[1,"searchTable",3,"dataSource"],["matColumnDef","icon"],["class","searchIcon",3,"ngStyle",4,"matCellDef"],["matColumnDef","display"],["class","searchDisplay",4,"matCellDef"],["matRipple","","class","searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"searchIcon",3,"ngStyle"],[1,"searchDisplay"],[1,"bold"],[4,"ngIf"],["matRipple","",1,"searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","click","dblclick"]],template:function(e,i){1&e&&V(0,aK,24,32,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,Qs,fo,Fo,ps,Sf,Ko,Gr,aC,ua,vo,Yo,vm,jd,Vd,ym,Ud,bm,Ar,Pi],styles:[".searchInputWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.searchInput[_ngcontent-%COMP%]{width:calc(100% - 70px);display:block;padding-bottom:0!important}.searchIcon[_ngcontent-%COMP%]{width:30px;padding:0 10px 0 0!important;background-position:40% 50%!important}.searchRow[_ngcontent-%COMP%] .searchIcon[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%] .searchDisplay[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%]{border-bottom:0px}.searchRow[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.isSelected[_ngcontent-%COMP%]{background:rgb(224,239,255)!important}.searchRow[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;padding-right:5px}.searchRow[_ngcontent-%COMP%]:hover{background:rgba(224,239,255,.4)}.searchDisplay[_ngcontent-%COMP%], .searchTable[_ngcontent-%COMP%]{width:100%}.tableWrapper[_ngcontent-%COMP%], .tableWrapperVerse[_ngcontent-%COMP%], .tableWrapperVerseTabs[_ngcontent-%COMP%]{overflow:auto}.tableWrapper[_ngcontent-%COMP%]{max-height:50vh}.tableWrapperVerse[_ngcontent-%COMP%]{max-height:45vh}.tableWrapperVerseTabs[_ngcontent-%COMP%]{max-height:calc(45vh - 48px)}.overlay-list[_ngcontent-%COMP%], .overlay-selected[_ngcontent-%COMP%]{position:absolute;bottom:0;left:100%;right:0;overflow:hidden;width:0;height:100%;transition:.5s ease;box-shadow:none}.overlay-list[_ngcontent-%COMP%]{background-color:#a1f79b}.overlay-selected[_ngcontent-%COMP%]{background-color:#ff6a6a}.projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-list[_ngcontent-%COMP%], .projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-selected[_ngcontent-%COMP%]{width:30px;left:calc(100% - 30px);box-shadow:0 0 10px #999}.projectButton[_ngcontent-%COMP%]{margin:0;position:absolute;top:50%;left:calc(50% - 9px);transform:translateY(-50%)}#searchButton[_ngcontent-%COMP%]{height:100%;padding:4px;margin:0 0 5px;float:right;font-weight:700;display:flex}"]}),n})();const cK=["selMailAddr"],uK=["mailAddrs"];function dK(n,t){if(1&n){const e=je();g(0,"mat-list-option",7),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),Xe(2,"translate"),v()}if(2&n){const e=x(2);Ot("value",e.globals.curFrom.emailAddress),m(1),Oo(" ",Ze(2,3,"LC73126"),": ",e.globals.curFrom.emailAddress," ")}}function hK(n,t){if(1&n){const e=je();g(0,"mat-list-option",7),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),Xe(2,"translate"),v()}if(2&n){const e=t.$implicit;Ot("value",e.emailAddress),m(1),Oo(" ",Ze(2,3,"to"),": ",e.emailAddress," ")}}function pK(n,t){if(1&n){const e=je();g(0,"mat-list-option",7),X("dblclick",function(){return oe(e),se(x(2).confirmAction())}),j(1),Xe(2,"translate"),v()}if(2&n){const e=t.$implicit;Ot("value",e.emailAddress),m(1),Oo(" ",Ze(2,3,"LC73128"),": ",e.emailAddress," ")}}const fK=function(n){return{title:n}},mK=function(){return{}},gK=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function _K(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),V(5,dK,3,5,"mat-list-option",5),V(6,hK,3,5,"mat-list-option",6),V(7,pK,3,5,"mat-list-option",6),v()(),Wt(8,1),Xe(9,"translate"),Xe(10,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(14,fK,Ze(1,8,"LC53517"))),m(3),y("multiple",!1),m(2),y("ngIf",null!==e.globals.curFrom&&e.globals.curFrom!==bv(16,mK)),m(1),y("ngForOf",e.globals.curTo),m(1),y("ngForOf",e.globals.curCC),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(17,gK,Ze(9,10,"LC73135"),Ze(10,12,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let vK=(()=>{class n extends Hr{constructor(e,i,r,o){super(i),this.globals=e,this.translate=i,this.messageService=r,this.reloadService=o}ngOnInit(){super.ngOnInit()}confirmAction(){try{this.globals.curMailAddr=this.selection.selectedOptions.selected[0].value,this.closeAll(),this.reloadService.reload()}catch{this.translate.get("LC53493").subscribe(i=>{this.messageService.showError(i)})}}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(Xt),p(en),p(yC))},n.\u0275cmp=ze({type:n,selectors:[["app-select-mail-address"]],viewQuery:function(e,i){if(1&e&&(Oe(cK,7),Oe(uK,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["selMailAddr",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["mailAddrs",""],["checkboxPosition","after",3,"value","dblclick",4,"ngIf"],["checkboxPosition","after",3,"value","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","dblclick"]],template:function(e,i){1&e&&V(0,_K,11,22,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,$o,Os,Pi]}),n})(),yK=(()=>{class n{constructor(e){this.connection=e}getPhasesOfPointer(e){return new b(i=>{this.connection.postReq("phases",e,!0).subscribe(r=>{i.next(r),i.complete()})})}handlePhases(e){return new b(i=>{this.getPhasesOfPointer(e).subscribe(o=>{i.next(o),i.complete()})})}checkIfAllHidden(e,i){let r=!1,o=0;if(e.length>=i.length){for(const s of e)i.includes(s)&&o++;o>=i.length&&(r=!0)}return r}handleDocToDocPhases(e,i=!1){return new b(r=>{const o={},s=new Set,a=new Set,l=new Set;for(const c of e){const u=c.split("#");u.length>1?i?s.add(u[1]):(a.add(u[0]),o[u[0]]?o[u[0]].push(u[1]):o[u[0]]=[u[1]]):s.add(u[0])}this.handlePhases(Array.from(a)).subscribe(c=>{const u=new Set;for(const d of Array.from(a)){const h=c.find(f=>f.projectPointer===d);if(Array.isArray(o[d])&&o[d].length===h.projectphases.length)for(const f of h.projectphases)s.add(f.pointer);else{for(const f of o[d]){const _=h.projectphases.findIndex(S=>S.pointer===f);h.projectphases[_].selected=!0}l.add(h)}u.add(d)}for(const d of u)delete o[d],a.delete(d);r.next({projects:Array.from(s),parentPointersWithPhases:Array.from(a),phasesToCheck:Array.from(l)}),r.complete()})})}}return n.\u0275fac=function(e){return new(e||n)(T(Nn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function bK(n,t){1&n&&Ht(0)}const x1=["*"];function CK(n,t){}const wK=function(n){return{animationDuration:n}},EK=function(n,t){return{value:n,params:t}},DK=["tabListContainer"],SK=["tabList"],AK=["tabListInner"],TK=["nextPaginator"],xK=["previousPaginator"],IK=["tabBodyWrapper"],MK=["tabHeader"];function kK(n,t){}function RK(n,t){1&n&&V(0,kK,0,0,"ng-template",10),2&n&&y("cdkPortalOutlet",x().$implicit.templateLabel)}function OK(n,t){1&n&&j(0),2&n&&we(x().$implicit.textLabel)}function PK(n,t){if(1&n){const e=je();g(0,"div",6),X("click",function(){const r=oe(e),o=r.$implicit,s=r.index,a=x(),l=sn(1);return se(a._handleClick(o,l,s))})("cdkFocusChange",function(r){const s=oe(e).index;return se(x()._tabFocusChanged(r,s))}),g(1,"div",7),V(2,RK,1,1,"ng-template",8),V(3,OK,1,1,"ng-template",null,9,Tn),v()()}if(2&n){const e=t.$implicit,i=t.index,r=sn(4),o=x();wt("mat-tab-label-active",o.selectedIndex===i),y("id",o._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||o.disableRipple),ot("tabIndex",o._getTabIndex(e,i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(2),y("ngIf",e.templateLabel)("ngIfElse",r)}}function LK(n,t){if(1&n){const e=je();g(0,"mat-tab-body",11),X("_onCentered",function(){return oe(e),se(x()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return oe(e),se(x()._setTabBodyWrapperHeight(r))}),v()}if(2&n){const e=t.$implicit,i=t.index,r=x();wt("mat-tab-body-active",r.selectedIndex===i),y("id",r._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),ot("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))}}const NK=new pe("MatInkBarPositioner",{providedIn:"root",factory:function FK(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let I1=(()=>{class n{constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._inkBarPositioner=r,this._animationMode=o}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe(dn(1)).subscribe(()=>{const i=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=i.left,r.style.width=i.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nt),p(NK),p(Un,8))},n.\u0275dir=he({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,i){2&e&&wt("_mat-animation-noopable","NoopAnimations"===i._animationMode)}}),n})();const BK=new pe("MatTabContent"),M1=new pe("MatTabLabel"),k1=new pe("MAT_TAB");let HK=(()=>{class n extends j8{constructor(e,i,r){super(e,i),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(En),p(k1,8))},n.\u0275dir=he({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[rt([{provide:M1,useExisting:n}]),De]}),n})();const VK=Ds(class{}),R1=new pe("MAT_TAB_GROUP");let O1=(()=>{class n extends VK{constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new L,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Cs(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(R1,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,M1,5),Vt(r,BK,7,bn)),2&e){let o;me(o=ge())&&(i.templateLabel=o.first),me(o=ge())&&(i._explicitContent=o.first)}},viewQuery:function(e,i){if(1&e&&Oe(bn,7),2&e){let r;me(r=ge())&&(i._implicitContent=r.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[rt([{provide:k1,useExisting:n}]),De,kn],ngContentSelectors:x1,decls:1,vars:0,template:function(e,i){1&e&&(Vn(),V(0,bK,1,0,"ng-template"))},encapsulation:2}),n})();const jK={translateTab:jr("translateTab",[qn("center, void, left-origin-center, right-origin-center",Lt({transform:"none"})),qn("left",Lt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),qn("right",Lt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ui("* => left, * => right, left => center, right => center",mi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ui("void => left-origin-center",[Lt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),mi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ui("void => right-origin-center",[Lt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),mi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let UK=(()=>{class n extends Es{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=w.EMPTY,this._leavingSub=w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ii(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(ro),p(En),p(Zt(()=>P1)),p(ht))},n.\u0275dir=he({type:n,selectors:[["","matTabBodyHost",""]],features:[De]}),n})(),qK=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=w.EMPTY,this._translateTabComplete=new L,this._onCentering=new Be,this._beforeCentering=new Be,this._afterLeavingCenter=new Be,this._onCentered=new Be(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(af((o,s)=>o.fromState===s.fromState&&o.toState===s.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(er,8),p(Bt))},n.\u0275dir=he({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),P1=(()=>{class n extends qK{constructor(e,i,r){super(e,i,r)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(er,8),p(Bt))},n.\u0275cmp=ze({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Oe(Es,5),2&e){let r;me(r=ge())&&(i._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[De],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(g(0,"div",0,1),X("@translateTab.start",function(o){return i._onTranslateTabStarted(o)})("@translateTab.done",function(o){return i._translateTabComplete.next(o)}),V(2,CK,0,0,"ng-template",2),v()),2&e&&y("@translateTab",ZS(3,EK,i._position,Wn(1,wK,i.animationDuration)))},dependencies:[UK],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[jK.translateTab]}}),n})();const L1=new pe("MAT_TABS_CONFIG"),zK=Ds(class{});let N1=(()=>{class n extends zK{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(p(Je))},n.\u0275dir=he({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&(ot("aria-disabled",!!i.disabled),wt("mat-tab-disabled",i.disabled))},inputs:{disabled:"disabled"},features:[De]}),n})();const F1=_s({passive:!0});let $K=(()=>{class n{constructor(e,i,r,o,s,a,l){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=s,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new L,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new L,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Be,this.indexFocused=new Be,s.runOutsideAngular(()=>{bs(e.nativeElement,"mouseleave").pipe(Qt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=ct(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=ys(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){bs(this._previousPaginator.nativeElement,"touchstart",F1).pipe(Qt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),bs(this._nextPaginator.nativeElement,"touchstart",F1).pipe(Qt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Ve("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new hf(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(dn(1)).subscribe(r),Mn(e,i,this._items.changes,this._itemsResized()).pipe(Qt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Qt(this._destroyed)).subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?gs:this._items.changes.pipe(ii(this._items),Kn(e=>new b(i=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Xy(1),Sn(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Di(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const i=this._items?this._items.toArray()[e]:null;return!!i&&!i.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:s}=i.elementRef.nativeElement;let a,l;"ltr"==this._getLayoutDirection()?(a=o,l=a+s):(l=this._tabListInner.nativeElement.offsetWidth-o,a=l-s);const c=this.scrollDistance,u=this.scrollDistance+r;au&&(this.scrollDistance+=l-u+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),q2(650,100).pipe(Qt(Mn(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(Ho),p(er,8),p(nt),p(Pn),p(Un,8))},n.\u0275dir=he({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),KK=(()=>{class n extends $K{constructor(e,i,r,o,s,a,l){super(e,i,r,o,s,a,l),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ct(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(Ho),p(er,8),p(nt),p(Pn),p(Un,8))},n.\u0275dir=he({type:n,inputs:{disableRipple:"disableRipple"},features:[De]}),n})(),YK=(()=>{class n extends KK{constructor(e,i,r,o,s,a,l){super(e,i,r,o,s,a,l)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(Ho),p(er,8),p(nt),p(Pn),p(Un,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,r){if(1&e&&Vt(r,N1,4),2&e){let o;me(o=ge())&&(i._items=o)}},viewQuery:function(e,i){if(1&e&&(Oe(I1,7),Oe(DK,7),Oe(SK,7),Oe(AK,7),Oe(TK,5),Oe(xK,5)),2&e){let r;me(r=ge())&&(i._inkBar=r.first),me(r=ge())&&(i._tabListContainer=r.first),me(r=ge())&&(i._tabList=r.first),me(r=ge())&&(i._tabListInner=r.first),me(r=ge())&&(i._nextPaginator=r.first),me(r=ge())&&(i._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&&wt("mat-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[De],ngContentSelectors:x1,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(Vn(),g(0,"button",0,1),X("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(o){return i._handlePaginatorPress("before",o)})("touchend",function(){return i._stopInterval()}),xe(2,"div",2),v(),g(3,"div",3,4),X("keydown",function(o){return i._handleKeydown(o)}),g(5,"div",5,6),X("cdkObserveContent",function(){return i._onContentChanges()}),g(7,"div",7,8),Ht(9),v(),xe(10,"mat-ink-bar"),v()(),g(11,"button",9,10),X("mousedown",function(o){return i._handlePaginatorPress("after",o)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),xe(13,"div",2),v()),2&e&&(wt("mat-tab-header-pagination-disabled",i._disableScrollBefore),y("matRippleDisabled",i._disableScrollBefore||i.disableRipple)("disabled",i._disableScrollBefore||null),m(5),wt("_mat-animation-noopable","NoopAnimations"===i._animationMode),m(6),wt("mat-tab-header-pagination-disabled",i._disableScrollAfter),y("matRippleDisabled",i._disableScrollAfter||i.disableRipple)("disabled",i._disableScrollAfter||null))},dependencies:[Ar,cf,I1],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),n})(),QK=0;class XK{}const ZK=Wa(Vo(class{constructor(n){this._elementRef=n}}),"primary");let JK=(()=>{class n extends ZK{constructor(e,i,r,o){super(e),this._changeDetectorRef=i,this._animationMode=o,this._tabs=new Oa,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=w.EMPTY,this._tabLabelSubscription=w.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Be,this.focusChange=new Be,this.animationDone=new Be,this.selectedTabChange=new Be(!0),this._groupId=QK++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=ct(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=ys(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=ys(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=ct(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=ct(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement;i.classList.remove(`mat-background-${this.backgroundColor}`),e&&i.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let r;for(let o=0;o{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(ii(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new XK;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Mn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){e.disabled||(this.selectedIndex=i.focusIndex=r)}_getTabIndex(e,i){return e.disabled?null:i===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(L1,8),p(Un,8))},n.\u0275dir=he({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[De]}),n})(),eY=(()=>{class n extends JK{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(L1,8),p(Un,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,r){if(1&e&&Vt(r,O1,5),2&e){let o;me(o=ge())&&(i._allTabs=o)}},viewQuery:function(e,i){if(1&e&&(Oe(IK,5),Oe(MK,5)),2&e){let r;me(r=ge())&&(i._tabBodyWrapper=r.first),me(r=ge())&&(i._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,i){2&e&&wt("mat-tab-group-dynamic-height",i.dynamicHeight)("mat-tab-group-inverted-header","below"===i.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[rt([{provide:R1,useExisting:n}]),De],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,i){1&e&&(g(0,"mat-tab-header",0,1),X("indexFocused",function(o){return i._focusChanged(o)})("selectFocusedIndex",function(o){return i.selectedIndex=o}),V(2,PK,5,15,"div",2),v(),g(3,"div",3,4),V(5,LK,1,11,"mat-tab-body",5),v()),2&e&&(y("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),m(2),y("ngForOf",i._tabs),m(1),wt("_mat-animation-noopable","NoopAnimations"===i._animationMode),m(2),y("ngForOf",i._tabs))},dependencies:[Fa,ci,_n,Es,Ar,v8,N1,P1,YK],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),n})(),tY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Xi,Pt,za,ia,td,ob,Pt]}),n})();const nY=["searchProject"],iY=["searchTableSelected"];function rY(n,t){if(1&n){const e=je();g(0,"button",17),X("click",function(){return oe(e),se(x(3).searchValue="")}),xe(1,"div",18),v()}if(2&n){const e=x(3);m(1),y("ngStyle",e.searchClearImage)}}function oY(n,t){if(1&n&&(g(0,"mat-option",19),j(1),v()),2&n){const e=t.$implicit;y("value",e.value),m(1),we(e.viewValue)}}function sY(n,t){1&n&&j(0),2&n&&Qe(" ",x(3).globals.languageConfLocal.list," ")}const H1=function(n){return{background:n}};function aY(n,t){if(1&n&&xe(0,"mat-cell",27),2&n){const e=t.$implicit,i=x(4);y("ngStyle",Wn(1,H1,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function lY(n,t){if(1&n&&(g(0,"div",33),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.name," ")}}function cY(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Oo(" ",e.number," / ",e.owner," ")}}function uY(n,t){if(1&n){const e=je();g(0,"mat-cell",28)(1,"mat-dialog-content",29),V(2,lY,2,1,"div",30),V(3,cY,2,2,"div",1),g(4,"div",31),X("click",function(r){const s=oe(e).index;return x(4).addProject(s),se(r.stopPropagation())})("dblclick",function(r){return r.stopPropagation()}),xe(5,"img",32),v()()()}if(2&n){const e=t.$implicit;m(2),y("ngIf",""!==e.name),m(1),y("ngIf",""!==e.number&&""!==e.owner)}}function dY(n,t){}function hY(n,t){if(1&n){const e=je();g(0,"mat-row",34),X("click",function(){const o=oe(e).$implicit;return se(x(4).toggleSelection(o))})("dblclick",function(){const o=oe(e).$implicit;return se(x(4).acceptEntryDblClick(o))}),V(1,dY,0,0,"ng-template"),v()}if(2&n){const e=t.$implicit,i=x(4);wt("isSelected",i.selection.isSelected(e)),y("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)("hidden",!(e.show&&!i.pointerList.has(e.pointer)))}}function pY(n,t){if(1&n&&(g(0,"div")(1,"mat-table",20,21),bi(3,22),V(4,aY,1,3,"mat-cell",23),Ci(),bi(5,24),V(6,uY,6,2,"mat-cell",25),Ci(),V(7,hY,2,7,"mat-row",26),v()()),2&n){const e=x(3);wi(e.tableWrapperClassName),m(1),y("dataSource",e.searchResults),m(6),y("matRowDefColumns",e.displayedColumns)}}function fY(n,t){if(1&n){const e=je();g(0,"div"),X("@shake.done",function(){return oe(e),se(x(3).shakeEnd("selectedProdAnimation"))}),j(1),v()}if(2&n){const e=x(3);y("@shake",e.animationStates.selectedProdAnimation),m(1),Qe(" ",e.globals.languageConfLocal.selected," ")}}function mY(n,t){if(1&n&&xe(0,"mat-cell",27),2&n){const e=t.$implicit,i=x(4);y("ngStyle",Wn(1,H1,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function gY(n,t){if(1&n&&(g(0,"div",33),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.name," ")}}function _Y(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Oo(" ",e.number," / ",e.owner," ")}}function vY(n,t){if(1&n){const e=je();g(0,"mat-cell",28)(1,"mat-dialog-content",29),V(2,gY,2,1,"div",30),V(3,_Y,2,2,"div",1),g(4,"div",37),X("click",function(r){const s=oe(e).index;return x(4).removeProject(s),se(r.stopPropagation())})("dblclick",function(r){return r.stopPropagation()}),xe(5,"img",38),v()()()}if(2&n){const e=t.$implicit;m(2),y("ngIf",""!==e.name),m(1),y("ngIf",""!==e.number&&""!==e.owner)}}function yY(n,t){if(1&n){const e=je();g(0,"mat-row",39),X("click",function(){const o=oe(e).$implicit;return se(x(4).toggleSelection(o))})("dblclick",function(){const o=oe(e).$implicit;return se(x(4).acceptEntryDblClick(o))}),v()}if(2&n){const e=t.$implicit,i=x(4);wt("isSelected",i.selection.isSelected(e)),y("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function bY(n,t){if(1&n&&(g(0,"div")(1,"mat-table",20,35),bi(3,22),V(4,mY,1,3,"mat-cell",23),Ci(),bi(5,24),V(6,vY,6,2,"mat-cell",25),Ci(),V(7,yY,1,6,"mat-row",36),v()()),2&n){const e=x(3);wi(e.tableWrapperClassName),m(1),y("dataSource",e.selectedProjects),m(6),y("matRowDefColumns",e.displayedColumns)}}function CY(n,t){1&n&&(g(0,"div"),j(1),Xe(2,"translate"),v()),2&n&&(m(1),we(Ze(2,1,"LC53482")))}function wY(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x(3);m(1),Qe(" ",e.globals.languageConfLocal.noProjectSelected," ")}}const EY=function(n){return{title:n}},DY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function SY(n,t){if(1&n){const e=je();g(0,"div"),Wt(1,2),g(2,"div",3)(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),j(6),Xe(7,"translate"),v(),g(8,"input",6),X("ngModelChange",function(r){return oe(e),se(x(2).searchValue=r)})("keyup.enter",function(){oe(e);const r=x(2);return se(r.search(r.curPointer))}),v(),V(9,rY,2,1,"button",7),v(),g(10,"input",8),X("click",function(){oe(e);const r=x(2);return se(r.search(r.curPointer))}),Xe(11,"translate"),v()(),g(12,"mat-form-field",9)(13,"mat-label"),j(14),Xe(15,"translate"),v(),g(16,"mat-select",10),X("valueChange",function(r){return oe(e),se(x(2).selectedDB=r)})("selectionChange",function(){oe(e);const r=x(2);return se(r.fetchSearch(r.selectedDB,r.curPointer))}),V(17,oY,2,2,"mat-option",11),v()(),g(18,"mat-tab-group",12),X("selectedIndexChange",function(r){return oe(e),se(x(2).curTabIndex=r)}),g(19,"mat-tab"),V(20,sY,1,1,"ng-template",13),V(21,pY,8,5,"div",14),v(),g(22,"mat-tab"),V(23,fY,2,2,"ng-template",13),V(24,bY,8,5,"div",14),v()(),V(25,CY,3,3,"ng-template",null,15,Tn),V(27,wY,2,1,"ng-template",null,16,Tn),v(),Wt(29,2),Xe(30,"translate"),Xe(31,"translate"),v()}if(2&n){const e=sn(26),i=sn(28),r=x(2);m(1),y("ngTemplateOutlet",r.modalHeader)("ngTemplateOutletContext",Wn(26,EY,r.globals.languageConfLocal.selectProject)),m(5),we(Ze(7,16,"LC53489")),m(2),y("ngModel",r.searchValue),m(1),y("ngIf",r.searchValue),m(1),Ot("value",Ze(11,18,"LC36251")),m(4),we(Ze(15,20,"LC53516")),m(2),y("value",r.selectedDB),m(1),y("ngForOf",r.databases),m(1),y("selectedIndex",r.curTabIndex),m(3),y("ngIf",r.searchResults.length>=1&&!r.allHidden)("ngIfElse",e),m(3),y("ngIf",r.selectedProjects.length>=1)("ngIfElse",i),m(5),y("ngTemplateOutlet",r.modalFooter)("ngTemplateOutletContext",Ki(28,DY,Ze(30,22,"LC73135"),Ze(31,24,"LC73136"),r.confirmAction.bind(r),r.cancelAction.bind(r)))}}function AY(n,t){if(1&n&&V(0,SY,32,33,"div",1),2&n){const e=x();y("ngIf",e.projectStatus>0&&!e.docToDoc)}}let TY=(()=>{class n extends sC{constructor(e,i,r,o,s,a,l){super(e,r,i,o,s,a),this.projectService=l,this.messageEvent=new Be,this.animationStates={},this.prefix="Projects: ",this.path="projects",this.searchResults=[],this.selectedProjects=[],this.pointerList=new Set,this.searchResultPointers=[],this.addedContact=!1,this.allHidden=!1,this.docToDoc=!1,this.pointerToName={},this.selectionToPointer={},this.animationStates.selectedProdAnimation="",this.curTabIndex=0,this.projectStatus=-1}ngOnInit(){super.ngOnInit(),this.tableWrapperClassName="Owa"===this.globals.curConnectorType?"tableWrapper":"tableWrapperVerseTabs"}shakeEle(e){this.animationStates[e]="shakestart"===this.animationStates[e]?"shakeend":"shakestart"}shakeEnd(e){this.animationStates[e]="shakeend",this.animationStates[e+"inProg"]=!1}getTemplate(){return this.modalTemp}addProject(e){if(this.searchResults.length>=e){const i=this.searchResults[e];this.searchResults[e].show=!1,i.formerIndex=e,this.shakeEle("selectedProdAnimation"),this.selectedProjects.push(i),this.renderSelectedView()}this.updateSelectedPointer(),this.checkIfAllHidden()}removeProject(e){const i=this.selectedProjects.splice(e,1)[0];void 0!==i.formerIndex&&(this.searchResults[i.formerIndex].show=!0),this.renderSelectedView(),this.updateSelectedPointer(),this.checkIfAllHidden()}renderSelectedView(){this.selectedProjTable&&this.selectedProjTable.renderRows()}generateSelectionArr(e){const i=this.addressService.currentAddressData;if(!this.addedContact){const r={value:i.name,viewValue:i.name,pointer:i.pointer};this.curPointer=i.pointer,this.selectionToPointer[i.name]=this.curPointer,this.pointerToName[this.curPointer]=i.name,this.databases.push(r)}for(const r of e)this.databases.push({value:r.alias,viewValue:r.title});this.databases.length>0&&(this.selectedDB=this.databases[0].value,this.fetchSearch(null,i.pointer))}search(e){this.curTabIndex=0,super.search(e)}fetchDBs(){const e={};this.data.passedData.docPointer?e.pointer=this.data.passedData.docPointer:e.onlyOptions=!0;const i=new Yt({fromObject:e});this.connection.getReqModal("projects",i).subscribe(r=>{"projectPointers"in r?(this.projectStatus=Number(r.projectStatus),0===this.projectStatus?this.openAnotherModal(this.next,this.data.passedData):Array.isArray(r.assignedProjects)&&r.assignedProjects.length>0?this.handleDocToDocPhases(r.assignedProjects,r.useOpportunityProjects):this.generateSelectionArr(r.databases)):this.openAnotherModal(this.next,this.data.passedData)})}fetchSearch(e,i){return i&&this.pointerToName[i]!==e&&(this.curPointer=void 0),e&&this.selectionToPointer[e]&&(i=this.selectionToPointer[e]),super.fetchSearch(e,i)}handleResult(e){this.updateSelectedPointer(),null!=e.projects&&Array.isArray(e.projects)&&e.projects.length>0?(this.searchResults=e.projects,this.searchResultPointers=e.projectPointers):this.searchResults=[],this.checkIfAllHidden()}updateSelectedPointer(){this.pointerList.clear();for(const e of this.selectedProjects)this.pointerList.add(e.pointer)}confirmAction(){this.selectedProjects.length<1&&2===this.projectStatus?this.translate.get("LC03593").subscribe(e=>{this.messageService.showError(e)}):this.projectService.handlePhases(Array.from(this.pointerList)).subscribe(e=>{Array.isArray(e)&&this.handlePhases(e).subscribe(()=>{this.data.passedData.projectPointers=Array.from(this.pointerList),this.openAnotherModal(this.next,this.data.passedData)})})}handleDocToDocPhases(e,i=!1){this.docToDoc=!0,this.projectService.handleDocToDocPhases(e,i).subscribe(r=>{r.projects.forEach(o=>this.pointerList.add(o)),this.handlePhases(r.phasesToCheck).subscribe(()=>{this.data.passedData.projectPointers=Array.from(this.pointerList),this.openAnotherModal(this.next,this.data.passedData)})})}handlePhases(e){return new b(i=>{if(Array.isArray(e)&&e.length>0){const r=e.splice(0,1)[0];r&&r.projectphases.length>0?this.openAnotherModal("projectPhase",{projectInfo:r})?.beforeClosed().subscribe(s=>{s?(s.phases&&Array.isArray(s.phases)&&s.phases.length>0&&(this.pointerList.has(s.parentPointer)&&this.pointerList.delete(s.parentPointer),s.phases.forEach(l=>this.pointerList.add(l))),this.handlePhases(e).subscribe(()=>{i.next(),i.complete()})):i.complete()}):(i.next(),i.complete())}else i.next(),i.complete()})}compareProject(e,i){return e.pointer===i.pointer}checkIfAllHidden(){this.allHidden=this.projectService.checkIfAllHidden(Array.from(this.pointerList),this.searchResultPointers)}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(pt),p(en),p(Ld),p(Rs),p(yK))},n.\u0275cmp=ze({type:n,selectors:[["app-search-project"]],viewQuery:function(e,i){if(1&e&&(Oe(nY,7),Oe(iY,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selectedProjTable=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De],decls:2,vars:0,consts:[["searchProject",""],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"searchInputWrapper"],[1,"searchInput"],["matInput","","type","text",3,"ngModel","ngModelChange","keyup.enter"],["matSuffix","","aria-label","Clear",3,"click",4,"ngIf"],["id","searchButton","type","button",1,"buttonSilverMiddle",3,"value","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["mat-stretch-tabs","",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[3,"class",4,"ngIf","ngIfElse"],["noResult",""],["noSelection",""],["matSuffix","","aria-label","Clear",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[3,"value"],[1,"searchTable",3,"dataSource"],["searchTableList",""],["matColumnDef","icon"],["class","searchIcon",3,"ngStyle",4,"matCellDef"],["matColumnDef","display"],["class","searchDisplay",4,"matCellDef"],["matRipple","","class","searchRow projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","hidden","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"searchIcon",3,"ngStyle"],[1,"searchDisplay"],[1,"no-select"],["class","bold",4,"ngIf"],[1,"overlay-list",3,"click","dblclick"],["src","assets/images/vwicn112.png",1,"projectButton"],[1,"bold"],["matRipple","",1,"searchRow","projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","hidden","click","dblclick"],["searchTableSelected",""],["matRipple","","class","searchRow projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"overlay-selected",3,"click","dblclick"],["src","assets/images/vwicn081.png",1,"projectButton"],["matRipple","",1,"searchRow","projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","click","dblclick"]],template:function(e,i){1&e&&V(0,AY,1,1,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,Qs,fo,Fo,ps,Sf,Ko,Gr,aC,ua,vo,Yo,vm,jd,Vd,ym,Ud,bm,Ar,eY,HK,O1,Pi],styles:[".searchInputWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.searchInput[_ngcontent-%COMP%]{width:calc(100% - 70px);display:block;padding-bottom:0!important}.searchIcon[_ngcontent-%COMP%]{width:30px;padding:0 10px 0 0!important;background-position:40% 50%!important}.searchRow[_ngcontent-%COMP%] .searchIcon[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%] .searchDisplay[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%]{border-bottom:0px}.searchRow[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.isSelected[_ngcontent-%COMP%]{background:rgb(224,239,255)!important}.searchRow[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;padding-right:5px}.searchRow[_ngcontent-%COMP%]:hover{background:rgba(224,239,255,.4)}.searchDisplay[_ngcontent-%COMP%], .searchTable[_ngcontent-%COMP%]{width:100%}.tableWrapper[_ngcontent-%COMP%], .tableWrapperVerse[_ngcontent-%COMP%], .tableWrapperVerseTabs[_ngcontent-%COMP%]{overflow:auto}.tableWrapper[_ngcontent-%COMP%]{max-height:50vh}.tableWrapperVerse[_ngcontent-%COMP%]{max-height:45vh}.tableWrapperVerseTabs[_ngcontent-%COMP%]{max-height:calc(45vh - 48px)}.overlay-list[_ngcontent-%COMP%], .overlay-selected[_ngcontent-%COMP%]{position:absolute;bottom:0;left:100%;right:0;overflow:hidden;width:0;height:100%;transition:.5s ease;box-shadow:none}.overlay-list[_ngcontent-%COMP%]{background-color:#a1f79b}.overlay-selected[_ngcontent-%COMP%]{background-color:#ff6a6a}.projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-list[_ngcontent-%COMP%], .projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-selected[_ngcontent-%COMP%]{width:30px;left:calc(100% - 30px);box-shadow:0 0 10px #999}.projectButton[_ngcontent-%COMP%]{margin:0;position:absolute;top:50%;left:calc(50% - 9px);transform:translateY(-50%)}#searchButton[_ngcontent-%COMP%]{height:100%;padding:4px;margin:0 0 5px;float:right;font-weight:700;display:flex}"],data:{animation:[jr("shake",[qn("shakestart",Lt({transform:"scale(1)"})),qn("shakeend",Lt({transform:"scale(1)"})),ui("shakestart => shakeend",mi("1000ms ease-in",R6([Lt({transform:"translate3d(-4px, 0, 0)",offset:.1}),Lt({transform:"translate3d(4px, 0, 0)",offset:.2}),Lt({transform:"translate3d(-4px, 0, 0)",offset:.3}),Lt({transform:"translate3d(4px, 0, 0)",offset:.4}),Lt({transform:"translate3d(-4px, 0, 0)",offset:.5}),Lt({transform:"translate3d(4px, 0, 0)",offset:.6}),Lt({transform:"translate3d(-4px, 0, 0)",offset:.7}),Lt({transform:"translate3d(4px, 0, 0)",offset:.8}),Lt({transform:"translate3d(-4px, 0, 0)",offset:.9})])))])]}}),n})();const xY=["projPhases"],IY=["selection"];function MY(n,t){if(1&n&&(g(0,"mat-list-option",5),j(1),v()),2&n){const e=t.$implicit;Ot("value",e.pointer),Ot("selected",e.selected),m(1),Qe(" ",e.name," ")}}const kY=function(n){return{title:n}},RY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function OY(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"p"),j(4),Xe(5,"translate"),v(),g(6,"p"),j(7),v(),g(8,"mat-selection-list",null,3),V(10,MY,2,3,"mat-list-option",4),v()(),Wt(11,1),Xe(12,"translate"),Xe(13,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(15,kY,Ze(1,7,"LC03411"))),m(4),we(Ze(5,9,"LC03410")),m(3),we(e.projectInfo.projectDisplay),m(3),y("ngForOf",e.projectInfo.projectphases),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(17,RY,Ze(12,11,"LC73135"),Ze(13,13,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let PY=(()=>{class n extends Hr{constructor(e,i,r){super(e),this.translate=e,this.messageService=i,this.globals=r}ngOnInit(){this.projectInfo=this.data.passedData.projectInfo}confirmAction(){const e=this.createResponse(this.convertToPointerArray(this.selection.selectedOptions));this.data.closeModal(e)}convertToPointerArray(e){const i=[];for(const r of e.selected)i.push(r.value);return i.length<1&&i.push(this.projectInfo.projectPointer),i}createResponse(e){const i={};return i.parentPointer=this.projectInfo.projectPointer,i.phases=e,i}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(en),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-select-create-label"]],viewQuery:function(e,i){if(1&e&&(Oe(xY,7),Oe(IY,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["projPhases",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody","phaseSelection"],["selection",""],["checkboxPosition","before",3,"value","selected",4,"ngFor","ngForOf"],["checkboxPosition","before",3,"value","selected"]],template:function(e,i){1&e&&V(0,OY,14,22,"ng-template",null,0,Tn)},dependencies:[ci,Qi,$o,Os,Pi]}),n})();const LY=["selMailAddr"],NY=["selAddr"];function FY(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" ",e.additional.database,": ")}}function BY(n,t){if(1&n&&(g(0,"div"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe("(",e.companyName,")")}}function HY(n,t){if(1&n){const e=je();g(0,"mat-list-option",6),X("dblclick",function(){const o=oe(e).index;return se(x(2).changeSelectedIndex(o))}),g(1,"div",7),V(2,FY,2,1,"div",8),g(3,"div"),j(4),v(),V(5,BY,2,1,"div",8),v()()}if(2&n){const e=t.$implicit,i=t.index,r=x(2);Ot("value",i),y("selected",i===r.addressService.addressIndex),m(2),y("ngIf",e.additional&&e.additional.database),m(2),we(e.name),m(1),y("ngIf",e.companyName)}}const VY=function(n){return{title:n}},jY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function UY(n,t){if(1&n&&(Wt(0,1),Xe(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),V(5,HY,6,5,"mat-list-option",5),v()(),Wt(6,1),Xe(7,"translate"),Xe(8,"translate")),2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(12,VY,Ze(1,6,"LC52163"))),m(3),y("multiple",!1),m(2),y("ngForOf",e.addresses),m(1),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(14,jY,Ze(7,8,"LC73135"),Ze(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let qY=(()=>{class n extends Hr{constructor(e,i,r,o){super(i),this.globals=e,this.translate=i,this.addressService=r,this.reloadService=o}ngOnInit(){super.ngOnInit(),this.checkForAddressData()}checkForAddressData(){this.addressService.processAddresses().subscribe({next:e=>{this.addresses=e},error:()=>{},complete:()=>{}})}changeSelectedIndex(e){this.addressService.addressIndex=e,this.confirmAction(e)}confirmAction(e){e||null!=this.selection._value&&Array.isArray(this.selection._value)&&this.selection._value.length>0&&(this.addressService.addressIndex=parseInt(this.selection._value[0],10)),this.closeAll()}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(Xt),p(Rs),p(yC))},n.\u0275cmp=ze({type:n,selectors:[["app-select-address"]],viewQuery:function(e,i){if(1&e&&(Oe(LY,7),Oe(NY,5)),2&e){let r;me(r=ge())&&(i.modalTemp=r.first),me(r=ge())&&(i.selection=r.first)}},features:[De],decls:2,vars:0,consts:[["selMailAddr",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["selAddr",""],["checkboxPosition","after","class","addrSel",3,"selected","value","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",1,"addrSel",3,"selected","value","dblclick"],[1,"listWrapper"],[4,"ngIf"]],template:function(e,i){1&e&&V(0,UY,9,19,"ng-template",null,0,Tn)},dependencies:[ci,_n,Qi,$o,Os,Pi],styles:["mat-list-option[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.modalBody[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{overflow:auto;max-height:60vh}.modalBody[_ngcontent-%COMP%] > mat-selection-list[_ngcontent-%COMP%]{padding-top:0}"]}),n})();const zY=["login"],GY=function(){return{title:"Login"}},WY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function $Y(n,t){if(1&n){const e=je();Wt(0,1),g(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),j(5),Xe(6,"translate"),v(),g(7,"input",5,6),X("ngModelChange",function(r){return oe(e),se(x().uname=r)})("focus",function(){return oe(e),se(sn(8).select())})("keyup.enter",function(){return oe(e),se(sn(14).focus())}),v()(),g(9,"mat-form-field",4)(10,"mat-label"),j(11),Xe(12,"translate"),v(),g(13,"input",7,8),X("ngModelChange",function(r){return oe(e),se(x().pwd=r)})("focus",function(){return oe(e),se(sn(14).select())})("keyup.enter",function(){return oe(e),se(x().confirmAction())}),v()()()(),Wt(15,1),Xe(16,"translate"),Xe(17,"translate")}if(2&n){const e=x();y("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",bv(16,GY)),m(5),we(Ze(6,8,"username")),m(2),y("ngModel",e.uname),m(4),we(Ze(12,10,"password")),m(2),y("ngModel",e.pwd),m(2),y("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(17,WY,Ze(16,12,"LC73135"),Ze(17,14,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let KY=(()=>{class n extends Hr{constructor(e,i,r,o){super(e),this.translate=e,this.connection=i,this.messageService=r,this.globals=o}ngOnInit(){}checkIfEmpty(e,i){return Ee(function*(){return!e||""===e||!i||""===i})()}confirmAction(){var e=this;return Ee(function*(){(yield e.checkIfEmpty(e.uname.trim(),e.pwd.trim()))?e.messageService.showError(e.globals.languageConfLocal.inputMissing):(yield e.connection.login(e.uname,e.pwd))&&e.closeAll()})()}}return n.\u0275fac=function(e){return new(e||n)(p(Xt),p(Nn),p(en),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-login"]],viewQuery:function(e,i){if(1&e&&Oe(zY,7),2&e){let r;me(r=ge())&&(i.modalTemp=r.first)}},features:[De],decls:2,vars:0,consts:[["login",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"inputWrapper"],[1,"loginInput"],["matInput","","type","text",3,"ngModel","ngModelChange","focus","keyup.enter"],["userInput",""],["matInput","","type","password",3,"ngModel","ngModelChange","focus","keyup.enter"],["passwordInput",""]],template:function(e,i){1&e&&V(0,$Y,18,22,"ng-template",null,0,Tn)},dependencies:[Qi,fo,Fo,ps,Ko,Gr,Yo,Pi],styles:[".loginInput[_ngcontent-%COMP%]{width:100%;display:block;padding-bottom:0!important}"]}),n})(),ol=(()=>{class n{constructor(e,i,r){this.waitList=e,this.globals=i,this.matDialog=r,this.modalTypeSource=new L,this.currentType=this.modalTypeSource.asObservable(),this.activeModals=[]}changeType(e){this.modalTypeSource.next(e)}setModalHeader(e){this.modalHeader=e}setModalFooter(e){this.modalFooter=e,this.modalItems=this.getModalItems(),this.waitList.accessWaitList("modalDesign").forEach(i=>{i.next(this.modalItems),i.complete(),this.waitList.clearWaitList("modalDesign")})}waitForModalDesign(){return new b(e=>{this.waitList.addToWaitList("modalDesign",e)})}getModalItems(){return this.modalItems?this.modalItems:{chooseOfficeDB:new Ei(aG,this.initModalData("searchProject")),selectContact:new Ei(wC,this.initModalData()),searchContact:new Ei(S1,this.initModalData("chooseOfficeDB")),searchTemplate:new Ei(lK,this.initModalData("chooseOfficeDB")),searchProject:new Ei(TY,this.initModalData("documentFile")),createContact:new Ei(i$,this.initModalData()),createTicket:new Ei(u$,this.initModalData()),documentFile:new Ei(T$,this.initModalData()),createAddressCompany:new Ei(wC,this.initModalData("createContact",{createType:"company"})),createAddressToCompany:new Ei(S1,this.initModalData("createContact",{type:"company",createType:"toCompany"})),createAddressPerson:new Ei(wC,this.initModalData("createContact",{createType:"person"})),createLabel:new Ei(j$,this.initModalData(null,{currentModal:this.newActive})),selectMailAddress:new Ei(vK,this.initModalData()),duplicate:new Ei(W$,this.initModalData()),projectPhase:new Ei(PY,this.initModalData(null,{currentModal:this.newActive})),addressSelection:new Ei(qY,this.initModalData(null,{currentModal:this.newActive})),login:new Ei(KY,this.initModalData())}}addActiveModal(e){this.globals.modalCacheFlag=!0,this.activeModals.push(e)}closeActiveModal(e){const i=this.activeModals.pop();i&&i.close(e),this.activeModals.length<1&&(this.globals.modalCacheFlag=!1,this.globals.clearModalTemps())}closeAllModals(){this.matDialog.closeAll(),this.activeModals=[]}initWebIntModal(){return this.modalHeader}get modalItemsPub(){return this.modalItems}get newActive(){return this.activeModals[this.activeModals.length-1]}initModalData(e=null,i,r=this.modalHeader,o=this.modalFooter){const s={nextType:e,modalHeader:r,modalFooter:o,closeModal:this.closeActiveModal.bind(this),closeAllModal:this.closeAllModals.bind(this),modalItems:this.modalItems};if(i)for(const a of Object.keys(i))s[a]=i[a];return s}}return n.\u0275fac=function(e){return new(e||n)(T(Ji),T(pt),T(As))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),V1=(()=>{class n{constructor(e){this.globals=e}waitForConnectorType(){return new b(e=>{null!=this.globals.curConnectorType&&(e.next(this.globals.curConnectorType),e.complete())})}get preview(){return"preview"in this.postData?this.postData.preview:null}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Gd=G(4856);let YY=(()=>{class n extends V1{constructor(e,i,r,o){super(e),this.messageService=i,this.authService=r,this.waitList=o,this.globals.curConnectorType="Owa",this.savedAttachments={},this.globals.curConnector=this,Office.context.platform!==Office.PlatformType.OfficeOnline&&(this.globals.isClient=!0),this.waitList.notifyWaitList("platform",!0),Office.context.mailbox.addHandlerAsync(Office.EventType.ItemChanged,this.itemChangeHandler.bind(this))}get isMailAlreadyDoc(){return!(!this.postData.ticketAlreadyDoc&&!this.postData.officeAlreadyDoc)}get curPostData(){return this.postData}get data(){return this.appData}set data(e){this.appData=e,this.initGlobalValues()}set alreadyDocumented(e){e.ticketAlreadyDoc&&(this.postData.ticketAlreadyDoc=e.ticketAlreadyDoc),e.officeAlreadyDoc&&(this.postData.officeAlreadyDoc=e.officeAlreadyDoc),this.setOpenExtension(this.postData.graphMailID,this.postData.ticketAlreadyDoc,this.postData.officeAlreadyDoc)}waitForCSS(){return new b(e=>{e.complete()})}getData(){return this.initGlobalValues()}checkMailType(){throw new Error("Method not implemented.")}adjustAttachments(){this.setAttachments(this.globals.curOWAMessageID)}updateAddressInfo(e){this.updateViewFunc=e}getPostData(){var e=this;return Ee(function*(){if(e.globals.attachmentsReady=!1,Office.context.mailbox.item){const i=Office.CoercionType.Text;Office.context.mailbox.item&&Office.context.mailbox.item?.body.getAsync(i,function(){var r=Ee(function*(o){o.status===Office.AsyncResultStatus.Failed?e.messageService.showError(o.error.message,o.error.name,!0):"gi"===e.globals.system?yield e.setPostDataGI(o,i):yield e.setPostDataBA(o,i)});return function(o){return r.apply(this,arguments)}}())}return!0})()}adjustToastPosition(){}filterObjectEntryOfArr(e){const i=[];for(const r of e)i.push(r.emailAddress);return i}setPostDataBA(e,i){var r=this;return Ee(function*(){""===r.appData.conversationId||(r.postData={fromMail:r.appData.from.emailAddress,toMail:r.filterObjectEntryOfArr(r.appData.to),ccMail:r.filterObjectEntryOfArr(r.appData.cc),bccMail:r.filterObjectEntryOfArr(r.appData.bcc),messageID:r.appData.internetMessageId,subject:r.appData.subject,body:{htmlBody:!!i.toString().toLowerCase().includes("html"),text:btoa(e.value)},type:i.toString(),date:new Date(r.appData.dateTimeModified).toISOString(),creationDate:new Date(r.appData.dateTimeModified).getTime(),changingDate:new Date(r.appData.dateTimeModified).getTime(),attachments:[],officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:"",mailType:"Incoming"})})()}setPostDataGI(e,i){var r=this;return Ee(function*(){r.postData={to:r.appData.to,from:r.appData.from,cc:r.appData.cc,subject:r.appData.subject,sender:r.appData.sender,contentType:i,body:e.value,date:new Date(r.appData.dateTimeModified).getTime(),messageID:r.appData.internetMessageId,preview:"",isIncoming:!0,attachments:[],officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""}})()}itemChangeHandler(){return Ee(function*(){window.location.reload()})()}checkDocumentedFlag(e){var i=this;return Ee(function*(){void 0!==e&&null!=e&&(yield i.graphClient.api(`/me/messages/${e}/extensions/GI8.BM`).responseType(Ur.RAW).get().then(function(){var o=Ee(function*(s){404===s.status?i.setOpenExtension(e):200===s.status?(s=yield s.json(),i.postData.officeAlreadyDoc=s.officeAlreadyDoc,i.postData.ticketAlreadyDoc=s.ticketAlreadyDoc):(s=yield s.json(),i.messageService.showError(s.error.message+" "+i.globals.languageConfLocal.graphRelog,"GRAPH ERROR",!0))});return function(s){return o.apply(this,arguments)}}()))})()}setOpenExtension(e,i=!1,r=!1){return Ee(function*(){})()}getMimeMessage(){var e=this;return Ee(function*(){let i=null,r=yield e.graphClient.api("/me/messages").filter(`internetMessageId eq '${e.appData.internetMessageId}'`).get();r=r.value,i=Array.isArray(r)&&r.length>0&&r.length>=1?r[0]:r;try{e.checkDocumentedFlag(i.id),i.length>0&&("gi"===e.globals.system?yield e.setMimeMessageDataGI(i):yield e.setMimeMessageDataBA(i))}catch(o){console.error(o),i=""}return i})()}setMimeMessageDataGI(e){var i=this;return Ee(function*(){i.postData=i.postData,i.postData.graphMailID=e.id,i.postData.date=new Date(e.sentDateTime).getTime(),i.postData.body=e.body.content,i.postData.contentType=e.body.contentType,i.postData.preview=(0,Gd.convert)(e.body.content,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),i.setIncomingOutgoing(e)})()}setMimeMessageDataBA(e){var i=this;return Ee(function*(){i.postData=i.postData,i.postData.graphMailID=e.id,i.postData.date=new Date(e.sentDateTime).toISOString(),i.postData.creationDate=new Date(e.createdDateTime).getTime(),i.postData.changingDate=new Date(e.lastModifiedDateTime).getTime(),i.postData.body={htmlBody:!!e.body.contentType.toLowerCase().includes("html"),text:Buffer.from(e.body.content).toString("base64")},i.postData.type=e.body.contentType,i.setIncomingOutgoing(e)})()}setIncomingOutgoing(e){var i=this;return Ee(function*(){const o=Office.context.mailbox.userProfile.emailAddress;e.sender.emailAddress.address.toLowerCase()===o.toLowerCase()?"gi"===i.globals.system?(i.postData=i.postData,i.postData.isIncoming=!1):(i.postData=i.postData,i.postData.mailType="Outgoing"):"gi"===i.globals.system?(i.postData=i.postData,i.postData.isIncoming=!0):(i.postData=i.postData,i.postData.mailType="Incoming")})()}setAttachments(e){var i=this;return Ee(function*(){i.globals.attachmentsReady=!0})()}waitForGraph(){return new b(e=>{this.waitList.addToWaitList("graphLoaded",e)})}initGlobalValues(){this.appData=Office.context.mailbox.item}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(en),T(Mc),T(Ji))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),j1=(()=>{class n extends V1{constructor(e,i,r,o){super(i),this.translate=e,this.globals=i,this.messageService=r,this.connection=o,this.adjustToastPosition(),this.globals.curConnectorType="Verse",this.globals.curConnector=this}waitForCSS(){return new b(e=>{e.next({main:{},overflowContainer:{}}),e.complete()})}getData(){throw new Error("Method not implemented.")}checkMailType(){throw new Error("Method not implemented.")}updateAddressInfo(e){throw new Error("Method not implemented.")}adjustAttachments(){throw new Error("Method not implemented.")}set data(e){this.appData=e,this.initGlobalValues()}get data(){return this.appData}set alreadyDocumented(e){}get isMailAlreadyDoc(){return!1}get curPostData(){return this.postData}adjustToastPosition(){this.messageService.changeClass("toast-bottom-center-verse")}getPostData(){var e=this;return Ee(function*(){e.connection.getReq("user",null,!0).subscribe(i=>{const r=e.appData.context;let o="";return r.body&&(o=r.body),"com.ibm.verse.widget.action.mailRead"===e.appData.actionId?e.postData={to:r.recipientTo,from:r.sender,cc:r.recipientCC,subject:r.subject,sender:r.sender,contentType:"text/html",body:o,preview:(0,Gd.convert)(o,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),date:new Date(r.timeSent).getTime(),messageID:r.unid,isIncoming:!(i.mail.toLowerCase()===r.sender.emailAddress.toLowerCase()||void 0!==r.sender.notesAddress&&i.mail.toLowerCase()===r.sender.notesAddress.toLowerCase())}:"com.ibm.verse.ext.person.action"===e.appData.actionId?e.postData={to:[null],from:r.profile.primaryEmail,cc:[null],subject:"",sender:r.profile.primaryEmail,contentType:"text/html",body:o,preview:(0,Gd.convert)(o,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),date:Date.now(),messageID:"no-unid",isIncoming:!1}:"com.ibm.verse.widget.action.mailCompose"===e.appData.actionId&&(e.postData={to:r.recipientTo,from:r.sender,cc:r.recipientCC,subject:r.subject,sender:r.sender,contentType:"text/html",body:o,preview:(0,Gd.convert)(o,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),date:Date.now(),messageID:"no-unid",isIncoming:!1}),!0})})()}initGlobalValues(){const e=this.appData.context;return"com.ibm.verse.widget.action.mailRead"===this.appData.actionId?(this.globals.actionsAllowed=!0,this.globals.curSubject=e.subject,this.globals.curMailUnid=e.unid,this.globals.curMailAddr=this.globals.ownMailAddr===e.sender.emailAddress?e.recipientTo[0]:e.sender.emailAddress,this.globals.curTo=e.recipientTo,this.globals.curFrom=e.sender,this.globals.curCC=e.recipientCC,this.globals.curMailAddrCount=e.recipientTo.length+e.recipientCC.length):"com.ibm.verse.ext.person.action"===this.appData.actionId?(this.globals.actionsAllowed=!1,this.globals.curSubject="",this.globals.curMailUnid="no-unid",this.globals.curMailAddr=e.profile.primaryEmail,this.globals.curTo=[],this.globals.curFrom={emailAddress:e.profile.primaryEmail},this.globals.curCC=[],this.globals.curMailAddrCount=0):"com.ibm.verse.widget.action.mailCompose"===this.appData.actionId&&(this.globals.actionsAllowed=!1,this.globals.createAllowed=!0,this.globals.curSubject=e.subject,this.globals.curMailUnid="no-unid",this.globals.curFrom=e.sender[0],this.composeFilterMails(e.recipientTo,e.recipientCC,e.sender[0])),this.getPostData()}composeFilterMails(e,i,r){const o=e.length,s=i.length,a=o+s;if(o<1&&a>0)this.translate.get("LC53485").subscribe(l=>{this.translate.get("to").subscribe(c=>{l=l.replace("{FIELD}",c),this.messageService.showError(l)})});else if(o<1)this.translate.get("LC53484").subscribe(l=>{this.messageService.showError(l)});else if(1===a&&e[0].emailAddress.includes("@"))this.globals.curMailAddr=e[0].emailAddress,this.globals.curTo=[],this.globals.curCC=[],this.globals.curMailAddrCount=0;else{let c,l=!1;const u=[];for(let h=0;h0||d.length>0?e[0].emailAddress:r.emailAddress,this.globals.curMailAddrCount=u.length+d.length,l&&u.length+d.length===0&&this.translate.get("LC53486").subscribe(h=>{this.messageService.showError(h)})}}}return n.\u0275fac=function(e){return new(e||n)(T(Xt),T(pt),T(en),T(Nn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QY=(()=>{class n{constructor(e,i,r,o,s,a){this.translate=e,this.globals=i,this.message=r,this.auth=o,this.waitlist=s,this.connection=a}checkForApp(){var e=this;return new b(i=>{try{Office.onReady(()=>{i.next(new YY(this.globals,this.message,this.auth,this.waitlist)),i.complete()})}catch{if(null!=sessionStorage.getItem("verseAppData")){const o=new j1(this.translate,this.globals,this.message,this.connection);o.data=JSON.parse(sessionStorage.getItem("verseAppData")),sessionStorage.clear(),i.next(o),i.complete()}else window.addEventListener("message",function(){var o=Ee(function*(s){e.verseHandler(s,i)});return function(s){return o.apply(this,arguments)}}(),!1)}})}verseHandler(e,i){var r=this;return Ee(function*(){if(sessionStorage.clear(),"com.ibm.verse.ping.application.loaded"===e.data.verseApiType){const o={verseApiType:"com.ibm.verse.application.loaded"};null!=e.source&&!(e.source instanceof MessagePort)&&!(e.source instanceof ServiceWorker)&&e.source.postMessage(o,e.origin)}if("com.ibm.verse.action.clicked"===e.data.verseApiType){const o=new j1(r.translate,r.globals,r.message,r.connection);o.data=e.data.verseApiData,i.next(o),i.complete()}})()}}return n.\u0275fac=function(e){return new(e||n)(T(Xt),T(pt),T(en),T(Mc),T(Ji),T(Nn))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fc=(()=>{class n{constructor(){this.thingToClose=new Map}addThingToClose(e,i){this.thingToClose.has(e)||this.thingToClose.set(e,i)}closeAll(e){this.thingToClose.forEach((i,r)=>{e&&e===r||i()})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function XY(n,t){1&n&&(g(0,"div"),xe(1,"app-redirect"),v())}function ZY(n,t){1&n&&xe(0,"app-contact-selector")}function JY(n,t){1&n&&xe(0,"app-info-shower")}function eQ(n,t){1&n&&xe(0,"app-project-selector")}function tQ(n,t){1&n&&xe(0,"app-tags-selector")}function nQ(n,t){1&n&&xe(0,"app-address-activities")}function iQ(n,t){if(1&n&&(g(0,"div",14),j(1),v()),2&n){const e=x(4);m(1),Qe(" ",e.globals.languageConfLocal.giLoginText," ")}}function rQ(n,t){if(1&n){const e=je();g(0,"div",11),j(1),V(2,iQ,2,1,"div",12),xe(3,"br"),g(4,"button",13),X("click",function(){return oe(e),se(x(3).crmLogin())}),j(5,"Login CRM"),v()()}if(2&n){const e=x(3);m(1),Qe(" ",e.globals.languageConfLocal.pleaseLogIn," "),m(1),y("ngIf","gi"===e.globals.system)}}function oQ(n,t){if(1&n&&(g(0,"div",10),xe(1,"app-item-documentor")(2,"app-loader")(3,"app-site-actions"),V(4,ZY,1,0,"app-contact-selector",6),V(5,JY,1,0,"app-info-shower",6),V(6,eQ,1,0,"app-project-selector",6),V(7,tQ,1,0,"app-tags-selector",6),V(8,nQ,1,0,"app-address-activities",6),V(9,rQ,6,2,"div",9),xe(10,"app-modal")(11,"app-webint-input"),v()),2&n){const e=x(2);y("ngStyle",e.newCSS.main),m(4),y("ngIf",e.globals.loggedIn),m(1),y("ngIf",e.globals.loggedIn),m(1),y("ngIf",e.globals.loggedIn),m(1),y("ngIf",e.globals.loggedIn),m(1),y("ngIf",e.globals.loggedIn),m(1),y("ngIf",!e.globals.loggedIn)}}function sQ(n,t){1&n&&(g(0,"div"),xe(1,"app-contact-creator"),v())}function aQ(n,t){1&n&&(g(0,"div"),xe(1,"app-about"),v())}function lQ(n,t){1&n&&(g(0,"div"),xe(1,"app-license-information"),v())}function cQ(n,t){if(1&n&&(g(0,"div",11),j(1),v()),2&n){const e=x(2);m(1),Qe(" ",e.globals.languageConfLocal.itemNotSupported," ")}}function uQ(n,t){if(1&n&&(xe(0,"input",3),g(1,"div",4),V(2,oQ,12,7,"div",5),V(3,sQ,2,0,"div",6),V(4,aQ,2,0,"div",6),V(5,lQ,2,0,"div",6),g(6,"div",7),xe(7,"mat-progress-spinner",8),v(),V(8,cQ,2,1,"div",9),v()),2&n){const e=x();m(1),y("ngStyle",e.newCSS.overflowContainer),m(1),y("ngIf",!e.globals.itemNotSupported&&"main"===e.globals.activeWindow),m(1),y("ngIf",!e.globals.itemNotSupported&&"contactCreation"===e.globals.activeWindow),m(1),y("ngIf",!e.globals.itemNotSupported&&"about"===e.globals.activeWindow),m(1),y("ngIf",!e.globals.itemNotSupported&&"license"===e.globals.activeWindow),m(2),y("diameter",30),m(1),y("ngIf",e.globals.itemNotSupported)}}let EC=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.modalService=e,this.initService=i,this.connectorFactory=r,this.graphAuthService=o,this.globals=s,this.lsm=a,this.connectionService=l,this.dps=c,this.title="Business Mail",this.newCSS={main:{},overflowContainer:{}},this.isInit=!1}ngOnInit(){let e=Office.context.mailbox.item;(!e||e.itemClass&&(e.itemClass.startsWith("IPM.Schedule.Meeting.Resp")||e.itemClass.startsWith("IPM.Schedule.Meeting.Canceled")))&&(this.globals.itemNotSupported=!0),this.graphAuthService.handleRedirectObservable().subscribe({next:i=>{console.log("REDIRECT SUCCESSFULL"),console.log(i)},error:i=>console.log(i)}),this.globals.isRedirectPage||(this.connectorFactory.checkForApp().subscribe(i=>{this.connector=i,this.initConnectorData()}),Office.context.mailbox.addHandlerAsync(Office.EventType.ItemChanged,this.itemChangeHandler.bind(this)),this.modalService.waitForModalDesign().subscribe(()=>{this.initModalItems()}),this.initService.waitForInit().subscribe(i=>{this.isInit=i}),window.addEventListener("keydown",this.ownReloadAndESC)),window.dps=this.dps,this.globals.activeWindow="main",window.innerHeight>0&&window.innerWidth>0&&setInterval(()=>{let i=(new Date).toString();this.lsm.setValue(tn.taskpaneActive,i)},1e3)}itemChangeHandler(){return Ee(function*(){window.location.reload()})()}initModalItems(){this.modalItems=this.modalService.getModalItems(),this.isInit=!0}initConnectorData(){this.connector.waitForCSS().subscribe(e=>{this.newCSS=e}),this.connector.getData()}ownReloadAndESC(e){if(116===(e.which||e.keyCode)){if("Owa"===this.globals.curConnectorType)window.location.reload();else if(sessionStorage.setItem("verseAppData",JSON.stringify(this.globals.curConnector.data)),!window.location.href.includes("index.html")){let i="index.html";window.location.href.endsWith("/")||(i="/"+i),window.location.href+=i}}else if(27===e.keyCode)return window.dps.closeAll(),setTimeout(()=>{document.getElementById("focusDiv")?.focus()},100),void(e.cancelBubble=!0)}get isInit(){return this.init}set isInit(e){this.init=e}get mItems(){return this.modalItems}openGraphLogin(){}crmLogin(){null===window.localStorage.getItem("webInt")?this.openWebIntModal():this.connectionService.connect().subscribe(()=>{})}openWebIntModal(){this.connectionService.waitForWebIntModal().subscribe(e=>{e()})}doAttachmentsRead(){let e=Office.context.mailbox.item;e?.getAttachmentContentAsync(e.attachments[0].id,i=>{})}doAttachmentsCompose(){let e=Office.context.mailbox.item;e?.getAttachmentsAsync(i=>{e?.getAttachmentContentAsync(i.value[0].id,r=>{})})}}return n.\u0275fac=function(e){return new(e||n)(p(ol),p(rC),p(QY),p(tl),p(pt),p(Br),p(Nn),p(Fc))},n.\u0275cmp=ze({type:n,selectors:[["app-root"]],decls:4,vars:2,consts:[["rel","stylesheet","href","https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,100,0,-25"],[4,"ngIf","ngIfElse"],["app",""],["id","focusDiv",2,"position","absolute","width","0px","height","0px","overflow","hidden","opacity","0","filter","alpha(opacity=0)"],["id","overflowContainer",3,"ngStyle"],["id","main",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["id","loadingSpinner",2,"display","none","width","100%","height","100%","position","absolute","z-index","99999","top","0px","left","0px","background-color","rgba(255,255,255,0.5)"],["mode","indeterminate",2,"position","absolute","z-index","9999","top","calc(50vh - 15px)","left","calc(50vw - 15px)",3,"diameter"],["class","notSupported",4,"ngIf"],["id","main",3,"ngStyle"],[1,"notSupported"],["class","notSupportedInner",4,"ngIf"],["mat-flat-button","",2,"width","100%","margin-top","1em","margin-bottom","1em","background-color","#0F6CBD","color","white",3,"click"],[1,"notSupportedInner"]],template:function(e,i){if(1&e&&(xe(0,"link",0),V(1,XY,2,0,"div",1),V(2,uQ,9,7,"ng-template",null,2,Tn)),2&e){const r=sn(3);m(1),y("ngIf",i.globals.isRedirectPage)("ngIfElse",r)}},styles:['.notSupportedInner[_ngcontent-%COMP%], .notSupported[_ngcontent-%COMP%]{margin:auto;padding-top:30px;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}#overflowContainer[_ngcontent-%COMP%]{height:100%;overflow:auto}#overflowContainer[_ngcontent-%COMP%] > #main[_ngcontent-%COMP%]{height:100%;width:100%;padding:0 12px}.notSupported[_ngcontent-%COMP%]{width:90%}.notSupportedInner[_ngcontent-%COMP%]{width:100%}']}),n})();function DC(n,t=fc){const i=function dQ(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-t.now():Math.abs(n);return r=>r.lift(new hQ(i,t))}class hQ{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new SC(t,this.delay,this.scheduler))}}class SC extends D{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,r=t.scheduler,o=t.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(t,s)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(SC.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new pQ(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(or.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(or.createComplete()),this.unsubscribe()}}class pQ{constructor(t,e){this.time=t,this.notification=e}}const fQ=["mat-menu-item",""];function mQ(n,t){1&n&&(El(),g(0,"svg",2),xe(1,"polygon",3),v())}const U1=["*"];function gQ(n,t){if(1&n){const e=je();g(0,"div",0),X("keydown",function(r){return oe(e),se(x()._handleKeydown(r))})("click",function(){return oe(e),se(x().closed.emit("click"))})("@transformMenu.start",function(r){return oe(e),se(x()._onAnimationStart(r))})("@transformMenu.done",function(r){return oe(e),se(x()._onAnimationDone(r))}),g(1,"div",1),Ht(2),v()()}if(2&n){const e=x();y("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),ot("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Sm={transformMenu:jr("transformMenu",[qn("void",Lt({opacity:0,transform:"scale(0.8)"})),ui("void => enter",mi("120ms cubic-bezier(0, 0, 0.2, 1)",Lt({opacity:1,transform:"scale(1)"}))),ui("* => void",mi("100ms 25ms linear",Lt({opacity:0})))]),fadeInItems:jr("fadeInItems",[qn("showing",Lt({opacity:1})),ui("void => *",[Lt({opacity:0}),mi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},_Q=new pe("MatMenuContent"),AC=new pe("MAT_MENU_PANEL"),vQ=Vo(Ds(class{}));let Wd=(()=>{class n extends vQ{constructor(e,i,r,o,s){super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new L,this._focused=new L,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class n{constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Oa,this._tabSubscription=w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new L,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Be,this.close=this.closed,this.panelId="mat-menu-panel-"+bQ++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=ct(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ct(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new hf(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ii(this._directDescendantItems),Kn(e=>Mn(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ii(this._directDescendantItems),Kn(i=>Mn(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:Di(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(dn(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ii(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nt),p(q1),p(Bt))},n.\u0275dir=he({type:n,contentQueries:function(e,i,r){if(1&e&&(Vt(r,_Q,5),Vt(r,Wd,5),Vt(r,Wd,4)),2&e){let o;me(o=ge())&&(i.lazyContent=o.first),me(o=ge())&&(i._allItems=o),me(o=ge())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&Oe(bn,5),2&e){let r;me(r=ge())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),z1=(()=>{class n extends $d{constructor(e,i,r,o){super(e,i,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nt),p(q1),p(Bt))},n.\u0275cmp=ze({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&ot("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[rt([{provide:AC,useExisting:n}]),De],ngContentSelectors:U1,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(Vn(),V(0,gQ,3,6,"ng-template"))},dependencies:[Fa],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Sm.transformMenu,Sm.fadeInItems]},changeDetection:0}),n})();const G1=new pe("mat-menu-scroll-strategy"),wQ={provide:G1,deps:[ar],useFactory:function CQ(n){return()=>n.scrollStrategies.reposition()}},W1=_s({passive:!0});let EQ=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=w.EMPTY,this._hoverSubscription=w.EMPTY,this._menuCloseSubscription=w.EMPTY,this._handleTouchStart=d=>{mf(d)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Be,this.onMenuOpen=this.menuOpened,this.menuClosed=new Be,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof $d?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,W1),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,W1),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof $d&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Qt(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof $d?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(Sn(r=>"void"===r.toState),dn(1),Qt(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new vc({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",s="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,s)):e.setPositionClasses(o,s)})}_setPosition(e,i){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[s,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[u,d]=[r,o],h=0;if(this.triggersSubmenu()){if(d=r="before"===e.xPosition?"start":"end",o=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const f=this._parentMaterialMenu.items.first;this._parentInnerPadding=f?f._getHostElement().offsetTop:0}h="bottom"===s?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l="top"===s?"bottom":"top",c="top"===a?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:u,overlayY:s,offsetY:h},{originX:o,originY:l,overlayX:d,overlayY:s,offsetY:h},{originX:r,originY:c,overlayX:u,overlayY:a,offsetY:-h},{originX:o,originY:c,overlayX:d,overlayY:a,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Mn(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ve(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Sn(s=>s!==this._menuItemInstance),Sn(()=>this._menuOpen)):Ve(),i)}_handleMousedown(e){ff(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Sn(e=>e===this._menuItemInstance&&!e.disabled),DC(0,sb)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof $d&&this.menu._isAnimating?this.menu._animationDone.pipe(dn(1),DC(0,sb),Qt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Cs(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(p(ar),p(Je),p(En),p(G1),p(AC,8),p(Wd,10),p(er,8),p(_o),p(nt))},n.\u0275dir=he({type:n,hostVars:3,hostBindings:function(e,i){1&e&&X("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&ot("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),$1=(()=>{class n extends EQ{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[De]}),n})(),DQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[wQ],imports:[Xi,Pt,ia,yc,_c,Pt]}),n})();function SQ(n,t){if(1&n){const e=je();g(0,"div",17),X("click",function(){return oe(e),se(x(2).toggleClass(2))}),Xe(1,"translate"),v()}if(2&n){const e=x(2);wi(e.iconConfigLocal[2].model.classAssignment[e.iconConfigLocal[2].model.value]),Ot("title",Ze(1,5,e.iconConfigLocal[2].model.titleLC[e.iconConfigLocal[2].model.value])),y("ngStyle",e.configIcon)}}function AQ(n,t){if(1&n){const e=je();g(0,"div",18),X("click",function(){return oe(e),se(x(2).toggleClass(1))}),Xe(1,"translate"),v()}if(2&n){const e=x(2);wi(e.iconConfigLocal[1].model.classAssignment[e.iconConfigLocal[1].model.value]),Ot("title",Ze(1,5,e.iconConfigLocal[1].model.titleLC[e.iconConfigLocal[1].model.value])),y("ngStyle",e.configIcon)}}function TQ(n,t){if(1&n){const e=je();g(0,"div",12)(1,"div",13),X("click",function(){return oe(e),se(x().reload())}),v(),V(2,SQ,2,7,"div",14),V(3,AQ,2,7,"div",15),g(4,"div",16),X("click",function(){return oe(e),se(x().toggleClass(0))}),Xe(5,"translate"),v()()}if(2&n){const e=x();m(1),Ot("title",e.globals.languageConfLocal.reload),y("ngStyle",e.reloadImg),m(1),y("ngIf","gi"===e.globals.system&&(e.globals.actionsAllowed||e.globals.createAllowed)),m(1),y("ngIf",e.isReadMode),m(1),wi(e.iconConfigLocal[0].model.classAssignment[e.iconConfigLocal[0].model.value]),Ot("title",Ze(5,9,e.iconConfigLocal[0].model.titleLC[e.iconConfigLocal[0].model.value])),y("ngStyle",e.configIcon)}}function xQ(n,t){if(1&n){const e=je();g(0,"li",9),X("click",function(){return oe(e),se(x().connectionService.logout())}),j(1),v()}if(2&n){const e=x();m(1),Qe(" ",e.globals.languageConfLocal.logout," ")}}let IQ=(()=>{class n{constructor(e,i,r,o,s,a){this.globals=e,this.connectionService=i,this.createService=r,this.ren=o,this.datasource=s,this.authService=a,this.enteredButton=!1,this.isMatMenuOpen=!1,this.isMatMenu2Open=!1,this.loggedIn=!1,this.iconConfigLocal=n1,this.path="config",this.userName="Login",this.reloadImg={background:"no-repeat url(assets/images/icon_refresh_no_background.png)"},this.configIcon={background:"transparent url(assets/images/icons_business_mail.png) no-repeat"},this.configRestObj={},this.createService.config=this.iconConfigLocal}ngOnInit(){this.waitForUserName(),null===window.localStorage.getItem("webInt")&&this.openWebIntModal();let e=Office.context.mailbox.item;console.log(e),e&&(this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync),console.log(this.isReadMode),this.initConfig()}menuEnter(){this.isMatMenuOpen=!0,this.isMatMenu2Open&&(this.isMatMenu2Open=!1)}menuLeave(e,i){setTimeout(()=>{this.isMatMenu2Open||this.enteredButton?this.isMatMenuOpen=!1:(this.isMatMenuOpen=!1,e.closeMenu(),i&&(this.ren.removeClass(i._elementRef.nativeElement,"cdk-focused"),this.ren.removeClass(i._elementRef.nativeElement,"cdk-program-focused")))},80)}buttonEnter(e,i){setTimeout(()=>{this.prevButtonTrigger&&this.prevButtonTrigger!==e?(this.prevButtonTrigger.closeMenu(),this.prevButtonTrigger=e,this.isMatMenuOpen=!1,this.isMatMenu2Open=!1,e.openMenu()):this.isMatMenuOpen?(this.enteredButton=!0,this.prevButtonTrigger=e):(this.enteredButton=!0,this.prevButtonTrigger=e,e.openMenu(),i&&(this.ren.removeClass(i._elementRef.nativeElement,"cdk-focused"),this.ren.removeClass(i._elementRef.nativeElement,"cdk-program-focused")))})}buttonLeave(e){setTimeout(()=>{this.enteredButton&&!this.isMatMenuOpen&&e.closeMenu(),this.isMatMenuOpen?this.enteredButton=!1:e.closeMenu()},100)}reload(){this.connectionService.reload()}openWebIntModal(){this.connectionService.waitForWebIntModal().subscribe(e=>{e()})}openConnectWindow(){"Login"===this.userName&&(null===window.localStorage.getItem("webInt")?this.openWebIntModal():this.connectionService.connect().subscribe(()=>{}))}openGraphLogin(){}openLicenses(){this.globals.activeWindow="about"}toggleClass(e,i=!0){if(e{},error:a=>{},complete:()=>{}})}else this.configData&&this.configData.createAddress&&i&&this.createService.toggleOpen();else localStorage.setItem(r.name,r.value),("openMail"===r.name||"deleteAttachments"===r.name)&&(this.globals[r.name]=Boolean(r.value),"deleteAttachments"===r.name&&"Owa"===this.globals.curConnectorType&&this.globals.curConnector.adjustAttachments())}}waitForUserName(){this.connectionService.processPath().subscribe(()=>{this.connectionService.getUserName().subscribe(e=>{"gi"===this.globals.system?(this.globals.ownMailAddr=e.mail,this.userName=e.name):this.userName=e,this.loggedIn=!0,this.globals.loggedIn=!0})})}changeIcon(e,i){return e.value=i[(i.indexOf(e.value)+1)%i.length],e}initConfig(){"gi"===this.globals.system?this.connectionService.getReqNoCache(this.path,null).subscribe({next:e=>{this.initConfigClasses(e)},error:e=>{this.connectionService.processPath().subscribe(()=>{})},complete:()=>{}}):this.initConfigClasses(null)}initConfigClasses(e){this.configRestObj=e;const i={};let r=0;for(const o of this.iconConfigLocal){const s=o.model.name;if("gi"===this.globals.system){let a;a=a?this.configData[s]:{inRest:!1,index:0},(e[s]||""===e[s])&&(o.model.value=e[s],a.inRest=!0,("deleteAttachments"===s||"openMail"===s)&&(this.globals[s]=Boolean(e[s]))),i[s]=a,a.index=r,r++}else if("deleteAttachments"===s||"openMail"===s){let a=localStorage.getItem(s);null==a?(a="",localStorage.setItem(s,a)):(this.globals[s]=Boolean(a),o.model.value="1"===a||""===a?a:"")}}this.configData=i}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(Nn),p(r1),p(oo),p(bo),p(Mc))},n.\u0275cmp=ze({type:n,selectors:[["app-site-actions"]],decls:18,vars:6,consts:[["id","actionsHeader"],["id","actionButtons"],["class","clearfix",4,"ngIf"],["id","userMenu"],["id","userName",1,"actionHeaderComponent",3,"click"],["id","userMenuIcon","mat-button","","src","assets/images/DropDownArrowOffsetRight.png",1,"actionHeaderComponent","right",3,"matMenuTriggerFor"],["button","","userMenuTrigger","matMenuTrigger"],["direction","down","yPosition","below","xPosition","before",3,"hasBackdrop"],["userMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["firstEle",""],["class","","mat-menu-item","",3,"click",4,"ngIf"],[1,"clearfix"],["id","reload",1,"widgetReload",3,"title","ngStyle","click"],["id","openCreate",3,"class","title","ngStyle","click",4,"ngIf"],["id","openMail",3,"class","title","ngStyle","click",4,"ngIf"],["id","deleteAttachments",3,"title","ngStyle","click"],["id","openCreate",3,"title","ngStyle","click"],["id","openMail",3,"title","ngStyle","click"]],template:function(e,i){if(1&e&&(g(0,"div",0)(1,"div",1),V(2,TQ,6,11,"div",2),v(),g(3,"div",3)(4,"div",4),X("click",function(){return i.openConnectWindow()}),j(5),v(),xe(6,"img",5,6),v(),g(9,"mat-menu",7,8)(11,"span")(12,"li",9,10),X("click",function(){return i.openWebIntModal()}),j(14),v(),V(15,xQ,2,1,"li",11),g(16,"li",9),X("click",function(){return i.openLicenses()}),j(17," Info "),v()()()()),2&e){const r=sn(10);m(2),y("ngIf",i.globals.loggedIn),m(3),Qe(" ",i.userName," "),m(1),y("matMenuTriggerFor",r),m(3),y("hasBackdrop",!1),m(5),Qe(" ",i.globals.languageConfLocal.webIntConfig," "),m(1),y("ngIf",i.loggedIn)}},dependencies:[_n,Qs,z1,Wd,$1,Pi],styles:[".widgetReload[_ngcontent-%COMP%]{background-position:1px 2px!important;float:left;margin-right:2px}.widgetReload[_ngcontent-%COMP%], .widgetOptions[_ngcontent-%COMP%], .widgetLogin[_ngcontent-%COMP%]{display:inline-block;width:21px;height:22px;text-decoration:none;color:#2a5a8b;cursor:pointer}.actionHeaderComponent[_ngcontent-%COMP%]{display:inline-block}.mat-menu-item[_ngcontent-%COMP%]{font:400 12px/20px Arial,Verdana,Helvetica,sans-serif;height:100%;padding-top:10px;padding-bottom:10px}#userMenu[_ngcontent-%COMP%]{height:20px;cursor:pointer}#userMenuIcon[_ngcontent-%COMP%]{margin-top:2px;margin-left:4px}#actionsHeader[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-top:2px;padding-bottom:2px;background-color:#f28e001a;border-radius:3px}.bmPlus[_ngcontent-%COMP%], .bmMinus[_ngcontent-%COMP%], .bmDocOFF[_ngcontent-%COMP%], .bmDocON[_ngcontent-%COMP%], .bmAttachInclude[_ngcontent-%COMP%], .bmAttachExclude[_ngcontent-%COMP%]{float:left;width:22px;height:21px;margin-right:2px;cursor:pointer}.bmDocOFF[_ngcontent-%COMP%]{background-position:-88px 0px!important}.bmDocON[_ngcontent-%COMP%]{background-position:-110px 0px!important}.bmMinus[_ngcontent-%COMP%]{background-position:-66px -21px!important}.bmPlus[_ngcontent-%COMP%]{background-position:-44px -21px!important}.bmAttachInclude[_ngcontent-%COMP%]{background-position:-22px -21px!important}.bmAttachExclude[_ngcontent-%COMP%]{background-position:0px -21px!important}"]}),n})();function MQ(n,t){1&n&&xe(0,"div",11)}function kQ(n,t){if(1&n&&(g(0,"div",1),V(1,MQ,1,0,"div",2),g(2,"div",3),xe(3,"div",4),g(4,"div",5),xe(5,"div",6)(6,"div",7),v(),g(7,"div",8),xe(8,"div",9)(9,"div",10),v()()()),2&n){const e=x();m(1),y("ngIf",!e.isModal)}}let RQ=(()=>{class n{constructor(e){this.loader=e,this.loaderActive=!1,this.isModal=!1}ngOnInit(){this.loader.connectToService().subscribe(e=>{this.changeState(e.activate,e.modal)})}changeState(e,i=this.isModal){setTimeout(()=>{this.loaderActive=e,this.isModal=i},1)}}return n.\u0275fac=function(e){return new(e||n)(p(Lc))},n.\u0275cmp=ze({type:n,selectors:[["app-loader"]],decls:1,vars:1,consts:[["class","loadingContainer",4,"ngIf"],[1,"loadingContainer"],["class","blank-background",4,"ngIf"],[1,"shadow-messagebox"],["id","loadingFiller"],[1,"loaderContainerLeft"],[1,"loader-left"],[1,"loader-bottom"],[1,"loaderContainerRight"],[1,"loader-right"],[1,"loader-top"],[1,"blank-background"]],template:function(e,i){1&e&&V(0,kQ,10,1,"div",0),2&e&&y("ngIf",i.loaderActive)},dependencies:[_n],styles:['.shadow[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:99;background-color:#eee;opacity:.5;filter:alpha(opacity=50);color:#111;font-size:20px;font-weight:700;font-style:normal;text-align:center}.shadow-transparent[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:99;background-color:#fff;opacity:0;filter:alpha(opacity=0);color:#fff;font-size:20px;font-weight:700;font-style:normal;text-align:center}.shadow-messagebox[_ngcontent-%COMP%], .blank-background[_ngcontent-%COMP%]{height:100%;width:100%;position:absolute;top:0;left:0}.shadow-messagebox[_ngcontent-%COMP%]{z-index:9999;background-color:#000;opacity:.4;filter:alpha(opacity=50);color:#111;font-size:20px;font-weight:700;font-style:normal;text-align:center}.blank-background[_ngcontent-%COMP%]{z-index:9900;background-color:#fff}.loader-left[_ngcontent-%COMP%]{position:relative;top:0;left:0;height:41px;width:11px;box-shadow:inset 0 41px gray;animation:fillAnimationLeft 3s linear infinite normal}.loader-right[_ngcontent-%COMP%]{position:absolute;top:0;left:17px;height:41px;width:11px;box-shadow:inset 0 -41px gray;animation:fillAnimationRight 3s linear infinite normal}.loader-bottom[_ngcontent-%COMP%]{position:relative;top:-11px;left:0px;height:11px;width:28px;box-shadow:inset 28px 0 gray;animation:fillAnimationBottom 3s linear infinite normal}.loader-top[_ngcontent-%COMP%]{position:absolute;top:0px;left:0px;height:11px;width:28px;content:"";box-shadow:inset -28px 0 gray;animation:fillAnimationTop 3s linear infinite normal}.loaderContainerLeft[_ngcontent-%COMP%], .loaderContainerRight[_ngcontent-%COMP%]{height:41px;width:28px;overflow:hidden;position:absolute;display:inline-block}.loaderContainerLeft[_ngcontent-%COMP%]{left:calc(50% - 7px)}.loaderContainerRight[_ngcontent-%COMP%]{left:calc(50% + 7px)}#loadingFiller[_ngcontent-%COMP%]{height:calc(50% - 20.5px)}#shadowBox[_ngcontent-%COMP%]{display:none}@keyframes fillAnimationLeft{0%{box-shadow:inset 0 0 gray;top:0}20%{box-shadow:inset 0 41px gray;top:0}40%{box-shadow:inset 0 41px gray;top:0}60%{box-shadow:inset 0 28px gray;top:41px}80%{box-shadow:inset 0 28px gray;top:41px}to{box-shadow:inset 0 28px gray;top:41px}}@keyframes fillAnimationRight{0%{box-shadow:inset 0 0 gray;top:0}20%{box-shadow:inset 0 -41px gray;top:0}40%{box-shadow:inset 0 -41px gray;top:0}60%{box-shadow:inset 0 -28px gray;top:-41px}80%{box-shadow:inset 0 -28px gray;top:-41px}to{box-shadow:inset 0 -28px gray;top:-41px}}@keyframes fillAnimationBottom{0%{box-shadow:inset 0 0 gray;left:0px}20%{box-shadow:inset 0 0 gray;left:11px}40%{box-shadow:inset 28px 0 gray;left:11px}41%{box-shadow:inset 28px 0 gray;left:0px}59%{box-shadow:inset 28px 0 gray;left:0px}75%{box-shadow:inset 28px 0 gray;left:28px}to{box-shadow:inset 28px 0 gray;left:28px}}@keyframes fillAnimationTop{0%{box-shadow:inset 0 0 gray;left:0px}20%{box-shadow:inset 0 0 gray;left:-11px}40%{box-shadow:inset -28px 0 gray;left:-11px}41%{box-shadow:inset -28px 0 gray;left:0px}59%{box-shadow:inset -28px 0 gray;left:0px}75%{box-shadow:inset -28px 0 gray;left:-28px}to{box-shadow:inset -28px 0 gray;left:-28px}}']}),n})();function K1(n){return new Se(3e3,!1)}function pX(){return typeof window<"u"&&typeof window.document<"u"}function TC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ha(n){switch(n.length){case 0:return new ld;case 1:return n[0];default:return new CI(n)}}function Y1(n,t,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((_,S)=>{let U=S,Z=_;if("offset"!==S)switch(U=t.normalizePropertyName(U,s),Z){case"!":Z=r.get(S);break;case Ss:Z=o.get(S);break;default:Z=t.normalizeStyleValue(S,U,Z,s)}f.set(U,Z)}),h||a.push(f),c=f,l=d}),s.length)throw function tX(n){return new Se(3502,!1)}();return a}function xC(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&IC(e,"start",n)));break;case"done":n.onDone(()=>i(e&&IC(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&IC(e,"destroy",n)))}}function IC(n,t,e){const o=MC(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function MC(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function xr(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function Q1(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let kC=(n,t)=>!1,X1=(n,t,e)=>[],Z1=null;function RC(n){const t=n.parentNode||n.host;return t===Z1?null:t}(TC()||typeof Element<"u")&&(pX()?(Z1=(()=>document.documentElement)(),kC=(n,t)=>{for(;t;){if(t===n)return!0;t=RC(t)}return!1}):kC=(n,t)=>n.contains(t),X1=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let sl=null,J1=!1;const ek=kC,tk=X1;let nk=(()=>{class n{validateStyleProperty(e){return function mX(n){sl||(sl=function gX(){return typeof document<"u"?document.body:null}()||{},J1=!!sl.style&&"WebkitAppearance"in sl.style);let t=!0;return sl.style&&!function fX(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in sl.style,!t&&J1&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in sl.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return ek(e,i)}getParentElement(e){return RC(e)}query(e,i,r){return tk(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new ld(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),OC=(()=>{class n{}return n.NOOP=new nk,n})();const PC="ng-enter",Am="ng-leave",Tm="ng-trigger",xm=".ng-trigger",rk="ng-animating",LC=".ng-animating";function pa(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:NC(parseFloat(t[1]),t[2])}function NC(n,t){return"s"===t?1e3*n:n}function Im(n,t,e){return n.hasOwnProperty("duration")?n:function yX(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(K1()),{duration:0,delay:0,easing:""};r=NC(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=NC(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function OQ(){return new Se(3100,!1)}()),a=!0),o<0&&(t.push(function PQ(){return new Se(3101,!1)}()),a=!0),a&&t.splice(l,0,K1())}return{duration:r,delay:o,easing:s}}(n,t,e)}function Kd(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function ok(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function fa(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function ak(n,t,e){return e?t+":"+e+";":""}function lk(n){let t="";for(let e=0;e{const o=BC(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),TC()&&lk(n))}function al(n,t){n.style&&(t.forEach((e,i)=>{const r=BC(i);n.style[r]=""}),TC()&&lk(n))}function Yd(n){return Array.isArray(n)?1==n.length?n[0]:yI(n):n}const FC=new RegExp("{{\\s*(.+?)\\s*}}","g");function ck(n){let t=[];if("string"==typeof n){let e;for(;e=FC.exec(n);)t.push(e[1]);FC.lastIndex=0}return t}function Mm(n,t,e){const i=n.toString(),r=i.replace(FC,(o,s)=>{let a=t[s];return null==a&&(e.push(function NQ(n){return new Se(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function km(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const wX=/-+([a-z0-9])/g;function BC(n){return n.replace(wX,(...t)=>t[1].toUpperCase())}function EX(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ir(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function FQ(n){return new Se(3004,!1)}()}}function uk(n,t){return window.getComputedStyle(n)[t]}function IX(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function MX(n,t,e){if(":"==n[0]){const l=function kX(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function QQ(n){return new Se(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(dk(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(dk(s,r))}(i,e,t)):e.push(n),e}const Lm=new Set(["true","1"]),Nm=new Set(["false","0"]);function dk(n,t){const e=Lm.has(n)||Nm.has(n),i=Lm.has(t)||Nm.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?Lm.has(n):Nm.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Lm.has(t):Nm.has(t)),s&&a}}const RX=new RegExp("s*:selfs*,?","g");function HC(n,t,e,i){return new OX(n).build(t,e,i)}class OX{constructor(t){this._driver=t}build(t,e,i){const r=new NX(e);return this._resetContextStyleTimingState(r),Ir(this,Yd(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function HQ(){return new Se(3006,!1)}()),t.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 VQ(){return new Se(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{ck(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(km(o.values()),e.errors.push(function jQ(n,t){return new Se(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Ir(this,Yd(t.animation),e);return{type:1,matchers:IX(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:ll(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Ir(this,i,e)),options:ll(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=Ir(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:ll(t.options)}}visitAnimate(t,e){const i=function BX(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return VC(Im(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=VC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Im(e,t);return VC(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:Lt({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Lt(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(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Ss?i.push(a):e.errors.push(new Se(3002,!1)):i.push(ok(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:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.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 qQ(n,t,e,i,r){return new Se(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function CX(n,t,e){const i=t.params||{},r=ck(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function LQ(n){return new Se(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function zQ(){return new Se(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(Z=>{const ve=this._makeStyleAst(Z,e);let ee=null!=ve.offset?ve.offset:function FX(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(ve.styles),Te=0;return null!=ee&&(o++,Te=ve.offset=ee),l=l||Te<0||Te>1,a=a||Te0&&o{const ee=h>0?ve==f?1:h*ve:s[ve],Te=ee*U;e.currentTime=_+S.delay+Te,S.duration=Te,this._validateStyleAst(Z,e),Z.offset=ee,i.styles.push(Z)}),i}visitReference(t,e){return{type:8,animation:Ir(this,Yd(t.animation),e),options:ll(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ll(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ll(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function PX(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(RX,"")),n=n.replace(/@\*/g,xm).replace(/@\w+/g,e=>xm+"-"+e.slice(1)).replace(/:animating/g,LC),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,xr(e.collectedStyles,e.currentQuerySelector,new Map);const a=Ir(this,Yd(t.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:t.selector,options:ll(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function KQ(){return new Se(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Im(t.timings,e.errors,!0);return{type:12,animation:Ir(this,Yd(t.animation),e),timings:i,options:null}}}class NX{constructor(t){this.errors=t,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 ll(n){return n?(n=Kd(n)).params&&(n.params=function LX(n){return n?Kd(n):null}(n.params)):n={},n}function VC(n,t,e){return{duration:n,delay:t,easing:e}}function jC(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Fm{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const jX=new RegExp(":enter","g"),qX=new RegExp(":leave","g");function UC(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new zX).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class zX{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new Fm;const d=new qC(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?pa(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),Ir(this,i,d);const f=d.timelines.filter(_=>_.containsAnimation());if(f.length&&a.size){let _;for(let S=f.length-1;S>=0;S--){const U=f[S];if(U.element===e){_=U;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([a],null,d.errors,l)}return f.length?f.map(_=>_.buildKeyframes()):[jC(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?pa(i.duration):null,a=null!=i.delay?pa(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Ir(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.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=Bm);const s=pa(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Ir(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?pa(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Ir(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=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Im(e.params?Mm(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.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=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?pa(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Bm);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),Ir(this,t.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=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.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;Ir(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Bm={};class qC{constructor(t,e,i,r,o,s,a,l){this._driver=t,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=Bm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Hm(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=pa(i.duration)),null!=i.delay&&(r.delay=pa(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]=Mm(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new qC(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(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=Bm,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new GX(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(jX,"."+this._enterClassName)).replace(qX,"."+this._leaveClassName);let c=this._driver.query(this.element,t,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 YQ(n){return new Se(3014,!1)}()),a}}class Hm{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,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(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Hm(this._driver,t,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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Ss),this._currentKeyframe.set(e,Ss);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function WX(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,Ss)}else fa(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Mm(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ss),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=fa(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Ss&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?km(t.values()):[],s=e.size?km(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return jC(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class GX extends Hm{constructor(t,e,i,r,o,s,a=!1){super(t,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 t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=fa(t[0]);l.set("offset",0),o.push(l);const c=fa(t[0]);c.set("offset",fk(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=fa(t[d]);const f=h.get("offset");h.set("offset",fk((e+f*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return jC(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function fk(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class zC{}const $X=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 KX extends zC{normalizePropertyName(t,e){return BC(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if($X.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 BQ(n,t){return new Se(3005,!1)}())}return s+o}}function mk(n,t,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const GC={};class gk{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function YX(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||GC,_=this.buildStyles(i,a&&a.params||GC,d),S=l&&l.params||GC,U=this.buildStyles(r,S,d),Z=new Set,ve=new Map,ee=new Map,Te="void"===r,et={params:QX(S,h),delay:this.ast.options?.delay},_t=u?[]:UC(t,e,this.ast.animation,o,s,_,U,et,c,d);let Gt=0;if(_t.forEach(Gn=>{Gt=Math.max(Gn.duration+Gn.delay,Gt)}),d.length)return mk(e,this._triggerName,i,r,Te,_,U,[],[],ve,ee,Gt,d);_t.forEach(Gn=>{const vi=Gn.element,ga=xr(ve,vi,new Set);Gn.preStyleProps.forEach(Eo=>ga.add(Eo));const Hs=xr(ee,vi,new Set);Gn.postStyleProps.forEach(Eo=>Hs.add(Eo)),vi!==e&&Z.add(vi)});const hn=km(Z.values());return mk(e,this._triggerName,i,r,Te,_,U,_t,hn,ve,ee,Gt)}}function QX(n,t){const e=Kd(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class XX{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=Kd(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Mm(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class JX{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new XX(r.style,r.options&&r.options.params||{},i))}),_k(this.states,"true","1"),_k(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new gk(t,r,this.states))}),this.fallbackTransition=function eZ(n,t,e){return new gk(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function _k(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const tZ=new Fm;class nZ{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=HC(this._driver,e,i,[]);if(i.length)throw function nX(n){return new Se(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=Y1(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=UC(this._driver,e,o,PC,Am,new Map,new Map,i,tZ,r),s.forEach(u=>{const d=xr(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function iX(){return new Se(3300,!1)}()),s=[]),r.length)throw function rX(n){return new Se(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,Ss))})});const c=ha(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function oX(n){return new Se(3301,!1)}();return e}listen(t,e,i,r){const o=MC(e,"","","");return xC(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);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(t)}}}const vk="ng-animate-queued",WC="ng-animate-disabled",aZ=[],yk={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lZ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Kr="__ng_removed";class $C{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function hZ(n){return n??null}(i?t.value:t),i){const o=Kd(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Qd="void",KC=new $C(Qd);class cZ{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Yr(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function sX(n,t){return new Se(3302,!1)}();if(null==i||0==i.length)throw function aX(n){return new Se(3303,!1)}();if(!function pZ(n){return"start"==n||"done"==n}(i))throw function lX(n,t){return new Se(3400,!1)}();const o=xr(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=xr(this._engine.statesByElement,t,new Map);return a.has(e)||(Yr(t,Tm),Yr(t,Tm+"-"+e),a.set(e,KC)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function cX(n){return new Se(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new YC(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Yr(t,Tm),Yr(t,Tm+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new $C(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=KC),c.value!==Qd&&l.value===c.value){if(!function gZ(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{al(t,U),Qo(t,Z)})}return}const h=xr(this._engine.playersByElement,t,[]);h.forEach(S=>{S.namespaceId==this.id&&S.triggerName==e&&S.queued&&S.destroy()});let f=o.matchTransition(l.value,c.value,t,c.params),_=!1;if(!f){if(!r)return;f=o.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:_}),_||(Yr(t,vk),s.onStart(()=>{Bc(t,vk)})),s.onDone(()=>{let S=this.players.indexOf(s);S>=0&&this.players.splice(S,1);const U=this._engine.playersByElement.get(t);if(U){let Z=U.indexOf(s);Z>=0&&U.splice(Z,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,xm,!0);i.forEach(r=>{if(r[Kr])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(t,e,i,r){const o=this._engine.statesByElement.get(t),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(t,c,Qd,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&ha(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);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)||KC,u=new $C(Qd),d=new YC(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[Kr];(!o||o===yk)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Yr(t,this._hostClassName)}drainQueuedTransitions(t){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=MC(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,xC(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(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class uZ{constructor(t,e,i){this.bodyNode=t,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)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new cZ(t,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[t]=i}_balanceNamespaceList(t,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,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(Vm(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Vm(e))return;const o=e[Kr];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Yr(t,WC)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Bc(t,WC))}removeNode(t,e,i,r){if(Vm(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[Kr]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return Vm(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,xm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,LC,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ha(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Kr];if(e&&e.setForRemoval){if(t[Kr]=yk,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(WC)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-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?ha(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function uX(n){return new Se(3402,!1)}()}_flushAnimations(t,e){const i=new Fm,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(tt=>{u.add(tt);const ft=this.driver.query(tt,".ng-animate-queued",!0);for(let bt=0;bt{const bt=PC+S++;_.set(ft,bt),tt.forEach(rn=>Yr(rn,bt))});const U=[],Z=new Set,ve=new Set;for(let tt=0;ttZ.add(rn)):ve.add(ft))}const ee=new Map,Te=wk(h,Array.from(Z));Te.forEach((tt,ft)=>{const bt=Am+S++;ee.set(ft,bt),tt.forEach(rn=>Yr(rn,bt))}),t.push(()=>{f.forEach((tt,ft)=>{const bt=_.get(ft);tt.forEach(rn=>Bc(rn,bt))}),Te.forEach((tt,ft)=>{const bt=ee.get(ft);tt.forEach(rn=>Bc(rn,bt))}),U.forEach(tt=>{this.processLeaveNode(tt)})});const et=[],_t=[];for(let tt=this._namespaceList.length-1;tt>=0;tt--)this._namespaceList[tt].drainQueuedTransitions(e).forEach(bt=>{const rn=bt.player,yi=bt.element;if(et.push(rn),this.collectedEnterElements.length){const Bi=yi[Kr];if(Bi&&Bi.setForMove){if(Bi.previousTriggersValues&&Bi.previousTriggersValues.has(bt.triggerName)){const ml=Bi.previousTriggersValues.get(bt.triggerName),Xr=this.statesByElement.get(bt.element);if(Xr&&Xr.has(bt.triggerName)){const cg=Xr.get(bt.triggerName);cg.value=ml,Xr.set(bt.triggerName,cg)}}return void rn.destroy()}}const Jo=!d||!this.driver.containsElement(d,yi),Mr=ee.get(yi),_a=_.get(yi),Fn=this._buildInstruction(bt,i,_a,Mr,Jo);if(Fn.errors&&Fn.errors.length)return void _t.push(Fn);if(Jo)return rn.onStart(()=>al(yi,Fn.fromStyles)),rn.onDestroy(()=>Qo(yi,Fn.toStyles)),void r.push(rn);if(bt.isFallbackTransition)return rn.onStart(()=>al(yi,Fn.fromStyles)),rn.onDestroy(()=>Qo(yi,Fn.toStyles)),void r.push(rn);const JR=[];Fn.timelines.forEach(Bi=>{Bi.stretchStartingKeyframe=!0,this.disabledNodes.has(Bi.element)||JR.push(Bi)}),Fn.timelines=JR,i.append(yi,Fn.timelines),s.push({instruction:Fn,player:rn,element:yi}),Fn.queriedElements.forEach(Bi=>xr(a,Bi,[]).push(rn)),Fn.preStyleProps.forEach((Bi,ml)=>{if(Bi.size){let Xr=l.get(ml);Xr||l.set(ml,Xr=new Set),Bi.forEach((cg,bw)=>Xr.add(bw))}}),Fn.postStyleProps.forEach((Bi,ml)=>{let Xr=c.get(ml);Xr||c.set(ml,Xr=new Set),Bi.forEach((cg,bw)=>Xr.add(bw))})});if(_t.length){const tt=[];_t.forEach(ft=>{tt.push(function dX(n,t){return new Se(3505,!1)}())}),et.forEach(ft=>ft.destroy()),this.reportError(tt)}const Gt=new Map,hn=new Map;s.forEach(tt=>{const ft=tt.element;i.has(ft)&&(hn.set(ft,ft),this._beforeAnimationBuild(tt.player.namespaceId,tt.instruction,Gt))}),r.forEach(tt=>{const ft=tt.element;this._getPreviousPlayers(ft,!1,tt.namespaceId,tt.triggerName,null).forEach(rn=>{xr(Gt,ft,[]).push(rn),rn.destroy()})});const Gn=U.filter(tt=>Dk(tt,l,c)),vi=new Map;Ck(vi,this.driver,ve,c,Ss).forEach(tt=>{Dk(tt,l,c)&&Gn.push(tt)});const Hs=new Map;f.forEach((tt,ft)=>{Ck(Hs,this.driver,new Set(tt),l,"!")}),Gn.forEach(tt=>{const ft=vi.get(tt),bt=Hs.get(tt);vi.set(tt,new Map([...Array.from(ft?.entries()??[]),...Array.from(bt?.entries()??[])]))});const Eo=[],Qc=[],Xc={};s.forEach(tt=>{const{element:ft,player:bt,instruction:rn}=tt;if(i.has(ft)){if(u.has(ft))return bt.onDestroy(()=>Qo(ft,rn.toStyles)),bt.disabled=!0,bt.overrideTotalTime(rn.totalTime),void r.push(bt);let yi=Xc;if(hn.size>1){let Mr=ft;const _a=[];for(;Mr=Mr.parentNode;){const Fn=hn.get(Mr);if(Fn){yi=Fn;break}_a.push(Mr)}_a.forEach(Fn=>hn.set(Fn,yi))}const Jo=this._buildAnimation(bt.namespaceId,rn,Gt,o,Hs,vi);if(bt.setRealPlayer(Jo),yi===Xc)Eo.push(bt);else{const Mr=this.playersByElement.get(yi);Mr&&Mr.length&&(bt.parentPlayer=ha(Mr)),r.push(bt)}}else al(ft,rn.fromStyles),bt.onDestroy(()=>Qo(ft,rn.toStyles)),Qc.push(bt),u.has(ft)&&r.push(bt)}),Qc.forEach(tt=>{const ft=o.get(tt.element);if(ft&&ft.length){const bt=ha(ft);tt.setRealPlayer(bt)}}),r.forEach(tt=>{tt.parentPlayer?tt.syncPlayerEvents(tt.parentPlayer):tt.destroy()});for(let tt=0;tt!Jo.destroyed);yi.length?fZ(this,ft,yi):this.processLeaveNode(ft)}return U.length=0,Eo.forEach(tt=>{this.players.push(tt),tt.onDone(()=>{tt.destroy();const ft=this.players.indexOf(tt);this.players.splice(ft,1)}),tt.play()}),Eo}elementContainsData(t,e){let i=!1;const r=e[Kr];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(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==Qd;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(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=xr(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const _=f.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),f.destroy(),d.push(f)})}al(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(_=>{const S=_.element;u.add(S);const U=S[Kr];if(U&&U.removedBeforeQueried)return new ld(_.duration,_.delay);const Z=S!==l,ve=function mZ(n){const t=[];return Ek(n,t),t}((i.get(S)||aZ).map(Gt=>Gt.getRealPlayer())).filter(Gt=>!!Gt.element&&Gt.element===S),ee=o.get(S),Te=s.get(S),et=Y1(0,this._normalizer,0,_.keyframes,ee,Te),_t=this._buildPlayer(_,et,ve);if(_.subTimeline&&r&&d.add(S),Z){const Gt=new YC(t,a,S);Gt.setRealPlayer(_t),c.push(Gt)}return _t});c.forEach(_=>{xr(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>function dZ(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,_.element,_))}),u.forEach(_=>Yr(_,rk));const f=ha(h);return f.onDestroy(()=>{u.forEach(_=>Bc(_,rk)),Qo(l,e.toStyles)}),d.forEach(_=>{xr(r,_,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new ld(t.duration,t.delay)}}class YC{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new ld,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>xC(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){xr(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Vm(n){return n&&1===n.nodeType}function bk(n,t){const e=n.style.display;return n.style.display=t??"none",e}function Ck(n,t,e,i,r){const o=[];e.forEach(l=>o.push(bk(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=t.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[Kr]=lZ,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>bk(l,o[a++])),s}function wk(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function Yr(n,t){n.classList?.add(t)}function Bc(n,t){n.classList?.remove(t)}function fZ(n,t,e){ha(e).onDone(()=>n.processLeaveNode(t))}function Ek(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class jm{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new uZ(t,e,i),this._timelineEngine=new nZ(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=HC(this._driver,o,l,[]);if(l.length)throw function eX(n,t){return new Se(3404,!1)}();a=function ZX(n,t,e){return new JX(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=Q1(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=Q1(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let vZ=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Qo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qo(this._element,this._initialStyles),this._endStyles&&(Qo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(al(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(al(this._element,this._endStyles),this._endStyles=null),Qo(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function QC(n){let t=null;return n.forEach((e,i)=>{(function yZ(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class Sk{constructor(t,e,i,r){this.element=t,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(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:uk(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class bZ{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return ek(t,e)}getParentElement(t){return RC(t)}query(t,e,i){return tk(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,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 Sk);(function DX(n,t){return 0===n||0===t})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((_,S)=>c.set(S,_))});let d=function bX(n){return n.length?n[0]instanceof Map?n:n.map(t=>ok(t)):[]}(e).map(f=>fa(f));d=function SX(n,t,e){if(e.size&&t.length){let i=t[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,uk(n,a)))}}return t}(t,d,c);const h=function _Z(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=QC(t[0]),t.length>1&&(i=QC(t[t.length-1]))):t instanceof Map&&(e=QC(t)),e||i?new vZ(n,e,i):null}(t,d);return new Sk(t,d,l,h)}}let CZ=(()=>{class n extends _I{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Jr.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?yI(e):e;return Ak(this._renderer,null,i,"register",[r]),new wZ(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(T(Cu),T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class wZ extends class k6{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new EZ(this._id,t,e||{},this._renderer)}}class EZ{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Ak(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Ak(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const Tk="@.disabled";let DZ=(()=>{class n{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 xk("",o,this.engine),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 SZ(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 n.\u0275fac=function(e){return new(e||n)(T(Cu),T(jm),T(nt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();class xk{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==Tk?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class SZ extends xk{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Tk?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function AZ(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function TZ(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let xZ=(()=>{class n extends jm{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(OC),T(zC),T(Ys))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})();const Ik=[{provide:_I,useClass:CZ},{provide:zC,useFactory:function IZ(){return new KX}},{provide:jm,useClass:xZ},{provide:Cu,useFactory:function MZ(n,t,e){return new DZ(n,t,e)},deps:[Lp,jm,nt]}],XC=[{provide:OC,useFactory:()=>new bZ},{provide:Un,useValue:"BrowserAnimations"},...Ik],Mk=[{provide:OC,useClass:nk},{provide:Un,useValue:"NoopAnimations"},...Ik];let kZ=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Mk:XC}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:XC,imports:[WT]}),n})(),kk=(()=>{class n{constructor(e){this.viewContainerRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(En))},n.\u0275dir=he({type:n,selectors:[["","appModal",""]]}),n})();const RZ=["modal"],OZ=["modalHeader"],PZ=["modalFooter"],LZ=["dbs"];function NZ(n,t){if(1&n){const e=je();g(0,"div",4)(1,"div",5)(2,"h1"),j(3),v()(),g(4,"div",6),X("click",function(){return oe(e),se(x().closeModal())}),xe(5,"div",7),v()()}if(2&n){const e=t.title,i=x();m(3),we(e),m(2),y("ngStyle",i.modCloseImage)}}function FZ(n,t){if(1&n){const e=je();g(0,"div",8)(1,"button",9),X("click",function(){return se((0,oe(e).cancelAction)())}),j(2),v(),g(3,"button",10),X("click",function(){return se((0,oe(e).confirmAction)())}),j(4),v()()}if(2&n){const e=t.confirm,i=t.cancel;m(2),Qe(" ",i," "),m(2),Qe(" ",e," ")}}function BZ(n,t){}function HZ(n,t){}let VZ=(()=>{class n{constructor(e,i,r,o,s){this.modal=e,this.modalService=i,this.componentFactoryResolver=r,this.app=o,this.globals=s,this.headerText="",this.modCloseImage={background:"no-repeat url(assets/images/widget_settings.png)"}}ngAfterViewInit(){}ngOnInit(){this.modalService.currentType.subscribe(e=>{this.modalService.setModalHeader(this.modalHeader),this.modalService.setModalFooter(this.modalFooter),this.chosenType=e.newType,this.loadComponent(this.chosenType,e.data)})}open(e){return this.modal.open(e,{panelClass:"modalOverlay",autoFocus:!1,maxHeight:"Owa"===this.globals.curConnectorType?"90%":"80%"})}loadComponent(e,i){this.modalItems=this.app.mItems;const r=this.modalItems[e],o=this.componentFactoryResolver.resolveComponentFactory(r.component),s=this.appModal.viewContainerRef;s.clear();const a=s.createComponent(o);return this.modalService.addActiveModal(this.open(a.instance.getTemplate())),a.instance.data=r.data,a.instance.modalMain=this,a.instance.data&&(a.instance.data.modalItems=this.modalService.modalItemsPub,i&&(a.instance.data.passedData=i)),this.modalService.newActive}closeModal(){this.modalService.closeAllModals()}}return n.\u0275fac=function(e){return new(e||n)(p(As),p(ol),p(ro),p(EC),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-modal"]],viewQuery:function(e,i){if(1&e&&(Oe(RZ,7),Oe(OZ,7),Oe(PZ,7),Oe(kk,7),Oe(LZ,5)),2&e){let r;me(r=ge())&&(i.modalTempl=r.first),me(r=ge())&&(i.modalHeader=r.first),me(r=ge())&&(i.modalFooter=r.first),me(r=ge())&&(i.appModal=r.first),me(r=ge())&&(i.selection=r.first)}},decls:7,vars:0,consts:[["modalHeader",""],["modalFooter",""],["appModal",""],["modal",""],[1,"modalHeader"],[1,"modalHeaderText"],["ngbAutoFocus","",1,"modalHeaderClose",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[1,"modalFooter"],[1,"button-secondary","right",3,"click"],[1,"button-primary","right",3,"click"]],template:function(e,i){1&e&&(V(0,NZ,6,2,"ng-template",null,0,Tn),V(2,FZ,5,2,"ng-template",null,1,Tn),V(4,BZ,0,0,"ng-template",2),V(5,HZ,0,0,"ng-template",null,3,Tn))},dependencies:[Qs,kk]}),n})(),jZ=(()=>{class n{constructor(e){this.language=e}getTranslation(e){return new b(i=>{this.language.waitForInit().subscribe(()=>{i.next(this.language.passLCObj()),i.complete()})})}}return n.\u0275fac=function(e){return new(e||n)(T(CC))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function UZ(n,t){if(1&n&&(El(),xe(0,"circle",4)),2&n){const e=x(),i=sn(1);Oi("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),ot("r",e._getCircleRadius())}}function qZ(n,t){if(1&n&&(El(),xe(0,"circle",4)),2&n){const e=x(),i=sn(1);Oi("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),ot("r",e._getCircleRadius())}}const GZ=Wa(class{constructor(n){this._elementRef=n}},"primary"),WZ=new pe("mat-progress-spinner-default-options",{providedIn:"root",factory:function $Z(){return{diameter:100}}});class Ns extends GZ{constructor(t,e,i,r,o,s,a,l){super(t),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=w.EMPTY,this.mode="determinate";const c=Ns._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(i.head)||c.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,"mat-spinner"===t.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),o&&(o.color&&(this.color=this.defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth)),e.isBrowser&&e.SAFARI&&a&&s&&l&&(this._resizeSubscription=a.change(150).subscribe(()=>{"indeterminate"===this.mode&&l.run(()=>s.markForCheck())}))}get diameter(){return this._diameter}set diameter(t){this._diameter=ys(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=ys(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,ys(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=nf(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(t){const e=50*(t.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,i=Ns._diameters;let r=i.get(t);if(!r||!r.has(e)){const o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ns._diameters=new WeakMap,Ns.\u0275fac=function(t){return new(t||Ns)(p(Je),p(Pn),p(ht,8),p(Un,8),p(WZ),p(Bt),p(Ho),p(nt))},Ns.\u0275cmp=ze({type:Ns,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(ot("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Oi("width",e.diameter,"px")("height",e.diameter,"px"),wt("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[De],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(El(),g(0,"svg",0,1),V(2,UZ,1,11,"circle",2),V(3,qZ,1,9,"circle",3),v()),2&t&&(Oi("width",e.diameter,"px")("height",e.diameter,"px"),y("ngSwitch","indeterminate"===e.mode),ot("viewBox",e._getViewBox()),m(2),y("ngSwitchCase",!0),m(1),y("ngSwitchCase",!1))},dependencies:[sc,Mp],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let YZ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt,Xi,Pt]}),n})();const QZ=["panel"];function XZ(n,t){if(1&n&&(g(0,"div",0,1),Ht(2),v()),2&n){const e=t.id,i=x();y("id",i.id)("ngClass",i._classList),ot("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const ZZ=["*"];let JZ=0;class eJ{constructor(t,e){this.source=t,this.option=e}}const tJ=Vo(class{}),Rk=new pe("mat-autocomplete-default-options",{providedIn:"root",factory:function nJ(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let iJ=(()=>{class n extends tJ{constructor(e,i,r,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._activeOptionChanges=w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Be,this.opened=new Be,this.closed=new Be,this.optionActivated=new Be,this._classList={},this.id="mat-autocomplete-"+JZ++,this.inertGroups=o?.SAFARI||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption,this._autoSelectActiveOption=!!r.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=ct(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=ct(e)}set classList(e){this._classList=e&&e.length?function VU(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new R2(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new eJ(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(e){return new(e||n)(p(Bt),p(Je),p(Rk),p(Pn))},n.\u0275dir=he({type:n,viewQuery:function(e,i){if(1&e&&(Oe(bn,7),Oe(QZ,5)),2&e){let r;me(r=ge())&&(i.template=r.first),me(r=ge())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[De]}),n})(),Ok=(()=>{class n extends iJ{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275cmp=ze({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,wf,5),Vt(r,vo,5)),2&e){let o;me(o=ge())&&(i.optionGroups=o),me(o=ge())&&(i.options=o)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[rt([{provide:Cf,useExisting:n}]),De],ngContentSelectors:ZZ,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(Vn(),V(0,XZ,3,4,"ng-template"))},dependencies:[Fa],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),n})();const Pk=new pe("mat-autocomplete-scroll-strategy"),oJ={provide:Pk,deps:[ar],useFactory:function rJ(n){return()=>n.scrollStrategies.reposition()}},sJ={provide:rr,useExisting:Zt(()=>Hc),multi:!0};let aJ=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=s,this._dir=l,this._formField=c,this._document=u,this._viewportRuler=d,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new L,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=ea(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(ii(f),Kn(()=>Mn(...f.map(_=>_.onSelectionChange)))):this._zone.onStable.pipe(dn(1),Kn(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=ct(e)}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Mn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Sn(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Sn(()=>this._overlayAttached)):Ve()).pipe(ue(e=>e instanceof mI?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Mn(bs(this._document,"click"),bs(this._document,"auxclick"),bs(this._document,"touchend")).pipe(Sn(e=>{const i=Vr(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=Di(e);if(27===i&&!r&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,s=38===i||40===i;9===i||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this.openPanel(),(s||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Mn(this._zone.onStable.pipe(dn(1)),this.autocomplete.options.changes.pipe(Yn(()=>this._positionStrategy.reapplyLastPosition()),DC(0))).pipe(Kn(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),dn(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=e?e.source:this._pendingAutoselectedOption;i&&(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Cs(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new vc({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let s;s="above"===this.position?o:"below"===this.position?i:[...i,...o],e.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const i=this.autocomplete,r=gb(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const o=i.options.toArray()[e];if(o){const s=o._getHostElement(),a=gI(s.offsetTop,s.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(i=>{(27===i.keyCode&&!Di(i)||38===i.keyCode&&Di(i,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),i.stopPropagation(),i.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(ar),p(En),p(nt),p(Bt),p(Pk),p(er,8),p(sm,9),p(ht,8),p(Ho),p(Rk,8))},n.\u0275dir=he({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[kn]}),n})(),Hc=(()=>{class n extends aJ{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275dir=he({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&X("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(o){return i._handleInput(o)})("keydown",function(o){return i._handleKeydown(o)})("click",function(){return i._handleClick()}),2&e&&ot("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[rt([sJ]),De]}),n})(),lJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[oJ],imports:[yc,Ef,Pt,Xi,_c,Ef,Pt]}),n})();function cJ(n,t){if(1&n){const e=je();g(0,"div",2)(1,"button",3),X("click",function(){return oe(e),se(x().action())}),j(2),v()()}if(2&n){const e=x();m(2),we(e.data.action)}}function uJ(n,t){}const Lk=new pe("MatSnackBarData");class qm{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const dJ=Math.pow(2,31)-1;class JC{constructor(t,e){this._overlayRef=e,this._afterDismissed=new L,this._afterOpened=new L,this._onAction=new L,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,dJ))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let hJ=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(p(JC),p(Lk))},n.\u0275cmp=ze({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(g(0,"span",0),j(1),v(),V(2,cJ,3,1,"div",1)),2&e&&(m(1),we(i.data.message),m(1),y("ngIf",i.hasAction))},dependencies:[_n,Nc],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),n})();const pJ={snackBarState:jr("state",[qn("void, hidden",Lt({transform:"scale(0.8)",opacity:0})),qn("visible",Lt({transform:"scale(1)",opacity:1})),ui("* => visible",mi("150ms cubic-bezier(0, 0, 0.2, 1)")),ui("* => void, * => hidden",mi("75ms cubic-bezier(0.4, 0.0, 1, 1)",Lt({opacity:0})))])};let fJ=(()=>{class n extends vf{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new L,this._onExit=new L,this._onEnter=new L,this._animationState="void",this.attachDomPortal=a=>{this._assertNotAttached();const l=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),l},this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(dn(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(p(nt),p(Je),p(Bt),p(Pn),p(qm))},n.\u0275dir=he({type:n,viewQuery:function(e,i){if(1&e&&Oe(Es,7),2&e){let r;me(r=ge())&&(i._portalOutlet=r.first)}},features:[De]}),n})(),mJ=(()=>{class n extends fJ{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Rt(n)))(i||n)}}(),n.\u0275cmp=ze({type:n,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&rp("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&Ru("@state",i._animationState)},features:[De],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(g(0,"div",0),V(1,uJ,0,0,"ng-template",1),v(),xe(2,"div")),2&e&&(m(2),ot("aria-live",i._live)("role",i._role))},dependencies:[Es],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[pJ.snackBarState]}}),n})(),Nk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[yc,za,Xi,T1,Pt,Pt]}),n})();const Fk=new pe("mat-snack-bar-default-options",{providedIn:"root",factory:function gJ(){return new qm}});let _J=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=Rn.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:qm,useValue:i}]}),s=new id(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new qm,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new JC(s,o);if(e instanceof bn){const l=new Cs(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new id(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Qt(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new vc;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,a=!s&&"center"!==e.horizontalPosition;return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Rn.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:JC,useValue:i},{provide:Lk,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(T(ar),T(ib),T(Rn),T(Jy),T(n,12),T(Fk))},n.\u0275prov=fe({token:n,factory:n.\u0275fac}),n})(),Bk=(()=>{class n extends _J{constructor(e,i,r,o,s,a){super(e,i,r,o,s,a),this.simpleSnackBarComponent=hJ,this.snackBarContainerComponent=mJ,this.handsetCssClass="mat-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(T(ar),T(ib),T(Rn),T(Jy),T(n,12),T(Fk))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:Nk}),n})(),Hk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})(),MJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Hk,ia,Pt,td,Hk,Pt]}),n})();const Vk=new pe("CdkAccordion");let kJ=0,RJ=(()=>{class n{constructor(e,i,r){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=w.EMPTY,this.closed=new Be,this.opened=new Be,this.destroyed=new Be,this.expandedChange=new Be,this.id="cdk-accordion-child-"+kJ++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=ct(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=ct(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(p(Vk,12),p(Bt),p(a1))},n.\u0275dir=he({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[rt([{provide:Vk,useValue:void 0}])]}),n})(),OJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})();const PJ=["body"];function LJ(n,t){}const NJ=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],FJ=["mat-expansion-panel-header","*","mat-action-row"];function BJ(n,t){1&n&&xe(0,"span",2),2&n&&y("@indicatorRotate",x()._getExpandedState())}const HJ=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],VJ=["mat-panel-title","mat-panel-description","*"],jk=new pe("MAT_ACCORDION"),Uk="225ms cubic-bezier(0.4,0.0,0.2,1)",qk={indicatorRotate:jr("indicatorRotate",[qn("collapsed, void",Lt({transform:"rotate(0deg)"})),qn("expanded",Lt({transform:"rotate(180deg)"})),ui("expanded <=> collapsed, void => collapsed",mi(Uk))]),bodyExpansion:jr("bodyExpansion",[qn("collapsed, void",Lt({height:"0px",visibility:"hidden"})),qn("expanded",Lt({height:"*",visibility:"visible"})),ui("expanded <=> collapsed, void => collapsed",mi(Uk))])},zk=new pe("MAT_EXPANSION_PANEL");let jJ=(()=>{class n{constructor(e,i){this._template=e,this._expansionPanel=i}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(zk,8))},n.\u0275dir=he({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),UJ=0;const Gk=new pe("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let ew=(()=>{class n extends RJ{constructor(e,i,r,o,s,a,l){super(e,i,r),this._viewContainerRef=o,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new Be,this.afterCollapse=new Be,this._inputChanges=new L,this._headerId="mat-expansion-panel-header-"+UJ++,this._bodyAnimationDone=new L,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(af((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=ct(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(ii(null),Sn(()=>this.expanded&&!this._portal),dn(1)).subscribe(()=>{this._portal=new Cs(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(p(jk,12),p(Bt),p(a1),p(En),p(ht),p(Un,8),p(Gk,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,r){if(1&e&&Vt(r,jJ,5),2&e){let o;me(o=ge())&&(i._lazyContent=o.first)}},viewQuery:function(e,i){if(1&e&&Oe(PJ,5),2&e){let r;me(r=ge())&&(i._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&&wt("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[rt([{provide:jk,useValue:void 0},{provide:zk,useExisting:n}]),De,kn],ngContentSelectors:FJ,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,i){1&e&&(Vn(NJ),Ht(0),g(1,"div",0,1),X("@bodyExpansion.done",function(o){return i._bodyAnimationDone.next(o)}),g(3,"div",2),Ht(4,1),V(5,LJ,0,0,"ng-template",3),v(),Ht(6,2),v()),2&e&&(m(1),y("@bodyExpansion",i._getExpandedState())("id",i.id),ot("aria-labelledby",i._headerId),m(4),y("cdkPortalOutlet",i._portal))},dependencies:[Es],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[qk.bodyExpansion]},changeDetection:0}),n})();class qJ{}const zJ=od(qJ);let Wk=(()=>{class n extends zJ{constructor(e,i,r,o,s,a,l){super(),this.panel=e,this._element=i,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=a,this._parentChangeSubscription=w.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(Sn(u=>!(!u.hideToggle&&!u.togglePosition))):gs;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Mn(e.opened,e.closed,c,e._inputChanges.pipe(Sn(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Sn(()=>e._containsFocus())).subscribe(()=>r.focusVia(i,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Di(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(p(ew,1),p(Je),p(_o),p(Bt),p(Gk,8),p(Un,8),io("tabindex"))},n.\u0275cmp=ze({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&X("click",function(){return i._toggle()})("keydown",function(o){return i._keydown(o)}),2&e&&(ot("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),Oi("height",i._getHeaderHeight()),wt("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[De],ngContentSelectors:VJ,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(Vn(HJ),g(0,"span",0),Ht(1),Ht(2,1),Ht(3,2),v(),V(4,BJ,1,1,"span",1)),2&e&&(wt("mat-content-hide-toggle",!i._showToggle()),m(4),y("ngIf",i._showToggle()))},dependencies:[_n],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[qk.indicatorRotate]},changeDetection:0}),n})(),$k=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),GJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Xi,Pt,OJ,za]}),n})();const WJ=["*",[["mat-card-footer"]]],$J=["*","mat-card-footer"],KJ=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],YJ=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let Kk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),Yk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n})(),QJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=he({type:n,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),n})(),Qk=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(p(Un,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,i){2&e&&wt("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:$J,decls:2,vars:0,template:function(e,i){1&e&&(Vn(WJ),Ht(0),Ht(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),n})(),XJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ze({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:YJ,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,i){1&e&&(Vn(KJ),Ht(0),g(1,"div",0),Ht(2,1),v(),Ht(3,2))},encapsulation:2,changeDetection:0}),n})(),ZJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt,Pt]}),n})(),ree=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[Pt,Pt]}),n})(),oee=0;const see=Ds(class{}),tR="mat-badge-content";let aee=(()=>{class n extends see{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._ariaDescriber=r,this._renderer=o,this._animationMode=s,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=oee++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=ct(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=ct(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(tR),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){const i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${tR}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return n.\u0275fac=function(e){return new(e||n)(p(nt),p(Je),p(JU),p(oo),p(Un,8))},n.\u0275dir=he({type:n,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,i){2&e&&wt("mat-badge-overlap",i.overlap)("mat-badge-above",i.isAbove())("mat-badge-below",!i.isAbove())("mat-badge-before",!i.isAfter())("mat-badge-after",i.isAfter())("mat-badge-small","small"===i.size)("mat-badge-medium","medium"===i.size)("mat-badge-large","large"===i.size)("mat-badge-hidden",i.hidden||!i.content)("mat-badge-disabled",i.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[De]}),n})(),lee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[ob,Pt,Pt]}),n})();const cee=["input"],uee=["label"],dee=function(n){return{enterDuration:n}},hee=["*"],pee=new pe("mat-checkbox-default-options",{providedIn:"root",factory:nR});function nR(){return{color:"accent",clickAction:"check-indeterminate"}}let fee=0;const iR=nR(),mee={provide:rr,useExisting:Zt(()=>nw),multi:!0};class rR{}const gee=od(Wa(Vo(Ds(class{constructor(n){this._elementRef=n}}))));let _ee=(()=>{class n extends gee{constructor(e,i,r,o,s,a,l){super(i),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=a,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Be,this.indeterminateChange=new Be,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||iR,this.color=this.defaultColor=this._options.color||iR.color,this.tabIndex=parseInt(s)||0,this.id=this._uniqueId=`${e}${++fee}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=ct(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=ct(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=ct(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=ct(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){Vl()},n.\u0275dir=he({type:n,viewQuery:function(e,i){if(1&e&&(Oe(cee,5),Oe(uee,5),Oe(Ar,5)),2&e){let r;me(r=ge())&&(i._inputElement=r.first),me(r=ge())&&(i._labelElement=r.first),me(r=ge())&&(i.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[De]}),n})(),nw=(()=>{class n extends _ee{constructor(e,i,r,o,s,a,l){super("mat-checkbox-",e,i,o,s,a,l),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const i=new rR;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(_o),p(nt),io("tabindex"),p(Un,8),p(pee,8))},n.\u0275cmp=ze({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,i){2&e&&(Po("id",i.id),ot("tabindex",null)("aria-label",null)("aria-labelledby",null),wt("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[rt([mee]),De],ngContentSelectors:hee,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(Vn(),g(0,"label",0,1)(2,"span",2)(3,"input",3,4),X("change",function(o){return i._onInteractionEvent(o)})("click",function(o){return i._onInputClick(o)}),v(),g(5,"span",5),xe(6,"span",6),v(),xe(7,"span",7),g(8,"span",8),El(),g(9,"svg",9),xe(10,"path",10),v(),function Yw(){!function ZO(){Tt.lFrame.currentNamespace=null}()}(),xe(11,"span",11),v()(),g(12,"span",12,13),X("cdkObserveContent",function(){return i._onLabelTextChange()}),g(14,"span",14),j(15,"\xa0"),v(),Ht(16),v()()),2&e){const r=sn(1),o=sn(13);ot("for",i.inputId),m(2),wt("mat-checkbox-inner-container-no-side-margin",!o.textContent||!o.textContent.trim()),m(1),y("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),ot("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),m(2),y("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Wn(19,dee,"NoopAnimations"===i._animationMode?0:150))}},dependencies:[Ar,cf],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),oR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({}),n})(),bee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({imports:[ia,Pt,td,oR,Pt,oR]}),n})();const Cee=["*"],sR=new pe("MatChipRemove"),aR=new pe("MatChipAvatar"),lR=new pe("MatChipTrailingIcon");class wee{constructor(t){this._elementRef=t}}const Eee=od(Wa(Vo(wee),"primary"),-1);let Vc=(()=>{class n extends Eee{constructor(e,i,r,o,s,a,l,c){super(e),this._ngZone=i,this._changeDetectorRef=s,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new L,this._onBlur=new L,this.selectionChange=new Be,this.destroyed=new Be,this.removed=new Be,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new hI(this,i,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=o||{},this._animationsDisabled="NoopAnimations"===l,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const i=ct(e);i!==this._selected&&(this._selected=i,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=ct(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=ct(e)}get removable(){return this._removable}set removable(e){this._removable=ct(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",i=this._elementRef.nativeElement;i.hasAttribute(e)||i.tagName.toLowerCase()===e?i.classList.add(e):i.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(dn(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(nt),p(Pn),p(pI,8),p(Bt),p(ht),p(Un,8),io("tabindex"))},n.\u0275dir=he({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,r){if(1&e&&(Vt(r,aR,5),Vt(r,lR,5),Vt(r,sR,5)),2&e){let o;me(o=ge())&&(i.avatar=o.first),me(o=ge())&&(i.trailingIcon=o.first),me(o=ge())&&(i.removeIcon=o.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&X("click",function(o){return i._handleClick(o)})("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(ot("tabindex",i.disabled?null:i.tabIndex)("role",i.role)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString())("aria-selected",i.ariaSelected),wt("mat-chip-selected",i.selected)("mat-chip-with-avatar",i.avatar)("mat-chip-with-trailing-icon",i.trailingIcon||i.removeIcon)("mat-chip-disabled",i.disabled)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[De]}),n})(),Wm=(()=>{class n{constructor(e,i){this._parentChip=e,"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}_handleClick(e){const i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(p(Vc),p(Je))},n.\u0275dir=he({type:n,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,i){1&e&&X("click",function(o){return i._handleClick(o)})},features:[rt([{provide:sR,useExisting:n}])]}),n})();const cR=new pe("mat-chips-default-options"),Aee=pb(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new L}});let Tee=0;class xee{constructor(t,e){this.source=t,this.value=e}}let $m=(()=>{class n extends Aee{constructor(e,i,r,o,s,a,l){super(a,o,s,l),this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new L,this._uid="mat-chip-list-"+Tee++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(c,u)=>c===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new Be,this.valueChange=new Be,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=ct(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(dy.required)??!1}set required(e){this._required=ct(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ct(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=ct(e),this._syncChipsState()}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return Mn(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return Mn(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return Mn(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return Mn(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new hf(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Qt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Qt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(ii(null),Qt(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new nl(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const i=e.target;i&&i.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,i)),this._sortValues();else{const r=this._selectValue(e,i);r&&i&&this._keyManager.setActiveItem(r)}}_selectValue(e,i=!0){const r=this.chips.find(o=>null!=o.value&&this._compareWith(o.value,e));return r&&(i?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(i=>{i!==e&&i.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let i=null;i=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.change.emit(new xee(this,i)),this.valueChange.emit(i),this._onChange(i),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(i=>{!this._selectionModel.isSelected(i)&&i.selected&&i.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let i=this.chips.toArray().indexOf(e.chip);this._isValidIndex(i)&&this._keyManager.updateActiveItem(i),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const i=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&i._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-chip"))return!0;i=i.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple,e.chipListSelectable=this._selectable})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Bt),p(er,8),p(lc,8),p(cc,8),p(sd),p(mo,10))},n.\u0275cmp=ze({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,i,r){if(1&e&&Vt(r,Vc,5),2&e){let o;me(o=ge())&&(i.chips=o)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,i){1&e&&X("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(o){return i._keydown(o)}),2&e&&(Po("id",i._uid),ot("tabindex",i.disabled?null:i._tabIndex)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-multiselectable",i.multiple)("role",i.role)("aria-orientation",i.ariaOrientation),wt("mat-chip-list-disabled",i.disabled)("mat-chip-list-invalid",i.errorState)("mat-chip-list-required",i.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[rt([{provide:Nd,useExisting:n}]),De],ngContentSelectors:Cee,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,i){1&e&&(Vn(),g(0,"div",0),Ht(1),v())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),n})(),Iee=0,Km=(()=>{class n{constructor(e,i){this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Be,this.placeholder="",this.id="mat-chip-list-input-"+Iee++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=ct(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=ct(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!Di(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!Di(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(cR))},n.\u0275dir=he({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,i){1&e&&X("keydown",function(o){return i._keydown(o)})("keyup",function(o){return i._keyup(o)})("blur",function(){return i._blur()})("focus",function(){return i._focus()})("input",function(){return i._onInput()}),2&e&&(Po("id",i.id),ot("disabled",i.disabled||null)("placeholder",i.placeholder||null)("aria-invalid",i._chipList&&i._chipList.ngControl?i._chipList.ngControl.invalid:null)("aria-required",i._chipList&&i._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[kn]}),n})(),Mee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[sd,{provide:cR,useValue:{separatorKeyCodes:[13]}}],imports:[Pt]}),n})();function Ree(n){const{subscriber:t,counter:e,period:i}=n;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}function iw(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function jc(n,t){const e=t?"":"none";iw(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function uR(n,t,e){iw(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Ym(n,t){return t&&"none"!=t?n+" "+t:n}function dR(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function rw(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function ow(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function sw(n,t,e){const{top:i,bottom:r,left:o,right:s}=n;return e>=i&&e<=r&&t>=o&&t<=s}function Zd(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function hR(n,t,e,i){const{top:r,right:o,bottom:s,left:a,width:l,height:c}=n,u=l*t,d=c*t;return i>r-d&&ia-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:ow(e)})})}handleScroll(t){const e=Vr(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,l=r.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&Zd(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function fR(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),_=this._dropContainer;if(!f)return void this._endDragSequence(a);(!_||!_.isDragging()&&!_.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,d=this._activeTransform;d.x=c.x-u.x+this._passiveTransform.x,d.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new pR(i),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=ct(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>jc(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>Qn(i)),this._handles.forEach(i=>jc(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Qn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Qm),e.addEventListener("touchstart",this._pointerDown,vR),e.addEventListener("dragstart",this._nativeDragStart,Qm)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Qn(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),jc(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),jc(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Jd(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),uR(i,!1,aw),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=Jd(e),o=!r&&0!==e.button,s=this._rootElement,a=Vr(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?mf(e):ff(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||l||c)return;if(this._handles.length){const h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=ow(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){uR(this._rootElement,!0,aw),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),r=bR(s,this._document),this._previewRef=s,t.matchSize?CR(r,o):r.style.transform=Xm(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=fR(this._rootElement),CR(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return iw(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},aw),jc(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function Oee(n){const t=getComputedStyle(n),e=rw(t,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=rw(t,"transition-duration"),s=rw(t,"transition-delay");return dR(o[r])+dR(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||Vr(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=bR(this._placeholderRef,this._document)):i=fR(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,s=Jd(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-t.left+(s.pageX-o.left-a.left),y:o.top-t.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=Jd(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:s}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,d=a.bottom-(c-s);i=yR(i,a.left+o,a.right-(l-o)),r=yR(r,u,d)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,jc(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Qm),t.removeEventListener("touchstart",this._pointerDown,vR),t.removeEventListener("dragstart",this._nativeDragStart,Qm)}_applyRootElementTransform(t,e){const i=Xm(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Ym(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=Xm(t,e);this._preview.style.transform=Ym(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,l=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),s>0&&(t-=s)):t=0,r.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Jd(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Vr(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&Zd(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=nf(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Qn(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function Xm(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function yR(n,t,e){return Math.max(t,Math.min(e,n))}function Jd(n){return"t"===n.type[0]}function bR(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function CR(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=Xm(t.left,t.top)}function eh(n,t){return Math.max(0,Math.min(t,n))}class Bee{constructor(t,e){this._element=t,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(t){this.withItems(t)}sort(t,e,i,r){const o=this._itemPositions,s=this._getItemIndexFromPointerPosition(t,e,i,r);if(-1===s&&o.length>0)return null;const a="horizontal"===this.orientation,l=o.findIndex(U=>U.drag===t),c=o[s],d=c.clientRect,h=l>s?1:-1,f=this._getItemOffsetPx(o[l].clientRect,d,h),_=this._getSiblingOffsetPx(l,o,h),S=o.slice();return function Fee(n,t,e){const i=eh(t,n.length-1),r=eh(e,n.length-1);if(i===r)return;const o=n[i],s=r{if(S[Z]===U)return;const ve=U.drag===t,ee=ve?f:_,Te=ve?t.getPlaceholderElement():U.drag.getRootElement();U.offset+=ee,a?(Te.style.transform=Ym(`translate3d(${Math.round(U.offset)}px, 0, 0)`,U.initialTransform),Zd(U.clientRect,0,ee)):(Te.style.transform=Ym(`translate3d(0, ${Math.round(U.offset)}px, 0)`,U.initialTransform),Zd(U.clientRect,ee,0))}),this._previousSwap.overlaps=sw(d,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,s=this._activeDraggables,a=s.indexOf(t),l=t.getPlaceholderElement();let c=s[o];if(c===t&&(c=s[o+1]),!c&&(null==o||-1===o||o-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(o,0,t)}else Qn(this._element).appendChild(l),s.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{Zd(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:ow(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,s=e[t+-1*i];let a=o[r?"width":"height"]*i;if(s){const l=r?"left":"top",c=r?"right":"bottom";-1===i?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(r){const c=o?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new L,this.entered=new L,this.exited=new L,this.dropped=new L,this.sorted=new L,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new L,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function kee(n=0,t=fc){return(!ab(n)||n<0)&&(n=0),(!t||"function"!=typeof t.schedule)&&(t=fc),new b(e=>(e.add(t.schedule(Ree,n,{subscriber:e,counter:0,period:n})),e))}(0,V2).pipe(Qt(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=Qn(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new pR(i),this._sortStrategy=new Bee(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,s,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=Qn(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!hR(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||hR(s.clientRect,.05,t,e)&&([r,o]=function Vee(n,t,e,i){const r=DR(t,i),o=SR(t,e);let s=0,a=0;if(r){const l=n.scrollTop;1===r?l>0&&(s=1):n.scrollHeight-l>n.clientHeight&&(s=2)}if(o){const l=n.scrollLeft;1===o?l>0&&(a=1):n.scrollWidth-l>n.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,t,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=DR(l,e),o=SR(l,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=Qn(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=Qn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=Qn(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&sw(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!sw(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=Qn(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=nf(Qn(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function DR(n,t){const{top:e,bottom:i,height:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function SR(n,t){const{left:e,right:i,width:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const Zm=_s({passive:!1,capture:!0});let jee=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new L,this.pointerUp=new L,this.scroll=new L,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Zm)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Zm)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Zm}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:Zm}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new b(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),Mn(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(T(nt),T(ht))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Uee={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let qee=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=Uee){return new Nee(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Hee(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(nt),T(Ho),T(jee))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=lt({providers:[qee],imports:[_c]}),n})();const Gee=["webInp"];function Wee(n,t){if(1&n&&(g(0,"p"),j(1),v()),2&n){const e=x(2);m(1),Qe(" ",e.globals.languageConfLocal.webIntLogout," ")}}function $ee(n,t){if(1&n){const e=je();g(0,"div",1)(1,"div",2)(2,"h1"),j(3),v()(),g(4,"div",3),X("click",function(){return oe(e),se(x().closeModal())}),xe(5,"div",4),v()(),g(6,"div",5)(7,"div",6),j(8),V(9,Wee,2,1,"p",7),v(),g(10,"div",8)(11,"input",9),X("ngModelChange",function(r){return oe(e),se(x().inputValue=r)})("keyup.enter",function(){return oe(e),se(x().confirmAction())}),v(),g(12,"input",10),X("click",function(){return oe(e),se(x().confirmAction())}),v()()()}if(2&n){const e=x();m(3),we(e.globals.languageConfLocal.webIntInputTitle),m(2),y("ngStyle",e.modCloseImage),m(3),Qe(" ",e.globals.languageConfLocal.webIntInputText," "),m(1),y("ngIf",e.connectionService.isLoggedIn),m(2),y("ngModel",e.inputValue)}}let Kee=(()=>{class n{constructor(e,i,r,o,s,a){this.messageService=e,this.sanitize=i,this.loader=r,this.connectionService=o,this.modal=s,this.globals=a,this.modCloseImage={background:"no-repeat url(assets/images/widget_settings.png)"},this.lcLocal=this.globals.languageConfLocal,this.inputValue="",null!=window.localStorage.getItem("webInt")&&(this.connectionService.webIntModalOpenRef=this.open.bind(this))}ngOnInit(){null!=window.localStorage.getItem("webInt")?(this.inputValue=window.localStorage.getItem("webInt"),this.inputValue=encodeURI(this.inputValue)):(this.globals.showSpinner(),setTimeout(()=>{this.globals.hideSpinner(),this.connectionService.webIntModalOpenRef=this.open.bind(this)},2e3))}open(){return this.modal.open(this.modalTemp,{panelClass:"modalOverlay",autoFocus:!1,maxHeight:"90%"})}confirmAction(){this.checkInput(this.sanitize.sanitizeInput(this.inputValue,4))}closeModal(){this.modal.closeAll()}checkInput(e){var i=this;return Ee(function*(){const r=i.globals.system;if(e)switch(e=encodeURI(e),e.toLowerCase().startsWith("https")||(e="https://"+e),e.endsWith("/")||(e+="/"),i.globals.setSystemFromURL(e),i.globals.system){case"gi":"gi"!==r&&"start"!==r&&(yield i.connectionService.logout(!0)),e=e.substring(0,e.indexOf(".nsf")+4),i.connectionService.setSystem("gi");break;case"ba":"ba"!==r&&"start"!==r&&(yield i.connectionService.logout(!0)),i.connectionService.setSystem("ba")}e!==i.globals.webInt?null==e||""===e?i.messageService.showError(i.globals.languageConfLocal.webIntInvalid):e.includes("http:")?i.messageService.showWarning(i.globals.languageConfLocal.webIntHttp):(yield i.connectionService.checkWebInt(e))&&("ba"===i.globals.system&&i.connectionService.reload(),i.connectionService.connect().subscribe(()=>{i.connectionService.reload()})):i.closeModal()})()}}return n.\u0275fac=function(e){return new(e||n)(p(en),p(Ld),p(Lc),p(Nn),p(As),p(pt))},n.\u0275cmp=ze({type:n,selectors:[["app-webint-input"]],viewQuery:function(e,i){if(1&e&&Oe(Gee,7),2&e){let r;me(r=ge())&&(i.modalTemp=r.first)}},decls:2,vars:0,consts:[["webInp",""],[1,"modalHeader"],[1,"modalHeaderText"],["ngbAutoFocus","",1,"modalHeaderClose",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[1,"modalBody"],[1,"webIntText"],[4,"ngIf"],["id","webIntInputWrapper",1,"flex"],["matInput","","type","text","id","webIntInputField",3,"ngModel","ngModelChange","keyup.enter"],["type","button","id","webIntConfirmButton","value","OK",1,"buttonMiddle","noFloat",3,"click"]],template:function(e,i){1&e&&V(0,$ee,13,5,"ng-template",null,0,Tn)},dependencies:[_n,Qs,fo,Fo,ps,Yo],styles:[".webIntText[_ngcontent-%COMP%]{white-space:pre-line;font-weight:700;text-align:center}#webIntInputField[_ngcontent-%COMP%]{width:230px;outline:none;margin-right:10px;border:1px solid rgba(0,0,0,.2);flex-grow:1}#webIntConfirmButton[_ngcontent-%COMP%]{height:25px!important;top:-1px;position:relative}#webIntInputWrapper[_ngcontent-%COMP%]{text-align:center;margin-bottom:20px}"]}),n})();var di=(()=>(function(n){n.AcquireTokenByCode="acquireTokenByCode",n.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",n.AcquireTokenSilent="acquireTokenSilent",n.AcquireTokenSilentAsync="acquireTokenSilentAsync",n.AcquireTokenPopup="acquireTokenPopup",n.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",n.CryptoOptsSignJwt="cryptoOptsSignJwt",n.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",n.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",n.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",n.SsoSilent="ssoSilent",n.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",n.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",n.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",n.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",n.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",n.BrokerHandhshake="brokerHandshake",n.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",n.AcquireTokenByBroker="acquireTokenByBroker"}(di||(di={})),di))(),ul=(()=>(function(n){n[n.NotStarted=0]="NotStarted",n[n.InProgress=1]="InProgress",n[n.Completed=2]="Completed"}(ul||(ul={})),ul))(),Jm_missingKidError_code="missing_kid_error",Jm_missingKidError_desc="The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",Jm_missingAlgError_code="missing_alg_error",Jm_missingAlgError_desc="The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided.",AR=function(n){function t(e,i){var r=n.call(this,e,i)||this;return r.name="JoseHeaderError",Object.setPrototypeOf(r,t.prototype),r}return ur(t,n),t.createMissingKidError=function(){return new t(Jm_missingKidError_code,Jm_missingKidError_desc)},t.createMissingAlgError=function(){return new t(Jm_missingAlgError_code,Jm_missingAlgError_desc)},t}(ut),Yee=function(){function n(t){this.typ=t.typ,this.alg=t.alg,this.kid=t.kid}return n.getShrHeaderString=function(t){if(!t.kid)throw AR.createMissingKidError();if(!t.alg)throw AR.createMissingAlgError();var e=new n({typ:t.typ||Pf.Jwt,kid:t.kid,alg:t.alg});return JSON.stringify(e)},n}(),Ni=function(){function n(){}return n.decimalToHex=function(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e},n}(),TR=function(){function n(t){this.cryptoObj=t}return n.prototype.generateGuid=function(){try{var t=new Uint8Array(16);return this.cryptoObj.getRandomValues(t),t[6]|=64,t[6]&=79,t[8]|=128,t[8]&=191,Ni.decimalToHex(t[0])+Ni.decimalToHex(t[1])+Ni.decimalToHex(t[2])+Ni.decimalToHex(t[3])+"-"+Ni.decimalToHex(t[4])+Ni.decimalToHex(t[5])+"-"+Ni.decimalToHex(t[6])+Ni.decimalToHex(t[7])+"-"+Ni.decimalToHex(t[8])+Ni.decimalToHex(t[9])+"-"+Ni.decimalToHex(t[10])+Ni.decimalToHex(t[11])+Ni.decimalToHex(t[12])+Ni.decimalToHex(t[13])+Ni.decimalToHex(t[14])+Ni.decimalToHex(t[15])}catch{for(var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",i="0123456789abcdef",r=0,o=J.EMPTY_STRING,s=0;s<36;s++)"-"!==e[s]&&"4"!==e[s]&&(r=16*Math.random()|0),"x"===e[s]?o+=i[r]:"y"===e[s]?(r&=3,o+=i[r|=8]):o+=e[s];return o}},n.prototype.isGuid=function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)},n}(),Uc=function(){function n(){}return n.stringToUtf8Arr=function(t){for(var e,i=0,r=t.length,o=0;o>>6),s[a++]=128+(63&e)):e<65536?(s[a++]=224+(e>>>12),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e)):e<2097152?(s[a++]=240+(e>>>18),s[a++]=128+(e>>>12&63),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e)):e<67108864?(s[a++]=248+(e>>>24),s[a++]=128+(e>>>18&63),s[a++]=128+(e>>>12&63),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e)):(s[a++]=252+(e>>>30),s[a++]=128+(e>>>24&63),s[a++]=128+(e>>>18&63),s[a++]=128+(e>>>12&63),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e));return s},n.stringToArrayBuffer=function(t){for(var e=new ArrayBuffer(t.length),i=new Uint8Array(e),r=0;r251&&i<254&&o+5247&&i<252&&o+4239&&i<248&&o+3223&&i<240&&o+2191&&i<224&&o+1>>(r=a%3)&24),(2===r||t.length-a==1)&&(i+=String.fromCharCode(this.uint6ToB64(s>>>18&63),this.uint6ToB64(s>>>12&63),this.uint6ToB64(s>>>6&63),this.uint6ToB64(63&s)),s=0);return 0===e?i:i.substring(0,i.length-e)+(1===e?"=":"==")},n.prototype.uint6ToB64=function(t){return t<26?t+65:t<52?t+71:t<62?t-4:62===t?43:63===t?47:65},n}(),Qee=function(){function n(){}return n.prototype.decode=function(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Invalid base64 string")}var i=this.base64DecToArr(e);return Uc.utf8ArrToString(i)},n.prototype.base64DecToArr=function(t,e){for(var i=t.replace(/[^A-Za-z0-9\+\/]/g,J.EMPTY_STRING),r=i.length,o=e?Math.ceil((3*r+1>>>2)/e)*e:3*r+1>>>2,s=new Uint8Array(o),a=void 0,l=void 0,c=0,u=0,d=0;d>>(16>>>a&24)&255;c=0}return s},n.prototype.b64ToUint6=function(t){return t>64&&t<91?t-65:t>96&&t<123?t-71:t>47&&t<58?t+4:43===t?62:47===t?63:0},n}(),Zee=function(){function n(t){this.base64Encode=new xR,this.cryptoObj=t}return n.prototype.generateCodes=function(){return ke(this,void 0,void 0,function(){var t,e;return Re(this,function(i){switch(i.label){case 0:return t=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(t)];case 1:return e=i.sent(),[2,{verifier:t,challenge:e}]}})})},n.prototype.generateCodeVerifier=function(){try{var t=new Uint8Array(32);return this.cryptoObj.getRandomValues(t),this.base64Encode.urlEncodeArr(t)}catch(i){throw Ue.createPkceNotGeneratedError(i)}},n.prototype.generateCodeChallengeFromVerifier=function(t){return ke(this,void 0,void 0,function(){var e,i;return Re(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(t)];case 1:return e=r.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(e))];case 2:throw i=r.sent(),Ue.createPkceNotGeneratedError(i);case 3:return[2]}})})},n}(),lw="SHA-256",tte=new Uint8Array([1,0,1]),eg=function(){function n(t){if(this.logger=t,!this.hasCryptoAPI())throw Ue.createCryptoNotAvailableError("Browser crypto or msCrypto object not available.");this._keygenAlgorithmOptions={name:"RSASSA-PKCS1-v1_5",hash:lw,modulusLength:2048,publicExponent:tte}}return n.prototype.sha256Digest=function(t){return ke(this,void 0,void 0,function(){var e;return Re(this,function(i){return e=Uc.stringToUtf8Arr(t),[2,this.hasIECrypto()?this.getMSCryptoDigest(lw,e):this.getSubtleCryptoDigest(lw,e)]})})},n.prototype.getRandomValues=function(t){var e=window.msCrypto||window.crypto;if(!e.getRandomValues)throw Ue.createCryptoNotAvailableError("getRandomValues does not exist.");e.getRandomValues(t)},n.prototype.generateKeyPair=function(t,e){return ke(this,void 0,void 0,function(){return Re(this,function(i){return[2,this.hasIECrypto()?this.msCryptoGenerateKey(t,e):window.crypto.subtle.generateKey(this._keygenAlgorithmOptions,t,e)]})})},n.prototype.exportJwk=function(t){return ke(this,void 0,void 0,function(){return Re(this,function(e){return[2,this.hasIECrypto()?this.msCryptoExportJwk(t):window.crypto.subtle.exportKey(Lf,t)]})})},n.prototype.importJwk=function(t,e,i){return ke(this,void 0,void 0,function(){var r,o;return Re(this,function(s){return r=n.getJwkString(t),o=Uc.stringToArrayBuffer(r),[2,this.hasIECrypto()?this.msCryptoImportKey(o,e,i):window.crypto.subtle.importKey(Lf,t,this._keygenAlgorithmOptions,e,i)]})})},n.prototype.sign=function(t,e){return ke(this,void 0,void 0,function(){return Re(this,function(i){return[2,this.hasIECrypto()?this.msCryptoSign(t,e):window.crypto.subtle.sign(this._keygenAlgorithmOptions,t,e)]})})},n.prototype.hasCryptoAPI=function(){return this.hasIECrypto()||this.hasBrowserCrypto()},n.prototype.hasIECrypto=function(){return"msCrypto"in window},n.prototype.hasBrowserCrypto=function(){return"crypto"in window},n.prototype.getSubtleCryptoDigest=function(t,e){return ke(this,void 0,void 0,function(){return Re(this,function(i){return[2,window.crypto.subtle.digest(t,e)]})})},n.prototype.getMSCryptoDigest=function(t,e){return ke(this,void 0,void 0,function(){return Re(this,function(i){return[2,new Promise(function(r,o){var s=window.msCrypto.subtle.digest(t,e.buffer);s.addEventListener("complete",function(a){r(a.target.result)}),s.addEventListener("error",function(a){o(a)})})]})})},n.prototype.msCryptoGenerateKey=function(t,e){return ke(this,void 0,void 0,function(){var i=this;return Re(this,function(r){return[2,new Promise(function(o,s){var a=window.msCrypto.subtle.generateKey(i._keygenAlgorithmOptions,t,e);a.addEventListener("complete",function(l){o(l.target.result)}),a.addEventListener("error",function(l){s(l)})})]})})},n.prototype.msCryptoExportJwk=function(t){return ke(this,void 0,void 0,function(){return Re(this,function(e){return[2,new Promise(function(i,r){var o=window.msCrypto.subtle.exportKey(Lf,t);o.addEventListener("complete",function(s){var l=Uc.utf8ArrToString(new Uint8Array(s.target.result)).replace(/\r/g,J.EMPTY_STRING).replace(/\n/g,J.EMPTY_STRING).replace(/\t/g,J.EMPTY_STRING).split(" ").join(J.EMPTY_STRING).replace("\0",J.EMPTY_STRING);try{i(JSON.parse(l))}catch(c){r(c)}}),o.addEventListener("error",function(s){r(s)})})]})})},n.prototype.msCryptoImportKey=function(t,e,i){return ke(this,void 0,void 0,function(){var r=this;return Re(this,function(o){return[2,new Promise(function(s,a){var l=window.msCrypto.subtle.importKey(Lf,t,r._keygenAlgorithmOptions,e,i);l.addEventListener("complete",function(c){s(c.target.result)}),l.addEventListener("error",function(c){a(c)})})]})})},n.prototype.msCryptoSign=function(t,e){return ke(this,void 0,void 0,function(){var i=this;return Re(this,function(r){return[2,new Promise(function(o,s){var a=window.msCrypto.subtle.sign(i._keygenAlgorithmOptions,t,e);a.addEventListener("complete",function(l){o(l.target.result)}),a.addEventListener("error",function(l){s(l)})})]})})},n.getJwkString=function(t){return JSON.stringify(t,Object.keys(t).sort())},n}(),nte=function(){function n(){this.dbName=Ff,this.version=1,this.tableName="msal.db.keys",this.dbOpen=!1}return n.prototype.open=function(){return ke(this,void 0,void 0,function(){var t=this;return Re(this,function(e){return[2,new Promise(function(i,r){var o=window.indexedDB.open(t.dbName,t.version);o.addEventListener("upgradeneeded",function(s){s.target.result.createObjectStore(t.tableName)}),o.addEventListener("success",function(s){t.db=s.target.result,t.dbOpen=!0,i()}),o.addEventListener("error",function(){return r(Ue.createDatabaseUnavailableError())})})]})})},n.prototype.closeConnection=function(){var t=this.db;t&&this.dbOpen&&(t.close(),this.dbOpen=!1)},n.prototype.validateDbIsOpen=function(){return ke(this,void 0,void 0,function(){return Re(this,function(t){switch(t.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,t.sent()];case 2:return[2]}})})},n.prototype.getItem=function(t){return ke(this,void 0,void 0,function(){var e=this;return Re(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(r,o){if(!e.db)return o(Ue.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).get(t);l.addEventListener("success",function(c){var u=c;e.closeConnection(),r(u.target.result)}),l.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},n.prototype.setItem=function(t,e){return ke(this,void 0,void 0,function(){var i=this;return Re(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(o,s){if(!i.db)return s(Ue.createDatabaseNotOpenError());var c=i.db.transaction([i.tableName],"readwrite").objectStore(i.tableName).put(e,t);c.addEventListener("success",function(){i.closeConnection(),o()}),c.addEventListener("error",function(u){i.closeConnection(),s(u)})})]}})})},n.prototype.removeItem=function(t){return ke(this,void 0,void 0,function(){var e=this;return Re(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(r,o){if(!e.db)return o(Ue.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readwrite").objectStore(e.tableName).delete(t);l.addEventListener("success",function(){e.closeConnection(),r()}),l.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},n.prototype.getKeys=function(){return ke(this,void 0,void 0,function(){var t=this;return Re(this,function(e){switch(e.label){case 0:return[4,this.validateDbIsOpen()];case 1:return e.sent(),[2,new Promise(function(i,r){if(!t.db)return r(Ue.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).getAllKeys();a.addEventListener("success",function(l){var c=l;t.closeConnection(),i(c.target.result)}),a.addEventListener("error",function(l){t.closeConnection(),r(l)})})]}})})},n.prototype.containsKey=function(t){return ke(this,void 0,void 0,function(){var e=this;return Re(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(r,o){if(!e.db)return o(Ue.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).count(t);l.addEventListener("success",function(c){var u=c;e.closeConnection(),r(1===u.target.result)}),l.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},n.prototype.deleteDatabase=function(){return ke(this,void 0,void 0,function(){return Re(this,function(i){switch(i.label){case 0:return this.db&&this.dbOpen&&this.closeConnection(),[4,window.indexedDB.databases()];case 1:return i.sent().find(function(r){return r.name===Ff})?[2,new Promise(function(r,o){var s=window.indexedDB.deleteDatabase(Ff);s.addEventListener("success",function(){return r(!0)}),s.addEventListener("error",function(){return o(!1)})})]:[2,!0]}})})},n}(),cw=function(){function n(){this.cache=new Map}return n.prototype.getItem=function(t){return this.cache.get(t)||null},n.prototype.setItem=function(t,e){this.cache.set(t,e)},n.prototype.removeItem=function(t){this.cache.delete(t)},n.prototype.getKeys=function(){var t=[];return this.cache.forEach(function(e,i){t.push(i)}),t},n.prototype.containsKey=function(t){return this.cache.has(t)},n.prototype.clear=function(){this.cache.clear()},n}(),IR=function(){function n(t,e){this.inMemoryCache=new cw,this.indexedDBCache=new nte,this.logger=t,this.storeName=e}return n.prototype.handleDatabaseAccessError=function(t){if(!(t instanceof Ue&&t.errorCode===Me_databaseUnavailable_code))throw t;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")},n.prototype.getItem=function(t){return ke(this,void 0,void 0,function(){var e,i;return Re(this,function(r){switch(r.label){case 0:if(e=this.inMemoryCache.getItem(t))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(t)];case 2:return[2,r.sent()];case 3:return i=r.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2,e]}})})},n.prototype.setItem=function(t,e){return ke(this,void 0,void 0,function(){var i;return Re(this,function(r){switch(r.label){case 0:this.inMemoryCache.setItem(t,e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(t,e)];case 2:return r.sent(),[3,4];case 3:return i=r.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2]}})})},n.prototype.removeItem=function(t){return ke(this,void 0,void 0,function(){var e;return Re(this,function(i){switch(i.label){case 0:this.inMemoryCache.removeItem(t),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(t)];case 2:return i.sent(),[3,4];case 3:return e=i.sent(),this.handleDatabaseAccessError(e),[3,4];case 4:return[2]}})})},n.prototype.getKeys=function(){return ke(this,void 0,void 0,function(){var t,e;return Re(this,function(i){switch(i.label){case 0:if(0!==(t=this.inMemoryCache.getKeys()).length)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,i.sent()];case 3:return e=i.sent(),this.handleDatabaseAccessError(e),[3,4];case 4:return[2,t]}})})},n.prototype.containsKey=function(t){return ke(this,void 0,void 0,function(){var e,i;return Re(this,function(r){switch(r.label){case 0:if(e=this.inMemoryCache.containsKey(t))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(t)];case 2:return[2,r.sent()];case 3:return i=r.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2,e]}})})},n.prototype.clear=function(){return ke(this,void 0,void 0,function(){var t,e;return Re(this,function(i){switch(i.label){case 0:this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted"),this.logger.verbose("Deleting persistent keystore "+this.storeName),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.deleteDatabase()];case 2:return(t=i.sent())&&this.logger.verbose("Persistent keystore "+this.storeName+" deleted"),[2,t];case 3:return e=i.sent(),this.handleDatabaseAccessError(e),[2,!1];case 4:return[2]}})})},n}(),th=(()=>(function(n){n.asymmetricKeys="asymmetricKeys",n.symmetricKeys="symmetricKeys"}(th||(th={})),th))(),ite=function(){function n(t,e){this.logger=t,this.browserCrypto=new eg(this.logger),this.b64Encode=new xR,this.b64Decode=new Qee,this.guidGenerator=new TR(this.browserCrypto),this.pkceGenerator=new Zee(this.browserCrypto),this.cache={asymmetricKeys:new IR(this.logger,th.asymmetricKeys),symmetricKeys:new IR(this.logger,th.symmetricKeys)},this.performanceClient=e}return n.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},n.prototype.base64Encode=function(t){return this.b64Encode.encode(t)},n.prototype.base64Decode=function(t){return this.b64Decode.decode(t)},n.prototype.generatePkceCodes=function(){return ke(this,void 0,void 0,function(){return Re(this,function(t){return[2,this.pkceGenerator.generateCodes()]})})},n.prototype.getPublicKeyThumbprint=function(t){var e;return ke(this,void 0,void 0,function(){var i,r,o,a,l,c,u;return Re(this,function(d){switch(d.label){case 0:return i=null===(e=this.performanceClient)||void 0===e?void 0:e.startMeasurement(di.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(n.EXTRACTABLE,n.POP_KEY_USAGES)];case 1:return r=d.sent(),[4,this.browserCrypto.exportJwk(r.publicKey)];case 2:return o=d.sent(),a=eg.getJwkString({e:o.e,kty:o.kty,n:o.n}),[4,this.hashString(a)];case 3:return l=d.sent(),[4,this.browserCrypto.exportJwk(r.privateKey)];case 4:return c=d.sent(),[4,this.browserCrypto.importJwk(c,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(l,{privateKey:u,publicKey:r.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return d.sent(),i&&i.endMeasurement({success:!0}),[2,l]}})})},n.prototype.removeTokenBindingKey=function(t){return ke(this,void 0,void 0,function(){return Re(this,function(i){switch(i.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(t)];case 1:return i.sent(),[4,this.cache.asymmetricKeys.containsKey(t)];case 2:return[2,!i.sent()]}})})},n.prototype.clearKeystore=function(){return ke(this,void 0,void 0,function(){var t;return Re(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),this.logger.verbose("Deleting in-memory and persistent asymmetric key stores"),[4,this.cache.asymmetricKeys.clear()];case 1:return e.sent(),this.logger.verbose("Successfully deleted asymmetric key stores"),this.logger.verbose("Deleting in-memory and persistent symmetric key stores"),[4,this.cache.symmetricKeys.clear()];case 2:return e.sent(),this.logger.verbose("Successfully deleted symmetric key stores"),[2,!0];case 3:return(t=e.sent())instanceof Error?this.logger.error("Clearing keystore failed with error: "+t.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},n.prototype.signJwt=function(t,e,i){var r;return ke(this,void 0,void 0,function(){var o,s,a,l,c,u,d,h,f,_,S,U,Z;return Re(this,function(ve){switch(ve.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(di.CryptoOptsSignJwt,i),[4,this.cache.asymmetricKeys.getItem(e)];case 1:if(!(s=ve.sent()))throw Ue.createSigningKeyNotFoundInStorageError(e);return[4,this.browserCrypto.exportJwk(s.publicKey)];case 2:return a=ve.sent(),l=eg.getJwkString(a),c=this.b64Encode.urlEncode(JSON.stringify({kid:e})),u=Yee.getShrHeaderString({kid:c,alg:a.alg}),d=this.b64Encode.urlEncode(u),t.cnf={jwk:JSON.parse(l)},h=this.b64Encode.urlEncode(JSON.stringify(t)),_=Uc.stringToArrayBuffer(f=d+"."+h),[4,this.browserCrypto.sign(s.privateKey,_)];case 3:return S=ve.sent(),U=this.b64Encode.urlEncodeArr(new Uint8Array(S)),Z=f+"."+U,o&&o.endMeasurement({success:!0}),[2,Z]}})})},n.prototype.hashString=function(t){return ke(this,void 0,void 0,function(){var e,i;return Re(this,function(r){switch(r.label){case 0:return[4,this.browserCrypto.sha256Digest(t)];case 1:return e=r.sent(),i=new Uint8Array(e),[2,this.b64Encode.urlEncodeArr(i)]}})})},n.POP_KEY_USAGES=["sign","verify"],n.EXTRACTABLE=!0,n}(),_i=(()=>(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace"}(_i||(_i={})),_i))(),MR=function(){function n(t,e,i){this.level=_i.Info,this.localCallback=t.loggerCallback||function(){},this.piiLoggingEnabled=t.piiLoggingEnabled||!1,this.level="number"==typeof t.logLevel?t.logLevel:_i.Info,this.correlationId=t.correlationId||J.EMPTY_STRING,this.packageName=e||J.EMPTY_STRING,this.packageVersion=i||J.EMPTY_STRING}return n.prototype.clone=function(t,e,i){return new n({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:i||this.correlationId},t,e)},n.prototype.logMessage=function(t,e){if(!(e.logLevel>this.level||!this.piiLoggingEnabled&&e.containsPii)){var r,i=(new Date).toUTCString();r=$e.isEmpty(e.correlationId)?$e.isEmpty(this.correlationId)?"["+i+"]":"["+i+"] : ["+this.correlationId+"]":"["+i+"] : ["+e.correlationId+"]",this.executeCallback(e.logLevel,r+" : "+this.packageName+"@"+this.packageVersion+" : "+_i[e.logLevel]+" - "+t,e.containsPii||!1)}},n.prototype.executeCallback=function(t,e,i){this.localCallback&&this.localCallback(t,e,i)},n.prototype.error=function(t,e){this.logMessage(t,{logLevel:_i.Error,containsPii:!1,correlationId:e||J.EMPTY_STRING})},n.prototype.errorPii=function(t,e){this.logMessage(t,{logLevel:_i.Error,containsPii:!0,correlationId:e||J.EMPTY_STRING})},n.prototype.warning=function(t,e){this.logMessage(t,{logLevel:_i.Warning,containsPii:!1,correlationId:e||J.EMPTY_STRING})},n.prototype.warningPii=function(t,e){this.logMessage(t,{logLevel:_i.Warning,containsPii:!0,correlationId:e||J.EMPTY_STRING})},n.prototype.info=function(t,e){this.logMessage(t,{logLevel:_i.Info,containsPii:!1,correlationId:e||J.EMPTY_STRING})},n.prototype.infoPii=function(t,e){this.logMessage(t,{logLevel:_i.Info,containsPii:!0,correlationId:e||J.EMPTY_STRING})},n.prototype.verbose=function(t,e){this.logMessage(t,{logLevel:_i.Verbose,containsPii:!1,correlationId:e||J.EMPTY_STRING})},n.prototype.verbosePii=function(t,e){this.logMessage(t,{logLevel:_i.Verbose,containsPii:!0,correlationId:e||J.EMPTY_STRING})},n.prototype.trace=function(t,e){this.logMessage(t,{logLevel:_i.Trace,containsPii:!1,correlationId:e||J.EMPTY_STRING})},n.prototype.tracePii=function(t,e){this.logMessage(t,{logLevel:_i.Trace,containsPii:!0,correlationId:e||J.EMPTY_STRING})},n.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},n}(),kR=function(){function n(t,e,i,r,o,s){this.authority=e,this.libraryName=r,this.libraryVersion=o,this.applicationTelemetry=s,this.clientId=t,this.logger=i,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.measurementsById=new Map}return n.prototype.startMeasurement=function(t,e){var r,o,i=this,s=e||this.generateId();e||this.logger.info("PerformanceClient: No correlation id provided for "+t+", generating",s),this.logger.trace("PerformanceClient: Performance measurement started for "+t,s);var a=this.startPerformanceMeasuremeant(t,s);a.startMeasurement();var l={eventId:this.generateId(),status:ul.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,appName:null===(r=this.applicationTelemetry)||void 0===r?void 0:r.appName,appVersion:null===(o=this.applicationTelemetry)||void 0===o?void 0:o.appVersion,clientId:this.clientId,name:t,startTimeMs:Date.now(),correlationId:s};return this.cacheEventByCorrelationId(l),this.cacheMeasurement(l,a),{endMeasurement:function(c){var u=i.endMeasurement(zn(zn({},l),c));return u&&i.cacheEventByCorrelationId(u),u},flushMeasurement:function(){return i.flushMeasurements(l.name,l.correlationId)},discardMeasurement:function(){return i.discardMeasurements(l.correlationId)},measurement:a,event:l}},n.prototype.endMeasurement=function(t){var e=this.measurementsById.get(t.eventId);if(e){this.measurementsById.delete(t.eventId),e.endMeasurement();var i=e.flushMeasurement();if(null!==i)return this.logger.trace("PerformanceClient: Performance measurement ended for "+t.name+": "+i+" ms",t.correlationId),zn(zn({durationMs:Math.round(i)},t),{status:ul.Completed});this.logger.trace("PerformanceClient: Performance measurement not taken",t.correlationId)}else this.logger.trace("PerformanceClient: Measurement not found for "+t.eventId,t.correlationId);return null},n.prototype.cacheEventByCorrelationId=function(t){var e=this.eventsByCorrelationId.get(t.correlationId);e?(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" added/updated",t.correlationId),e.set(t.eventId,t)):(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" started",t.correlationId),this.eventsByCorrelationId.set(t.correlationId,(new Map).set(t.eventId,t)))},n.prototype.cacheMeasurement=function(t,e){this.measurementsById.set(t.eventId,e)},n.prototype.flushMeasurements=function(t,e){var i=this;this.logger.trace("PerformanceClient: Performance measurements flushed for "+t,e);var r=this.eventsByCorrelationId.get(e);if(r){this.discardMeasurements(e);var o=[];r.forEach(function(u){if(u.name!==t&&u.status!==ul.Completed){i.logger.trace("PerformanceClient: Incomplete submeasurement "+u.name+" found for "+t,e);var d=i.endMeasurement(u);d&&o.push(d)}o.push(u)});var s=o.sort(function(u,d){return u.startTimeMs-d.startTimeMs}),a=s.filter(function(u){return u.name===t&&u.status===ul.Completed});if(a.length>0){a.length>1&&this.logger.verbose("PerformanceClient: Multiple distinct top-level performance events found, using the first",e);var l=a[0];this.logger.verbose("PerformanceClient: Measurement found for "+t,e);var c=s.reduce(function(u,d){if(d.name!==t){i.logger.trace("PerformanceClient: Complete submeasurement found for "+d.name,e);var h=d.name+"DurationMs";u[h]?i.logger.verbose("PerformanceClient: Submeasurement for "+t+" already exists for "+d.name+", ignoring",e):u[h]=d.durationMs,d.accessTokenSize&&(u.accessTokenSize=d.accessTokenSize),d.idTokenSize&&(u.idTokenSize=d.idTokenSize)}return u},l);this.emitEvents([c],c.correlationId)}else this.logger.verbose("PerformanceClient: No completed top-level measurements found for "+t,e)}else this.logger.verbose("PerformanceClient: No measurements found",e)},n.prototype.discardMeasurements=function(t){this.logger.trace("PerformanceClient: Performance measurements discarded",t),this.eventsByCorrelationId.delete(t)},n.prototype.addPerformanceCallback=function(t){var e=this.generateId();return this.callbacks.set(e,t),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+e),e},n.prototype.removePerformanceCallback=function(t){var e=this.callbacks.delete(t);return this.logger.verbose(e?"PerformanceClient: Performance callback "+t+" removed.":"PerformanceClient: Performance callback "+t+" not removed."),e},n.prototype.emitEvents=function(t,e){var i=this;this.logger.verbose("PerformanceClient: Emitting performance events",e),this.callbacks.forEach(function(r,o){i.logger.trace("PerformanceClient: Emitting event to callback "+o,e),r.apply(null,[t])})},n}(),rte=function(){function n(){}return n.prototype.startMeasurement=function(){},n.prototype.endMeasurement=function(){},n.prototype.flushMeasurement=function(){return null},n}(),ote=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ur(t,n),t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new rte},t}(kR),tg={createNewGuid:function(){throw ut.createUnexpectedError("Crypto interface - createNewGuid() has not been implemented")},base64Decode:function(){throw ut.createUnexpectedError("Crypto interface - base64Decode() has not been implemented")},base64Encode:function(){throw ut.createUnexpectedError("Crypto interface - base64Encode() has not been implemented")},generatePkceCodes:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")})})},getPublicKeyThumbprint:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")})})},removeTokenBindingKey:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")})})},clearKeystore:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")})})},signJwt:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Crypto interface - signJwt() has not been implemented")})})},hashString:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Crypto interface - hashString() has not been implemented")})})}},RR=["interaction_required","consent_required","login_required"],ste=["message_only","additional_action","basic_action","user_password_expired","consent_required"],nh_noTokensFoundError_code="no_tokens_found",nh_noTokensFoundError_desc="No refresh token found in the cache. Please sign-in.",nh_native_account_unavailable_code="native_account_unavailable",nh_native_account_unavailable_desc="The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",Co=function(n){function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.name="InteractionRequiredAuthError",Object.setPrototypeOf(o,t.prototype),o}return ur(t,n),t.isInteractionRequiredError=function(e,i,r){var o=!!e&&RR.indexOf(e)>-1,s=!!r&&ste.indexOf(r)>-1,a=!!i&&RR.some(function(l){return i.indexOf(l)>-1});return o||a||s},t.createNoTokensFoundError=function(){return new t(nh_noTokensFoundError_code,nh_noTokensFoundError_desc)},t.createNativeAccountUnavailableError=function(){return new t(nh_native_account_unavailable_code,nh_native_account_unavailable_desc)},t}(ut),dl=function(n){function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.name="ServerError",Object.setPrototypeOf(o,t.prototype),o}return ur(t,n),t}(ut);function ng(n,t){if($e.isEmpty(n))throw it.createClientInfoEmptyError();try{var e=t.base64Decode(n);return JSON.parse(e)}catch(i){throw it.createClientInfoDecodingError(i)}}function qc(n){if($e.isEmpty(n))throw it.createClientInfoDecodingError("Home account ID was empty.");var t=n.split(dr.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?J.EMPTY_STRING:t[1]}}var Xo=(()=>(function(n){n[n.Default=0]="Default",n[n.Adfs=1]="Adfs"}(Xo||(Xo={})),Xo))(),Fi=function(){function n(){}return n.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(dr.CACHE_KEY_SEPARATOR).toLowerCase()},n.prototype.generateAccountKey=function(){return n.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},n.prototype.generateType=function(){switch(this.authorityType){case Uo.ADFS_ACCOUNT_TYPE:return qo.ADFS;case Uo.MSAV1_ACCOUNT_TYPE:return qo.MSA;case Uo.MSSTS_ACCOUNT_TYPE:return qo.MSSTS;case Uo.GENERIC_ACCOUNT_TYPE:return qo.GENERIC;default:throw it.createUnexpectedAccountTypeError()}},n.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},n.generateAccountCacheKey=function(t){return[t.homeAccountId,t.environment||J.EMPTY_STRING,t.tenantId||J.EMPTY_STRING].join(dr.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAccount=function(t,e,i,r,o,s,a,l){var c,u,d,h,f,_,S=new n;S.authorityType=Uo.MSSTS_ACCOUNT_TYPE,S.clientInfo=t,S.homeAccountId=e,S.nativeAccountId=l;var U=a||r&&r.getPreferredCache();if(!U)throw it.createInvalidCacheEnvironmentError();return S.environment=U,S.realm=(null===(c=i?.claims)||void 0===c?void 0:c.tid)||J.EMPTY_STRING,i&&(S.idTokenClaims=i.claims,S.localAccountId=(null===(u=i?.claims)||void 0===u?void 0:u.oid)||(null===(d=i?.claims)||void 0===d?void 0:d.sub)||J.EMPTY_STRING,S.username=(null===(h=i?.claims)||void 0===h?void 0:h.preferred_username)||(null!==(f=i?.claims)&&void 0!==f&&f.emails?i.claims.emails[0]:J.EMPTY_STRING),S.name=null===(_=i?.claims)||void 0===_?void 0:_.name),S.cloudGraphHostName=o,S.msGraphHost=s,S},n.createGenericAccount=function(t,e,i,r,o,s){var a,l,c,u,d=new n;d.authorityType=i&&i.authorityType===Xo.Adfs?Uo.ADFS_ACCOUNT_TYPE:Uo.GENERIC_ACCOUNT_TYPE,d.homeAccountId=t,d.realm=J.EMPTY_STRING;var h=s||i&&i.getPreferredCache();if(!h)throw it.createInvalidCacheEnvironmentError();return e&&(d.localAccountId=(null===(a=e?.claims)||void 0===a?void 0:a.oid)||(null===(l=e?.claims)||void 0===l?void 0:l.sub)||J.EMPTY_STRING,d.username=(null===(c=e?.claims)||void 0===c?void 0:c.upn)||J.EMPTY_STRING,d.name=(null===(u=e?.claims)||void 0===u?void 0:u.name)||J.EMPTY_STRING,d.idTokenClaims=e?.claims),d.environment=h,d.cloudGraphHostName=r,d.msGraphHost=o,d},n.generateHomeAccountId=function(t,e,i,r,o){var s,a=null!==(s=o?.claims)&&void 0!==s&&s.sub?o.claims.sub:J.EMPTY_STRING;if(e===Xo.Adfs)return a;if(t)try{var l=ng(t,r);if(!$e.isEmpty(l.uid)&&!$e.isEmpty(l.utid))return""+l.uid+dr.CLIENT_INFO_SEPARATOR+l.utid}catch{}return i.verbose("No client info in response"),a},n.isAccountEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("localAccountId")&&t.hasOwnProperty("username")&&t.hasOwnProperty("authorityType")},n.accountInfoIsEqual=function(t,e,i){if(!t||!e)return!1;var r=!0;if(i){var o=t.idTokenClaims||{},s=e.idTokenClaims||{};r=o.iat===s.iat&&o.nonce===s.nonce}return t.homeAccountId===e.homeAccountId&&t.localAccountId===e.localAccountId&&t.username===e.username&&t.tenantId===e.tenantId&&t.environment===e.environment&&t.nativeAccountId===e.nativeAccountId&&r},n}(),ih=function(){function n(){}return n.prototype.generateAccountId=function(){return n.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},n.prototype.generateCredentialId=function(){return n.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},n.prototype.generateTarget=function(){return n.generateTargetForCacheKey(this.target)},n.prototype.generateCredentialKey=function(){return n.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},n.prototype.generateType=function(){switch(this.credentialType){case qt.ID_TOKEN:return qo.ID_TOKEN;case qt.ACCESS_TOKEN:case qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return qo.ACCESS_TOKEN;case qt.REFRESH_TOKEN:return qo.REFRESH_TOKEN;default:throw it.createUnexpectedCredentialTypeError()}},n.getCredentialType=function(t){return-1!==t.indexOf(qt.ACCESS_TOKEN.toLowerCase())?-1!==t.indexOf(qt.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())?qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:qt.ACCESS_TOKEN:-1!==t.indexOf(qt.ID_TOKEN.toLowerCase())?qt.ID_TOKEN:-1!==t.indexOf(qt.REFRESH_TOKEN.toLowerCase())?qt.REFRESH_TOKEN:J.NOT_DEFINED},n.generateCredentialCacheKey=function(t,e,i,r,o,s,a,l,c){return[this.generateAccountIdForCacheKey(t,e),this.generateCredentialIdForCacheKey(i,r,o,a),this.generateTargetForCacheKey(s),this.generateClaimsHashForCacheKey(c),this.generateSchemeForCacheKey(l)].join(dr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateAccountIdForCacheKey=function(t,e){return[t,e].join(dr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateCredentialIdForCacheKey=function(t,e,i,r){return[t,t===qt.REFRESH_TOKEN&&r||e,i||J.EMPTY_STRING].join(dr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateTargetForCacheKey=function(t){return(t||J.EMPTY_STRING).toLowerCase()},n.generateClaimsHashForCacheKey=function(t){return(t||J.EMPTY_STRING).toLowerCase()},n.generateSchemeForCacheKey=function(t){return t&&t.toLowerCase()!==fn.BEARER.toLowerCase()?t.toLowerCase():J.EMPTY_STRING},n}(),fr=function(){function n(t){var e=this,i=t?$e.trimArrayEntries(Rf(t)):[],r=i?$e.removeEmptyStringsFromArray(i):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(function(o){return e.scopes.add(o)})}return n.fromString=function(t){return new n((t||J.EMPTY_STRING).split(" "))},n.prototype.validateInputScopes=function(t){if(!t||t.length<1)throw xn.createEmptyScopesArrayError()},n.prototype.containsScope=function(t){var i=new n(this.printScopesLowerCase().split(" "));return!$e.isEmpty(t)&&i.scopes.has(t.toLowerCase())},n.prototype.containsScopeSet=function(t){var e=this;return!(!t||t.scopes.size<=0)&&this.scopes.size>=t.scopes.size&&t.asArray().every(function(i){return e.containsScope(i)})},n.prototype.containsOnlyOIDCScopes=function(){var t=this,e=0;return LI.forEach(function(i){t.containsScope(i)&&(e+=1)}),this.scopes.size===e},n.prototype.appendScope=function(t){$e.isEmpty(t)||this.scopes.add(t.trim())},n.prototype.appendScopes=function(t){var e=this;try{t.forEach(function(i){return e.appendScope(i)})}catch(i){throw it.createAppendScopeSetError(i)}},n.prototype.removeScope=function(t){if($e.isEmpty(t))throw it.createRemoveEmptyScopeFromSetError(t);this.scopes.delete(t.trim())},n.prototype.removeOIDCScopes=function(){var t=this;LI.forEach(function(e){t.scopes.delete(e)})},n.prototype.unionScopeSets=function(t){if(!t)throw it.createEmptyInputScopeSetError();var e=new Set;return t.scopes.forEach(function(i){return e.add(i.toLowerCase())}),this.scopes.forEach(function(i){return e.add(i.toLowerCase())}),e},n.prototype.intersectingScopeSets=function(t){if(!t)throw it.createEmptyInputScopeSetError();t.containsOnlyOIDCScopes()||t.removeOIDCScopes();var e=this.unionScopeSets(t),i=t.getScopeCount(),r=this.getScopeCount();return e.size1)throw it.createMultipleMatchingAccountsInCacheError();return i[0]},n.prototype.readIdTokenFromCache=function(t,e){var r=this.getCredentialsFilteredBy({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:qt.ID_TOKEN,clientId:t,realm:e.tenantId}),o=Object.keys(r.idTokens).map(function(a){return r.idTokens[a]}),s=o.length;if(s<1)return null;if(s>1)throw it.createMultipleMatchingTokensInCacheError();return o[0]},n.prototype.readAccessTokenFromCache=function(t,e,i){var r=new fr(i.scopes||[]),o=i.authenticationScheme||fn.BEARER,s=o&&o.toLowerCase()!==fn.BEARER.toLowerCase()?qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:qt.ACCESS_TOKEN,a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:s,clientId:t,realm:e.tenantId,target:r.printScopesLowerCase(),tokenType:o,keyId:i.sshKid,requestedClaimsHash:i.requestedClaimsHash},l=this.getCredentialsFilteredBy(a),c=Object.keys(l.accessTokens).map(function(d){return l.accessTokens[d]}),u=c.length;if(u<1)return null;if(u>1)throw it.createMultipleMatchingTokensInCacheError();return c[0]},n.prototype.readRefreshTokenFromCache=function(t,e,i){var s=this.getCredentialsFilteredBy({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:qt.REFRESH_TOKEN,clientId:t,familyId:i?"1":void 0}),a=Object.keys(s.refreshTokens).map(function(c){return s.refreshTokens[c]});return a.length<1?null:a[0]},n.prototype.readAppMetadataFromCache=function(t,e){var r=this.getAppMetadataFilteredBy({environment:t,clientId:e}),o=Object.keys(r).map(function(a){return r[a]}),s=o.length;if(s<1)return null;if(s>1)throw it.createMultipleMatchingAppMetadataInCacheError();return o[0]},n.prototype.isAppMetadataFOCI=function(t,e){var i=this.readAppMetadataFromCache(t,e);return!(!i||"1"!==i.familyId)},n.prototype.matchHomeAccountId=function(t,e){return!(!t.homeAccountId||e!==t.homeAccountId)},n.prototype.matchUserAssertionHash=function(t,e){return!(!t.userAssertionHash||e!==t.userAssertionHash)},n.prototype.matchEnvironment=function(t,e){var i=this.getAuthorityMetadataByAlias(e);return!!(i&&i.aliases.indexOf(t.environment)>-1)},n.prototype.matchCredentialType=function(t,e){return t.credentialType&&e.toLowerCase()===t.credentialType.toLowerCase()},n.prototype.matchClientId=function(t,e){return!(!t.clientId||e!==t.clientId)},n.prototype.matchFamilyId=function(t,e){return!(!t.familyId||e!==t.familyId)},n.prototype.matchRealm=function(t,e){return!(!t.realm||e!==t.realm)},n.prototype.matchNativeAccountId=function(t,e){return!(!t.nativeAccountId||e!==t.nativeAccountId)},n.prototype.matchTarget=function(t,e){if(t.credentialType!==qt.ACCESS_TOKEN&&t.credentialType!==qt.ACCESS_TOKEN_WITH_AUTH_SCHEME||!t.target)return!1;var r=fr.fromString(t.target),o=fr.fromString(e);return o.containsOnlyOIDCScopes()?o.removeScope(J.OFFLINE_ACCESS_SCOPE):o.removeOIDCScopes(),r.containsScopeSet(o)},n.prototype.matchTokenType=function(t,e){return!(!t.tokenType||t.tokenType!==e)},n.prototype.matchKeyId=function(t,e){return!(!t.keyId||t.keyId!==e)},n.prototype.isAppMetadata=function(t){return-1!==t.indexOf(Tb)},n.prototype.isAuthorityMetadata=function(t){return-1!==t.indexOf("authority-metadata")},n.prototype.generateAuthorityMetadataCacheKey=function(t){return"authority-metadata-"+this.clientId+"-"+t},n.prototype.getSpecificCredential=function(t,e){switch(e){case qt.ID_TOKEN:return this.getIdTokenCredential(t);case qt.ACCESS_TOKEN:case qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(t);case qt.REFRESH_TOKEN:return this.getRefreshTokenCredential(t);default:return null}},n.toObject=function(t,e){for(var i in e)t[i]=e[i];return t},n}(),ate=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ur(t,n),t.prototype.setAccount=function(){throw ut.createUnexpectedError("Storage interface - setAccount() has not been implemented for the cacheStorage interface.")},t.prototype.getAccount=function(){throw ut.createUnexpectedError("Storage interface - getAccount() has not been implemented for the cacheStorage interface.")},t.prototype.setIdTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getIdTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAccessTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getAccessTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setRefreshTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getRefreshTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAppMetadata=function(){throw ut.createUnexpectedError("Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAppMetadata=function(){throw ut.createUnexpectedError("Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.setServerTelemetry=function(){throw ut.createUnexpectedError("Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.getServerTelemetry=function(){throw ut.createUnexpectedError("Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.setAuthorityMetadata=function(){throw ut.createUnexpectedError("Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadata=function(){throw ut.createUnexpectedError("Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadataKeys=function(){throw ut.createUnexpectedError("Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.")},t.prototype.setThrottlingCache=function(){throw ut.createUnexpectedError("Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.getThrottlingCache=function(){throw ut.createUnexpectedError("Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.removeItem=function(){throw ut.createUnexpectedError("Storage interface - removeItem() has not been implemented for the cacheStorage interface.")},t.prototype.containsKey=function(){throw ut.createUnexpectedError("Storage interface - containsKey() has not been implemented for the cacheStorage interface.")},t.prototype.getKeys=function(){throw ut.createUnexpectedError("Storage interface - getKeys() has not been implemented for the cacheStorage interface.")},t.prototype.clear=function(){return Dt(this,void 0,void 0,function(){return St(this,function(i){throw ut.createUnexpectedError("Storage interface - clear() has not been implemented for the cacheStorage interface.")})})},t.prototype.updateCredentialCacheKey=function(){throw ut.createUnexpectedError("Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.")},t}(wo),rh=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ur(t,n),t.createIdTokenEntity=function(e,i,r,o,s){var a=new t;return a.credentialType=qt.ID_TOKEN,a.homeAccountId=e,a.environment=i,a.clientId=o,a.secret=r,a.realm=s,a},t.isIdTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===qt.ID_TOKEN},t}(ih),Qr=function(){function n(){}return n.nowSeconds=function(){return Math.round((new Date).getTime()/1e3)},n.isTokenExpired=function(t,e){var i=Number(t)||0;return n.nowSeconds()+e>i},n.wasClockTurnedBack=function(t){return Number(t)>n.nowSeconds()},n.delay=function(t,e){return new Promise(function(i){return setTimeout(function(){return i(e)},t)})},n}(),oh=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ur(t,n),t.createAccessTokenEntity=function(e,i,r,o,s,a,l,c,u,d,h,f,_,S,U){var Z,ve,ee=new t;ee.homeAccountId=e,ee.credentialType=qt.ACCESS_TOKEN,ee.secret=r;var Te=Qr.nowSeconds();if(ee.cachedAt=Te.toString(),ee.expiresOn=l.toString(),ee.extendedExpiresOn=c.toString(),d&&(ee.refreshOn=d.toString()),ee.environment=i,ee.clientId=o,ee.realm=s,ee.target=a,ee.userAssertionHash=f,ee.tokenType=$e.isEmpty(h)?fn.BEARER:h,S&&(ee.requestedClaims=S,ee.requestedClaimsHash=U),(null===(Z=ee.tokenType)||void 0===Z?void 0:Z.toLowerCase())!==fn.BEARER.toLowerCase())switch(ee.credentialType=qt.ACCESS_TOKEN_WITH_AUTH_SCHEME,ee.tokenType){case fn.POP:var et=ma.extractTokenClaims(r,u);if(null===(ve=et?.cnf)||void 0===ve||!ve.kid)throw it.createTokenClaimsRequiredError();ee.keyId=et.cnf.kid;break;case fn.SSH:ee.keyId=_}return ee},t.isAccessTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.hasOwnProperty("target")&&(e.credentialType===qt.ACCESS_TOKEN||e.credentialType===qt.ACCESS_TOKEN_WITH_AUTH_SCHEME)},t}(ih),uw=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ur(t,n),t.createRefreshTokenEntity=function(e,i,r,o,s,a){var l=new t;return l.clientId=o,l.credentialType=qt.REFRESH_TOKEN,l.environment=i,l.homeAccountId=e,l.secret=r,l.userAssertionHash=a,s&&(l.familyId=s),l},t.isRefreshTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===qt.REFRESH_TOKEN},t}(ih),dw=function(){function n(){}return n.prototype.generateAppMetadataKey=function(){return n.generateAppMetadataCacheKey(this.environment,this.clientId)},n.generateAppMetadataCacheKey=function(t,e){return[Tb,t,e].join(dr.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAppMetadataEntity=function(t,e,i){var r=new n;return r.clientId=t,r.environment=e,i&&(r.familyId=i),r},n.isAppMetadataEntity=function(t,e){return!!e&&0===t.indexOf(Tb)&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment")},n}(),ig=function(){function n(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return n.isServerTelemetryEntity=function(t,e){var i=0===t.indexOf(Si.CACHE_KEY),r=!0;return e&&(r=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),i&&r},n}(),hw=function(){function n(){this.expiresAt=Qr.nowSeconds()+86400}return n.prototype.updateCloudDiscoveryMetadata=function(t,e){this.aliases=t.aliases,this.preferred_cache=t.preferred_cache,this.preferred_network=t.preferred_network,this.aliasesFromNetwork=e},n.prototype.updateEndpointMetadata=function(t,e){this.authorization_endpoint=t.authorization_endpoint,this.token_endpoint=t.token_endpoint,this.end_session_endpoint=t.end_session_endpoint,this.issuer=t.issuer,this.endpointsFromNetwork=e,this.jwks_uri=t.jwks_uri},n.prototype.updateCanonicalAuthority=function(t){this.canonical_authority=t},n.prototype.resetExpiresAt=function(){this.expiresAt=Qr.nowSeconds()+86400},n.prototype.isExpired=function(){return this.expiresAt<=Qr.nowSeconds()},n.isAuthorityMetadataEntity=function(t,e){return!!e&&0===t.indexOf("authority-metadata")&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri")},n}(),OR=function(){function n(){}return n.isThrottlingEntity=function(t,e){var i=!1;t&&(i=0===t.indexOf("throttling"));var r=!0;return e&&(r=e.hasOwnProperty("throttleTime")),i&&r},n}(),Fs=function(){function n(){}return n.setRequestState=function(t,e,i){var r=n.generateLibraryState(t,i);return $e.isEmpty(e)?r:""+r+J.RESOURCE_DELIM+e},n.generateLibraryState=function(t,e){if(!t)throw it.createNoCryptoObjectError("generateLibraryState");var i={id:t.createNewGuid()};e&&(i.meta=e);var r=JSON.stringify(i);return t.base64Encode(r)},n.parseRequestState=function(t,e){if(!t)throw it.createNoCryptoObjectError("parseRequestState");if($e.isEmpty(e))throw it.createInvalidStateError(e,"Null, undefined or empty state");try{var i=e.split(J.RESOURCE_DELIM),r=i[0],o=i.length>1?i.slice(1).join(J.RESOURCE_DELIM):J.EMPTY_STRING,s=t.base64Decode(r),a=JSON.parse(s);return{userRequestState:$e.isEmpty(o)?J.EMPTY_STRING:o,libraryState:a}}catch(l){throw it.createInvalidStateError(e,l)}},n}(),mr=(()=>(function(n){n.HOME_ACCOUNT_ID="home_account_id",n.UPN="UPN"}(mr||(mr={})),mr))(),PR=function(){function n(t){this.validateWindowStorage(t),this.windowStorage=window[t]}return n.prototype.validateWindowStorage=function(t){if(t!==Ai.LocalStorage&&t!==Ai.SessionStorage)throw Hf.createStorageNotSupportedError(t);if(!window[t])throw Hf.createStorageNotSupportedError(t)},n.prototype.getItem=function(t){return this.windowStorage.getItem(t)},n.prototype.setItem=function(t,e){this.windowStorage.setItem(t,e)},n.prototype.removeItem=function(t){this.windowStorage.removeItem(t)},n.prototype.getKeys=function(){return Object.keys(this.windowStorage)},n.prototype.containsKey=function(t){return this.windowStorage.hasOwnProperty(t)},n}(),LR=function(){function n(){}return n.extractBrowserRequestState=function(t,e){if($e.isEmpty(e))return null;try{return Fs.parseRequestState(t,e).libraryState.meta}catch(r){throw it.createInvalidStateError(e,r)}},n.parseServerResponseFromHash=function(t){if(!t)return{};var e=new nn(t);return nn.getDeserializedHash(e.getHash())},n}(),pw=function(n){function t(e,i,r,o){var s=n.call(this,e,r)||this;return s.COOKIE_LIFE_MULTIPLIER=864e5,s.cacheConfig=i,s.logger=o,s.internalStorage=new cw,s.browserStorage=s.setupBrowserStorage(s.cacheConfig.cacheLocation),s.temporaryCacheStorage=s.setupTemporaryCacheStorage(s.cacheConfig.cacheLocation),s.migrateCacheEntries(),s}return Ti(t,n),t.prototype.setupBrowserStorage=function(e){switch(e){case Ai.LocalStorage:case Ai.SessionStorage:try{return new PR(e)}catch(i){this.logger.verbose(i);break}}return this.cacheConfig.cacheLocation=Ai.MemoryStorage,new cw},t.prototype.setupTemporaryCacheStorage=function(e){switch(e){case Ai.LocalStorage:case Ai.SessionStorage:try{return new PR(Ai.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,r=J.CACHE_PREFIX+"."+ri.CLIENT_INFO,o=J.CACHE_PREFIX+"."+ri.ERROR,s=J.CACHE_PREFIX+"."+ri.ERROR_DESC,d=[this.browserStorage.getItem(J.CACHE_PREFIX+"."+ri.ID_TOKEN),this.browserStorage.getItem(r),this.browserStorage.getItem(o),this.browserStorage.getItem(s)];[ri.ID_TOKEN,ri.CLIENT_INFO,ri.ERROR,ri.ERROR_DESC].forEach(function(f,_){return e.migrateCacheEntry(f,d[_])})},t.prototype.migrateCacheEntry=function(e,i){i&&this.setTemporaryCache(e,i,!0)},t.prototype.validateAndParseJson=function(e){try{var i=JSON.parse(e);return i&&"object"==typeof i?i:null}catch{return null}},t.prototype.getItem=function(e){return this.browserStorage.getItem(e)},t.prototype.setItem=function(e,i){this.browserStorage.setItem(e,i)},t.prototype.getAccount=function(e){var i=this.getItem(e);if(!i)return null;var r=this.validateAndParseJson(i);return r&&Fi.isAccountEntity(r)?wo.toObject(new Fi,r):null},t.prototype.setAccount=function(e){this.logger.trace("BrowserCacheManager.setAccount called");var i=e.generateAccountKey();this.setItem(i,JSON.stringify(e))},t.prototype.getIdTokenCredential=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&rh.isIdTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),wo.toObject(new rh,r)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null)},t.prototype.setIdTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var i=e.generateCredentialKey();this.setItem(i,JSON.stringify(e))},t.prototype.getAccessTokenCredential=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&oh.isAccessTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),wo.toObject(new oh,r)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null)},t.prototype.setAccessTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var i=e.generateCredentialKey();this.setItem(i,JSON.stringify(e))},t.prototype.getRefreshTokenCredential=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&uw.isRefreshTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),wo.toObject(new uw,r)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null)},t.prototype.setRefreshTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var i=e.generateCredentialKey();this.setItem(i,JSON.stringify(e))},t.prototype.getAppMetadata=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&dw.isAppMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),wo.toObject(new dw,r)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},t.prototype.setAppMetadata=function(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");var i=e.generateAppMetadataKey();this.setItem(i,JSON.stringify(e))},t.prototype.getServerTelemetry=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&ig.isServerTelemetryEntity(e,r)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),wo.toObject(new ig,r)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},t.prototype.setServerTelemetry=function(e,i){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(i))},t.prototype.getAuthorityMetadata=function(e){var i=this.internalStorage.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&hw.isAuthorityMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),wo.toObject(new hw,r)):null},t.prototype.getAuthorityMetadataKeys=function(){var e=this;return this.internalStorage.getKeys().filter(function(r){return e.isAuthorityMetadata(r)})},t.prototype.setWrapperMetadata=function(e,i){this.internalStorage.setItem(Xa.WRAPPER_SKU,e),this.internalStorage.setItem(Xa.WRAPPER_VER,i)},t.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(Xa.WRAPPER_SKU)||J.EMPTY_STRING,this.internalStorage.getItem(Xa.WRAPPER_VER)||J.EMPTY_STRING]},t.prototype.setAuthorityMetadata=function(e,i){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(i))},t.prototype.getActiveAccount=function(){var e=this.generateCacheKey(ri.ACTIVE_ACCOUNT_FILTERS),i=this.getItem(e);if(!i){this.logger.trace("No active account filters cache schema found, looking for legacy schema");var r=this.generateCacheKey(ri.ACTIVE_ACCOUNT),o=this.getItem(r);if(!o)return this.logger.trace("No active account found"),null;var s=this.getAccountInfoByFilter({localAccountId:o})[0]||null;return s?(this.logger.trace("Legacy active account cache schema found"),this.logger.trace("Adding active account filters cache schema"),this.setActiveAccount(s),s):null}var a=this.validateAndParseJson(i);return a?(this.logger.trace("Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:a.homeAccountId,localAccountId:a.localAccountId})[0]||null):(this.logger.trace("No active account found"),null)},t.prototype.setActiveAccount=function(e){var i=this.generateCacheKey(ri.ACTIVE_ACCOUNT_FILTERS),r=this.generateCacheKey(ri.ACTIVE_ACCOUNT);e?(this.logger.verbose("setActiveAccount: Active account set"),this.browserStorage.setItem(i,JSON.stringify({homeAccountId:e.homeAccountId,localAccountId:e.localAccountId})),this.browserStorage.setItem(r,e.localAccountId)):(this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(i),this.browserStorage.removeItem(r))},t.prototype.getAccountInfoByFilter=function(e){return this.getAllAccounts().filter(function(r){return!(e.username&&e.username.toLowerCase()!==r.username.toLowerCase()||e.homeAccountId&&e.homeAccountId!==r.homeAccountId||e.localAccountId&&e.localAccountId!==r.localAccountId||e.tenantId&&e.tenantId!==r.tenantId||e.environment&&e.environment!==r.environment)})},t.prototype.getAccountInfoByHints=function(e,i){var r=this.getAllAccounts().filter(function(o){return i?i===(o.idTokenClaims&&o.idTokenClaims.sid):!!e&&e===o.username});if(1===r.length)return r[0];if(r.length>1)throw it.createMultipleMatchingAccountsInCacheError();return null},t.prototype.getThrottlingCache=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&OR.isThrottlingEntity(e,r)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),wo.toObject(new OR,r)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},t.prototype.setThrottlingCache=function(e,i){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(i))},t.prototype.getTemporaryCache=function(e,i){var r=i?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){var o=this.getItemCookie(r);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}var s=this.temporaryCacheStorage.getItem(r);if(!s){if(this.cacheConfig.cacheLocation===Ai.LocalStorage){var a=this.browserStorage.getItem(r);if(a)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),a}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),s},t.prototype.setTemporaryCache=function(e,i,r){var o=r?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(o,i),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(o,i))},t.prototype.removeItem=function(e){return this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e)),!0},t.prototype.containsKey=function(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)},t.prototype.getKeys=function(){return HI(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return ke(this,void 0,void 0,function(){var e=this;return Re(this,function(i){switch(i.label){case 0:return[4,this.removeAllAccounts()];case 1:return i.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(r){(e.browserStorage.containsKey(r)||e.temporaryCacheStorage.containsKey(r))&&(-1!==r.indexOf(J.CACHE_PREFIX)||-1!==r.indexOf(e.clientId))&&e.removeItem(r)}),this.internalStorage.clear(),[2]}})})},t.prototype.setItemCookie=function(e,i,r){var o=encodeURIComponent(e)+"="+encodeURIComponent(i)+";path=/;SameSite=Lax;";r&&(o+="expires="+this.getCookieExpirationTime(r)+";"),this.cacheConfig.secureCookies&&(o+="Secure;"),document.cookie=o},t.prototype.getItemCookie=function(e){for(var i=encodeURIComponent(e)+"=",r=document.cookie.split(";"),o=0;o(function(n){n.AAD="AAD",n.OIDC="OIDC"}(sh||(sh={})),sh))(),zc=(()=>(function(n){n[n.None=0]="None",n.AzurePublic="https://login.microsoftonline.com",n.AzurePpe="https://login.windows-ppe.net",n.AzureChina="https://login.chinacloudapi.cn",n.AzureGermany="https://login.microsoftonline.de",n.AzureUsGovernment="https://login.microsoftonline.us"}(zc||(zc={})),zc))(),FR={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1,proxyUrl:J.EMPTY_STRING},dte={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:_i.Info,correlationId:J.EMPTY_STRING},hte={sendGetRequestAsync:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented")})})},sendPostRequestAsync:function(){return Dt(this,void 0,void 0,function(){return St(this,function(t){throw ut.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented")})})}},pte={sku:J.SKU,version:"7.3.0",cpu:J.EMPTY_STRING,os:J.EMPTY_STRING},fte={clientSecret:J.EMPTY_STRING,clientAssertion:void 0},mte={azureCloudInstance:zc.None,tenant:""+J.DEFAULT_COMMON_TENANT},gte={application:{appName:"",appVersion:""}};function vte(n){return zn({clientCapabilities:[],azureCloudOptions:mte,skipAuthorityMetadataCache:!1},n)}var yte={sendGetRequestAsync:function(){return Promise.reject(ut.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented for the Network interface."))},sendPostRequestAsync:function(){return Promise.reject(ut.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented for the Network interface."))}},bte=function(){function n(){}return n.prototype.navigateInternal=function(t,e){return n.defaultNavigateWindow(t,e)},n.prototype.navigateExternal=function(t,e){return n.defaultNavigateWindow(t,e)},n.defaultNavigateWindow=function(t,e){return e.noHistory?window.location.replace(t):window.location.assign(t),new Promise(function(i){setTimeout(function(){i(!0)},e.timeout)})},n}(),mw="@azure/msal-browser",ah="2.28.1",Ste=function(){function n(t,e){this.eventCallbacks=new Map,this.logger=t,this.browserCrypto=e,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return n.prototype.addEventCallback=function(t){if(typeof window<"u"){var e=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(e,t),this.logger.verbose("Event callback registered with id: "+e),e}return null},n.prototype.removeEventCallback=function(t){this.eventCallbacks.delete(t),this.logger.verbose("Event callback "+t+" removed.")},n.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},n.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},n.prototype.emitEvent=function(t,e,i,r){var o=this;if(typeof window<"u"){var s={eventType:t,interactionType:e||null,payload:i||null,error:r||null,timestamp:Date.now()};this.logger.info("Emitting event: "+t),this.eventCallbacks.forEach(function(a,l){o.logger.verbose("Emitting event to callback "+l+": "+t),a.apply(null,[s])})}},n.prototype.handleAccountCacheChange=function(t){try{var e=t.newValue||t.oldValue;if(!e)return;var i=JSON.parse(e);if("object"!=typeof i||!Fi.isAccountEntity(i))return;var o=wo.toObject(new Fi,i).getAccountInfo();!t.oldValue&&t.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(st.ACCOUNT_ADDED,void 0,o)):!t.newValue&&t.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(st.ACCOUNT_REMOVED,void 0,o))}catch{return}},n}(),rg=function(){function n(){}return n.generateThrottlingStorageKey=function(t){return"throttling."+JSON.stringify(t)},n.preProcess=function(t,e){var i,r=n.generateThrottlingStorageKey(e),o=t.getThrottlingCache(r);if(o){if(o.throttleTime=500&&t.status<600},n.checkResponseForRetryAfter=function(t){return!!t.headers&&t.headers.hasOwnProperty(jo.RETRY_AFTER)&&(t.status<200||t.status>=300)},n.calculateThrottleTime=function(t){var e=t<=0?0:t,i=Date.now()/1e3;return Math.floor(1e3*Math.min(i+(e||60),i+3600))},n.removeThrottle=function(t,e,i,r){var s=this.generateThrottlingStorageKey({clientId:e,authority:i.authority,scopes:i.scopes,homeAccountIdentifier:r,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid});return t.removeItem(s,oa.THROTTLING)},n}(),Ate=function(){function n(t,e){this.networkClient=t,this.cacheManager=e}return n.prototype.sendPostRequest=function(t,e,i){return Dt(this,void 0,void 0,function(){var r,o;return St(this,function(s){switch(s.label){case 0:rg.preProcess(this.cacheManager,t),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(e,i)];case 2:return r=s.sent(),[3,4];case 3:throw(o=s.sent())instanceof ut?o:it.createNetworkError(e,o);case 4:return rg.postProcess(this.cacheManager,t,r),[2,r]}})})},n}(),gw=function(){function n(t,e){this.config=function _te(n){var t=n.authOptions,e=n.systemOptions,i=n.loggerOptions,r=n.storageInterface,o=n.networkInterface,s=n.cryptoInterface,a=n.clientCredentials,l=n.libraryInfo,c=n.telemetry,u=n.serverTelemetryManager,d=n.persistencePlugin,h=n.serializableCache,f=zn(zn({},dte),i);return{authOptions:vte(t),systemOptions:zn(zn({},FR),e),loggerOptions:f,storageInterface:r||new ate(t.clientId,tg),networkInterface:o||hte,cryptoInterface:s||tg,clientCredentials:a||fte,libraryInfo:zn(zn({},pte),l),telemetry:zn(zn({},gte),c),serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:h||null}}(t),this.logger=new MR(this.config.loggerOptions,"@azure/msal-common","7.3.0"),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new Ate(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=e}return n.prototype.createTokenRequestHeaders=function(t){var e={};if(e[jo.CONTENT_TYPE]=J.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&t)switch(t.type){case mr.HOME_ACCOUNT_ID:try{var i=qc(t.credential);e[jo.CCS_HEADER]="Oid:"+i.uid+"@"+i.utid}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case mr.UPN:e[jo.CCS_HEADER]="UPN: "+t.credential}return e},n.prototype.executePostToTokenEndpoint=function(t,e,i,r){return Dt(this,void 0,void 0,function(){var o;return St(this,function(s){switch(s.label){case 0:return[4,this.networkManager.sendPostRequest(r,t,{body:e,headers:i,proxyUrl:this.config.systemOptions.proxyUrl})];case 1:return o=s.sent(),this.config.serverTelemetryManager&&o.status<500&&429!==o.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,o]}})})},n.prototype.updateAuthority=function(t){if(!t.discoveryComplete())throw it.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=t},n}(),hl=function(){function n(){}return n.validateRedirectUri=function(t){if($e.isEmpty(t))throw xn.createRedirectUriEmptyError()},n.validatePrompt=function(t){var e=[];for(var i in Li)e.push(Li[i]);if(e.indexOf(t)<0)throw xn.createInvalidPromptError(t)},n.validateClaims=function(t){try{JSON.parse(t)}catch{throw xn.createInvalidClaimsRequestError()}},n.validateCodeChallengeParams=function(t,e){if($e.isEmpty(t)||$e.isEmpty(e))throw xn.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(e)},n.validateCodeChallengeMethod=function(t){if([NI.PLAIN,NI.S256].indexOf(t)<0)throw xn.createInvalidCodeChallengeMethodError()},n.sanitizeEQParams=function(t,e){return t?(e.forEach(function(i,r){t[r]&&delete t[r]}),t):{}},n}(),Gc=function(){function n(){this.parameters=new Map}return n.prototype.addResponseTypeCode=function(){this.parameters.set(xt.RESPONSE_TYPE,encodeURIComponent(J.CODE_RESPONSE_TYPE))},n.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(xt.RESPONSE_TYPE,encodeURIComponent(J.TOKEN_RESPONSE_TYPE+" "+J.ID_TOKEN_RESPONSE_TYPE))},n.prototype.addResponseMode=function(t){this.parameters.set(xt.RESPONSE_MODE,encodeURIComponent(t||gd.QUERY))},n.prototype.addNativeBroker=function(){this.parameters.set(xt.NATIVE_BROKER,encodeURIComponent("1"))},n.prototype.addScopes=function(t,e){void 0===e&&(e=!0);var i=e?Rf(t||[],fd):t||[],r=new fr(i);this.parameters.set(xt.SCOPE,encodeURIComponent(r.printScopes()))},n.prototype.addClientId=function(t){this.parameters.set(xt.CLIENT_ID,encodeURIComponent(t))},n.prototype.addRedirectUri=function(t){hl.validateRedirectUri(t),this.parameters.set(xt.REDIRECT_URI,encodeURIComponent(t))},n.prototype.addPostLogoutRedirectUri=function(t){hl.validateRedirectUri(t),this.parameters.set(xt.POST_LOGOUT_URI,encodeURIComponent(t))},n.prototype.addIdTokenHint=function(t){this.parameters.set(xt.ID_TOKEN_HINT,encodeURIComponent(t))},n.prototype.addDomainHint=function(t){this.parameters.set(wc.DOMAIN_HINT,encodeURIComponent(t))},n.prototype.addLoginHint=function(t){this.parameters.set(wc.LOGIN_HINT,encodeURIComponent(t))},n.prototype.addCcsUpn=function(t){this.parameters.set(jo.CCS_HEADER,encodeURIComponent("UPN:"+t))},n.prototype.addCcsOid=function(t){this.parameters.set(jo.CCS_HEADER,encodeURIComponent("Oid:"+t.uid+"@"+t.utid))},n.prototype.addSid=function(t){this.parameters.set(wc.SID,encodeURIComponent(t))},n.prototype.addClaims=function(t,e){var i=this.addClientCapabilitiesToClaims(t,e);hl.validateClaims(i),this.parameters.set(xt.CLAIMS,encodeURIComponent(i))},n.prototype.addCorrelationId=function(t){this.parameters.set(xt.CLIENT_REQUEST_ID,encodeURIComponent(t))},n.prototype.addLibraryInfo=function(t){this.parameters.set(xt.X_CLIENT_SKU,t.sku),this.parameters.set(xt.X_CLIENT_VER,t.version),t.os&&this.parameters.set(xt.X_CLIENT_OS,t.os),t.cpu&&this.parameters.set(xt.X_CLIENT_CPU,t.cpu)},n.prototype.addApplicationTelemetry=function(t){t?.appName&&this.parameters.set(xt.X_APP_NAME,t.appName),t?.appVersion&&this.parameters.set(xt.X_APP_VER,t.appVersion)},n.prototype.addPrompt=function(t){hl.validatePrompt(t),this.parameters.set(""+xt.PROMPT,encodeURIComponent(t))},n.prototype.addState=function(t){$e.isEmpty(t)||this.parameters.set(xt.STATE,encodeURIComponent(t))},n.prototype.addNonce=function(t){this.parameters.set(xt.NONCE,encodeURIComponent(t))},n.prototype.addCodeChallengeParams=function(t,e){if(hl.validateCodeChallengeParams(t,e),!t||!e)throw xn.createInvalidCodeChallengeParamsError();this.parameters.set(xt.CODE_CHALLENGE,encodeURIComponent(t)),this.parameters.set(xt.CODE_CHALLENGE_METHOD,encodeURIComponent(e))},n.prototype.addAuthorizationCode=function(t){this.parameters.set(xt.CODE,encodeURIComponent(t))},n.prototype.addDeviceCode=function(t){this.parameters.set(xt.DEVICE_CODE,encodeURIComponent(t))},n.prototype.addRefreshToken=function(t){this.parameters.set(xt.REFRESH_TOKEN,encodeURIComponent(t))},n.prototype.addCodeVerifier=function(t){this.parameters.set(xt.CODE_VERIFIER,encodeURIComponent(t))},n.prototype.addClientSecret=function(t){this.parameters.set(xt.CLIENT_SECRET,encodeURIComponent(t))},n.prototype.addClientAssertion=function(t){$e.isEmpty(t)||this.parameters.set(xt.CLIENT_ASSERTION,encodeURIComponent(t))},n.prototype.addClientAssertionType=function(t){$e.isEmpty(t)||this.parameters.set(xt.CLIENT_ASSERTION_TYPE,encodeURIComponent(t))},n.prototype.addOboAssertion=function(t){this.parameters.set(xt.OBO_ASSERTION,encodeURIComponent(t))},n.prototype.addRequestTokenUse=function(t){this.parameters.set(xt.REQUESTED_TOKEN_USE,encodeURIComponent(t))},n.prototype.addGrantType=function(t){this.parameters.set(xt.GRANT_TYPE,encodeURIComponent(t))},n.prototype.addClientInfo=function(){this.parameters.set("client_info","1")},n.prototype.addExtraQueryParameters=function(t){var e=this;hl.sanitizeEQParams(t,this.parameters),Object.keys(t).forEach(function(i){e.parameters.set(i,t[i])})},n.prototype.addClientCapabilitiesToClaims=function(t,e){var i;if(t)try{i=JSON.parse(t)}catch{throw xn.createInvalidClaimsRequestError()}else i={};return e&&e.length>0&&(i.hasOwnProperty(Ya.ACCESS_TOKEN)||(i[Ya.ACCESS_TOKEN]={}),i[Ya.ACCESS_TOKEN][Ya.XMS_CC]={values:e}),JSON.stringify(i)},n.prototype.addUsername=function(t){this.parameters.set(bd.username,encodeURIComponent(t))},n.prototype.addPassword=function(t){this.parameters.set(bd.password,encodeURIComponent(t))},n.prototype.addPopToken=function(t){$e.isEmpty(t)||(this.parameters.set(xt.TOKEN_TYPE,fn.POP),this.parameters.set(xt.REQ_CNF,encodeURIComponent(t)))},n.prototype.addSshJwk=function(t){$e.isEmpty(t)||(this.parameters.set(xt.TOKEN_TYPE,fn.SSH),this.parameters.set(xt.REQ_CNF,encodeURIComponent(t)))},n.prototype.addServerTelemetry=function(t){this.parameters.set(xt.X_CLIENT_CURR_TELEM,t.generateCurrentRequestHeaderValue()),this.parameters.set(xt.X_CLIENT_LAST_TELEM,t.generateLastRequestHeaderValue())},n.prototype.addThrottling=function(){this.parameters.set(xt.X_MS_LIB_CAPABILITY,"retry-after, h429")},n.prototype.addLogoutHint=function(t){this.parameters.set(xt.LOGOUT_HINT,encodeURIComponent(t))},n.prototype.createQueryString=function(){var t=new Array;return this.parameters.forEach(function(e,i){t.push(i+"="+e)}),t.join("&")},n}(),Tte=function n(t,e,i,r,o){this.account=t||null,this.idToken=e||null,this.accessToken=i||null,this.refreshToken=r||null,this.appMetadata=o||null},og=(()=>(function(n){n.SW="sw",n.UHW="uhw"}(og||(og={})),og))(),Wc=function(){function n(t){this.cryptoUtils=t}return n.prototype.generateCnf=function(t){return Dt(this,void 0,void 0,function(){var e,i,r;return St(this,function(o){switch(o.label){case 0:return[4,this.generateKid(t)];case 1:return e=o.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(e)),r={kid:e.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(r.reqCnfHash=o.sent(),r)]}})})},n.prototype.generateKid=function(t){return Dt(this,void 0,void 0,function(){return St(this,function(i){switch(i.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(t)];case 1:return[2,{kid:i.sent(),xms_ksl:og.SW}]}})})},n.prototype.signPopToken=function(t,e,i){return Dt(this,void 0,void 0,function(){return St(this,function(r){return[2,this.signPayload(t,e,i)]})})},n.prototype.signPayload=function(t,e,i,r){return Dt(this,void 0,void 0,function(){var o,s,a,l,c,u;return St(this,function(d){switch(d.label){case 0:return o=i.resourceRequestMethod,a=i.shrClaims,l=i.shrNonce,c=(s=i.resourceRequestUri)?new nn(s):void 0,u=c?.getUrlComponents(),[4,this.cryptoUtils.signJwt(zn({at:t,ts:Qr.nowSeconds(),m:o?.toUpperCase(),u:u?.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:u?.AbsolutePath,q:u?.QueryString?[[],u.QueryString]:void 0,client_claims:a||void 0},r),e,i.correlationId)];case 1:return[2,d.sent()]}})})},n}(),xte=function(){function n(t,e){this.cache=t,this.hasChanged=e}return Object.defineProperty(n.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),n}(),sg=function(){function n(t,e,i,r,o,s){this.clientId=t,this.cacheStorage=e,this.cryptoObj=i,this.logger=r,this.serializableCache=o,this.persistencePlugin=s}return n.prototype.validateServerAuthorizationCodeResponse=function(t,e,i){if(!t.state||!e)throw it.createStateNotFoundError(t.state?"Cached State":"Server State");if(decodeURIComponent(t.state)!==decodeURIComponent(e))throw it.createStateMismatchError();if(t.error||t.error_description||t.suberror)throw Co.isInteractionRequiredError(t.error,t.error_description,t.suberror)?new Co(t.error||J.EMPTY_STRING,t.error_description,t.suberror):new dl(t.error||J.EMPTY_STRING,t.error_description,t.suberror);t.client_info&&ng(t.client_info,i)},n.prototype.validateTokenResponse=function(t){if(t.error||t.error_description||t.suberror){if(Co.isInteractionRequiredError(t.error,t.error_description,t.suberror))throw new Co(t.error,t.error_description,t.suberror);throw new dl(t.error,t.error_codes+" - ["+t.timestamp+"]: "+t.error_description+" - Correlation ID: "+t.correlation_id+" - Trace ID: "+t.trace_id,t.suberror)}},n.prototype.handleServerTokenResponse=function(t,e,i,r,o,s,a,l){return Dt(this,void 0,void 0,function(){var c,u,d,h,f;return St(this,function(S){switch(S.label){case 0:if(t.id_token&&(c=new ma(t.id_token||J.EMPTY_STRING,this.cryptoObj),o&&!$e.isEmpty(o.nonce)&&c.claims.nonce!==o.nonce))throw it.createNonceMismatchError();this.homeAccountIdentifier=Fi.generateHomeAccountId(t.client_info||J.EMPTY_STRING,e.authorityType,this.logger,this.cryptoObj,c),!!o&&!!o.state&&(u=Fs.parseRequestState(this.cryptoObj,o.state)),t.key_id=t.key_id||r.sshKid||void 0,d=this.generateCacheRecord(t,e,i,r,c,s,o),S.label=1;case 1:return S.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new xte(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(h)]):[3,3];case 2:S.sent(),S.label=3;case 3:return a&&!l&&d.account&&(f=d.account.generateAccountKey(),!this.cacheStorage.getAccount(f))?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,n.generateAuthenticationResult(this.cryptoObj,e,d,!1,r,c,u,void 0)]):[4,this.cacheStorage.saveCacheRecord(d)];case 4:return S.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&h?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(h)]):[3,7];case 6:S.sent(),S.label=7;case 7:return[7];case 8:return[2,n.generateAuthenticationResult(this.cryptoObj,e,d,!1,r,c,u,t.spa_code)]}})})},n.prototype.generateCacheRecord=function(t,e,i,r,o,s,a){var c,u,l=e.getPreferredCache();if($e.isEmpty(l))throw it.createInvalidCacheEnvironmentError();!$e.isEmpty(t.id_token)&&o&&(c=rh.createIdTokenEntity(this.homeAccountIdentifier,l,t.id_token||J.EMPTY_STRING,this.clientId,o.claims.tid||J.EMPTY_STRING),u=this.generateAccountEntity(t,o,e,a));var d=null;if(!$e.isEmpty(t.access_token)){var h=t.scope?fr.fromString(t.scope):new fr(r.scopes||[]),f=("string"==typeof t.expires_in?parseInt(t.expires_in,10):t.expires_in)||0,_=("string"==typeof t.ext_expires_in?parseInt(t.ext_expires_in,10):t.ext_expires_in)||0,S=("string"==typeof t.refresh_in?parseInt(t.refresh_in,10):t.refresh_in)||void 0,U=i+f,Z=U+_,ve=S&&S>0?i+S:void 0;d=oh.createAccessTokenEntity(this.homeAccountIdentifier,l,t.access_token||J.EMPTY_STRING,this.clientId,o?o.claims.tid||J.EMPTY_STRING:e.tenant,h.printScopes(),U,Z,this.cryptoObj,ve,t.token_type,s,t.key_id,r.claims,r.requestedClaimsHash)}var ee=null;$e.isEmpty(t.refresh_token)||(ee=uw.createRefreshTokenEntity(this.homeAccountIdentifier,l,t.refresh_token||J.EMPTY_STRING,this.clientId,t.foci,s));var Te=null;return $e.isEmpty(t.foci)||(Te=dw.createAppMetadataEntity(this.clientId,l,t.foci)),new Tte(u,c,d,ee,Te)},n.prototype.generateAccountEntity=function(t,e,i,r){var s=r?r.cloud_graph_host_name:J.EMPTY_STRING,a=r?r.msgraph_host:J.EMPTY_STRING;if(i.authorityType===Xo.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Fi.createGenericAccount(this.homeAccountIdentifier,e,i,s,a);if($e.isEmpty(t.client_info)&&"AAD"===i.protocolMode)throw it.createClientInfoEmptyError();return t.client_info?Fi.createAccount(t.client_info,this.homeAccountIdentifier,e,i,s,a):Fi.createGenericAccount(this.homeAccountIdentifier,e,i,s,a)},n.generateAuthenticationResult=function(t,e,i,r,o,s,a,l){var c,u,d;return Dt(this,void 0,void 0,function(){var h,f,_,S,U,Z,ve,ee,Te;return St(this,function(Gt){switch(Gt.label){case 0:if(h=J.EMPTY_STRING,f=[],_=null,U=J.EMPTY_STRING,!i.accessToken)return[3,4];if(i.accessToken.tokenType!==fn.POP)return[3,2];if(Z=new Wc(t),ee=(ve=i.accessToken).secret,!(Te=ve.keyId))throw it.createKeyIdMissingError();return[4,Z.signPopToken(ee,Te,o)];case 1:return h=Gt.sent(),[3,3];case 2:h=i.accessToken.secret,Gt.label=3;case 3:f=fr.fromString(i.accessToken.target).asArray(),_=new Date(1e3*Number(i.accessToken.expiresOn)),S=new Date(1e3*Number(i.accessToken.extendedExpiresOn)),Gt.label=4;case 4:return i.appMetadata&&(U="1"===i.appMetadata.familyId?"1":J.EMPTY_STRING),[2,{authority:e.canonicalAuthority,uniqueId:s?.claims.oid||s?.claims.sub||J.EMPTY_STRING,tenantId:s?.claims.tid||J.EMPTY_STRING,scopes:f,account:i.account?i.account.getAccountInfo():null,idToken:s?s.rawToken:J.EMPTY_STRING,idTokenClaims:s?s.claims:{},accessToken:h,fromCache:r,expiresOn:_,correlationId:o.correlationId,extExpiresOn:S,familyId:U,tokenType:(null===(c=i.accessToken)||void 0===c?void 0:c.tokenType)||J.EMPTY_STRING,state:a?a.userRequestState:J.EMPTY_STRING,cloudGraphHostName:(null===(u=i.account)||void 0===u?void 0:u.cloudGraphHostName)||J.EMPTY_STRING,msGraphHost:(null===(d=i.account)||void 0===d?void 0:d.msGraphHost)||J.EMPTY_STRING,code:l,fromNativeBroker:!1}]}})})},n}(),BR=function(n){function t(e){var i=n.call(this,e)||this;return i.includeRedirectUri=!0,i}return ur(t,n),t.prototype.getAuthCodeUrl=function(e){return Dt(this,void 0,void 0,function(){var i;return St(this,function(r){switch(r.label){case 0:return[4,this.createAuthCodeUrlQueryString(e)];case 1:return i=r.sent(),[2,nn.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},t.prototype.acquireToken=function(e,i){return Dt(this,void 0,void 0,function(){var r,o,s;return St(this,function(a){switch(a.label){case 0:if(this.logger.info("in acquireToken call"),!e||$e.isEmpty(e.code))throw it.createTokenRequestCannotBeMadeError();return r=Qr.nowSeconds(),[4,this.executeTokenRequest(this.authority,e)];case 1:return o=a.sent(),(s=new sg(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(o.body),[4,s.handleServerTokenResponse(o.body,this.authority,r,e,i)];case 2:return[2,a.sent()]}})})},t.prototype.handleFragmentResponse=function(e,i){var r=new sg(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),o=new nn(e),s=nn.getDeserializedHash(o.getHash());if(r.validateServerAuthorizationCodeResponse(s,i,this.cryptoUtils),!s.code)throw it.createNoAuthCodeInServerResponseError();return zn(zn({},s),{code:s.code})},t.prototype.getLogoutUri=function(e){if(!e)throw xn.createEmptyLogoutRequestError();var i=this.createLogoutUrlQueryString(e);return nn.appendQueryString(this.authority.endSessionEndpoint,i)},t.prototype.executeTokenRequest=function(e,i){return Dt(this,void 0,void 0,function(){var r,o,s,a,l,c,u;return St(this,function(d){switch(d.label){case 0:return r={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:i.scopes,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid},[4,this.createTokenRequestBody(i)];case 1:if(o=d.sent(),s=this.createTokenQueryParameters(i),a=void 0,i.clientInfo)try{l=ng(i.clientInfo,this.cryptoUtils),a={credential:""+l.uid+dr.CLIENT_INFO_SEPARATOR+l.utid,type:mr.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}return c=this.createTokenRequestHeaders(a||i.ccsCredential),u=$e.isEmpty(s)?e.tokenEndpoint:e.tokenEndpoint+"?"+s,[2,this.executePostToTokenEndpoint(u,o,c,r)]}})})},t.prototype.createTokenQueryParameters=function(e){var i=new Gc;return e.tokenQueryParameters&&i.addExtraQueryParameters(e.tokenQueryParameters),i.createQueryString()},t.prototype.createTokenRequestBody=function(e){return Dt(this,void 0,void 0,function(){var i,r,s,a,l,c,u;return St(this,function(d){switch(d.label){case 0:return(i=new Gc).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(e.redirectUri):hl.validateRedirectUri(e.redirectUri),i.addScopes(e.scopes),i.addAuthorizationCode(e.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&i.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(i.addClientAssertion((r=this.config.clientCredentials.clientAssertion).assertion),i.addClientAssertionType(r.assertionType)),i.addGrantType(_d.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),e.authenticationScheme!==fn.POP?[3,2]:[4,new Wc(this.cryptoUtils).generateCnf(e)];case 1:return s=d.sent(),i.addPopToken(s.reqCnfString),[3,3];case 2:if(e.authenticationScheme===fn.SSH){if(!e.sshJwk)throw xn.createMissingSshJwkError();i.addSshJwk(e.sshJwk)}d.label=3;case 3:if(a=e.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(a),(!$e.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(e.claims,this.config.authOptions.clientCapabilities),l=void 0,e.clientInfo)try{c=ng(e.clientInfo,this.cryptoUtils),l={credential:""+c.uid+dr.CLIENT_INFO_SEPARATOR+c.utid,type:mr.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}else l=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&l)switch(l.type){case mr.HOME_ACCOUNT_ID:try{c=qc(l.credential),i.addCcsOid(c)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case mr.UPN:i.addCcsUpn(l.credential)}return e.tokenBodyParameters&&i.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[xt.RETURN_SPA_CODE])&&i.addExtraQueryParameters(((u={})[xt.RETURN_SPA_CODE]="1",u)),[2,i.createQueryString()]}})})},t.prototype.createAuthCodeUrlQueryString=function(e){return Dt(this,void 0,void 0,function(){var i,r,o,s,a,l,u;return St(this,function(d){switch(d.label){case 0:if((i=new Gc).addClientId(this.config.authOptions.clientId),r=Rf(e.scopes||[],e.extraScopesToConsent||[]),i.addScopes(r),i.addRedirectUri(e.redirectUri),o=e.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(o),i.addResponseMode(e.responseMode),i.addResponseTypeCode(),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&i.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&i.addPrompt(e.prompt),e.domainHint&&i.addDomainHint(e.domainHint),e.prompt!==Li.SELECT_ACCOUNT)if(e.sid&&e.prompt===Li.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),i.addSid(e.sid);else if(e.account){if(s=this.extractAccountSid(e.account),a=this.extractLoginHint(e.account)){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),i.addLoginHint(a);try{l=qc(e.account.homeAccountId),i.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(s&&e.prompt===Li.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),i.addSid(s);try{l=qc(e.account.homeAccountId),i.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),i.addLoginHint(e.loginHint),i.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),i.addLoginHint(e.account.username);try{l=qc(e.account.homeAccountId),i.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),i.addLoginHint(e.loginHint),i.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&i.addNonce(e.nonce),e.state&&i.addState(e.state),(!$e.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&i.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker?(i.addNativeBroker(),e.authenticationScheme!==fn.POP?[3,2]:[4,new Wc(this.cryptoUtils).generateCnf(e)]):[3,2];case 1:u=d.sent(),i.addPopToken(u.reqCnfHash),d.label=2;case 2:return[2,i.createQueryString()]}})})},t.prototype.createLogoutUrlQueryString=function(e){var i=new Gc;return e.postLogoutRedirectUri&&i.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&i.addCorrelationId(e.correlationId),e.idTokenHint&&i.addIdTokenHint(e.idTokenHint),e.state&&i.addState(e.state),e.logoutHint&&i.addLogoutHint(e.logoutHint),e.extraQueryParameters&&i.addExtraQueryParameters(e.extraQueryParameters),i.createQueryString()},t.prototype.extractAccountSid=function(e){var i;return(null===(i=e.idTokenClaims)||void 0===i?void 0:i.sid)||null},t.prototype.extractLoginHint=function(e){var i;return(null===(i=e.idTokenClaims)||void 0===i?void 0:i.login_hint)||null},t}(gw);function Ite(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}var VR={"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},jR={"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},kte=function(){function n(t){this.networkInterface=t}return n.prototype.detectRegion=function(t,e,i){return Dt(this,void 0,void 0,function(){var r,o,s,a,l;return St(this,function(c){switch(c.label){case 0:if(r=t)return[3,8];o=n.IMDS_OPTIONS,i&&(o.proxyUrl=i),c.label=1;case 1:return c.trys.push([1,6,,7]),[4,this.getRegionFromIMDS(J.IMDS_VERSION,o)];case 2:return(s=c.sent()).status===Qa.httpSuccess&&(r=s.body,e.region_source=Ts.IMDS),s.status!==Qa.httpBadRequest?[3,5]:[4,this.getCurrentVersion(o)];case 3:return(a=c.sent())?[4,this.getRegionFromIMDS(a,o)]:(e.region_source=Ts.FAILED_AUTO_DETECTION,[2,null]);case 4:(l=c.sent()).status===Qa.httpSuccess&&(r=l.body,e.region_source=Ts.IMDS),c.label=5;case 5:return[3,7];case 6:return c.sent(),e.region_source=Ts.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:e.region_source=Ts.ENVIRONMENT_VARIABLE,c.label=9;case 9:return r||(e.region_source=Ts.FAILED_AUTO_DETECTION),[2,r||null]}})})},n.prototype.getRegionFromIMDS=function(t,e){return Dt(this,void 0,void 0,function(){return St(this,function(i){return[2,this.networkInterface.sendGetRequestAsync(J.IMDS_ENDPOINT+"?api-version="+t+"&format=text",e,J.IMDS_TIMEOUT)]})})},n.prototype.getCurrentVersion=function(t){return Dt(this,void 0,void 0,function(){var e;return St(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(J.IMDS_ENDPOINT+"?format=json",t)];case 1:return(e=i.sent()).status===Qa.httpBadRequest&&e.body&&e.body["newest-versions"]&&e.body["newest-versions"].length>0?[2,e.body["newest-versions"][0]]:[2,null];case 2:return i.sent(),[2,null];case 3:return[2]}})})},n.IMDS_OPTIONS={headers:{Metadata:"true"}},n}(),ag=function(){function n(t,e,i,r,o){this.canonicalAuthority=t,this._canonicalAuthority.validateAsUri(),this.networkInterface=e,this.cacheManager=i,this.authorityOptions=r,this.regionDiscovery=new kte(e),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.proxyUrl=o||J.EMPTY_STRING}return Object.defineProperty(n.prototype,"authorityType",{get:function(){var t=this.canonicalAuthorityUrlComponents.PathSegments;return t.length&&t[0].toLowerCase()===J.ADFS?Xo.Adfs:Xo.Default},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(t){this._canonicalAuthority=new nn(t),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(t)}throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(t)}throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(t)}throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw it.createLogoutNotSupportedError();var t=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(t)}throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.issuer);return this.replaceTenant(t)}throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(t)}throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),n.prototype.replaceTenant=function(t){return t.replace(/{tenant}|{tenantid}/g,this.tenant)},n.prototype.replacePath=function(t){var e=t,r=new nn(this.metadata.canonical_authority).getUrlComponents().PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach(function(s,a){var l=r[a];s!==l&&(e=e.replace("/"+l+"/","/"+s+"/"))}),e},Object.defineProperty(n.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===Xo.Adfs||this.protocolMode===sh.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),n.prototype.discoveryComplete=function(){return!!this.metadata},n.prototype.resolveEndpointsAsync=function(){return Dt(this,void 0,void 0,function(){var t,e,i,r;return St(this,function(o){switch(o.label){case 0:return(t=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(t=new hw).updateCanonicalAuthority(this.canonicalAuthority),[4,this.updateCloudDiscoveryMetadata(t)];case 1:return e=o.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,t.preferred_network),[4,this.updateEndpointMetadata(t)];case 2:return i=o.sent(),e!==Tr.CACHE&&i!==Tr.CACHE&&(t.resetExpiresAt(),t.updateCanonicalAuthority(this.canonicalAuthority)),r=this.cacheManager.generateAuthorityMetadataCacheKey(t.preferred_cache),this.cacheManager.setAuthorityMetadata(r,t),this.metadata=t,[2]}})})},n.prototype.updateEndpointMetadata=function(t){var e,i;return Dt(this,void 0,void 0,function(){var r,o;return St(this,function(s){switch(s.label){case 0:return(r=this.getEndpointMetadataFromConfig())?(t.updateEndpointMetadata(r,!1),[2,Tr.CONFIG]):this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!t.isExpired()?[2,Tr.CACHE]:(o=this.getEndpointMetadataFromHardcodedValues(),[4,this.getEndpointMetadataFromNetwork()]);case 1:return(r=s.sent())?null!==(e=this.authorityOptions.azureRegionConfiguration)&&void 0!==e&&e.azureRegion?[4,this.updateMetadataWithRegionalInformation(r)]:[3,3]:[3,4];case 2:r=s.sent(),s.label=3;case 3:return t.updateEndpointMetadata(r,!0),[2,Tr.NETWORK];case 4:return o&&!this.authorityOptions.skipAuthorityMetadataCache?null!==(i=this.authorityOptions.azureRegionConfiguration)&&void 0!==i&&i.azureRegion?[4,this.updateMetadataWithRegionalInformation(o)]:[3,6]:[3,7];case 5:o=s.sent(),s.label=6;case 6:return t.updateEndpointMetadata(o,!1),[2,Tr.HARDCODED_VALUES];case 7:throw it.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},n.prototype.isAuthoritySameType=function(t){return new nn(t.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length},n.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw xn.createInvalidAuthorityMetadataError()}return null},n.prototype.getEndpointMetadataFromNetwork=function(){return Dt(this,void 0,void 0,function(){var t,e;return St(this,function(i){switch(i.label){case 0:t={},this.proxyUrl&&(t.proxyUrl=this.proxyUrl),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return[2,Ite((e=i.sent()).body)?e.body:null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},n.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in VR?VR[this.canonicalAuthority]:null},n.prototype.updateMetadataWithRegionalInformation=function(t){var e,i,r,o,s;return Dt(this,void 0,void 0,function(){var a,l;return St(this,function(c){switch(c.label){case 0:return[4,this.regionDiscovery.detectRegion(null===(e=this.authorityOptions.azureRegionConfiguration)||void 0===e?void 0:e.environmentRegion,this.regionDiscoveryMetadata,this.proxyUrl)];case 1:return a=c.sent(),l=(null===(i=this.authorityOptions.azureRegionConfiguration)||void 0===i?void 0:i.azureRegion)===J.AZURE_REGION_AUTO_DISCOVER_FLAG?a:null===(r=this.authorityOptions.azureRegionConfiguration)||void 0===r?void 0:r.azureRegion,this.regionDiscoveryMetadata.region_outcome=(null===(o=this.authorityOptions.azureRegionConfiguration)||void 0===o?void 0:o.azureRegion)===J.AZURE_REGION_AUTO_DISCOVER_FLAG?a?sa.AUTO_DETECTION_REQUESTED_SUCCESSFUL:sa.AUTO_DETECTION_REQUESTED_FAILED:a?(null===(s=this.authorityOptions.azureRegionConfiguration)||void 0===s?void 0:s.azureRegion)===a?sa.CONFIGURED_MATCHES_DETECTED:sa.CONFIGURED_NOT_DETECTED:sa.CONFIGURED_NO_AUTO_DETECTION,l?(this.regionDiscoveryMetadata.region_used=l,[2,n.replaceWithRegionalInformation(t,l)]):[2,t]}})})},n.prototype.updateCloudDiscoveryMetadata=function(t){return Dt(this,void 0,void 0,function(){var e,i;return St(this,function(r){switch(r.label){case 0:return(e=this.getCloudDiscoveryMetadataFromConfig())?(t.updateCloudDiscoveryMetadata(e,!1),[2,Tr.CONFIG]):this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!t.isExpired()?[2,Tr.CACHE]:(i=this.getCloudDiscoveryMetadataFromHarcodedValues(),[4,this.getCloudDiscoveryMetadataFromNetwork()]);case 1:if(e=r.sent())return t.updateCloudDiscoveryMetadata(e,!0),[2,Tr.NETWORK];if(i&&!this.options.skipAuthorityMetadataCache)return t.updateCloudDiscoveryMetadata(i,!1),[2,Tr.HARDCODED_VALUES];throw xn.createUntrustedAuthorityError()}})})},n.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityOptions.cloudDiscoveryMetadata)try{var t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),e=n.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(e)return e}catch{throw xn.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},n.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return Dt(this,void 0,void 0,function(){var t,e,i,r,o;return St(this,function(s){switch(s.label){case 0:t=""+J.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",e={},this.proxyUrl&&(e.proxyUrl=this.proxyUrl),i=null,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t,e)];case 2:return r=s.sent(),o=function Mte(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}(r.body)?r.body.metadata:[],0===o.length?[2,null]:(i=n.getCloudDiscoveryMetadataFromNetworkResponse(o,this.hostnameAndPort),[3,4]);case 3:return s.sent(),[2,null];case 4:return i||(i=n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}})})},n.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in jR?jR[this.canonicalAuthority]:null},n.prototype.isInKnownAuthorities=function(){var t=this;return this.authorityOptions.knownAuthorities.filter(function(i){return nn.getDomainFromUrl(i).toLowerCase()===t.hostnameAndPort}).length>0},n.generateAuthority=function(t,e){var i;return e&&e.azureCloudInstance!==zc.None&&(i=e.azureCloudInstance+"/"+(e.tenant?e.tenant:J.DEFAULT_COMMON_TENANT)+"/"),i||t},n.createCloudDiscoveryMetadataFromHost=function(t){return{preferred_network:t,preferred_cache:t,aliases:[t]}},n.getCloudDiscoveryMetadataFromNetworkResponse=function(t,e){for(var i=0;i-1)return r}return null},n.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},n.prototype.isAlias=function(t){return this.metadata.aliases.indexOf(t)>-1},n.isPublicCloudAuthority=function(t){return J.KNOWN_PUBLIC_CLOUDS.indexOf(t)>=0},n.buildRegionalAuthorityString=function(t,e,i){var r=new nn(t);r.validateAsUri();var o=r.getUrlComponents(),s=e+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(s=e+"."+J.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=nn.constructAuthorityUriFromObject(zn(zn({},r.getUrlComponents()),{HostNameAndPort:s})).urlString;return i?a+"?"+i:a},n.replaceWithRegionalInformation=function(t,e){return t.authorization_endpoint=n.buildRegionalAuthorityString(t.authorization_endpoint,e),t.token_endpoint=n.buildRegionalAuthorityString(t.token_endpoint,e,"allowestsrnonmsi=true"),t.end_session_endpoint&&(t.end_session_endpoint=n.buildRegionalAuthorityString(t.end_session_endpoint,e)),t},n}(),lg=function(){function n(){}return n.createDiscoveredInstance=function(t,e,i,r,o){return Dt(this,void 0,void 0,function(){var s,a;return St(this,function(l){switch(l.label){case 0:s=n.createInstance(t,e,i,r,o),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,s.resolveEndpointsAsync()];case 2:return l.sent(),[2,s];case 3:throw a=l.sent(),it.createEndpointDiscoveryIncompleteError(a);case 4:return[2]}})})},n.createInstance=function(t,e,i,r,o){if($e.isEmpty(t))throw xn.createUrlEmptyError();return new ag(t,e,i,r,o)},n}(),Rte=function(){function n(t,e){this.cacheOutcome=aa.NO_CACHE_HIT,this.cacheManager=e,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||J.EMPTY_STRING,this.wrapperVer=t.wrapperVer||J.EMPTY_STRING,this.telemetryCacheKey=Si.CACHE_KEY+dr.CACHE_KEY_SEPARATOR+t.clientId}return n.prototype.generateCurrentRequestHeaderValue=function(){var t=""+this.apiId+Si.VALUE_SEPARATOR+this.cacheOutcome,e=[this.wrapperSKU,this.wrapperVer].join(Si.VALUE_SEPARATOR),r=[t,this.getRegionDiscoveryFields()].join(Si.VALUE_SEPARATOR);return[Si.SCHEMA_VERSION,r,e].join(Si.CATEGORY_SEPARATOR)},n.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),e=n.maxErrorsToSend(t),i=t.failedRequests.slice(0,2*e).join(Si.VALUE_SEPARATOR),r=t.errors.slice(0,e).join(Si.VALUE_SEPARATOR),o=t.errors.length,a=[o,e=Si.MAX_CACHED_ERRORS&&(e.failedRequests.shift(),e.failedRequests.shift(),e.errors.shift()),e.failedRequests.push(this.apiId,this.correlationId),$e.isEmpty(t.subError)?$e.isEmpty(t.errorCode)?t&&t.toString()?e.errors.push(t.toString()):e.errors.push(Si.UNKNOWN_ERROR):e.errors.push(t.errorCode):e.errors.push(t.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e)},n.prototype.incrementCacheHits=function(){var t=this.getLastRequests();return t.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t),t.cacheHits},n.prototype.getLastRequests=function(){var t=new ig;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||t},n.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),e=n.maxErrorsToSend(t);if(e===t.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{var r=new ig;r.failedRequests=t.failedRequests.slice(2*e),r.errors=t.errors.slice(e),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}},n.maxErrorsToSend=function(t){var e,i=0,r=0,o=t.errors.length;for(e=0;e(function(n){n.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",n.USER_CANCEL="USER_CANCEL",n.NO_NETWORK="NO_NETWORK",n.TRANSIENT_ERROR="TRANSIENT_ERROR",n.PERSISTENT_ERROR="PERSISTENT_ERROR",n.DISABLED="DISABLED",n.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"}(Bs||(Bs={})),Bs))(),lh_extensionError_code="ContentError",lh_userSwitch_code="user_switch",lh_userSwitch_desc="User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again.",lh_tokensNotFoundInCache_code="tokens_not_found_in_internal_memory_cache",lh_tokensNotFoundInCache_desc="Tokens not cached in MSAL JS internal memory, please make the WAM request",Zo=function(n){function t(e,i,r){var o=n.call(this,e,i)||this;return Object.setPrototypeOf(o,t.prototype),o.name="NativeAuthError",o.ext=r,o}return Ti(t,n),t.prototype.isFatal=function(){return!(!this.ext||!this.ext.status||this.ext.status!==Bs.PERSISTENT_ERROR&&this.ext.status!==Bs.DISABLED)||this.errorCode===lh_extensionError_code},t.createError=function(e,i,r){if(r&&r.status)switch(r.status){case Bs.ACCOUNT_UNAVAILABLE:return Co.createNativeAccountUnavailableError();case Bs.USER_INTERACTION_REQUIRED:return new Co(e,i);case Bs.USER_CANCEL:return Ue.createUserCancelledError();case Bs.NO_NETWORK:return Ue.createNoNetworkConnectivityError()}return new t(e,i,r)},t.createUserSwitchError=function(){return new t(lh_userSwitch_code,lh_userSwitch_desc)},t.createTokensNotFoundInCacheError=function(){return new t(lh_tokensNotFoundInCache_code,lh_tokensNotFoundInCache_desc)},t}(ut),qR=function(n){function t(e,i){return n.call(this,e,i)||this}return ur(t,n),t.prototype.acquireToken=function(e){return Dt(this,void 0,void 0,function(){var i,r,o;return St(this,function(s){switch(s.label){case 0:return i=Qr.nowSeconds(),[4,this.executeTokenRequest(e,this.authority)];case 1:return r=s.sent(),(o=new sg(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(r.body),[2,o.handleServerTokenResponse(r.body,this.authority,i,e,void 0,void 0,!0,e.forceCache)]}})})},t.prototype.acquireTokenByRefreshToken=function(e){return Dt(this,void 0,void 0,function(){var o;return St(this,function(s){if(!e)throw xn.createEmptyTokenRequestError();if(!e.account)throw it.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(e.account.environment,this.config.authOptions.clientId))try{return[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(a){if(o=a instanceof dl&&"invalid_grant"===a.errorCode&&"client_mismatch"===a.subError,a instanceof Co&&a.errorCode===nh_noTokensFoundError_code||o)return[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw a}return[2,this.acquireTokenWithCachedRefreshToken(e,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(e,i){return Dt(this,void 0,void 0,function(){var r,o;return St(this,function(s){if(!(r=this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId,e.account,i)))throw Co.createNoTokensFoundError();return o=zn(zn({},e),{refreshToken:r.secret,authenticationScheme:e.authenticationScheme||fn.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:mr.HOME_ACCOUNT_ID}}),[2,this.acquireToken(o)]})})},t.prototype.executeTokenRequest=function(e,i){var r;return Dt(this,void 0,void 0,function(){var o,s,a,l,c,u;return St(this,function(d){switch(d.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(di.RefreshTokenClientExecuteTokenRequest,e.correlationId),[4,this.createTokenRequestBody(e)];case 1:return s=d.sent(),a=this.createTokenQueryParameters(e),l=this.createTokenRequestHeaders(e.ccsCredential),c={clientId:this.config.authOptions.clientId,authority:i.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},u=nn.appendQueryString(i.tokenEndpoint,a),[2,this.executePostToTokenEndpoint(u,s,l,c).then(function(h){return o?.endMeasurement({success:!0}),h}).catch(function(h){throw o?.endMeasurement({success:!1}),h})]}})})},t.prototype.createTokenQueryParameters=function(e){var i=new Gc;return e.tokenQueryParameters&&i.addExtraQueryParameters(e.tokenQueryParameters),i.createQueryString()},t.prototype.createTokenRequestBody=function(e){var i;return Dt(this,void 0,void 0,function(){var r,o,s,a,c,u;return St(this,function(d){switch(d.label){case 0:return r=e.correlationId,o=null===(i=this.performanceClient)||void 0===i?void 0:i.startMeasurement(di.BaseClientCreateTokenRequestHeaders,r),(s=new Gc).addClientId(this.config.authOptions.clientId),s.addScopes(e.scopes),s.addGrantType(_d.REFRESH_TOKEN_GRANT),s.addClientInfo(),s.addLibraryInfo(this.config.libraryInfo),s.addApplicationTelemetry(this.config.telemetry.application),s.addThrottling(),this.serverTelemetryManager&&s.addServerTelemetry(this.serverTelemetryManager),s.addCorrelationId(r),s.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&s.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(s.addClientAssertion((a=this.config.clientCredentials.clientAssertion).assertion),s.addClientAssertionType(a.assertionType)),e.authenticationScheme!==fn.POP?[3,2]:[4,new Wc(this.cryptoUtils).generateCnf(e)];case 1:return c=d.sent(),s.addPopToken(c.reqCnfString),[3,3];case 2:if(e.authenticationScheme===fn.SSH){if(!e.sshJwk)throw o?.endMeasurement({success:!1}),xn.createMissingSshJwkError();s.addSshJwk(e.sshJwk)}d.label=3;case 3:if((!$e.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&s.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case mr.HOME_ACCOUNT_ID:try{u=qc(e.ccsCredential.credential),s.addCcsOid(u)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case mr.UPN:s.addCcsUpn(e.ccsCredential.credential)}return o?.endMeasurement({success:!0}),[2,s.createQueryString()]}})})},t}(gw),Ote=function(n){function t(e,i){return n.call(this,e,i)||this}return ur(t,n),t.prototype.acquireToken=function(e){return Dt(this,void 0,void 0,function(){var i;return St(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.acquireCachedToken(e)];case 1:return[2,o.sent()];case 2:if((i=o.sent())instanceof it&&i.errorCode===Le_tokenRefreshRequired_code)return[2,new qR(this.config,this.performanceClient).acquireTokenByRefreshToken(e)];throw i;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(e){var i,r,o,s;return Dt(this,void 0,void 0,function(){var a,l;return St(this,function(c){switch(c.label){case 0:if(!e)throw xn.createEmptyTokenRequestError();if(e.forceRefresh)throw null===(i=this.serverTelemetryManager)||void 0===i||i.setCacheOutcome(aa.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),it.createRefreshRequiredError();if(!e.account)throw it.createNoAccountInSilentRequestError();if(a=e.authority||this.authority.getPreferredCache(),!(l=this.cacheManager.readCacheRecord(e.account,this.config.authOptions.clientId,e,a)).accessToken)throw null===(r=this.serverTelemetryManager)||void 0===r||r.setCacheOutcome(aa.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),it.createRefreshRequiredError();if(Qr.wasClockTurnedBack(l.accessToken.cachedAt)||Qr.isTokenExpired(l.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(aa.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),it.createRefreshRequiredError();if(l.accessToken.refreshOn&&Qr.isTokenExpired(l.accessToken.refreshOn,0))throw null===(s=this.serverTelemetryManager)||void 0===s||s.setCacheOutcome(aa.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),it.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(l,e)];case 1:return[2,c.sent()]}})})},t.prototype.generateResultFromCacheRecord=function(e,i){return Dt(this,void 0,void 0,function(){var r;return St(this,function(o){switch(o.label){case 0:return e.idToken&&(r=new ma(e.idToken.secret,this.config.cryptoInterface)),[4,sg.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,i,r)];case 1:return[2,o.sent()]}})})},t}(gw),zR=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ti(t,n),t.prototype.acquireToken=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a;return Re(this,function(l){switch(l.label){case 0:return i=this.performanceClient.startMeasurement(di.SilentCacheClientAcquireToken,e.correlationId),r=this.initializeServerTelemetryManager(Cn.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(r,e.authority,e.azureCloudOptions)];case 1:o=l.sent(),this.logger.verbose("Silent auth client created"),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,o.acquireCachedToken(e)];case 3:return s=l.sent(),i.endMeasurement({success:!0,fromCache:!0}),[2,s];case 4:throw(a=l.sent())instanceof Ue&&a.errorCode===Me_signingKeyNotFoundInStorage_code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),i.endMeasurement({errorCode:a instanceof ut&&a.errorCode||void 0,subErrorCode:a instanceof ut&&a.subError||void 0,success:!1}),a;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(Ue.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,i,r){return ke(this,void 0,void 0,function(){var o;return Re(this,function(s){switch(s.label){case 0:return[4,this.getClientConfiguration(e,i,r)];case 1:return o=s.sent(),[2,new Ote(o,this.performanceClient)]}})})},t.prototype.initializeSilentRequest=function(e,i){return ke(this,void 0,void 0,function(){var r;return Re(this,function(o){switch(o.label){case 0:return r=[at({},e)],[4,this.initializeBaseRequest(e)];case 1:return[2,at.apply(void 0,[at.apply(void 0,r.concat([o.sent()])),{account:i,forceRefresh:e.forceRefresh||!1}])]}})})},t}($c),Kc=function(n){function t(e,i,r,o,s,a,l,c,u,d,h,f){var _=n.call(this,e,i,r,o,s,a,c,u,f)||this;return _.apiId=l,_.accountId=d,_.nativeMessageHandler=u,_.nativeStorageManager=h,_.silentCacheClient=new zR(e,_.nativeStorageManager,r,o,s,a,c,u,f),_}return Ti(t,n),t.prototype.acquireToken=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,l,c;return Re(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),i=this.performanceClient.startMeasurement(di.NativeInteractionClientAcquireToken,e.correlationId),r=Qr.nowSeconds(),[4,this.initializeNativeRequest(e)];case 1:o=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,o)];case 3:return s=u.sent(),i.endMeasurement({success:!0,isNativeBroker:!0,fromCache:!0}),[2,s];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return[4,this.nativeMessageHandler.sendMessage({method:zo.GetToken,request:o})];case 6:return l=u.sent(),c=this.validateNativeResponse(l),[2,this.handleNativeResponse(c,o,r).then(function(d){return i.endMeasurement({success:!0,isNativeBroker:!0}),d}).catch(function(d){throw i.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},t.prototype.createSilentCacheRequest=function(e,i){return{authority:e.authority,correlationId:this.correlationId,scopes:fr.fromString(e.scope).asArray(),account:i,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(e,i){return ke(this,void 0,void 0,function(){var r,o,s;return Re(this,function(c){switch(c.label){case 0:if(!(r=this.browserStorage.readAccountFromCacheWithNativeAccountId(e)))throw it.createNoAccountFoundError();o=r.getAccountInfo(),c.label=1;case 1:return c.trys.push([1,3,,4]),s=this.createSilentCacheRequest(i,o),[4,this.silentCacheClient.acquireToken(s)];case 2:return[2,c.sent()];case 3:throw c.sent();case 4:return[2]}})})},t.prototype.acquireTokenRedirect=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a,l;return Re(this,function(c){switch(c.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(e)];case 1:i=c.sent(),r={method:zo.GetToken,request:i},c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(r)];case 3:return o=c.sent(),this.validateNativeResponse(o),[3,5];case 4:if((s=c.sent())instanceof Zo&&s.isFatal())throw s;return[3,5];case 5:return this.browserStorage.setTemporaryCache(an.NATIVE_REQUEST,JSON.stringify(i),!0),a={apiId:Cn.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},l=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri),[4,this.navigationClient.navigateExternal(l,a)];case 6:return c.sent(),[2]}})})},t.prototype.handleRedirectPromise=function(){return ke(this,void 0,void 0,function(){var e,i,r,o,s,a;return Re(this,function(l){switch(l.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(e=this.browserStorage.getCachedNativeRequest()))return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];this.browserStorage.removeItem(this.browserStorage.generateCacheKey(an.NATIVE_REQUEST)),i={method:zo.GetToken,request:e},r=Qr.nowSeconds(),l.label=1;case 1:return l.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return o=l.sent(),this.validateNativeResponse(o),s=this.handleNativeResponse(o,e,r),this.browserStorage.setInteractionInProgress(!1),[2,s];case 3:throw a=l.sent(),this.browserStorage.setInteractionInProgress(!1),a;case 4:return[2]}})})},t.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},t.prototype.handleNativeResponse=function(e,i,r){return ke(this,void 0,void 0,function(){var o,s,a,l,c,u,d,h,f,_,S,Z,ve,ee,Te,et,_t,Gt,hn,Gn=this;return Re(this,function(vi){switch(vi.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==i.accountId)throw Zo.createUserSwitchError();return o=new ma(e.id_token||J.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(i.authority)];case 1:return s=vi.sent(),a=s.getPreferredCache(),l=Fi.generateHomeAccountId(e.client_info||J.EMPTY_STRING,Xo.Default,this.logger,this.browserCrypto,o),c=Fi.createAccount(e.client_info,l,o,void 0,void 0,void 0,a,e.account.id),this.browserStorage.setAccount(c),u=fr.fromString(e.scope?e.scope:i.scope),h=(d=e.account.properties||{}).UID||o.claims.oid||o.claims.sub||J.EMPTY_STRING,f=d.TenantId||o.claims.tid||J.EMPTY_STRING,S=fn.BEARER,i.tokenType===fn.POP?[3,2]:[3,4];case 2:if(S=fn.POP,e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),_=e.shr,[3,5];if(Z=new Wc(this.browserCrypto),ve={resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,shrNonce:i.shrNonce},!i.keyId)throw it.createKeyIdMissingError();return[4,Z.signPopToken(e.access_token,i.keyId,ve)];case 3:return _=vi.sent(),[3,5];case 4:_=e.access_token,vi.label=5;case 5:return ee=this.getMATSFromResponse(e),Te={authority:s.canonicalAuthority,uniqueId:h,tenantId:f,scopes:u.asArray(),account:c.getAccountInfo(),idToken:e.id_token,idTokenClaims:o.claims,accessToken:_,fromCache:!!ee&&this.isResponseFromCache(ee),expiresOn:new Date(1e3*Number(r+e.expires_in)),tokenType:S,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0},et=rh.createIdTokenEntity(l,i.authority,e.id_token||J.EMPTY_STRING,i.clientId,o.claims.tid||J.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(et),_t=S===fn.POP?J.SHR_NONCE_VALIDITY:("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,Gt=r+_t,hn=oh.createAccessTokenEntity(l,i.authority,_,i.clientId,f,u.printScopes(),Gt,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(hn),this.browserStorage.removeAccountContext(c).catch(function(ga){Gn.logger.error("Error occurred while removing account context from browser storage. "+ga)}),[2,Te]}})})},t.prototype.validateNativeResponse=function(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw Zo.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},t.prototype.isResponseFromCache=function(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached},t.prototype.initializeNativeRequest=function(e){return ke(this,void 0,void 0,function(){var r,o,s,a,l,c,u,h,f=this;return Re(this,function(_){switch(_.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),(r=new nn(e.authority||this.config.auth.authority)).validateAsUri(),o=e.scopes,s=function qq(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(n);rs&&(i.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(l),o(Ue.createMonitorPopupTimeoutError())))},50)})},t.prototype.waitForLogoutPopup=function(e){var i=this;return new Promise(function(r){i.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var o=setInterval(function(){e.closed&&(i.logger.error("PopupHandler.waitForLogoutPopup - window closed"),i.cleanPopup(),clearInterval(o),r());var s=J.EMPTY_STRING;try{s=e.location.href}catch{}$e.isEmpty(s)||"about:blank"===s||(i.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(o),i.cleanPopup(e),r())},50)})},t.prototype.openPopup=function(e,i){try{var r=void 0;if(i.popup?(r=i.popup,this.logger.verbosePii("Navigating popup window to: "+e),r.location.assign(e)):typeof i.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+e),r=this.openSizedPopup(e,i.popupName,i.popupWindowAttributes)),!r)throw Ue.createEmptyWindowCreatedError();return r.focus&&r.focus(),this.currentWindow=r,window.addEventListener("beforeunload",this.unloadWindow),r}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),Ue.createPopupWindowError(o.toString())}},t.prototype.openSizedPopup=function(e,i,r){var o,s,a,l,c=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,f=null===(o=r.popupSize)||void 0===o?void 0:o.width,_=null===(s=r.popupSize)||void 0===s?void 0:s.height,S=null===(a=r.popupPosition)||void 0===a?void 0:a.top,U=null===(l=r.popupPosition)||void 0===l?void 0:l.left;return(!f||f<0||f>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),f=483),(!_||_<0||_>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),_=600),(!S||S<0||S>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),S=Math.max(0,h/2-300+u)),(!U||U<0||U>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),U=Math.max(0,d/2-241.5+c)),window.open(e,i,"width="+f+", height="+_+", top="+S+", left="+U+", scrollbars=yes")},t.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType(We.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()},t.prototype.cleanPopup=function(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.generatePopupName=function(e,i){return"msal."+this.config.auth.clientId+"."+e.join("-")+"."+i+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(e){return"msal."+this.config.auth.clientId+"."+(e.account&&e.account.homeAccountId)+"."+this.correlationId},t}($c),GR=function(n){function t(e,i,r,o,s){var a=n.call(this,e,i,r,o)||this;return a.browserCrypto=s,a}return Ti(t,n),t.prototype.initiateAuthRequest=function(e,i){return ke(this,void 0,void 0,function(){var r;return Re(this,function(s){switch(s.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),$e.isEmpty(e)?[3,7]:(i.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(an.ORIGIN_URI,i.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(an.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),r={apiId:Cn.acquireTokenRedirect,timeout:i.redirectTimeout,noHistory:!1},"function"!=typeof i.onRedirectNavigate?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1===i.onRedirectNavigate(e)?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,i.navigationClient.navigateExternal(e,r)])));case 1:case 5:return s.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,i.navigationClient.navigateExternal(e,r)];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),Ue.createEmptyNavigationUriError();case 8:return[2]}})})},t.prototype.handleCodeResponseFromHash=function(e,i,r,o){return ke(this,void 0,void 0,function(){var s,a,l,c,u,d,h;return Re(this,function(f){switch(f.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),$e.isEmpty(e))throw Ue.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),s=this.browserStorage.generateStateKey(i),!(a=this.browserStorage.getTemporaryCache(s)))throw it.createStateNotFoundError("Cached State");try{l=this.authModule.handleFragmentResponse(e,a)}catch(_){throw _ instanceof dl&&_.subError===Me_userCancelledError_code?Ue.createUserCancelledError():_}return c=this.browserStorage.generateNonceKey(a),u=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=l.code,l.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(l.cloud_instance_host_name,r,o)]:[3,2];case 1:f.sent(),f.label=2;case 2:return l.nonce=u||void 0,l.state=a,l.client_info?this.authCodeRequest.clientInfo=l.client_info:(d=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=d),[4,this.authModule.acquireToken(this.authCodeRequest,l)];case 3:return h=f.sent(),this.browserStorage.cleanRequestByState(i),[2,h]}})})},t}(_w),Lte=function(n){function t(e,i,r,o,s,a,l,c,u,d){var h=n.call(this,e,i,r,o,s,a,l,u,d)||this;return h.nativeStorage=c,h}return Ti(t,n),t.prototype.acquireToken=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a,l,c,u,d,h=this;return Re(this,function(f){switch(f.label){case 0:return[4,this.initializeAuthorizationRequest(e,We.Redirect)];case 1:i=f.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||J.EMPTY_STRING,i.account||null),r=this.initializeServerTelemetryManager(Cn.acquireTokenRedirect),o=function(_){_.persisted&&(h.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),h.browserStorage.cleanRequestByState(i.state))},f.label=2;case 2:return f.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(i)];case 3:return s=f.sent(),[4,this.createAuthCodeClient(r,i.authority,i.azureCloudOptions)];case 4:return a=f.sent(),this.logger.verbose("Auth code client created"),l=new GR(a,this.browserStorage,s,this.logger,this.browserCrypto),[4,a.getAuthCodeUrl(at(at({},i),{nativeBroker:pl.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}))];case 5:return c=f.sent(),u=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",o),[4,l.initiateAuthRequest(c,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,f.sent()];case 7:throw(d=f.sent())instanceof ut&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",o),r.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(i.state),d;case 8:return[2]}})})},t.prototype.handleRedirectPromise=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a,l,c,u,d,h,f,_;return Re(this,function(S){switch(S.label){case 0:i=this.initializeServerTelemetryManager(Cn.handleRedirectPromise),S.label=1;case 1:if(S.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(r=this.getRedirectResponseHash(e||window.location.hash)))return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(We.Redirect),[2,null];o=void 0;try{s=nn.getDeserializedHash(r),o=this.validateAndExtractStateFromHash(s,We.Redirect),this.logger.verbose("State extracted from hash")}catch(U){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+U),this.browserStorage.cleanRequestByInteractionType(We.Redirect),[2,null]}return a=this.browserStorage.getTemporaryCache(an.ORIGIN_URI,!0)||J.EMPTY_STRING,l=nn.removeHashFromUrl(a),c=nn.removeHashFromUrl(window.location.href),l===c&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(r,o,i)]):[3,3];case 2:return u=S.sent(),a.indexOf("#")>-1&&Ln.replaceHash(a),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(r,o,i)]);case 4:return!Ln.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(an.URL_HASH,r,!0),d={apiId:Cn.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,a&&"null"!==a?[3,6]:(f=Ln.getHomepage(),this.browserStorage.setTemporaryCache(an.ORIGIN_URI,f,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(f,d)])):[3,9];case 5:return h=S.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+a),[4,this.navigationClient.navigateInternal(a,d)];case 7:h=S.sent(),S.label=8;case 8:if(!h)return[2,this.handleHash(r,o,i)];S.label=9;case 9:return[2,null];case 10:throw(_=S.sent())instanceof ut&&_.setCorrelationId(this.correlationId),i.cacheFailedRequest(_),this.browserStorage.cleanRequestByInteractionType(We.Redirect),_;case 11:return[2]}})})},t.prototype.getRedirectResponseHash=function(e){if(this.logger.verbose("getRedirectResponseHash called"),nn.hashContainsKnownProperties(e))return Ln.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var r=this.browserStorage.getTemporaryCache(an.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(an.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),r},t.prototype.handleHash=function(e,i,r){return ke(this,void 0,void 0,function(){var o,s,a,l,c,u,h=this;return Re(this,function(f){switch(f.label){case 0:if(o=this.browserStorage.getCachedRequest(i,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),(s=nn.getDeserializedHash(e)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Ue.createNativeConnectionNotEstablishedError();return a=new Kc(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,s.accountId,this.browserStorage,o.correlationId),l=Fs.parseRequestState(this.browserCrypto,i).userRequestState,[2,a.acquireToken(at(at({},o),{state:l,prompt:void 0})).finally(function(){h.browserStorage.cleanRequestByState(i)})]}if(!(c=this.browserStorage.getCachedAuthority(i)))throw Ue.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(r,c)];case 1:return u=f.sent(),this.logger.verbose("Auth code client created"),rg.removeThrottle(this.browserStorage,this.config.auth.clientId,o),[4,new GR(u,this.browserStorage,o,this.logger,this.browserCrypto).handleCodeResponseFromHash(e,i,u.authority,this.networkClient)];case 2:return[2,f.sent()]}})})},t.prototype.logout=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a,c;return Re(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),i=this.initializeLogoutRequest(e),r=this.initializeServerTelemetryManager(Cn.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(st.LOGOUT_START,We.Redirect,e),[4,this.clearCacheOnLogout(i.account)];case 2:return u.sent(),o={apiId:Cn.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(r,e&&e.authority)];case 3:return s=u.sent(),this.logger.verbose("Auth code client created"),a=s.getLogoutUri(i),this.eventHandler.emitEvent(st.LOGOUT_SUCCESS,We.Redirect,i),e&&"function"==typeof e.onRedirectNavigate?!1===e.onRedirectNavigate(a)?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,o)]):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,o)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw(c=u.sent())instanceof ut&&c.setCorrelationId(this.correlationId),r.cacheFailedRequest(c),this.eventHandler.emitEvent(st.LOGOUT_FAILURE,We.Redirect,null,c),this.eventHandler.emitEvent(st.LOGOUT_END,We.Redirect),c;case 11:return this.eventHandler.emitEvent(st.LOGOUT_END,We.Redirect),[2]}})})},t.prototype.getRedirectStartPage=function(e){var i=e||window.location.href;return nn.getAbsoluteUrl(i,Ln.getCurrentUri())},t}($c),WR=function(n){function t(e,i,r,o,s){var a=n.call(this,e,i,r,o)||this;return a.navigateFrameWait=s,a}return Ti(t,n),t.prototype.initiateAuthRequest=function(e){return ke(this,void 0,void 0,function(){var i;return Re(this,function(r){switch(r.label){case 0:if($e.isEmpty(e))throw this.logger.info("Navigate url is empty"),Ue.createEmptyNavigationUriError();return this.navigateFrameWait?[4,this.loadFrame(e)]:[3,2];case 1:return i=r.sent(),[3,3];case 2:i=this.loadFrameSync(e),r.label=3;case 3:return[2,i]}})})},t.prototype.monitorIframeForHash=function(e,i){var r=this;return new Promise(function(o,s){i<6e3&&r.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+i+"ms) than the default (6000ms). This may result in timeouts.");var l=window.performance.now()+i,c=setInterval(function(){if(window.performance.now()>l)return r.removeHiddenIframe(e),clearInterval(c),void s(Ue.createMonitorIframeTimeoutError());var u=J.EMPTY_STRING,d=e.contentWindow;try{u=d?d.location.href:J.EMPTY_STRING}catch{}if(!$e.isEmpty(u)){var h=d?d.location.hash:J.EMPTY_STRING;if(nn.hashContainsKnownProperties(h))return r.removeHiddenIframe(e),clearInterval(c),void o(h)}},50)})},t.prototype.loadFrame=function(e){var i=this;return new Promise(function(r,o){var s=i.createHiddenIframe();setTimeout(function(){s?(s.src=e,r(s)):o("Unable to load iframe")},i.navigateFrameWait)})},t.prototype.loadFrameSync=function(e){var i=this.createHiddenIframe();return i.src=e,i},t.prototype.createHiddenIframe=function(){var e=document.createElement("iframe");return e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(e),e},t.prototype.removeHiddenIframe=function(e){document.body===e.parentNode&&document.body.removeChild(e)},t}(_w),Nte=function(n){function t(e,i,r,o,s,a,l,c,u,d,h){var f=n.call(this,e,i,r,o,s,a,c,d,h)||this;return f.apiId=l,f.nativeStorage=u,f}return Ti(t,n),t.prototype.acquireToken=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a;return Re(this,function(l){switch(l.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),i=this.performanceClient.startMeasurement(di.SilentIframeClientAcquireToken,e.correlationId),$e.isEmpty(e.loginHint)&&$e.isEmpty(e.sid)&&(!e.account||$e.isEmpty(e.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==Li.NONE)throw i.endMeasurement({success:!1}),Ue.createSilentPromptValueError(e.prompt);return[4,this.initializeAuthorizationRequest(at(at({},e),{prompt:Li.NONE}),We.Silent)];case 1:r=l.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||J.EMPTY_STRING,r.account||null),o=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,5,,6]),[4,this.createAuthCodeClient(o,r.authority,r.azureCloudOptions)];case 3:return s=l.sent(),this.logger.verbose("Auth code client created"),[4,this.silentTokenHelper(s,r).then(function(c){return i.endMeasurement({success:!0,fromCache:!1}),c})];case 4:return[2,l.sent()];case 5:throw(a=l.sent())instanceof ut&&a.setCorrelationId(this.correlationId),o.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(r.state),i.endMeasurement({errorCode:a instanceof ut&&a.errorCode||void 0,subErrorCode:a instanceof ut&&a.subError||void 0,success:!1}),a;case 6:return[2]}})})},t.prototype.logout=function(){return Promise.reject(Ue.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,i){return ke(this,void 0,void 0,function(){var r,o,s,a,l,c,u,d,h,f=this;return Re(this,function(_){switch(_.label){case 0:return[4,this.initializeAuthorizationCodeRequest(i)];case 1:return r=_.sent(),[4,e.getAuthCodeUrl(at(at({},i),{nativeBroker:pl.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,i.authenticationScheme)}))];case 2:return o=_.sent(),[4,(s=new WR(e,this.browserStorage,r,this.logger,this.config.system.navigateFrameWait)).initiateAuthRequest(o)];case 3:return a=_.sent(),[4,s.monitorIframeForHash(a,this.config.system.iframeHashTimeout)];case 4:if(l=_.sent(),c=nn.getDeserializedHash(l),u=this.validateAndExtractStateFromHash(c,We.Silent,r.correlationId),c.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Ue.createNativeConnectionNotEstablishedError();return d=new Kc(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,c.accountId,this.browserStorage,this.correlationId),h=Fs.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(at(at({},i),{state:h,prompt:Li.NONE})).finally(function(){f.browserStorage.cleanRequestByState(u)})]}return[2,s.handleCodeResponseFromHash(l,u,e.authority,this.networkClient)]}})})},t}($c),Fte=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ti(t,n),t.prototype.acquireToken=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a,l=this;return Re(this,function(c){switch(c.label){case 0:return r=[at({},e)],[4,this.initializeBaseRequest(e)];case 1:return i=at.apply(void 0,r.concat([c.sent()])),o=this.performanceClient.startMeasurement(di.SilentRefreshClientAcquireToken,i.correlationId),s=this.initializeServerTelemetryManager(Cn.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(s,i.authority,i.azureCloudOptions)];case 2:return a=c.sent(),this.logger.verbose("Refresh token client created"),[2,a.acquireTokenByRefreshToken(i).then(function(u){return o.endMeasurement({success:!0,fromCache:u.fromCache}),u}).catch(function(u){throw u instanceof ut&&u.setCorrelationId(l.correlationId),s.cacheFailedRequest(u),o.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},t.prototype.logout=function(){return Promise.reject(Ue.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,i,r){return ke(this,void 0,void 0,function(){var o;return Re(this,function(s){switch(s.label){case 0:return[4,this.getClientConfiguration(e,i,r)];case 1:return o=s.sent(),[2,new qR(o,this.performanceClient)]}})})},t}($c),Bte=function(){function n(t,e,i,r){this.isBrowserEnvironment=typeof window<"u",this.config=t,this.storage=e,this.logger=i,this.cryptoObj=r}return n.prototype.loadExternalTokens=function(t,e,i){if(this.logger.info("TokenCache - loadExternalTokens called"),!e.id_token)throw Ue.createUnableToLoadTokenError("Please ensure server response includes id token.");if(t.account)this.loadIdToken(e.id_token,t.account.homeAccountId,t.account.environment,t.account.tenantId,i),this.loadAccessToken(t,e,t.account.homeAccountId,t.account.environment,t.account.tenantId,i);else{if(!t.authority)throw Ue.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var r=ag.generateAuthority(t.authority,t.azureCloudOptions),s=new ag(r,this.config.system.networkClient,this.storage,{protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache});if(i.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),this.loadIdToken(e.id_token,i.clientInfo,s.hostnameAndPort,s.tenant,i),this.loadAccessToken(t,e,i.clientInfo,s.hostnameAndPort,s.tenant,i);else{if(!e.client_info)throw Ue.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");this.logger.trace("TokenCache - homeAccountId from response"),this.loadIdToken(e.id_token,e.client_info,s.hostnameAndPort,s.tenant,i),this.loadAccessToken(t,e,e.client_info,s.hostnameAndPort,s.tenant,i)}}},n.prototype.loadIdToken=function(t,e,i,r,o){var s=rh.createIdTokenEntity(e,i,t,this.config.auth.clientId,r),a=new ma(t,this.cryptoObj),l=o.clientInfo?Fi.createAccount(o.clientInfo,e,a,void 0,void 0,void 0,i):Fi.createGenericAccount(e,a,void 0,void 0,void 0,i);if(!this.isBrowserEnvironment)throw Ue.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading id token"),this.storage.setAccount(l),this.storage.setIdTokenCredential(s)},n.prototype.loadAccessToken=function(t,e,i,r,o,s){if(e.access_token){if(!e.expires_in)throw Ue.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!s.extendedExpiresOn)throw Ue.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var a=new fr(t.scopes).printScopes(),l=s.expiresOn||e.expires_in+(new Date).getTime()/1e3,u=oh.createAccessTokenEntity(i,r,e.access_token,this.config.auth.clientId,o,a,l,s.extendedExpiresOn,this.cryptoObj);if(!this.isBrowserEnvironment)throw Ue.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u)}else this.logger.verbose("TokenCache - No access token provided for caching")},n}(),Hte=function(n){function t(e){var i=n.call(this,e)||this;return i.includeRedirectUri=!1,i}return Ti(t,n),t}(BR),Vte=function(n){function t(e,i,r,o,s,a,l,c,u,d){var h=n.call(this,e,i,r,o,s,a,c,u,d)||this;return h.apiId=l,h}return Ti(t,n),t.prototype.acquireToken=function(e){return ke(this,void 0,void 0,function(){var i,r,o,s,a,c;return Re(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!e.code)throw Ue.createAuthCodeRequiredError();return[4,this.initializeAuthorizationRequest(e,We.Silent)];case 1:i=u.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||J.EMPTY_STRING,i.account||null),r=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),o=at(at({},i),{code:e.code}),[4,this.getClientConfiguration(r,i.authority)];case 3:return s=u.sent(),a=new Hte(s),this.logger.verbose("Auth code client created"),[2,new WR(a,this.browserStorage,o,this.logger,this.config.system.navigateFrameWait).handleCodeResponseFromServer({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},i.state,a.authority,this.networkClient,!1)];case 4:throw(c=u.sent())instanceof ut&&c.setCorrelationId(this.correlationId),r.cacheFailedRequest(c),this.browserStorage.cleanRequestByState(i.state),c;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(Ue.createSilentLogoutUnsupportedError())},t}($c),jte=function(){function n(t,e){this.correlationId=e,this.measureName="msal.measure."+t+"."+this.correlationId,this.startMark="msal.start."+t+"."+this.correlationId,this.endMark="msal.end."+t+"."+this.correlationId}return n.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&"function"==typeof window.performance.mark&&"function"==typeof window.performance.measure&&"function"==typeof window.performance.clearMarks&&"function"==typeof window.performance.clearMeasures&&"function"==typeof window.performance.getEntriesByName},n.prototype.startMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},n.prototype.endMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},n.prototype.flushMeasurement=function(){if(n.supportsBrowserPerformance())try{var t=window.performance.getEntriesByName(this.measureName,"measure");if(t.length>0){var e=t[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),e}}catch{}return null},n}(),Ute=function(n){function t(e,i,r,o,s,a){var l=n.call(this,e,i,r,o,s,a)||this;return l.browserCrypto=new eg(l.logger),l.guidGenerator=new TR(l.browserCrypto),l}return Ti(t,n),t.prototype.startPerformanceMeasuremeant=function(e,i){return new jte(e,i)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var e;return(null===(e=document.visibilityState)||void 0===e?void 0:e.toString())||null},t.prototype.startMeasurement=function(e,i){var r=this,o=this.getPageVisibility(),s=n.prototype.startMeasurement.call(this,e,i);return at(at({},s),{endMeasurement:function(a){return s.endMeasurement(at({startPageVisibility:o,endPageVisibility:r.getPageVisibility()},a))}})},t}(kR),qte=function(){function n(t){this.isBrowserEnvironment=typeof window<"u",this.config=function Dte(n,t){var e=n.auth,i=n.cache,r=n.system,o=n.telemetry,s={clientId:J.EMPTY_STRING,authority:""+J.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:J.EMPTY_STRING,authorityMetadata:J.EMPTY_STRING,redirectUri:J.EMPTY_STRING,postLogoutRedirectUri:J.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:sh.AAD,azureCloudOptions:{azureCloudInstance:zc.None,tenant:J.EMPTY_STRING},skipAuthorityMetadataCache:!1},a={cacheLocation:Ai.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},l={loggerCallback:function(){},logLevel:_i.Info,piiLoggingEnabled:!1},c=at(at({},FR),{loggerOptions:l,networkClient:t?Ln.getBrowserNetworkClient():yte,navigationClient:new bte,loadFrameTimeout:0,windowHashTimeout:r?.loadFrameTimeout||6e4,iframeHashTimeout:r?.loadFrameTimeout||6e3,navigateFrameWait:t&&Ln.detectIEOrEdge()?500:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:r?.nativeBrokerHandshakeTimeout||2e3}),u={application:{appName:J.EMPTY_STRING,appVersion:J.EMPTY_STRING}};return{auth:at(at({},s),e),cache:at(at({},a),i),system:at(at({},c),r),telemetry:at(at({},u),o)}}(t,this.isBrowserEnvironment),this.initialized=!1,this.logger=new MR(this.config.system.loggerOptions,mw,ah),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new Ute(this.config.auth.clientId,this.config.auth.authority,this.logger,mw,ah,this.config.telemetry.application):new ote(this.config.auth.clientId,this.config.auth.authority,this.logger,mw,ah,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new ite(this.logger,this.performanceClient):tg,this.eventHandler=new Ste(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new pw(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):function(n,t){return new pw(n,{cacheLocation:Ai.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},tg,t)}(this.config.auth.clientId,this.logger),this.nativeInternalStorage=new pw(this.config.auth.clientId,{cacheLocation:Ai.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},this.browserCrypto,this.logger),this.tokenCache=new Bte(this.config,this.browserStorage,this.logger,this.browserCrypto)}return n.prototype.initialize=function(){return ke(this,void 0,void 0,function(){var t,e;return Re(this,function(i){switch(i.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(this.eventHandler.emitEvent(st.INITIALIZE_START),!this.config.system.allowNativeBroker)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),t=this,[4,pl.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout)];case 2:return t.nativeExtensionProvider=i.sent(),[3,4];case 3:return e=i.sent(),this.logger.verbose(e),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(st.INITIALIZE_END),[2]}})})},n.prototype.handleRedirectPromise=function(t){return ke(this,void 0,void 0,function(){var e,i,r,o,s,a,l,c,u=this;return Re(this,function(d){return this.logger.verbose("handleRedirectPromise called"),Ln.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e=this.getAllAccounts(),this.isBrowserEnvironment?(typeof(r=this.redirectResponse.get(i=t||J.EMPTY_STRING))>"u"?(this.eventHandler.emitEvent(st.HANDLE_REDIRECT_START,We.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),s=void 0,o&&pl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!t?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new Kc(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,o.accountId,this.nativeInternalStorage,o.correlationId),s=a.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),l=this.browserStorage.getTemporaryCache(an.CORRELATION_ID,!0)||J.EMPTY_STRING,c=this.createRedirectClient(l),s=c.handleRedirectPromise(t)),r=s.then(function(h){return h&&(e.length0?st.ACQUIRE_TOKEN_FAILURE:st.LOGIN_FAILURE,We.Redirect,null,h),u.eventHandler.emitEvent(st.HANDLE_REDIRECT_END,We.Redirect),h}),this.redirectResponse.set(i,r)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,r]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},n.prototype.acquireTokenRedirect=function(t){return ke(this,void 0,void 0,function(){var e,i,r,o,s,a=this;return Re(this,function(l){return e=this.getRequestCorrelationId(t),this.logger.verbose("acquireTokenRedirect called",e),this.preflightBrowserEnvironmentCheck(We.Redirect),i=this.getAllAccounts().length>0,this.eventHandler.emitEvent(i?st.ACQUIRE_TOKEN_START:st.LOGIN_START,We.Redirect,t),this.nativeExtensionProvider&&this.canUseNative(t)?(o=new Kc(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),r=o.acquireTokenRedirect(t).catch(function(c){if(c instanceof Zo&&c.isFatal())return a.nativeExtensionProvider=void 0,a.createRedirectClient(t.correlationId).acquireToken(t);if(c instanceof Co)return a.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),a.createRedirectClient(t.correlationId).acquireToken(t);throw a.browserStorage.setInteractionInProgress(!1),c})):(s=this.createRedirectClient(t.correlationId),r=s.acquireToken(t)),[2,r.catch(function(c){throw a.eventHandler.emitEvent(i?st.ACQUIRE_TOKEN_FAILURE:st.LOGIN_FAILURE,We.Redirect,null,c),c})]})})},n.prototype.acquireTokenPopup=function(t){var e=this,i=this.getRequestCorrelationId(t),r=this.performanceClient.startMeasurement(di.AcquireTokenPopup,i);try{this.logger.verbose("acquireTokenPopup called",i),this.preflightBrowserEnvironmentCheck(We.Popup)}catch(l){return Promise.reject(l)}var o=this.getAllAccounts();return this.eventHandler.emitEvent(o.length>0?st.ACQUIRE_TOKEN_START:st.LOGIN_START,We.Popup,t),(this.canUseNative(t)?this.acquireTokenNative(t,Cn.acquireTokenPopup).then(function(l){return e.browserStorage.setInteractionInProgress(!1),r.endMeasurement({success:!0,isNativeBroker:!0,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),r.flushMeasurement(),l}).catch(function(l){if(l instanceof Zo&&l.isFatal())return e.nativeExtensionProvider=void 0,e.createPopupClient(t.correlationId).acquireToken(t);if(l instanceof Co)return e.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),e.createPopupClient(t.correlationId).acquireToken(t);throw e.browserStorage.setInteractionInProgress(!1),l}):this.createPopupClient(t.correlationId).acquireToken(t)).then(function(l){var c=o.length0?st.ACQUIRE_TOKEN_FAILURE:st.LOGIN_FAILURE,We.Popup,null,l),r.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),r.flushMeasurement(),Promise.reject(l)})},n.prototype.ssoSilent=function(t){return ke(this,void 0,void 0,function(){var e,i,r,o,s,a=this;return Re(this,function(l){return e=this.getRequestCorrelationId(t),i=at(at({},t),{prompt:Li.NONE,correlationId:e}),this.preflightBrowserEnvironmentCheck(We.Silent),r=this.performanceClient.startMeasurement(di.SsoSilent,e),this.logger.verbose("ssoSilent called",e),this.eventHandler.emitEvent(st.SSO_SILENT_START,We.Silent,i),this.canUseNative(i)?o=this.acquireTokenNative(i,Cn.ssoSilent).catch(function(c){if(c instanceof Zo&&c.isFatal())return a.nativeExtensionProvider=void 0,a.createSilentIframeClient(i.correlationId).acquireToken(i);throw c}):(s=this.createSilentIframeClient(i.correlationId),o=s.acquireToken(i)),[2,o.then(function(c){return a.eventHandler.emitEvent(st.SSO_SILENT_SUCCESS,We.Silent,c),r.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),r.flushMeasurement(),c}).catch(function(c){throw a.eventHandler.emitEvent(st.SSO_SILENT_FAILURE,We.Silent,null,c),r.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),r.flushMeasurement(),c})]})})},n.prototype.acquireTokenByCode=function(t){return ke(this,void 0,void 0,function(){var e,i,r,o,s=this;return Re(this,function(a){e=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck(We.Silent),this.logger.trace("acquireTokenByCode called",e),this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_START,We.Silent,t),i=this.performanceClient.startMeasurement(di.AcquireTokenByCode,t.correlationId);try{if(t.code)return(o=this.hybridAuthCodeResponses.get(r=t.code))?(this.logger.verbose("Existing acquireTokenByCode request found",t.correlationId),i.endMeasurement({success:!0}),i.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",e),o=this.acquireTokenByCodeAsync(at(at({},t),{correlationId:e})).then(function(l){return s.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_SUCCESS,We.Silent,l),s.hybridAuthCodeResponses.delete(r),i.endMeasurement({success:!0,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length,isNativeBroker:l.fromNativeBroker}),i.flushMeasurement(),l}).catch(function(l){throw s.hybridAuthCodeResponses.delete(r),s.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_FAILURE,We.Silent,null,l),i.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),i.flushMeasurement(),l}),this.hybridAuthCodeResponses.set(r,o)),[2,o];if(t.nativeAccountId){if(this.canUseNative(t,t.nativeAccountId))return[2,this.acquireTokenNative(t,Cn.acquireTokenByCode,t.nativeAccountId).catch(function(l){throw l instanceof Zo&&l.isFatal()&&(s.nativeExtensionProvider=void 0),l})];throw Ue.createUnableToAcquireTokenFromNativePlatformError()}throw Ue.createAuthCodeOrNativeAccountIdRequiredError()}catch(l){throw this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_FAILURE,We.Silent,null,l),i.endMeasurement({errorCode:l instanceof ut&&l.errorCode||void 0,subErrorCode:l instanceof ut&&l.subError||void 0,success:!1}),l}return[2]})})},n.prototype.acquireTokenByCodeAsync=function(t){return ke(this,void 0,void 0,function(){return Re(this,function(r){switch(r.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",t.correlationId),[4,this.createSilentAuthCodeClient(t.correlationId).acquireToken(t)];case 1:return[2,r.sent()]}})})},n.prototype.acquireTokenByRefreshToken=function(t){return ke(this,void 0,void 0,function(){var e,r=this;return Re(this,function(o){return Ln.blockReloadInHiddenIframes(),e=this.performanceClient.startMeasurement(di.AcquireTokenByRefreshToken,t.correlationId),this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_NETWORK_START,We.Silent,t),[2,this.createSilentRefreshClient(t.correlationId).acquireToken(t).then(function(s){return e.endMeasurement({success:!0,fromCache:s.fromCache,accessTokenSize:s.accessToken.length,idTokenSize:s.idToken.length}),s}).catch(function(s){if(s instanceof dl&&"invalid_grant"===s.errorCode&&!(s instanceof Co))return r.logger.verbose("Refresh token expired or invalid, attempting acquire token by iframe",t.correlationId),r.createSilentIframeClient(t.correlationId).acquireToken(t).then(function(d){return e.endMeasurement({success:!0,fromCache:d.fromCache,accessTokenSize:d.accessToken.length,idTokenSize:d.idToken.length}),d}).catch(function(d){throw e.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d});throw e.endMeasurement({success:!1}),s})]})})},n.prototype.logout=function(t){return ke(this,void 0,void 0,function(){var e;return Re(this,function(i){return e=this.getRequestCorrelationId(t),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",e),[2,this.logoutRedirect(at({correlationId:e},t))]})})},n.prototype.logoutRedirect=function(t){return ke(this,void 0,void 0,function(){var e;return Re(this,function(r){return e=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck(We.Redirect),[2,this.createRedirectClient(e).logout(t)]})})},n.prototype.logoutPopup=function(t){try{var e=this.getRequestCorrelationId(t);return this.preflightBrowserEnvironmentCheck(We.Popup),this.createPopupClient(e).logout(t)}catch(r){return Promise.reject(r)}},n.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},n.prototype.getAccountByUsername=function(t){var e=this.getAllAccounts();return!$e.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+t),e.filter(function(i){return i.username.toLowerCase()===t.toLowerCase()})[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},n.prototype.getAccountByHomeId=function(t){var e=this.getAllAccounts();return!$e.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+t),e.filter(function(i){return i.homeAccountId===t})[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},n.prototype.getAccountByLocalId=function(t){var e=this.getAllAccounts();return!$e.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+t),e.filter(function(i){return i.localAccountId===t})[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},n.prototype.setActiveAccount=function(t){this.browserStorage.setActiveAccount(t)},n.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},n.prototype.preflightBrowserEnvironmentCheck=function(t,e){if(void 0===e&&(e=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Ln.blockNonBrowserEnvironment(this.isBrowserEnvironment),Ln.blockRedirectInIframe(t,this.config.system.allowRedirectInIframe),Ln.blockReloadInHiddenIframes(),Ln.blockAcquireTokenInPopups(),Ln.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t===We.Redirect&&this.config.cache.cacheLocation===Ai.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Hf.createInMemoryRedirectUnavailableError();(t===We.Redirect||t===We.Popup)&&this.preflightInteractiveRequest(e)},n.prototype.preflightInteractiveRequest=function(t){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Ln.blockReloadInHiddenIframes(),t&&this.browserStorage.setInteractionInProgress(!0)},n.prototype.acquireTokenNative=function(t,e,i){return ke(this,void 0,void 0,function(){return Re(this,function(o){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw Ue.createNativeConnectionNotEstablishedError();return[2,new Kc(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,e,this.performanceClient,this.nativeExtensionProvider,i||this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId).acquireToken(t)]})})},n.prototype.canUseNative=function(t,e){if(this.logger.trace("canUseNative called"),!pl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(t.prompt)switch(t.prompt){case Li.NONE:case Li.CONSENT:case Li.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+t.prompt+" is not compatible with native flow, returning false"),!1}return!(!e&&!this.getNativeAccountId(t)&&(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),1))},n.prototype.getNativeAccountId=function(t){var e=t.account||this.browserStorage.getAccountInfoByHints(t.loginHint,t.sid)||this.getActiveAccount();return e&&e.nativeAccountId||""},n.prototype.createPopupClient=function(t){return new Pte(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createRedirectClient=function(t){return new Lte(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createSilentIframeClient=function(t){return new Nte(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createSilentCacheClient=function(t){return new zR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentRefreshClient=function(t){return new Fte(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentAuthCodeClient=function(t){return new Vte(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.addEventCallback=function(t){return this.eventHandler.addEventCallback(t)},n.prototype.removeEventCallback=function(t){this.eventHandler.removeEventCallback(t)},n.prototype.addPerformanceCallback=function(t){return this.performanceClient.addPerformanceCallback(t)},n.prototype.removePerformanceCallback=function(t){return this.performanceClient.removePerformanceCallback(t)},n.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},n.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},n.prototype.getTokenCache=function(){return this.tokenCache},n.prototype.getLogger=function(){return this.logger},n.prototype.setLogger=function(t){this.logger=t},n.prototype.initializeWrapperLibrary=function(t,e){this.browserStorage.setWrapperMetadata(t,e)},n.prototype.setNavigationClient=function(t){this.navigationClient=t},n.prototype.getConfiguration=function(){return this.config},n.prototype.getRequestCorrelationId=function(t){return t?.correlationId?t.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():J.EMPTY_STRING},n}(),zte=function(n){function t(e){var i=n.call(this,e)||this;return i.activeSilentTokenRequests=new Map,i}return Ti(t,n),t.prototype.loginRedirect=function(e){return ke(this,void 0,void 0,function(){var i;return Re(this,function(r){return i=this.getRequestCorrelationId(e),this.logger.verbose("loginRedirect called",i),[2,this.acquireTokenRedirect(at({correlationId:i},e||BI))]})})},t.prototype.loginPopup=function(e){var i=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",i),this.acquireTokenPopup(at({correlationId:i},e||BI))},t.prototype.acquireTokenSilent=function(e){return ke(this,void 0,void 0,function(){var i,r,o,a,l,c,u=this;return Re(this,function(d){if(i=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(di.AcquireTokenSilent,i),this.preflightBrowserEnvironmentCheck(We.Silent),this.logger.verbose("acquireTokenSilent called",i),!(o=e.account||this.getActiveAccount()))throw Ue.createNoAccountError();return a=JSON.stringify({clientId:this.config.auth.clientId,authority:e.authority||J.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:o.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid}),typeof(l=this.activeSilentTokenRequests.get(a))>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",i),c=this.acquireTokenSilentAsync(at(at({},e),{correlationId:i}),o).then(function(h){return u.activeSilentTokenRequests.delete(a),r.endMeasurement({success:!0,fromCache:h.fromCache,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,isNativeBroker:h.fromNativeBroker}),r.flushMeasurement(),h}).catch(function(h){throw u.activeSilentTokenRequests.delete(a),r.endMeasurement({success:!1}),r.flushMeasurement(),h}),this.activeSilentTokenRequests.set(a,c),[2,c]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",i),r.endMeasurement({success:!0}),r.discardMeasurement(),[2,l])})})},t.prototype.acquireTokenSilentAsync=function(e,i){return ke(this,void 0,void 0,function(){var r,o,s,a,l,c=this;return Re(this,function(u){switch(u.label){case 0:return this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_START,We.Silent,e),r=this.performanceClient.startMeasurement(di.AcquireTokenSilentAsync,e.correlationId),pl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&i.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),s=at(at({},e),{account:i}),o=this.acquireTokenNative(s,Cn.acquireTokenSilent_silentFlow).catch(function(d){return ke(c,void 0,void 0,function(){return Re(this,function(f){if(d instanceof Zo&&d.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,[2,this.createSilentIframeClient(e.correlationId).acquireToken(e)];throw d})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),[4,(a=this.createSilentCacheClient(e.correlationId)).initializeSilentRequest(e,i)];case 2:l=u.sent(),o=a.acquireToken(l).catch(function(){return ke(c,void 0,void 0,function(){return Re(this,function(d){return[2,this.acquireTokenByRefreshToken(l)]})})}),u.label=3;case 3:return[2,o.then(function(d){return c.eventHandler.emitEvent(st.ACQUIRE_TOKEN_SUCCESS,We.Silent,d),r.endMeasurement({success:!0,fromCache:d.fromCache,accessTokenSize:d.accessToken.length,idTokenSize:d.idToken.length,isNativeBroker:d.fromNativeBroker}),d}).catch(function(d){throw c.eventHandler.emitEvent(st.ACQUIRE_TOKEN_FAILURE,We.Silent,null,d),r.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d})]}})})},t}(qte);let Gte=(()=>{class n{constructor(e,i){this.domSanitizer=e,this.cdRef=i,this.sessionSet=!1,localStorage.getItem("webInt")}ngOnInit(){Office.onReady().then(()=>{Office.context.ui.addHandlerAsync(Office.EventType.DialogParentMessageReceived,this.onMessageFromParent.bind(this)),Office.context.ui.messageParent("ready")})}onMessageFromParent(e){console.log("ON MESSAGE"),"message"in e&&(console.log("On Message"),console.log(this.webInt),console.log("Got Message"),console.log("TEST:"),console.log(e),this.webInt=e.message,console.log("WEB INT CHANGED"),console.log(this.webInt),this.sessionSet=!0,this.redirectURL="https://localhost:3000/businessmail?redirect",window.open(e.message+"?isOutlookClient=true","_self"))}}return n.\u0275fac=function(e){return new(e||n)(p(Ba),p(Bt))},n.\u0275cmp=ze({type:n,selectors:[["app-redirect"]],decls:2,vars:0,template:function(e,i){1&e&&(g(0,"p"),j(1,"Redirecting..."),v())}}),n})();const vw=["name","companyName","birthdate","-BLANK-","phone","cellphone","homephone","-BLANK-","homepage","skype","pointer","companyPointer","isCompany","additional"];function $R(n,t){const e=vw.indexOf(n.key),i=vw.indexOf(t.key);return-1===e&&-1===i?0:-1===e?1:-1===i||ei?1:0}(n=>{const t=[];vw.forEach((e,i)=>{e.includes("-BLANK-")&&t.push(i)})})();let Yc=(()=>{class n{constructor(e,i,r){this.waitlist=e,this.messageService=i,this.globals=r,this.subscriptions={}}waitForDisplayChanges(e,i,r){this.initKey(e);for(const o of i)this.subscriptions[e].push(this.changeAttachDisplay(o).subscribe(()=>{r.detectChanges()}))}unsubscribeAll(e){if(this.subscriptions[e])for(const i of this.subscriptions[e])i.unsubscribe()}showInfoToast(){this.messageService.showInfo(this.globals.languageConfLocal.attachments)}get getInfoText(){return this.globals.languageConfLocal.attachments}initKey(e){null==this.subscriptions[e]&&(this.subscriptions[e]=[])}changeAttachDisplay(e){return new b(i=>this.waitlist.addToWaitList(e,i))}}return n.\u0275fac=function(e){return new(e||n)(T(Ji),T(en),T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wte=["searchExpansionPanel"],$te=["searchTextInput"];function Kte(n,t){if(1&n){const e=je();g(0,"span",17),X("click",function(r){return oe(e),se(x(2).clearTextClicked(r))}),j(1,"cancel"),v()}}function Yte(n,t){1&n&&(g(0,"span",18),j(1,"expand_less"),v())}function Qte(n,t){1&n&&(g(0,"span",18),j(1,"search"),v())}function Xte(n,t){if(1&n&&(g(0,"mat-option",22),j(1),v()),2&n){const e=t.$implicit;y("value",e.value),m(1),we(e.viewValue)}}function Zte(n,t){if(1&n){const e=je();g(0,"mat-form-field",19)(1,"mat-label"),j(2),v(),g(3,"mat-select",20),X("valueChange",function(r){return oe(e),se(x(2).selectedDB=r)})("selectionChange",function(){return oe(e),se(x(2).selectedDBChanged())}),V(4,Xte,2,2,"mat-option",21),v()()}if(2&n){const e=x(2);m(2),we(e.globals.languageConfLocal.addressDatabase),m(1),y("value",e.selectedDB),m(1),y("ngForOf",e.databases)}}function Jte(n,t){if(1&n&&(g(0,"div",23),j(1),v()),2&n){const e=x(2);m(1),Qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function ene(n,t){if(1&n){const e=je();g(0,"div",24),X("click",function(r){return oe(e),se(x(2).clickedElement(r))})("dblclick",function(r){return oe(e),se(x(2).dblClickedElement(r))}),xe(1,"img",25),g(2,"div",26)(3,"span",27),j(4),v(),xe(5,"br"),g(6,"span",28),j(7),v(),xe(8,"br"),g(9,"span",28),j(10),v(),xe(11,"br"),v()()}if(2&n){const e=t.$implicit,i=t.index,r=x(2);Ot("title",r.parseHtmlEntities(e.lineOne)),ot("data-fdme",e.fdMe)("data-email",e.email)("data-order",i+1),m(1),y("src",r.datasource.getImageSrc(e.image),Zn),m(2),Ot("title",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")),m(1),Qe(" ",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")," "),m(2),Ot("title",r.parseHtmlEntities(e.lineTwo)),m(1),we(r.parseHtmlEntities(e.lineTwo)),m(2),Ot("title",r.parseHtmlEntities(e.lineThree)),m(1),we(r.parseHtmlEntities(e.lineThree))}}function tne(n,t){if(1&n){const e=je();g(0,"div",29)(1,"button",30),X("click",function(){return oe(e),se(x(2).addSelectedTo("requiredAttendees"))}),j(2),v(),g(3,"button",30),X("click",function(){return oe(e),se(x(2).addSelectedTo("optionalAttendees"))}),j(4),v()()}if(2&n){const e=x(2);m(2),we(e.globals.languageConfLocal.requiredAttendee),m(2),we(e.globals.languageConfLocal.optionalAttendee)}}function nne(n,t){if(1&n){const e=je();g(0,"div",29)(1,"button",30),X("click",function(){return oe(e),se(x(2).addSelectedTo("to"))}),j(2),v(),g(3,"button",30),X("click",function(){return oe(e),se(x(2).addSelectedTo("cc"))}),j(4,"Cc"),v(),g(5,"button",30),X("click",function(){return oe(e),se(x(2).addSelectedTo("bcc"))}),j(6,"Bcc"),v()()}if(2&n){const e=x(2);m(2),we(e.globals.languageConfLocal.to)}}function ine(n,t){if(1&n){const e=je();g(0,"div",31)(1,"div",32),X("click",function(r){return oe(e),se(x(2).addSelectedTo("requiredAttendees",r))}),j(2),v(),g(3,"div",32),X("click",function(r){return oe(e),se(x(2).addSelectedTo("optionalAttendees",r))}),j(4),v()()}if(2&n){const e=x(2);m(2),Qe(" ",e.globals.languageConfLocal.requiredAttendee,""),m(2),Qe(" ",e.globals.languageConfLocal.optionalAttendee,"")}}function rne(n,t){if(1&n){const e=je();g(0,"div",31)(1,"div",32),X("click",function(r){return oe(e),se(x(2).addSelectedTo("to",r))}),j(2),v(),g(3,"div",32),X("click",function(r){return oe(e),se(x(2).addSelectedTo("cc",r))}),j(4,"Cc"),v(),g(5,"div",32),X("click",function(r){return oe(e),se(x(2).addSelectedTo("bcc",r))}),j(6,"Bcc"),v()()}if(2&n){const e=x(2);m(2),Qe(" ",e.globals.languageConfLocal.to,"")}}function one(n,t){if(1&n){const e=je();g(0,"div",1),xe(1,"br"),g(2,"mat-expansion-panel",2,3),X("closed",function(){return oe(e),se(x().searchResultsPanelClosed())})("opened",function(){return oe(e),se(x().searchResultsPanelOpened())}),g(4,"mat-expansion-panel-header")(5,"mat-panel-title",4)(6,"mat-form-field",5)(7,"mat-label",6),j(8),v(),g(9,"input",7,8),X("keydown.Space",function(r){return oe(e),se(x().noCloseOnSpace(r))})("input",function(r){return oe(e),se(x().textChanged(r))})("focus",function(r){return oe(e),se(x().searchInputFocused(r))})("click",function(r){return oe(e),se(x().searchInputClicked(r))})("ngModelChange",function(r){return oe(e),se(x().textInSearchInput=r)}),v()(),V(11,Kte,2,0,"span",9),V(12,Yte,2,0,"span",10),V(13,Qte,2,0,"span",10),v()(),V(14,Zte,5,3,"mat-form-field",11),g(15,"div",12),V(16,Jte,2,1,"div",13),V(17,ene,12,11,"div",14),v(),V(18,tne,5,2,"div",15),V(19,nne,7,1,"div",15),V(20,ine,5,2,"div",16),V(21,rne,7,1,"div",16),v()()}if(2&n){const e=sn(10),i=x();m(8),we(i.globals.languageConfLocal.searchInCRMForContacts),m(1),y("ngModel",i.textInSearchInput),m(2),y("ngIf",e.value.length>0),m(1),y("ngIf",i.searchPanelExpanded),m(1),y("ngIf",!i.searchPanelExpanded),m(1),y("ngIf",null!=i.databases&&i.databases.length>0),m(2),y("ngIf",i.showRecentlyUsed),m(1),y("ngForOf",i.searchResultsArray),m(1),y("ngIf",i.isAppointment),m(1),y("ngIf",!i.isAppointment),m(1),y("ngIf",i.isAppointment),m(1),y("ngIf",!i.isAppointment)}}let sne=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.messageService=i,this.mailLoadedService=r,this.ref=o,this.translate=s,this.waitList=a,this.datasource=l,this.lsm=c,this.dps=u,this.compareFunc=$R,this.searchResultsArray=[],this.databases=[],this.selection=new nl(!1),this.showRecentlyUsed=!1,this.initialDBSelection=!1,this.events=["contextmenu","touchstart"],this.lastTap=0,this.gotFocused=!1,this.addressFetched=!1,this.addresses=[],this.subscriptions=[],this.currentAvatarURL="",this.filteredAdditionalValues={},this.commonPointerData={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){let e=Office.context.mailbox.item;e&&(this.isCompose=null==e.itemId,this.isAppointment="appointment"===e.itemType,this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync),this.events.forEach(i=>{document.addEventListener(i,r=>{if(null==r.srcElement.closest("#resultsContainer"))return;let o=document.getElementsByClassName("resultListEntry");if(this.countSelected(o)<=1){this.deselectAll(o);let _=r.srcElement.closest(".resultListEntry");this.selectOneElement(_)}r.preventDefault();let a=document.getElementById("context-menu");if(!a)return;let l=r.clientX||r.touches[0].clientX,c=r.clientY||r.touches[0].clientY,u=a.getBoundingClientRect().height,d=a.getBoundingClientRect().width,h=window.innerWidth,f=window.innerHeight;h-l<=200?(a.style.borderRadius="5px 0 5px 5px",a.style.left=h-d+"px",a.style.top=c+"px",f-c<=200&&(a.style.top=c-u+"px",a.style.borderRadius="5px 5px 0 5px")):(a.style.borderRadius="0 5px 5px 5px",a.style.left=l+"px",a.style.top=c+"px",f-c<=200&&(a.style.top=c-u+"px",a.style.borderRadius="5px 5px 5px 0")),a.style.visibility="visible"},{passive:!1})}),document.addEventListener("touchend",i=>{document.getElementById("context-menu")}),document.addEventListener("click",i=>{let r=document.getElementById("context-menu");!r||(r.style.visibility="hidden")}),this.getContactDBs(),this.dps.addThingToClose("contactSearch",()=>{this.searchExpansionPanel?.close()})}ngOnDestroy(){for(const e of this.subscriptions)e.unsubscribe();this.mailLoadedService.unsubscribeAll(this.constructor.name)}detectChanges(){this.ref.detectChanges()}waitForConnector(){return new b(e=>{this.waitList.addToWaitList("connector",e)})}textChanged(e){this.textInSearchInput.length>0&&this.searchExpansionPanel.open(),this.getContacts()}clearTextClicked(e){this.textInSearchInput="",this.searchPanelExpanded&&(this.getContacts(),this.searchTextInput.nativeElement.focus()),e.stopPropagation()}addSelectedTo(e,i=null){let r=Office.context.mailbox.item;if(r){let o=document.getElementsByClassName("resultListEntry"),s=this.countSelected(o);if(0===s)return void this.translate.get("Nothing is selected!").subscribe(a=>{this.messageService.showWarning(this.globals.languageConfLocal.NothingIsSelected,void 0)});for(let a=0;a{s.status===Office.AsyncResultStatus.Failed?this.messageService.showError("Not able to read outlook item.",void 0):0===s.value.filter(l=>l.emailAddress.toLowerCase()===i.dataset.email.toLowerCase()).length&&(this.datasource.addToRecentlyUsed(i.dataset.fdme),e[r].addAsync([{displayName:i.title,emailAddress:i.dataset.email}]))})}clickedElement(e){let i=document.getElementsByClassName("resultListEntry"),r=this.countSelected(i),o=e.currentTarget,s=o.dataset.order-1;if(!e.ctrlKey&&!e.shiftKey&&this.deselectAll(i,s),e.shiftKey){let a=this.lastSelected,l=s;a>l&&(a=s,l=this.lastSelected),this.selectBetween(i,a,l)}else"true"===o.dataset.selected?this.deselectOneElement(o):(this.selectOneElement(o),this.lastSelected=o.dataset.order-1),!e.ctrlKey&&r>1&&(this.selectOneElement(o),this.lastSelected=o.dataset.order-1)}dblClickedElement(e){let r=Office.context.mailbox.item;this.addOneContact(r,e.currentTarget,this.isAppointment?"requiredAttendees":"to",!1)}deselectAll(e,i=null){for(let r=0;r{this.selectOneElement(e[o])},10)}countSelected(e){let i=0;for(let r=0;r{console.log("DBs:",e),this.filterForContacts(e)}})}filterForContacts(e){const i={};for(const r in e)"GeOfficeAliases"!==r&&"Contact"===e[r].type&&(i[r]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){this.databases=[];for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:e[i]});if(console.log(this.databases),this.databases.length>0){let i=this.lsm.getValue(tn.contactDB);null!==i?this.databases.forEach(r=>{r.value===i&&(this.selectedDB=r.value)}):this.selectedDB=this.databases[0].value}this.getContacts()}selectedDBChanged(){this.getContacts(),this.initialDBSelection?this.initialDBSelection=!1:this.lsm.setValue(tn.contactDB,this.selectedDB)}getContacts(){"ba"===this.globals.system&&(this.showRecentlyUsed=!this.textInSearchInput||0===this.textInSearchInput?.length),this.datasource.fetchSearch(this.selectedDB,void 0,this.textInSearchInput).subscribe({next:e=>{this.searchResultsArray=this.datasource.handleSearchResult(e,da.contacts)}})}searchResultsPanelOpened(){let e=this.searchExpansionPanel._body.nativeElement.childNodes[0];e.style.paddingRight="3px",e.style.paddingLeft="3px",e.style.paddingBottom="3px",e.style.backgroundColor="#ffffff",e.style.zIndex=5,this.searchPanelExpanded=!0,this.searchTextInput.nativeElement.focus()}searchResultsPanelClosed(){this.searchPanelExpanded=!1}searchInputFocused(e){setTimeout(()=>{this.searchExpansionPanel.open()},100),this.gotFocused=!0}searchInputClicked(e){this.gotFocused&&e.stopPropagation(),this.gotFocused=!1}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}noCloseOnSpace(e){e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(en),p(Yc),p(Bt),p(Xt),p(Ji),p(bo),p(Br),p(Fc))},n.\u0275cmp=ze({type:n,selectors:[["app-contact-selector"]],viewQuery:function(e,i){if(1&e&&(Oe(Wte,5),Oe($te,5)),2&e){let r;me(r=ge())&&(i.searchExpansionPanel=r.first),me(r=ge())&&(i.searchTextInput=r.first)}},decls:1,vars:1,consts:[["class","contactSelectorDiv",4,"ngIf"],[1,"contactSelectorDiv"],["hideToggle","",1,"searchResultsPanel","mat-elevation-z0",3,"closed","opened"],["searchExpansionPanel",""],[1,"searchInCRMHeader"],[2,"width","100%","vertical-align","bottom"],[2,"font-size","small"],["matInput","","type","search","id","searchText","name","searchText",3,"ngModel","keydown.Space","input","focus","click","ngModelChange"],["searchTextInput",""],["class","material-symbols-rounded clearIcon",3,"click",4,"ngIf"],["class","material-symbols-rounded searchIcon",4,"ngIf"],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click","dblclick",4,"ngFor","ngForOf"],["class","btn-group",4,"ngIf"],["id","context-menu",4,"ngIf"],[1,"material-symbols-rounded","clearIcon",3,"click"],[1,"material-symbols-rounded","searchIcon"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click","dblclick"],[1,"normalImage",3,"src"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],[1,"btn-group"],[3,"click"],["id","context-menu"],[1,"item",3,"click"]],template:function(e,i){1&e&&V(0,one,22,12,"div",0),2&e&&y("ngIf",!i.isReadMode)},dependencies:[ci,_n,fo,Fo,ps,Ko,Gr,ua,vo,Yo,ew,Wk,$k],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}#resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#context-menu[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 20px #25282a38;color:#1f194c;width:10em;padding:.8em .6em;font-size:13px;position:fixed;visibility:hidden}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:.3em 1.2em}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;cursor:pointer}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#5f5f5f}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}#searchText[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:4.5em;font-size:small}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expanded[_ngcontent-%COMP%]{border:#4d4d4d;border-width:3px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.contactSelectorDiv[_ngcontent-%COMP%]{width:100%;height:-moz-fit-content;height:fit-content}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}.searchIcon[_ngcontent-%COMP%]{position:absolute;right:3px;bottom:22px}.clearIcon[_ngcontent-%COMP%]{position:absolute;right:27px;bottom:22px}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.databaseSearchSelect[_ngcontent-%COMP%] + .searchResultsPanel[_ngcontent-%COMP%]{margin-top:-16px}']}),n})();var fl=(()=>(function(n){n[n.activity=0]="activity"}(fl||(fl={})),fl))();let ane=(()=>{class n{constructor(e){this.globals=e}getImgUrl(e){return this.globals.webInt+e}getLocalImgUrl(e,i){if(i)return"assets/images/defaultCompany_80x104.png";if(null!=e)switch(e.toLowerCase()){case"herr":case"mr":case"mister":case"male":return"assets/images/defaultMan_80x104.png";case"frau":case"mrs":case"ms":case"miss":case"female":return"assets/images/defaultWoman_80x104.png"}return"assets/images/defaultUnisex_80x104.png"}getViewImgFileName(e){return"vwicn"+e.toString().padStart(3,"0")+".png"}getViewIconUrl(e){return this.getImgUrl(this.getViewImgFileName(e))}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const lne=["selectedContact"],cne=["firstDocumentDestination"],une=["secondDocumentDestination"],dne=["docDestSelector"];function hne(n,t){if(1&n&&(g(0,"div",12),j(1),v()),2&n){const e=x();y("title",e.currentEmailSubject),m(1),Qe("",e.currentEmailSubject,"\n")}}function pne(n,t){if(1&n){const e=je();g(0,"button",13),X("click",function(){return oe(e),se(x().documentItem())}),j(1),v()}if(2&n){const e=x();y("disabled",e.noneSelected)("title",e.documentButtonTooltip),m(1),we(e.globals.languageConfLocal.documentVerb)}}function fne(n,t){if(1&n){const e=je();g(0,"button",14),X("click",function(){return oe(e),se(x().updateItem())}),j(1),v()}if(2&n){const e=x();y("title",e.updateButtonTooltip),m(1),we(e.globals.languageConfLocal.updateVerb)}}function mne(n,t){if(1&n&&(g(0,"mat-option",15),j(1),v()),2&n){const e=x();m(1),Qe(" ",e.globals.languageConfLocal.doNotDocument," ")}}function gne(n,t){if(1&n&&(g(0,"mat-option",18)(1,"div",19),j(2),v(),g(3,"div",20),j(4),v()()),2&n){const e=t.$implicit;y("value",e.email),m(2),we(e.display),m(2),we(e.email)}}function _ne(n,t){if(1&n&&(g(0,"mat-optgroup",16),V(1,gne,5,3,"mat-option",17),v()),2&n){const e=x();y("label",e.primaryRecipients),m(1),y("ngForOf",e.addresses)("ngForTrackBy",e.tracker)}}function vne(n,t){if(1&n&&(g(0,"mat-option",18)(1,"div",19),j(2),v(),g(3,"div",20),j(4),v()()),2&n){const e=t.$implicit;y("value",e.email),m(2),we(e.display),m(2),we(e.email)}}function yne(n,t){if(1&n&&(g(0,"mat-optgroup",16),V(1,vne,5,3,"mat-option",17),v()),2&n){const e=x();y("label",e.secondaryRecipients),m(1),y("ngForOf",e.addresses2nd)("ngForTrackBy",e.tracker)}}function bne(n,t){if(1&n&&(g(0,"mat-optgroup",16)(1,"mat-option",18)(2,"div",19),j(3),v(),g(4,"div",20),j(5),v()()()),2&n){const e=x();y("label",e.theOwnerText),m(1),y("value",e.theSender.email),m(2),we(e.theSender.display),m(2),we(e.theSender.email)}}function Cne(n,t){if(1&n&&(g(0,"mat-optgroup",16)(1,"mat-option",18)(2,"div",19),j(3),v(),g(4,"div",20),j(5),v()()()),2&n){const e=x();y("label",e.theAssignedText),m(1),y("value",e.theAssignee.email),m(2),we(e.theAssignee.display),m(2),we(e.theAssignee.email)}}function wne(n,t){if(1&n&&(g(0,"small"),j(1),v()),2&n){const e=x().$implicit;m(1),Qe(" (",e.dbTitle,")")}}function Ene(n,t){if(1&n){const e=je();g(0,"button",34),X("valueChange",function(r){return se(oe(e).$implicit.pointer=r)})("click",function(){const o=oe(e).$implicit;return se(x(3).subdestinationClick(o.pointer))}),g(1,"span",35),j(2),V(3,wne,2,1,"small",9),v()()}if(2&n){const e=t.$implicit,i=x(3);y("value",e.pointer)("ngClass",e.pointer===i.displayedDestination.pointer?"selectedDestination":""),m(1),y("title",e.name+(e.dbTitle?" ("+e.dbTitle+")":"")),m(1),Oo("",e.name,"",e.companyName?" ("+e.companyName+")":""," "),m(1),y("ngIf",e.dbTitle)}}function Dne(n,t){if(1&n&&(g(0,"div",29)(1,"button",30),xe(2,"img",31),v(),g(3,"mat-menu",null,32),V(5,Ene,4,6,"button",33),v()()),2&n){const e=sn(4),i=x(2);m(1),y("matBadge",i.destinationsToDisplay.length)("matMenuTriggerFor",e),m(1),y("src",i.currentAvatarURL,Zn),m(3),y("ngForOf",i.destinationsToDisplay)}}function Sne(n,t){if(1&n&&(g(0,"div",29),xe(1,"img",31),v()),2&n){const e=x(2);m(1),y("src",e.currentAvatarURL,Zn)}}function Ane(n,t){if(1&n&&(g(0,"a",36),j(1),v()),2&n){const e=x(2);y("href",e.displayedDestination.parentUrl,Zn)("title",e.displayedDestination.companyName),m(1),we(e.displayedDestination.companyName)}}function Tne(n,t){if(1&n){const e=je();g(0,"mat-checkbox",25,37),X("change",function(r){return oe(e),se(x(2).destinationSelectorClicked(r))}),v()}if(2&n){const e=x(2);y("name",e.displayedDestination.companyPointer)("checked",e.initSelectedDoc&&e.displayedDestination.companyPointer===e.initSelectedDoc)}}function xne(n,t){if(1&n&&(g(0,"div")(1,"span",38),j(2,"cake"),v(),g(3,"span",39),j(4),v()()),2&n){const e=x(2);m(4),we(e.displayedDestination.additional.birthdate)}}function Ine(n,t){if(1&n&&(g(0,"div")(1,"span",38),j(2,"call"),v(),g(3,"a",40),j(4),v()()),2&n){const e=x(2);m(3),Ot("href","tel:"+e.displayedDestination.additional.phone,Zn),m(1),we(e.displayedDestination.additional.phone)}}function Mne(n,t){if(1&n&&(g(0,"div")(1,"span",38),j(2,"phone_android"),v(),g(3,"a",40),j(4),v()()),2&n){const e=x(2);m(3),Ot("href","tel:"+e.displayedDestination.additional.cellphone,Zn),m(1),we(e.displayedDestination.additional.cellphone)}}function kne(n,t){if(1&n){const e=je();g(0,"div",21)(1,"div",22),V(2,Dne,6,4,"div",23),V(3,Sne,2,1,"div",23),g(4,"a",24),j(5),v(),g(6,"mat-checkbox",25,26),X("change",function(r){return oe(e),se(x().destinationSelectorClicked(r))}),v(),V(9,Ane,2,3,"a",27),V(10,Tne,3,2,"mat-checkbox",28),v(),V(11,xne,5,1,"div",9),V(12,Ine,5,2,"div",9),V(13,Mne,5,2,"div",9),v()}if(2&n){const e=x();m(2),y("ngIf",e.destinationsToDisplay&&e.destinationsToDisplay.length>1),m(1),y("ngIf",e.destinationsToDisplay&&1===e.destinationsToDisplay.length),m(1),y("href",e.displayedDestination.url,Zn)("title",e.displayedDestination.name),m(1),we(e.displayedDestination.name),m(1),y("name",e.displayedDestination.pointer)("checked",e.initSelectedDoc&&e.displayedDestination.pointer===e.initSelectedDoc),m(3),y("ngIf",!e.displayedDestination.isCompany&&e.displayedDestination.companyName&&e.displayedDestination.companyName.length>0),m(1),y("ngIf",!e.displayedDestination.isCompany&&e.displayedDestination.companyName&&e.displayedDestination.companyName.length>0),m(1),y("ngIf",e.displayedDestination.additional.birthdate),m(1),y("ngIf",e.displayedDestination.additional.phone),m(1),y("ngIf",e.displayedDestination.additional.cellphone)}}function Rne(n,t){if(1&n&&(g(0,"div")(1,"div"),j(2),v()()),2&n){const e=x();m(2),we(e.globals.languageConfLocal.emailNotFoundInCRM)}}function One(n,t){if(1&n&&(g(0,"div")(1,"div"),j(2),v()()),2&n){const e=x();m(2),we(e.globals.languageConfLocal.afterSendNoAutomaticDocument)}}function Pne(n,t){if(1&n){const e=je();g(0,"div")(1,"button",41),X("click",function(){return oe(e),se(x().quickCreate())}),j(2),v()()}if(2&n){const e=x();m(1),Ot("disabled",!e.extractedContactData),y("title",e.globals.languageConfLocal.ContactQuickCreation),m(1),we(e.globals.languageConfLocal.ContactQuickCreation)}}function Lne(n,t){if(1&n&&(g(0,"mat-option",18),j(1),v()),2&n){const e=t.$implicit;y("value",e.db),m(1),Qe(" ",e.alias," ")}}function Nne(n,t){if(1&n){const e=je();g(0,"mat-form-field",42)(1,"mat-label"),j(2),v(),g(3,"mat-select",43),X("valueChange",function(r){return oe(e),se(x().selectedOfficeDB=r)})("selectionChange",function(){return oe(e),se(x().setOfficeDB())}),V(4,Lne,2,2,"mat-option",44),v()()}if(2&n){const e=x();m(2),we(e.globals.languageConfLocal.officeDatabase),m(1),y("value",e.selectedOfficeDB),m(1),y("ngForOf",e.officeDatabases)}}let Fne=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this.globals=e,this.messageService=i,this.addressService=r,this.translate=o,this.datasource=s,this.ref=a,this.connectionService=l,this.waitListService=c,this.lsm=u,this.imageService=d,this.dialogService=h,this.ews=f,this.compareFunc=$R,this.isNew=!0,this.isUpdate=!1,this.searchTextInput="",this.searchValue="",this.selection=new nl(!1),this.showRecentlyUsed=!0,this.isSet=!1,this.itRuns=!1,this.noneSelected=!1,this.whatItemIsThis="",this.theOwnerText="",this.theAssignedText="",this.primaryRecipients="",this.secondaryRecipients="",this.primaryPointer="",this.showDocumentButton=!1,this.doNotDocConst="doNotDocument",this.incomingRecognition=new RegExp("(X-MS-Exchange-Organization-MessageDirectionality): *(Incoming|Originating)"),this.subscriptions=[],this.currentAvatarURL="",this.filteredAdditionalValues={},this.commonPointerData={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.selectedEmailDropdown=new Yu,this.recognizeCurrentItem();let e=Office.context.mailbox.item;e?.addHandlerAsync(Office.EventType.RecipientsChanged,this.recipientChanged,{asyncContext:this},i=>{Office}),this.waitForDocumentDestinationCheckChanged().subscribe({next:()=>{this.detectChanges()}}),this.waitForItemRecognition().subscribe(i=>{"appointment"===e?.itemType?this.ews.GetExtendedData(i).subscribe(r=>{r&&(r.selEm===this.doNotDocConst&&(this.noneSelected=!0,this.noMoreAutoSelect=!0),void 0!==this.contactCreationOpened&&(this.contactCreationOpened=void 0),void 0===r.documentTarget&&void 0===r.selEm?(this.isNew=!0,this.lsm.setValue(tn.appointmentIsNew,"1")):this.isNew="1"===this.lsm.getValue(tn.appointmentIsNew),"gi"===this.globals.system?e?.requiredAttendees.getAsync(o=>{this.isNew&&void 0===r.docEm&&o.value.length>0&&(r.selEm=o.value[0].emailAddress,r.docEm=o.value[0].emailAddress,this.ews.SaveExtendedData(i,r).subscribe(s=>{this.finishAppointmentProcessing(r)}))}):this.finishAppointmentProcessing(r))}):(this.doProcessAddresses(),e?.body.getAsync(Office.CoercionType.Html,{},r=>{this.convertedBody=(0,Gd.convert)(r.value,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),this.datasource.extractContactData(this.convertedBody).subscribe(o=>{this.extractedContactData=o})}))}),this.waitForUpdateBM4ODataCommand().subscribe(i=>{i.selEm=this.selectedEmailAddress,i.documentTarget=this.primaryPointer,i.selDest=this.displayedDestination?.pointer,i.otherDoc=!this.firstDocumentDestination.checked&&!this.secondDocumentDestination.checked,"gi"===this.globals.system&&(i.officeDB=this.selectedOfficeDB)}),this.globals.infoShower=this}finishAppointmentProcessing(e){this.initSelectedDoc=e?.documentTarget??"",e.otherDoc&&(this.initSelectedDoc=""),e.selEm?(this.selectedEmailAddress=e.selEm,this.doSelectContactOverEmail(e.selEm,e.selDest)):this.selectedEmailAddress=this.doNotDocConst,this.doProcessAddresses(e)}recognizeCurrentItem(){let e=Office.context.mailbox.item;if(this.noMoreAutoSelect=!1,e)if(this.globals.incomingMail=!1,this.isAppointment="appointment"===e.itemType,this.isAppointment){this.whatItemIsThis="Meeting",this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync,this.translate.get("translationWait").subscribe(()=>{this.updateButtonTooltip=this.globals.languageConf.updateButtonTooltip,this.theOwnerText=this.globals.languageConfLocal.owner,this.theAssignedText=this.globals.languageConfLocal.assignedTo,this.primaryRecipients=this.globals.languageConfLocal.requiredAttendee,this.secondaryRecipients=this.globals.languageConfLocal.optionalAttendee});let i="1"===this.lsm.getValue(tn.sendInProcess);"function"==typeof e.saveAsync&&this.datasource.IsTaskpaneActive()&&!i?e.saveAsync(r=>{this.currentItemId=r.value,this.itemRecognized()}):(this.currentItemId=e.itemId,this.itemRecognized())}else"function"==typeof e.getAllInternetHeadersAsync?e.getAllInternetHeadersAsync(i=>{(i?.value?.length>0&&this.incomingRecognition.test(i.value)||e?.to[0].emailAddress===Office.context.mailbox.userProfile.emailAddress&&e.from.emailAddress.indexOf("noreply@microsoft.com")>0)&&(this.globals.incomingMail=!0),this.recognizeEmail(e)}):this.recognizeEmail(e);"gi"===this.globals.system?(this.showRecentlyUsed=!1,this.isAppointment&&(this.showDocumentButton=!1)):this.isAppointment&&(this.showDocumentButton=!1)}recognizeEmail(e){if(e){this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync,this.whatItemIsThis="Email",this.translate.get("translationWait").subscribe(()=>{this.theOwnerText=this.globals.languageConfLocal.sender,this.primaryRecipients="("+this.globals.languageConfLocal.to+") "+this.globals.languageConfLocal.recipients,this.secondaryRecipients="(Cc) "+this.globals.languageConfLocal.recipients}),this.showDocumentButton=this.isReadMode;let i="1"===this.lsm.getValue(tn.sendInProcess);this.isReadMode?(this.translate.get("translateWait").subscribe(()=>{this.documentButtonTooltip=this.globals.languageConfLocal.DocumentTheMail+" "+e?.subject}),this.currentEmailSubject=e.subject,this.currentItemId=e.itemId,this.itemRecognized()):e.saveAsync&&"function"==typeof e.saveAsync&&this.datasource.IsTaskpaneActive()&&!i&&e.saveAsync(r=>{this.currentItemId=r.value,this.itemRecognized()})}}detectChanges(){this.ref.detectChanges()}ngOnDestroy(){clearInterval(this.refreshInt);for(const e of this.subscriptions)e.unsubscribe()}doProcessAddresses(e){this.itRuns||(this.itRuns=!0,this.addressService.newProcessAddress().subscribe({next:i=>{this.ews.GetExtendedData(this.currentItemId).subscribe(r=>{if(i.fromEmail&&(this.theSender=new iC,this.theSender.display=i.fromName,this.theSender.email=i.fromEmail,this.theSender.fromEmail=!0),this.addresses=i.primary,this.theSender){let o=this.addresses.findIndex(s=>s.email.toLowerCase()===this.theSender.email.toLowerCase());o>=0&&this.addresses.splice(o,1)}this.addresses2nd=i.secondary,this.addressesAll=i.primary.concat(i.secondary),r&&r.docEm&&-1===this.addressesAll.findIndex(o=>o.email.toLowerCase()===r.docEm?.toLowerCase())&&(this.theAssignee=new iC,this.theAssignee.email=r.docEm,this.theAssignee.display=r.docEm,this.addressesAll.push(this.theAssignee)),0===this.addressesAll.length&&(r.selEm=this.doNotDocConst,r.docEm=void 0,r.selDest=void 0,this.ews.SaveExtendedData(this.currentItemId,r).subscribe(o=>{this.selectNothing()})),this.addressesAll.push(this.theSender),this.detectChanges(),this.itRuns=!1,this.findCRMAddress(0,e)})}}))}findCRMAddress(e,i){if(this.noMoreAutoSelect)return;if(i){let s=i.selEm;if(!s&&0===e){s=this.addressesAll[0].email,this.selectedContact.value=s;let a=i.otherDoc;(i=new Dm).selDest="INITIALIZE",i.otherDoc=a}if(s)return void this.fetchEmailDataFromCRM(s,e,!0,i)}if(this.globals.incomingMail){let s=this.addressesAll.find(a=>a.fromEmail);if(s)return void this.fetchEmailDataFromCRM(s.email,e,!1,i)}if(this.addressesAll.some(s=>s.email===this.selectedContact.value&&!s.fromEmail))return;if(this.addressesAll[e]&&this.addressesAll[e].fromEmail&&this.findCRMAddress(e+1),e+1>this.addressesAll.length){if(!(this.addressesAll.length>0))return void this.selectNothing();{let s=this.addressesAll[0];if(!s||s.fromEmail)return void this.selectNothing();this.selectedContact.value=s.email,this.selectedContactChanged(null,s.email)}return void this.detectChanges()}let r=this.addressesAll[e];r.fromEmail||this.fetchEmailDataFromCRM(r.email,e,!1,i)}fetchEmailDataFromCRM(e,i,r=!1,o){let s=new Yt;s=s.set("mail",e),this.connectionService.processAddress(s).subscribe(a=>{this.selectedAddressDetails=a,console.log("Addressdetails:",this.selectedAddressDetails),this.processAvatar(this.selectedAddressDetails.data[0]),this.definePossibleDestinations().subscribe(()=>{if(!(this.selectedAddressDetails&&this.selectedAddressDetails.data.length>0))return this.globals.incomingMail?(this.selectedContact.value=e,this.selectedContactChanged(null,e,null),void this.destinationChanged(o)):void(r||this.findCRMAddress(i+1));void 0===this.selectedContact.value||!this.addressesAll.some(l=>l.email===this.selectedContact.value)||this.noneSelected||e&&e!==this.selectedContact.value?(this.selectedContact.value=e,this.selectedContactChanged(null,e,this.selectedAddressDetails.data[0].pointer),this.destinationChanged(o)):(this.detectChanges(),this.destinationChanged(o))})})}processAvatar(e){let i=e?.additional?.imageURL,r=e?.additional?.base64image,o=e?.additional?.gender;this.currentAvatarURL=r||(i?this.imageService.getImgUrl(i):this.imageService.getLocalImgUrl(o,e?.isCompany))}selectNothing(){this.destinationsToDisplay=[],this.displayedDestination=null,this.destinationChanged(),this.selectedEmailAddress=this.doNotDocConst,this.noneSelected=!0,this.detectChanges()}selectedContactChanged(e,i="",r=null){if(this.initSelectedDoc="",this.unselectDestinations(),this.isAppointment&&this.selectedEmailAddress===this.doNotDocConst){let o=new Dm;return o.selEm=this.doNotDocConst,this.ews.SaveExtendedData(this.currentItemId,o).subscribe(s=>{}),this.selectNothing(),this.noMoreAutoSelect=!0,void this.globals.hideSpinner()}this.noMoreAutoSelect=!i&&!r&&this.selectedEmailAddress===this.doNotDocConst,this.officeDatabases=[],this.noneSelected=!1,i||(i=this.selectedContact.value),this.lsm.setValue(tn.selectedEmail,i),i&&i!==this.doNotDocConst?r?(this.setDestinationInfo(r),this.detectChanges()):this.doSelectContactOverEmail(i):(this.ews.GetExtendedData(this.currentItemId).subscribe(o=>{o.selEm=i,this.ews.SaveExtendedData(this.currentItemId,o).subscribe(s=>{})}),this.noneSelected=!0,this.displayedDestination=null,this.selectedAddressDetails={},this.destinationChanged(),this.detectChanges()),this.globals.hideSpinner()}doSelectContactOverEmail(e,i){let r=new Yt;r=r.set("mail",e),this.connectionService.processAddress(r).subscribe(o=>{this.selectedAddressDetails=o,this.definePossibleDestinations().subscribe(()=>{this.selectedAddressDetails&&this.selectedAddressDetails.data.length>0?i&&"appointment"===Office.context.mailbox.item?.itemType?(this.displayedDestination=this.destinationsToDisplay.find(s=>s.pointer===i),this.processAvatar(this.displayedDestination),this.ews.GetExtendedData(this.currentItemId).subscribe(s=>{this.destinationChanged(s),this.detectChanges()})):(this.setDestinationInfo(this.selectedAddressDetails.data[0].pointer),this.destinationChanged(),this.detectChanges()):(this.noneSelected=!0,this.ews.GetExtendedData(this.currentItemId).subscribe(s=>{s.selEm=e,s.selDest="",this.destinationChanged(s),this.detectChanges(),this.ews.SaveExtendedData(this.currentItemId,s).subscribe(a=>{})}))})})}getOfficeDBs(e,i=null){var r=this;return Ee(function*(){r.getDBConnections().subscribe(o=>{o&&r.extractOfficeDBs(e,o,i)})})()}extractOfficeDBs(e,i,r=null){var o=this;return Ee(function*(){try{let s=e;if(o.officeDatabases=[],o.selectedOfficeDB="",s)if(r===fl.activity){const a=o.extractDBFromPointer(s);i.hasOwnProperty(a)?o.extractOfficeDBsOfContact(s,i):(o.officeDatabases=[{db:a,alias:""}],o.selectedOfficeDB=o.officeDatabases[0].db,o.setOfficeDB(),o.detectChanges())}else o.extractOfficeDBsOfContact(s,i)}catch{o.translate.get("LC39396").subscribe(a=>{o.messageService.showError(a)})}})()}extractOfficeDBsOfContact(e,i){const o=i[this.extractDBFromPointer(e)].officeDBs;for(const s of o)this.officeDatabases.push({db:s,alias:i.GeOfficeAliases[s]});this.officeDatabases.length>=1&&(this.selectedOfficeDB=this.officeDatabases[0].db,this.setOfficeDB()),this.detectChanges(),this.officeDatabases.length<1&&this.translate.get("LC39396").subscribe(s=>{this.messageService.showError(s)})}extractDBFromPointer(e){return e.substring(e.lastIndexOf("|")+1)}subdestinationClick(e){this.initSelectedDoc="",this.unselectDestinations(),this.displayedDestination=this.destinationsToDisplay.find(i=>i.pointer===e),this.destinationChanged(),this.setDestinationInfo(e),this.detectChanges()}definePossibleDestinations(){return new b(e=>{let i=this.selectedAddressDetails.data.filter(r=>!r.isCompany).map(r=>r.companyPointer);this.destinationsToDisplay=this.selectedAddressDetails.data.filter(r=>!r.isCompany||0===i.length||!i.some(o=>o===r.pointer)),this.destinationsToDisplay.length>0?(!this.displayedDestination||!this.displayedDestination.pointer||0===this.displayedDestination.pointer.length||!this.destinationsToDisplay.some(r=>r.pointer===this.displayedDestination.pointer))&&(this.getDBConnections().subscribe(r=>{if(r)for(let o of this.destinationsToDisplay)if(o.pointer){let s=this.extractDBFromPointer(o.pointer);o.dbTitle=r[s].title}}),this.displayedDestination=this.destinationsToDisplay[0]):this.displayedDestination=null,this.globals.mainDestinationCheckboxes=this.destinationCheckboxes,this.displayedDestination?this.ews.GetExtendedData(this.currentItemId).subscribe(r=>{r.selEm=this.displayedDestination.additional.mail,r.documentTarget=this.displayedDestination.pointer,this.ews.SaveExtendedData(this.currentItemId,r).subscribe(o=>{e.next()})}):e.next()})}setDestinationInfo(e,i=null,r=!1){this.lsm.clear(),this.primaryPointer=e,this.documentDestinationCheckChanged(),Office.context.mailbox.item&&(this.lsm.setValue(tn.primaryTarget,e),this.ews.GetExtendedData(this.currentItemId).subscribe(s=>{s.selEm=this.selectedEmailAddress,s.documentTarget=e,s.otherDoc=r,this.displayedDestination&&(s.selDest=this.displayedDestination.pointer),this.ews.SaveExtendedData(this.currentItemId,s).subscribe(a=>{a.value.indexOf("NoError")<0&&this.messageService.showError(this.globals.languageConfLocal.errorWhileSavingCRMData),this.getOfficeDBs(e,i)})}))}setOfficeDB(){Office.context.mailbox.item&&(this.lsm.setValue(tn.officeDB,this.selectedOfficeDB),this.ews.GetExtendedData(this.currentItemId).subscribe(i=>{i.officeDB=this.selectedOfficeDB,this.ews.SaveExtendedData(this.currentItemId,i).subscribe(r=>{})}))}destinationSelectorClicked(e){if(e.checked){this.ews.GetExtendedData(this.currentItemId).subscribe(r=>{r.otherDoc=!1,this.ews.SaveExtendedData(this.currentItemId,r)}),this.officeDatabases=[];let i=this.destinationCheckboxes.toArray();this.globals.otherDestinationCheckboxes&&this.globals.otherDestinationCheckboxes.length>0&&(i=i.concat(this.globals.otherDestinationCheckboxes.toArray())),i.forEach(r=>{r.name!==e.source.name&&(r.checked=!1)}),this.setDestinationInfo(e.source.name)}else this.setDestinationInfo("");this.detectChanges()}selectFirst(){let e=new rR;e.source=this.firstDocumentDestination,e.checked=!0,this.firstDocumentDestination.checked=!0,this.destinationSelectorClicked(e)}tracker(e,i){return i.email}collapsibleClicked(e){let i=e.currentTarget;i.classList.toggle("active");let r=i.nextElementSibling;r.classList.contains("initOpened")&&(r.classList.remove("initOpened"),r.classList.add("content"),r.style.maxHeight=r.scrollHeight+"px"),r.style.maxHeight=r.style.maxHeight?null:r.scrollHeight+"px"}unselectDestinations(){this.secondDocumentDestination&&(this.secondDocumentDestination.checked=!1),this.firstDocumentDestination&&(this.firstDocumentDestination.checked=!1)}tabChanged(e){this.destinationChanged()}destinationChanged(e){let i=this.displayedDestination;(!e||"INITIALIZE"===e.selDest||e.otherDoc)&&this.firstDocumentDestination&&(this.unselectDestinations(),e?.otherDoc||(this.firstDocumentDestination.checked=!0)),this.processAvatar(i);for(const r of this.waitListService.accessWaitList("destinationChanged"))r.next(i)}waitForDestinationChange(){return new b(e=>{this.waitListService.addToWaitList("destinationChanged",e)})}waitForDocumentDestinationCheckChanged(){return new b(e=>{this.waitListService.addToWaitList("documentDestinationCheckChanged",e)})}documentDestinationCheckChanged(){let e=this.displayedDestination;for(const i of this.waitListService.accessWaitList("documentDestinationCheckChanged"))i.next(e)}itemRecognized(){if(this.isAppointment)this.datasource.readCRMDataForItem(this.currentItemId).subscribe(()=>{for(const e of this.waitListService.accessWaitList("itemRecognized"))e.next(this.currentItemId)});else for(const e of this.waitListService.accessWaitList("itemRecognized"))e.next(this.currentItemId)}waitForItemRecognition(){return new b(e=>{this.waitListService.addToWaitList("itemRecognized",e)})}documentItem(){let e=Office.context.mailbox.item;e&&this.isReadMode&&this.ews.GetExtendedData(this.currentItemId).subscribe({next:i=>{this.globals.hideSpinner(),i.documentedOnSend&&!this.globals.incomingMail?this.dialogService.createDialogWithType(il.alreadyDocumented).subscribe(r=>{r.afterClosed().subscribe(o=>{!0===o&&this.startDocumentation(e,i)})}):this.startDocumentation(e,i)},error:i=>{this.globals.hideSpinner()}})}startDocumentation(e,i){i.documentTarget&&(i.type="appointment"===e?.itemType?"appointment":"mail",this.datasource.documentItemWithUI(i))}recipientChanged(e){document.getElementById("recipientsEventTrigger").click()}recipientsEventTrigger(){this.doProcessAddresses()}getDBConnections(){return new b(e=>{this.datasource.fetchDBs("dbConnections",null).subscribe(i=>{e.next(i)})})}getHomepageUrl(e){return e&&e.length>0&&!e.toLowerCase().startsWith("http")?"http://"+e:e}quickCreate(){this.contactCreationOpened=this.isNew,this.displayedDestination&&this.displayedDestination.additional.fallback&&(this.extractedContactData.CompanyName=this.displayedDestination.name,this.extractedContactData.CompanyAddress=this.displayedDestination.additional.fullAddress,this.extractedContactData.CompanyPointer=this.displayedDestination.pointer),this.globals.activeWindow="contactCreation"}updateItem(){this.isUpdate=!0,this.updateBM4ODataCommand()}waitForUpdateBM4ODataCommand(){return new b(e=>{this.waitListService.addToWaitList("updateBM4OData",e)})}updateBM4ODataCommand(){this.ews.GetExtendedData(this.currentItemId).subscribe(e=>{for(const i of this.waitListService.accessWaitList("updateBM4OData"))i.next(e);this.ews.SaveExtendedData(this.currentItemId,e).subscribe(i=>{this.isUpdate=!1,this.messageService.showSuccess(this.globals.languageConfLocal.crmDataUpdated)})})}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(en),p(Rs),p(Xt),p(bo),p(Bt),p(Nn),p(Ji),p(Br),p(ane),p(Em),p(rl))},n.\u0275cmp=ze({type:n,selectors:[["app-info-shower"]],viewQuery:function(e,i){if(1&e&&(Oe(lne,5),Oe(cne,5),Oe(une,5),Oe(dne,5)),2&e){let r;me(r=ge())&&(i.selectedContact=r.first),me(r=ge())&&(i.firstDocumentDestination=r.first),me(r=ge())&&(i.secondDocumentDestination=r.first),me(r=ge())&&(i.destinationCheckboxes=r)}},decls:21,vars:16,consts:[["class","emailSubjectLine",3,"title",4,"ngIf"],["mat-flat-button","","color","documentBtn","style","width: 100%;margin-top: 4px; margin-bottom: 10px;",3,"disabled","title","click",4,"ngIf"],["mat-flat-button","","color","documentBtn","style","width: 100%;margin-top: 4px; margin-bottom: 10px;",3,"title","click",4,"ngIf"],["appearance","fill",1,"noLabel",2,"width","100%"],[1,"documentationContactSelector",3,"ngModel","formControl","selectionChange","ngModelChange"],["selectedContact",""],["class","doNotDocument","value","doNotDocument",4,"ngIf"],[3,"label",4,"ngIf"],["class","contactCardPart",4,"ngIf"],[4,"ngIf"],["hidden","","id","recipientsEventTrigger",3,"click"],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],[1,"emailSubjectLine",3,"title"],["mat-flat-button","","color","documentBtn",2,"width","100%","margin-top","4px","margin-bottom","10px",3,"disabled","title","click"],["mat-flat-button","","color","documentBtn",2,"width","100%","margin-top","4px","margin-bottom","10px",3,"title","click"],["value","doNotDocument",1,"doNotDocument"],[3,"label"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[3,"value"],[1,"displayInSelection"],[1,"emailInSelection"],[1,"contactCardPart"],[1,"destinationSelectorHolder"],["class","destinationImage",4,"ngIf"],["target","_blank",1,"addressLabel","importantText",3,"href","title"],[1,"destinationSelector",3,"name","checked","change"],["firstDocumentDestination","","docDestSelector",""],["target","_blank","class","addressLabel",3,"href","title",4,"ngIf"],["class","destinationSelector",3,"name","checked","change",4,"ngIf"],[1,"destinationImage"],["mat-icon-button","","matBadgePosition","before","matBadgeSize","small","matBadgeOverlap","true",3,"matBadge","matMenuTriggerFor"],[3,"src"],["menu","matMenu"],["mat-menu-item","",3,"value","ngClass","valueChange","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"value","ngClass","valueChange","click"],[3,"title"],["target","_blank",1,"addressLabel",3,"href","title"],["docDestSelector","","secondDocumentDestination",""],[1,"material-symbols-rounded"],[1,"webTelLink"],["target","_blank",1,"webTelLink",3,"href"],["mat-flat-button","","color","documentBtn",2,"width","100%","margin-top","1em","margin-bottom","1em",3,"disabled","title","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(V(0,hne,2,2,"div",0),V(1,pne,2,3,"button",1),V(2,fne,2,2,"button",2),g(3,"div")(4,"mat-form-field",3)(5,"mat-select",4,5),X("selectionChange",function(o){return i.selectedContactChanged(o)})("ngModelChange",function(o){return i.selectedEmailAddress=o}),g(7,"mat-select-trigger"),j(8),v(),V(9,mne,2,1,"mat-option",6),V(10,_ne,2,3,"mat-optgroup",7),V(11,yne,2,3,"mat-optgroup",7),V(12,bne,6,4,"mat-optgroup",7),V(13,Cne,6,4,"mat-optgroup",7),v()()(),V(14,kne,14,12,"div",8),V(15,Rne,3,1,"div",9),V(16,One,3,1,"div",9),V(17,Pne,3,3,"div",9),g(18,"button",10),X("click",function(){return i.recipientsEventTrigger()}),v(),xe(19,"br"),V(20,Nne,5,3,"mat-form-field",11)),2&e&&(y("ngIf",i.isReadMode&&!i.isAppointment),m(1),y("ngIf",i.showDocumentButton),m(1),y("ngIf",!i.isNew),m(3),y("ngModel",i.selectedEmailAddress)("formControl",i.selectedEmailDropdown),m(3),Qe(" ","doNotDocument"===i.selectedEmailDropdown.value?i.globals.languageConfLocal.doNotDocument:i.selectedEmailDropdown.value," "),m(1),y("ngIf",!i.isReadMode||i.isAppointment),m(1),y("ngIf",i.addresses&&i.addresses.length>0),m(1),y("ngIf",i.addresses2nd&&i.addresses2nd.length>0),m(1),y("ngIf",i.theSender),m(1),y("ngIf",i.theAssignee),m(1),y("ngIf",i.displayedDestination),m(1),y("ngIf",!i.isAppointment&&i.destinationsToDisplay&&0===(null==i.destinationsToDisplay?null:i.destinationsToDisplay.length)&&"doNotDocument"!==i.selectedEmailAddress&&i.addressesAll.length>1),m(1),y("ngIf",!i.isAppointment&&(i.noneSelected||i.destinationsToDisplay&&0===(null==i.destinationsToDisplay?null:i.destinationsToDisplay.length))&&!i.isReadMode),m(1),y("ngIf",!i.isAppointment&&(i.destinationsToDisplay&&0===(null==i.destinationsToDisplay?null:i.destinationsToDisplay.length)&&"doNotDocument"!==i.selectedEmailAddress&&i.addressesAll.length>1||i.displayedDestination&&i.displayedDestination.additional.fallback)),m(3),y("ngIf",null!=i.officeDatabases&&i.officeDatabases.length>1&&!i.isAppointment))},dependencies:[Fa,ci,_n,Fo,Wp,z1,Wd,$1,Ko,Gr,ua,KG,vo,x6,Nc,aee,nw],styles:['.emailSubjectLine{margin:auto;padding-top:30px;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.buttonP{float:left}.buttonN{float:right}.buttonContainer{width:100%;overflow:hidden}.pages{display:flex;width:400%;box-sizing:border-box}.page{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;transition:all .7s}.hidden{display:none}.grayDiv{background-color:#faf3f3}.mat-option{height:4em!important}.destinationSelectorHolder{display:grid;grid-template-columns:22% 71% 7%;padding-bottom:.5em}.contactCardPart{padding:5px;background-color:#0000000a;border-radius:0 0 5px 5px;border:1px solid #e5e5e5}.material-symbols-rounded{font-variation-settings:"FILL" 0,"wght" 300,"GRAD" -25,"opsz" 18}.mat-checkbox-background,.mat-checkbox-frame{border-radius:50%!important}.mat-checkbox .mat-checkbox-frame,.mat-checkbox-checked .mat-checkbox-background{transform:scale(1.1)}.mat-checkbox-checkmark{width:10px!important;top:3px!important;left:3px!important}.destinationImage{grid-row:span 2}.destinationImage>button>* img,.destinationImage>img,.destinationImage>button{object-fit:cover;border-radius:50%;height:55px;width:55px}button{background-color:transparent}.mat-badge-content.mat-badge-active{top:.05em!important;left:.1em!important}.addressLabel{font-weight:600;margin-right:2px;max-width:95%;line-height:normal;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}table>tbody>tr>td{padding:0!important}.noLabel>* .mat-form-field-flex{padding-top:0!important}.mat-form-field.noLabel{padding-top:3px}.mat-form-field.noLabel .mat-form-field-wrapper{padding-bottom:0}.mat-form-field.noLabel .mat-form-field-underline{bottom:0}.mat-optgroup-label{background-color:#f0f0f0}.displayInSelection{height:1.1em}.emailInSelection{color:#616161;font-size:smaller}.webTelLink{padding-left:5px;vertical-align:top}.doNotDocument{color:#f08080}.selectedDestination{background-color:#0000001f}mat-form-field.noLabel>div{border-radius:5px;border:1px solid #e5e5e5;border-bottom:none}.mat-documentBtn{background-color:#f28e00;color:#f0f0f0}.databaseSearchSelect{width:100%}.emailSubjectLine{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap;padding-bottom:5px;font-size:medium;padding-top:5px}\n'],encapsulation:2}),n})();const Bne=["docDestSelector"];function Hne(n,t){if(1&n){const e=je();g(0,"mat-chip",11),X("removed",function(){const o=oe(e).$implicit;return se(x(3).removeDocumentDestination(o))}),xe(1,"img",12),g(2,"div",13),j(3),v(),g(4,"button",14)(5,"span",15),j(6,"cancel"),v()()()}if(2&n){const e=t.$implicit,i=x(3);y("removable",!0)("title",e.name),m(1),y("src",i.datasource.getImageSrc(e.image),Zn),m(2),we(e.name)}}function Vne(n,t){1&n&&xe(0,"input",16,17),2&n&&(x(),y("matChipInputFor",sn(4)))}function jne(n,t){if(1&n&&(g(0,"mat-form-field",5)(1,"mat-label",6),j(2),v(),g(3,"mat-chip-list",7,8),V(5,Hne,7,4,"mat-chip",9),V(6,Vne,2,1,"input",10),v()()),2&n){const e=x(2);m(2),we(e.getDocumentedLabel()),m(3),y("ngForOf",e.documentsAsDestinations),m(1),y("ngIf",e.documentsAsDestinations&&e.documentsAsDestinations.length>0)}}function Une(n,t){if(1&n&&(g(0,"mat-option",18),j(1),v()),2&n){const e=t.$implicit;y("value",e.alias),m(1),Qe(" ",e.name," ")}}function qne(n,t){if(1&n&&(g(0,"div",28),j(1),v()),2&n){const e=x().$implicit;y("title",e.lineTwoOverride),m(1),we(e.lineTwoOverride)}}function zne(n,t){if(1&n&&(g(0,"div",28),j(1),v()),2&n){const e=x().$implicit,i=x(3);y("title",i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US")),m(1),we(i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US"))}}function Gne(n,t){if(1&n){const e=je();g(0,"div",21),xe(1,"img",22),g(2,"a",23)(3,"div")(4,"div",24),j(5),v(),V(6,qne,2,2,"div",25),V(7,zne,2,2,"div",25),v()(),g(8,"mat-checkbox",26,27),X("change",function(r){const s=oe(e).$implicit;return se(x(3).destinationActivitySelectorClicked(r,s.subject,s.viewIconUrl))}),v()()}if(2&n){const e=t.$implicit,i=x(3);m(1),y("src",e.viewIconUrl,Zn),m(1),Ot("href","gi"===i.globals.system?i.createWebintLink(e.pointer):e.url,Zn),m(2),y("title",e.subject),m(1),we(e.subject),m(1),y("ngIf",e.lineTwoOverride&&null!=e.lineTwoOverride),m(1),y("ngIf",!e.lineTwoOverride||null==e.lineTwoOverride),m(1),y("name",e.pointer)("checked",e.pointer===i.initSelectedDoc)}}function Wne(n,t){if(1&n&&(g(0,"div",29),j(1),v()),2&n){const e=x(3);m(1),we(e.globals.languageConfLocal.noActivities)}}function $ne(n,t){if(1&n&&(g(0,"div"),V(1,Gne,10,8,"div",19),V(2,Wne,2,1,"div",20),v()),2&n){const e=x(2);m(1),y("ngForOf",e.activities),m(1),y("ngIf",0===e.activities.length)}}function Kne(n,t){if(1&n){const e=je();g(0,"div"),V(1,jne,7,3,"mat-form-field",1),g(2,"mat-form-field",2),xe(3,"mat-label"),g(4,"mat-select",3),X("valueChange",function(r){return oe(e),se(x().selectedType=r)})("selectionChange",function(){return oe(e),se(x().activityTypeChanged())}),V(5,Une,2,2,"mat-option",4),v()(),V(6,$ne,3,2,"div",0),v()}if(2&n){const e=x();m(1),y("ngIf",e.documentsAsDestinations&&e.documentsAsDestinations.length>0),m(3),y("value",e.selectedType),m(1),y("ngForOf",e.types),m(1),y("ngIf",e.activities)}}let Yne=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.globals=e,this.translate=i,this.mailLoadedService=r,this.webintLinkService=o,this.ref=s,this.messageService=a,this.ews=l,this.datasource=c,this.documentsAsDestinations=[],this.displayedColumns=["subject"],this.activity={},this.types=[],this.selectedType="0",this.activityDocImage={background:"no-repeat url(assets/images/icons_business_mail.png)"},this.selectArrow={background:"no-repeat url(assets/images/DropDownArrowOffsetRight.png) right"},this.headerText=""}ngOnInit(){this.globals.infoShower.waitForDestinationChange().subscribe({next:e=>{this.datasource.fetchActivityTypes(e?.pointer).subscribe(i=>{this.types=i,this.ews.GetExtendedData(this.globals.infoShower.currentItemId).subscribe(r=>{this.selectedType=r?.docTyp,this.selectedType||(this.selectedType="gi"===this.globals.system?i[0].alias:i.find(s=>s.name.startsWith("Vorg")||s.name.startsWith("Activ"))?.alias??i[0].alias),"appointment"===Office.context.mailbox.item?.itemType&&r.otherDoc&&(this.initSelectedDoc=r?.documentTarget,this.datasource.getDocumentsChips([r.documentTarget]).subscribe(s=>{this.documentsAsDestinations=[],s.forEach(a=>{this.documentsAsDestinations.push({name:a.name,image:a.image,fdMe:a.fdMe})})})),this.loadRecentDocuments(e)})})}}),this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:()=>{this.documentsAsDestinations=[],this.detectChanges()}}),this.globals.addressActivities=this}loadRecentDocuments(e){if(null===e)return this.activities=null,void this.detectChanges();this.currentAddress=e,this.datasource.fetchActivities(this.currentAddress).subscribe({next:i=>{if(console.log("Activities:",i),i.selectedType)this.selectedType=i.selectedType;else if(i.displayType){let r=this.types.find(o=>o.alias===i.displayType.toString());r&&(this.selectedType=r.alias)}if(i?.activities?.length>=0){if(i?.activities[0]?.viewIcon)for(let r of i.activities)r.viewIconUrl=this.datasource.getImageSrc(r.viewIcon);this.activities=i.activities}this.detectChanges(),this.globals.otherDestinationCheckboxes=this.destinationCheckboxes},error:i=>{this.messageService.showError(i)}})}ngOnDestroy(){this.mailLoadedService.unsubscribeAll(this.constructor.name)}detectChanges(){this.ref.detectChanges()}refresh(){this.loadRecentDocuments(this.currentAddress)}createWebintLink(e){return this.webintLinkService.convertToLink(e)}formatDate(e,i,r){return hT(e,"dd.MM.YYYY HH:mm","en_US")}destinationActivitySelectorClicked(e,i,r){e.checked?(this.getAllCheckboxes().forEach(o=>{o.name!==e.source.name&&(o.checked=!1)}),this.globals.infoShower.setDestinationInfo(e.source.name,fl.activity,!0),this.documentsAsDestinations=[],this.documentsAsDestinations.push({name:i,image:r,fdMe:e.source.name})):(this.documentsAsDestinations=[],this.globals.infoShower.setDestinationInfo("",fl.activity)),this.detectChanges()}getAllCheckboxes(){let e=this.destinationCheckboxes.toArray();return this.globals.mainDestinationCheckboxes?.length>0&&(e=e.concat(this.globals.mainDestinationCheckboxes.toArray())),e}activityTypeChanged(){this.ews.GetExtendedData(this.globals.infoShower.currentItemId).subscribe(e=>{e.docTyp=this.selectedType,this.ews.SaveExtendedData(this.globals.infoShower.currentItemId,e).subscribe(i=>{})}),this.datasource.changeActivityListType(this.selectedType).subscribe(()=>{this.loadRecentDocuments(this.currentAddress)})}removeDocumentDestination(e){this.documentsAsDestinations=[],this.getAllCheckboxes().forEach(i=>{i.checked=!1}),this.globals.infoShower.setDestinationInfo("",fl.activity),this.globals.infoShower.selectFirst()}getDocumentedLabel(){return this.globals.infoShower.isAppointment?this.globals.languageConfLocal.DocumentedTo:this.globals.languageConfLocal.DocumentTo}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(Xt),p(Yc),p(Wo),p(Bt),p(en),p(rl),p(bo))},n.\u0275cmp=ze({type:n,selectors:[["app-address-activities"]],viewQuery:function(e,i){if(1&e&&Oe(Bne,5),2&e){let r;me(r=ge())&&(i.destinationCheckboxes=r)}},decls:1,vars:1,consts:[[4,"ngIf"],["style","width:100%;","id","selectedDocumentAsDestination",4,"ngIf"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["id","selectedDocumentAsDestination",2,"width","100%"],[2,"font-size","small"],[1,"projectsChipsHolder"],["chipsDocumentAsDestination",""],[3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","","readonly","","class","projectChipsNoInput",3,"matChipInputFor",4,"ngIf"],[3,"removable","title","removed"],[1,"chipImage",3,"src"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"],["matInput","","readonly","",1,"projectChipsNoInput",3,"matChipInputFor"],["documentAsDestinationInputRO",""],[3,"value"],["class","activityItemListEntry itemListEntry",4,"ngFor","ngForOf"],["class","listEntryItemMainLine",4,"ngIf"],[1,"activityItemListEntry","itemListEntry"],["onerror","this.src='assets/images/vwicn001.png';",3,"src"],["target","_blank",3,"href"],[1,"listEntryItemMainLine",3,"title"],["class","listEntryItemSubLine",3,"title",4,"ngIf"],[1,"destinationSelector","activityDestinationSelector","spanTwoRows",3,"name","checked","change"],["docDestSelector",""],[1,"listEntryItemSubLine",3,"title"],[1,"listEntryItemMainLine"]],template:function(e,i){1&e&&V(0,Kne,7,4,"div",0),2&e&&y("ngIf",!i.globals.infoShower.noneSelected&&i.globals.infoShower.destinationsToDisplay&&i.globals.infoShower.destinationsToDisplay.length>0)},dependencies:[ci,_n,Ko,Gr,ua,vo,Yo,nw,$m,Vc,Km,Wm],styles:["table[_ngcontent-%COMP%]{width:100%;box-shadow:none}.mat-row[_ngcontent-%COMP%]:hover .mat-cell[_ngcontent-%COMP%]{background-color:#d3d3d3}.uncheckedToggle[_ngcontent-%COMP%]{display:none}.activityItemListEntry[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:20px;width:20px}.activityItemListEntry[_ngcontent-%COMP%] .activityDestinationSelector[_ngcontent-%COMP%]{margin-left:auto;padding-right:8px;align-self:center;visibility:hidden;display:block!important}.activityItemListEntry[_ngcontent-%COMP%] .activityDestinationSelector.mat-checkbox-checked[_ngcontent-%COMP%], .activityItemListEntry[_ngcontent-%COMP%]:hover .activityDestinationSelector[_ngcontent-%COMP%]{visibility:visible}.spanTwoRows[_ngcontent-%COMP%]{grid-row:span 2}.activityIcon[_ngcontent-%COMP%]{height:18px;width:18px;margin-top:2px}tr.mat-row[_ngcontent-%COMP%]{height:10px!important}.regionHeader[_ngcontent-%COMP%]{font-size:small;border-bottom:1px solid #949494;font-family:Roboto,Helvetica Neue,sans-serif;color:#0000008a}"]}),n})(),Qne=(()=>{class n{constructor(e,i,r,o){this.datasource=e,this.lsm=i,this.ews=r,this.messageService=o}ngOnInit(){}documentItem(e){this.lsm.setValue(tn.sendInProcess,"1"),this.datasource.IsTaskpaneActive()&&!this.datasource.doNotDocumentSelected()?Office.context.mailbox.item?this.datasource.retrieveItemIdForItem().subscribe({next:r=>{this.ews.GetExtendedData(r).subscribe(o=>{o.documentTarget?(o.type="mail",this.datasource.documentItemWithoutUI(o).subscribe({next:s=>{if(void 0!==s&&200!==s?.status&&!0!==s)return this.messageService.showMessageAsync(s.statusText,lr.error),this.lsm.setValue(tn.sendInProcess,"0"),void e.completed({allowEvent:!1,errorMessage:s.statusText});this.ews.GetExtendedData(r).subscribe(a=>{a.documentedOnSend=!0,this.ews.SaveExtendedData(r,a).subscribe(l=>{this.lsm.setValue(tn.sendInProcess,"0"),e.completed({allowEvent:!0})})})},error:s=>{this.lsm.setValue(tn.sendInProcess,"0"),e.completed({allowEvent:!1,errorMessage:s})}})):(this.lsm.setValue(tn.sendInProcess,"0"),e.completed({allowEvent:!0}))})}}):(this.lsm.setValue(tn.sendInProcess,"0"),e.completed({allowEvent:!0})):e.completed({allowEvent:!0})}sendEventTrigger(){let e=window.theEvent;this.documentItem(e)}}return n.\u0275fac=function(e){return new(e||n)(p(bo),p(Br),p(rl),p(en))},n.\u0275cmp=ze({type:n,selectors:[["app-item-documentor"]],decls:1,vars:0,consts:[["hidden","","id","sendEventTrigger",3,"click"]],template:function(e,i){1&e&&(g(0,"button",0),X("click",function(){return i.sendEventTrigger()}),v())}}),n})();class yw{}const Xne=["projectSelectorPanel"],Zne=["searchProjectsInput"],Jne=["destinationProjectsInputRO"],KR=["destinationProjectsInput"],YR=["searchProjectPhasesInput"],eie=["allProjectsButton"];function tie(n,t){if(1&n){const e=je();g(0,"mat-chip",15),X("removed",function(){const o=oe(e).$implicit;return se(x(2).removeProject(o))}),xe(1,"img",16),g(2,"div",17),j(3),v(),g(4,"button",18)(5,"span",19),j(6,"cancel"),v()()()}if(2&n){const e=t.$implicit,i=x(2);y("removable",!0)("title",e.name),m(1),y("src",i.datasource.getImageSrc(e.image),Zn),m(2),we(e.name)}}function nie(n,t){if(1&n){const e=je();g(0,"input",20,21),X("focus",function(r){return oe(e),se(x(2).showProjectSelector(r))}),v()}2&n&&(x(),y("matChipInputFor",sn(5)))}function iie(n,t){if(1&n){const e=je();g(0,"input",22,23),X("input",function(r){return oe(e),se(x(2).searchParticipatingProjects(r))}),v()}if(2&n){x();const e=sn(5),i=sn(10),r=x();y("matChipInputFor",e)("formControl",r.destinationProjects)("matAutocomplete",i)}}function rie(n,t){if(1&n&&(g(0,"mat-option",24),xe(1,"img",25),g(2,"div",26)(3,"div",27),j(4),v(),g(5,"div",28),j(6),v(),g(7,"div",28),j(8),v()()()),2&n){const e=t.$implicit,i=x(2);y("value",e),ot("data-fdme",e.fdMe)("data-image",e.image),m(1),y("src",i.datasource.getImageSrc(e.image),Zn),m(2),Ot("title",i.parseHtmlEntities(e.lineOne)),m(1),Qe(" ",i.parseHtmlEntities(e.lineOne)," "),m(1),Ot("title",i.parseHtmlEntities(e.lineTwo)),m(1),Qe(" ",i.parseHtmlEntities(e.lineTwo)," "),m(1),Ot("title",i.parseHtmlEntities(e.lineThree)),m(1),Qe(" ",i.parseHtmlEntities(e.lineThree)," ")}}function oie(n,t){if(1&n){const e=je();g(0,"mat-chip",15),X("removed",function(){const o=oe(e).$implicit;return se(x(3).removeProjectPhase(o))}),xe(1,"img",16),g(2,"div",17),j(3),v(),g(4,"button",18)(5,"span",19),j(6,"cancel"),v()()()}if(2&n){const e=t.$implicit,i=x(3);y("removable",!0)("title",e.name),m(1),y("src",i.datasource.getImageSrc(e.image),Zn),m(2),we(e.name)}}function sie(n,t){if(1&n){const e=je();g(0,"input",22,30),X("input",function(r){return oe(e),se(x(3).searchProjectPhases(r))}),v()}if(2&n){x();const e=sn(4),i=sn(8),r=x(2);y("matChipInputFor",e)("formControl",r.projectPhasesControl)("matAutocomplete",i)}}function aie(n,t){if(1&n&&(g(0,"mat-option",24),xe(1,"img",25),g(2,"div",26)(3,"div",27),j(4),v(),g(5,"div",28),j(6),v(),g(7,"div",28),j(8),v()()()),2&n){const e=t.$implicit,i=x(3);y("value",e),ot("data-fdme",e.fdMe)("data-image",e.image),m(1),y("src",i.datasource.getImageSrc(e.image),Zn),m(2),Ot("title",i.parseHtmlEntities(e.lineOne)),m(1),Qe(" ",i.parseHtmlEntities(e.lineOne)," "),m(1),Ot("title",i.parseHtmlEntities(e.lineTwo)),m(1),Qe(" ",i.parseHtmlEntities(e.lineTwo)," "),m(1),Ot("title",i.parseHtmlEntities(e.lineThree)),m(1),Qe(" ",i.parseHtmlEntities(e.lineThree)," ")}}function lie(n,t){if(1&n){const e=je();g(0,"mat-form-field",29)(1,"mat-label",2),j(2),v(),g(3,"mat-chip-list",3,4),V(5,oie,7,4,"mat-chip",5),V(6,sie,2,3,"input",7),g(7,"mat-autocomplete",8,9),X("optionSelected",function(r){return oe(e),se(x(2).autoProjectPhaseSelected(r))})("opened",function(){return oe(e),se(x(2).autocompleteOpened("phasesAuto"))}),V(9,aie,9,10,"mat-option",10),v()()()}if(2&n){const e=x(2);m(2),Oo("",e.globals.languageConfLocal.selectProjectPhases," (",e.projectPhaseResultArray.length,")"),m(3),y("ngForOf",e.projectPhases),m(1),y("ngIf",e.projectPhaseResultArray.length>0),m(3),y("ngForOf",e.filteredProjectPhases)}}function cie(n,t){if(1&n&&(g(0,"mat-option",50),j(1),v()),2&n){const e=t.$implicit;y("value",e.value),m(1),we(e.viewValue)}}function uie(n,t){if(1&n){const e=je();g(0,"mat-form-field",47)(1,"mat-label"),j(2),v(),g(3,"mat-select",48),X("valueChange",function(r){return oe(e),se(x(3).selectedDB=r)})("selectionChange",function(){return oe(e),se(x(3).getProjects(!1))}),V(4,cie,2,2,"mat-option",49),v()()}if(2&n){const e=x(3);m(2),we(e.globals.languageConfLocal.projectDatabase),m(1),y("value",e.selectedDB),m(1),y("ngForOf",e.databases)}}function die(n,t){if(1&n&&(g(0,"div",51),j(1),v()),2&n){const e=x(3);m(1),Qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function hie(n,t){if(1&n){const e=je();g(0,"div",52),X("click",function(r){return oe(e),se(x(3).dblClickedElement(r))}),xe(1,"img",25),g(2,"div",53)(3,"span",27),j(4),v(),xe(5,"br"),g(6,"span",28),j(7),v(),xe(8,"br"),g(9,"span",28),j(10),v(),xe(11,"br"),v()()}if(2&n){const e=t.$implicit,i=t.index,r=x(3);Ot("title",e.lineOne),ot("data-order",i+1)("data-fdme",e.fdMe)("data-displayname",r.parseHtmlEntities(e.lineOne))("data-image",e.image),m(1),y("src",r.datasource.getImageSrc(e.image),Zn),m(2),Ot("title",r.parseHtmlEntities(e.lineOne)),m(1),we(r.parseHtmlEntities(e.lineOne)),m(2),Ot("title",r.parseHtmlEntities(e.lineTwo)),m(1),we(r.parseHtmlEntities(e.lineTwo)),m(2),Ot("title",r.parseHtmlEntities(e.lineThree)),m(1),we(r.parseHtmlEntities(e.lineThree))}}function pie(n,t){if(1&n){const e=je();g(0,"mat-chip",15),X("removed",function(){const o=oe(e).$implicit;return se(x(3).removeProject(o))}),xe(1,"img",16),g(2,"div",17),j(3),v(),g(4,"button",18)(5,"span",19),j(6,"cancel"),v()()()}if(2&n){const e=t.$implicit,i=x(3);y("removable",!0)("title",e.name),ot("data-pointer",e.pointer),m(1),y("src",i.datasource.getImageSrc(e.image),Zn),m(2),we(e.name)}}function fie(n,t){if(1&n){const e=je();g(0,"mat-card",31,32),xe(2,"br"),g(3,"mat-card-title",33),j(4),g(5,"span",34),X("click",function(){return oe(e),se(x(2).hideProjectSelector())}),j(6,"check_circle"),v()(),g(7,"mat-card-content",35)(8,"mat-form-field",36)(9,"mat-label"),j(10),v(),g(11,"input",37,38),X("input",function(r){return oe(e),se(x(2).textChanged(r))}),v()(),V(13,uie,5,3,"mat-form-field",39),xe(14,"br"),g(15,"div",40),V(16,die,2,1,"div",41),V(17,hie,12,12,"div",42),v()(),g(18,"mat-card-footer",43),xe(19,"mat-divider",44),g(20,"mat-chip-list",3,45),V(22,pie,7,5,"mat-chip",5),xe(23,"input",46),v()()()}if(2&n){const e=sn(21),i=x(2);m(4),Qe(" ",i.globals.languageConfLocal.projectSelection," "),m(6),we(i.globals.languageConfLocal.searchProjectsInCRM),m(3),y("ngIf",null!=i.databases&&i.databases.length>0),m(3),y("ngIf",i.showRecentlyUsed),m(1),y("ngForOf",i.searchResultsArray),m(5),y("ngForOf",i.projects),m(1),y("matChipInputFor",e)}}function mie(n,t){if(1&n){const e=je();g(0,"div")(1,"mat-form-field",1),X("click",function(r){return oe(e),se(x().showProjectSelector(r))}),g(2,"mat-label",2),j(3),v(),g(4,"mat-chip-list",3,4),V(6,tie,7,4,"mat-chip",5),V(7,nie,2,1,"input",6),V(8,iie,2,3,"input",7),g(9,"mat-autocomplete",8,9),X("optionSelected",function(r){return oe(e),se(x().autoProjectSelected(r))})("opened",function(){return oe(e),se(x().autocompleteOpened("projectAuto"))}),V(11,rie,9,10,"mat-option",10),v(),g(12,"span",11,12),X("click",function(r){return oe(e),se(x().showProjectSelector(r))}),j(14,"open_in_new"),v()()(),V(15,lie,10,5,"mat-form-field",13),V(16,fie,24,7,"mat-card",14),v()}if(2&n){const e=x();m(3),we(e.getProjectsLabel()),m(3),y("ngForOf",e.projects),m(1),y("ngIf",0===e.destinationDirectProjectsCount),m(1),y("ngIf",e.destinationDirectProjectsCount>0),m(3),y("ngForOf",e.filteredParticipatedResultsArray),m(1),y("title",e.globals.languageConfLocal.selectProjectsCRM),m(3),y("ngIf",e.projectPhaseResultArray.length>0),m(1),y("ngIf",e.projectSelectorPanelVisible)}}let gie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this.globals=e,this.mailLoadedService=i,this.ref=r,this.snack=o,this.translate=s,this.datasource=a,this.zone=l,this.lsm=c,this.dps=u,this.ews=d,this.projectSelectorPanelVisible=!1,this.searchTextInput="",this.searchResultsArray=[],this.projectPhaseResultArray=[],this.projectPhaseSearchResultArray=[],this.projectPhaseFilter="",this.participatedResultsArray=[],this.databases=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.destinationProjects=new Yu(""),this.projectPhasesControl=new Yu(""),this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.projects=[];let e=Office.context.mailbox.item;e&&(this.isCompose=null==e.itemId,this.isAppointment="appointment"===e.itemType,this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync),"gi"===this.globals.system&&(this.showRecentlyUsed=!1),this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:i=>{this.projectPhases=[],this.projectPhaseResultArray=[],this.getProjects(!0)}}),this.getProjectDBs(this.globals.infoShower.primaryPointer),this.dps.addThingToClose("projectAuto",()=>{this.projectsAutocompleteTrigger?.closePanel()}),this.dps.addThingToClose("phasesAuto",()=>{this.phasesAutocompleteTrigger?.closePanel()}),this.dps.addThingToClose("projectDialog",()=>{this.projectSelectorPanelVisible=!1,this.searchValue=""}),this.globals.infoShower.waitForItemRecognition().subscribe(i=>{"appointment"===e?.itemType&&this.ews.GetExtendedData(i).subscribe(r=>{r&&r.selectedProjects&&(this.projects=JSON.parse(r.selectedProjects)),this.projects=this.projects.filter(o=>null!=o)})}),this.globals.infoShower.waitForUpdateBM4ODataCommand().subscribe(i=>{i.selectedProjects=JSON.stringify(this.projects.concat(this.projectPhases))})}ngOnDestroy(){this.mailLoadedService.unsubscribeAll(this.constructor.name)}detectChanges(){this.ref.detectChanges()}showProjectSelector(e){e.stopPropagation(),"mainInputProjectSelector"!==e.currentTarget.id&&(this.projectSelectorPanelVisible=!0,this.getProjects(!1),setTimeout(()=>{this.searchProjectsInput.nativeElement.focus()},0),this.dps.closeAll("projectDialog"))}hideProjectSelector(){this.projectSelectorPanelVisible=!1,this.searchValue=""}removeProject(e){this.projects.splice(this.projects.findIndex(i=>i.pointer===e.pointer),1),this.projectChipsChanged()}removeProjectPhase(e){this.projectPhases.splice(this.projects.findIndex(i=>i.pointer===e.pointer),1),this.projectPhaseChipsChanged()}projectChipsChanged(){if(Office.context.mailbox.item){let i=JSON.stringify(this.projects.concat(this.projectPhases)),r=this.globals.infoShower.currentItemId;this.lsm.setValue(tn.selectedProjects,i),this.ews.GetExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.ews.SaveExtendedData(r,o).subscribe(s=>{})})}if(this.projects.length>0){this.destinationProjectsInput?.nativeElement.classList.add("hasProjects"),this.destinationProjectsInputRO?.nativeElement.classList.add("hasProjects"),this.allProjectsButton?.nativeElement.classList.add("hasProjects");let i=this.projects.map(r=>r.pointer);this.datasource.getPhasesOfPointer(i).subscribe(r=>{this.projectPhaseResultArray=r,console.log("Projectphases:",this.projectPhaseResultArray)})}else this.destinationProjectsInput?.nativeElement.classList.remove("hasProjects"),this.destinationProjectsInputRO?.nativeElement.classList.remove("hasProjects"),this.allProjectsButton?.nativeElement.classList.remove("hasProjects")}projectPhaseChipsChanged(){if(Office.context.mailbox.item){let i=JSON.stringify(this.projects.concat(this.projectPhases)),r=this.globals.infoShower.currentItemId;this.lsm.setValue(tn.selectedProjects,i),this.ews.GetExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.ews.SaveExtendedData(r,o).subscribe(s=>{})})}}textChanged(e){let i=e.target.value;"ba"===this.globals.system&&(this.showRecentlyUsed=0===i.length),i.length>0&&!this.searchPanelExpanded?this.searchPanelExpanded=!0:0===i.length&&this.searchPanelExpanded&&(this.searchPanelExpanded=!1),this.searchValue=i,this.getProjects(!1)}searchParticipatingProjects(e){this.participatingProjectsFilter=e.target.value}searchProjectPhases(e){this.projectPhaseFilter=e.target.value}dblClickedElement(e){let i=e.currentTarget;if(!this.projects.some(r=>r.pointer===i.dataset.fdme)){let r=new yw;r.name=i.dataset.displayname,r.pointer=i.dataset.fdme,r.image=i.dataset.image,this.datasource.addToRecentlyUsed(i.dataset.fdme),this.projects.push(r),setTimeout(()=>{const o=document.querySelector(".allProjectsFooter .mat-chip-list-wrapper");o&&(o.scrollTop=o.scrollHeight),this.blinkChip(r.pointer)},10),this.projectChipsChanged()}}blinkChip(e){document.querySelector('mat-chip[data-pointer="'+e+'"]')?.classList.add("fade-it")}getProjectDBs(e){const i={};e?i.pointer=e:i.onlyOptions=!0;const r=new Yt({fromObject:i});this.datasource.fetchDBs("projects",r).subscribe(o=>{console.log("ProjectDBs:",o),o&&this.generateSelectionArrProjectDbs(o.databases,e)})}generateSelectionArrProjectDbs(e,i){for(const s of e)this.databases.push({value:s.alias,viewValue:s.title});console.log("this.databases:",this.databases),this.databases.length>0&&(this.selectedDB=this.databases[0].value)}getProjects(e){e&&!this.globals.infoShower.primaryPointer||this.datasource.searchProjects(this.selectedDB,e?this.globals.infoShower.primaryPointer:"",this.searchValue).subscribe({next:i=>{i.MessageDetail&&i.MessageDetail.indexOf("BM4OProjects")>0?this.globals.noProjects=!0:(this.searchResultsArray=this.datasource.handleSearchResult(i,da.projects,{participantProjects:e}),e&&(this.destinationDirectProjectsCount=this.searchResultsArray.length,this.participatedResultsArray=this.datasource.handleSearchResult(i,da.projects,{participantProjects:e}),this.zone.run(()=>{setTimeout(()=>{this.showProjectSnack()},0)})),this.detectChanges(),console.log("ProjectSearchResults:",this.searchResultsArray))}})}showProjectSnack(){this.globals.infoShower.isReadMode||(this.projectSnack?.dismiss(),1===this.destinationDirectProjectsCount?(this.projectSnack=this.snack.open(this.globals.languageConfLocal.selectedAddressHasAssignedProject,this.globals.languageConfLocal.LC73057,{duration:7500}),this.projectSnack.afterOpened().subscribe(()=>{this.detectChanges()}),this.projectSnack.onAction().subscribe(()=>{this.projects=[],this.addOneProjectChip(this.searchResultsArray[0])})):this.destinationDirectProjectsCount>1&&(this.projectSnack=this.snack.open(this.globals.languageConfLocal.selectedAddressHasAssignedProjects,"OK",{duration:9500}),this.projectSnack.afterOpened().subscribe(()=>{this.detectChanges()}),this.projectSnack.onAction().subscribe(()=>{setTimeout(()=>{this.projectsAutocompleteTrigger?.openPanel(),this.destinationProjectsInput.nativeElement.focus()},10)})))}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}autoProjectSelected(e){this.addOneProjectChip(e.option.value),this.participatingProjectsFilter="",this.destinationProjectsInput.nativeElement.value=""}autoProjectPhaseSelected(e){this.addOneProjectPhaseChip(e.option.value),this.projectPhaseFilter=""}addOneProjectChip(e){let i=new yw;i.name=e.lineOne,i.pointer=e.fdMe,i.image=e.image,this.datasource.addToRecentlyUsed(e.fdme),this.projects.push(i),this.projectChipsChanged()}addOneProjectPhaseChip(e){let i=new yw;i.name=e.lineOne,i.pointer=e.fdMe,i.image=e.image,this.datasource.addToRecentlyUsed(e.fdme),this.projectPhases.push(i);let r=this.projects.findIndex(o=>o.pointer===e.parentPointer);-1!==r&&this.projects.splice(r,1),this.projectPhaseChipsChanged()}get filteredParticipatedResultsArray(){let e=this.participatingProjectsFilter?.toLowerCase();return this.participatedResultsArray.filter(i=>!this.projects.map(r=>r.pointer).some(r=>r===i.fdMe)&&(!e||i.lineOne.toLowerCase().includes(e)||i.lineTwo?.toLowerCase().includes(e)||i.lineThree?.toLowerCase().includes(e)))}get filteredProjectPhases(){let e=this.projectPhaseFilter?.toLowerCase();return this.projectPhaseResultArray.filter(i=>!this.projectPhases.map(r=>r.pointer).some(r=>r===i.fdMe)&&(!e||i.lineOne.toLowerCase().includes(e)||i.lineTwo?.toLowerCase().includes(e)||i.lineThree?.toLowerCase().includes(e)))}getProjectsLabel(){return this.projects.length>0?this.globals.languageConfLocal.selectedProjects:this.destinationDirectProjectsCount>0?this.globals.languageConfLocal.assignedProjects+" ("+this.destinationDirectProjectsCount+")":this.globals.languageConfLocal.selectProjectsCRM}autocompleteOpened(e){this.dps.closeAll(e)}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(Yc),p(Bt),p(Bk),p(Xt),p(bo),p(nt),p(Br),p(Fc),p(rl))},n.\u0275cmp=ze({type:n,selectors:[["app-project-selector"]],viewQuery:function(e,i){if(1&e&&(Oe(Xne,5),Oe(Zne,5),Oe(Jne,5),Oe(KR,5),Oe(YR,5),Oe(eie,5),Oe(KR,5,Hc),Oe(YR,5,Hc)),2&e){let r;me(r=ge())&&(i.projectSelectorPanel=r.first),me(r=ge())&&(i.searchProjectsInput=r.first),me(r=ge())&&(i.destinationProjectsInputRO=r.first),me(r=ge())&&(i.destinationProjectsInput=r.first),me(r=ge())&&(i.searchProjectPhasesInput=r.first),me(r=ge())&&(i.allProjectsButton=r.first),me(r=ge())&&(i.projectsAutocompleteTrigger=r.first),me(r=ge())&&(i.phasesAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],["id","mainInputProjectSelector",2,"width","100%",3,"click"],[2,"font-size","small"],[1,"projectsChipsHolder"],["chipsInMain",""],[3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","","readonly","","class","projectChipsNoInput",3,"matChipInputFor","focus",4,"ngIf"],["matInput","","class","projectChipsInput",3,"matChipInputFor","formControl","matAutocomplete","input",4,"ngIf"],[1,"projectSelectorAutocomplete",3,"optionSelected","opened"],["auto","matAutocomplete"],["class","projectOption",3,"value",4,"ngFor","ngForOf"],[1,"material-symbols-rounded","allProjects",3,"title","click"],["allProjectsButton",""],["style","width:100%;","id","mainInputProjectPhaseSelector",4,"ngIf"],["class","allProjectsCard",4,"ngIf"],[3,"removable","title","removed"],[1,"chipImage",3,"src"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"],["matInput","","readonly","",1,"projectChipsNoInput",3,"matChipInputFor","focus"],["destinationProjectsInputRO",""],["matInput","",1,"projectChipsInput",3,"matChipInputFor","formControl","matAutocomplete","input"],["destinationProjectsInput",""],[1,"projectOption",3,"value"],[3,"src"],[2,"float","left"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],["id","mainInputProjectPhaseSelector",2,"width","100%"],["searchProjectPhasesInput",""],[1,"allProjectsCard"],["projectSelectorPanel",""],[1,"allProjectsTitle"],[1,"material-symbols-rounded","green",2,"position","relative","cursor","pointer","right","-90px",3,"click"],[1,"allProjectsContent"],[2,"width","100%"],["matInput","","type","text",3,"input"],["searchProjectsInput",""],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click",4,"ngFor","ngForOf"],[1,"allProjectsFooter"],[2,"padding-bottom","2px"],["chipsInCard",""],["matInput","","readonly","",2,"width","100%","height","0px","margin","0px",3,"matChipInputFor"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click"],[1,"resultsLineWrapper"]],template:function(e,i){1&e&&V(0,mie,17,8,"div",0),2&e&&y("ngIf",!i.globals.infoShower.noneSelected&&!i.globals.noProjects)},dependencies:[ci,_n,fo,Fo,Wp,H7,Ko,Gr,ua,vo,Yo,Qk,Kk,Yk,QJ,$m,Vc,Km,Wm,Ok,Hc],styles:['.projectSelectorAutocomplete .mat-option,.projectOption>.mat-option-text,.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.projectSelectorAutocomplete .mat-option>div,.projectOption>.mat-option-text>div,.itemListEntry>div,.projectSelectorAutocomplete .mat-option a,.projectOption>.mat-option-text a,.itemListEntry a,.projectSelectorAutocomplete .mat-option a>div,.projectOption>.mat-option-text a>div,.itemListEntry a>div{display:block;overflow:hidden}.projectSelectorAutocomplete .mat-option>div>[class^=listEntryItem],.projectOption>.mat-option-text>div>[class^=listEntryItem],.itemListEntry>div>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>[class^=listEntryItem],.projectOption>.mat-option-text a>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>div>[class^=listEntryItem],.projectOption>.mat-option-text a>div>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.projectSelectorAutocomplete .mat-option:not(:last-child),.projectOption>.mat-option-text:not(:last-child),.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]),.projectOption>.mat-option-text:hover:not([data-selected=true]),.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]) .resultsLineWrapper,.projectOption>.mat-option-text:hover:not([data-selected=true]) .resultsLineWrapper,.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}.projectSelectorAutocomplete [data-selected=true].mat-option,.projectOption>[data-selected=true].mat-option-text,[data-selected=true].itemListEntry{background-color:#d3d3d3}.projectSelectorAutocomplete [data-selected=true].mat-option .resultsLineWrapper,.projectOption>[data-selected=true].mat-option-text .resultsLineWrapper,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.projectSelectorAutocomplete .mat-option img,.projectOption>.mat-option-text img,.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.projectSelectorAutocomplete .mat-option .resultsLineWrapper,.projectOption>.mat-option-text .resultsLineWrapper,.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.allProjectsContent #resultsContainer{height:50vh;overflow-y:auto}.allProjectsContent #resultsContainer>.recentlyUsed{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}.allProjectsContent #resultsContainer>.recentlyUsed+.itemListEntry{padding-top:8px}.resultsLineWrapper{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}#searchText{font-size:12px}.searchResultsPanel{width:calc(100% - 1px);z-index:4;border-radius:5px}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .projectChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .projectChipsInput:focus{height:auto}.mat-form-field.mat-focused .projectChipsInput{height:auto}.allProjects{cursor:pointer;position:absolute;right:-.1em;top:0em}.allProjects.hasProjects{top:-.7em}.projectOption{height:4em;padding-left:.5em!important}.projectOption>.mat-option-text{display:flex!important;border-bottom:none!important}.projectsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.projectChipsNoInput:not(.hasProjects){display:block;height:0}.projectChipsNoInput.hasProjects{display:none}.allProjectsCard{position:absolute!important;top:.1em;left:3%;z-index:10;width:94%;height:96%;display:flex!important;flex-direction:column;box-shadow:0 0 20px #25282a38!important}.allProjectsTitle{flex-shrink:0;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.allProjectsContent{flex-grow:1;overflow:auto;font-size:12px;margin-bottom:0!important}.allProjectsContent #resultsContainer{height:max-content;overflow:auto;max-height:calc(100% - 50px)}.allProjectsFooter{padding-bottom:.3em}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}.projectOption span.mat-option-text{grid-gap:4px}@keyframes green-fade{0%{background:#4e850c}to{background:#fcfcfc}}.fade-it{animation:green-fade 1s ease-in-out 0s}span.material-symbols-rounded.green:hover{color:#00b800;font-weight:900}\n'],encapsulation:2}),n})();const _ie=["searchExpansionPanel"],vie=["searchTextInput"];function yie(n,t){if(1&n&&(g(0,"mat-option",17),j(1),v()),2&n){const e=t.$implicit;y("value",e.value),m(1),we(e.viewValue)}}function bie(n,t){if(1&n){const e=je();g(0,"mat-form-field",15)(1,"mat-label"),j(2),v(),g(3,"mat-select",7),X("valueChange",function(r){return oe(e),se(x().selectedDB=r)})("selectionChange",function(){return oe(e),se(x().selectedDBChanged())}),V(4,yie,2,2,"mat-option",16),v()()}if(2&n){const e=x();m(2),we(e.globals.languageConfLocal.contactsDatabase),m(1),y("value",e.selectedDB),m(1),y("ngForOf",e.databases)}}function Cie(n,t){if(1&n&&(g(0,"mat-option",18),j(1),v()),2&n){const e=x();m(1),we(e.globals.languageConfLocal.NoCompany)}}function wie(n,t){if(1&n&&(g(0,"mat-option",19),j(1),v()),2&n){const e=x();m(1),we(e.globals.languageConfLocal.ExistingCompany)}}function Eie(n,t){if(1&n){const e=je();g(0,"div")(1,"mat-form-field",20)(2,"mat-label"),j(3),v(),g(4,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Company=r)}),v()(),g(5,"mat-form-field",22)(6,"mat-label"),j(7),v(),g(8,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.CompanyEmail=r)}),v()(),g(9,"mat-form-field",22)(10,"mat-label"),j(11),v(),g(12,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.CompanyPhone=r)}),v()(),g(13,"mat-form-field",22)(14,"mat-label"),j(15),v(),g(16,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.CompanyFax=r)}),v()(),g(17,"mat-form-field",22)(18,"mat-label"),j(19),v(),g(20,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Url=r)}),v()(),g(21,"mat-form-field",22)(22,"mat-label"),j(23),v(),g(24,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Street=r)}),v()(),g(25,"mat-form-field",22)(26,"mat-label"),j(27),v(),g(28,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.City=r)}),v()(),g(29,"mat-form-field",22)(30,"mat-label"),j(31),v(),g(32,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Zip=r)}),v()()()}if(2&n){const e=x();m(3),we(e.globals.languageConfLocal.Name),m(1),y("ngModel",e.extractedContact.Company),m(3),we(e.globals.languageConfLocal.Email),m(1),y("ngModel",e.extractedContact.CompanyEmail),m(3),we(e.globals.languageConfLocal.Telephone),m(1),y("ngModel",e.extractedContact.CompanyPhone),m(3),we(e.globals.languageConfLocal.Fax),m(1),y("ngModel",e.extractedContact.CompanyFax),m(3),we(e.globals.languageConfLocal.Web),m(1),y("ngModel",e.extractedContact.Url),m(3),we(e.globals.languageConfLocal.Street),m(1),y("ngModel",e.extractedContact.Street),m(3),we(e.globals.languageConfLocal.City),m(1),y("ngModel",e.extractedContact.City),m(3),we(e.globals.languageConfLocal.Zip),m(1),y("ngModel",e.extractedContact.Zip)}}function Die(n,t){if(1&n){const e=je();g(0,"span",37),X("click",function(r){return oe(e),se(x(3).clearTextClicked(r))}),j(1,"cancel"),v()}}function Sie(n,t){1&n&&(g(0,"span",38),j(1,"expand_less"),v())}function Aie(n,t){1&n&&(g(0,"span",38),j(1,"search"),v())}function Tie(n,t){if(1&n&&(g(0,"div",39),j(1),v()),2&n){const e=x(3);m(1),Qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function xie(n,t){if(1&n){const e=je();g(0,"div",40),X("click",function(r){return oe(e),se(x(3).clickedElement(r))}),xe(1,"img",41),g(2,"div",42)(3,"span",43),j(4),v(),xe(5,"br"),g(6,"span",44),j(7),v(),xe(8,"br"),g(9,"span",44),j(10),v(),xe(11,"br"),v()()}if(2&n){const e=t.$implicit,i=t.index,r=x(3);Ot("title",r.parseHtmlEntities(e.lineOne)),ot("data-fdme",e.fdMe)("data-email",e.email)("data-order",i+1),m(1),y("src",r.datasource.getImageSrc(e.image),Zn),m(2),Ot("title",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")),m(1),Qe(" ",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")," "),m(2),Ot("title",r.parseHtmlEntities(e.lineTwo)),m(1),we(r.parseHtmlEntities(e.lineTwo)),m(2),Ot("title",r.parseHtmlEntities(e.lineThree)),m(1),we(r.parseHtmlEntities(e.lineThree))}}function Iie(n,t){if(1&n){const e=je();g(0,"mat-expansion-panel",25,26),X("closed",function(){return oe(e),se(x(2).searchResultsPanelClosed())})("opened",function(){return oe(e),se(x(2).searchResultsPanelOpened())}),g(2,"mat-expansion-panel-header")(3,"mat-panel-title",27)(4,"mat-form-field",28)(5,"mat-label",29),j(6,"Search for company"),v(),g(7,"input",30,31),X("keydown.Space",function(r){return oe(e),se(x(2).noCloseOnSpace(r))})("input",function(r){return oe(e),se(x(2).textChanged(r))})("focus",function(r){return oe(e),se(x(2).searchInputFocused(r))})("click",function(r){return oe(e),se(x(2).searchInputClicked(r))})("ngModelChange",function(r){return oe(e),se(x(2).textInSearchInput=r)}),v()(),V(9,Die,2,0,"span",32),V(10,Sie,2,0,"span",33),V(11,Aie,2,0,"span",33),v()(),g(12,"div",34),V(13,Tie,2,1,"div",35),V(14,xie,12,11,"div",36),v()()}if(2&n){const e=sn(8),i=x(2);m(7),y("ngModel",i.textInSearchInput),m(2),y("ngIf",e.value.length>0),m(1),y("ngIf",i.searchPanelExpanded),m(1),y("ngIf",!i.searchPanelExpanded),m(2),y("ngIf",i.showRecentlyUsed),m(1),y("ngForOf",i.searchResultsArray)}}function Mie(n,t){if(1&n){const e=je();g(0,"div"),V(1,Iie,15,6,"mat-expansion-panel",23),g(2,"mat-form-field",20)(3,"mat-label"),j(4),v(),g(5,"input",24),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.CompanyName=r)}),v()(),g(6,"mat-form-field",22)(7,"mat-label"),j(8),v(),g(9,"input",24),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.CompanyAddress=r)}),v()()()}if(2&n){const e=x();m(1),y("ngIf",e.letThereBeSearch),m(3),we(e.globals.languageConfLocal.Name),m(1),y("ngModel",e.extractedContact.CompanyName),m(3),we(e.globals.languageConfLocal.Address),m(1),y("ngModel",e.extractedContact.CompanyAddress)}}function kie(n,t){if(1&n&&(g(0,"mat-option",45),j(1),v()),2&n){const e=x();m(1),we(e.globals.languageConfLocal.NoContact)}}function Rie(n,t){if(1&n){const e=je();g(0,"div")(1,"mat-form-field",22)(2,"mat-label"),j(3),v(),g(4,"input",21),X("ngModelChange",function(r){return oe(e),se(x(2).extractedContact.Street=r)}),v()(),g(5,"mat-form-field",22)(6,"mat-label"),j(7),v(),g(8,"input",21),X("ngModelChange",function(r){return oe(e),se(x(2).extractedContact.City=r)}),v()(),g(9,"mat-form-field",22)(10,"mat-label"),j(11),v(),g(12,"input",21),X("ngModelChange",function(r){return oe(e),se(x(2).extractedContact.Zip=r)}),v()()()}if(2&n){const e=x(2);m(3),we(e.globals.languageConfLocal.Street),m(1),y("ngModel",e.extractedContact.Street),m(3),we(e.globals.languageConfLocal.City),m(1),y("ngModel",e.extractedContact.City),m(3),we(e.globals.languageConfLocal.Zip),m(1),y("ngModel",e.extractedContact.Zip)}}function Oie(n,t){if(1&n){const e=je();g(0,"div")(1,"mat-form-field",20)(2,"mat-label"),j(3),v(),g(4,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.LastName=r)}),v()(),g(5,"mat-form-field",22)(6,"mat-label"),j(7),v(),g(8,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.FirstName=r)}),v()(),g(9,"mat-form-field",22)(10,"mat-label"),j(11),v(),g(12,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Department=r)}),v()(),g(13,"mat-form-field",22)(14,"mat-label"),j(15),v(),g(16,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Phone=r)}),v()(),g(17,"mat-form-field",22)(18,"mat-label"),j(19),v(),g(20,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Mobile=r)}),v()(),g(21,"mat-form-field",22)(22,"mat-label"),j(23),v(),g(24,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Fax=r)}),v()(),g(25,"mat-form-field",22)(26,"mat-label"),j(27),v(),g(28,"input",21),X("ngModelChange",function(r){return oe(e),se(x().extractedContact.Email=r)}),v()(),V(29,Rie,13,6,"div",11),v()}if(2&n){const e=x();m(3),we(e.globals.languageConfLocal.Lastname),m(1),y("ngModel",e.extractedContact.LastName),m(3),we(e.globals.languageConfLocal.Firstname),m(1),y("ngModel",e.extractedContact.FirstName),m(3),we(e.globals.languageConfLocal.Department),m(1),y("ngModel",e.extractedContact.Department),m(3),we(e.globals.languageConfLocal.Telephone),m(1),y("ngModel",e.extractedContact.Phone),m(3),we(e.globals.languageConfLocal.Mobile),m(1),y("ngModel",e.extractedContact.Mobile),m(3),we(e.globals.languageConfLocal.Fax),m(1),y("ngModel",e.extractedContact.Fax),m(3),we(e.globals.languageConfLocal.Email),m(1),y("ngModel",e.extractedContact.Email),m(1),y("ngIf","compNo"===e.companyAction)}}let Pie=(()=>{class n{constructor(e,i,r,o,s){this.globals=e,this.datasource=i,this.messageService=r,this.htmlHelper=o,this.lsm=s,this.searchResultsArray=[],this.showRecentlyUsed=!1,this.showExistingCompany=!0,this.showNoContact=!0,this.letThereBeSearch=!1,this.databases=[],this.emailRegex=/^((?!\.)[\w\-_.]*[^.])(@((?!\.)[\w\-_.]*[^.]))(\.\w+(\.\w+)?[^.\W])$/,this.gotFocused=!1,this.extractedContact=new wm}ngOnInit(){this.getContactDBs(),this.globals.infoShower.displayedDestination&&this.globals.infoShower.displayedDestination.additional.fallback?(this.companyAction="compExist",this.showNoContact=!1):(this.companyAction="compNew",this.showExistingCompany=!1),this.contactAction="contNew",this.companyActionOldValue=this.companyAction,this.contactActionOldValue=this.contactAction,this.extractedContact=this.globals.infoShower.extractedContactData,this.comapanyMail=this.extractedContact.CompanyEmail,this.recognizedMail=this.extractedContact.Email,this.compannyName=this.extractedContact.Company,this.itIsGI="gi"===this.globals.system,this.generateDataBaseOnTheEmail(this.contactAction,null,this.companyAction,null)}creationSelectionChange(e){this.showNoContact="compExist"!==this.companyAction,"compExist"===this.companyAction&&(this.contactAction="contNew"),this.extractedContact.Company="compExist"!==this.companyAction||this.extractedContact.CompanyPointer?this.compannyName:"",this.generateDataBaseOnTheEmail(this.contactAction,this.contactActionOldValue,this.companyAction,this.companyActionOldValue),this.companyActionOldValue=this.companyAction,this.contactActionOldValue=this.contactAction}generateDataBaseOnTheEmail(e,i,r,o){null!=i&&null!=o&&("compNew"===r&&"contNo"===e&&(this.extractedContact.CompanyEmail||(this.extractedContact.CompanyEmail=this.extractedContact.Email)),r===o&&!this.extractedContact.CompanyFax&&(this.extractedContact.CompanyFax=this.extractedContact.Fax),r===o&&!this.extractedContact.CompanyPhone&&(this.extractedContact.CompanyPhone=this.extractedContact.Phone))}createClicked(){this.globals.showSpinner();let e=document.querySelectorAll(".textInputControl"),i="";e.forEach(r=>{let o=r;this.htmlHelper.isHtml(o.value)&&(i+="["+o.parentNode.children[1].innerText+"] "+this.globals.languageConfLocal.ContainsDangerousContent+"
")}),"compNew"===this.companyAction&&((!this.extractedContact.Company||0===this.extractedContact.Company.trim().length)&&(i+=this.globals.languageConfLocal.CompanyNameRequired+"
"),this.extractedContact.CompanyEmail&&this.extractedContact.CompanyEmail.length>0&&!this.emailRegex.test(this.extractedContact.CompanyEmail)&&(i+=this.globals.languageConfLocal.EmailCompanyNotInCorrectFormat+"
")),"contNew"===this.contactAction&&((!this.extractedContact.LastName||0===this.extractedContact.LastName.trim().length)&&(i+=this.globals.languageConfLocal.LastNameRequired+"
"),this.extractedContact.Email&&0!==this.extractedContact.Email.trim().length?this.extractedContact.Email&&this.extractedContact.Email.length>0&&!this.emailRegex.test(this.extractedContact.Email)&&(i+=this.globals.languageConfLocal.EmailContactNotInCorrectFormat+"
"):i+=this.globals.languageConfLocal.EmailRequired+"
"),this.datasource.validateDataInBackend(this.extractedContact,this.contactAction,this.companyAction,this.selectedDB).subscribe(r=>{"PASS"!==r.Validation&&(i+=r.errors.join("
")),i?(this.globals.hideSpinner(),this.messageService.showError(i,"Error",!1,15e3)):this.datasource.quickCreateContact(this.extractedContact,this.contactAction,this.companyAction,this.selectedDB).subscribe({next:o=>{o&&("contNew"===this.contactAction?this.messageService.showMessageAsync("compNew"===this.companyAction?this.globals.languageConfLocal.NewCompanyAndContactCreated:"compExist"===this.companyAction?this.globals.languageConfLocal.NewContactCreatedAndAdded:this.globals.languageConfLocal.NewStandaloneContactCreated,lr.success):"compNew"===this.companyAction&&this.messageService.showMessageAsync(this.globals.languageConfLocal.NewCompanyCreated,lr.success),this.globals.hideSpinner(),this.globals.activeWindow="main")},error:o=>{this.globals.hideSpinner()}})})}cancelClicked(){this.globals.activeWindow="main"}searchResultsPanelOpened(){let e=this.searchExpansionPanel._body.nativeElement.childNodes[0];e.style.paddingRight="3px",e.style.paddingLeft="3px",e.style.paddingBottom="3px",e.style.backgroundColor="#ffffff",e.style.zIndex=5,this.searchPanelExpanded=!0,this.searchTextInput.nativeElement.focus()}searchResultsPanelClosed(){this.searchPanelExpanded=!1}noCloseOnSpace(e){e.stopPropagation()}textChanged(e){this.textInSearchInput.length>0&&this.searchExpansionPanel.open(),this.getCompanies()}clearTextClicked(e){this.textInSearchInput="",this.searchPanelExpanded&&(this.getCompanies(),this.searchTextInput.nativeElement.focus()),e.stopPropagation()}searchInputFocused(e){setTimeout(()=>{this.searchExpansionPanel.open()},100),this.gotFocused=!0}searchInputClicked(e){this.gotFocused&&e.stopPropagation(),this.gotFocused=!1}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}clickedElement(e){this.selectCompany(e.currentTarget)}getCompanies(){}selectCompany(e){}getContactDBs(){this.datasource.fetchDBs("dbConnections",null).subscribe({next:e=>{console.log("DBs:",e),this.filterForContacts(e)}})}filterForContacts(e){const i={};for(const r in e)"GeOfficeAliases"!==r&&"Contact"===e[r].type&&(i[r]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){this.databases=[];for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:e[i]});if(console.log(this.databases),this.databases.length>0){let i=this.lsm.getValue(tn.contactDB);null!==i?this.databases.forEach(r=>{r.value===i&&(this.selectedDB=r.value)}):this.selectedDB=this.databases[0].value}}selectedDBChanged(){this.initialDBSelection?this.initialDBSelection=!1:this.lsm.setValue(tn.contactDB,this.selectedDB)}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(bo),p(en),p(bC),p(Br))},n.\u0275cmp=ze({type:n,selectors:[["app-contact-creator"]],viewQuery:function(e,i){if(1&e&&(Oe(_ie,5),Oe(vie,5)),2&e){let r;me(r=ge())&&(i.searchExpansionPanel=r.first),me(r=ge())&&(i.searchTextInput=r.first)}},decls:32,vars:16,consts:[[2,"box-shadow","none"],[1,"left-right-align"],[1,"material-symbols-rounded","green",2,"cursor","pointer",3,"click"],[1,"material-symbols-rounded","red",2,"cursor","pointer",3,"click"],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],[1,"noHeaderText"],["floatLabel","auto",2,"width","100%","margin-left","5px","margin-right","5px"],[3,"value","valueChange","selectionChange"],["value","compNo",4,"ngIf"],["value","compNew"],["value","compExist",4,"ngIf"],[4,"ngIf"],["value","contNo",4,"ngIf"],["value","contNew"],[1,"cardWithBackground"],["appearance","standard",1,"databaseSearchSelect"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["value","compNo"],["value","compExist"],["floatLabel","auto",2,"width","100%","margin-top","5px"],["matInput","",1,"textInputControl",3,"ngModel","ngModelChange"],["floatLabel","auto",2,"width","100%"],["class","searchResultsPanel mat-elevation-z0","hideToggle","",3,"closed","opened",4,"ngIf"],["matInput","","disabled","",3,"ngModel","ngModelChange"],["hideToggle","",1,"searchResultsPanel","mat-elevation-z0",3,"closed","opened"],["searchExpansionPanel",""],[1,"searchInCRMHeader"],[2,"width","100%","vertical-align","bottom"],[2,"font-size","small"],["matInput","","type","search","id","searchText","name","searchText",3,"ngModel","keydown.Space","input","focus","click","ngModelChange"],["searchTextInput",""],["class","material-symbols-rounded clearIcon",3,"click",4,"ngIf"],["class","material-symbols-rounded searchIcon",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click",4,"ngFor","ngForOf"],[1,"material-symbols-rounded","clearIcon",3,"click"],[1,"material-symbols-rounded","searchIcon"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click"],[1,"normalImage",3,"src"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],["value","contNo"]],template:function(e,i){1&e&&(g(0,"mat-card",0)(1,"mat-card-title",1),j(2),g(3,"div")(4,"span",2),X("click",function(){return i.createClicked()}),j(5,"check_circle"),v(),g(6,"span",3),X("click",function(){return i.cancelClicked()}),j(7,"cancel"),v()()(),V(8,bie,5,3,"mat-form-field",4),g(9,"mat-card-header",5)(10,"mat-form-field",6)(11,"mat-label"),j(12),v(),g(13,"mat-select",7),X("valueChange",function(o){return i.companyAction=o})("selectionChange",function(o){return i.creationSelectionChange(o)}),V(14,Cie,2,1,"mat-option",8),g(15,"mat-option",9),j(16),v(),V(17,wie,2,1,"mat-option",10),v()()(),g(18,"mat-card-content"),V(19,Eie,33,16,"div",11),V(20,Mie,10,5,"div",11),v()(),g(21,"mat-card",0)(22,"mat-card-header",5)(23,"mat-form-field",6)(24,"mat-label"),j(25),v(),g(26,"mat-select",7),X("valueChange",function(o){return i.contactAction=o})("selectionChange",function(o){return i.creationSelectionChange(o)}),V(27,kie,2,1,"mat-option",12),g(28,"mat-option",13),j(29),v()()()(),g(30,"mat-card-content",14),V(31,Oie,30,15,"div",11),v()()),2&e&&(m(2),Qe(" ",i.globals.languageConfLocal.ContactQuickCreation," "),m(6),y("ngIf",null!=i.databases&&i.databases.length>0),m(4),we(i.globals.languageConfLocal.ComapnyAction),m(1),y("value",i.companyAction),m(1),y("ngIf",i.itIsGI),m(2),we(i.globals.languageConfLocal.NewCompany),m(1),y("ngIf",i.showExistingCompany),m(1),wi("compExist"!==i.companyAction?"cardWithBackground":"cardWithBackgroundDarker"),m(1),y("ngIf","compNew"===i.companyAction),m(1),y("ngIf","compExist"===i.companyAction),m(5),we(i.globals.languageConfLocal.ContactAction),m(1),y("value",i.contactAction),m(1),y("ngIf",i.showNoContact),m(2),we(i.globals.languageConfLocal.NewContact),m(2),y("ngIf","contNew"===i.contactAction))},dependencies:[ci,_n,fo,Fo,ps,Ko,Gr,ua,vo,Yo,ew,Wk,$k,Qk,XJ,Kk,Yk],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}#resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.mat-card-header[_ngcontent-%COMP%]{background-color:#d3d3d3;padding:5px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#context-menu[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 20px #25282a38;color:#1f194c;width:10em;padding:.8em .6em;font-size:13px;position:fixed;visibility:hidden}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:.3em 1.2em}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;cursor:pointer}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#5f5f5f}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}#searchText[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:4.5em;font-size:small}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expanded[_ngcontent-%COMP%]{border:#4d4d4d;border-width:3px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.contactSelectorDiv[_ngcontent-%COMP%]{width:100%;height:-moz-fit-content;height:fit-content}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}.searchIcon[_ngcontent-%COMP%]{position:absolute;right:3px;bottom:22px}.clearIcon[_ngcontent-%COMP%]{position:absolute;right:27px;bottom:22px}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.databaseSearchSelect[_ngcontent-%COMP%] + .searchResultsPanel[_ngcontent-%COMP%]{margin-top:-16px}.material-symbols-rounded[_ngcontent-%COMP%]{font-variation-settings:"FILL" 0,"wght" 300,"GRAD" -25,"opsz" 18} .noHeaderText>div.mat-card-header-text{display:none}.noHeaderText[_ngcontent-%COMP%]{border-top-right-radius:5px;border-top-left-radius:5px}.cardWithBackground[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#f1f1f1;border-bottom-left-radius:5px;border-bottom-right-radius:5px;padding:5px}.cardWithBackgroundDarker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#e8e8e8;border-bottom-left-radius:5px;border-bottom-right-radius:5px;padding:5px}.mat-input-element[_ngcontent-%COMP%]:disabled{color:#000}span.material-symbols-rounded.red[_ngcontent-%COMP%]:hover{color:red;font-weight:900}span.material-symbols-rounded.green[_ngcontent-%COMP%]:hover{color:#00b800;font-weight:900}.left-right-align[_ngcontent-%COMP%]{display:flex;justify-content:space-between}']}),n})();const QR={appVersion:G(4147).i8+"-beta",production:!0,basehref:"businessmail-beta"};let Lie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.messageService=i,this.mailLoadedService=r,this.ref=o,this.translate=s,this.waitList=a,this.datasource=l,this.lsm=c,this.dps=u}ngOnInit(){this.datasource.getProductVersion().subscribe(e=>{this.globals.backendVersion=e,this.crmVersion=this.globals.system.toUpperCase()+" "+this.globals.backendVersion}),this.appVersion=QR.appVersion,this.disclaimer=this.globals.languageConfLocal.Disclaimer.replace("{{currentYear}}",(new Date).getFullYear().toString())}closeClicked(){this.globals.activeWindow="main"}openGedys(){window.open("http://www.gedys-intraware.de","_blank")}licenseInfo(){window.open("assets/licenseInfo.txt","_blank")}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(en),p(Yc),p(Bt),p(Xt),p(Ji),p(bo),p(Br),p(Fc))},n.\u0275cmp=ze({type:n,selectors:[["app-about"]],decls:17,vars:5,consts:[[2,"text-align","center"],[2,"margin-top","25px"],["href","#",3,"click"],["mat-button","",2,"background-color","rgb(212, 212, 212)","position","fixed","bottom","30px","left","40%",3,"click"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"h1",1),j(2,"BusinessMail4Outlook"),v(),g(3,"h4"),j(4),v(),g(5,"h4"),j(6),v(),g(7,"div"),j(8),g(9,"a",2),X("click",function(){return i.openGedys()}),j(10,"www.gedys-intraware.de"),v()(),g(11,"div"),xe(12,"br"),g(13,"a",2),X("click",function(){return i.licenseInfo()}),j(14),v()(),g(15,"button",3),X("click",function(){return i.closeClicked()}),j(16),v()()),2&e&&(m(4),Qe("Addin version: ",i.appVersion,""),m(2),Qe("CRM version: ",i.crmVersion,""),m(2),Qe("",i.disclaimer," "),m(6),we(i.globals.languageConfLocal.licenseInfo),m(2),we(i.globals.languageConfLocal.Close))},dependencies:[Nc],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}#resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#context-menu[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 20px #25282a38;color:#1f194c;width:10em;padding:.8em .6em;font-size:13px;position:fixed;visibility:hidden}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:.3em 1.2em}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;cursor:pointer}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#5f5f5f}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}#searchText[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:4.5em;font-size:small}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expanded[_ngcontent-%COMP%]{border:#4d4d4d;border-width:3px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.contactSelectorDiv[_ngcontent-%COMP%]{width:100%;height:-moz-fit-content;height:fit-content}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}.searchIcon[_ngcontent-%COMP%]{position:absolute;right:3px;bottom:22px}.clearIcon[_ngcontent-%COMP%]{position:absolute;right:27px;bottom:22px}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.databaseSearchSelect[_ngcontent-%COMP%] + .searchResultsPanel[_ngcontent-%COMP%]{margin-top:-16px}']}),n})(),Nie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this.globals=e,this.messageService=i,this.mailLoadedService=r,this.ref=o,this.translate=s,this.waitList=a,this.datasource=l,this.lsm=c,this.http=u,this.dps=d}ngOnInit(){this.http.get("assets/licenseInfo.txt",{responseType:"text"}).subscribe(e=>{this.licInfo=e})}closeClicked(){this.globals.activeWindow="about"}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(en),p(Yc),p(Bt),p(Xt),p(Ji),p(bo),p(Br),p(Xu),p(Fc))},n.\u0275cmp=ze({type:n,selectors:[["app-license-information"]],decls:6,vars:2,consts:[[2,"text-align","center"],[2,"margin-bottom","0px","height","calc(100vh - 1px)","text-align","justify"],["mat-button","",2,"background-color","rgb(212, 212, 212)","position","fixed","bottom","30px","left","40%",3,"click"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"div")(2,"pre",1),j(3),v()(),g(4,"button",2),X("click",function(){return i.closeClicked()}),j(5),v()()),2&e&&(m(3),Qe(" ",i.licInfo,"\n "),m(2),we(i.globals.languageConfLocal.Close))},dependencies:[Nc]}),n})();const Fie=["projectSelectorPanel"],Bie=["searchProjectsInput"],XR=["tagsInput"];function Hie(n,t){if(1&n){const e=je();g(0,"mat-chip",11),X("removed",function(){const o=oe(e).$implicit;return se(x(2).removeTag(o))}),g(1,"div",12),j(2),v(),g(3,"button",13)(4,"span",14),j(5,"cancel"),v()()()}if(2&n){const e=t.$implicit;y("removable",!0)("title",e[1]),m(2),we(e[1])}}function Vie(n,t){if(1&n&&(g(0,"mat-option",15)(1,"div",16)(2,"div",17),j(3),v()()()),2&n){const e=t.$implicit,i=x(2);y("value",e),ot("data-key",e[0]),m(2),Ot("title",i.parseHtmlEntities(e[1])),m(1),Qe(" ",i.parseHtmlEntities(e[1])," ")}}function jie(n,t){if(1&n){const e=je();g(0,"div")(1,"mat-form-field",1)(2,"mat-label",2),j(3),v(),g(4,"mat-chip-list",3,4),V(6,Hie,6,3,"mat-chip",5),g(7,"input",6,7),X("input",function(r){return oe(e),se(x().searchTags(r))}),v(),g(9,"mat-autocomplete",8,9),X("optionSelected",function(r){return oe(e),se(x().autoTagsSelected(r))})("opened",function(){return oe(e),se(x().autocompleteOpened("tagsAuto"))}),V(11,Vie,4,4,"mat-option",10),v()()()()}if(2&n){const e=sn(5),i=sn(10),r=x();m(3),we(r.globals.languageConfLocal.tags),m(3),y("ngForOf",r.enums),m(1),y("matChipInputFor",e)("matAutocomplete",i),m(4),y("ngForOf",r.filteredParticipatedResultsArray)}}let Uie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this.globals=e,this.mailLoadedService=i,this.ref=r,this.snack=o,this.translate=s,this.datasource=a,this.zone=l,this.lsm=c,this.dps=u,this.ews=d,this.searchResultsArray=[],this.searchTextInput="",this.availableTags=[],this.databases=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.enums=[],this.tagsVisible=!0;let e=Office.context.mailbox.item;e&&(this.tagsVisible="appointment"!==e.itemType),"gi"===this.globals.system&&(this.showRecentlyUsed=!1,this.tagsVisible=!1),this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:i=>{this.getTags()}}),this.dps.addThingToClose("tagsAuto",()=>{this.projectsAutocompleteTrigger?.closePanel()}),this.globals.infoShower.waitForItemRecognition().subscribe(i=>{"appointment"===e?.itemType&&this.ews.GetExtendedData(i).subscribe(r=>{})}),this.globals.infoShower.waitForUpdateBM4ODataCommand().subscribe(i=>{})}ngOnDestroy(){this.mailLoadedService.unsubscribeAll(this.constructor.name)}detectChanges(){this.ref.detectChanges()}removeTag(e){this.enums.splice(this.enums.findIndex(i=>i[0]===e[0]),1),this.tagsChipsChanged()}tagsChipsChanged(){if(Office.context.mailbox.item){let i=JSON.stringify(this.enums),r=this.globals.infoShower.currentItemId;this.lsm.setValue(tn.selectedProjects,i),this.ews.GetExtendedData(r).subscribe(o=>{o.tags=i,this.ews.SaveExtendedData(r,o).subscribe(s=>{})})}}textChanged(e){let i=e.target.value;"ba"===this.globals.system&&(this.showRecentlyUsed=0===i.length),i.length>0&&!this.searchPanelExpanded?this.searchPanelExpanded=!0:0===i.length&&this.searchPanelExpanded&&(this.searchPanelExpanded=!1),this.searchValue=i,this.getTags()}searchTags(e){this.participatingProjectsFilter=e.target.value}getTags(){this.datasource.getEnumValues("CD5C4D16-354E-40F3-A978-CB467D5A0E3A").subscribe({next:e=>{this.searchResultsArray=e,this.detectChanges()}})}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}autoTagsSelected(e){this.addOneProjectChip(e.option.value),this.participatingProjectsFilter="",this.tagsInput.nativeElement.value=""}addOneProjectChip(e){this.enums.push(e),this.tagsChipsChanged()}get filteredParticipatedResultsArray(){let e=this.participatingProjectsFilter?.toLowerCase();return this.searchResultsArray.filter(i=>!this.enums.map(r=>r[0]).some(r=>r===i[0])&&(!e||i[1].toLowerCase().includes(e)))}autocompleteOpened(e){this.dps.closeAll(e)}}return n.\u0275fac=function(e){return new(e||n)(p(pt),p(Yc),p(Bt),p(Bk),p(Xt),p(bo),p(nt),p(Br),p(Fc),p(rl))},n.\u0275cmp=ze({type:n,selectors:[["app-tags-selector"]],viewQuery:function(e,i){if(1&e&&(Oe(Fie,5),Oe(Bie,5),Oe(XR,5),Oe(XR,5,Hc)),2&e){let r;me(r=ge())&&(i.projectSelectorPanel=r.first),me(r=ge())&&(i.searchProjectsInput=r.first),me(r=ge())&&(i.tagsInput=r.first),me(r=ge())&&(i.projectsAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],["id","mainInputTagsSelector",2,"width","100%"],[2,"font-size","small"],[1,"tagsChipsHolder"],["chipsInMain",""],[3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","",1,"tagsChipsInput",3,"matChipInputFor","matAutocomplete","input"],["tagsInput",""],[1,"tagsSelectorAutocomplete",3,"optionSelected","opened"],["auto","matAutocomplete"],["class","tagsOption",3,"value",4,"ngFor","ngForOf"],[3,"removable","title","removed"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"],[1,"tagsOption",3,"value"],[2,"float","left"],[1,"listEntryItemMainLine",3,"title"]],template:function(e,i){1&e&&V(0,jie,12,5,"div",0),2&e&&y("ngIf",!i.globals.infoShower.noneSelected&&i.tagsVisible)},dependencies:[ci,_n,Ko,Gr,vo,Yo,$m,Vc,Km,Wm,Ok,Hc],styles:['.tagsSelectorAutocomplete .mat-option,.tagsOption>.mat-option-text,.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.tagsSelectorAutocomplete .mat-option>div,.tagsOption>.mat-option-text>div,.itemListEntry>div,.tagsSelectorAutocomplete .mat-option a,.tagsOption>.mat-option-text a,.itemListEntry a,.tagsSelectorAutocomplete .mat-option a>div,.tagsOption>.mat-option-text a>div,.itemListEntry a>div{display:block;overflow:hidden}.tagsSelectorAutocomplete .mat-option>div>[class^=listEntryItem],.tagsOption>.mat-option-text>div>[class^=listEntryItem],.itemListEntry>div>[class^=listEntryItem],.tagsSelectorAutocomplete .mat-option a>[class^=listEntryItem],.tagsOption>.mat-option-text a>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.tagsSelectorAutocomplete .mat-option a>div>[class^=listEntryItem],.tagsOption>.mat-option-text a>div>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.tagsSelectorAutocomplete .mat-option:not(:last-child),.tagsOption>.mat-option-text:not(:last-child),.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.tagsSelectorAutocomplete .mat-option:hover:not([data-selected=true]),.tagsOption>.mat-option-text:hover:not([data-selected=true]),.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.tagsSelectorAutocomplete .mat-option:hover:not([data-selected=true]) .resultsLineWrapper,.tagsOption>.mat-option-text:hover:not([data-selected=true]) .resultsLineWrapper,.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}.tagsSelectorAutocomplete [data-selected=true].mat-option,.tagsOption>[data-selected=true].mat-option-text,[data-selected=true].itemListEntry{background-color:#d3d3d3}.tagsSelectorAutocomplete [data-selected=true].mat-option .resultsLineWrapper,.tagsOption>[data-selected=true].mat-option-text .resultsLineWrapper,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.tagsSelectorAutocomplete .mat-option img,.tagsOption>.mat-option-text img,.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.tagsSelectorAutocomplete .mat-option .resultsLineWrapper,.tagsOption>.mat-option-text .resultsLineWrapper,.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .tagsChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .tagsChipsInput:focus{height:auto}.mat-form-field.mat-focused .tagsChipsInput{height:auto}.tagsOption{height:2.5em!important;padding-left:.5em!important}.tagsOption>.mat-option-text{display:flex!important;border-bottom:none!important}.tagsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tagsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.tagsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}.tagsOption span.mat-option-text{grid-gap:4px}\n'],encapsulation:2}),n})(),ZR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n,bootstrap:[EC]}),n.\u0275inj=lt({providers:[pt,CC,EI,Nn,Em,{provide:Df,useValue:{}},{provide:Oy,useClass:Qj,multi:!0},tl],imports:[WT,kj,Rj,Yj,kZ,TI.forRoot({preventDuplicates:!0}),J7,DQ,EI,QG,am,nW,MW,ia,tY,T1,zee,ZM,MJ,GJ,ZJ,ree,lee,bee,Mee,Nk,lJ,YZ,ZM.forRoot(new zte({auth:{clientId:"82cc362f-b9da-43a3-b9f8-3008e6d47d9e"},cache:{cacheLocation:"localStorage",storeAuthStateInCookie:!0}}),{interactionType:We.Redirect,authRequest:{scopes:["user.read"]}},{interactionType:We.Redirect,protectedResourceMap:new Map}),hU.forRoot({defaultLanguage:"en",loader:{provide:Zu,useClass:jZ}})]}),n})();(function Tw(n,t,e){const i=n.\u0275cmp;i.directiveDefs=()=>("function"==typeof t?t():t).map(xw),i.pipeDefs=()=>("function"==typeof e?e():e).map(qi)})(EC,function(){return[_n,Qs,Nc,Ns,IQ,RQ,VZ,Kee,Gte,sne,Lie,Fne,Pie,Yne,Qne,gie,Uie,Nie]},[]),QR.production&&(function g4(){KA=!1}(),window.console.log=()=>{});try{Office.initialize=()=>{UT().bootstrapModule(ZR)}}catch{UT().bootstrapModule(ZR).catch(t=>console.error(t))}},4999:Pe=>{"use strict";var C=function(z){return function G(B){return!!B&&"object"==typeof B}(z)&&!function le(B){var z=Object.prototype.toString.call(B);return"[object RegExp]"===z||"[object Date]"===z||function Y(B){return B.$$typeof===K}(B)}(z)},K="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function F(B,z){return!1!==z.clone&&z.isMergeableObject(B)?D(function q(B){return Array.isArray(B)?[]:{}}(B),B,z):B}function M(B,z,ne){return B.concat(z).map(function(Ce){return F(Ce,ne)})}function w(B){return Object.keys(B).concat(function A(B){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(B).filter(function(z){return B.propertyIsEnumerable(z)}):[]}(B))}function P(B,z){try{return z in B}catch{return!1}}function D(B,z,ne){(ne=ne||{}).arrayMerge=ne.arrayMerge||M,ne.isMergeableObject=ne.isMergeableObject||C,ne.cloneUnlessOtherwiseSpecified=F;var Ce=Array.isArray(z);return Ce===Array.isArray(B)?Ce?ne.arrayMerge(B,z,ne):function k(B,z,ne){var Ce={};return ne.isMergeableObject(B)&&w(B).forEach(function(W){Ce[W]=F(B[W],ne)}),w(z).forEach(function(W){(function E(B,z){return P(B,z)&&!(Object.hasOwnProperty.call(B,z)&&Object.propertyIsEnumerable.call(B,z))})(B,W)||(Ce[W]=P(B,W)&&ne.isMergeableObject(z[W])?function O(B,z){if(!z.customMerge)return D;var ne=z.customMerge(B);return"function"==typeof ne?ne:D}(W,ne)(B[W],z[W],ne):F(z[W],ne))}),Ce}(B,z,ne):F(z,ne)}D.all=function(z,ne){if(!Array.isArray(z))throw new Error("first argument should be an array");return z.reduce(function(Ce,W){return D(Ce,W,ne)},{})},Pe.exports=D},2094:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.attributeNames=C.elementNames=void 0,C.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),C.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},3192:function(Pe,C,G){"use strict";var le=this&&this.__assign||function(){return le=Object.assign||function(W){for(var te,b=1,$=arguments.length;b<$;b++)for(var N in te=arguments[b])Object.prototype.hasOwnProperty.call(te,N)&&(W[N]=te[N]);return W},le.apply(this,arguments)},ce=this&&this.__createBinding||(Object.create?function(W,te,b,$){void 0===$&&($=b),Object.defineProperty(W,$,{enumerable:!0,get:function(){return te[b]}})}:function(W,te,b,$){void 0===$&&($=b),W[$]=te[b]}),K=this&&this.__setModuleDefault||(Object.create?function(W,te){Object.defineProperty(W,"default",{enumerable:!0,value:te})}:function(W,te){W.default=te}),Y=this&&this.__importStar||function(W){if(W&&W.__esModule)return W;var te={};if(null!=W)for(var b in W)"default"!==b&&Object.prototype.hasOwnProperty.call(W,b)&&ce(te,W,b);return K(te,W),te};Object.defineProperty(C,"__esModule",{value:!0});var q=Y(G(6316)),F=G(9673),M=G(2094),O=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]),w=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function P(W,te){void 0===te&&(te={});for(var b=("length"in W?W:[W]),$="",N=0;N"}(W);case q.Comment:return function Ce(W){return"\x3c!--"+W.data+"--\x3e"}(W);case q.CDATA:return function ne(W){return""}(W);case q.Script:case q.Style:case q.Tag:return function I(W,te){var b;"foreign"===te.xmlMode&&(W.name=null!==(b=M.elementNames.get(W.name))&&void 0!==b?b:W.name,W.parent&&k.has(W.parent.name)&&(te=le(le({},te),{xmlMode:!1}))),!te.xmlMode&&D.has(W.name)&&(te=le(le({},te),{xmlMode:"foreign"}));var $="<"+W.name,N=function A(W,te){if(W)return Object.keys(W).map(function(b){var $,N,ie=null!==($=W[b])&&void 0!==$?$:"";return"foreign"===te.xmlMode&&(b=null!==(N=M.attributeNames.get(b))&&void 0!==N?N:b),te.emptyAttrs||te.xmlMode||""!==ie?b+'="'+(!1!==te.decodeEntities?F.encodeXML(ie):ie.replace(/"/g,"""))+'"':b}).join(" ")}(W.attribs,te);return N&&($+=" "+N),0===W.children.length&&(te.xmlMode?!1!==te.selfClosingTags:te.selfClosingTags&&w.has(W.name))?(te.xmlMode||($+=" "),$+="/>"):($+=">",W.children.length>0&&($+=P(W.children,te)),(te.xmlMode||!w.has(W.name))&&($+="")),$}(W,te);case q.Text:return function z(W,te){var b=W.data||"";return!1!==te.decodeEntities&&!(!te.xmlMode&&W.parent&&O.has(W.parent.name))&&(b=F.encodeXML(b)),b}(W,te)}}C.default=P;var k=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),D=new Set(["svg","math"])},6316:(Pe,C)=>{"use strict";var G,ce;Object.defineProperty(C,"__esModule",{value:!0}),C.Doctype=C.CDATA=C.Tag=C.Style=C.Script=C.Comment=C.Directive=C.Text=C.Root=C.isTag=C.ElementType=void 0,(ce=G=C.ElementType||(C.ElementType={})).Root="root",ce.Text="text",ce.Directive="directive",ce.Comment="comment",ce.Script="script",ce.Style="style",ce.Tag="tag",ce.CDATA="cdata",ce.Doctype="doctype",C.isTag=function le(ce){return ce.type===G.Tag||ce.type===G.Script||ce.type===G.Style},C.Root=G.Root,C.Text=G.Text,C.Directive=G.Directive,C.Comment=G.Comment,C.Script=G.Script,C.Style=G.Style,C.Tag=G.Tag,C.CDATA=G.CDATA,C.Doctype=G.Doctype},2962:function(Pe,C,G){"use strict";var le=this&&this.__createBinding||(Object.create?function(O,A,w,P){void 0===P&&(P=w);var E=Object.getOwnPropertyDescriptor(A,w);(!E||("get"in E?!A.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return A[w]}}),Object.defineProperty(O,P,E)}:function(O,A,w,P){void 0===P&&(P=w),O[P]=A[w]}),ce=this&&this.__exportStar||function(O,A){for(var w in O)"default"!==w&&!Object.prototype.hasOwnProperty.call(A,w)&&le(A,O,w)};Object.defineProperty(C,"__esModule",{value:!0}),C.DomHandler=void 0;var K=G(6316),Y=G(3416);ce(G(3416),C);var q=/\s+/g,F={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},M=function(){function O(A,w,P){this.dom=[],this.root=new Y.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof w&&(P=w,w=F),"object"==typeof A&&(w=A,A=void 0),this.callback=A??null,this.options=w??F,this.elementCB=P??null}return O.prototype.onparserinit=function(A){this.parser=A},O.prototype.onreset=function(){this.dom=[],this.root=new Y.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},O.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},O.prototype.onerror=function(A){this.handleCallback(A)},O.prototype.onclosetag=function(){this.lastNode=null;var A=this.tagStack.pop();this.options.withEndIndices&&(A.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(A)},O.prototype.onopentag=function(A,w){var E=new Y.Element(A,w,void 0,this.options.xmlMode?K.ElementType.Tag:void 0);this.addNode(E),this.tagStack.push(E)},O.prototype.ontext=function(A){var w=this.options.normalizeWhitespace,P=this.lastNode;if(P&&P.type===K.ElementType.Text)w?P.data=(P.data+A).replace(q," "):P.data+=A,this.options.withEndIndices&&(P.endIndex=this.parser.endIndex);else{w&&(A=A.replace(q," "));var E=new Y.Text(A);this.addNode(E),this.lastNode=E}},O.prototype.oncomment=function(A){if(this.lastNode&&this.lastNode.type===K.ElementType.Comment)this.lastNode.data+=A;else{var w=new Y.Comment(A);this.addNode(w),this.lastNode=w}},O.prototype.oncommentend=function(){this.lastNode=null},O.prototype.oncdatastart=function(){var A=new Y.Text(""),w=new Y.NodeWithChildren(K.ElementType.CDATA,[A]);this.addNode(w),A.parent=w,this.lastNode=A},O.prototype.oncdataend=function(){this.lastNode=null},O.prototype.onprocessinginstruction=function(A,w){var P=new Y.ProcessingInstruction(A,w);this.addNode(P)},O.prototype.handleCallback=function(A){if("function"==typeof this.callback)this.callback(A,this.dom);else if(A)throw A},O.prototype.addNode=function(A){var w=this.tagStack[this.tagStack.length-1],P=w.children[w.children.length-1];this.options.withStartIndices&&(A.startIndex=this.parser.startIndex),this.options.withEndIndices&&(A.endIndex=this.parser.endIndex),w.children.push(A),P&&(A.prev=P,P.next=A),A.parent=w,this.lastNode=null},O}();C.DomHandler=M,C.default=M},3416:function(Pe,C,G){"use strict";var b,le=this&&this.__extends||(b=function($,N){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,_e){ie.__proto__=_e}||function(ie,_e){for(var H in _e)Object.prototype.hasOwnProperty.call(_e,H)&&(ie[H]=_e[H])})($,N)},function($,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function ie(){this.constructor=$}b($,N),$.prototype=null===N?Object.create(N):(ie.prototype=N.prototype,new ie)}),ce=this&&this.__assign||function(){return ce=Object.assign||function(b){for(var $,N=1,ie=arguments.length;N0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"childNodes",{get:function(){return this.children},set:function(N){this.children=N},enumerable:!1,configurable:!0}),$}(q);C.NodeWithChildren=w;var P=function(b){function $(N){return b.call(this,K.ElementType.Root,N)||this}return le($,b),$}(w);C.Document=P;var E=function(b){function $(N,ie,_e,H){void 0===_e&&(_e=[]),void 0===H&&(H="script"===N?K.ElementType.Script:"style"===N?K.ElementType.Style:K.ElementType.Tag);var L=b.call(this,H,_e)||this;return L.name=N,L.attribs=ie,L}return le($,b),Object.defineProperty($.prototype,"tagName",{get:function(){return this.name},set:function(N){this.name=N},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"attributes",{get:function(){var N=this;return Object.keys(this.attribs).map(function(ie){var _e,H;return{name:ie,value:N.attribs[ie],namespace:null===(_e=N["x-attribsNamespace"])||void 0===_e?void 0:_e[ie],prefix:null===(H=N["x-attribsPrefix"])||void 0===H?void 0:H[ie]}})},enumerable:!1,configurable:!0}),$}(w);function k(b){return(0,K.isTag)(b)}function D(b){return b.type===K.ElementType.CDATA}function I(b){return b.type===K.ElementType.Text}function B(b){return b.type===K.ElementType.Comment}function z(b){return b.type===K.ElementType.Directive}function ne(b){return b.type===K.ElementType.Root}function W(b,$){var N;if(void 0===$&&($=!1),I(b))N=new M(b.data);else if(B(b))N=new O(b.data);else if(k(b)){var ie=$?te(b.children):[],_e=new E(b.name,ce({},b.attribs),ie);ie.forEach(function(de){return de.parent=_e}),null!=b.namespace&&(_e.namespace=b.namespace),b["x-attribsNamespace"]&&(_e["x-attribsNamespace"]=ce({},b["x-attribsNamespace"])),b["x-attribsPrefix"]&&(_e["x-attribsPrefix"]=ce({},b["x-attribsPrefix"])),N=_e}else if(D(b)){ie=$?te(b.children):[];var H=new w(K.ElementType.CDATA,ie);ie.forEach(function(ue){return ue.parent=H}),N=H}else if(ne(b)){ie=$?te(b.children):[];var L=new P(ie);ie.forEach(function(ue){return ue.parent=L}),b["x-mode"]&&(L["x-mode"]=b["x-mode"]),N=L}else{if(!z(b))throw new Error("Not implemented yet: ".concat(b.type));var Q=new A(b.name,b.data);null!=b["x-name"]&&(Q["x-name"]=b["x-name"],Q["x-publicId"]=b["x-publicId"],Q["x-systemId"]=b["x-systemId"]),N=Q}return N.startIndex=b.startIndex,N.endIndex=b.endIndex,null!=b.sourceCodeLocation&&(N.sourceCodeLocation=b.sourceCodeLocation),N}function te(b){for(var $=b.map(function(ie){return W(ie,!0)}),N=1;N<$.length;N++)$[N].prev=$[N-1],$[N-1].next=$[N];return $}C.Element=E,C.isTag=k,C.isCDATA=D,C.isText=I,C.isComment=B,C.isDirective=z,C.isDocument=ne,C.hasChildren=function Ce(b){return Object.prototype.hasOwnProperty.call(b,"children")},C.cloneNode=W},6534:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.getFeed=void 0;var le=G(4543),ce=G(9735);C.getFeed=function K(k){var D=A(E,k);return D?"feed"===D.name?function Y(k){var D,I=k.children,B={type:"atom",items:(0,ce.getElementsByTagName)("entry",I).map(function(Ce){var W,te=Ce.children,b={media:O(te)};P(b,"id","id",te),P(b,"title","title",te);var $=null===(W=A("link",te))||void 0===W?void 0:W.attribs.href;$&&(b.link=$);var N=w("summary",te)||w("content",te);N&&(b.description=N);var ie=w("updated",te);return ie&&(b.pubDate=new Date(ie)),b})};P(B,"id","id",I),P(B,"title","title",I);var z=null===(D=A("link",I))||void 0===D?void 0:D.attribs.href;z&&(B.link=z),P(B,"description","subtitle",I);var ne=w("updated",I);return ne&&(B.updated=new Date(ne)),P(B,"author","email",I,!0),B}(D):function q(k){var D,I,B=null!==(I=null===(D=A("channel",k.children))||void 0===D?void 0:D.children)&&void 0!==I?I:[],z={type:k.name.substr(0,3),id:"",items:(0,ce.getElementsByTagName)("item",k.children).map(function(Ce){var W=Ce.children,te={media:O(W)};P(te,"id","guid",W),P(te,"title","title",W),P(te,"link","link",W),P(te,"description","description",W);var b=w("pubDate",W);return b&&(te.pubDate=new Date(b)),te})};P(z,"title","title",B),P(z,"link","link",B),P(z,"description","description",B);var ne=w("lastBuildDate",B);return ne&&(z.updated=new Date(ne)),P(z,"author","managingEditor",B,!0),z}(D):null};var F=["url","type","lang"],M=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function O(k){return(0,ce.getElementsByTagName)("media:content",k).map(function(D){for(var I=D.attribs,B={medium:I.medium,isDefault:!!I.isDefault},z=0,ne=F;z{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.uniqueSort=C.compareDocumentPosition=C.removeSubsets=void 0;var le=G(2962);function K(q,F){var M=[],O=[];if(q===F)return 0;for(var A=(0,le.hasChildren)(q)?q:q.parent;A;)M.unshift(A),A=A.parent;for(A=(0,le.hasChildren)(F)?F:F.parent;A;)O.unshift(A),A=A.parent;for(var w=Math.min(M.length,O.length),P=0;Pk.indexOf(I)?E===F?20:4:E===q?10:2}C.removeSubsets=function ce(q){for(var F=q.length;--F>=0;){var M=q[F];if(F>0&&q.lastIndexOf(M,F-1)>=0)q.splice(F,1);else for(var O=M.parent;O;O=O.parent)if(q.includes(O)){q.splice(F,1);break}}return q},C.compareDocumentPosition=K,C.uniqueSort=function Y(q){return(q=q.filter(function(F,M,O){return!O.includes(F,M+1)})).sort(function(F,M){var O=K(F,M);return 2&O?-1:4&O?1:0}),q}},2155:function(Pe,C,G){"use strict";var le=this&&this.__createBinding||(Object.create?function(Y,q,F,M){void 0===M&&(M=F),Object.defineProperty(Y,M,{enumerable:!0,get:function(){return q[F]}})}:function(Y,q,F,M){void 0===M&&(M=F),Y[M]=q[F]}),ce=this&&this.__exportStar||function(Y,q){for(var F in Y)"default"!==F&&!Object.prototype.hasOwnProperty.call(q,F)&&le(q,Y,F)};Object.defineProperty(C,"__esModule",{value:!0}),C.hasChildren=C.isDocument=C.isComment=C.isText=C.isCDATA=C.isTag=void 0,ce(G(4543),C),ce(G(4757),C),ce(G(6525),C),ce(G(7237),C),ce(G(9735),C),ce(G(485),C),ce(G(6534),C);var K=G(2962);Object.defineProperty(C,"isTag",{enumerable:!0,get:function(){return K.isTag}}),Object.defineProperty(C,"isCDATA",{enumerable:!0,get:function(){return K.isCDATA}}),Object.defineProperty(C,"isText",{enumerable:!0,get:function(){return K.isText}}),Object.defineProperty(C,"isComment",{enumerable:!0,get:function(){return K.isComment}}),Object.defineProperty(C,"isDocument",{enumerable:!0,get:function(){return K.isDocument}}),Object.defineProperty(C,"hasChildren",{enumerable:!0,get:function(){return K.hasChildren}})},9735:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.getElementsByTagType=C.getElementsByTagName=C.getElementById=C.getElements=C.testElement=void 0;var le=G(2962),ce=G(7237),K={tag_name:function(E){return"function"==typeof E?function(k){return(0,le.isTag)(k)&&E(k.name)}:"*"===E?le.isTag:function(k){return(0,le.isTag)(k)&&k.name===E}},tag_type:function(E){return"function"==typeof E?function(k){return E(k.type)}:function(k){return k.type===E}},tag_contains:function(E){return"function"==typeof E?function(k){return(0,le.isText)(k)&&E(k.data)}:function(k){return(0,le.isText)(k)&&k.data===E}}};function Y(E,k){return"function"==typeof k?function(D){return(0,le.isTag)(D)&&k(D.attribs[E])}:function(D){return(0,le.isTag)(D)&&D.attribs[E]===k}}function q(E,k){return function(D){return E(D)||k(D)}}function F(E){var k=Object.keys(E).map(function(D){var I=E[D];return Object.prototype.hasOwnProperty.call(K,D)?K[D](I):Y(D,I)});return 0===k.length?null:k.reduce(q)}C.testElement=function M(E,k){var D=F(E);return!D||D(k)},C.getElements=function O(E,k,D,I){void 0===I&&(I=1/0);var B=F(E);return B?(0,ce.filter)(B,k,D,I):[]},C.getElementById=function A(E,k,D){return void 0===D&&(D=!0),Array.isArray(k)||(k=[k]),(0,ce.findOne)(Y("id",E),k,D)},C.getElementsByTagName=function w(E,k,D,I){return void 0===D&&(D=!0),void 0===I&&(I=1/0),(0,ce.filter)(K.tag_name(E),k,D,I)},C.getElementsByTagType=function P(E,k,D,I){return void 0===D&&(D=!0),void 0===I&&(I=1/0),(0,ce.filter)(K.tag_type(E),k,D,I)}},6525:(Pe,C)=>{"use strict";function G(F){if(F.prev&&(F.prev.next=F.next),F.next&&(F.next.prev=F.prev),F.parent){var M=F.parent.children;M.splice(M.lastIndexOf(F),1)}}Object.defineProperty(C,"__esModule",{value:!0}),C.prepend=C.prependChild=C.append=C.appendChild=C.replaceElement=C.removeElement=void 0,C.removeElement=G,C.replaceElement=function le(F,M){var O=M.prev=F.prev;O&&(O.next=M);var A=M.next=F.next;A&&(A.prev=M);var w=M.parent=F.parent;if(w){var P=w.children;P[P.lastIndexOf(F)]=M}},C.appendChild=function ce(F,M){if(G(M),M.next=null,M.parent=F,F.children.push(M)>1){var O=F.children[F.children.length-2];O.next=M,M.prev=O}else M.prev=null},C.append=function K(F,M){G(M);var O=F.parent,A=F.next;if(M.next=A,M.prev=F,F.next=M,M.parent=O,A){if(A.prev=M,O){var w=O.children;w.splice(w.lastIndexOf(A),0,M)}}else O&&O.children.push(M)},C.prependChild=function Y(F,M){if(G(M),M.parent=F,M.prev=null,1!==F.children.unshift(M)){var O=F.children[1];O.prev=M,M.next=O}else M.next=null},C.prepend=function q(F,M){G(M);var O=F.parent;if(O){var A=O.children;A.splice(A.indexOf(F),0,M)}F.prev&&(F.prev.next=M),M.parent=O,M.prev=F.prev,M.next=F,F.prev=M}},7237:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.findAll=C.existsOne=C.findOne=C.findOneChild=C.find=C.filter=void 0;var le=G(2962);function K(O,A,w,P){for(var E=[],k=0,D=A;k0){var B=K(O,I.children,w,P);if(E.push.apply(E,B),(P-=B.length)<=0)break}}return E}C.filter=function ce(O,A,w,P){return void 0===w&&(w=!0),void 0===P&&(P=1/0),Array.isArray(A)||(A=[A]),K(O,A,w,P)},C.find=K,C.findOneChild=function Y(O,A){return A.find(O)},C.findOne=function q(O,A,w){void 0===w&&(w=!0);for(var P=null,E=0;E0&&(P=q(O,k.children)))}return P},C.existsOne=function F(O,A){return A.some(function(w){return(0,le.isTag)(w)&&(O(w)||w.children.length>0&&F(O,w.children))})},C.findAll=function M(O,A){for(var w,k,P=[],E=A.filter(le.isTag);k=E.shift();){var D=null===(w=k.children)||void 0===w?void 0:w.filter(le.isTag);D&&D.length>0&&E.unshift.apply(E,D),O(k)&&P.push(k)}return P}},4543:function(Pe,C,G){"use strict";var le=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(C,"__esModule",{value:!0}),C.innerText=C.textContent=C.getText=C.getInnerHTML=C.getOuterHTML=void 0;var ce=G(2962),K=le(G(3192)),Y=G(6316);function q(w,P){return(0,K.default)(w,P)}C.getOuterHTML=q,C.getInnerHTML=function F(w,P){return(0,ce.hasChildren)(w)?w.children.map(function(E){return q(E,P)}).join(""):""},C.getText=function M(w){return Array.isArray(w)?w.map(M).join(""):(0,ce.isTag)(w)?"br"===w.name?"\n":M(w.children):(0,ce.isCDATA)(w)?M(w.children):(0,ce.isText)(w)?w.data:""},C.textContent=function O(w){return Array.isArray(w)?w.map(O).join(""):(0,ce.hasChildren)(w)&&!(0,ce.isComment)(w)?O(w.children):(0,ce.isText)(w)?w.data:""},C.innerText=function A(w){return Array.isArray(w)?w.map(A).join(""):(0,ce.hasChildren)(w)&&(w.type===Y.ElementType.Tag||(0,ce.isCDATA)(w))?A(w.children):(0,ce.isText)(w)?w.data:""}},4757:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.prevElementSibling=C.nextElementSibling=C.getName=C.hasAttrib=C.getAttributeValue=C.getSiblings=C.getParent=C.getChildren=void 0;var le=G(2962),ce=[];function K(P){var E;return null!==(E=P.children)&&void 0!==E?E:ce}function Y(P){return P.parent||null}C.getChildren=K,C.getParent=Y,C.getSiblings=function q(P){var D=Y(P);if(null!=D)return K(D);for(var I=[P],B=P.prev,z=P.next;null!=B;)I.unshift(B),B=B.prev;for(;null!=z;)I.push(z),z=z.next;return I},C.getAttributeValue=function F(P,E){var k;return null===(k=P.attribs)||void 0===k?void 0:k[E]},C.hasAttrib=function M(P,E){return null!=P.attribs&&Object.prototype.hasOwnProperty.call(P.attribs,E)&&null!=P.attribs[E]},C.getName=function O(P){return P.name},C.nextElementSibling=function A(P){for(var k=P.next;null!==k&&!(0,le.isTag)(k);)k=k.next;return k},C.prevElementSibling=function w(P){for(var k=P.prev;null!==k&&!(0,le.isTag)(k);)k=k.prev;return k}},547:function(Pe,C,G){"use strict";var le=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(C,"__esModule",{value:!0}),C.decodeHTML=C.decodeHTMLStrict=C.decodeXML=void 0;var ce=le(G(9323)),K=le(G(9591)),Y=le(G(2586)),q=le(G(672)),F=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function M(w){var P=A(w);return function(E){return String(E).replace(F,P)}}C.decodeXML=M(Y.default),C.decodeHTMLStrict=M(ce.default);var O=function(w,P){return w65535&&(q-=65536,F+=String.fromCharCode(q>>>10&1023|55296),q=56320|1023&q),F+String.fromCharCode(q)};C.default=function Y(q){return q>=55296&&q<=57343||q>1114111?"\ufffd":(q in ce.default&&(q=ce.default[q]),K(q))}},3854:function(Pe,C,G){"use strict";var le=this&&this.__importDefault||function(ne){return ne&&ne.__esModule?ne:{default:ne}};Object.defineProperty(C,"__esModule",{value:!0}),C.escapeUTF8=C.escape=C.encodeNonAsciiHTML=C.encodeHTML=C.encodeXML=void 0;var K=O(le(G(2586)).default),Y=A(K);C.encodeXML=z(K);var F=O(le(G(9323)).default),M=A(F);function O(ne){return Object.keys(ne).sort().reduce(function(Ce,W){return Ce[ne[W]]="&"+W+";",Ce},{})}function A(ne){for(var Ce=[],W=[],te=0,b=Object.keys(ne);te1?P(ne):ne.charCodeAt(0)).toString(16).toUpperCase()+";"}var D=new RegExp(Y.source+"|"+w.source,"g");function z(ne){return function(Ce){return Ce.replace(D,function(W){return ne[W]||E(W)})}}C.escape=function I(ne){return ne.replace(D,E)},C.escapeUTF8=function B(ne){return ne.replace(Y,E)}},9673:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.decodeXMLStrict=C.decodeHTML5Strict=C.decodeHTML4Strict=C.decodeHTML5=C.decodeHTML4=C.decodeHTMLStrict=C.decodeHTML=C.decodeXML=C.encodeHTML5=C.encodeHTML4=C.escapeUTF8=C.escape=C.encodeNonAsciiHTML=C.encodeHTML=C.encodeXML=C.encode=C.decodeStrict=C.decode=void 0;var le=G(547),ce=G(3854);C.decode=function K(O,A){return(!A||A<=0?le.decodeXML:le.decodeHTML)(O)},C.decodeStrict=function Y(O,A){return(!A||A<=0?le.decodeXML:le.decodeHTMLStrict)(O)},C.encode=function q(O,A){return(!A||A<=0?ce.encodeXML:ce.encodeHTML)(O)};var F=G(3854);Object.defineProperty(C,"encodeXML",{enumerable:!0,get:function(){return F.encodeXML}}),Object.defineProperty(C,"encodeHTML",{enumerable:!0,get:function(){return F.encodeHTML}}),Object.defineProperty(C,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return F.encodeNonAsciiHTML}}),Object.defineProperty(C,"escape",{enumerable:!0,get:function(){return F.escape}}),Object.defineProperty(C,"escapeUTF8",{enumerable:!0,get:function(){return F.escapeUTF8}}),Object.defineProperty(C,"encodeHTML4",{enumerable:!0,get:function(){return F.encodeHTML}}),Object.defineProperty(C,"encodeHTML5",{enumerable:!0,get:function(){return F.encodeHTML}});var M=G(547);Object.defineProperty(C,"decodeXML",{enumerable:!0,get:function(){return M.decodeXML}}),Object.defineProperty(C,"decodeHTML",{enumerable:!0,get:function(){return M.decodeHTML}}),Object.defineProperty(C,"decodeHTMLStrict",{enumerable:!0,get:function(){return M.decodeHTMLStrict}}),Object.defineProperty(C,"decodeHTML4",{enumerable:!0,get:function(){return M.decodeHTML}}),Object.defineProperty(C,"decodeHTML5",{enumerable:!0,get:function(){return M.decodeHTML}}),Object.defineProperty(C,"decodeHTML4Strict",{enumerable:!0,get:function(){return M.decodeHTMLStrict}}),Object.defineProperty(C,"decodeHTML5Strict",{enumerable:!0,get:function(){return M.decodeHTMLStrict}}),Object.defineProperty(C,"decodeXMLStrict",{enumerable:!0,get:function(){return M.decodeXML}})},3537:function(Pe,C,G){var le;Pe=G.nmd(Pe),function(ce){"object"==typeof global&&global;var F=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,M=/[\x01-\x7F]/g,O=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,A=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,w={"\xad":"shy","\u200c":"zwnj","\u200d":"zwj","\u200e":"lrm","\u2063":"ic","\u2062":"it","\u2061":"af","\u200f":"rlm","\u200b":"ZeroWidthSpace","\u2060":"NoBreak","\u0311":"DownBreve","\u20db":"tdot","\u20dc":"DotDot","\t":"Tab","\n":"NewLine","\u2008":"puncsp","\u205f":"MediumSpace","\u2009":"thinsp","\u200a":"hairsp","\u2004":"emsp13","\u2002":"ensp","\u2005":"emsp14","\u2003":"emsp","\u2007":"numsp","\xa0":"nbsp","\u205f\u200a":"ThickSpace","\u203e":"oline",_:"lowbar","\u2010":"dash","\u2013":"ndash","\u2014":"mdash","\u2015":"horbar",",":"comma",";":"semi","\u204f":"bsemi",":":"colon","\u2a74":"Colone","!":"excl","\xa1":"iexcl","?":"quest","\xbf":"iquest",".":"period","\u2025":"nldr","\u2026":"mldr","\xb7":"middot","'":"apos","\u2018":"lsquo","\u2019":"rsquo","\u201a":"sbquo","\u2039":"lsaquo","\u203a":"rsaquo",'"':"quot","\u201c":"ldquo","\u201d":"rdquo","\u201e":"bdquo","\xab":"laquo","\xbb":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","\u2308":"lceil","\u2309":"rceil","\u230a":"lfloor","\u230b":"rfloor","\u2985":"lopar","\u2986":"ropar","\u298b":"lbrke","\u298c":"rbrke","\u298d":"lbrkslu","\u298e":"rbrksld","\u298f":"lbrksld","\u2990":"rbrkslu","\u2991":"langd","\u2992":"rangd","\u2993":"lparlt","\u2994":"rpargt","\u2995":"gtlPar","\u2996":"ltrPar","\u27e6":"lobrk","\u27e7":"robrk","\u27e8":"lang","\u27e9":"rang","\u27ea":"Lang","\u27eb":"Rang","\u27ec":"loang","\u27ed":"roang","\u2772":"lbbrk","\u2773":"rbbrk","\u2016":"Vert","\xa7":"sect","\xb6":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","\u2030":"permil","\u2031":"pertenk","\u2020":"dagger","\u2021":"Dagger","\u2022":"bull","\u2043":"hybull","\u2032":"prime","\u2033":"Prime","\u2034":"tprime","\u2057":"qprime","\u2035":"bprime","\u2041":"caret","`":"grave","\xb4":"acute","\u02dc":"tilde","^":"Hat","\xaf":"macr","\u02d8":"breve","\u02d9":"dot","\xa8":"die","\u02da":"ring","\u02dd":"dblac","\xb8":"cedil","\u02db":"ogon",\u02c6:"circ",\u02c7:"caron","\xb0":"deg","\xa9":"copy","\xae":"reg","\u2117":"copysr",\u2118:"wp","\u211e":"rx","\u2127":"mho","\u2129":"iiota","\u2190":"larr","\u219a":"nlarr","\u2192":"rarr","\u219b":"nrarr","\u2191":"uarr","\u2193":"darr","\u2194":"harr","\u21ae":"nharr","\u2195":"varr","\u2196":"nwarr","\u2197":"nearr","\u2198":"searr","\u2199":"swarr","\u219d":"rarrw","\u219d\u0338":"nrarrw","\u219e":"Larr","\u219f":"Uarr","\u21a0":"Rarr","\u21a1":"Darr","\u21a2":"larrtl","\u21a3":"rarrtl","\u21a4":"mapstoleft","\u21a5":"mapstoup","\u21a6":"map","\u21a7":"mapstodown","\u21a9":"larrhk","\u21aa":"rarrhk","\u21ab":"larrlp","\u21ac":"rarrlp","\u21ad":"harrw","\u21b0":"lsh","\u21b1":"rsh","\u21b2":"ldsh","\u21b3":"rdsh","\u21b5":"crarr","\u21b6":"cularr","\u21b7":"curarr","\u21ba":"olarr","\u21bb":"orarr","\u21bc":"lharu","\u21bd":"lhard","\u21be":"uharr","\u21bf":"uharl","\u21c0":"rharu","\u21c1":"rhard","\u21c2":"dharr","\u21c3":"dharl","\u21c4":"rlarr","\u21c5":"udarr","\u21c6":"lrarr","\u21c7":"llarr","\u21c8":"uuarr","\u21c9":"rrarr","\u21ca":"ddarr","\u21cb":"lrhar","\u21cc":"rlhar","\u21d0":"lArr","\u21cd":"nlArr","\u21d1":"uArr","\u21d2":"rArr","\u21cf":"nrArr","\u21d3":"dArr","\u21d4":"iff","\u21ce":"nhArr","\u21d5":"vArr","\u21d6":"nwArr","\u21d7":"neArr","\u21d8":"seArr","\u21d9":"swArr","\u21da":"lAarr","\u21db":"rAarr","\u21dd":"zigrarr","\u21e4":"larrb","\u21e5":"rarrb","\u21f5":"duarr","\u21fd":"loarr","\u21fe":"roarr","\u21ff":"hoarr","\u2200":"forall","\u2201":"comp","\u2202":"part","\u2202\u0338":"npart","\u2203":"exist","\u2204":"nexist","\u2205":"empty","\u2207":"Del","\u2208":"in","\u2209":"notin","\u220b":"ni","\u220c":"notni","\u03f6":"bepsi","\u220f":"prod","\u2210":"coprod","\u2211":"sum","+":"plus","\xb1":"pm","\xf7":"div","\xd7":"times","<":"lt","\u226e":"nlt","<\u20d2":"nvlt","=":"equals","\u2260":"ne","=\u20e5":"bne","\u2a75":"Equal",">":"gt","\u226f":"ngt",">\u20d2":"nvgt","\xac":"not","|":"vert","\xa6":"brvbar","\u2212":"minus","\u2213":"mp","\u2214":"plusdo","\u2044":"frasl","\u2216":"setmn","\u2217":"lowast","\u2218":"compfn","\u221a":"Sqrt","\u221d":"prop","\u221e":"infin","\u221f":"angrt","\u2220":"ang","\u2220\u20d2":"nang","\u2221":"angmsd","\u2222":"angsph","\u2223":"mid","\u2224":"nmid","\u2225":"par","\u2226":"npar","\u2227":"and","\u2228":"or","\u2229":"cap","\u2229\ufe00":"caps","\u222a":"cup","\u222a\ufe00":"cups","\u222b":"int","\u222c":"Int","\u222d":"tint","\u2a0c":"qint","\u222e":"oint","\u222f":"Conint","\u2230":"Cconint","\u2231":"cwint","\u2232":"cwconint","\u2233":"awconint","\u2234":"there4","\u2235":"becaus","\u2236":"ratio","\u2237":"Colon","\u2238":"minusd","\u223a":"mDDot","\u223b":"homtht","\u223c":"sim","\u2241":"nsim","\u223c\u20d2":"nvsim","\u223d":"bsim","\u223d\u0331":"race","\u223e":"ac","\u223e\u0333":"acE","\u223f":"acd","\u2240":"wr","\u2242":"esim","\u2242\u0338":"nesim","\u2243":"sime","\u2244":"nsime","\u2245":"cong","\u2247":"ncong","\u2246":"simne","\u2248":"ap","\u2249":"nap","\u224a":"ape","\u224b":"apid","\u224b\u0338":"napid","\u224c":"bcong","\u224d":"CupCap","\u226d":"NotCupCap","\u224d\u20d2":"nvap","\u224e":"bump","\u224e\u0338":"nbump","\u224f":"bumpe","\u224f\u0338":"nbumpe","\u2250":"doteq","\u2250\u0338":"nedot","\u2251":"eDot","\u2252":"efDot","\u2253":"erDot","\u2254":"colone","\u2255":"ecolon","\u2256":"ecir","\u2257":"cire","\u2259":"wedgeq","\u225a":"veeeq","\u225c":"trie","\u225f":"equest","\u2261":"equiv","\u2262":"nequiv","\u2261\u20e5":"bnequiv","\u2264":"le","\u2270":"nle","\u2264\u20d2":"nvle","\u2265":"ge","\u2271":"nge","\u2265\u20d2":"nvge","\u2266":"lE","\u2266\u0338":"nlE","\u2267":"gE","\u2267\u0338":"ngE","\u2268\ufe00":"lvnE","\u2268":"lnE","\u2269":"gnE","\u2269\ufe00":"gvnE","\u226a":"ll","\u226a\u0338":"nLtv","\u226a\u20d2":"nLt","\u226b":"gg","\u226b\u0338":"nGtv","\u226b\u20d2":"nGt","\u226c":"twixt","\u2272":"lsim","\u2274":"nlsim","\u2273":"gsim","\u2275":"ngsim","\u2276":"lg","\u2278":"ntlg","\u2277":"gl","\u2279":"ntgl","\u227a":"pr","\u2280":"npr","\u227b":"sc","\u2281":"nsc","\u227c":"prcue","\u22e0":"nprcue","\u227d":"sccue","\u22e1":"nsccue","\u227e":"prsim","\u227f":"scsim","\u227f\u0338":"NotSucceedsTilde","\u2282":"sub","\u2284":"nsub","\u2282\u20d2":"vnsub","\u2283":"sup","\u2285":"nsup","\u2283\u20d2":"vnsup","\u2286":"sube","\u2288":"nsube","\u2287":"supe","\u2289":"nsupe","\u228a\ufe00":"vsubne","\u228a":"subne","\u228b\ufe00":"vsupne","\u228b":"supne","\u228d":"cupdot","\u228e":"uplus","\u228f":"sqsub","\u228f\u0338":"NotSquareSubset","\u2290":"sqsup","\u2290\u0338":"NotSquareSuperset","\u2291":"sqsube","\u22e2":"nsqsube","\u2292":"sqsupe","\u22e3":"nsqsupe","\u2293":"sqcap","\u2293\ufe00":"sqcaps","\u2294":"sqcup","\u2294\ufe00":"sqcups","\u2295":"oplus","\u2296":"ominus","\u2297":"otimes","\u2298":"osol","\u2299":"odot","\u229a":"ocir","\u229b":"oast","\u229d":"odash","\u229e":"plusb","\u229f":"minusb","\u22a0":"timesb","\u22a1":"sdotb","\u22a2":"vdash","\u22ac":"nvdash","\u22a3":"dashv","\u22a4":"top","\u22a5":"bot","\u22a7":"models","\u22a8":"vDash","\u22ad":"nvDash","\u22a9":"Vdash","\u22ae":"nVdash","\u22aa":"Vvdash","\u22ab":"VDash","\u22af":"nVDash","\u22b0":"prurel","\u22b2":"vltri","\u22ea":"nltri","\u22b3":"vrtri","\u22eb":"nrtri","\u22b4":"ltrie","\u22ec":"nltrie","\u22b4\u20d2":"nvltrie","\u22b5":"rtrie","\u22ed":"nrtrie","\u22b5\u20d2":"nvrtrie","\u22b6":"origof","\u22b7":"imof","\u22b8":"mumap","\u22b9":"hercon","\u22ba":"intcal","\u22bb":"veebar","\u22bd":"barvee","\u22be":"angrtvb","\u22bf":"lrtri","\u22c0":"Wedge","\u22c1":"Vee","\u22c2":"xcap","\u22c3":"xcup","\u22c4":"diam","\u22c5":"sdot","\u22c6":"Star","\u22c7":"divonx","\u22c8":"bowtie","\u22c9":"ltimes","\u22ca":"rtimes","\u22cb":"lthree","\u22cc":"rthree","\u22cd":"bsime","\u22ce":"cuvee","\u22cf":"cuwed","\u22d0":"Sub","\u22d1":"Sup","\u22d2":"Cap","\u22d3":"Cup","\u22d4":"fork","\u22d5":"epar","\u22d6":"ltdot","\u22d7":"gtdot","\u22d8":"Ll","\u22d8\u0338":"nLl","\u22d9":"Gg","\u22d9\u0338":"nGg","\u22da\ufe00":"lesg","\u22da":"leg","\u22db":"gel","\u22db\ufe00":"gesl","\u22de":"cuepr","\u22df":"cuesc","\u22e6":"lnsim","\u22e7":"gnsim","\u22e8":"prnsim","\u22e9":"scnsim","\u22ee":"vellip","\u22ef":"ctdot","\u22f0":"utdot","\u22f1":"dtdot","\u22f2":"disin","\u22f3":"isinsv","\u22f4":"isins","\u22f5":"isindot","\u22f5\u0338":"notindot","\u22f6":"notinvc","\u22f7":"notinvb","\u22f9":"isinE","\u22f9\u0338":"notinE","\u22fa":"nisd","\u22fb":"xnis","\u22fc":"nis","\u22fd":"notnivc","\u22fe":"notnivb","\u2305":"barwed","\u2306":"Barwed","\u230c":"drcrop","\u230d":"dlcrop","\u230e":"urcrop","\u230f":"ulcrop","\u2310":"bnot","\u2312":"profline","\u2313":"profsurf","\u2315":"telrec","\u2316":"target","\u231c":"ulcorn","\u231d":"urcorn","\u231e":"dlcorn","\u231f":"drcorn","\u2322":"frown","\u2323":"smile","\u232d":"cylcty","\u232e":"profalar","\u2336":"topbot","\u233d":"ovbar","\u233f":"solbar","\u237c":"angzarr","\u23b0":"lmoust","\u23b1":"rmoust","\u23b4":"tbrk","\u23b5":"bbrk","\u23b6":"bbrktbrk","\u23dc":"OverParenthesis","\u23dd":"UnderParenthesis","\u23de":"OverBrace","\u23df":"UnderBrace","\u23e2":"trpezium","\u23e7":"elinters","\u2423":"blank","\u2500":"boxh","\u2502":"boxv","\u250c":"boxdr","\u2510":"boxdl","\u2514":"boxur","\u2518":"boxul","\u251c":"boxvr","\u2524":"boxvl","\u252c":"boxhd","\u2534":"boxhu","\u253c":"boxvh","\u2550":"boxH","\u2551":"boxV","\u2552":"boxdR","\u2553":"boxDr","\u2554":"boxDR","\u2555":"boxdL","\u2556":"boxDl","\u2557":"boxDL","\u2558":"boxuR","\u2559":"boxUr","\u255a":"boxUR","\u255b":"boxuL","\u255c":"boxUl","\u255d":"boxUL","\u255e":"boxvR","\u255f":"boxVr","\u2560":"boxVR","\u2561":"boxvL","\u2562":"boxVl","\u2563":"boxVL","\u2564":"boxHd","\u2565":"boxhD","\u2566":"boxHD","\u2567":"boxHu","\u2568":"boxhU","\u2569":"boxHU","\u256a":"boxvH","\u256b":"boxVh","\u256c":"boxVH","\u2580":"uhblk","\u2584":"lhblk","\u2588":"block","\u2591":"blk14","\u2592":"blk12","\u2593":"blk34","\u25a1":"squ","\u25aa":"squf","\u25ab":"EmptyVerySmallSquare","\u25ad":"rect","\u25ae":"marker","\u25b1":"fltns","\u25b3":"xutri","\u25b4":"utrif","\u25b5":"utri","\u25b8":"rtrif","\u25b9":"rtri","\u25bd":"xdtri","\u25be":"dtrif","\u25bf":"dtri","\u25c2":"ltrif","\u25c3":"ltri","\u25ca":"loz","\u25cb":"cir","\u25ec":"tridot","\u25ef":"xcirc","\u25f8":"ultri","\u25f9":"urtri","\u25fa":"lltri","\u25fb":"EmptySmallSquare","\u25fc":"FilledSmallSquare","\u2605":"starf","\u2606":"star","\u260e":"phone","\u2640":"female","\u2642":"male","\u2660":"spades","\u2663":"clubs","\u2665":"hearts","\u2666":"diams","\u266a":"sung","\u2713":"check","\u2717":"cross","\u2720":"malt","\u2736":"sext","\u2758":"VerticalSeparator","\u27c8":"bsolhsub","\u27c9":"suphsol","\u27f5":"xlarr","\u27f6":"xrarr","\u27f7":"xharr","\u27f8":"xlArr","\u27f9":"xrArr","\u27fa":"xhArr","\u27fc":"xmap","\u27ff":"dzigrarr","\u2902":"nvlArr","\u2903":"nvrArr","\u2904":"nvHarr","\u2905":"Map","\u290c":"lbarr","\u290d":"rbarr","\u290e":"lBarr","\u290f":"rBarr","\u2910":"RBarr","\u2911":"DDotrahd","\u2912":"UpArrowBar","\u2913":"DownArrowBar","\u2916":"Rarrtl","\u2919":"latail","\u291a":"ratail","\u291b":"lAtail","\u291c":"rAtail","\u291d":"larrfs","\u291e":"rarrfs","\u291f":"larrbfs","\u2920":"rarrbfs","\u2923":"nwarhk","\u2924":"nearhk","\u2925":"searhk","\u2926":"swarhk","\u2927":"nwnear","\u2928":"toea","\u2929":"tosa","\u292a":"swnwar","\u2933":"rarrc","\u2933\u0338":"nrarrc","\u2935":"cudarrr","\u2936":"ldca","\u2937":"rdca","\u2938":"cudarrl","\u2939":"larrpl","\u293c":"curarrm","\u293d":"cularrp","\u2945":"rarrpl","\u2948":"harrcir","\u2949":"Uarrocir","\u294a":"lurdshar","\u294b":"ldrushar","\u294e":"LeftRightVector","\u294f":"RightUpDownVector","\u2950":"DownLeftRightVector","\u2951":"LeftUpDownVector","\u2952":"LeftVectorBar","\u2953":"RightVectorBar","\u2954":"RightUpVectorBar","\u2955":"RightDownVectorBar","\u2956":"DownLeftVectorBar","\u2957":"DownRightVectorBar","\u2958":"LeftUpVectorBar","\u2959":"LeftDownVectorBar","\u295a":"LeftTeeVector","\u295b":"RightTeeVector","\u295c":"RightUpTeeVector","\u295d":"RightDownTeeVector","\u295e":"DownLeftTeeVector","\u295f":"DownRightTeeVector","\u2960":"LeftUpTeeVector","\u2961":"LeftDownTeeVector","\u2962":"lHar","\u2963":"uHar","\u2964":"rHar","\u2965":"dHar","\u2966":"luruhar","\u2967":"ldrdhar","\u2968":"ruluhar","\u2969":"rdldhar","\u296a":"lharul","\u296b":"llhard","\u296c":"rharul","\u296d":"lrhard","\u296e":"udhar","\u296f":"duhar","\u2970":"RoundImplies","\u2971":"erarr","\u2972":"simrarr","\u2973":"larrsim","\u2974":"rarrsim","\u2975":"rarrap","\u2976":"ltlarr","\u2978":"gtrarr","\u2979":"subrarr","\u297b":"suplarr","\u297c":"lfisht","\u297d":"rfisht","\u297e":"ufisht","\u297f":"dfisht","\u299a":"vzigzag","\u299c":"vangrt","\u299d":"angrtvbd","\u29a4":"ange","\u29a5":"range","\u29a6":"dwangle","\u29a7":"uwangle","\u29a8":"angmsdaa","\u29a9":"angmsdab","\u29aa":"angmsdac","\u29ab":"angmsdad","\u29ac":"angmsdae","\u29ad":"angmsdaf","\u29ae":"angmsdag","\u29af":"angmsdah","\u29b0":"bemptyv","\u29b1":"demptyv","\u29b2":"cemptyv","\u29b3":"raemptyv","\u29b4":"laemptyv","\u29b5":"ohbar","\u29b6":"omid","\u29b7":"opar","\u29b9":"operp","\u29bb":"olcross","\u29bc":"odsold","\u29be":"olcir","\u29bf":"ofcir","\u29c0":"olt","\u29c1":"ogt","\u29c2":"cirscir","\u29c3":"cirE","\u29c4":"solb","\u29c5":"bsolb","\u29c9":"boxbox","\u29cd":"trisb","\u29ce":"rtriltri","\u29cf":"LeftTriangleBar","\u29cf\u0338":"NotLeftTriangleBar","\u29d0":"RightTriangleBar","\u29d0\u0338":"NotRightTriangleBar","\u29dc":"iinfin","\u29dd":"infintie","\u29de":"nvinfin","\u29e3":"eparsl","\u29e4":"smeparsl","\u29e5":"eqvparsl","\u29eb":"lozf","\u29f4":"RuleDelayed","\u29f6":"dsol","\u2a00":"xodot","\u2a01":"xoplus","\u2a02":"xotime","\u2a04":"xuplus","\u2a06":"xsqcup","\u2a0d":"fpartint","\u2a10":"cirfnint","\u2a11":"awint","\u2a12":"rppolint","\u2a13":"scpolint","\u2a14":"npolint","\u2a15":"pointint","\u2a16":"quatint","\u2a17":"intlarhk","\u2a22":"pluscir","\u2a23":"plusacir","\u2a24":"simplus","\u2a25":"plusdu","\u2a26":"plussim","\u2a27":"plustwo","\u2a29":"mcomma","\u2a2a":"minusdu","\u2a2d":"loplus","\u2a2e":"roplus","\u2a2f":"Cross","\u2a30":"timesd","\u2a31":"timesbar","\u2a33":"smashp","\u2a34":"lotimes","\u2a35":"rotimes","\u2a36":"otimesas","\u2a37":"Otimes","\u2a38":"odiv","\u2a39":"triplus","\u2a3a":"triminus","\u2a3b":"tritime","\u2a3c":"iprod","\u2a3f":"amalg","\u2a40":"capdot","\u2a42":"ncup","\u2a43":"ncap","\u2a44":"capand","\u2a45":"cupor","\u2a46":"cupcap","\u2a47":"capcup","\u2a48":"cupbrcap","\u2a49":"capbrcup","\u2a4a":"cupcup","\u2a4b":"capcap","\u2a4c":"ccups","\u2a4d":"ccaps","\u2a50":"ccupssm","\u2a53":"And","\u2a54":"Or","\u2a55":"andand","\u2a56":"oror","\u2a57":"orslope","\u2a58":"andslope","\u2a5a":"andv","\u2a5b":"orv","\u2a5c":"andd","\u2a5d":"ord","\u2a5f":"wedbar","\u2a66":"sdote","\u2a6a":"simdot","\u2a6d":"congdot","\u2a6d\u0338":"ncongdot","\u2a6e":"easter","\u2a6f":"apacir","\u2a70":"apE","\u2a70\u0338":"napE","\u2a71":"eplus","\u2a72":"pluse","\u2a73":"Esim","\u2a77":"eDDot","\u2a78":"equivDD","\u2a79":"ltcir","\u2a7a":"gtcir","\u2a7b":"ltquest","\u2a7c":"gtquest","\u2a7d":"les","\u2a7d\u0338":"nles","\u2a7e":"ges","\u2a7e\u0338":"nges","\u2a7f":"lesdot","\u2a80":"gesdot","\u2a81":"lesdoto","\u2a82":"gesdoto","\u2a83":"lesdotor","\u2a84":"gesdotol","\u2a85":"lap","\u2a86":"gap","\u2a87":"lne","\u2a88":"gne","\u2a89":"lnap","\u2a8a":"gnap","\u2a8b":"lEg","\u2a8c":"gEl","\u2a8d":"lsime","\u2a8e":"gsime","\u2a8f":"lsimg","\u2a90":"gsiml","\u2a91":"lgE","\u2a92":"glE","\u2a93":"lesges","\u2a94":"gesles","\u2a95":"els","\u2a96":"egs","\u2a97":"elsdot","\u2a98":"egsdot","\u2a99":"el","\u2a9a":"eg","\u2a9d":"siml","\u2a9e":"simg","\u2a9f":"simlE","\u2aa0":"simgE","\u2aa1":"LessLess","\u2aa1\u0338":"NotNestedLessLess","\u2aa2":"GreaterGreater","\u2aa2\u0338":"NotNestedGreaterGreater","\u2aa4":"glj","\u2aa5":"gla","\u2aa6":"ltcc","\u2aa7":"gtcc","\u2aa8":"lescc","\u2aa9":"gescc","\u2aaa":"smt","\u2aab":"lat","\u2aac":"smte","\u2aac\ufe00":"smtes","\u2aad":"late","\u2aad\ufe00":"lates","\u2aae":"bumpE","\u2aaf":"pre","\u2aaf\u0338":"npre","\u2ab0":"sce","\u2ab0\u0338":"nsce","\u2ab3":"prE","\u2ab4":"scE","\u2ab5":"prnE","\u2ab6":"scnE","\u2ab7":"prap","\u2ab8":"scap","\u2ab9":"prnap","\u2aba":"scnap","\u2abb":"Pr","\u2abc":"Sc","\u2abd":"subdot","\u2abe":"supdot","\u2abf":"subplus","\u2ac0":"supplus","\u2ac1":"submult","\u2ac2":"supmult","\u2ac3":"subedot","\u2ac4":"supedot","\u2ac5":"subE","\u2ac5\u0338":"nsubE","\u2ac6":"supE","\u2ac6\u0338":"nsupE","\u2ac7":"subsim","\u2ac8":"supsim","\u2acb\ufe00":"vsubnE","\u2acb":"subnE","\u2acc\ufe00":"vsupnE","\u2acc":"supnE","\u2acf":"csub","\u2ad0":"csup","\u2ad1":"csube","\u2ad2":"csupe","\u2ad3":"subsup","\u2ad4":"supsub","\u2ad5":"subsub","\u2ad6":"supsup","\u2ad7":"suphsub","\u2ad8":"supdsub","\u2ad9":"forkv","\u2ada":"topfork","\u2adb":"mlcp","\u2ae4":"Dashv","\u2ae6":"Vdashl","\u2ae7":"Barv","\u2ae8":"vBar","\u2ae9":"vBarv","\u2aeb":"Vbar","\u2aec":"Not","\u2aed":"bNot","\u2aee":"rnmid","\u2aef":"cirmid","\u2af0":"midcir","\u2af1":"topcir","\u2af2":"nhpar","\u2af3":"parsim","\u2afd":"parsl","\u2afd\u20e5":"nparsl","\u266d":"flat","\u266e":"natur","\u266f":"sharp","\xa4":"curren","\xa2":"cent",$:"dollar","\xa3":"pound","\xa5":"yen","\u20ac":"euro","\xb9":"sup1","\xbd":"half","\u2153":"frac13","\xbc":"frac14","\u2155":"frac15","\u2159":"frac16","\u215b":"frac18","\xb2":"sup2","\u2154":"frac23","\u2156":"frac25","\xb3":"sup3","\xbe":"frac34","\u2157":"frac35","\u215c":"frac38","\u2158":"frac45","\u215a":"frac56","\u215d":"frac58","\u215e":"frac78",\u{1d4b6}:"ascr",\u{1d552}:"aopf",\u{1d51e}:"afr",\u{1d538}:"Aopf",\u{1d504}:"Afr",\u{1d49c}:"Ascr",\u00aa:"ordf",\u00e1:"aacute",\u00c1:"Aacute",\u00e0:"agrave",\u00c0:"Agrave",\u0103:"abreve",\u0102:"Abreve",\u00e2:"acirc",\u00c2:"Acirc",\u00e5:"aring",\u00c5:"angst",\u00e4:"auml",\u00c4:"Auml",\u00e3:"atilde",\u00c3:"Atilde",\u0105:"aogon",\u0104:"Aogon",\u0101:"amacr",\u0100:"Amacr",\u00e6:"aelig",\u00c6:"AElig",\u{1d4b7}:"bscr",\u{1d553}:"bopf",\u{1d51f}:"bfr",\u{1d539}:"Bopf",\u212c:"Bscr",\u{1d505}:"Bfr",\u{1d520}:"cfr",\u{1d4b8}:"cscr",\u{1d554}:"copf",\u212d:"Cfr",\u{1d49e}:"Cscr",\u2102:"Copf",\u0107:"cacute",\u0106:"Cacute",\u0109:"ccirc",\u0108:"Ccirc",\u010d:"ccaron",\u010c:"Ccaron",\u010b:"cdot",\u010a:"Cdot",\u00e7:"ccedil",\u00c7:"Ccedil","\u2105":"incare",\u{1d521}:"dfr",\u2146:"dd",\u{1d555}:"dopf",\u{1d4b9}:"dscr",\u{1d49f}:"Dscr",\u{1d507}:"Dfr",\u2145:"DD",\u{1d53b}:"Dopf",\u010f:"dcaron",\u010e:"Dcaron",\u0111:"dstrok",\u0110:"Dstrok",\u00f0:"eth",\u00d0:"ETH",\u2147:"ee",\u212f:"escr",\u{1d522}:"efr",\u{1d556}:"eopf",\u2130:"Escr",\u{1d508}:"Efr",\u{1d53c}:"Eopf",\u00e9:"eacute",\u00c9:"Eacute",\u00e8:"egrave",\u00c8:"Egrave",\u00ea:"ecirc",\u00ca:"Ecirc",\u011b:"ecaron",\u011a:"Ecaron",\u00eb:"euml",\u00cb:"Euml",\u0117:"edot",\u0116:"Edot",\u0119:"eogon",\u0118:"Eogon",\u0113:"emacr",\u0112:"Emacr",\u{1d523}:"ffr",\u{1d557}:"fopf",\u{1d4bb}:"fscr",\u{1d509}:"Ffr",\u{1d53d}:"Fopf",\u2131:"Fscr",\ufb00:"fflig",\ufb03:"ffilig",\ufb04:"ffllig",\ufb01:"filig",fj:"fjlig",\ufb02:"fllig",\u0192:"fnof",\u210a:"gscr",\u{1d558}:"gopf",\u{1d524}:"gfr",\u{1d4a2}:"Gscr",\u{1d53e}:"Gopf",\u{1d50a}:"Gfr",\u01f5:"gacute",\u011f:"gbreve",\u011e:"Gbreve",\u011d:"gcirc",\u011c:"Gcirc",\u0121:"gdot",\u0120:"Gdot",\u0122:"Gcedil",\u{1d525}:"hfr",\u210e:"planckh",\u{1d4bd}:"hscr",\u{1d559}:"hopf",\u210b:"Hscr",\u210c:"Hfr",\u210d:"Hopf",\u0125:"hcirc",\u0124:"Hcirc",\u210f:"hbar",\u0127:"hstrok",\u0126:"Hstrok",\u{1d55a}:"iopf",\u{1d526}:"ifr",\u{1d4be}:"iscr",\u2148:"ii",\u{1d540}:"Iopf",\u2110:"Iscr",\u2111:"Im",\u00ed:"iacute",\u00cd:"Iacute",\u00ec:"igrave",\u00cc:"Igrave",\u00ee:"icirc",\u00ce:"Icirc",\u00ef:"iuml",\u00cf:"Iuml",\u0129:"itilde",\u0128:"Itilde",\u0130:"Idot",\u012f:"iogon",\u012e:"Iogon",\u012b:"imacr",\u012a:"Imacr",\u0133:"ijlig",\u0132:"IJlig",\u0131:"imath",\u{1d4bf}:"jscr",\u{1d55b}:"jopf",\u{1d527}:"jfr",\u{1d4a5}:"Jscr",\u{1d50d}:"Jfr",\u{1d541}:"Jopf",\u0135:"jcirc",\u0134:"Jcirc",\u0237:"jmath",\u{1d55c}:"kopf",\u{1d4c0}:"kscr",\u{1d528}:"kfr",\u{1d4a6}:"Kscr",\u{1d542}:"Kopf",\u{1d50e}:"Kfr",\u0137:"kcedil",\u0136:"Kcedil",\u{1d529}:"lfr",\u{1d4c1}:"lscr",\u2113:"ell",\u{1d55d}:"lopf",\u2112:"Lscr",\u{1d50f}:"Lfr",\u{1d543}:"Lopf",\u013a:"lacute",\u0139:"Lacute",\u013e:"lcaron",\u013d:"Lcaron",\u013c:"lcedil",\u013b:"Lcedil",\u0142:"lstrok",\u0141:"Lstrok",\u0140:"lmidot",\u013f:"Lmidot",\u{1d52a}:"mfr",\u{1d55e}:"mopf",\u{1d4c2}:"mscr",\u{1d510}:"Mfr",\u{1d544}:"Mopf",\u2133:"Mscr",\u{1d52b}:"nfr",\u{1d55f}:"nopf",\u{1d4c3}:"nscr",\u2115:"Nopf",\u{1d4a9}:"Nscr",\u{1d511}:"Nfr",\u0144:"nacute",\u0143:"Nacute",\u0148:"ncaron",\u0147:"Ncaron",\u00f1:"ntilde",\u00d1:"Ntilde",\u0146:"ncedil",\u0145:"Ncedil","\u2116":"numero",\u014b:"eng",\u014a:"ENG",\u{1d560}:"oopf",\u{1d52c}:"ofr",\u2134:"oscr",\u{1d4aa}:"Oscr",\u{1d512}:"Ofr",\u{1d546}:"Oopf",\u00ba:"ordm",\u00f3:"oacute",\u00d3:"Oacute",\u00f2:"ograve",\u00d2:"Ograve",\u00f4:"ocirc",\u00d4:"Ocirc",\u00f6:"ouml",\u00d6:"Ouml",\u0151:"odblac",\u0150:"Odblac",\u00f5:"otilde",\u00d5:"Otilde",\u00f8:"oslash",\u00d8:"Oslash",\u014d:"omacr",\u014c:"Omacr",\u0153:"oelig",\u0152:"OElig",\u{1d52d}:"pfr",\u{1d4c5}:"pscr",\u{1d561}:"popf",\u2119:"Popf",\u{1d513}:"Pfr",\u{1d4ab}:"Pscr",\u{1d562}:"qopf",\u{1d52e}:"qfr",\u{1d4c6}:"qscr",\u{1d4ac}:"Qscr",\u{1d514}:"Qfr",\u211a:"Qopf",\u0138:"kgreen",\u{1d52f}:"rfr",\u{1d563}:"ropf",\u{1d4c7}:"rscr",\u211b:"Rscr",\u211c:"Re",\u211d:"Ropf",\u0155:"racute",\u0154:"Racute",\u0159:"rcaron",\u0158:"Rcaron",\u0157:"rcedil",\u0156:"Rcedil",\u{1d564}:"sopf",\u{1d4c8}:"sscr",\u{1d530}:"sfr",\u{1d54a}:"Sopf",\u{1d516}:"Sfr",\u{1d4ae}:"Sscr","\u24c8":"oS",\u015b:"sacute",\u015a:"Sacute",\u015d:"scirc",\u015c:"Scirc",\u0161:"scaron",\u0160:"Scaron",\u015f:"scedil",\u015e:"Scedil",\u00df:"szlig",\u{1d531}:"tfr",\u{1d4c9}:"tscr",\u{1d565}:"topf",\u{1d4af}:"Tscr",\u{1d517}:"Tfr",\u{1d54b}:"Topf",\u0165:"tcaron",\u0164:"Tcaron",\u0163:"tcedil",\u0162:"Tcedil","\u2122":"trade",\u0167:"tstrok",\u0166:"Tstrok",\u{1d4ca}:"uscr",\u{1d566}:"uopf",\u{1d532}:"ufr",\u{1d54c}:"Uopf",\u{1d518}:"Ufr",\u{1d4b0}:"Uscr",\u00fa:"uacute",\u00da:"Uacute",\u00f9:"ugrave",\u00d9:"Ugrave",\u016d:"ubreve",\u016c:"Ubreve",\u00fb:"ucirc",\u00db:"Ucirc",\u016f:"uring",\u016e:"Uring",\u00fc:"uuml",\u00dc:"Uuml",\u0171:"udblac",\u0170:"Udblac",\u0169:"utilde",\u0168:"Utilde",\u0173:"uogon",\u0172:"Uogon",\u016b:"umacr",\u016a:"Umacr",\u{1d533}:"vfr",\u{1d567}:"vopf",\u{1d4cb}:"vscr",\u{1d519}:"Vfr",\u{1d54d}:"Vopf",\u{1d4b1}:"Vscr",\u{1d568}:"wopf",\u{1d4cc}:"wscr",\u{1d534}:"wfr",\u{1d4b2}:"Wscr",\u{1d54e}:"Wopf",\u{1d51a}:"Wfr",\u0175:"wcirc",\u0174:"Wcirc",\u{1d535}:"xfr",\u{1d4cd}:"xscr",\u{1d569}:"xopf",\u{1d54f}:"Xopf",\u{1d51b}:"Xfr",\u{1d4b3}:"Xscr",\u{1d536}:"yfr",\u{1d4ce}:"yscr",\u{1d56a}:"yopf",\u{1d4b4}:"Yscr",\u{1d51c}:"Yfr",\u{1d550}:"Yopf",\u00fd:"yacute",\u00dd:"Yacute",\u0177:"ycirc",\u0176:"Ycirc",\u00ff:"yuml",\u0178:"Yuml",\u{1d4cf}:"zscr",\u{1d537}:"zfr",\u{1d56b}:"zopf",\u2128:"Zfr",\u2124:"Zopf",\u{1d4b5}:"Zscr",\u017a:"zacute",\u0179:"Zacute",\u017e:"zcaron",\u017d:"Zcaron",\u017c:"zdot",\u017b:"Zdot",\u01b5:"imped",\u00fe:"thorn",\u00de:"THORN",\u0149:"napos",\u03b1:"alpha",\u0391:"Alpha",\u03b2:"beta",\u0392:"Beta",\u03b3:"gamma",\u0393:"Gamma",\u03b4:"delta",\u0394:"Delta",\u03b5:"epsi",\u03f5:"epsiv",\u0395:"Epsilon",\u03dd:"gammad",\u03dc:"Gammad",\u03b6:"zeta",\u0396:"Zeta",\u03b7:"eta",\u0397:"Eta",\u03b8:"theta",\u03d1:"thetav",\u0398:"Theta",\u03b9:"iota",\u0399:"Iota",\u03ba:"kappa",\u03f0:"kappav",\u039a:"Kappa",\u03bb:"lambda",\u039b:"Lambda",\u03bc:"mu",\u00b5:"micro",\u039c:"Mu",\u03bd:"nu",\u039d:"Nu",\u03be:"xi",\u039e:"Xi",\u03bf:"omicron",\u039f:"Omicron",\u03c0:"pi",\u03d6:"piv",\u03a0:"Pi",\u03c1:"rho",\u03f1:"rhov",\u03a1:"Rho",\u03c3:"sigma",\u03a3:"Sigma",\u03c2:"sigmaf",\u03c4:"tau",\u03a4:"Tau",\u03c5:"upsi",\u03a5:"Upsilon",\u03d2:"Upsi",\u03c6:"phi",\u03d5:"phiv",\u03a6:"Phi",\u03c7:"chi",\u03a7:"Chi",\u03c8:"psi",\u03a8:"Psi",\u03c9:"omega",\u03a9:"ohm",\u0430:"acy",\u0410:"Acy",\u0431:"bcy",\u0411:"Bcy",\u0432:"vcy",\u0412:"Vcy",\u0433:"gcy",\u0413:"Gcy",\u0453:"gjcy",\u0403:"GJcy",\u0434:"dcy",\u0414:"Dcy",\u0452:"djcy",\u0402:"DJcy",\u0435:"iecy",\u0415:"IEcy",\u0451:"iocy",\u0401:"IOcy",\u0454:"jukcy",\u0404:"Jukcy",\u0436:"zhcy",\u0416:"ZHcy",\u0437:"zcy",\u0417:"Zcy",\u0455:"dscy",\u0405:"DScy",\u0438:"icy",\u0418:"Icy",\u0456:"iukcy",\u0406:"Iukcy",\u0457:"yicy",\u0407:"YIcy",\u0439:"jcy",\u0419:"Jcy",\u0458:"jsercy",\u0408:"Jsercy",\u043a:"kcy",\u041a:"Kcy",\u045c:"kjcy",\u040c:"KJcy",\u043b:"lcy",\u041b:"Lcy",\u0459:"ljcy",\u0409:"LJcy",\u043c:"mcy",\u041c:"Mcy",\u043d:"ncy",\u041d:"Ncy",\u045a:"njcy",\u040a:"NJcy",\u043e:"ocy",\u041e:"Ocy",\u043f:"pcy",\u041f:"Pcy",\u0440:"rcy",\u0420:"Rcy",\u0441:"scy",\u0421:"Scy",\u0442:"tcy",\u0422:"Tcy",\u045b:"tshcy",\u040b:"TSHcy",\u0443:"ucy",\u0423:"Ucy",\u045e:"ubrcy",\u040e:"Ubrcy",\u0444:"fcy",\u0424:"Fcy",\u0445:"khcy",\u0425:"KHcy",\u0446:"tscy",\u0426:"TScy",\u0447:"chcy",\u0427:"CHcy",\u045f:"dzcy",\u040f:"DZcy",\u0448:"shcy",\u0428:"SHcy",\u0449:"shchcy",\u0429:"SHCHcy",\u044a:"hardcy",\u042a:"HARDcy",\u044b:"ycy",\u042b:"Ycy",\u044c:"softcy",\u042c:"SOFTcy",\u044d:"ecy",\u042d:"Ecy",\u044e:"yucy",\u042e:"YUcy",\u044f:"yacy",\u042f:"YAcy",\u2135:"aleph",\u2136:"beth",\u2137:"gimel",\u2138:"daleth"},P=/["&'<>`]/g,E={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},k=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,D=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,I=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,B={aacute:"\xe1",Aacute:"\xc1",abreve:"\u0103",Abreve:"\u0102",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",acy:"\u0430",Acy:"\u0410",aelig:"\xe6",AElig:"\xc6",af:"\u2061",afr:"\u{1d51e}",Afr:"\u{1d504}",agrave:"\xe0",Agrave:"\xc0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",Alpha:"\u0391",amacr:"\u0101",Amacr:"\u0100",amalg:"\u2a3f",amp:"&",AMP:"&",and:"\u2227",And:"\u2a53",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",aogon:"\u0105",Aogon:"\u0104",aopf:"\u{1d552}",Aopf:"\u{1d538}",ap:"\u2248",apacir:"\u2a6f",ape:"\u224a",apE:"\u2a70",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",aring:"\xe5",Aring:"\xc5",ascr:"\u{1d4b6}",Ascr:"\u{1d49c}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",bcy:"\u0431",Bcy:"\u0411",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",beta:"\u03b2",Beta:"\u0392",beth:"\u2136",between:"\u226c",bfr:"\u{1d51f}",Bfr:"\u{1d505}",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bNot:"\u2aed",bopf:"\u{1d553}",Bopf:"\u{1d539}",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxhD:"\u2565",boxHd:"\u2564",boxHD:"\u2566",boxhu:"\u2534",boxhU:"\u2568",boxHu:"\u2567",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",Breve:"\u02d8",brvbar:"\xa6",bscr:"\u{1d4b7}",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpe:"\u224f",bumpE:"\u2aae",bumpeq:"\u224f",Bumpeq:"\u224e",cacute:"\u0107",Cacute:"\u0106",cap:"\u2229",Cap:"\u22d2",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",ccaron:"\u010d",Ccaron:"\u010c",ccedil:"\xe7",Ccedil:"\xc7",ccirc:"\u0109",Ccirc:"\u0108",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",Cdot:"\u010a",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\u{1d520}",Cfr:"\u212d",chcy:"\u0447",CHcy:"\u0427",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",Chi:"\u03a7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cire:"\u2257",cirE:"\u29c3",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",colone:"\u2254",Colone:"\u2a74",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\u{1d554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xa9",COPY:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",cscr:"\u{1d4b8}",Cscr:"\u{1d49e}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cup:"\u222a",Cup:"\u22d3",cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",dArr:"\u21d3",Darr:"\u21a1",dash:"\u2010",dashv:"\u22a3",Dashv:"\u2ae4",dbkarow:"\u290f",dblac:"\u02dd",dcaron:"\u010f",Dcaron:"\u010e",dcy:"\u0434",Dcy:"\u0414",dd:"\u2146",DD:"\u2145",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",delta:"\u03b4",Delta:"\u0394",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\u{1d521}",Dfr:"\u{1d507}",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",DJcy:"\u0402",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\u{1d555}",Dopf:"\u{1d53b}",dot:"\u02d9",Dot:"\xa8",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",downarrow:"\u2193",Downarrow:"\u21d3",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",dscr:"\u{1d4b9}",Dscr:"\u{1d49f}",dscy:"\u0455",DScy:"\u0405",dsol:"\u29f6",dstrok:"\u0111",Dstrok:"\u0110",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",dzcy:"\u045f",DZcy:"\u040f",dzigrarr:"\u27ff",eacute:"\xe9",Eacute:"\xc9",easter:"\u2a6e",ecaron:"\u011b",Ecaron:"\u011a",ecir:"\u2256",ecirc:"\xea",Ecirc:"\xca",ecolon:"\u2255",ecy:"\u044d",Ecy:"\u042d",eDDot:"\u2a77",edot:"\u0117",eDot:"\u2251",Edot:"\u0116",ee:"\u2147",efDot:"\u2252",efr:"\u{1d522}",Efr:"\u{1d508}",eg:"\u2a9a",egrave:"\xe8",Egrave:"\xc8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",Emacr:"\u0112",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",eng:"\u014b",ENG:"\u014a",ensp:"\u2002",eogon:"\u0119",Eogon:"\u0118",eopf:"\u{1d556}",Eopf:"\u{1d53c}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",Epsilon:"\u0395",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",esim:"\u2242",Esim:"\u2a73",eta:"\u03b7",Eta:"\u0397",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",Fcy:"\u0424",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\u{1d523}",Ffr:"\u{1d509}",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\u{1d557}",Fopf:"\u{1d53d}",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\u{1d4bb}",Fscr:"\u2131",gacute:"\u01f5",gamma:"\u03b3",Gamma:"\u0393",gammad:"\u03dd",Gammad:"\u03dc",gap:"\u2a86",gbreve:"\u011f",Gbreve:"\u011e",Gcedil:"\u0122",gcirc:"\u011d",Gcirc:"\u011c",gcy:"\u0433",Gcy:"\u0413",gdot:"\u0121",Gdot:"\u0120",ge:"\u2265",gE:"\u2267",gel:"\u22db",gEl:"\u2a8c",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\u{1d524}",Gfr:"\u{1d50a}",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",gjcy:"\u0453",GJcy:"\u0403",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",gopf:"\u{1d558}",Gopf:"\u{1d53e}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",gscr:"\u210a",Gscr:"\u{1d4a2}",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gt:">",Gt:"\u226b",GT:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",hardcy:"\u044a",HARDcy:"\u042a",harr:"\u2194",hArr:"\u21d4",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",hcirc:"\u0125",Hcirc:"\u0124",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\u{1d525}",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\u{1d559}",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1d4bd}",Hscr:"\u210b",hslash:"\u210f",hstrok:"\u0127",Hstrok:"\u0126",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",iacute:"\xed",Iacute:"\xcd",ic:"\u2063",icirc:"\xee",Icirc:"\xce",icy:"\u0438",Icy:"\u0418",Idot:"\u0130",iecy:"\u0435",IEcy:"\u0415",iexcl:"\xa1",iff:"\u21d4",ifr:"\u{1d526}",Ifr:"\u2111",igrave:"\xec",Igrave:"\xcc",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",IJlig:"\u0132",Im:"\u2111",imacr:"\u012b",Imacr:"\u012a",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",int:"\u222b",Int:"\u222c",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",iocy:"\u0451",IOcy:"\u0401",iogon:"\u012f",Iogon:"\u012e",iopf:"\u{1d55a}",Iopf:"\u{1d540}",iota:"\u03b9",Iota:"\u0399",iprod:"\u2a3c",iquest:"\xbf",iscr:"\u{1d4be}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",Itilde:"\u0128",iukcy:"\u0456",Iukcy:"\u0406",iuml:"\xef",Iuml:"\xcf",jcirc:"\u0135",Jcirc:"\u0134",jcy:"\u0439",Jcy:"\u0419",jfr:"\u{1d527}",Jfr:"\u{1d50d}",jmath:"\u0237",jopf:"\u{1d55b}",Jopf:"\u{1d541}",jscr:"\u{1d4bf}",Jscr:"\u{1d4a5}",jsercy:"\u0458",Jsercy:"\u0408",jukcy:"\u0454",Jukcy:"\u0404",kappa:"\u03ba",Kappa:"\u039a",kappav:"\u03f0",kcedil:"\u0137",Kcedil:"\u0136",kcy:"\u043a",Kcy:"\u041a",kfr:"\u{1d528}",Kfr:"\u{1d50e}",kgreen:"\u0138",khcy:"\u0445",KHcy:"\u0425",kjcy:"\u045c",KJcy:"\u040c",kopf:"\u{1d55c}",Kopf:"\u{1d542}",kscr:"\u{1d4c0}",Kscr:"\u{1d4a6}",lAarr:"\u21da",lacute:"\u013a",Lacute:"\u0139",laemptyv:"\u29b4",lagran:"\u2112",lambda:"\u03bb",Lambda:"\u039b",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",larr:"\u2190",lArr:"\u21d0",Larr:"\u219e",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",latail:"\u2919",lAtail:"\u291b",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",Lcaron:"\u013d",lcedil:"\u013c",Lcedil:"\u013b",lceil:"\u2308",lcub:"{",lcy:"\u043b",Lcy:"\u041b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",leftarrow:"\u2190",Leftarrow:"\u21d0",LeftArrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",Leftrightarrow:"\u21d4",LeftRightArrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",leg:"\u22da",lEg:"\u2a8b",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",lfr:"\u{1d529}",Lfr:"\u{1d50f}",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",LJcy:"\u0409",ll:"\u226a",Ll:"\u22d8",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",Lmidot:"\u013f",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",Longleftarrow:"\u27f8",LongLeftArrow:"\u27f5",longleftrightarrow:"\u27f7",Longleftrightarrow:"\u27fa",LongLeftRightArrow:"\u27f7",longmapsto:"\u27fc",longrightarrow:"\u27f6",Longrightarrow:"\u27f9",LongRightArrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",lopf:"\u{1d55d}",Lopf:"\u{1d543}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\u{1d4c1}",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",lstrok:"\u0142",Lstrok:"\u0141",lt:"<",Lt:"\u226a",LT:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21a6",Map:"\u2905",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",Mcy:"\u041c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",mfr:"\u{1d52a}",Mfr:"\u{1d510}",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",mopf:"\u{1d55e}",Mopf:"\u{1d544}",mp:"\u2213",mscr:"\u{1d4c2}",Mscr:"\u2133",mstpos:"\u223e",mu:"\u03bc",Mu:"\u039c",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",nacute:"\u0144",Nacute:"\u0143",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",Ncaron:"\u0147",ncedil:"\u0146",Ncedil:"\u0145",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",Ncy:"\u041d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1d52b}",Nfr:"\u{1d511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",ngt:"\u226f",nGt:"\u226b\u20d2",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",NJcy:"\u040a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nlt:"\u226e",nLt:"\u226a\u20d2",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nopf:"\u{1d55f}",Nopf:"\u2115",not:"\xac",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nscr:"\u{1d4c3}",Nscr:"\u{1d4a9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2ac5\u0338",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2ac6\u0338",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntilde:"\xf1",Ntilde:"\xd1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",nu:"\u03bd",Nu:"\u039d",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xf3",Oacute:"\xd3",oast:"\u229b",ocir:"\u229a",ocirc:"\xf4",Ocirc:"\xd4",ocy:"\u043e",Ocy:"\u041e",odash:"\u229d",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29bf",ofr:"\u{1d52c}",Ofr:"\u{1d512}",ogon:"\u02db",ograve:"\xf2",Ograve:"\xd2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",omacr:"\u014d",Omacr:"\u014c",omega:"\u03c9",Omega:"\u03a9",omicron:"\u03bf",Omicron:"\u039f",omid:"\u29b6",ominus:"\u2296",oopf:"\u{1d560}",Oopf:"\u{1d546}",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",or:"\u2228",Or:"\u2a54",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",oscr:"\u2134",Oscr:"\u{1d4aa}",oslash:"\xf8",Oslash:"\xd8",osol:"\u2298",otilde:"\xf5",Otilde:"\xd5",otimes:"\u2297",Otimes:"\u2a37",otimesas:"\u2a36",ouml:"\xf6",Ouml:"\xd6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",pcy:"\u043f",Pcy:"\u041f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",pfr:"\u{1d52d}",Pfr:"\u{1d513}",phi:"\u03c6",Phi:"\u03a6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",pi:"\u03c0",Pi:"\u03a0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\u{1d561}",Popf:"\u2119",pound:"\xa3",pr:"\u227a",Pr:"\u2abb",prap:"\u2ab7",prcue:"\u227c",pre:"\u2aaf",prE:"\u2ab3",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",pscr:"\u{1d4c5}",Pscr:"\u{1d4ab}",psi:"\u03c8",Psi:"\u03a8",puncsp:"\u2008",qfr:"\u{1d52e}",Qfr:"\u{1d514}",qint:"\u2a0c",qopf:"\u{1d562}",Qopf:"\u211a",qprime:"\u2057",qscr:"\u{1d4c6}",Qscr:"\u{1d4ac}",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",racute:"\u0155",Racute:"\u0154",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarr:"\u2192",rArr:"\u21d2",Rarr:"\u21a0",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",Rarrtl:"\u2916",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",Rcaron:"\u0158",rcedil:"\u0157",Rcedil:"\u0156",rceil:"\u2309",rcub:"}",rcy:"\u0440",Rcy:"\u0420",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",reg:"\xae",REG:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\u{1d52f}",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rho:"\u03c1",Rho:"\u03a1",rhov:"\u03f1",RightAngleBracket:"\u27e9",rightarrow:"\u2192",Rightarrow:"\u21d2",RightArrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\u{1d563}",Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\u{1d4c7}",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",Sacute:"\u015a",sbquo:"\u201a",sc:"\u227b",Sc:"\u2abc",scap:"\u2ab8",scaron:"\u0161",Scaron:"\u0160",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",scedil:"\u015f",Scedil:"\u015e",scirc:"\u015d",Scirc:"\u015c",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",scy:"\u0441",Scy:"\u0421",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1d530}",Sfr:"\u{1d516}",sfrown:"\u2322",sharp:"\u266f",shchcy:"\u0449",SHCHcy:"\u0429",shcy:"\u0448",SHcy:"\u0428",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",sigma:"\u03c3",Sigma:"\u03a3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",SOFTcy:"\u042c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\u{1d564}",Sopf:"\u{1d54a}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",sscr:"\u{1d4c8}",Sscr:"\u{1d4ae}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",star:"\u2606",Star:"\u22c6",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",sube:"\u2286",subE:"\u2ac5",subedot:"\u2ac3",submult:"\u2ac1",subne:"\u228a",subnE:"\u2acb",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",sup:"\u2283",Sup:"\u22d1",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supe:"\u2287",supE:"\u2ac6",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supne:"\u228b",supnE:"\u2acc",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",tau:"\u03c4",Tau:"\u03a4",tbrk:"\u23b4",tcaron:"\u0165",Tcaron:"\u0164",tcedil:"\u0163",Tcedil:"\u0162",tcy:"\u0442",Tcy:"\u0422",tdot:"\u20db",telrec:"\u2315",tfr:"\u{1d531}",Tfr:"\u{1d517}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",theta:"\u03b8",Theta:"\u0398",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",thorn:"\xfe",THORN:"\xde",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",topf:"\u{1d565}",Topf:"\u{1d54b}",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\u{1d4c9}",Tscr:"\u{1d4af}",tscy:"\u0446",TScy:"\u0426",tshcy:"\u045b",TSHcy:"\u040b",tstrok:"\u0167",Tstrok:"\u0166",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",uacute:"\xfa",Uacute:"\xda",uarr:"\u2191",uArr:"\u21d1",Uarr:"\u219f",Uarrocir:"\u2949",ubrcy:"\u045e",Ubrcy:"\u040e",ubreve:"\u016d",Ubreve:"\u016c",ucirc:"\xfb",Ucirc:"\xdb",ucy:"\u0443",Ucy:"\u0423",udarr:"\u21c5",udblac:"\u0171",Udblac:"\u0170",udhar:"\u296e",ufisht:"\u297e",ufr:"\u{1d532}",Ufr:"\u{1d518}",ugrave:"\xf9",Ugrave:"\xd9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",Umacr:"\u016a",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",uogon:"\u0173",Uogon:"\u0172",uopf:"\u{1d566}",Uopf:"\u{1d54c}",uparrow:"\u2191",Uparrow:"\u21d1",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",Updownarrow:"\u21d5",UpDownArrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",upsilon:"\u03c5",Upsilon:"\u03a5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",Uring:"\u016e",urtri:"\u25f9",uscr:"\u{1d4ca}",Uscr:"\u{1d4b0}",utdot:"\u22f0",utilde:"\u0169",Utilde:"\u0168",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",uuml:"\xfc",Uuml:"\xdc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",vcy:"\u0432",Vcy:"\u0412",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",vee:"\u2228",Vee:"\u22c1",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",vfr:"\u{1d533}",Vfr:"\u{1d519}",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",vopf:"\u{1d567}",Vopf:"\u{1d54d}",vprop:"\u221d",vrtri:"\u22b3",vscr:"\u{1d4cb}",Vscr:"\u{1d4b1}",vsubne:"\u228a\ufe00",vsubnE:"\u2acb\ufe00",vsupne:"\u228b\ufe00",vsupnE:"\u2acc\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",wcirc:"\u0175",Wcirc:"\u0174",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1d534}",Wfr:"\u{1d51a}",wopf:"\u{1d568}",Wopf:"\u{1d54e}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1d4cc}",Wscr:"\u{1d4b2}",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",xfr:"\u{1d535}",Xfr:"\u{1d51b}",xharr:"\u27f7",xhArr:"\u27fa",xi:"\u03be",Xi:"\u039e",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",xopf:"\u{1d569}",Xopf:"\u{1d54f}",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",xscr:"\u{1d4cd}",Xscr:"\u{1d4b3}",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",yacute:"\xfd",Yacute:"\xdd",yacy:"\u044f",YAcy:"\u042f",ycirc:"\u0177",Ycirc:"\u0176",ycy:"\u044b",Ycy:"\u042b",yen:"\xa5",yfr:"\u{1d536}",Yfr:"\u{1d51c}",yicy:"\u0457",YIcy:"\u0407",yopf:"\u{1d56a}",Yopf:"\u{1d550}",yscr:"\u{1d4ce}",Yscr:"\u{1d4b4}",yucy:"\u044e",YUcy:"\u042e",yuml:"\xff",Yuml:"\u0178",zacute:"\u017a",Zacute:"\u0179",zcaron:"\u017e",Zcaron:"\u017d",zcy:"\u0437",Zcy:"\u0417",zdot:"\u017c",Zdot:"\u017b",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",zeta:"\u03b6",Zeta:"\u0396",zfr:"\u{1d537}",Zfr:"\u2128",zhcy:"\u0436",ZHcy:"\u0416",zigrarr:"\u21dd",zopf:"\u{1d56b}",Zopf:"\u2124",zscr:"\u{1d4cf}",Zscr:"\u{1d4b5}",zwj:"\u200d",zwnj:"\u200c"},z={aacute:"\xe1",Aacute:"\xc1",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",aelig:"\xe6",AElig:"\xc6",agrave:"\xe0",Agrave:"\xc0",amp:"&",AMP:"&",aring:"\xe5",Aring:"\xc5",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",brvbar:"\xa6",ccedil:"\xe7",Ccedil:"\xc7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",COPY:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",Eacute:"\xc9",ecirc:"\xea",Ecirc:"\xca",egrave:"\xe8",Egrave:"\xc8",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",GT:">",iacute:"\xed",Iacute:"\xcd",icirc:"\xee",Icirc:"\xce",iexcl:"\xa1",igrave:"\xec",Igrave:"\xcc",iquest:"\xbf",iuml:"\xef",Iuml:"\xcf",laquo:"\xab",lt:"<",LT:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",Ntilde:"\xd1",oacute:"\xf3",Oacute:"\xd3",ocirc:"\xf4",Ocirc:"\xd4",ograve:"\xf2",Ograve:"\xd2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",Oslash:"\xd8",otilde:"\xf5",Otilde:"\xd5",ouml:"\xf6",Ouml:"\xd6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',QUOT:'"',raquo:"\xbb",reg:"\xae",REG:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",THORN:"\xde",times:"\xd7",uacute:"\xfa",Uacute:"\xda",ucirc:"\xfb",Ucirc:"\xdb",ugrave:"\xf9",Ugrave:"\xd9",uml:"\xa8",uuml:"\xfc",Uuml:"\xdc",yacute:"\xfd",Yacute:"\xdd",yen:"\xa5",yuml:"\xff"},ne={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"},Ce=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],W=String.fromCharCode,b={}.hasOwnProperty,$=function(Ie,He){return b.call(Ie,He)},ie=function(Ie,He){if(!Ie)return He;var ye,re={};for(ye in He)re[ye]=$(Ie,ye)?Ie[ye]:He[ye];return re},_e=function(Ie,He){var re="";return Ie>=55296&&Ie<=57343||Ie>1114111?(He&&Q("character reference outside the permissible Unicode range"),"\ufffd"):$(ne,Ie)?(He&&Q("disallowed character reference"),ne[Ie]):(He&&function(Ie,He){for(var re=-1,ye=Ie.length;++re65535&&(re+=W((Ie-=65536)>>>10&1023|55296),Ie=56320|1023&Ie),re+=W(Ie))},H=function(Ie){return"&#x"+Ie.toString(16).toUpperCase()+";"},L=function(Ie){return"&#"+Ie+";"},Q=function(Ie){throw Error("Parse error: "+Ie)},de=function(Ie,He){(He=ie(He,de.options)).strict&&D.test(Ie)&&Q("forbidden code point");var be=He.useNamedReferences,ae=He.allowUnsafeSymbols,R=He.decimal?L:H,Ge=function(qe){return R(qe.charCodeAt(0))};return He.encodeEverything?(Ie=Ie.replace(M,function(qe){return be&&$(w,qe)?"&"+w[qe]+";":Ge(qe)}),be&&(Ie=Ie.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),be&&(Ie=Ie.replace(A,function(qe){return"&"+w[qe]+";"}))):be?(ae||(Ie=Ie.replace(P,function(qe){return"&"+w[qe]+";"})),Ie=(Ie=Ie.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(A,function(qe){return"&"+w[qe]+";"})):ae||(Ie=Ie.replace(P,Ge)),Ie.replace(F,function(qe){var Nt=qe.charCodeAt(0),ln=qe.charCodeAt(1);return R(1024*(Nt-55296)+ln-56320+65536)}).replace(O,Ge)};de.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var ue=function(Ie,He){var re=(He=ie(He,ue.options)).strict;return re&&k.test(Ie)&&Q("malformed character reference"),Ie.replace(I,function(ye,be,ae,R,Ge,qe,Nt,ln,hi){var Hi,Vs,ch,uh,Et,Do;return be?B[Et=be]:ae?(Et=ae,(Do=R)&&He.isAttributeValue?(re&&"="==Do&&Q("`&` did not start a character reference"),ye):(re&&Q("named character reference was not terminated by a semicolon"),z[Et]+(Do||""))):Ge?(ch=Ge,Vs=qe,re&&!Vs&&Q("character reference was not terminated by a semicolon"),Hi=parseInt(ch,10),_e(Hi,re)):Nt?(uh=Nt,Vs=ln,re&&!Vs&&Q("character reference was not terminated by a semicolon"),Hi=parseInt(uh,16),_e(Hi,re)):(re&&Q("named character reference was not terminated by a semicolon"),ye)})};ue.options={isAttributeValue:!1,strict:!1};var Fe={version:"1.2.0",encode:de,decode:ue,escape:function(Ie){return Ie.replace(P,function(He){return E[He]})},unescape:ue};void 0!==(le=function(){return Fe}.call(C,G,C,Pe))&&(Pe.exports=le)}()},4856:(Pe,C,G)=>{Pe.exports=G(1652)},7287:(Pe,C,G)=>{G(9542);const{trimCharacter:ce}=G(1458),{BlockStackItem:Y,TableCellStackItem:q,TableRowStackItem:F,TableStackItem:M,TransformerStackItem:O}=G(6237),{tableToString:A}=G(8186),{WhitespaceProcessor:w}=G(7139);function E(D){if(!(D instanceof Y||D instanceof q))throw new Error("Only blocks and table cells can be requested for text contents.");return D.inlineTextBuilder.isEmpty()?D.rawText:D.rawText+D.inlineTextBuilder.toString()}function k(D,I,B,z){if(!(D instanceof Y||D instanceof q))throw new Error("Only blocks and table cells can contain text.");const ne=E(D),Ce=Math.max(D.stashedLineBreaks,B);D.inlineTextBuilder.clear(),ne?D.rawText=ne+"\n".repeat(Ce)+I:(D.rawText=I,D.leadingLineBreaks=Ce),D.stashedLineBreaks=z}G(4563),Pe.exports={BlockTextBuilder:class P{constructor(I,B){this.options=I,this.picker=B,this.whitespaceProcessor=new w(I),this._stackItem=new Y(I),this._wordTransformer=void 0}pushWordTransform(I){this._wordTransformer=new O(this._wordTransformer,I)}popWordTransform(){if(!this._wordTransformer)return;const I=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,I}_getCombinedWordTransformer(){const I=(B,z)=>z?I(z.transform(B),z.next):B;return B=>I(B,this._wordTransformer)}_popStackItem(){const I=this._stackItem;return this._stackItem=I.next,I}addLineBreak(){(this._stackItem instanceof Y||this._stackItem instanceof q)&&(this._stackItem.isPre?this._stackItem.rawText+="\n":this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof Y||this._stackItem instanceof q)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(I,B={}){this._addInline(I,"object"==typeof B?B:{noWordTransform:B})}_addInline(I,{noWordTransform:B=!1}={}){if(this._stackItem instanceof Y||this._stackItem instanceof q){if(this._stackItem.isPre)return void(this._stackItem.rawText+=I);if(0!==I.length&&(!this._stackItem.stashedLineBreaks||this.whitespaceProcessor.testContainsWords(I))){if(this.options.preserveNewlines){const z=this.whitespaceProcessor.countNewlinesNoWords(I);if(z>0)return void this._stackItem.inlineTextBuilder.startNewLine(z)}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(I,this._stackItem.inlineTextBuilder,this._wordTransformer&&!B?this._getCombinedWordTransformer():void 0),this._stackItem.stashedLineBreaks=0}}}openBlock(I={},B,z){this._openBlock("object"==typeof I?I:{isPre:z,leadingLineBreaks:I,reservedLineLength:B})}_openBlock({leadingLineBreaks:I=1,reservedLineLength:B=0,isPre:z=!1}={}){const ne=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-B);this._stackItem=new Y(this.options,this._stackItem,I,ne),z&&(this._stackItem.isPre=!0)}closeBlock(I={},B){this._closeBlock("object"==typeof I?I:{trailingLineBreaks:I,blockTransform:B})}_closeBlock({trailingLineBreaks:I=1,blockTransform:B}={}){const z=this._popStackItem(),ne=B?B(E(z)):E(z);k(this._stackItem,ne,z.leadingLineBreaks,Math.max(z.stashedLineBreaks,I))}openTable(){this._stackItem=new M(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof M))throw new Error("Can't add table row to something that is not a table! Check the formatter.");this._stackItem=new F(this._stackItem)}openTableCell(I={}){this._openTableCell("object"==typeof I?I:{maxColumnWidth:I})}_openTableCell({maxColumnWidth:I}={}){if(!(this._stackItem instanceof F))throw new Error("Can't add table cell to something that is not a table row! Check the formatter.");this._stackItem=new q(this.options,this._stackItem,I)}closeTableCell(I={},B){this._closeTableCell("object"==typeof I?I:{colspan:I,rowspan:B})}_closeTableCell({colspan:I=1,rowspan:B=1}={}){const z=this._popStackItem(),ne=ce(E(z),"\n");z.next.cells.push({colspan:I,rowspan:B,text:ne})}closeTableRow(){const I=this._popStackItem();I.next.rows.push(I.cells)}closeTable(I={},B,z,ne){this._closeTable("object"==typeof I?I:{colSpacing:I,leadingLineBreaks:z,rowSpacing:B,trailingLineBreaks:ne})}_closeTable({colSpacing:I=3,rowSpacing:B=0,leadingLineBreaks:z=2,trailingLineBreaks:ne=2}={}){const Ce=this._popStackItem(),W=A(Ce.rows,B,I);W&&k(this._stackItem,W,z,ne)}toString(){return E(this._stackItem.getRoot())}}}},7723:(Pe,C,G)=>{const le=G(3537),{get:ce,numberToLetterSequence:K,numberToRoman:Y,splitClassesAndIds:q,trimCharacter:F}=G(1458);function A(H,L,Q,de){Q.openBlock({leadingLineBreaks:de.leadingLineBreaks}),L(H.children,Q),Q.closeBlock({trailingLineBreaks:de.trailingLineBreaks})}function z(H,L){return L?("string"==typeof L[0]?L[0]:"[")+H+("string"==typeof L[1]?L[1]:"]"):H}function W(H,L,Q,de,ue){const Ne="li"===ce(H,["parent","name"]);let Fe=0;const At=(H.children||[]).filter(re=>"text"!==re.type||!/^\s*$/.test(re.data)).map(function(re){if("li"!==re.name)return{node:re,prefix:""};const ye=Ne?ue().trimStart():ue();return ye.length>Fe&&(Fe=ye.length),{node:re,prefix:ye}});if(!At.length)return;const Ie=Fe,He="\n"+" ".repeat(Ie);Q.openBlock({leadingLineBreaks:Ne?1:de.leadingLineBreaks||2});for(const{node:re,prefix:ye}of At)Q.openBlock({leadingLineBreaks:1,reservedLineLength:Ie}),L([re],Q),Q.closeBlock({trailingLineBreaks:1,blockTransform:be=>ye+" ".repeat(Ie-ye.length)+be.replace(/\n/g,He)});Q.closeBlock({trailingLineBreaks:Ne?1:de.trailingLineBreaks||2})}function _e(H,L,Q,de){function ue(Fe){const At=+ce(Fe,["attribs","colspan"])||1,Ie=+ce(Fe,["attribs","rowspan"])||1;Q.openTableCell({maxColumnWidth:de.maxColumnWidth}),L(Fe.children,Q),Q.closeTableCell({colspan:At,rowspan:Ie})}Q.openTable(),H.children.forEach(function Ne(Fe){if("tag"!==Fe.type)return;const At=!1!==de.uppercaseHeaderCells?Ie=>{Q.pushWordTransform(He=>He.toUpperCase()),ue(Ie),Q.popWordTransform()}:ue;switch(Fe.name){case"thead":case"tbody":case"tfoot":case"center":return void Fe.children.forEach(Ne);case"tr":Q.openTableRow();for(const Ie of Fe.children)if("tag"===Ie.type)switch(Ie.name){case"th":At(Ie);break;case"td":ue(Ie)}Q.closeTableRow()}}),Q.closeTable({colSpacing:de.colSpacing,leadingLineBreaks:de.leadingLineBreaks,rowSpacing:de.rowSpacing,trailingLineBreaks:de.trailingLineBreaks})}G(4563),Pe.exports={anchor:function Ce(H,L,Q,de){const Ne=function ue(){if(de.ignoreHref||!H.attribs||!H.attribs.href)return"";let Fe=H.attribs.href.replace(/^mailto:/,"");return de.noAnchorUrl&&"#"===Fe[0]?"":(Fe=de.baseUrl&&"/"===Fe[0]?de.baseUrl+Fe:Fe,le.decode(Fe,Q.options.decodeOptions))}();if(Ne){let Fe="";Q.pushWordTransform(Ie=>(Ie&&(Fe+=Ie),Ie)),L(H.children,Q),Q.popWordTransform(),de.hideLinkHrefIfSameAsText&&Ne===Fe||Q.addInline(Fe?" "+z(Ne,de.linkBrackets):Ne,{noWordTransform:!0})}else L(H.children,Q)},block:A,blockquote:function B(H,L,Q,de){Q.openBlock({leadingLineBreaks:de.leadingLineBreaks||2,reservedLineLength:2}),L(H.children,Q),Q.closeBlock({trailingLineBreaks:de.trailingLineBreaks||2,blockTransform:ue=>(!1!==de.trimEmptyLines?F(ue,"\n"):ue).split("\n").map(Ne=>"> "+Ne).join("\n")})},dataTable:_e,heading:function I(H,L,Q,de){Q.openBlock({leadingLineBreaks:de.leadingLineBreaks||2}),!1!==de.uppercase?(Q.pushWordTransform(ue=>ue.toUpperCase()),L(H.children,Q),Q.popWordTransform()):L(H.children,Q),Q.closeBlock({trailingLineBreaks:de.trailingLineBreaks||2})},horizontalLine:function E(H,L,Q,de){Q.openBlock({leadingLineBreaks:de.leadingLineBreaks||2}),Q.addInline("-".repeat(de.length||Q.options.wordwrap||40)),Q.closeBlock({trailingLineBreaks:de.trailingLineBreaks||2})},image:function ne(H,L,Q,de){const ue=H.attribs||{},Ne=ue.alt?le.decode(ue.alt,Q.options.decodeOptions):"",Fe=ue.src?de.baseUrl&&0===ue.src.indexOf("/")?de.baseUrl+ue.src:ue.src:"",At=Fe?Ne?Ne+" "+z(Fe,de.linkBrackets):z(Fe,de.linkBrackets):Ne;Q.addInline(At)},inline:function O(H,L,Q,de){L(H.children,Q)},lineBreak:function w(H,L,Q,de){Q.addLineBreak()},orderedList:function b(H,L,Q,de){let ue=Number(H.attribs.start||"1");const Ne=function $(H="1"){switch(H){case"a":return L=>K(L,"a");case"A":return L=>K(L,"A");case"i":return L=>Y(L).toLowerCase();case"I":return L=>Y(L);default:return L=>L.toString()}}(H.attribs.type);return W(H,L,Q,de,()=>" "+Ne(ue++)+". ")},paragraph:function k(H,L,Q,de){Q.openBlock({leadingLineBreaks:de.leadingLineBreaks||2}),L(H.children,Q),Q.closeBlock({trailingLineBreaks:de.trailingLineBreaks||2})},pre:function D(H,L,Q,de){Q.openBlock({isPre:!0,leadingLineBreaks:de.leadingLineBreaks||2}),L(H.children,Q),Q.closeBlock({trailingLineBreaks:de.trailingLineBreaks||2})},skip:function M(H,L,Q,de){},table:function ie(H,L,Q,de){return function N(H,L){if(!0===L)return!0;if(!H)return!1;const{classes:Q,ids:de}=q(L),ue=(H.class||"").split(" "),Ne=(H.id||"").split(" ");return ue.some(Fe=>Q.includes(Fe))||Ne.some(Fe=>de.includes(Fe))}(H.attribs,Q.options.tables)?_e(H,L,Q,de):A(H,L,Q,de)},unorderedList:function te(H,L,Q,de){const ue=de.itemPrefix||" * ";return W(H,L,Q,de,()=>ue)},wbr:function P(H,L,Q,de){Q.addWordBreakOpportunity()}}},1458:(Pe,C,G)=>{const le=G(4999),q=["I","X","C","M"],F=["V","L","D"],P=(E,k,D)=>[...k];Pe.exports={get:function A(E,k){for(const D of k){if(!E)return;E=E[D]}return E},limitedDepthRecursive:function K(E,k,D=(()=>{})){if(void 0===E){const I=function(...B){return k(I,...B)};return I}return E>=0?function(...I){return k(K(E-1,k,D),...I)}:D},mergeDuplicatesPreferLast:function w(E,k){const D=new Map;for(let I=E.length;I-- >0;){const B=E[I],z=k(B);D.set(z,D.has(z)?le(B,D.get(z),{arrayMerge:P}):B)}return[...D.values()].reverse()},numberToLetterSequence:function Y(E,k="a",D=26){const I=[];do{I.push((E-=1)%D),E=E/D>>0}while(E>0);const B=k.charCodeAt(0);return I.reverse().map(z=>String.fromCharCode(B+z)).join("")},numberToRoman:function M(E){return[...E+""].map(k=>+k).reverse().map((k,D)=>k%5<4?(k<5?"":F[D])+q[D].repeat(k%5):q[D]+(k<5?F[D]:q[D+1])).reverse().join("")},splitClassesAndIds:function ce(E){const k=[],D=[];for(const I of E)I.startsWith(".")?k.push(I.substring(1)):I.startsWith("#")&&D.push(I.substring(1));return{classes:k,ids:D}},trimCharacter:function O(E,k){let D=0,I=E.length;for(;DD&&E[I-1]===k;)--I;return D>0||I{const{hp2Builder:le}=G(5999),ce=G(4999),K=G(3537),Y=G(534),q=G(9542),{BlockTextBuilder:F}=G(7287),M=G(7723),{limitedDepthRecursive:O,mergeDuplicatesPreferLast:A,get:w}=G(1458);G(4563);const P={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeOptions:{isAttributeValue:!1,strict:!1},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block"},{selector:"aside",format:"block"},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block"},{selector:"footer",format:"block"},{selector:"form",format:"block"},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block"},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block"},{selector:"nav",format:"block"},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block"},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:" \t\r\n\f\u200b",wordwrap:80},k=(b,$,N)=>[...$],D=(b,$,N)=>b.some(ie=>"object"==typeof ie)?((b,$,N)=>[...b,...$])(b,$):k(0,$);function I(b={}){(b=ce(P,b,{arrayMerge:k,customMerge:L=>"selectors"===L?D:void 0})).formatters=Object.assign({},M,b.formatters),b.selectors=A(b.selectors,L=>L.selector),function ne(b){const $=b.selectors;if(b.tags){const _e=Object.entries(b.tags).map(([H,L])=>({...L,selector:H||"*"}));$.push(..._e)}function N(_e,H,L){const Q=H.pop();for(const de of H){let ue=_e[de];ue||(ue={},_e[de]=ue),_e=ue}_e[Q]=L}function ie(_e,H,L){if(void 0!==b[_e])for(const Q of $)Q.format===H&&N(Q,["options",L],b[_e])}if(ie("hideLinkHrefIfSameAsText","anchor","hideLinkHrefIfSameAsText"),ie("ignoreHref","anchor","ignoreHref"),ie("linkHrefBaseUrl","anchor","baseUrl"),ie("noAnchorUrl","anchor","noAnchorUrl"),ie("noLinkBrackets","anchor","noLinkBrackets"),ie("linkHrefBaseUrl","image","baseUrl"),ie("unorderedListItemPrefix","unorderedList","itemPrefix"),ie("uppercaseHeadings","heading","uppercase"),ie("uppercaseHeadings","table","uppercaseHeadings"),ie("uppercaseHeadings","dataTable","uppercaseHeadings"),b.ignoreImage)for(const _e of $)"image"===_e.format&&(_e.format="skip");if(b.singleNewLineParagraphs)for(const _e of $)("paragraph"===_e.format||"pre"===_e.format)&&(N(_e,["options","leadingLineBreaks"],1),N(_e,["options","trailingLineBreaks"],1));if(b.baseElement){const _e=b.baseElement;N(b,["baseElements","selectors"],Array.isArray(_e)?_e:[_e])}void 0!==b.returnDomByDefault&&N(b,["baseElements","returnDomByDefault"],b.returnDomByDefault);for(const _e of $)"anchor"===_e.format&&w(_e,["options","noLinkBrackets"])&&N(_e,["options","linkBrackets"],!1)}(b);const $=b.selectors.filter(L=>!L.format);if($.length)throw new Error("Following selectors have no specified format: "+$.map(L=>`\`${L.selector}\``).join(", "));const N=new q.DecisionTree(b.selectors.map(L=>[L.selector,L])).build(le),ie=new q.DecisionTree(b.baseElements.selectors.map((L,Q)=>[L,Q+1])).build(le);function _e(L){return function Ce(b,$,N){const ie=[];return O($.limits.maxDepth,function _e(L,Q){Q=Q.slice(0,$.limits.maxChildNodes);for(const de of Q){if("tag"!==de.type)continue;const ue=N.pick1(de);if(ue>0?ie.push({selectorIndex:ue,element:de}):de.children&&L(de.children),ie.length>=$.limits.maxBaseElements)return}})(b),"occurrence"!==$.baseElements.orderBy&&ie.sort((L,Q)=>L.selectorIndex-Q.selectorIndex),$.baseElements.returnDomByDefault&&0===ie.length?b:ie.map(L=>L.element)}(L,b,ie)}const H=O(b.limits.maxDepth,W,function(L,Q){Q.addInline(b.limits.ellipsis||"")});return function(L){return function B(b,$,N,ie,_e){const H=$.limits.maxInputLength;H&&b&&b.length>H&&(console.warn(`Input length ${b.length} is above allowed limit of ${H}. Truncating without ellipsis.`),b=b.substring(0,H));const L=new Y.DomHandler;new Y.Parser(L,{decodeEntities:!1}).parseComplete(b);const Q=ie(L.dom),de=new F($,N);return _e(Q,de),de.toString()}(L,b,N,_e,H)}}function z(b,$={}){return I($)(b)}function W(b,$,N){if(!$)return;const ie=N.options;$.length>ie.limits.maxChildNodes&&($=$.slice(0,ie.limits.maxChildNodes)).push({data:ie.limits.ellipsis,type:"text"});for(const H of $)switch(H.type){case"text":N.addInline(K.decode(H.data,ie.decodeOptions));break;case"tag":{const L=N.picker.pick1(H);(0,ie.formatters[L.format])(H,b,N,L.options||{});break}}}Pe.exports={compile:I,convert:z,fromString:(b,$={})=>z(b,$),htmlToText:z}},8395:(Pe,C,G)=>{G(4563),Pe.exports={InlineTextBuilder:class le{constructor(K,Y){this.lines=[],this.nextLineWords=[],this.maxLineLength=Y||K.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=K.longWordSplit.wrapCharacters||[],this.forceWrapOnLimit=K.longWordSplit.forceWrapOnLimit||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(K){this.nextLineAvailableChars<=0&&this.startNewLine();const Y=0===this.nextLineWords.length,q=K.length+(Y?0:1);if(q<=this.nextLineAvailableChars)this.nextLineWords.push(K),this.nextLineAvailableChars-=q;else{const[F,...M]=this.splitLongWord(K);Y||this.startNewLine(),this.nextLineWords.push(F),this.nextLineAvailableChars-=F.length;for(const O of M)this.startNewLine(),this.nextLineWords.push(O),this.nextLineAvailableChars-=O.length}}popWord(){const K=this.nextLineWords.pop();return void 0!==K&&(this.nextLineAvailableChars+=K.length+(0===this.nextLineWords.length?0:1)),K}concatWord(K){if(this.wordBreakOpportunity&&K.length>this.nextLineAvailableChars)this.pushWord(K),this.wordBreakOpportunity=!1;else{const Y=this.popWord();this.pushWord(Y?Y.concat(K):K)}}startNewLine(K=1){this.lines.push(this.nextLineWords),K>1&&this.lines.push(...Array.from({length:K-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return 0===this.lines.length&&0===this.nextLineWords.length}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(K=>K.join(" ")).join("\n")}splitLongWord(K){const Y=[];let q=0;for(;K.length>this.maxLineLength;){const F=K.substring(0,this.maxLineLength),M=K.substring(this.maxLineLength),O=F.lastIndexOf(this.wrapCharacters[q]);if(O>-1)K=F.substring(O+1)+M,Y.push(F.substring(0,O+1));else{if(q++,!(qthis.maxLineLength)continue}else K=F+M;break}K=F+M}}return Y.push(K),Y}}}},6237:(Pe,C,G)=>{const{InlineTextBuilder:le}=G(8395);class ce{constructor(A=null){this.next=A}getRoot(){return this.next?this.next:this}}Pe.exports={BlockStackItem:class K extends ce{constructor(A,w=null,P=1,E){super(w),this.leadingLineBreaks=P,this.inlineTextBuilder=new le(A,E),this.rawText="",this.stashedLineBreaks=0,this.isPre=w&&w.isPre}},StackItem:ce,TableCellStackItem:class F extends ce{constructor(A,w=null,P){super(w),this.inlineTextBuilder=new le(A,P),this.rawText="",this.stashedLineBreaks=0,this.isPre=w&&w.isPre}},TableRowStackItem:class q extends ce{constructor(A=null){super(A),this.cells=[],this.isPre=A&&A.isPre}},TableStackItem:class Y extends ce{constructor(A=null){super(A),this.rows=[],this.isPre=A&&A.isPre}},TransformerStackItem:class M extends ce{constructor(A=null,w){super(A),this.transform=w}}}},8186:Pe=>{function C(q,F){return q[F]||(q[F]=[]),q[F]}function G(q,F=0){for(;q[F];)F++;return F}function ce(q,F,M,O){for(let A=0;AA?I.length:A}!function le(q,F){for(let M=0;MA?w:A);const E=[],k=[0];for(let D=0;Dz?Ce.length:z}K(k,D,B.colspan,z+M),B.rendered=!0}I+=B.rowspan}}return E.join("\n")}}},4563:()=>{},7139:(Pe,C,G)=>{G(8395),G(4563),Pe.exports={WhitespaceProcessor:class K{constructor(q){this.whitespaceChars=q.preserveNewlines?q.whitespaceCharacters.replace(/\n/g,""):q.whitespaceCharacters;const F=function ce(Y){return[...Y].map(q=>"\\u"+q.charCodeAt(0).toString(16).padStart(4,"0")).join("")}(this.whitespaceChars);if(this.leadingWhitespaceRe=new RegExp(`^[${F}]`),this.trailingWhitespaceRe=new RegExp(`[${F}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${F}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${F}])`,"g"),q.preserveNewlines){const M=new RegExp(`\\n|[^\\n${F}]+`,"gm");this.shrinkWrapAdd=function(O,A,w=(P=>P)){if(!O)return;const P=A.stashedSpace;let E=!1,k=M.exec(O);if(k)for(E=!0,"\n"===k[0]?A.startNewLine():P||this.testLeadingWhitespace(O)?A.pushWord(w(k[0])):A.concatWord(w(k[0]));null!==(k=M.exec(O));)"\n"===k[0]?A.startNewLine():A.pushWord(w(k[0]));A.stashedSpace=P&&!E||this.testTrailingWhitespace(O)}}else{const M=new RegExp(`[^${F}]+`,"g");this.shrinkWrapAdd=function(O,A,w=(P=>P)){if(!O)return;const P=A.stashedSpace;let E=!1,k=M.exec(O);if(k)for(E=!0,P||this.testLeadingWhitespace(O)?A.pushWord(w(k[0])):A.concatWord(w(k[0]));null!==(k=M.exec(O));)A.pushWord(w(k[0]));A.stashedSpace=P&&!E||this.testTrailingWhitespace(O)}}}testLeadingWhitespace(q){return this.leadingWhitespaceRe.test(q)}testTrailingWhitespace(q){return this.trailingWhitespaceRe.test(q)}testContainsWords(q){return!this.allWhitespaceOrEmptyRe.test(q)}countNewlinesNoWords(q){this.newlineOrNonWhitespaceRe.lastIndex=0;let M,F=0;for(;null!==(M=this.newlineOrNonWhitespaceRe.exec(q));){if("\n"!==M[0])return 0;F++}return F}}}},1126:function(Pe,C,G){"use strict";var W,le=this&&this.__extends||(W=function(te,b){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,N){$.__proto__=N}||function($,N){for(var ie in N)Object.prototype.hasOwnProperty.call(N,ie)&&($[ie]=N[ie])})(te,b)},function(te,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function $(){this.constructor=te}W(te,b),te.prototype=null===b?Object.create(b):($.prototype=b.prototype,new $)}),ce=this&&this.__createBinding||(Object.create?function(W,te,b,$){void 0===$&&($=b),Object.defineProperty(W,$,{enumerable:!0,get:function(){return te[b]}})}:function(W,te,b,$){void 0===$&&($=b),W[$]=te[b]}),K=this&&this.__setModuleDefault||(Object.create?function(W,te){Object.defineProperty(W,"default",{enumerable:!0,value:te})}:function(W,te){W.default=te}),Y=this&&this.__importStar||function(W){if(W&&W.__esModule)return W;var te={};if(null!=W)for(var b in W)"default"!==b&&Object.prototype.hasOwnProperty.call(W,b)&&ce(te,W,b);return K(te,W),te},q=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(C,"__esModule",{value:!0}),C.parseFeed=C.FeedHandler=void 0;var F=q(G(2962)),M=Y(G(2155)),O=G(3380),P=function(W){function te(b,$){return"object"==typeof b&&($=b=void 0),W.call(this,b,$)||this}return le(te,W),te.prototype.onend=function(){var b,$,N=D(ne,this.dom);if(N){var ie={};if("feed"===N.name){var _e=N.children;ie.type="atom",z(ie,"id","id",_e),z(ie,"title","title",_e);var H=B("href",D("link",_e));H&&(ie.link=H),z(ie,"description","subtitle",_e),(L=I("updated",_e))&&(ie.updated=new Date(L)),z(ie,"author","email",_e,!0),ie.items=k("entry",_e).map(function(Q){var de={},ue=Q.children;z(de,"id","id",ue),z(de,"title","title",ue);var Ne=B("href",D("link",ue));Ne&&(de.link=Ne);var Fe=I("summary",ue)||I("content",ue);Fe&&(de.description=Fe);var At=I("updated",ue);return At&&(de.pubDate=new Date(At)),de.media=E(ue),de})}else{var L;_e=null!==($=null===(b=D("channel",N.children))||void 0===b?void 0:b.children)&&void 0!==$?$:[],ie.type=N.name.substr(0,3),ie.id="",z(ie,"title","title",_e),z(ie,"link","link",_e),z(ie,"description","description",_e),(L=I("lastBuildDate",_e))&&(ie.updated=new Date(L)),z(ie,"author","managingEditor",_e,!0),ie.items=k("item",N.children).map(function(ue){var Ne={},Fe=ue.children;z(Ne,"id","guid",Fe),z(Ne,"title","title",Fe),z(Ne,"link","link",Fe),z(Ne,"description","description",Fe);var At=I("pubDate",Fe);return At&&(Ne.pubDate=new Date(At)),Ne.media=E(Fe),Ne})}this.feed=ie,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},te}(F.default);function E(W){return k("media:content",W).map(function(te){var b={medium:te.attribs.medium,isDefault:!!te.attribs.isDefault};return te.attribs.url&&(b.url=te.attribs.url),te.attribs.fileSize&&(b.fileSize=parseInt(te.attribs.fileSize,10)),te.attribs.type&&(b.type=te.attribs.type),te.attribs.expression&&(b.expression=te.attribs.expression),te.attribs.bitrate&&(b.bitrate=parseInt(te.attribs.bitrate,10)),te.attribs.framerate&&(b.framerate=parseInt(te.attribs.framerate,10)),te.attribs.samplingrate&&(b.samplingrate=parseInt(te.attribs.samplingrate,10)),te.attribs.channels&&(b.channels=parseInt(te.attribs.channels,10)),te.attribs.duration&&(b.duration=parseInt(te.attribs.duration,10)),te.attribs.height&&(b.height=parseInt(te.attribs.height,10)),te.attribs.width&&(b.width=parseInt(te.attribs.width,10)),te.attribs.lang&&(b.lang=te.attribs.lang),b})}function k(W,te){return M.getElementsByTagName(W,te,!0)}function D(W,te){return M.getElementsByTagName(W,te,!0,1)[0]}function I(W,te,b){return void 0===b&&(b=!1),M.getText(M.getElementsByTagName(W,te,b,1)).trim()}function B(W,te){return te?te.attribs[W]:null}function z(W,te,b,$,N){void 0===N&&(N=!1);var ie=I(b,$,N);ie&&(W[te]=ie)}function ne(W){return"rss"===W||"feed"===W||"rdf:RDF"===W}C.FeedHandler=P,C.parseFeed=function Ce(W,te){void 0===te&&(te={xmlMode:!0});var b=new P(te);return new O.Parser(b,te).end(W),b.feed}},3380:function(Pe,C,G){"use strict";var le=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(C,"__esModule",{value:!0}),C.Parser=void 0;var ce=le(G(6282)),K=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Y=new Set(["p"]),q={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:Y,h1:Y,h2:Y,h3:Y,h4:Y,h5:Y,h6:Y,select:K,input:K,output:K,button:K,datalist:K,textarea:K,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:Y,article:Y,aside:Y,blockquote:Y,details:Y,div:Y,dl:Y,fieldset:Y,figcaption:Y,figure:Y,footer:Y,form:Y,header:Y,hr:Y,main:Y,nav:Y,ol:Y,pre:Y,section:Y,table:Y,ul:Y,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},F=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),M=new Set(["math","svg"]),O=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),A=/\s|\//,w=function(){function P(E,k){var D,I,B,z,ne;void 0===k&&(k={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=k,this.cbs=E??{},this.lowerCaseTagNames=null!==(D=k.lowerCaseTags)&&void 0!==D?D:!k.xmlMode,this.lowerCaseAttributeNames=null!==(I=k.lowerCaseAttributeNames)&&void 0!==I?I:!k.xmlMode,this.tokenizer=new(null!==(B=k.Tokenizer)&&void 0!==B?B:ce.default)(this.options,this),null===(ne=(z=this.cbs).onparserinit)||void 0===ne||ne.call(z,this)}return P.prototype.updatePosition=function(E){this.startIndex=null===this.endIndex?this.tokenizer.sectionStart<=E?0:this.tokenizer.sectionStart-E:this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},P.prototype.ontext=function(E){var k,D;this.updatePosition(1),this.endIndex--,null===(D=(k=this.cbs).ontext)||void 0===D||D.call(k,E)},P.prototype.onopentagname=function(E){var k,D;if(this.lowerCaseTagNames&&(E=E.toLowerCase()),this.tagname=E,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(q,E))for(var I=void 0;this.stack.length>0&&q[E].has(I=this.stack[this.stack.length-1]);)this.onclosetag(I);(this.options.xmlMode||!F.has(E))&&(this.stack.push(E),M.has(E)?this.foreignContext.push(!0):O.has(E)&&this.foreignContext.push(!1)),null===(D=(k=this.cbs).onopentagname)||void 0===D||D.call(k,E),this.cbs.onopentag&&(this.attribs={})},P.prototype.onopentagend=function(){var E,k;this.updatePosition(1),this.attribs&&(null===(k=(E=this.cbs).onopentag)||void 0===k||k.call(E,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&F.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},P.prototype.onclosetag=function(E){if(this.updatePosition(1),this.lowerCaseTagNames&&(E=E.toLowerCase()),(M.has(E)||O.has(E))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&F.has(E))!this.options.xmlMode&&("br"===E||"p"===E)&&(this.onopentagname(E),this.closeCurrentTag());else{var k=this.stack.lastIndexOf(E);if(-1!==k)if(this.cbs.onclosetag)for(k=this.stack.length-k;k--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=k;else"p"===E&&!this.options.xmlMode&&(this.onopentagname(E),this.closeCurrentTag())}},P.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},P.prototype.closeCurrentTag=function(){var E,k,D=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===D&&(null===(k=(E=this.cbs).onclosetag)||void 0===k||k.call(E,D),this.stack.pop())},P.prototype.onattribname=function(E){this.lowerCaseAttributeNames&&(E=E.toLowerCase()),this.attribname=E},P.prototype.onattribdata=function(E){this.attribvalue+=E},P.prototype.onattribend=function(E){var k,D;null===(D=(k=this.cbs).onattribute)||void 0===D||D.call(k,this.attribname,this.attribvalue,E),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},P.prototype.getInstructionName=function(E){var k=E.search(A),D=k<0?E:E.substr(0,k);return this.lowerCaseTagNames&&(D=D.toLowerCase()),D},P.prototype.ondeclaration=function(E){if(this.cbs.onprocessinginstruction){var k=this.getInstructionName(E);this.cbs.onprocessinginstruction("!"+k,"!"+E)}},P.prototype.onprocessinginstruction=function(E){if(this.cbs.onprocessinginstruction){var k=this.getInstructionName(E);this.cbs.onprocessinginstruction("?"+k,"?"+E)}},P.prototype.oncomment=function(E){var k,D,I,B;this.updatePosition(4),null===(D=(k=this.cbs).oncomment)||void 0===D||D.call(k,E),null===(B=(I=this.cbs).oncommentend)||void 0===B||B.call(I)},P.prototype.oncdata=function(E){var k,D,I,B,z,ne;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(D=(k=this.cbs).oncdatastart)||void 0===D||D.call(k),null===(B=(I=this.cbs).ontext)||void 0===B||B.call(I,E),null===(ne=(z=this.cbs).oncdataend)||void 0===ne||ne.call(z)):this.oncomment("[CDATA["+E+"]]")},P.prototype.onerror=function(E){var k,D;null===(D=(k=this.cbs).onerror)||void 0===D||D.call(k,E)},P.prototype.onend=function(){var E,k;if(this.cbs.onclosetag)for(var D=this.stack.length;D>0;this.cbs.onclosetag(this.stack[--D]));null===(k=(E=this.cbs).onend)||void 0===k||k.call(E)},P.prototype.reset=function(){var E,k,D,I;null===(k=(E=this.cbs).onreset)||void 0===k||k.call(E),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(I=(D=this.cbs).onparserinit)||void 0===I||I.call(D,this)},P.prototype.parseComplete=function(E){this.reset(),this.end(E)},P.prototype.write=function(E){this.tokenizer.write(E)},P.prototype.end=function(E){this.tokenizer.end(E)},P.prototype.pause=function(){this.tokenizer.pause()},P.prototype.resume=function(){this.tokenizer.resume()},P.prototype.parseChunk=function(E){this.write(E)},P.prototype.done=function(E){this.end(E)},P}();C.Parser=w},6282:function(Pe,C,G){"use strict";var le=this&&this.__importDefault||function(ae){return ae&&ae.__esModule?ae:{default:ae}};Object.defineProperty(C,"__esModule",{value:!0});var ce=le(G(672)),K=le(G(9323)),Y=le(G(9591)),q=le(G(2586));function F(ae){return" "===ae||"\n"===ae||"\t"===ae||"\f"===ae||"\r"===ae}function M(ae){return ae>="a"&&ae<="z"||ae>="A"&&ae<="Z"}function O(ae,R,Ge){var qe=ae.toLowerCase();return ae===qe?function(Nt,ln){ln===qe?Nt._state=R:(Nt._state=Ge,Nt._index--)}:function(Nt,ln){ln===qe||ln===ae?Nt._state=R:(Nt._state=Ge,Nt._index--)}}function A(ae,R){var Ge=ae.toLowerCase();return function(qe,Nt){Nt===Ge||Nt===ae?qe._state=R:(qe._state=3,qe._index--)}}var w=O("C",24,16),P=O("D",25,16),E=O("A",26,16),k=O("T",27,16),D=O("A",28,16),I=A("R",35),B=A("I",36),z=A("P",37),ne=A("T",38),Ce=O("R",40,1),W=O("I",41,1),te=O("P",42,1),b=O("T",43,1),$=A("Y",45),N=A("L",46),ie=A("E",47),_e=O("Y",49,1),H=O("L",50,1),L=O("E",51,1),Q=A("I",54),de=A("T",55),ue=A("L",56),Ne=A("E",57),Fe=O("I",58,1),At=O("T",59,1),Ie=O("L",60,1),He=O("E",61,1),re=O("#",63,64),ye=O("X",66,65),be=function(){function ae(R,Ge){var qe;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=Ge,this.xmlMode=!!R?.xmlMode,this.decodeEntities=null===(qe=R?.decodeEntities)||void 0===qe||qe}return ae.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},ae.prototype.write=function(R){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=R,this.parse()},ae.prototype.end=function(R){this.ended&&this.cbs.onerror(Error(".end() after done!")),R&&this.write(R),this.ended=!0,this.running&&this.finish()},ae.prototype.pause=function(){this.running=!1},ae.prototype.resume=function(){this.running=!0,this._indexthis.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&"&"===R&&(1===this.special||4===this.special)&&(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},ae.prototype.isTagStartChar=function(R){return M(R)||this.xmlMode&&!F(R)&&"/"!==R&&">"!==R},ae.prototype.stateBeforeTagName=function(R){"/"===R?this._state=5:"<"===R?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===R||1!==this.special||F(R)?this._state=1:"!"===R?(this._state=15,this.sectionStart=this._index+1):"?"===R?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(R)?(this._state=this.xmlMode||"s"!==R&&"S"!==R?this.xmlMode||"t"!==R&&"T"!==R?3:52:32,this.sectionStart=this._index):this._state=1},ae.prototype.stateInTagName=function(R){("/"===R||">"===R||F(R))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},ae.prototype.stateBeforeClosingTagName=function(R){F(R)||(">"===R?this._state=1:1!==this.special?4===this.special||"s"!==R&&"S"!==R?4!==this.special||"t"!==R&&"T"!==R?(this._state=1,this._index--):this._state=53:this._state=33:this.isTagStartChar(R)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},ae.prototype.stateInClosingTagName=function(R){(">"===R||F(R))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},ae.prototype.stateAfterClosingTagName=function(R){">"===R&&(this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateBeforeAttributeName=function(R){">"===R?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===R?this._state=4:F(R)||(this._state=9,this.sectionStart=this._index)},ae.prototype.stateInSelfClosingTag=function(R){">"===R?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):F(R)||(this._state=8,this._index--)},ae.prototype.stateInAttributeName=function(R){("="===R||"/"===R||">"===R||F(R))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},ae.prototype.stateAfterAttributeName=function(R){"="===R?this._state=11:"/"===R||">"===R?(this.cbs.onattribend(void 0),this._state=8,this._index--):F(R)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},ae.prototype.stateBeforeAttributeValue=function(R){'"'===R?(this._state=12,this.sectionStart=this._index+1):"'"===R?(this._state=13,this.sectionStart=this._index+1):F(R)||(this._state=14,this.sectionStart=this._index,this._index--)},ae.prototype.handleInAttributeValue=function(R,Ge){R===Ge?(this.emitToken("onattribdata"),this.cbs.onattribend(Ge),this._state=8):this.decodeEntities&&"&"===R&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},ae.prototype.stateInAttributeValueDoubleQuotes=function(R){this.handleInAttributeValue(R,'"')},ae.prototype.stateInAttributeValueSingleQuotes=function(R){this.handleInAttributeValue(R,"'")},ae.prototype.stateInAttributeValueNoQuotes=function(R){F(R)||">"===R?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===R&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},ae.prototype.stateBeforeDeclaration=function(R){this._state="["===R?23:"-"===R?18:16},ae.prototype.stateInDeclaration=function(R){">"===R&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateInProcessingInstruction=function(R){">"===R&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateBeforeComment=function(R){"-"===R?(this._state=19,this.sectionStart=this._index+1):this._state=16},ae.prototype.stateInComment=function(R){"-"===R&&(this._state=21)},ae.prototype.stateInSpecialComment=function(R){">"===R&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateAfterComment1=function(R){this._state="-"===R?22:19},ae.prototype.stateAfterComment2=function(R){">"===R?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==R&&(this._state=19)},ae.prototype.stateBeforeCdata6=function(R){"["===R?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},ae.prototype.stateInCdata=function(R){"]"===R&&(this._state=30)},ae.prototype.stateAfterCdata1=function(R){this._state="]"===R?31:29},ae.prototype.stateAfterCdata2=function(R){">"===R?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==R&&(this._state=29)},ae.prototype.stateBeforeSpecialS=function(R){"c"===R||"C"===R?this._state=34:"t"===R||"T"===R?this._state=44:(this._state=3,this._index--)},ae.prototype.stateBeforeSpecialSEnd=function(R){this._state=2!==this.special||"c"!==R&&"C"!==R?3!==this.special||"t"!==R&&"T"!==R?1:48:39},ae.prototype.stateBeforeSpecialLast=function(R,Ge){("/"===R||">"===R||F(R))&&(this.special=Ge),this._state=3,this._index--},ae.prototype.stateAfterSpecialLast=function(R,Ge){">"===R||F(R)?(this.special=1,this._state=6,this.sectionStart=this._index-Ge,this._index--):this._state=1},ae.prototype.parseFixedEntity=function(R){if(void 0===R&&(R=this.xmlMode?q.default:K.default),this.sectionStart+1=2;){var qe=this.buffer.substr(R,Ge);if(Object.prototype.hasOwnProperty.call(Y.default,qe))return this.emitPartial(Y.default[qe]),void(this.sectionStart+=Ge+1);Ge--}},ae.prototype.stateInNamedEntity=function(R){";"===R?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1"9")&&!M(R)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==R&&this.parseFixedEntity(Y.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},ae.prototype.decodeNumericEntity=function(R,Ge,qe){var Nt=this.sectionStart+R;if(Nt!==this._index){var ln=this.buffer.substring(Nt,this._index),hi=parseInt(ln,Ge);this.emitPartial(ce.default(hi)),this.sectionStart=qe?this._index+1:this._index}this._state=this.baseState},ae.prototype.stateInNumericEntity=function(R){";"===R?this.decodeNumericEntity(2,10,!0):(R<"0"||R>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},ae.prototype.stateInHexEntity=function(R){";"===R?this.decodeNumericEntity(3,16,!0):(R<"a"||R>"f")&&(R<"A"||R>"F")&&(R<"0"||R>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},ae.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},ae.prototype.parse=function(){for(;this._index0)throw new Error("RegExp has capture groups: "+Ge+"\nUse (?: \u2026 ) instead");if(!He.lineBreaks&&Ge.test("\n"))throw new Error("Rule should declare lineBreaks: "+Ge);At.push(w(R))}}var Nt=Q&&Q.fallback,ln=q&&!Nt?"ym":"gm",hi=q||Nt?"":"|";return!0===Ne&&(ln+="u"),{regexp:new RegExp(P(At)+hi,ln),groups:Fe,fast:de,error:Q||z}}function W(H,L,Q){var de=H&&(H.push||H.next);if(de&&!Q[de])throw new Error("Missing state '"+de+"' (in token '"+H.defaultType+"' of state '"+L+"')");if(H&&H.pop&&1!=+H.pop)throw new Error("pop must be 1 (in token '"+H.defaultType+"' of state '"+L+"')")}var $=function(H,L){this.startState=L,this.states=H,this.buffer="",this.stack=[],this.reset()};$.prototype.reset=function(H,L){return this.buffer=H||"",this.index=0,this.line=L?L.line:1,this.col=L?L.col:1,this.queuedToken=L?L.queuedToken:null,this.queuedThrow=L?L.queuedThrow:null,this.setState(L?L.state:this.startState),this.stack=L&&L.stack?L.stack.slice():[],this},$.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedThrow:this.queuedThrow}},$.prototype.setState=function(H){if(H&&this.state!==H){this.state=H;var L=this.states[H];this.groups=L.groups,this.error=L.error,this.re=L.regexp,this.fast=L.fast}},$.prototype.popState=function(){this.setState(this.stack.pop())},$.prototype.pushState=function(H){this.stack.push(this.state),this.setState(H)};var N=q?function(H,L){return H.exec(L)}:function(H,L){var Q=H.exec(L);return 0===Q[0].length?null:Q};function ie(){return this.value}if($.prototype._getGroup=function(H){for(var L=this.groups.length,Q=0;Q";throw new Error("Unknown symbol type: "+M)}}return C.highestId=0,C.prototype.toString=function(M){var O=typeof M>"u"?this.symbols.map(F).join(" "):this.symbols.slice(0,M).map(F).join(" ")+" \u25cf "+this.symbols.slice(M).map(F).join(" ");return this.name+" \u2192 "+O},G.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},G.prototype.nextState=function(M){var O=new G(this.rule,this.dot+1,this.reference,this.wantedBy);return O.left=this,O.right=M,O.isComplete&&(O.data=O.build(),O.right=void 0),O},G.prototype.build=function(){var M=[],O=this;do{M.push(O.right.data),O=O.left}while(O.left);return M.reverse(),M},G.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,Y.fail))},le.prototype.process=function(M){for(var O=this.states,A=this.wants,w=this.completed,P=0;P0&&O.push(" ^ "+w+" more lines identical to this"),w=0,O.push(" "+k)),A=k}},Y.prototype.getSymbolDisplay=function(M){return function q(M){var O=typeof M;if("string"===O)return M;if("object"===O){if(M.literal)return JSON.stringify(M.literal);if(M instanceof RegExp)return"character matching "+M;if(M.type)return M.type+" token";if(M.test)return"token matching "+String(M.test);throw new Error("Unknown symbol type: "+M)}}(M)},Y.prototype.buildFirstStateStack=function(M,O){if(-1!==O.indexOf(M))return null;if(0===M.wantedBy.length)return[M];var A=M.wantedBy[0],w=[M].concat(O),P=this.buildFirstStateStack(A,w);return null===P?null:[M].concat(P)},Y.prototype.save=function(){var M=this.table[this.current];return M.lexerState=this.lexerState,M},Y.prototype.restore=function(M){var O=M.index;this.current=O,this.table[O]=M,this.table.splice(O+1),this.lexerState=M.lexerState,this.results=this.finish()},Y.prototype.rewind=function(M){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[M])},Y.prototype.finish=function(){var M=[],O=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(w){w.rule.name===O&&w.dot===w.rule.symbols.length&&0===w.reference&&w.data!==Y.fail&&M.push(w)}),M.map(function(w){return w.data})},{Parser:Y,Grammar:ce,Rule:C}},Pe.exports?Pe.exports=G():this.nearley=G()},5742:(Pe,C,G)=>{"use strict";var ce=G(1557),K=G(4802),Y=G(7448),q=G(7302),F=G(4072),M=function(){function A(w){this._isScalar=!1,w&&(this._subscribe=w)}return A.prototype.lift=function(w){var P=new A;return P.source=this,P.operator=w,P},A.prototype.subscribe=function(w,P,E){var k=this.operator,D=K.toSubscriber(w,P,E);if(D.add(k?k.call(D,this.source):this.source||F.config.useDeprecatedSynchronousErrorHandling&&!D.syncErrorThrowable?this._subscribe(D):this._trySubscribe(D)),F.config.useDeprecatedSynchronousErrorHandling&&D.syncErrorThrowable&&(D.syncErrorThrowable=!1,D.syncErrorThrown))throw D.syncErrorValue;return D},A.prototype._trySubscribe=function(w){try{return this._subscribe(w)}catch(P){F.config.useDeprecatedSynchronousErrorHandling&&(w.syncErrorThrown=!0,w.syncErrorValue=P),ce.canReportError(w)?w.error(P):console.warn(P)}},A.prototype.forEach=function(w,P){var E=this;return new(P=O(P))(function(k,D){var I;I=E.subscribe(function(B){try{w(B)}catch(z){D(z),I&&I.unsubscribe()}},D,k)})},A.prototype._subscribe=function(w){var P=this.source;return P&&P.subscribe(w)},A.prototype[Y.observable]=function(){return this},A.prototype.pipe=function(){for(var w=[],P=0;P{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(4072),ce=G(2422);C.empty={closed:!0,next:function(K){},error:function(K){if(le.config.useDeprecatedSynchronousErrorHandling)throw K;ce.hostReportError(K)},complete:function(){}}},3281:function(Pe,C,G){"use strict";var w,le=this&&this.__extends||(w=function(P,E){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,D){k.__proto__=D}||function(k,D){for(var I in D)D.hasOwnProperty(I)&&(k[I]=D[I])})(P,E)},function(P,E){function k(){this.constructor=P}w(P,E),P.prototype=null===E?Object.create(E):(k.prototype=E.prototype,new k)});Object.defineProperty(C,"__esModule",{value:!0});var ce=G(9607),K=G(7350),Y=G(6052),q=G(2858),F=G(4072),M=G(2422),O=function(w){function P(E,k,D){var I=w.call(this)||this;switch(I.syncErrorValue=null,I.syncErrorThrown=!1,I.syncErrorThrowable=!1,I.isStopped=!1,arguments.length){case 0:I.destination=K.empty;break;case 1:if(!E){I.destination=K.empty;break}if("object"==typeof E){E instanceof P?(I.syncErrorThrowable=E.syncErrorThrowable,I.destination=E,E.add(I)):(I.syncErrorThrowable=!0,I.destination=new A(I,E));break}default:I.syncErrorThrowable=!0,I.destination=new A(I,E,k,D)}return I}return le(P,w),P.prototype[q.rxSubscriber]=function(){return this},P.create=function(E,k,D){var I=new P(E,k,D);return I.syncErrorThrowable=!1,I},P.prototype.next=function(E){this.isStopped||this._next(E)},P.prototype.error=function(E){this.isStopped||(this.isStopped=!0,this._error(E))},P.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},P.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,w.prototype.unsubscribe.call(this))},P.prototype._next=function(E){this.destination.next(E)},P.prototype._error=function(E){this.destination.error(E),this.unsubscribe()},P.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},P.prototype._unsubscribeAndRecycle=function(){var E=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=E,this},P}(Y.Subscription);C.Subscriber=O;var A=function(w){function P(E,k,D,I){var B=w.call(this)||this;B._parentSubscriber=E;var z,ne=B;return ce.isFunction(k)?z=k:k&&(z=k.next,D=k.error,I=k.complete,k!==K.empty&&(ne=Object.create(k),ce.isFunction(ne.unsubscribe)&&B.add(ne.unsubscribe.bind(ne)),ne.unsubscribe=B.unsubscribe.bind(B))),B._context=ne,B._next=z,B._error=D,B._complete=I,B}return le(P,w),P.prototype.next=function(E){if(!this.isStopped&&this._next){var k=this._parentSubscriber;F.config.useDeprecatedSynchronousErrorHandling&&k.syncErrorThrowable?this.__tryOrSetError(k,this._next,E)&&this.unsubscribe():this.__tryOrUnsub(this._next,E)}},P.prototype.error=function(E){if(!this.isStopped){var k=this._parentSubscriber,D=F.config.useDeprecatedSynchronousErrorHandling;if(this._error)D&&k.syncErrorThrowable?(this.__tryOrSetError(k,this._error,E),this.unsubscribe()):(this.__tryOrUnsub(this._error,E),this.unsubscribe());else if(k.syncErrorThrowable)D?(k.syncErrorValue=E,k.syncErrorThrown=!0):M.hostReportError(E),this.unsubscribe();else{if(this.unsubscribe(),D)throw E;M.hostReportError(E)}}},P.prototype.complete=function(){var E=this;if(!this.isStopped){var k=this._parentSubscriber;if(this._complete){var D=function(){return E._complete.call(E._context)};F.config.useDeprecatedSynchronousErrorHandling&&k.syncErrorThrowable?(this.__tryOrSetError(k,D),this.unsubscribe()):(this.__tryOrUnsub(D),this.unsubscribe())}else this.unsubscribe()}},P.prototype.__tryOrUnsub=function(E,k){try{E.call(this._context,k)}catch(D){if(this.unsubscribe(),F.config.useDeprecatedSynchronousErrorHandling)throw D;M.hostReportError(D)}},P.prototype.__tryOrSetError=function(E,k,D){if(!F.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{k.call(this._context,D)}catch(I){return F.config.useDeprecatedSynchronousErrorHandling?(E.syncErrorValue=I,E.syncErrorThrown=!0,!0):(M.hostReportError(I),!0)}return!1},P.prototype._unsubscribe=function(){var E=this._parentSubscriber;this._context=null,this._parentSubscriber=null,E.unsubscribe()},P}(O);C.SafeSubscriber=A},6052:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(5019),ce=G(2556),K=G(9607),Y=G(2142),q=function(){function M(O){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,O&&(this._ctorUnsubscribe=!0,this._unsubscribe=O)}return M.prototype.unsubscribe=function(){var O;if(!this.closed){var A=this,w=A._parentOrParents,P=A._ctorUnsubscribe,E=A._unsubscribe,k=A._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,w instanceof M)w.remove(this);else if(null!==w)for(var D=0;D{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var G=!1;C.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(le){if(le){var ce=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+ce.stack)}else G&&console.log("RxJS: Back to a better error behavior. Thank you. <3");G=le},get useDeprecatedSynchronousErrorHandling(){return G}}},7448:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},2858:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),C.$$rxSubscriber=C.rxSubscriber},2142:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var G=function(){function le(ce){return Error.call(this),this.message=ce?ce.length+" errors occurred during unsubscription:\n"+ce.map(function(K,Y){return Y+1+") "+K.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=ce,this}return le.prototype=Object.create(Error.prototype),le}();C.UnsubscriptionError=G},1557:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(3281);C.canReportError=function ce(K){for(;K;){var F=K.destination;if(K.closed||K.isStopped)return!1;K=F&&F instanceof le.Subscriber?F:null}return!0}},2422:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.hostReportError=function G(le){setTimeout(function(){throw le},0)}},6610:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.identity=function G(le){return le}},5019:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.isArray=Array.isArray||function(G){return G&&"number"==typeof G.length}},9607:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.isFunction=function G(le){return"function"==typeof le}},2556:(Pe,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.isObject=function G(le){return null!==le&&"object"==typeof le}},7302:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(6610);function K(Y){return 0===Y.length?le.identity:1===Y.length?Y[0]:function(F){return Y.reduce(function(M,O){return O(M)},F)}}C.pipe=function ce(){for(var Y=[],q=0;q{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(3281),ce=G(2858),K=G(7350);C.toSubscriber=function Y(q,F,M){if(q){if(q instanceof le.Subscriber)return q;if(q[ce.rxSubscriber])return q[ce.rxSubscriber]()}return q||F||M?new le.Subscriber(q,F,M):new le.Subscriber(K.empty)}},5999:(Pe,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(2962),ce=G(9542);function Y(I){const B=I.map(q);return(z,...ne)=>k(B,Ce=>Ce(z,...ne))}function q(I){switch(I.type){case"terminal":{const B=[I.valueContainer];return(z,...ne)=>B}case"tagName":return function F(I){const B={};for(const z of I.variants)B[z.value]=Y(z.cont);return(z,...ne)=>{const Ce=B[z.name];return Ce?Ce(z,...ne):[]}}(I);case"attrValue":return function O(I){const B=[];for(const ne of I.matchers){const Ce=ne.predicate,W=Y(ne.cont);B.push((te,b,...$)=>Ce(te)?W(b,...$):[])}const z=I.name;return(ne,...Ce)=>{const W=ne.attribs[z];return W||""===W?k(B,te=>te(W,ne,...Ce)):[]}}(I);case"attrPresence":return function M(I){const B=I.name,z=Y(I.cont);return(ne,...Ce)=>Object.prototype.hasOwnProperty.call(ne.attribs,B)?z(ne,...Ce):[]}(I);case"pushElement":return function A(I){const B=Y(I.cont),z="+"===I.combinator?w:P;return(ne,...Ce)=>{const W=z(ne);return null===W?[]:B(W,ne,...Ce)}}(I);case"popElement":return function E(I){const B=Y(I.cont);return(z,ne,...Ce)=>B(ne,...Ce)}(I)}}const w=I=>{const B=I.prev;return null===B?null:le.isTag(B)?B:w(B)},P=I=>{const B=I.parent;return B&&le.isTag(B)?B:null};function k(I,B){return[].concat(...function D(I,B){const z=I.length,ne=new Array(z);for(let Ce=0;Ce{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(4847);function K(N){if(N&&N.__esModule)return N;var ie=Object.create(null);return N&&Object.keys(N).forEach(function(_e){if("default"!==_e){var H=Object.getOwnPropertyDescriptor(N,_e);Object.defineProperty(ie,_e,H.get?H:{enumerable:!0,get:function(){return N[_e]}})}}),ie.default=N,Object.freeze(ie)}function q(N){return N[0]}const F=K(G(6456)).compile({ws:{match:/[ \t\r\n\f]+/,lineBreaks:!0},idn:{match:/[a-zA-Z_-][a-zA-Z0-9_-]*/},hashToken:{match:/#[a-zA-Z0-9_-]+/,value:N=>N.slice(1)},str1:{match:/'(?:\\['\\]|[^\n'\\])*'/,value:N=>N.slice(1,-1)},str2:{match:/"(?:\\["\\]|[^\n"\\])*"/,value:N=>N.slice(1,-1)},asterisk:"*",fullstop:".",comma:",",lbr:"[",rbr:"]",eq:"=",gt:">",vbar:"|",plus:"+",tilde:"~",caret:"^",dollar:"$"});function M(N){return N[0].value}function O(N){return N[1]}function A([N,ie,_e],[H,L,Q]){return[N+H,ie+L,_e+Q]}const w={Lexer:F,ParserRules:[{name:"main",symbols:["_","listSelector","_"],postprocess:O},{name:"mainNoList",symbols:["_","complexSelector","_"],postprocess:O},{name:"listSelector",symbols:["complexSelector"],postprocess:([N])=>({type:"list",list:[N]})},{name:"listSelector",symbols:["listSelector","_",F.has("comma")?{type:"comma"}:comma,"_","complexSelector"],postprocess:([N,,,,ie])=>({type:"list",list:[...N.list,ie]})},{name:"complexSelector",symbols:["compoundSelector"],postprocess:q},{name:"complexSelector",symbols:["complexSelector","__","compoundSelector"],postprocess:([N,,ie])=>({type:"compound",list:[...ie.list,{type:"combinator",combinator:" ",left:N,specificity:N.specificity}],specificity:A(N.specificity,ie.specificity)})},{name:"complexSelector",symbols:["complexSelector","_","combinator","_","compoundSelector"],postprocess:([N,,ie,,_e])=>({type:"compound",list:[..._e.list,{type:"combinator",combinator:ie,left:N,specificity:N.specificity}],specificity:A(N.specificity,_e.specificity)})},{name:"combinator",symbols:[F.has("gt")?{type:"gt"}:gt],postprocess:()=>">"},{name:"combinator",symbols:[F.has("plus")?{type:"plus"}:plus],postprocess:()=>"+"},{name:"combinator",symbols:[F.has("tilde")?{type:"tilde"}:tilde],postprocess:()=>"~"},{name:"combinator",symbols:[F.has("vbar")?{type:"vbar"}:vbar,F.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>"||"},{name:"compoundSelector",symbols:["typeSelector"],postprocess:([N])=>({type:"compound",list:[N],specificity:N.specificity})},{name:"compoundSelector",symbols:["subclassSelector"],postprocess:([N])=>({type:"compound",list:[N],specificity:N.specificity})},{name:"compoundSelector",symbols:["compoundSelector","subclassSelector"],postprocess:([N,ie])=>({type:"compound",list:[...N.list,ie],specificity:A(N.specificity,ie.specificity)})},{name:"subclassSelector",symbols:["idSelector"],postprocess:q},{name:"subclassSelector",symbols:["classSelector"],postprocess:q},{name:"subclassSelector",symbols:["attrSelector"],postprocess:q},{name:"attrSelector",symbols:["attrPresenceSelector"],postprocess:q},{name:"attrSelector",symbols:["attrValueSelector"],postprocess:q},{name:"typeSelector",symbols:["tagSelector"],postprocess:q},{name:"typeSelector",symbols:["uniSelector"],postprocess:q},{name:"attrPresenceSelector",symbols:[F.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_",F.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,N])=>({type:"attrPresence",name:N.name,namespace:N.namespace,specificity:[0,1,0]})},{name:"attrValueSelector",symbols:[F.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_","attrMatcher","_","attrValue","_",F.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,N,,ie,,_e])=>({type:"attrValue",name:N.name,namespace:N.namespace,matcher:ie,value:_e.value,modifier:_e.modifier,specificity:[0,1,0]})},{name:"attrMatcher",symbols:[F.has("eq")?{type:"eq"}:eq],postprocess:()=>"="},{name:"attrMatcher",symbols:[F.has("tilde")?{type:"tilde"}:tilde,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"~="},{name:"attrMatcher",symbols:[F.has("vbar")?{type:"vbar"}:vbar,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"|="},{name:"attrMatcher",symbols:[F.has("caret")?{type:"caret"}:caret,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"^="},{name:"attrMatcher",symbols:[F.has("dollar")?{type:"dollar"}:dollar,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"$="},{name:"attrMatcher",symbols:[F.has("asterisk")?{type:"asterisk"}:asterisk,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"*="},{name:"attrValue",symbols:["str"],postprocess:([N])=>({value:N,modifier:null})},{name:"attrValue",symbols:["idn"],postprocess:([N])=>({value:N,modifier:null})},{name:"attrValue",symbols:["str","_","attrModifier"],postprocess:([N,,ie])=>({value:N,modifier:ie})},{name:"attrValue",symbols:["idn","__","attrModifier"],postprocess:([N,,ie])=>({value:N,modifier:ie})},{name:"attrModifier",symbols:[{literal:"i"}],postprocess:()=>"i"},{name:"attrModifier",symbols:[{literal:"I"}],postprocess:()=>"i"},{name:"attrModifier",symbols:[{literal:"s"}],postprocess:()=>"s"},{name:"attrModifier",symbols:[{literal:"S"}],postprocess:()=>"s"},{name:"idSelector",symbols:[F.has("hashToken")?{type:"hashToken"}:hashToken],postprocess:([{value:N}])=>({type:"id",name:N,specificity:[1,0,0]})},{name:"classSelector",symbols:[F.has("fullstop")?{type:"fullstop"}:fullstop,"idn"],postprocess:([,N])=>({type:"class",name:N,specificity:[0,1,0]})},{name:"tagSelector",symbols:["wqname"],postprocess:([N])=>({type:"tag",name:N.name,namespace:N.namespace,specificity:[0,0,1]})},{name:"uniSelector",symbols:[F.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:()=>({type:"universal",namespace:null,specificity:[0,0,0]})},{name:"uniSelector",symbols:["ns",F.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:([N])=>({type:"universal",namespace:N,specificity:[0,0,0]})},{name:"wqname",symbols:["idn"],postprocess:([N])=>({name:N,namespace:null})},{name:"wqname",symbols:["ns","idn"],postprocess:([N,ie])=>({name:ie,namespace:N})},{name:"ns",symbols:[F.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>""},{name:"ns",symbols:["idn",F.has("vbar")?{type:"vbar"}:vbar],postprocess:q},{name:"str",symbols:[F.has("str1")?{type:"str1"}:str1],postprocess:M},{name:"str",symbols:[F.has("str2")?{type:"str2"}:str2],postprocess:M},{name:"idn",symbols:[F.has("idn")?{type:"idn"}:idn],postprocess:M},{name:"_$ebnf$1",symbols:[F.has("ws")?{type:"ws"}:ws],postprocess:q},{name:"_$ebnf$1",symbols:[],postprocess:()=>null},{name:"_",symbols:["_$ebnf$1"],postprocess:()=>null},{name:"__",symbols:[F.has("ws")?{type:"ws"}:ws],postprocess:()=>null}],ParserStart:"main"};var P=Object.freeze({__proto__:null});const E={...w,ParserStart:"mainNoList"};function I(N,ie){const _e=new le.Parser(le.Grammar.fromCompiled(N));if(_e.feed(ie),0===_e.results.length)throw new Error("Failed to parse - input string might be incomplete.");return _e.results[0]}function B(N){if(!N.type)throw new Error("This is not an AST node.");switch(N.type){case"universal":return z(N.namespace)+"*";case"tag":return z(N.namespace)+N.name;case"class":return"."+N.name;case"id":return"#"+N.name;case"attrPresence":return`[${z(N.namespace)}${N.name}]`;case"attrValue":return`[${z(N.namespace)}${N.name}${N.matcher}${function ne(N){return-1===N.indexOf('"')?`"${N}"`:-1===N.indexOf("'")?`'${N}'`:`"${N.replace('"','\\"')}"`}(N.value)}${N.modifier?N.modifier:""}]`;case"combinator":return B(N.left)+N.combinator;case"compound":return N.list.reduce((ie,_e)=>"combinator"===_e.type?B(_e)+ie:ie+B(_e),"");case"list":return N.list.map(B).join(",")}}function z(N){return N||""===N?N+"|":""}function W(N){switch(N.type){case"universal":case"tag":return[1];case"id":return[2];case"class":return[3,N.name];case"attrPresence":return[4,B(N)];case"attrValue":return[5,B(N)];case"combinator":return[15,B(N)]}}function $(N,ie){if(!Array.isArray(N)||!Array.isArray(ie))throw new Error("Arguments must be arrays.");const _e=N.length$(W(ie),W(_e)));break;case"combinator":Ce(N.left);break;case"list":N.list.forEach(Ce),N.list.sort((ie,_e)=>B(ie){"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(2512);function ce(re){if(re&&re.__esModule)return re;var ye=Object.create(null);return re&&Object.keys(re).forEach(function(be){if("default"!==be){var ae=Object.getOwnPropertyDescriptor(re,be);Object.defineProperty(ye,be,ae.get?ae:{enumerable:!0,get:function(){return re[be]}})}}),ye.default=re,Object.freeze(ye)}var K=ce(le),Y=Object.freeze({__proto__:null}),q=Object.freeze({__proto__:null});const M=[["\u251c\u2500","\u2502 "],["\u2514\u2500"," "]],O=[["\u2520\u2500","\u2503 "],["\u2516\u2500"," "]],A=[["\u255f\u2500","\u2551 "],["\u2559\u2500"," "]];function w(re,ye=O){return function E(re,ye){return ye.map((be,ae,{length:R})=>function k(re,ye,be=!0){const ae=re[be?1:0];return ae[0]+ye.split("\n").join("\n"+ae[1])}(re,be,ae===R-1)).join("\n")}(ye,re.map(be=>function P(re){switch(re.type){case"terminal":{const ye=re.valueContainer;return`\u25c1 #${ye.index} ${JSON.stringify(ye.specificity)} ${ye.value}`}case"tagName":return`\u25fb Tag name\n${w(re.variants,A)}`;case"attrValue":return`\u25a3 Attr value: ${re.name}\n${w(re.matchers,A)}`;case"attrPresence":return`\u25e8 Attr presence: ${re.name}\n${w(re.cont)}`;case"pushElement":return`\u25c9 Push element: ${re.combinator}\n${w(re.cont,M)}`;case"popElement":return`\u25cc Pop element\n${w(re.cont,M)}`;case"variant":return`\u25c7 = ${re.value}\n${w(re.cont)}`;case"matcher":return`\u25c8 ${re.matcher} "${re.value}"${re.modifier||""}\n${w(re.cont)}`}}(be)))}var D=Object.freeze({__proto__:null,treeify:re=>"\u25bd\n"+w(re,M)});function z(re){return ne(re),K.normalize(re),re}function ne(re){const ye=[];re.list.forEach(be=>{switch(be.type){case"class":ye.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:be.specificity,type:"attrValue",value:be.name});break;case"id":ye.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:be.specificity,type:"attrValue",value:be.name});break;case"combinator":ne(be.left),ye.push(be);break;case"universal":break;default:ye.push(be)}}),re.list=ye}function Ce(re){const ye=[];for(;re.length;){const be=ue(re,qe=>!0,b),{matches:ae,nonmatches:R,empty:Ge}=te(re,be);re=R,ae.length&&ye.push($(be,ae)),Ge.length&&ye.push(...W(Ge))}return ye}function W(re){const ye=[];for(const be of re){const ae=be.terminal;if("terminal"===ae.type)ye.push(ae);else{const{matches:R,rest:Ge}=Ne(ae.cont,qe=>"terminal"===qe.type);R.forEach(qe=>ye.push(qe)),Ge.length&&(ae.cont=Ge,ye.push(ae))}}return ye}function te(re,ye){const be=[],ae=[],R=[];for(const Ge of re){const qe=Ge.ast.list;qe.length?(qe.some(ln=>b(ln)===ye)?be:ae).push(Ge):R.push(Ge)}return{matches:be,nonmatches:ae,empty:R}}function b(re){switch(re.type){case"attrPresence":return`attrPresence ${re.name}`;case"attrValue":return`attrValue ${re.name}`;case"combinator":return`combinator ${re.combinator}`;default:return re.type}}function $(re,ye){if("tag"===re)return function N(re){const ye=Q(re,ae=>"tag"===ae.type,ae=>ae.name);return{type:"tagName",variants:Object.entries(ye).map(([ae,R])=>({type:"variant",value:ae,cont:Ce(R.items)}))}}(ye);if(re.startsWith("attrValue "))return function _e(re,ye){const be=Q(ye,R=>"attrValue"===R.type&&R.name===re,R=>`${R.matcher} ${R.modifier||""} ${R.value}`),ae=[];for(const R of Object.values(be)){const Ge=R.oneSimpleSelector,qe=H(Ge),Nt=Ce(R.items);ae.push({type:"matcher",matcher:Ge.matcher,modifier:Ge.modifier,value:Ge.value,predicate:qe,cont:Nt})}return{type:"attrValue",name:re,matchers:ae}}(re.substring(10),ye);if(re.startsWith("attrPresence "))return function ie(re,ye){for(const be of ye)de(be,ae=>"attrPresence"===ae.type&&ae.name===re);return{type:"attrPresence",name:re,cont:Ce(ye)}}(re.substring(13),ye);if("combinator >"===re)return L(">",ye);if("combinator +"===re)return L("+",ye);throw new Error(`Unsupported selector kind: ${re}`)}function H(re){if("i"===re.modifier){const ye=re.value.toLowerCase();switch(re.matcher){case"=":return be=>ye===be.toLowerCase();case"~=":return be=>be.toLowerCase().split(/[ \t]+/).includes(ye);case"^=":return be=>be.toLowerCase().startsWith(ye);case"$=":return be=>be.toLowerCase().endsWith(ye);case"*=":return be=>be.toLowerCase().includes(ye);case"|=":return be=>{const ae=be.toLowerCase();return ye===ae||ae.startsWith(ye)&&"-"===ae[ye.length]}}}else{const ye=re.value;switch(re.matcher){case"=":return be=>ye===be;case"~=":return be=>be.split(/[ \t]+/).includes(ye);case"^=":return be=>be.startsWith(ye);case"$=":return be=>be.endsWith(ye);case"*=":return be=>be.includes(ye);case"|=":return be=>ye===be||be.startsWith(ye)&&"-"===be[ye.length]}}}function L(re,ye){const be=Q(ye,R=>"combinator"===R.type&&R.combinator===re,R=>K.serialize(R.left)),ae=[];for(const R of Object.values(be)){const Ge=Ce(R.items);ae.push({ast:R.oneSimpleSelector.left,terminal:{type:"popElement",cont:Ge}})}return{type:"pushElement",combinator:re,cont:Ce(ae)}}function Q(re,ye,be){const ae={};for(;re.length;){const R=ue(re,ye,be),Ge=Hi=>ye(Hi)&&be(Hi)===R,qe=Hi=>Hi.ast.list.some(Ge),{matches:Nt,rest:ln}=Fe(re,qe);let hi=null;for(const Hi of Nt){const Vs=de(Hi,Ge);hi||(hi=Vs)}if(null==hi)throw new Error("No simple selector is found.");ae[R]={oneSimpleSelector:hi,items:Nt},re=ln}return ae}function de(re,ye){const be=re.ast.list,ae=new Array(be.length);let R=-1;for(let qe=be.length;qe-- >0;)ye(be[qe])&&(ae[qe]=!0,R=qe);if(-1==R)throw new Error("Couldn't find the required simple selector.");const Ge=be[R];return re.ast.list=be.filter((qe,Nt)=>!ae[Nt]),Ge}function ue(re,ye,be){const ae={};for(const qe of re){const Nt={};for(const ln of qe.ast.list.filter(ye))Nt[be(ln)]=!0;for(const ln of Object.keys(Nt))ae[ln]?ae[ln]++:ae[ln]=1}let R="",Ge=0;for(const qe of Object.entries(ae))qe[1]>Ge&&(R=qe[0],Ge=qe[1]);return R}function Ne(re,ye){const be=[],ae=[];for(const R of re)ye(R)?be.push(R):ae.push(R);return{matches:be,rest:ae}}function Fe(re,ye){const be=[],ae=[];for(const R of re)ye(R)?be.push(R):ae.push(R);return{matches:be,rest:ae}}function Ie(re,ye){const be=le.compareSpecificity(ye.specificity,re.specificity);return be>0||0===be&&ye.index0||0===be&&ye.index>re.index}C.Ast=Y,C.DecisionTree=class I{constructor(ye){this.branches=Ce(function B(re){const ye=re.length,be=new Array(ye);for(let ae=0;ae{"use strict";Pe.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},9323:Pe=>{"use strict";Pe.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Abreve":"\u0102","abreve":"\u0103","ac":"\u223e","acd":"\u223f","acE":"\u223e\u0333","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","Acy":"\u0410","acy":"\u0430","AElig":"\xc6","aelig":"\xe6","af":"\u2061","Afr":"\u{1d504}","afr":"\u{1d51e}","Agrave":"\xc0","agrave":"\xe0","alefsym":"\u2135","aleph":"\u2135","Alpha":"\u0391","alpha":"\u03b1","Amacr":"\u0100","amacr":"\u0101","amalg":"\u2a3f","amp":"&","AMP":"&","andand":"\u2a55","And":"\u2a53","and":"\u2227","andd":"\u2a5c","andslope":"\u2a58","andv":"\u2a5a","ang":"\u2220","ange":"\u29a4","angle":"\u2220","angmsdaa":"\u29a8","angmsdab":"\u29a9","angmsdac":"\u29aa","angmsdad":"\u29ab","angmsdae":"\u29ac","angmsdaf":"\u29ad","angmsdag":"\u29ae","angmsdah":"\u29af","angmsd":"\u2221","angrt":"\u221f","angrtvb":"\u22be","angrtvbd":"\u299d","angsph":"\u2222","angst":"\xc5","angzarr":"\u237c","Aogon":"\u0104","aogon":"\u0105","Aopf":"\u{1d538}","aopf":"\u{1d552}","apacir":"\u2a6f","ap":"\u2248","apE":"\u2a70","ape":"\u224a","apid":"\u224b","apos":"\'","ApplyFunction":"\u2061","approx":"\u2248","approxeq":"\u224a","Aring":"\xc5","aring":"\xe5","Ascr":"\u{1d49c}","ascr":"\u{1d4b6}","Assign":"\u2254","ast":"*","asymp":"\u2248","asympeq":"\u224d","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","awconint":"\u2233","awint":"\u2a11","backcong":"\u224c","backepsilon":"\u03f6","backprime":"\u2035","backsim":"\u223d","backsimeq":"\u22cd","Backslash":"\u2216","Barv":"\u2ae7","barvee":"\u22bd","barwed":"\u2305","Barwed":"\u2306","barwedge":"\u2305","bbrk":"\u23b5","bbrktbrk":"\u23b6","bcong":"\u224c","Bcy":"\u0411","bcy":"\u0431","bdquo":"\u201e","becaus":"\u2235","because":"\u2235","Because":"\u2235","bemptyv":"\u29b0","bepsi":"\u03f6","bernou":"\u212c","Bernoullis":"\u212c","Beta":"\u0392","beta":"\u03b2","beth":"\u2136","between":"\u226c","Bfr":"\u{1d505}","bfr":"\u{1d51f}","bigcap":"\u22c2","bigcirc":"\u25ef","bigcup":"\u22c3","bigodot":"\u2a00","bigoplus":"\u2a01","bigotimes":"\u2a02","bigsqcup":"\u2a06","bigstar":"\u2605","bigtriangledown":"\u25bd","bigtriangleup":"\u25b3","biguplus":"\u2a04","bigvee":"\u22c1","bigwedge":"\u22c0","bkarow":"\u290d","blacklozenge":"\u29eb","blacksquare":"\u25aa","blacktriangle":"\u25b4","blacktriangledown":"\u25be","blacktriangleleft":"\u25c2","blacktriangleright":"\u25b8","blank":"\u2423","blk12":"\u2592","blk14":"\u2591","blk34":"\u2593","block":"\u2588","bne":"=\u20e5","bnequiv":"\u2261\u20e5","bNot":"\u2aed","bnot":"\u2310","Bopf":"\u{1d539}","bopf":"\u{1d553}","bot":"\u22a5","bottom":"\u22a5","bowtie":"\u22c8","boxbox":"\u29c9","boxdl":"\u2510","boxdL":"\u2555","boxDl":"\u2556","boxDL":"\u2557","boxdr":"\u250c","boxdR":"\u2552","boxDr":"\u2553","boxDR":"\u2554","boxh":"\u2500","boxH":"\u2550","boxhd":"\u252c","boxHd":"\u2564","boxhD":"\u2565","boxHD":"\u2566","boxhu":"\u2534","boxHu":"\u2567","boxhU":"\u2568","boxHU":"\u2569","boxminus":"\u229f","boxplus":"\u229e","boxtimes":"\u22a0","boxul":"\u2518","boxuL":"\u255b","boxUl":"\u255c","boxUL":"\u255d","boxur":"\u2514","boxuR":"\u2558","boxUr":"\u2559","boxUR":"\u255a","boxv":"\u2502","boxV":"\u2551","boxvh":"\u253c","boxvH":"\u256a","boxVh":"\u256b","boxVH":"\u256c","boxvl":"\u2524","boxvL":"\u2561","boxVl":"\u2562","boxVL":"\u2563","boxvr":"\u251c","boxvR":"\u255e","boxVr":"\u255f","boxVR":"\u2560","bprime":"\u2035","breve":"\u02d8","Breve":"\u02d8","brvbar":"\xa6","bscr":"\u{1d4b7}","Bscr":"\u212c","bsemi":"\u204f","bsim":"\u223d","bsime":"\u22cd","bsolb":"\u29c5","bsol":"\\\\","bsolhsub":"\u27c8","bull":"\u2022","bullet":"\u2022","bump":"\u224e","bumpE":"\u2aae","bumpe":"\u224f","Bumpeq":"\u224e","bumpeq":"\u224f","Cacute":"\u0106","cacute":"\u0107","capand":"\u2a44","capbrcup":"\u2a49","capcap":"\u2a4b","cap":"\u2229","Cap":"\u22d2","capcup":"\u2a47","capdot":"\u2a40","CapitalDifferentialD":"\u2145","caps":"\u2229\ufe00","caret":"\u2041","caron":"\u02c7","Cayleys":"\u212d","ccaps":"\u2a4d","Ccaron":"\u010c","ccaron":"\u010d","Ccedil":"\xc7","ccedil":"\xe7","Ccirc":"\u0108","ccirc":"\u0109","Cconint":"\u2230","ccups":"\u2a4c","ccupssm":"\u2a50","Cdot":"\u010a","cdot":"\u010b","cedil":"\xb8","Cedilla":"\xb8","cemptyv":"\u29b2","cent":"\xa2","centerdot":"\xb7","CenterDot":"\xb7","cfr":"\u{1d520}","Cfr":"\u212d","CHcy":"\u0427","chcy":"\u0447","check":"\u2713","checkmark":"\u2713","Chi":"\u03a7","chi":"\u03c7","circ":"\u02c6","circeq":"\u2257","circlearrowleft":"\u21ba","circlearrowright":"\u21bb","circledast":"\u229b","circledcirc":"\u229a","circleddash":"\u229d","CircleDot":"\u2299","circledR":"\xae","circledS":"\u24c8","CircleMinus":"\u2296","CirclePlus":"\u2295","CircleTimes":"\u2297","cir":"\u25cb","cirE":"\u29c3","cire":"\u2257","cirfnint":"\u2a10","cirmid":"\u2aef","cirscir":"\u29c2","ClockwiseContourIntegral":"\u2232","CloseCurlyDoubleQuote":"\u201d","CloseCurlyQuote":"\u2019","clubs":"\u2663","clubsuit":"\u2663","colon":":","Colon":"\u2237","Colone":"\u2a74","colone":"\u2254","coloneq":"\u2254","comma":",","commat":"@","comp":"\u2201","compfn":"\u2218","complement":"\u2201","complexes":"\u2102","cong":"\u2245","congdot":"\u2a6d","Congruent":"\u2261","conint":"\u222e","Conint":"\u222f","ContourIntegral":"\u222e","copf":"\u{1d554}","Copf":"\u2102","coprod":"\u2210","Coproduct":"\u2210","copy":"\xa9","COPY":"\xa9","copysr":"\u2117","CounterClockwiseContourIntegral":"\u2233","crarr":"\u21b5","cross":"\u2717","Cross":"\u2a2f","Cscr":"\u{1d49e}","cscr":"\u{1d4b8}","csub":"\u2acf","csube":"\u2ad1","csup":"\u2ad0","csupe":"\u2ad2","ctdot":"\u22ef","cudarrl":"\u2938","cudarrr":"\u2935","cuepr":"\u22de","cuesc":"\u22df","cularr":"\u21b6","cularrp":"\u293d","cupbrcap":"\u2a48","cupcap":"\u2a46","CupCap":"\u224d","cup":"\u222a","Cup":"\u22d3","cupcup":"\u2a4a","cupdot":"\u228d","cupor":"\u2a45","cups":"\u222a\ufe00","curarr":"\u21b7","curarrm":"\u293c","curlyeqprec":"\u22de","curlyeqsucc":"\u22df","curlyvee":"\u22ce","curlywedge":"\u22cf","curren":"\xa4","curvearrowleft":"\u21b6","curvearrowright":"\u21b7","cuvee":"\u22ce","cuwed":"\u22cf","cwconint":"\u2232","cwint":"\u2231","cylcty":"\u232d","dagger":"\u2020","Dagger":"\u2021","daleth":"\u2138","darr":"\u2193","Darr":"\u21a1","dArr":"\u21d3","dash":"\u2010","Dashv":"\u2ae4","dashv":"\u22a3","dbkarow":"\u290f","dblac":"\u02dd","Dcaron":"\u010e","dcaron":"\u010f","Dcy":"\u0414","dcy":"\u0434","ddagger":"\u2021","ddarr":"\u21ca","DD":"\u2145","dd":"\u2146","DDotrahd":"\u2911","ddotseq":"\u2a77","deg":"\xb0","Del":"\u2207","Delta":"\u0394","delta":"\u03b4","demptyv":"\u29b1","dfisht":"\u297f","Dfr":"\u{1d507}","dfr":"\u{1d521}","dHar":"\u2965","dharl":"\u21c3","dharr":"\u21c2","DiacriticalAcute":"\xb4","DiacriticalDot":"\u02d9","DiacriticalDoubleAcute":"\u02dd","DiacriticalGrave":"`","DiacriticalTilde":"\u02dc","diam":"\u22c4","diamond":"\u22c4","Diamond":"\u22c4","diamondsuit":"\u2666","diams":"\u2666","die":"\xa8","DifferentialD":"\u2146","digamma":"\u03dd","disin":"\u22f2","div":"\xf7","divide":"\xf7","divideontimes":"\u22c7","divonx":"\u22c7","DJcy":"\u0402","djcy":"\u0452","dlcorn":"\u231e","dlcrop":"\u230d","dollar":"$","Dopf":"\u{1d53b}","dopf":"\u{1d555}","Dot":"\xa8","dot":"\u02d9","DotDot":"\u20dc","doteq":"\u2250","doteqdot":"\u2251","DotEqual":"\u2250","dotminus":"\u2238","dotplus":"\u2214","dotsquare":"\u22a1","doublebarwedge":"\u2306","DoubleContourIntegral":"\u222f","DoubleDot":"\xa8","DoubleDownArrow":"\u21d3","DoubleLeftArrow":"\u21d0","DoubleLeftRightArrow":"\u21d4","DoubleLeftTee":"\u2ae4","DoubleLongLeftArrow":"\u27f8","DoubleLongLeftRightArrow":"\u27fa","DoubleLongRightArrow":"\u27f9","DoubleRightArrow":"\u21d2","DoubleRightTee":"\u22a8","DoubleUpArrow":"\u21d1","DoubleUpDownArrow":"\u21d5","DoubleVerticalBar":"\u2225","DownArrowBar":"\u2913","downarrow":"\u2193","DownArrow":"\u2193","Downarrow":"\u21d3","DownArrowUpArrow":"\u21f5","DownBreve":"\u0311","downdownarrows":"\u21ca","downharpoonleft":"\u21c3","downharpoonright":"\u21c2","DownLeftRightVector":"\u2950","DownLeftTeeVector":"\u295e","DownLeftVectorBar":"\u2956","DownLeftVector":"\u21bd","DownRightTeeVector":"\u295f","DownRightVectorBar":"\u2957","DownRightVector":"\u21c1","DownTeeArrow":"\u21a7","DownTee":"\u22a4","drbkarow":"\u2910","drcorn":"\u231f","drcrop":"\u230c","Dscr":"\u{1d49f}","dscr":"\u{1d4b9}","DScy":"\u0405","dscy":"\u0455","dsol":"\u29f6","Dstrok":"\u0110","dstrok":"\u0111","dtdot":"\u22f1","dtri":"\u25bf","dtrif":"\u25be","duarr":"\u21f5","duhar":"\u296f","dwangle":"\u29a6","DZcy":"\u040f","dzcy":"\u045f","dzigrarr":"\u27ff","Eacute":"\xc9","eacute":"\xe9","easter":"\u2a6e","Ecaron":"\u011a","ecaron":"\u011b","Ecirc":"\xca","ecirc":"\xea","ecir":"\u2256","ecolon":"\u2255","Ecy":"\u042d","ecy":"\u044d","eDDot":"\u2a77","Edot":"\u0116","edot":"\u0117","eDot":"\u2251","ee":"\u2147","efDot":"\u2252","Efr":"\u{1d508}","efr":"\u{1d522}","eg":"\u2a9a","Egrave":"\xc8","egrave":"\xe8","egs":"\u2a96","egsdot":"\u2a98","el":"\u2a99","Element":"\u2208","elinters":"\u23e7","ell":"\u2113","els":"\u2a95","elsdot":"\u2a97","Emacr":"\u0112","emacr":"\u0113","empty":"\u2205","emptyset":"\u2205","EmptySmallSquare":"\u25fb","emptyv":"\u2205","EmptyVerySmallSquare":"\u25ab","emsp13":"\u2004","emsp14":"\u2005","emsp":"\u2003","ENG":"\u014a","eng":"\u014b","ensp":"\u2002","Eogon":"\u0118","eogon":"\u0119","Eopf":"\u{1d53c}","eopf":"\u{1d556}","epar":"\u22d5","eparsl":"\u29e3","eplus":"\u2a71","epsi":"\u03b5","Epsilon":"\u0395","epsilon":"\u03b5","epsiv":"\u03f5","eqcirc":"\u2256","eqcolon":"\u2255","eqsim":"\u2242","eqslantgtr":"\u2a96","eqslantless":"\u2a95","Equal":"\u2a75","equals":"=","EqualTilde":"\u2242","equest":"\u225f","Equilibrium":"\u21cc","equiv":"\u2261","equivDD":"\u2a78","eqvparsl":"\u29e5","erarr":"\u2971","erDot":"\u2253","escr":"\u212f","Escr":"\u2130","esdot":"\u2250","Esim":"\u2a73","esim":"\u2242","Eta":"\u0397","eta":"\u03b7","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","euro":"\u20ac","excl":"!","exist":"\u2203","Exists":"\u2203","expectation":"\u2130","exponentiale":"\u2147","ExponentialE":"\u2147","fallingdotseq":"\u2252","Fcy":"\u0424","fcy":"\u0444","female":"\u2640","ffilig":"\ufb03","fflig":"\ufb00","ffllig":"\ufb04","Ffr":"\u{1d509}","ffr":"\u{1d523}","filig":"\ufb01","FilledSmallSquare":"\u25fc","FilledVerySmallSquare":"\u25aa","fjlig":"fj","flat":"\u266d","fllig":"\ufb02","fltns":"\u25b1","fnof":"\u0192","Fopf":"\u{1d53d}","fopf":"\u{1d557}","forall":"\u2200","ForAll":"\u2200","fork":"\u22d4","forkv":"\u2ad9","Fouriertrf":"\u2131","fpartint":"\u2a0d","frac12":"\xbd","frac13":"\u2153","frac14":"\xbc","frac15":"\u2155","frac16":"\u2159","frac18":"\u215b","frac23":"\u2154","frac25":"\u2156","frac34":"\xbe","frac35":"\u2157","frac38":"\u215c","frac45":"\u2158","frac56":"\u215a","frac58":"\u215d","frac78":"\u215e","frasl":"\u2044","frown":"\u2322","fscr":"\u{1d4bb}","Fscr":"\u2131","gacute":"\u01f5","Gamma":"\u0393","gamma":"\u03b3","Gammad":"\u03dc","gammad":"\u03dd","gap":"\u2a86","Gbreve":"\u011e","gbreve":"\u011f","Gcedil":"\u0122","Gcirc":"\u011c","gcirc":"\u011d","Gcy":"\u0413","gcy":"\u0433","Gdot":"\u0120","gdot":"\u0121","ge":"\u2265","gE":"\u2267","gEl":"\u2a8c","gel":"\u22db","geq":"\u2265","geqq":"\u2267","geqslant":"\u2a7e","gescc":"\u2aa9","ges":"\u2a7e","gesdot":"\u2a80","gesdoto":"\u2a82","gesdotol":"\u2a84","gesl":"\u22db\ufe00","gesles":"\u2a94","Gfr":"\u{1d50a}","gfr":"\u{1d524}","gg":"\u226b","Gg":"\u22d9","ggg":"\u22d9","gimel":"\u2137","GJcy":"\u0403","gjcy":"\u0453","gla":"\u2aa5","gl":"\u2277","glE":"\u2a92","glj":"\u2aa4","gnap":"\u2a8a","gnapprox":"\u2a8a","gne":"\u2a88","gnE":"\u2269","gneq":"\u2a88","gneqq":"\u2269","gnsim":"\u22e7","Gopf":"\u{1d53e}","gopf":"\u{1d558}","grave":"`","GreaterEqual":"\u2265","GreaterEqualLess":"\u22db","GreaterFullEqual":"\u2267","GreaterGreater":"\u2aa2","GreaterLess":"\u2277","GreaterSlantEqual":"\u2a7e","GreaterTilde":"\u2273","Gscr":"\u{1d4a2}","gscr":"\u210a","gsim":"\u2273","gsime":"\u2a8e","gsiml":"\u2a90","gtcc":"\u2aa7","gtcir":"\u2a7a","gt":">","GT":">","Gt":"\u226b","gtdot":"\u22d7","gtlPar":"\u2995","gtquest":"\u2a7c","gtrapprox":"\u2a86","gtrarr":"\u2978","gtrdot":"\u22d7","gtreqless":"\u22db","gtreqqless":"\u2a8c","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\ufe00","gvnE":"\u2269\ufe00","Hacek":"\u02c7","hairsp":"\u200a","half":"\xbd","hamilt":"\u210b","HARDcy":"\u042a","hardcy":"\u044a","harrcir":"\u2948","harr":"\u2194","hArr":"\u21d4","harrw":"\u21ad","Hat":"^","hbar":"\u210f","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22b9","hfr":"\u{1d525}","Hfr":"\u210c","HilbertSpace":"\u210b","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21ff","homtht":"\u223b","hookleftarrow":"\u21a9","hookrightarrow":"\u21aa","hopf":"\u{1d559}","Hopf":"\u210d","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\u{1d4bd}","Hscr":"\u210b","hslash":"\u210f","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224e","HumpEqual":"\u224f","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xcd","iacute":"\xed","ic":"\u2063","Icirc":"\xce","icirc":"\xee","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xa1","iff":"\u21d4","ifr":"\u{1d526}","Ifr":"\u2111","Igrave":"\xcc","igrave":"\xec","ii":"\u2148","iiiint":"\u2a0c","iiint":"\u222d","iinfin":"\u29dc","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012a","imacr":"\u012b","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22b7","imped":"\u01b5","Implies":"\u21d2","incare":"\u2105","in":"\u2208","infin":"\u221e","infintie":"\u29dd","inodot":"\u0131","intcal":"\u22ba","int":"\u222b","Int":"\u222c","integers":"\u2124","Integral":"\u222b","intercal":"\u22ba","Intersection":"\u22c2","intlarhk":"\u2a17","intprod":"\u2a3c","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012e","iogon":"\u012f","Iopf":"\u{1d540}","iopf":"\u{1d55a}","Iota":"\u0399","iota":"\u03b9","iprod":"\u2a3c","iquest":"\xbf","iscr":"\u{1d4be}","Iscr":"\u2110","isin":"\u2208","isindot":"\u22f5","isinE":"\u22f9","isins":"\u22f4","isinsv":"\u22f3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xcf","iuml":"\xef","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\u{1d50d}","jfr":"\u{1d527}","jmath":"\u0237","Jopf":"\u{1d541}","jopf":"\u{1d55b}","Jscr":"\u{1d4a5}","jscr":"\u{1d4bf}","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039a","kappa":"\u03ba","kappav":"\u03f0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041a","kcy":"\u043a","Kfr":"\u{1d50e}","kfr":"\u{1d528}","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040c","kjcy":"\u045c","Kopf":"\u{1d542}","kopf":"\u{1d55c}","Kscr":"\u{1d4a6}","kscr":"\u{1d4c0}","lAarr":"\u21da","Lacute":"\u0139","lacute":"\u013a","laemptyv":"\u29b4","lagran":"\u2112","Lambda":"\u039b","lambda":"\u03bb","lang":"\u27e8","Lang":"\u27ea","langd":"\u2991","langle":"\u27e8","lap":"\u2a85","Laplacetrf":"\u2112","laquo":"\xab","larrb":"\u21e4","larrbfs":"\u291f","larr":"\u2190","Larr":"\u219e","lArr":"\u21d0","larrfs":"\u291d","larrhk":"\u21a9","larrlp":"\u21ab","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21a2","latail":"\u2919","lAtail":"\u291b","lat":"\u2aab","late":"\u2aad","lates":"\u2aad\ufe00","lbarr":"\u290c","lBarr":"\u290e","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298b","lbrksld":"\u298f","lbrkslu":"\u298d","Lcaron":"\u013d","lcaron":"\u013e","Lcedil":"\u013b","lcedil":"\u013c","lceil":"\u2308","lcub":"{","Lcy":"\u041b","lcy":"\u043b","ldca":"\u2936","ldquo":"\u201c","ldquor":"\u201e","ldrdhar":"\u2967","ldrushar":"\u294b","ldsh":"\u21b2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27e8","LeftArrowBar":"\u21e4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21d0","LeftArrowRightArrow":"\u21c6","leftarrowtail":"\u21a2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27e6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21c3","LeftFloor":"\u230a","leftharpoondown":"\u21bd","leftharpoonup":"\u21bc","leftleftarrows":"\u21c7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21d4","leftrightarrows":"\u21c6","leftrightharpoons":"\u21cb","leftrightsquigarrow":"\u21ad","LeftRightVector":"\u294e","LeftTeeArrow":"\u21a4","LeftTee":"\u22a3","LeftTeeVector":"\u295a","leftthreetimes":"\u22cb","LeftTriangleBar":"\u29cf","LeftTriangle":"\u22b2","LeftTriangleEqual":"\u22b4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21bf","LeftVectorBar":"\u2952","LeftVector":"\u21bc","lEg":"\u2a8b","leg":"\u22da","leq":"\u2264","leqq":"\u2266","leqslant":"\u2a7d","lescc":"\u2aa8","les":"\u2a7d","lesdot":"\u2a7f","lesdoto":"\u2a81","lesdotor":"\u2a83","lesg":"\u22da\ufe00","lesges":"\u2a93","lessapprox":"\u2a85","lessdot":"\u22d6","lesseqgtr":"\u22da","lesseqqgtr":"\u2a8b","LessEqualGreater":"\u22da","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2aa1","lesssim":"\u2272","LessSlantEqual":"\u2a7d","LessTilde":"\u2272","lfisht":"\u297c","lfloor":"\u230a","Lfr":"\u{1d50f}","lfr":"\u{1d529}","lg":"\u2276","lgE":"\u2a91","lHar":"\u2962","lhard":"\u21bd","lharu":"\u21bc","lharul":"\u296a","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21c7","ll":"\u226a","Ll":"\u22d8","llcorner":"\u231e","Lleftarrow":"\u21da","llhard":"\u296b","lltri":"\u25fa","Lmidot":"\u013f","lmidot":"\u0140","lmoustache":"\u23b0","lmoust":"\u23b0","lnap":"\u2a89","lnapprox":"\u2a89","lne":"\u2a87","lnE":"\u2268","lneq":"\u2a87","lneqq":"\u2268","lnsim":"\u22e6","loang":"\u27ec","loarr":"\u21fd","lobrk":"\u27e6","longleftarrow":"\u27f5","LongLeftArrow":"\u27f5","Longleftarrow":"\u27f8","longleftrightarrow":"\u27f7","LongLeftRightArrow":"\u27f7","Longleftrightarrow":"\u27fa","longmapsto":"\u27fc","longrightarrow":"\u27f6","LongRightArrow":"\u27f6","Longrightarrow":"\u27f9","looparrowleft":"\u21ab","looparrowright":"\u21ac","lopar":"\u2985","Lopf":"\u{1d543}","lopf":"\u{1d55d}","loplus":"\u2a2d","lotimes":"\u2a34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25ca","lozenge":"\u25ca","lozf":"\u29eb","lpar":"(","lparlt":"\u2993","lrarr":"\u21c6","lrcorner":"\u231f","lrhar":"\u21cb","lrhard":"\u296d","lrm":"\u200e","lrtri":"\u22bf","lsaquo":"\u2039","lscr":"\u{1d4c1}","Lscr":"\u2112","lsh":"\u21b0","Lsh":"\u21b0","lsim":"\u2272","lsime":"\u2a8d","lsimg":"\u2a8f","lsqb":"[","lsquo":"\u2018","lsquor":"\u201a","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2aa6","ltcir":"\u2a79","lt":"<","LT":"<","Lt":"\u226a","ltdot":"\u22d6","lthree":"\u22cb","ltimes":"\u22c9","ltlarr":"\u2976","ltquest":"\u2a7b","ltri":"\u25c3","ltrie":"\u22b4","ltrif":"\u25c2","ltrPar":"\u2996","lurdshar":"\u294a","luruhar":"\u2966","lvertneqq":"\u2268\ufe00","lvnE":"\u2268\ufe00","macr":"\xaf","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21a6","mapsto":"\u21a6","mapstodown":"\u21a7","mapstoleft":"\u21a4","mapstoup":"\u21a5","marker":"\u25ae","mcomma":"\u2a29","Mcy":"\u041c","mcy":"\u043c","mdash":"\u2014","mDDot":"\u223a","measuredangle":"\u2221","MediumSpace":"\u205f","Mellintrf":"\u2133","Mfr":"\u{1d510}","mfr":"\u{1d52a}","mho":"\u2127","micro":"\xb5","midast":"*","midcir":"\u2af0","mid":"\u2223","middot":"\xb7","minusb":"\u229f","minus":"\u2212","minusd":"\u2238","minusdu":"\u2a2a","MinusPlus":"\u2213","mlcp":"\u2adb","mldr":"\u2026","mnplus":"\u2213","models":"\u22a7","Mopf":"\u{1d544}","mopf":"\u{1d55e}","mp":"\u2213","mscr":"\u{1d4c2}","Mscr":"\u2133","mstpos":"\u223e","Mu":"\u039c","mu":"\u03bc","multimap":"\u22b8","mumap":"\u22b8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20d2","nap":"\u2249","napE":"\u2a70\u0338","napid":"\u224b\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266e","naturals":"\u2115","natur":"\u266e","nbsp":"\xa0","nbump":"\u224e\u0338","nbumpe":"\u224f\u0338","ncap":"\u2a43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2a6d\u0338","ncup":"\u2a42","Ncy":"\u041d","ncy":"\u043d","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21d7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200b","NegativeThickSpace":"\u200b","NegativeThinSpace":"\u200b","NegativeVeryThinSpace":"\u200b","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226b","NestedLessLess":"\u226a","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\u{1d511}","nfr":"\u{1d52b}","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2a7e\u0338","nges":"\u2a7e\u0338","nGg":"\u22d9\u0338","ngsim":"\u2275","nGt":"\u226b\u20d2","ngt":"\u226f","ngtr":"\u226f","nGtv":"\u226b\u0338","nharr":"\u21ae","nhArr":"\u21ce","nhpar":"\u2af2","ni":"\u220b","nis":"\u22fc","nisd":"\u22fa","niv":"\u220b","NJcy":"\u040a","njcy":"\u045a","nlarr":"\u219a","nlArr":"\u21cd","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219a","nLeftarrow":"\u21cd","nleftrightarrow":"\u21ae","nLeftrightarrow":"\u21ce","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2a7d\u0338","nles":"\u2a7d\u0338","nless":"\u226e","nLl":"\u22d8\u0338","nlsim":"\u2274","nLt":"\u226a\u20d2","nlt":"\u226e","nltri":"\u22ea","nltrie":"\u22ec","nLtv":"\u226a\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xa0","nopf":"\u{1d55f}","Nopf":"\u2115","Not":"\u2aec","not":"\xac","NotCongruent":"\u2262","NotCupCap":"\u226d","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226f","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226b\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2a7e\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224e\u0338","NotHumpEqual":"\u224f\u0338","notin":"\u2209","notindot":"\u22f5\u0338","notinE":"\u22f9\u0338","notinva":"\u2209","notinvb":"\u22f7","notinvc":"\u22f6","NotLeftTriangleBar":"\u29cf\u0338","NotLeftTriangle":"\u22ea","NotLeftTriangleEqual":"\u22ec","NotLess":"\u226e","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226a\u0338","NotLessSlantEqual":"\u2a7d\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2aa2\u0338","NotNestedLessLess":"\u2aa1\u0338","notni":"\u220c","notniva":"\u220c","notnivb":"\u22fe","notnivc":"\u22fd","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2aaf\u0338","NotPrecedesSlantEqual":"\u22e0","NotReverseElement":"\u220c","NotRightTriangleBar":"\u29d0\u0338","NotRightTriangle":"\u22eb","NotRightTriangleEqual":"\u22ed","NotSquareSubset":"\u228f\u0338","NotSquareSubsetEqual":"\u22e2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22e3","NotSubset":"\u2282\u20d2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2ab0\u0338","NotSucceedsSlantEqual":"\u22e1","NotSucceedsTilde":"\u227f\u0338","NotSuperset":"\u2283\u20d2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2afd\u20e5","npart":"\u2202\u0338","npolint":"\u2a14","npr":"\u2280","nprcue":"\u22e0","nprec":"\u2280","npreceq":"\u2aaf\u0338","npre":"\u2aaf\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219b","nrArr":"\u21cf","nrarrw":"\u219d\u0338","nrightarrow":"\u219b","nRightarrow":"\u21cf","nrtri":"\u22eb","nrtrie":"\u22ed","nsc":"\u2281","nsccue":"\u22e1","nsce":"\u2ab0\u0338","Nscr":"\u{1d4a9}","nscr":"\u{1d4c3}","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22e2","nsqsupe":"\u22e3","nsub":"\u2284","nsubE":"\u2ac5\u0338","nsube":"\u2288","nsubset":"\u2282\u20d2","nsubseteq":"\u2288","nsubseteqq":"\u2ac5\u0338","nsucc":"\u2281","nsucceq":"\u2ab0\u0338","nsup":"\u2285","nsupE":"\u2ac6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20d2","nsupseteq":"\u2289","nsupseteqq":"\u2ac6\u0338","ntgl":"\u2279","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"\u2278","ntriangleleft":"\u22ea","ntrianglelefteq":"\u22ec","ntriangleright":"\u22eb","ntrianglerighteq":"\u22ed","Nu":"\u039d","nu":"\u03bd","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224d\u20d2","nvdash":"\u22ac","nvDash":"\u22ad","nVdash":"\u22ae","nVDash":"\u22af","nvge":"\u2265\u20d2","nvgt":">\u20d2","nvHarr":"\u2904","nvinfin":"\u29de","nvlArr":"\u2902","nvle":"\u2264\u20d2","nvlt":"<\u20d2","nvltrie":"\u22b4\u20d2","nvrArr":"\u2903","nvrtrie":"\u22b5\u20d2","nvsim":"\u223c\u20d2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21d6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xd3","oacute":"\xf3","oast":"\u229b","Ocirc":"\xd4","ocirc":"\xf4","ocir":"\u229a","Ocy":"\u041e","ocy":"\u043e","odash":"\u229d","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2a38","odot":"\u2299","odsold":"\u29bc","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29bf","Ofr":"\u{1d512}","ofr":"\u{1d52c}","ogon":"\u02db","Ograve":"\xd2","ograve":"\xf2","ogt":"\u29c1","ohbar":"\u29b5","ohm":"\u03a9","oint":"\u222e","olarr":"\u21ba","olcir":"\u29be","olcross":"\u29bb","oline":"\u203e","olt":"\u29c0","Omacr":"\u014c","omacr":"\u014d","Omega":"\u03a9","omega":"\u03c9","Omicron":"\u039f","omicron":"\u03bf","omid":"\u29b6","ominus":"\u2296","Oopf":"\u{1d546}","oopf":"\u{1d560}","opar":"\u29b7","OpenCurlyDoubleQuote":"\u201c","OpenCurlyQuote":"\u2018","operp":"\u29b9","oplus":"\u2295","orarr":"\u21bb","Or":"\u2a54","or":"\u2228","ord":"\u2a5d","order":"\u2134","orderof":"\u2134","ordf":"\xaa","ordm":"\xba","origof":"\u22b6","oror":"\u2a56","orslope":"\u2a57","orv":"\u2a5b","oS":"\u24c8","Oscr":"\u{1d4aa}","oscr":"\u2134","Oslash":"\xd8","oslash":"\xf8","osol":"\u2298","Otilde":"\xd5","otilde":"\xf5","otimesas":"\u2a36","Otimes":"\u2a37","otimes":"\u2297","Ouml":"\xd6","ouml":"\xf6","ovbar":"\u233d","OverBar":"\u203e","OverBrace":"\u23de","OverBracket":"\u23b4","OverParenthesis":"\u23dc","para":"\xb6","parallel":"\u2225","par":"\u2225","parsim":"\u2af3","parsl":"\u2afd","part":"\u2202","PartialD":"\u2202","Pcy":"\u041f","pcy":"\u043f","percnt":"%","period":".","permil":"\u2030","perp":"\u22a5","pertenk":"\u2031","Pfr":"\u{1d513}","pfr":"\u{1d52d}","Phi":"\u03a6","phi":"\u03c6","phiv":"\u03d5","phmmat":"\u2133","phone":"\u260e","Pi":"\u03a0","pi":"\u03c0","pitchfork":"\u22d4","piv":"\u03d6","planck":"\u210f","planckh":"\u210e","plankv":"\u210f","plusacir":"\u2a23","plusb":"\u229e","pluscir":"\u2a22","plus":"+","plusdo":"\u2214","plusdu":"\u2a25","pluse":"\u2a72","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"\u2a26","plustwo":"\u2a27","pm":"\xb1","Poincareplane":"\u210c","pointint":"\u2a15","popf":"\u{1d561}","Popf":"\u2119","pound":"\xa3","prap":"\u2ab7","Pr":"\u2abb","pr":"\u227a","prcue":"\u227c","precapprox":"\u2ab7","prec":"\u227a","preccurlyeq":"\u227c","Precedes":"\u227a","PrecedesEqual":"\u2aaf","PrecedesSlantEqual":"\u227c","PrecedesTilde":"\u227e","preceq":"\u2aaf","precnapprox":"\u2ab9","precneqq":"\u2ab5","precnsim":"\u22e8","pre":"\u2aaf","prE":"\u2ab3","precsim":"\u227e","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2ab9","prnE":"\u2ab5","prnsim":"\u22e8","prod":"\u220f","Product":"\u220f","profalar":"\u232e","profline":"\u2312","profsurf":"\u2313","prop":"\u221d","Proportional":"\u221d","Proportion":"\u2237","propto":"\u221d","prsim":"\u227e","prurel":"\u22b0","Pscr":"\u{1d4ab}","pscr":"\u{1d4c5}","Psi":"\u03a8","psi":"\u03c8","puncsp":"\u2008","Qfr":"\u{1d514}","qfr":"\u{1d52e}","qint":"\u2a0c","qopf":"\u{1d562}","Qopf":"\u211a","qprime":"\u2057","Qscr":"\u{1d4ac}","qscr":"\u{1d4c6}","quaternions":"\u210d","quatint":"\u2a16","quest":"?","questeq":"\u225f","quot":"\\"","QUOT":"\\"","rAarr":"\u21db","race":"\u223d\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221a","raemptyv":"\u29b3","rang":"\u27e9","Rang":"\u27eb","rangd":"\u2992","range":"\u29a5","rangle":"\u27e9","raquo":"\xbb","rarrap":"\u2975","rarrb":"\u21e5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21a0","rArr":"\u21d2","rarrfs":"\u291e","rarrhk":"\u21aa","rarrlp":"\u21ac","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21a3","rarrw":"\u219d","ratail":"\u291a","rAtail":"\u291c","ratio":"\u2236","rationals":"\u211a","rbarr":"\u290d","rBarr":"\u290f","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298c","rbrksld":"\u298e","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201d","rdquor":"\u201d","rdsh":"\u21b3","real":"\u211c","realine":"\u211b","realpart":"\u211c","reals":"\u211d","Re":"\u211c","rect":"\u25ad","reg":"\xae","REG":"\xae","ReverseElement":"\u220b","ReverseEquilibrium":"\u21cb","ReverseUpEquilibrium":"\u296f","rfisht":"\u297d","rfloor":"\u230b","rfr":"\u{1d52f}","Rfr":"\u211c","rHar":"\u2964","rhard":"\u21c1","rharu":"\u21c0","rharul":"\u296c","Rho":"\u03a1","rho":"\u03c1","rhov":"\u03f1","RightAngleBracket":"\u27e9","RightArrowBar":"\u21e5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21d2","RightArrowLeftArrow":"\u21c4","rightarrowtail":"\u21a3","RightCeiling":"\u2309","RightDoubleBracket":"\u27e7","RightDownTeeVector":"\u295d","RightDownVectorBar":"\u2955","RightDownVector":"\u21c2","RightFloor":"\u230b","rightharpoondown":"\u21c1","rightharpoonup":"\u21c0","rightleftarrows":"\u21c4","rightleftharpoons":"\u21cc","rightrightarrows":"\u21c9","rightsquigarrow":"\u219d","RightTeeArrow":"\u21a6","RightTee":"\u22a2","RightTeeVector":"\u295b","rightthreetimes":"\u22cc","RightTriangleBar":"\u29d0","RightTriangle":"\u22b3","RightTriangleEqual":"\u22b5","RightUpDownVector":"\u294f","RightUpTeeVector":"\u295c","RightUpVectorBar":"\u2954","RightUpVector":"\u21be","RightVectorBar":"\u2953","RightVector":"\u21c0","ring":"\u02da","risingdotseq":"\u2253","rlarr":"\u21c4","rlhar":"\u21cc","rlm":"\u200f","rmoustache":"\u23b1","rmoust":"\u23b1","rnmid":"\u2aee","roang":"\u27ed","roarr":"\u21fe","robrk":"\u27e7","ropar":"\u2986","ropf":"\u{1d563}","Ropf":"\u211d","roplus":"\u2a2e","rotimes":"\u2a35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2a12","rrarr":"\u21c9","Rrightarrow":"\u21db","rsaquo":"\u203a","rscr":"\u{1d4c7}","Rscr":"\u211b","rsh":"\u21b1","Rsh":"\u21b1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22cc","rtimes":"\u22ca","rtri":"\u25b9","rtrie":"\u22b5","rtrif":"\u25b8","rtriltri":"\u29ce","RuleDelayed":"\u29f4","ruluhar":"\u2968","rx":"\u211e","Sacute":"\u015a","sacute":"\u015b","sbquo":"\u201a","scap":"\u2ab8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2abc","sc":"\u227b","sccue":"\u227d","sce":"\u2ab0","scE":"\u2ab4","Scedil":"\u015e","scedil":"\u015f","Scirc":"\u015c","scirc":"\u015d","scnap":"\u2aba","scnE":"\u2ab6","scnsim":"\u22e9","scpolint":"\u2a13","scsim":"\u227f","Scy":"\u0421","scy":"\u0441","sdotb":"\u22a1","sdot":"\u22c5","sdote":"\u2a66","searhk":"\u2925","searr":"\u2198","seArr":"\u21d8","searrow":"\u2198","sect":"\xa7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\u{1d516}","sfr":"\u{1d530}","sfrown":"\u2322","sharp":"\u266f","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xad","Sigma":"\u03a3","sigma":"\u03c3","sigmaf":"\u03c2","sigmav":"\u03c2","sim":"\u223c","simdot":"\u2a6a","sime":"\u2243","simeq":"\u2243","simg":"\u2a9e","simgE":"\u2aa0","siml":"\u2a9d","simlE":"\u2a9f","simne":"\u2246","simplus":"\u2a24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2a33","smeparsl":"\u29e4","smid":"\u2223","smile":"\u2323","smt":"\u2aaa","smte":"\u2aac","smtes":"\u2aac\ufe00","SOFTcy":"\u042c","softcy":"\u044c","solbar":"\u233f","solb":"\u29c4","sol":"/","Sopf":"\u{1d54a}","sopf":"\u{1d564}","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\ufe00","sqcup":"\u2294","sqcups":"\u2294\ufe00","Sqrt":"\u221a","sqsub":"\u228f","sqsube":"\u2291","sqsubset":"\u228f","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25a1","Square":"\u25a1","SquareIntersection":"\u2293","SquareSubset":"\u228f","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25aa","squ":"\u25a1","squf":"\u25aa","srarr":"\u2192","Sscr":"\u{1d4ae}","sscr":"\u{1d4c8}","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22c6","Star":"\u22c6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03f5","straightphi":"\u03d5","strns":"\xaf","sub":"\u2282","Sub":"\u22d0","subdot":"\u2abd","subE":"\u2ac5","sube":"\u2286","subedot":"\u2ac3","submult":"\u2ac1","subnE":"\u2acb","subne":"\u228a","subplus":"\u2abf","subrarr":"\u2979","subset":"\u2282","Subset":"\u22d0","subseteq":"\u2286","subseteqq":"\u2ac5","SubsetEqual":"\u2286","subsetneq":"\u228a","subsetneqq":"\u2acb","subsim":"\u2ac7","subsub":"\u2ad5","subsup":"\u2ad3","succapprox":"\u2ab8","succ":"\u227b","succcurlyeq":"\u227d","Succeeds":"\u227b","SucceedsEqual":"\u2ab0","SucceedsSlantEqual":"\u227d","SucceedsTilde":"\u227f","succeq":"\u2ab0","succnapprox":"\u2aba","succneqq":"\u2ab6","succnsim":"\u22e9","succsim":"\u227f","SuchThat":"\u220b","sum":"\u2211","Sum":"\u2211","sung":"\u266a","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"\u2283","Sup":"\u22d1","supdot":"\u2abe","supdsub":"\u2ad8","supE":"\u2ac6","supe":"\u2287","supedot":"\u2ac4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27c9","suphsub":"\u2ad7","suplarr":"\u297b","supmult":"\u2ac2","supnE":"\u2acc","supne":"\u228b","supplus":"\u2ac0","supset":"\u2283","Supset":"\u22d1","supseteq":"\u2287","supseteqq":"\u2ac6","supsetneq":"\u228b","supsetneqq":"\u2acc","supsim":"\u2ac8","supsub":"\u2ad4","supsup":"\u2ad6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21d9","swarrow":"\u2199","swnwar":"\u292a","szlig":"\xdf","Tab":"\\t","target":"\u2316","Tau":"\u03a4","tau":"\u03c4","tbrk":"\u23b4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20db","telrec":"\u2315","Tfr":"\u{1d517}","tfr":"\u{1d531}","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03b8","thetasym":"\u03d1","thetav":"\u03d1","thickapprox":"\u2248","thicksim":"\u223c","ThickSpace":"\u205f\u200a","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223c","THORN":"\xde","thorn":"\xfe","tilde":"\u02dc","Tilde":"\u223c","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2a31","timesb":"\u22a0","times":"\xd7","timesd":"\u2a30","tint":"\u222d","toea":"\u2928","topbot":"\u2336","topcir":"\u2af1","top":"\u22a4","Topf":"\u{1d54b}","topf":"\u{1d565}","topfork":"\u2ada","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25b5","triangledown":"\u25bf","triangleleft":"\u25c3","trianglelefteq":"\u22b4","triangleq":"\u225c","triangleright":"\u25b9","trianglerighteq":"\u22b5","tridot":"\u25ec","trie":"\u225c","triminus":"\u2a3a","TripleDot":"\u20db","triplus":"\u2a39","trisb":"\u29cd","tritime":"\u2a3b","trpezium":"\u23e2","Tscr":"\u{1d4af}","tscr":"\u{1d4c9}","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040b","tshcy":"\u045b","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226c","twoheadleftarrow":"\u219e","twoheadrightarrow":"\u21a0","Uacute":"\xda","uacute":"\xfa","uarr":"\u2191","Uarr":"\u219f","uArr":"\u21d1","Uarrocir":"\u2949","Ubrcy":"\u040e","ubrcy":"\u045e","Ubreve":"\u016c","ubreve":"\u016d","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21c5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296e","ufisht":"\u297e","Ufr":"\u{1d518}","ufr":"\u{1d532}","Ugrave":"\xd9","ugrave":"\xf9","uHar":"\u2963","uharl":"\u21bf","uharr":"\u21be","uhblk":"\u2580","ulcorn":"\u231c","ulcorner":"\u231c","ulcrop":"\u230f","ultri":"\u25f8","Umacr":"\u016a","umacr":"\u016b","uml":"\xa8","UnderBar":"_","UnderBrace":"\u23df","UnderBracket":"\u23b5","UnderParenthesis":"\u23dd","Union":"\u22c3","UnionPlus":"\u228e","Uogon":"\u0172","uogon":"\u0173","Uopf":"\u{1d54c}","uopf":"\u{1d566}","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21d1","UpArrowDownArrow":"\u21c5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21d5","UpEquilibrium":"\u296e","upharpoonleft":"\u21bf","upharpoonright":"\u21be","uplus":"\u228e","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03c5","Upsi":"\u03d2","upsih":"\u03d2","Upsilon":"\u03a5","upsilon":"\u03c5","UpTeeArrow":"\u21a5","UpTee":"\u22a5","upuparrows":"\u21c8","urcorn":"\u231d","urcorner":"\u231d","urcrop":"\u230e","Uring":"\u016e","uring":"\u016f","urtri":"\u25f9","Uscr":"\u{1d4b0}","uscr":"\u{1d4ca}","utdot":"\u22f0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25b5","utrif":"\u25b4","uuarr":"\u21c8","Uuml":"\xdc","uuml":"\xfc","uwangle":"\u29a7","vangrt":"\u299c","varepsilon":"\u03f5","varkappa":"\u03f0","varnothing":"\u2205","varphi":"\u03d5","varpi":"\u03d6","varpropto":"\u221d","varr":"\u2195","vArr":"\u21d5","varrho":"\u03f1","varsigma":"\u03c2","varsubsetneq":"\u228a\ufe00","varsubsetneqq":"\u2acb\ufe00","varsupsetneq":"\u228b\ufe00","varsupsetneqq":"\u2acc\ufe00","vartheta":"\u03d1","vartriangleleft":"\u22b2","vartriangleright":"\u22b3","vBar":"\u2ae8","Vbar":"\u2aeb","vBarv":"\u2ae9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22a2","vDash":"\u22a8","Vdash":"\u22a9","VDash":"\u22ab","Vdashl":"\u2ae6","veebar":"\u22bb","vee":"\u2228","Vee":"\u22c1","veeeq":"\u225a","vellip":"\u22ee","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200a","Vfr":"\u{1d519}","vfr":"\u{1d533}","vltri":"\u22b2","vnsub":"\u2282\u20d2","vnsup":"\u2283\u20d2","Vopf":"\u{1d54d}","vopf":"\u{1d567}","vprop":"\u221d","vrtri":"\u22b3","Vscr":"\u{1d4b1}","vscr":"\u{1d4cb}","vsubnE":"\u2acb\ufe00","vsubne":"\u228a\ufe00","vsupnE":"\u2acc\ufe00","vsupne":"\u228b\ufe00","Vvdash":"\u22aa","vzigzag":"\u299a","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2a5f","wedge":"\u2227","Wedge":"\u22c0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\u{1d51a}","wfr":"\u{1d534}","Wopf":"\u{1d54e}","wopf":"\u{1d568}","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\u{1d4b2}","wscr":"\u{1d4cc}","xcap":"\u22c2","xcirc":"\u25ef","xcup":"\u22c3","xdtri":"\u25bd","Xfr":"\u{1d51b}","xfr":"\u{1d535}","xharr":"\u27f7","xhArr":"\u27fa","Xi":"\u039e","xi":"\u03be","xlarr":"\u27f5","xlArr":"\u27f8","xmap":"\u27fc","xnis":"\u22fb","xodot":"\u2a00","Xopf":"\u{1d54f}","xopf":"\u{1d569}","xoplus":"\u2a01","xotime":"\u2a02","xrarr":"\u27f6","xrArr":"\u27f9","Xscr":"\u{1d4b3}","xscr":"\u{1d4cd}","xsqcup":"\u2a06","xuplus":"\u2a04","xutri":"\u25b3","xvee":"\u22c1","xwedge":"\u22c0","Yacute":"\xdd","yacute":"\xfd","YAcy":"\u042f","yacy":"\u044f","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042b","ycy":"\u044b","yen":"\xa5","Yfr":"\u{1d51c}","yfr":"\u{1d536}","YIcy":"\u0407","yicy":"\u0457","Yopf":"\u{1d550}","yopf":"\u{1d56a}","Yscr":"\u{1d4b4}","yscr":"\u{1d4ce}","YUcy":"\u042e","yucy":"\u044e","yuml":"\xff","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017a","Zcaron":"\u017d","zcaron":"\u017e","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017b","zdot":"\u017c","zeetrf":"\u2128","ZeroWidthSpace":"\u200b","Zeta":"\u0396","zeta":"\u03b6","zfr":"\u{1d537}","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21dd","zopf":"\u{1d56b}","Zopf":"\u2124","Zscr":"\u{1d4b5}","zscr":"\u{1d4cf}","zwj":"\u200d","zwnj":"\u200c"}')},9591:Pe=>{"use strict";Pe.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","AElig":"\xc6","aelig":"\xe6","Agrave":"\xc0","agrave":"\xe0","amp":"&","AMP":"&","Aring":"\xc5","aring":"\xe5","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","brvbar":"\xa6","Ccedil":"\xc7","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","COPY":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","Eacute":"\xc9","eacute":"\xe9","Ecirc":"\xca","ecirc":"\xea","Egrave":"\xc8","egrave":"\xe8","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","GT":">","Iacute":"\xcd","iacute":"\xed","Icirc":"\xce","icirc":"\xee","iexcl":"\xa1","Igrave":"\xcc","igrave":"\xec","iquest":"\xbf","Iuml":"\xcf","iuml":"\xef","laquo":"\xab","lt":"<","LT":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","Ntilde":"\xd1","ntilde":"\xf1","Oacute":"\xd3","oacute":"\xf3","Ocirc":"\xd4","ocirc":"\xf4","Ograve":"\xd2","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","Oslash":"\xd8","oslash":"\xf8","Otilde":"\xd5","otilde":"\xf5","Ouml":"\xd6","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","QUOT":"\\"","raquo":"\xbb","reg":"\xae","REG":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","THORN":"\xde","thorn":"\xfe","times":"\xd7","Uacute":"\xda","uacute":"\xfa","Ucirc":"\xdb","ucirc":"\xfb","Ugrave":"\xd9","ugrave":"\xf9","uml":"\xa8","Uuml":"\xdc","uuml":"\xfc","Yacute":"\xdd","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},2586:Pe=>{"use strict";Pe.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},4147:Pe=>{"use strict";Pe.exports={i8:"3.0.1"}}},Pe=>{Pe(Pe.s=9287)}]); \ No newline at end of file diff --git a/manifest.beta.xml b/manifest.beta.xml index 562ed29..4e7e8e6 100644 --- a/manifest.beta.xml +++ b/manifest.beta.xml @@ -21,7 +21,7 @@ xsi:type="MailApp"> - + @@ -48,7 +48,7 @@ xsi:type="MailApp"> - +