(self.webpackChunkngapp=self.webpackChunkngapp||[]).push([[179],{47336:(Jt,_t)=>{"use strict";function K(){var c=document.querySelectorAll("input, textarea, select");return Array.prototype.slice.call(c).map(function(P){var H=P.tagName.toLowerCase(),j=P.type,Z=P.id&&"string"==typeof P.id?P.id:null,de=P.name&&"string"==typeof P.name?P.name:null,X=P.value&&"string"==typeof P.value?P.value:null,le=P.childNodes,Y=Boolean(P.selected),G={tag:H,type:null,id:Z,name:de,value:"",checked:!1,options:[]};if("input"===H||"textarea"===H){if(G.type=j,"input"!==H)return G.value=X,G;switch(j){case"checkbox":case"radio":return G.checked=Y,G.value=X,G;default:return G}}else if("select"===H){var re=Array.prototype.slice.call(le).map(function(ee,I){return{value:ee.value,selected:Boolean(ee.selected)}});return G.options=re,G}return G})}function W(c){var R=document.querySelectorAll("input, textarea");c.forEach(function(P,H){if("input"===P.tag||"textarea"===P.tag)if("input"!==P.tag||"checkbox"!==P.type&&"radio"!==P.type)("input"!==P.tagName.toLowerCase()||"image"!==P.type&&"button"!==P.type&&"submit"!==P.type&&"reset"!==P.type)&&(null===P.id&&null===P.name?P.value.length&&R[H]&&R[H].tagName.toLowerCase()===P.tag&&("textarea"===P.tag||R[H].getAttribute("type")===P.type)&&("string"!=typeof R[H].id||!R[H].id.length)&&("string"!=typeof R[H].getAttribute("name")||!R[H].getAttribute("name").length)&&(R[H].value=P.value,R[H].dispatchEvent(new CustomEvent("input",{detail:R[H].value}))):(j="input"+(null!==P.id?"#"+P.id:"")+("input"===P.tag?'[type="'+P.type+'"]':"")+(null!==P.name?'[name="'+P.name+'"]':""),(Z=document.body.querySelector(j))&&P.value.length&&(Z.value=P.value,Z.dispatchEvent(new CustomEvent("input",{detail:Z.value})))));else{var j="input"+(null!==P.id?"#"+P.id:"")+'[type="'+P.type+'"]'+(null!==P.name?'[name="'+P.name+'"]':"")+'[value="'+P.value+'"]';(Z=document.body.querySelector(j))&&Boolean(P.checked)&&(Z.checked="checked",Z.dispatchEvent(new CustomEvent("input",{detail:Z.checked})))}else if("select"===P.tag){var Z,de=null;if(null===P.id&&null===P.name)R[H]&&R[H].tagName.toLowerCase()===P.tag&&("string"!=typeof R[H].id||!R[H].id.length)&&("string"!=typeof R[H].getAttribute("name")||!R[H].getAttribute("name").length)&&(de=R[H]);else j="select"+(null!==P.id?"#"+P.id:"")+(null!==P.name?'[name="'+P.name+'"]':""),(Z=document.body.querySelector(j))&&(de=Z);de&&P.options.forEach(function(X,le){var Y=de.querySelector('option[value="'+X.value+'"]');!Y&&de.childNodes[le]&&("string"!=typeof de.childNodes[le].value||!de.childNodes[le].value.length)&&(Y=de.childNodes[le]),Y&&X.selected&&(Y.selected="selected",Y.dispatchEvent(new CustomEvent("input",{detail:Y.selected})))})}})}Object.defineProperty(_t,"__esModule",{value:!0}),_t.__getInputValues=K,_t.__setInputValues=W,_t.__createInputTransfer=function u(){var c=K();return function(){return W(c)}}},66694:(Jt,_t)=>{"use strict";function K(j){return j}function R(){var j=document.querySelectorAll("input");return Array.prototype.slice.call(j).map(function(de){return de.value})}function P(j){var Z=document.querySelectorAll("input");j&&Z.length===j.length&&(j.forEach(function(de,X){var le=Z[X];le.value=de,le.dispatchEvent(new CustomEvent("input",{detail:le.value}))}),j.length=0)}Object.defineProperty(_t,"__esModule",{value:!0}),_t.bootloader=function W(j,Z,de){"object"==typeof j&&(Z=j.before,de=j.after,j=j.main),Z=Z||K,de=de||K;var le=document.readyState;"loading"===le?document.addEventListener("DOMContentLoaded",function Y(){document.removeEventListener("DOMContentLoaded",Y),de(j(Z(le)))}):de(j(Z(le)))},_t.createNewHosts=function u(j){var Z=Array.prototype.map.call(j,function(de){var X=document.createElement(de.tagName),le=de.parentNode,Y=X.style.display;return X.style.display="none",le.insertBefore(X,de),function G(){X.style.display=Y;try{le.removeChild(de)}catch{}}});return function(){Z.forEach(function(X){return X()})}},_t.removeNgStyles=function c(){var j=document.head,Z=j.querySelectorAll("style");Array.prototype.slice.call(Z).filter(function(X){return-1!==X.innerText.indexOf("_ng")}).map(function(X){return j.removeChild(X)})},_t.getInputValues=R,_t.setInputValues=P,_t.createInputTransfer=function H(){var j=R();return function(){return P(j)}}},95235:(Jt,_t)=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0}),_t.MODULE_CONFIG={OnInit:"hmrOnInit",OnStatus:"hmrOnStatus",OnCheck:"hmrOnCheck",OnDecline:"hmrOnDecline",OnDestroy:"hmrOnDestroy",AfterDestroy:"hmrAfterDestroy"},_t.hmrModule=function K(W,u,c){return void 0===c&&(c=_t.MODULE_CONFIG),u.hot&&(u.hot.accept(),W.instance[_t.MODULE_CONFIG.OnInit]&&u.hot.data&&W.instance[_t.MODULE_CONFIG.OnInit](u.hot.data),W.instance[_t.MODULE_CONFIG.OnStatus]&&u.hot.apply(function(P){W.instance[_t.MODULE_CONFIG.OnStatus](P)}),W.instance[_t.MODULE_CONFIG.OnCheck]&&u.hot.check(function(P,H){W.instance[_t.MODULE_CONFIG.OnCheck](P,H)}),W.instance[_t.MODULE_CONFIG.OnDecline]&&u.hot.decline(function(P){W.instance[_t.MODULE_CONFIG.OnDecline](P)}),u.hot.dispose(function(P){W.instance[_t.MODULE_CONFIG.OnDestroy]&&W.instance[_t.MODULE_CONFIG.OnDestroy](P),W.destroy(),W.instance[_t.MODULE_CONFIG.AfterDestroy]&&W.instance[_t.MODULE_CONFIG.AfterDestroy](P)})),W}},10732:(Jt,_t,K)=>{"use strict";function W(u){for(var c in u)_t.hasOwnProperty(c)||(_t[c]=u[c])}Object.defineProperty(_t,"__esModule",{value:!0}),W(K(66694)),W(K(47336)),W(K(95235))},34802:()=>{var Jt;"function"!=typeof(Jt=Array.prototype).count&&(Jt.count=function(_t){return this.filter(_t).length}),(Jt=>{"function"!=typeof Jt.ratioOf&&(Jt.ratioOf=function(_t){return this.count(_t)/this.length})})(Array.prototype),(Jt=>{"function"!=typeof Jt.toMap&&(Jt.toMap=function(_t,K){const W=this.map(u=>[_t(u),K(u)]);return new Map(W)})})(Array.prototype),(Jt=>{"function"!=typeof Jt.groupBy&&(Jt.groupBy=function(_t){const K=this.toMap(_t,W=>new Array);return this.forEach(W=>K.get(_t(W)).push(W)),K})})(Array.prototype),(Jt=>{"function"!=typeof Jt.sum&&(Jt.sum=function(_t){let K=0;return this.map(_t||(W=>W)).forEach(W=>K+=W),K})})(Array.prototype),(Jt=>{"function"!=typeof Jt.firstOrDefault&&(Jt.firstOrDefault=function(_t){return 0===this.length?_t:this[0]})})(Array.prototype)},16066:(Jt,_t,K)=>{"use strict";function W(n){return"function"==typeof n}let u=!1;const c={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const r=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+r.stack)}else u&&console.log("RxJS: Back to a better error behavior. Thank you. <3");u=n},get useDeprecatedSynchronousErrorHandling(){return u}};function R(n){setTimeout(()=>{throw n},0)}const P={closed:!0,next(n){},error(n){if(c.useDeprecatedSynchronousErrorHandling)throw n;R(n)},complete(){}},H=Array.isArray||(n=>n&&"number"==typeof n.length);function j(n){return null!==n&&"object"==typeof n}const de=(()=>{function n(r){return Error.call(this),this.message=r?`${r.length} errors occurred during unsubscription:\n${r.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=r,this}return n.prototype=Object.create(Error.prototype),n})();class X{constructor(r){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,r&&(this._ctorUnsubscribe=!0,this._unsubscribe=r)}unsubscribe(){let r;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:o,_subscriptions:a}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof X)e.remove(this);else if(null!==e)for(let s=0;sr.concat(e instanceof de?e.errors:e),[])}X.EMPTY=((n=new X).closed=!0,n);const Y="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class te extends X{constructor(r,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=P;break;case 1:if(!r){this.destination=P;break}if("object"==typeof r){r instanceof te?(this.syncErrorThrowable=r.syncErrorThrowable,this.destination=r,r.add(this)):(this.syncErrorThrowable=!0,this.destination=new re(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new re(this,r,e,i)}}[Y](){return this}static create(r,e,i){const o=new te(r,e,i);return o.syncErrorThrowable=!1,o}next(r){this.isStopped||this._next(r)}error(r){this.isStopped||(this.isStopped=!0,this._error(r))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(r){this.destination.next(r)}_error(r){this.destination.error(r),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:r}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=r,this}}class re extends te{constructor(r,e,i,o){super(),this._parentSubscriber=r;let a,s=this;W(e)?a=e:e&&(a=e.next,i=e.error,o=e.complete,e!==P&&(s=Object.create(e),W(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=a,this._error=i,this._complete=o}next(r){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;c.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,r)&&this.unsubscribe():this.__tryOrUnsub(this._next,r)}}error(r){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=c;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,r),this.unsubscribe()):(this.__tryOrUnsub(this._error,r),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=r,e.syncErrorThrown=!0):R(r),this.unsubscribe();else{if(this.unsubscribe(),i)throw r;R(r)}}}complete(){if(!this.isStopped){const{_parentSubscriber:r}=this;if(this._complete){const e=()=>this._complete.call(this._context);c.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable?(this.__tryOrSetError(r,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(r,e){try{r.call(this._context,e)}catch(i){if(this.unsubscribe(),c.useDeprecatedSynchronousErrorHandling)throw i;R(i)}}__tryOrSetError(r,e,i){if(!c.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(o){return c.useDeprecatedSynchronousErrorHandling?(r.syncErrorValue=o,r.syncErrorThrown=!0,!0):(R(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:r}=this;this._context=null,this._parentSubscriber=null,r.unsubscribe()}}const Q="function"==typeof Symbol&&Symbol.observable||"@@observable";function oe(n){return n}function _e(...n){return De(n)}function De(n){return 0===n.length?oe:1===n.length?n[0]:function(e){return n.reduce((i,o)=>o(i),e)}}let ze=(()=>{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,o){const{operator:a}=this,s=function I(n,r,e){if(n){if(n instanceof te)return n;if(n[Y])return n[Y]()}return n||r||e?new te(n,r,e):new te(P)}(e,i,o);if(s.add(a?a.call(s,this.source):this.source||c.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){c.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function ee(n){for(;n;){const{closed:r,destination:e,isStopped:i}=n;if(r||i)return!1;n=e&&e instanceof te?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=se(i))((o,a)=>{let s;s=this.subscribe(l=>{try{e(l)}catch(d){a(d),s&&s.unsubscribe()}},a,o)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Q](){return this}pipe(...e){return 0===e.length?this:De(e)(this)}toPromise(e){return new(e=se(e))((i,o)=>{let a;this.subscribe(s=>a=s,s=>o(s),()=>i(a))})}}return n.create=r=>new n(r),n})();function se(n){if(n||(n=c.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const et=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class nt extends X{constructor(r,e){super(),this.subject=r,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const r=this.subject,e=r.observers;if(this.subject=null,!e||0===e.length||r.isStopped||r.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class St extends te{constructor(r){super(r),this.destination=r}}let Fe=(()=>{class n extends ze{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Y](){return new St(this)}lift(e){const i=new qt(this,this);return i.operator=e,i}next(e){if(this.closed)throw new et;if(!this.isStopped){const{observers:i}=this,o=i.length,a=i.slice();for(let s=0;snew qt(r,e),n})();class qt extends Fe{constructor(r,e){super(),this.destination=r,this.source=e}next(r){const{destination:e}=this;e&&e.next&&e.next(r)}error(r){const{destination:e}=this;e&&e.error&&this.destination.error(r)}complete(){const{destination:r}=this;r&&r.complete&&this.destination.complete()}_subscribe(r){const{source:e}=this;return e?this.source.subscribe(r):X.EMPTY}}function jt(n){return n&&"function"==typeof n.schedule}function Ct(n,r){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new En(n,r))}}class En{constructor(r,e){this.project=r,this.thisArg=e}call(r,e){return e.subscribe(new Et(r,this.project,this.thisArg))}}class Et extends te{constructor(r,e,i){super(r),this.project=e,this.count=0,this.thisArg=i||this}_next(r){let e;try{e=this.project.call(this.thisArg,r,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Ye=n=>r=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function Vi(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const ki=n=>{if(n&&"function"==typeof n[Q])return(n=>r=>{const e=n[Q]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(r)})(n);if(On(n))return Ye(n);if(Vi(n))return(n=>r=>(n.then(e=>{r.closed||(r.next(e),r.complete())},e=>r.error(e)).then(null,R),r))(n);if(n&&"function"==typeof n[gt])return(n=>r=>{const e=n[gt]();for(;;){let i;try{i=e.next()}catch(o){return r.error(o),r}if(i.done){r.complete();break}if(r.next(i.value),r.closed)break}return"function"==typeof e.return&&r.add(()=>{e.return&&e.return()}),r})(n);{const e=`You provided ${j(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Wt(n,r){return new ze(e=>{const i=new X;let o=0;return i.add(r.schedule(function(){o!==n.length?(e.next(n[o++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function vt(n,r){return r?function pt(n,r){if(null!=n){if(function _n(n){return n&&"function"==typeof n[Q]}(n))return function nr(n,r){return new ze(e=>{const i=new X;return i.add(r.schedule(()=>{const o=n[Q]();i.add(o.subscribe({next(a){i.add(r.schedule(()=>e.next(a)))},error(a){i.add(r.schedule(()=>e.error(a)))},complete(){i.add(r.schedule(()=>e.complete()))}}))})),i})}(n,r);if(Vi(n))return function Jn(n,r){return new ze(e=>{const i=new X;return i.add(r.schedule(()=>n.then(o=>{i.add(r.schedule(()=>{e.next(o),i.add(r.schedule(()=>e.complete()))}))},o=>{i.add(r.schedule(()=>e.error(o)))}))),i})}(n,r);if(On(n))return Wt(n,r);if(function Gn(n){return n&&"function"==typeof n[gt]}(n)||"string"==typeof n)return function Tn(n,r){if(!n)throw new Error("Iterable cannot be null");return new ze(e=>{const i=new X;let o;return i.add(()=>{o&&"function"==typeof o.return&&o.return()}),i.add(r.schedule(()=>{o=n[gt](),i.add(r.schedule(function(){if(e.closed)return;let a,s;try{const l=o.next();a=l.value,s=l.done}catch(l){return void e.error(l)}s?e.complete():(e.next(a),this.schedule())}))})),i})}(n,r)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,r):n instanceof ze?n:new ze(ki(n))}class Tt extends te{constructor(r){super(),this.parent=r}_next(r){this.parent.notifyNext(r)}_error(r){this.parent.notifyError(r),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class ln extends te{notifyNext(r){this.destination.next(r)}notifyError(r){this.destination.error(r)}notifyComplete(){this.destination.complete()}}function Qi(n,r){if(r.closed)return;if(n instanceof ze)return n.subscribe(r);let e;try{e=ki(n)(r)}catch(i){r.error(i)}return e}function Kt(n,r,e=Number.POSITIVE_INFINITY){return"function"==typeof r?i=>i.pipe(Kt((o,a)=>vt(n(o,a)).pipe(Ct((s,l)=>r(o,s,a,l))),e)):("number"==typeof r&&(e=r),i=>i.lift(new jn(n,e)))}class jn{constructor(r,e=Number.POSITIVE_INFINITY){this.project=r,this.concurrent=e}call(r,e){return e.subscribe(new pi(r,this.project,this.concurrent))}}class pi extends ln{constructor(r,e,i=Number.POSITIVE_INFINITY){super(r),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(r){this.active0?this._next(r.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function $i(n=Number.POSITIVE_INFINITY){return Kt(oe,n)}function fr(n,r){return r?Wt(n,r):new ze(Ye(n))}function or(...n){let r=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return jt(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(r=n.pop())):"number"==typeof i&&(r=n.pop()),null===e&&1===n.length&&n[0]instanceof ze?n[0]:$i(r)(fr(n,e))}function to(){return function(r){return r.lift(new Io(r))}}class Io{constructor(r){this.connectable=r}call(r,e){const{connectable:i}=this;i._refCount++;const o=new po(r,i),a=e.subscribe(o);return o.closed||(o.connection=i.connect()),a}}class po extends te{constructor(r,e){super(r),this.connectable=e}_unsubscribe(){const{connectable:r}=this;if(!r)return void(this.connection=null);this.connectable=null;const e=r._refCount;if(e<=0)return void(this.connection=null);if(r._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,o=r._connection;this.connection=null,o&&(!i||o===i)&&o.unsubscribe()}}class ur extends ze{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let r=this._connection;return r||(this._isComplete=!1,r=this._connection=new X,r.add(this.source.subscribe(new zo(this.getSubject(),this))),r.closed&&(this._connection=null,r=X.EMPTY)),r}refCount(){return to()(this)}}const fa=(()=>{const n=ur.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 zo extends St{constructor(r,e){super(r),this.connectable=e}_error(r){this._unsubscribe(),super._error(r)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const r=this.connectable;if(r){this.connectable=null;const e=r._connection;r._refCount=0,r._subject=null,r._connection=null,e&&e.unsubscribe()}}}function cn(n,r){return function(i){let o;if(o="function"==typeof n?n:function(){return n},"function"==typeof r)return i.lift(new on(o,r));const a=Object.create(i,fa);return a.source=i,a.subjectFactory=o,a}}class on{constructor(r,e){this.subjectFactory=r,this.selector=e}call(r,e){const{selector:i}=this,o=this.subjectFactory(),a=i(o).subscribe(r);return a.add(e.subscribe(o)),a}}function Ln(){return new Fe}function Xn(){return n=>to()(cn(Ln)(n))}function je(n){for(let r in n)if(n[r]===je)return r;throw Error("Could not find renamed property on target object.")}function kn(n,r){for(const e in r)r.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=r[e])}function at(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(at).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const r=n.toString();if(null==r)return""+r;const e=r.indexOf("\n");return-1===e?r:r.substring(0,e)}function Ee(n,r){return null==n||""===n?null===r?"":r:null==r||""===r?n:n+" "+r}const vi=je({__forward_ref__:je});function ue(n){return n.__forward_ref__=ue,n.toString=function(){return at(this())},n}function an(n){return vn(n)?n():n}function vn(n){return"function"==typeof n&&n.hasOwnProperty(vi)&&n.__forward_ref__===ue}class ht extends Error{constructor(r,e){super(function bn(n,r){return`NG0${Math.abs(n)}${r?": "+r.trim():""}`}(r,e)),this.code=r}}function Rt(n){return"string"==typeof n?n:null==n?"":String(n)}function Br(n,r){throw new ht(-201,!1)}function Ko(n,r,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${r} <=Actual]`))}function Dn(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}const Bd=Dn;function vr(n){return{providers:n.providers||[],imports:n.imports||[]}}function Eh(n){return gm(n,Vo)||gm(n,Uf)}function gm(n,r){return n.hasOwnProperty(r)?n[r]:null}function ic(n){return n&&(n.hasOwnProperty(Ip)||n.hasOwnProperty(Ol))?n[Ip]:null}const Vo=je({\u0275prov:je}),Ip=je({\u0275inj:je}),Uf=je({ngInjectableDef:je}),Ol=je({ngInjectorDef:je});var na=(()=>((na=na||{})[na.Default=0]="Default",na[na.Host=1]="Host",na[na.Self=2]="Self",na[na.SkipSelf=4]="SkipSelf",na[na.Optional=8]="Optional",na))();let Yd;function Gd(n){const r=Yd;return Yd=n,r}function pu(n,r,e){const i=Eh(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&na.Optional?null:void 0!==r?r:void Br(at(n))}function hu(n){return{toString:n}.toString()}var Gc=(()=>((Gc=Gc||{})[Gc.OnPush=0]="OnPush",Gc[Gc.Default=1]="Default",Gc))(),Sc=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Sc||(Sc={})),Sc))();const zs=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),nf={},Ts=[],_m=je({\u0275cmp:je}),mp=je({\u0275dir:je}),tp=je({\u0275pipe:je}),jf=je({\u0275mod:je}),Zp=je({\u0275fac:je}),Fp=je({__NG_ELEMENT_ID__:je});let kg=0;function wn(n){return hu(()=>{const e=!0===n.standalone,i={},o={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===Gc.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Ts,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Sc.Emulated,id:"c"+kg++,styles:n.styles||Ts,_:null,setInput:null,schemas:n.schemas||null,tView:null},a=n.dependencies,s=n.features;return o.inputs=af(n.inputs,i),o.outputs=af(n.outputs),s&&s.forEach(l=>l(o)),o.directiveDefs=a?()=>("function"==typeof a?a():a).map(fu).filter(qm):null,o.pipeDefs=a?()=>("function"==typeof a?a():a).map(iu).filter(qm):null,o})}function eh(n,r,e){const i=n.\u0275cmp;i.directiveDefs=()=>("function"==typeof r?r():r).map(fu),i.pipeDefs=()=>("function"==typeof e?e():e).map(iu)}function fu(n){return Ya(n)||js(n)}function qm(n){return null!==n}function br(n){return hu(()=>({type:n.type,bootstrap:n.bootstrap||Ts,declarations:n.declarations||Ts,imports:n.imports||Ts,exports:n.exports||Ts,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function af(n,r){if(null==n)return nf;const e={};for(const i in n)if(n.hasOwnProperty(i)){let o=n[i],a=o;Array.isArray(o)&&(a=o[1],o=o[0]),e[o]=i,r&&(r[o]=a)}return e}const Wn=wn;function Js(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 Ya(n){return n[_m]||null}function js(n){return n[mp]||null}function iu(n){return n[tp]||null}function Ll(n,r){const e=n[jf]||null;if(!e&&!0===r)throw new Error(`Type ${at(n)} does not have '\u0275mod' property.`);return e}function Wa(n){return Array.isArray(n)&&"object"==typeof n[1]}function Zs(n){return Array.isArray(n)&&!0===n[1]}function Ih(n){return 0!=(8&n.flags)}function hd(n){return 2==(2&n.flags)}function th(n){return 1==(1&n.flags)}function fd(n){return null!==n.template}function Wc(n){return 0!=(256&n[2])}function gp(n,r){return n.hasOwnProperty(Zp)?n[Zp]:null}class np{constructor(r,e,i){this.previousValue=r,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function vo(){return _p}function _p(n){return n.type.prototype.ngOnChanges&&(n.setInput=Ca),Uu}function Uu(){const n=rs(this),r=n?.current;if(r){const e=n.previous;if(e===nf)n.previous=r;else for(let i in r)e[i]=r[i];n.current=null,this.ngOnChanges(r)}}function Ca(n,r,e,i){const o=rs(n)||function gc(n,r){return n[mc]=r}(n,{previous:nf,current:null}),a=o.current||(o.current={}),s=o.previous,l=this.declaredInputs[e],d=s[l];a[l]=new np(d&&d.currentValue,r,s===nf),n[i]=r}vo.ngInherit=!0;const mc="__ngSimpleChanges__";function rs(n){return n[mc]||null}function Ji(n){for(;Array.isArray(n);)n=n[0];return n}function Ls(n,r){return Ji(r[n])}function kl(n,r){return Ji(r[n.index])}function lf(n,r){return n.data[r]}function vp(n,r){return n[r]}function _c(n,r){const e=r[n];return Wa(e)?e:e[0]}function vc(n){return 64==(64&n[2])}function ci(n,r){return null==r?null:n[r]}function Bi(n){n[18]=0}function pr(n,r){n[5]+=r;let e=n,i=n[3];for(;null!==i&&(1===r&&1===e[5]||-1===r&&0===e[5]);)i[5]+=r,e=i,i=i[3]}const Mi={lFrame:Zm(null),bindingsEnabled:!0};function Qa(){return Mi.bindingsEnabled}function Pr(){return Mi.lFrame.lView}function qo(){return Mi.lFrame.tView}function Oe(n){return Mi.lFrame.contextLView=n,n[8]}function Re(n){return Mi.lFrame.contextLView=null,n}function Fl(){let n=Pc();for(;null!==n&&64===n.type;)n=n.parent;return n}function Pc(){return Mi.lFrame.currentTNode}function ju(){const n=Mi.lFrame,r=n.currentTNode;return n.isParent?r:r.parent}function Qc(n,r){const e=Mi.lFrame;e.currentTNode=n,e.isParent=r}function El(){return Mi.lFrame.isParent}function cf(){Mi.lFrame.isParent=!1}function Wd(){const n=Mi.lFrame;let r=n.bindingRootIndex;return-1===r&&(r=n.bindingRootIndex=n.tView.bindingStartIndex),r}function df(){return Mi.lFrame.bindingIndex}function vm(){return Mi.lFrame.bindingIndex++}function Rh(n){const r=Mi.lFrame,e=r.bindingIndex;return r.bindingIndex=r.bindingIndex+n,e}function _u(n){Mi.lFrame.inI18n=n}function Y1(n,r){const e=Mi.lFrame;e.bindingIndex=e.bindingRootIndex=n,Z_(r)}function Z_(n){Mi.lFrame.currentDirectiveIndex=n}function H0(n){const r=Mi.lFrame.currentDirectiveIndex;return-1===r?null:n[r]}function Xm(){return Mi.lFrame.currentQueryIndex}function Gf(n){Mi.lFrame.currentQueryIndex=n}function Fg(n){const r=n[1];return 2===r.type?r.declTNode:1===r.type?n[6]:null}function Jm(n,r,e){if(e&na.SkipSelf){let o=r,a=n;for(;!(o=o.parent,null!==o||e&na.Host||(o=Fg(a),null===o||(a=a[15],10&o.type))););if(null===o)return!1;r=o,n=a}const i=Mi.lFrame=pf();return i.currentTNode=r,i.lView=n,!0}function uf(n){const r=pf(),e=n[1];Mi.lFrame=r,r.currentTNode=e.firstChild,r.lView=n,r.tView=e,r.contextLView=n,r.bindingIndex=e.bindingStartIndex,r.inI18n=!1}function pf(){const n=Mi.lFrame,r=null===n?null:n.child;return null===r?Zm(n):r}function Zm(n){const r={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=r),r}function hf(){const n=Mi.lFrame;return Mi.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const e0=hf;function t0(){const n=hf();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 Du(){return Mi.lFrame.selectedIndex}function wd(n){Mi.lFrame.selectedIndex=n}function Kl(){const n=Mi.lFrame;return lf(n.tView,n.selectedIndex)}function Pu(){Mi.lFrame.currentNamespace="svg"}function Rp(){!function y_(){Mi.lFrame.currentNamespace=null}()}function Wf(n,r){for(let e=r.directiveStart,i=r.directiveEnd;e=i)break}else r[d]<0&&(n[18]+=65536),(l>11>16&&(3&n[2])===r){n[2]+=2048;try{a.call(l)}finally{}}}else try{a.call(l)}finally{}}class Rg{constructor(r,e,i){this.factory=r,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function C_(n,r,e){let i=0;for(;ir){s=a-1;break}}}for(;a>16}(n),i=r;for(;e>0;)i=i[15],e--;return i}let U0=!0;function Bh(n){const r=U0;return U0=n,r}let z0=0;const vu={};function ig(n,r){const e=ih(n,r);if(-1!==e)return e;const i=r[1];i.firstCreatePass&&(n.injectorIndex=r.length,Oc(i.data,n),Oc(r,null),Oc(i.blueprint,null));const o=Bp(n,r),a=n.injectorIndex;if(yp(o)){const s=xd(o),l=ou(o,r),d=l[1].data;for(let f=0;f<8;f++)r[a+f]=l[s+f]|d[s+f]}return r[a+8]=o,a}function Oc(n,r){n.push(0,0,0,0,0,0,0,0,r)}function ih(n,r){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===r[n.injectorIndex+8]?-1:n.injectorIndex}function Bp(n,r){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,o=r;for(;null!==o;){if(i=z(o),null===i)return-1;if(e++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function o0(n,r,e){!function gf(n,r,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Fp)&&(i=e[Fp]),null==i&&(i=e[Fp]=z0++);const o=255&i;r.data[n+(o>>5)]|=1<=0?255&r:ke:r}(e);if("function"==typeof a){if(!Jm(r,n,i))return i&na.Host?j0(o,0,i):wh(r,e,i,o);try{const s=a(i);if(null!=s||i&na.Optional)return s;Br()}finally{e0()}}else if("number"==typeof a){let s=null,l=ih(n,r),d=-1,f=i&na.Host?r[16][6]:null;for((-1===l||i&na.SkipSelf)&&(d=-1===l?Bp(n,r):r[l+8],-1!==d&&Te(i,!1)?(s=r[1],l=xd(d),r=ou(d,r)):l=-1);-1!==l;){const C=r[1];if(Ae(a,l,C.data)){const M=A(l,r,e,s,i,f);if(M!==vu)return M}d=r[l+8],-1!==d&&Te(i,r[1].data[l+8]===f)&&Ae(a,l,r)?(s=C,l=xd(d),r=ou(d,r)):l=-1}}return o}function A(n,r,e,i,o,a){const s=r[1],l=s.data[n+8],C=E(l,s,e,null==i?hd(l)&&U0:i!=s&&0!=(3&l.type),o&na.Host&&a===l);return null!==C?N(r,s,C,l):vu}function E(n,r,e,i,o){const a=n.providerIndexes,s=r.data,l=1048575&a,d=n.directiveStart,C=a>>20,T=o?l+C:n.directiveEnd;for(let F=i?l:l+C;F=d&&pe.type===e)return F}if(o){const F=s[d];if(F&&fd(F)&&F.type===e)return d}return null}function N(n,r,e,i){let o=n[e];const a=r.data;if(function Qf(n){return n instanceof Rg}(o)){const s=o;s.resolving&&function di(n,r){const e=r?`. Dependency path: ${r.join(" > ")} > ${n}`:"";throw new ht(-200,`Circular dependency in DI detected for ${n}${e}`)}(function $t(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Rt(n)}(a[e]));const l=Bh(s.canSeeViewProviders);s.resolving=!0;const d=s.injectImpl?Gd(s.injectImpl):null;Jm(n,i,na.Default);try{o=n[e]=s.factory(void 0,a,n,i),r.firstCreatePass&&e>=i.directiveStart&&function gl(n,r,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:a}=r.type.prototype;if(i){const s=_p(r);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}o&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,o),a&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,a))}(e,a[e],r)}finally{null!==d&&Gd(d),Bh(l),s.resolving=!1,e0()}}return o}function Ae(n,r,e){return!!(e[r+(n>>5)]&1<{const r=n.prototype.constructor,e=r[Zp]||bt(r),i=Object.prototype;let o=Object.getPrototypeOf(n.prototype).constructor;for(;o&&o!==i;){const a=o[Zp]||bt(o);if(a&&a!==e)return a;o=Object.getPrototypeOf(o)}return a=>new a})}function bt(n){return vn(n)?()=>{const r=bt(an(n));return r&&r()}:gp(n)}function z(n){const r=n[1],e=r.type;return 2===e?r.declTNode:1===e?n[6]:null}function ge(n){return function Rv(n,r){if("class"===r)return n.classes;if("style"===r)return n.styles;const e=n.attrs;if(e){const i=e.length;let o=0;for(;o{const a=Zi(r);function s(...l){if(this instanceof s)return a.call(this,...l),this;const d=new s(...l);return function(C){return o&&o(C,...l),(C.hasOwnProperty(He)?C[He]:Object.defineProperty(C,He,{value:[]})[He]).push(d),i&&i(C),C}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=n,s.annotationCls=s,s})}function Zi(n){return function(...e){if(n){const i=n(...e);for(const o in i)this[o]=i[o]}}}function io(n,r,e){return hu(()=>{const i=Zi(r);function o(...a){if(this instanceof o)return i.apply(this,a),this;const s=new o(...a);return l.annotation=s,l;function l(d,f,C){const M=d.hasOwnProperty(Ze)?d[Ze]:Object.defineProperty(d,Ze,{value:[]})[Ze];for(;M.length<=C;)M.push(null);return(M[C]=M[C]||[]).push(s),d}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=n,o.annotationCls=o,o})}function ta(n,r,e,i){return hu(()=>{const o=Zi(r);function a(...s){if(this instanceof a)return o.apply(this,s),this;const l=new a(...s);return function d(f,C){const M=f.constructor,T=M.hasOwnProperty(wt)?M[wt]:Object.defineProperty(M,wt,{value:{}})[wt];T[C]=T.hasOwnProperty(C)&&T[C]||[],T[C].unshift(l),i&&i(f,C,...s)}}return e&&(a.prototype=Object.create(e.prototype)),a.prototype.ngMetadataName=n,a.annotationCls=a,a})}const Ba=io("Attribute",n=>({attributeName:n,__NG_ELEMENT_ID__:()=>ge(n)}));class Pi{constructor(r,e){this._desc=r,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Dn({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function $u(n){const r=zs.ng;if(r&&r.\u0275compilerFacade)return r.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const G1=Function;function Bv(n){return"function"==typeof n}function Lh(n,r){void 0===r&&(r=n);for(let e=0;eArray.isArray(e)?ag(e,r):r(e))}function W1(n,r,e){r>=n.length?n.push(e):n.splice(r,0,e)}function Lv(n,r){return r>=n.length-1?n.pop():n.splice(r,1)[0]}function $0(n,r){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function FC(n,r,e,i){let o=n.length;if(o==r)n.push(e,i);else if(1===o)n.push(i,n[0]),n[0]=e;else{for(o--,n.push(n[o-1],n[o]);o>r;)n[o]=n[o-2],o--;n[r]=e,n[r+1]=i}}(n,i,r,e)),i}function Q1(n,r){const e=a0(n,r);if(e>=0)return n[1|e]}function a0(n,r){return function K1(n,r,e){let i=0,o=n.length>>e;for(;o!==i;){const a=i+(o-i>>1),s=n[a<r?o=a:i=a+1}return~(o<new r(...e)}_zipTypesAndAnnotations(r,e){let i;i=$0(typeof r>"u"?e.length:r.length);for(let o=0;o"u"?[]:r[o]&&r[o]!=Object?[r[o]]:[],e&&null!=e[o]&&(i[o]=i[o].concat(e[o]));return i}_ownParameters(r,e){if(function Hl(n){return ry.test(n)||q1.test(n)||BC.test(n)&&!LC.test(n)}(r.toString()))return null;if(r.parameters&&r.parameters!==e.parameters)return r.parameters;const o=r.ctorParameters;if(o&&o!==e.ctorParameters){const l="function"==typeof o?o():o,d=l.map(C=>C&&C.type),f=l.map(C=>C&&NC(C.decorators));return this._zipTypesAndAnnotations(d,f)}const a=r.hasOwnProperty(Ze)&&r[Ze],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",r);return s||a?this._zipTypesAndAnnotations(s,a):$0(r.length)}parameters(r){if(!Bv(r))return[];const e=Ng(r);let i=this._ownParameters(r,e);return!i&&e!==Object&&(i=this.parameters(e)),i||[]}_ownAnnotations(r,e){if(r.annotations&&r.annotations!==e.annotations){let i=r.annotations;return"function"==typeof i&&i.annotations&&(i=i.annotations),i}return r.decorators&&r.decorators!==e.decorators?NC(r.decorators):r.hasOwnProperty(He)?r[He]:null}annotations(r){if(!Bv(r))return[];const e=Ng(r),i=this._ownAnnotations(r,e)||[];return(e!==Object?this.annotations(e):[]).concat(i)}_ownPropMetadata(r,e){if(r.propMetadata&&r.propMetadata!==e.propMetadata){let i=r.propMetadata;return"function"==typeof i&&i.propMetadata&&(i=i.propMetadata),i}if(r.propDecorators&&r.propDecorators!==e.propDecorators){const i=r.propDecorators,o={};return Object.keys(i).forEach(a=>{o[a]=NC(i[a])}),o}return r.hasOwnProperty(wt)?r[wt]:null}propMetadata(r){if(!Bv(r))return{};const e=Ng(r),i={};if(e!==Object){const a=this.propMetadata(e);Object.keys(a).forEach(s=>{i[s]=a[s]})}const o=this._ownPropMetadata(r,e);return o&&Object.keys(o).forEach(a=>{const s=[];i.hasOwnProperty(a)&&s.push(...i[a]),s.push(...o[a]),i[a]=s}),i}ownPropMetadata(r){return Bv(r)&&this._ownPropMetadata(r,Ng(r))||{}}hasLifecycleHook(r,e){return r instanceof G1&&e in r.prototype}}function NC(n){return n?n.map(r=>new(0,r.type.annotationCls)(...r.args?r.args:[])):[]}function Ng(n){const r=n.prototype?Object.getPrototypeOf(n.prototype):null;return(r?r.constructor:null)||Object}const Y0={},Hv="__NG_DI_FLAG__",Hh="ngTempTokenPath",oy=/\n/gm,sy="__source";let s0;function Cp(n){const r=s0;return s0=n,r}function A_(n,r=na.Default){if(void 0===s0)throw new ht(-203,!1);return null===s0?pu(n,void 0,r):s0.get(n,r&na.Optional?null:void 0,r)}function en(n,r=na.Default){return(function Jp(){return Yd}()||A_)(an(n),r)}function cc(n,r=na.Default){return"number"!=typeof r&&(r=0|(r.optional&&8)|(r.host&&1)|(r.self&&2)|(r.skipSelf&&4)),en(n,r)}function G0(n){const r=[];for(let e=0;e({token:n})),-1),rh=Hg(io("Optional"),8),vf=Hg(io("Self"),2),bf=Hg(io("SkipSelf"),4),Ou=Hg(io("Host"),1);let jv,J0,d0,Vg=null;function sg(n){return w_(function Ug(){return Vg=Vg||new J2}().parameters(n))}function w_(n){return n.map(r=>function Vv(n){const r={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(n)&&n.length>0)for(let e=0;en,createScript:n=>n,createScriptURL:n=>n})}catch{}return J0}())||void 0===r?void 0:r.createHTML(n))||n}function Yw(n){var r;return(null===(r=function Yg(){if(void 0===d0&&(d0=null,zs.trustedTypes))try{d0=zs.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return d0}())||void 0===r?void 0:r.createHTML(n))||n}class Ap{constructor(r){this.changingThisBreaksApplicationSecurity=r}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Gw extends Ap{getTypeName(){return"HTML"}}class py extends Ap{getTypeName(){return"Style"}}class Ww extends Ap{getTypeName(){return"Script"}}class hy extends Ap{getTypeName(){return"URL"}}class tM extends Ap{getTypeName(){return"ResourceURL"}}function Gu(n){return n instanceof Ap?n.changingThisBreaksApplicationSecurity:n}function yf(n,r){const e=function Z1(n){return n instanceof Ap&&n.getTypeName()||null}(n);if(null!=e&&e!==r){if("ResourceURL"===e&&"URL"===r)return!0;throw new Error(`Required a safe ${r}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===r}function nb(n){const r=new Qw(n);return function jC(){try{return!!(new window.DOMParser).parseFromString($g(""),"text/html")}catch{return!1}}()?new Am(r):r}class Am{constructor(r){this.inertDocumentHelper=r}getInertBodyElement(r){r=""+r;try{const e=(new window.DOMParser).parseFromString($g(r),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(r):(e.removeChild(e.firstChild),e)}catch{return null}}}class Qw{constructor(r){if(this.defaultDoc=r,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(r){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=$g(r),e;const i=this.inertDocument.createElement("body");return i.innerHTML=$g(r),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(r){const e=r.attributes;for(let o=e.length-1;0"),!0}endElement(r){const e=r.nodeName.toLowerCase();xm.hasOwnProperty(e)&&!Gg.hasOwnProperty(e)&&(this.buf.push(""))}chars(r){this.buf.push(M_(r))}checkClobberedElement(r,e){if(e&&(r.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${r.outerHTML}`);return e}}const x_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gy=/([^\#-~ |!])/g;function M_(n){return n.replace(/&/g,"&").replace(x_,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(gy,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}let q;function me(n,r){let e=null;try{q=q||nb(n);let i=r?String(r):"";e=q.getInertBodyElement(i);let o=5,a=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=a,a=e.innerHTML,e=q.getInertBodyElement(i)}while(i!==a);return $g((new my).sanitizeChildren(Se(e)||e))}finally{if(e){const i=Se(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Se(n){return"content"in n&&function Le(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var yt=(()=>((yt=yt||{})[yt.NONE=0]="NONE",yt[yt.HTML=1]="HTML",yt[yt.STYLE=2]="STYLE",yt[yt.SCRIPT=3]="SCRIPT",yt[yt.URL=4]="URL",yt[yt.RESOURCE_URL=5]="RESOURCE_URL",yt))();function st(n){const r=za();return r?Yw(r.sanitize(yt.HTML,n)||""):yf(n,"HTML")?Yw(Gu(n)):me(zC(),Rt(n))}function In(n){const r=za();return r?r.sanitize(yt.URL,n)||"":yf(n,"URL")?Gu(n):au(Rt(n))}function za(){const n=Pr();return n&&n[12]}const ms=new Pi("ENVIRONMENT_INITIALIZER"),gd=new Pi("INJECTOR",-1),Ml=new Pi("INJECTOR_DEF_TYPES");class Sl{get(r,e=Y0){if(e===Y0){const i=new Error(`NullInjectorError: No provider for ${at(r)}!`);throw i.name="NullInjectorError",i}return e}}function jh(...n){return{\u0275providers:Vd(0,n)}}function Vd(n,...r){const e=[],i=new Set;let o;return ag(r,a=>{const s=a;bu(s,e,[],i)&&(o||(o=[]),o.push(s))}),void 0!==o&&ah(o,e),e}function ah(n,r){for(let e=0;e{r.push(a)})}}function bu(n,r,e,i){if(!(n=an(n)))return!1;let o=null,a=ic(n);const s=!a&&Ya(n);if(a||s){if(s&&!s.standalone)return!1;o=n}else{const d=n.ngModule;if(a=ic(d),!a)return!1;o=d}const l=i.has(o);if(s){if(l)return!1;if(i.add(o),s.dependencies){const d="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const f of d)bu(f,r,e,i)}}else{if(!a)return!1;{if(null!=a.imports&&!l){let f;i.add(o);try{ag(a.imports,C=>{bu(C,r,e,i)&&(f||(f=[]),f.push(C))})}finally{}void 0!==f&&ah(f,r)}if(!l){const f=gp(o)||(()=>new o);r.push({provide:o,useFactory:f,deps:Ts},{provide:Ml,useValue:o,multi:!0},{provide:ms,useValue:()=>en(o),multi:!0})}const d=a.providers;null==d||l||ag(d,C=>{r.push(C)})}}return o!==n&&void 0!==n.providers}const yu=je({provide:String,useValue:je});function Eu(n){return null!==n&&"object"==typeof n&&yu in n}function rp(n){return"function"==typeof n}const qf=new Pi("Set Injector scope."),Xf={},YC={};let S_;function tv(){return void 0===S_&&(S_=new Sl),S_}class Qg{}class _y extends Qg{constructor(r,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,iM(r,s=>this.processProvider(s)),this.records.set(gd,Wu(void 0,this)),o.has("environment")&&this.records.set(Qg,Wu(void 0,this));const a=this.records.get(qf);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(Ml.multi,Ts,na.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();for(const r of this._onDestroyHooks)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(r){this._onDestroyHooks.push(r)}runInContext(r){this.assertNotDestroyed();const e=Cp(this),i=Gd(void 0);try{return r()}finally{Cp(e),Gd(i)}}get(r,e=Y0,i=na.Default){this.assertNotDestroyed();const o=Cp(this),a=Gd(void 0);try{if(!(i&na.SkipSelf)){let l=this.records.get(r);if(void 0===l){const d=function tE(n){return"function"==typeof n||"object"==typeof n&&n instanceof Pi}(r)&&Eh(r);l=d&&this.injectableDefInScope(d)?Wu(nv(r),Xf):null,this.records.set(r,l)}if(null!=l)return this.hydrate(r,l)}return(i&na.Self?tv():this.parent).get(r,e=i&na.Optional&&e===Y0?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Hh]=s[Hh]||[]).unshift(at(r)),o)throw s;return function cy(n,r,e,i){const o=n[Hh];throw r[sy]&&o.unshift(r[sy]),n.message=function J1(n,r,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let o=at(r);if(Array.isArray(r))o=r.map(at).join(" -> ");else if("object"==typeof r){let a=[];for(let s in r)if(r.hasOwnProperty(s)){let l=r[s];a.push(s+":"+("string"==typeof l?JSON.stringify(l):at(l)))}o=`{${a.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${n.replace(oy,"\n ")}`}("\n"+n.message,o,e,i),n.ngTokenPath=o,n[Hh]=null,n}(s,r,"R3InjectorError",this.source)}throw s}finally{Gd(a),Cp(o)}}resolveInjectorInitializers(){const r=Cp(this),e=Gd(void 0);try{const i=this.get(ms.multi,Ts,na.Self);for(const o of i)o()}finally{Cp(r),Gd(e)}}toString(){const r=[],e=this.records;for(const i of e.keys())r.push(at(i));return`R3Injector[${r.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ht(205,!1)}processProvider(r){let e=rp(r=an(r))?r:an(r&&r.provide);const i=function WC(n){return Eu(n)?Wu(void 0,n.useValue):Wu(Yv(n),Xf)}(r);if(rp(r)||!0!==r.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=Wu(void 0,Xf,!0),o.factory=()=>G0(o.multi),this.records.set(e,o)),e=r,o.multi.push(r)}this.records.set(e,i)}hydrate(r,e){return e.value===Xf&&(e.value=YC,e.value=e.factory()),"object"==typeof e.value&&e.value&&function eE(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(r){if(!r.providedIn)return!1;const e=an(r.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function nv(n){const r=Eh(n),e=null!==r?r.factory:gp(n);if(null!==e)return e;if(n instanceof Pi)throw new ht(204,!1);if(n instanceof Function)return function GC(n){const r=n.length;if(r>0)throw $0(r,"?"),new ht(204,!1);const e=function pd(n){const r=n&&(n[Vo]||n[Uf]);if(r){const e=function od(n){if(n.hasOwnProperty("name"))return n.name;const r=(""+n).match(/^function\s*([^\s(]+)/);return null===r?"":r[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.`),r}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new ht(204,!1)}function Yv(n,r,e){let i;if(rp(n)){const o=an(n);return gp(o)||nv(o)}if(Eu(n))i=()=>an(n.useValue);else if(function Kd(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...G0(n.deps||[]));else if(function Wg(n){return!(!n||!n.useExisting)}(n))i=()=>en(an(n.useExisting));else{const o=an(n&&(n.useClass||n.provide));if(!function Zk(n){return!!n.deps}(n))return gp(o)||nv(o);i=()=>new o(...G0(n.deps))}return i}function Wu(n,r,e=!1){return{factory:n,value:r,multi:e?[]:void 0}}function HT(n){return!!n.\u0275providers}function iM(n,r){for(const e of n)Array.isArray(e)?iM(e,r):HT(e)?iM(e.\u0275providers,r):r(e)}class VT{}class zT{resolveComponentFactory(r){throw function iE(n){const r=Error(`No component factory found for ${at(n)}. Did you add it to @NgModule.entryComponents?`);return r.ngComponent=n,r}(r)}}let $h=(()=>{class n{}return n.NULL=new zT,n})();function rE(){return vy(Fl(),Pr())}function vy(n,r){return new gr(kl(n,r))}let gr=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=rE,n})();function oE(n){return n instanceof gr?n.nativeElement:n}class iv{}let Wl=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function aE(){const n=Pr(),e=_c(Fl().index,n);return(Wa(e)?e:n)[11]}(),n})(),sE=(()=>{class n{}return n.\u0275prov=Dn({token:n,providedIn:"root",factory:()=>null}),n})();class ab{constructor(r){this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}}const h5=new ab("14.2.6"),rM={};function lM(n){return n.ngOriginalError}class p0{constructor(){this._console=console}handleError(r){const e=this._findOriginalError(r);this._console.error("ERROR",r),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(r){let e=r&&lM(r);for(;e&&lM(e);)e=lM(e);return e||null}}const yy=/^>|^->||--!>|)/;const h0=new Map;let WT=0;const fM="__ngContext__";function sh(n,r){Wa(r)?(n[fM]=r[20],function fE(n){h0.set(n[20],n)}(r)):n[fM]=r}function op(n){return n.ownerDocument.defaultView}function Jw(n){return n.ownerDocument}function T_(n){return n instanceof Function?n():n}var Mm=(()=>((Mm=Mm||{})[Mm.Important=1]="Important",Mm[Mm.DashCase=2]="DashCase",Mm))();let Cy;function Ay(n,r){return Cy(n,r)}function wy(n){const r=n[3];return Zs(r)?r[3]:r}function gM(n){return lD(n[13])}function _M(n){return lD(n[4])}function lD(n){for(;null!==n&&!Zs(n);)n=n[4];return n}function xy(n,r,e,i,o){if(null!=i){let a,s=!1;Zs(i)?a=i:Wa(i)&&(s=!0,i=i[0]);const l=Ji(i);0===n&&null!==e?null==o?hD(r,e,l):lb(r,e,l,o||null,!0):1===n&&null!==e?lb(r,e,l,o||null,!0):2===n?xh(r,l,s):3===n&&r.destroyNode(l),null!=a&&function rx(n,r,e,i,o){const a=e[7];a!==Ji(e)&&xy(r,n,i,a,o);for(let l=10;lr.replace(cM,"\u200b$1\u200b"))}(r))}function JC(n,r,e){return n.createElement(r,e)}function dD(n,r){const e=n[9],i=e.indexOf(r),o=r[3];512&r[2]&&(r[2]&=-513,pr(o,-1)),e.splice(i,1)}function Cf(n,r){if(n.length<=10)return;const e=10+r,i=n[e];if(i){const o=i[17];null!==o&&o!==n&&dD(o,i),r>0&&(n[e-1][4]=i[4]);const a=Lv(n,10+r);!function ME(n,r){ub(n,r,r[11],2,null,null),r[0]=null,r[6]=null}(i[1],i);const s=a[19];null!==s&&s.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function ap(n,r){if(!(128&r[2])){const e=r[11];e.destroyNode&&ub(n,r,e,3,null,null),function TE(n){let r=n[13];if(!r)return bM(n[1],n);for(;r;){let e=null;if(Wa(r))e=r[13];else{const i=r[10];i&&(e=i)}if(!e){for(;r&&!r[4]&&r!==n;)Wa(r)&&bM(r[1],r),r=r[3];null===r&&(r=n),Wa(r)&&bM(r[1],r),e=r&&r[4]}r=e}}(r)}}function bM(n,r){if(!(128&r[2])){r[2]&=-65,r[2]|=128,function DE(n,r){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[o=f]():i[o=-f].unsubscribe(),a+=2}else{const s=i[o=e[a+1]];e[a].call(s)}if(null!==i){for(let a=o+1;aa?"":o[M+1].toLowerCase();const F=8&i?T:null;if(F&&-1!==ZC(F,f,0)||2&i&&f!==T){if(Kg(i))return!1;s=!0}}}}else{if(!s&&!Kg(i)&&!Kg(d))return!1;if(s&&Kg(d))continue;s=!1,i=d|1&i}}return Kg(i)||s}function Kg(n){return 0==(1&n)}function dg(n,r,e,i){if(null===r)return-1;let o=0;if(i||!e){let a=!1;for(;o-1)for(e++;e0?'="'+l+'"':"")+"]"}else 8&i?o+="."+s:4&i&&(o+=" "+s);else""!==o&&!Kg(s)&&(r+=m0(a,o),o=""),i=s,a=a||!Kg(i);e++}return""!==o&&(r+=m0(a,o)),r}const tl={};function p(n){SM(qo(),Pr(),Du()+n,!1)}function SM(n,r,e,i){if(!i)if(3==(3&r[2])){const a=n.preOrderCheckHooks;null!==a&&yh(r,a,e)}else{const a=n.preOrderHooks;null!==a&&bc(r,a,0,e)}wd(e)}const mD={\u0275\u0275defineInjectable:Dn,\u0275\u0275defineInjector:vr,\u0275\u0275inject:en,\u0275\u0275invalidFactoryDep:function ly(n){throw new ht(202,!1)},resolveForwardRef:an};const RE=je({provide:String,useValue:je});function gD(n){return void 0!==n.useClass}function _D(n){return void 0!==n.useFactory}const NE=zn("Injectable",void 0,void 0,void 0,(n,r)=>function FE(n,r){let e=null,i=null;n.hasOwnProperty(Vo)||Object.defineProperty(n,Vo,{get:()=>(null===e&&(e=$u().compileInjectable(mD,`ng:///${n.name}/\u0275prov.js`,function TM(n,r){const e=r||{providedIn:null},i={name:n.name,type:n,typeArgumentCount:0,providedIn:e.providedIn};return(gD(e)||_D(e))&&void 0!==e.deps&&(i.deps=w_(e.deps)),gD(e)?i.useClass=e.useClass:function BE(n){return RE in n}(e)?i.useValue=e.useValue:_D(e)?i.useFactory=e.useFactory:function LE(n){return void 0!==n.useExisting}(e)&&(i.useExisting=e.useExisting),i}(n,r))),e)}),n.hasOwnProperty(Zp)||Object.defineProperty(n,Zp,{get:()=>{if(null===i){const o=$u();i=o.compileFactory(mD,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n,typeArgumentCount:0,deps:sg(n),target:o.FactoryTarget.Injectable})}return i},configurable:!0})}(n,r));function tA(n,r=null,e=null,i){const o=vD(n,r,e,i);return o.resolveInjectorInitializers(),o}function vD(n,r=null,e=null,i,o=new Set){const a=[e||Ts,jh(n)];return i=i||("object"==typeof n?void 0:at(n)),new _y(a,r||tv(),i||null,o)}let ql=(()=>{class n{static create(e,i){if(Array.isArray(e))return tA({name:""},i,e,"");{var o;const a=null!==(o=e.name)&&void 0!==o?o:"";return tA({name:a},e.parent,e.providers,a)}}}return n.THROW_IF_NOT_FOUND=Y0,n.NULL=new Sl,n.\u0275prov=Dn({token:n,providedIn:"any",factory:()=>en(gd)}),n.__NG_ELEMENT_ID__=-1,n})();function U(n,r=na.Default){const e=Pr();return null===e?en(n,r):rg(Fl(),e,an(n),r)}function P_(){throw new Error("invalid")}function cx(n,r){return n<<17|r<<2}function O_(n){return n>>17&32767}function PM(n){return 2|n}function av(n){return(131068&n)>>2}function OM(n,r){return-131069&n|r<<2}function kM(n){return 1|n}function $D(n,r){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&SM(n,r,22,!1),e(i,o)}finally{wd(a)}}function GD(n,r,e){if(Ih(r)){const o=r.directiveEnd;for(let a=r.directiveStart;a0;){const e=n[--r];if("number"==typeof e&&e<0)return e}return 0})(l)!=d&&l.push(d),l.push(i,o,s)}}function Qs(n,r){null!==n.hostBindings&&n.hostBindings(1,r)}function kc(n,r){r.flags|=2,(n.components||(n.components=[])).push(r.index)}function Zf(n,r,e){if(e){if(r.exportAs)for(let i=0;i0&&sI(e)}}function sI(n){for(let i=gM(n);null!==i;i=_M(i))for(let o=10;o0&&sI(a)}const e=n[1].components;if(null!==e)for(let i=0;i0&&sI(o)}}function u7(n,r){const e=_c(r,n),i=e[1];(function p7(n,r){for(let e=r.length;e-1&&(Cf(r,i),Lv(e,i))}this._attachedToViewContainer=!1}ap(this._lView[1],this._lView)}onDestroy(r){V(this._lView[1],this._lView,null,r)}markForCheck(){lI(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){cI(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ht(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function SE(n,r){ub(n,r,r[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(r){if(this._attachedToViewContainer)throw new ht(902,!1);this._appRef=r}}class h7 extends $M{constructor(r){super(r),this._view=r}detectChanges(){const r=this._view;cI(r[1],r,r[8],!1)}checkNoChanges(){}get context(){return null}}class YM extends $h{constructor(r){super(),this.ngModule=r}resolveComponentFactory(r){const e=Ya(r);return new GM(e,this.ngModule)}}function hx(n){const r=[];for(let e in n)n.hasOwnProperty(e)&&r.push({propName:n[e],templateName:e});return r}class mI{constructor(r,e){this.injector=r,this.parentInjector=e}get(r,e,i){const o=this.injector.get(r,rM,i);return o!==rM||e===rM?o:this.parentInjector.get(r,e,i)}}class GM extends VT{constructor(r,e){super(),this.componentDef=r,this.ngModule=e,this.componentType=r.type,this.selector=function MM(n){return n.map(ax).join(",")}(r.selectors),this.ngContentSelectors=r.ngContentSelectors?r.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return hx(this.componentDef.inputs)}get outputs(){return hx(this.componentDef.outputs)}create(r,e,i,o){var a;let s=(o=o||this.ngModule)instanceof Qg?o:null===(a=o)||void 0===a?void 0:a.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const l=s?new mI(r,s):r,d=l.get(iv,null);if(null===d)throw new ht(407,!1);const f=l.get(sE,null),C=d.createRenderer(null,this.componentDef),M=this.componentDef.selectors[0][0]||"div",T=i?function S(n,r,e){return n.selectRootElement(r,e===Sc.ShadowDom)}(C,i,this.componentDef.encapsulation):JC(d.createRenderer(null,this.componentDef),M,function fI(n){const r=n.toLowerCase();return"svg"===r?"svg":"math"===r?"math":null}(M)),F=this.componentDef.onPush?288:272,pe=oA(0,null,null,1,0,null,null,null,null,null),ce=HM(null,pe,null,F,null,null,d,C,f,l,null);let fe,Pe;uf(ce);try{const Ne=function m7(n,r,e,i,o,a){const s=e[1];e[22]=n;const d=Py(s,22,2,"#host",null),f=d.mergedAttrs=r.hostAttrs;null!==f&&(KD(d,f,!0),null!==n&&(C_(o,n,f),null!==d.classes&&wM(o,n,d.classes),null!==d.styles&&rv(o,n,d.styles)));const C=i.createRenderer(n,r),M=HM(e,WD(r),null,r.onPush?32:16,e[22],d,i,C,a||null,null,null);return s.firstCreatePass&&(o0(ig(d,e),s,r.type),kc(s,d),Sm(d,e.length,1)),QD(e,M),e[22]=M}(T,this.componentDef,ce,d,C);if(T)if(i)C_(C,T,["ng-version",h5.full]);else{const{attrs:Ge,classes:lt}=function sx(n){const r=[],e=[];let i=1,o=2;for(;i0&&wM(C,T,lt.join(" "))}if(Pe=lf(pe,22),void 0!==e){const Ge=Pe.projection=[];for(let lt=0;lt=0;i--){const o=n[i];o.hostVars=r+=o.hostVars,o.hostAttrs=Lg(o.hostAttrs,e=Lg(e,o.hostAttrs))}}(i)}function gI(n){return n===nf?{}:n===Ts?[]:n}function b7(n,r){const e=n.viewQuery;n.viewQuery=e?(i,o)=>{r(i,o),e(i,o)}:r}function y7(n,r){const e=n.contentQueries;n.contentQueries=e?(i,o,a)=>{r(i,o,a),e(i,o,a)}:r}function C7(n,r){const e=n.hostBindings;n.hostBindings=e?(i,o)=>{r(i,o),e(i,o)}:r}let ky=null;function aA(){if(!ky){const n=zs.Symbol;if(n&&n.iterator)ky=n.iterator;else{const r=Object.getOwnPropertyNames(Map.prototype);for(let e=0;el(Ji(Pt[i.index])):i.index;let lt=null;if(!l&&d&&(lt=function T7(n,r,e,i){const o=n.cleanup;if(null!=o)for(let a=0;ad?l[d]:null}"string"==typeof s&&(a+=2)}return null}(n,r,o,i.index)),null!==lt)(lt.__ngLastListenerFn__||lt).__ngNextListenerFn__=a,lt.__ngLastListenerFn__=a,F=!1;else{a=cv(i,r,M,a,!1);const Pt=e.listen(Pe,o,a);T.push(a,Pt),C&&C.push(o,Ge,Ne,Ne+1)}}else a=cv(i,r,M,a,!1);const pe=i.outputs;let ce;if(F&&null!==pe&&(ce=pe[o])){const fe=ce.length;if(fe)for(let Pe=0;Pe0;)r=r[15],n--;return r}(n,Mi.lFrame.contextLView))[8]}(n)}function D7(n,r){let e=null;const i=function EE(n){const r=n.attrs;if(null!=r){const e=r.indexOf(5);if(0==(1&e))return r[e+1]}return null}(n);for(let o=0;o=0}const Hp={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wI(n){return n.substring(Hp.key,Hp.keyEnd)}function xI(n,r){const e=Hp.textEnd;return e===r?-1:(r=Hp.keyEnd=function iR(n,r,e){for(;r32;)r++;return r}(n,Hp.key=r,e),hb(n,r,e))}function hb(n,r,e){for(;r=0;e=xI(r,e))Nh(n,wI(r),!0)}function ve(n,r,e,i){const o=Pr(),a=qo(),s=Rh(2);a.firstUpdatePass&&it(a,n,s,i),r!==tl&&Tm(o,s,r)&&mi(a,a.data[Du()],o,o[11],n,o[s+1]=function Gr(n,r){return null==n||("string"==typeof r?n+=r:"object"==typeof n&&(n=at(Gu(n)))),n}(r,e),i,s)}function Ve(n,r,e,i){const o=qo(),a=Rh(2);o.firstUpdatePass&&it(o,null,a,i);const s=Pr();if(e!==tl&&Tm(s,a,e)){const l=o.data[Du()];if(fo(l,i)&&!We(o,a)){let d=i?l.classesWithoutHost:l.stylesWithoutHost;null!==d&&(e=Ee(d,e||"")),tP(o,l,s,e,i)}else!function Ft(n,r,e,i,o,a,s,l){o===tl&&(o=Ts);let d=0,f=0,C=0=n.expandoStartIndex}function it(n,r,e,i){const o=n.data;if(null===o[e+1]){const a=o[Du()],s=We(n,e);fo(a,i)&&null===r&&!s&&(r=!1),r=function ft(n,r,e,i){const o=H0(n);let a=i?r.residualClasses:r.residualStyles;if(null===o)0===(i?r.classBindings:r.styleBindings)&&(e=Rn(e=Yt(null,n,r,e,i),r.attrs,i),a=null);else{const s=r.directiveStylingLast;if(-1===s||n[s]!==o)if(e=Yt(o,n,r,e,i),null===a){let d=function Ut(n,r,e){const i=e?r.classBindings:r.styleBindings;if(0!==av(i))return n[O_(i)]}(n,r,i);void 0!==d&&Array.isArray(d)&&(d=Yt(null,n,r,d[1],i),d=Rn(d,r.attrs,i),function kt(n,r,e,i){n[O_(e?r.classBindings:r.styleBindings)]=i}(n,r,i,d))}else a=function dn(n,r,e){let i;const o=r.directiveEnd;for(let a=1+r.directiveStylingLast;a0)&&(f=!0)}else C=e;if(o)if(0!==d){const T=O_(n[l+1]);n[i+1]=cx(T,l),0!==T&&(n[T+1]=OM(n[T+1],i)),n[l+1]=function XE(n,r){return 131071&n|r<<17}(n[l+1],i)}else n[i+1]=cx(l,0),0!==l&&(n[l+1]=OM(n[l+1],i)),l=i;else n[i+1]=cx(d,0),0===l?l=i:n[d+1]=OM(n[d+1],i),d=i;f&&(n[i+1]=PM(n[i+1])),eR(n,C,i,!0),eR(n,C,i,!1),function Xv(n,r,e,i,o){const a=o?n.residualClasses:n.residualStyles;null!=a&&"string"==typeof r&&a0(a,r)>=0&&(e[i+1]=kM(e[i+1]))}(r,C,n,i,a),s=cx(l,d),a?r.classBindings=s:r.styleBindings=s}(o,a,r,e,s,i)}}function Yt(n,r,e,i,o){let a=null;const s=e.directiveEnd;let l=e.directiveStylingLast;for(-1===l?l=e.directiveStart:l++;l0;){const d=n[o],f=Array.isArray(d),C=f?d[1]:d,M=null===C;let T=e[o+1];T===tl&&(T=M?Ts:void 0);let F=M?Q1(T,i):C===i?T:void 0;if(f&&!Li(F)&&(F=Q1(d,i)),Li(F)&&(l=F,s))return l;const pe=n[o+1];o=s?O_(pe):av(pe)}if(null!==r){let d=a?r.residualClasses:r.residualStyles;null!=d&&(l=Q1(d,i))}return l}function Li(n){return void 0!==n}function fo(n,r){return 0!=(n.flags&(r?16:32))}function L(n,r=""){const e=Pr(),i=qo(),o=n+22,a=i.firstCreatePass?Py(i,o,1,r,null):i.data[o],s=e[o]=vM(e[11],r);tx(i,e,s,a),Qc(a,!1)}function Xe(n){return Be("",n,""),Xe}function Be(n,r,e){const i=Pr(),o=gx(i,n,r,e);return o!==tl&&pb(i,Du(),o),Be}function Sr(n,r,e,i,o){const a=Pr(),s=_x(a,n,r,e,i,o);return s!==tl&&pb(a,Du(),s),Sr}function Ar(n,r,e,i,o,a,s){const l=Pr(),d=function vx(n,r,e,i,o,a,s,l){const f=eP(n,df(),e,o,s);return Rh(3),f?r+Rt(e)+i+Rt(o)+a+Rt(s)+l:tl}(l,n,r,e,i,o,a,s);return d!==tl&&pb(l,Du(),d),Ar}function Hs(n,r,e){Ve(Nh,he,gx(Pr(),n,r,e),!0)}function so(n,r,e){const i=Pr();return Tm(i,vm(),r)&&ui(qo(),Kl(),i,n,r,i[11],e,!0),so}function ir(n,r,e){const i=Pr();if(Tm(i,vm(),r)){const a=qo(),s=Kl();ui(a,s,i,n,r,E_(H0(a.data),s,i),e,!0)}return ir}const Cr=void 0;var Bo=["en",[["a","p"],["AM","PM"],Cr],[["AM","PM"],Cr,Cr],[["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"]],Cr,[["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"]],Cr,[["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}",Cr,"{1} 'at' {0}",Cr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function ps(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let bo={};function Da(n){const r=function lA(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=Ks(r);if(e)return e;const i=r.split("-")[0];if(e=Ks(i),e)return e;if("en"===i)return Bo;throw new ht(701,!1)}function Ks(n){return n in bo||(bo[n]=zs.ng&&zs.ng.common&&zs.ng.common.locales&&zs.ng.common.locales[n]),bo[n]}var Pa=(()=>((Pa=Pa||{})[Pa.LocaleId=0]="LocaleId",Pa[Pa.DayPeriodsFormat=1]="DayPeriodsFormat",Pa[Pa.DayPeriodsStandalone=2]="DayPeriodsStandalone",Pa[Pa.DaysFormat=3]="DaysFormat",Pa[Pa.DaysStandalone=4]="DaysStandalone",Pa[Pa.MonthsFormat=5]="MonthsFormat",Pa[Pa.MonthsStandalone=6]="MonthsStandalone",Pa[Pa.Eras=7]="Eras",Pa[Pa.FirstDayOfWeek=8]="FirstDayOfWeek",Pa[Pa.WeekendRange=9]="WeekendRange",Pa[Pa.DateFormat=10]="DateFormat",Pa[Pa.TimeFormat=11]="TimeFormat",Pa[Pa.DateTimeFormat=12]="DateTimeFormat",Pa[Pa.NumberSymbols=13]="NumberSymbols",Pa[Pa.NumberFormats=14]="NumberFormats",Pa[Pa.CurrencyCode=15]="CurrencyCode",Pa[Pa.CurrencySymbol=16]="CurrencySymbol",Pa[Pa.CurrencyName=17]="CurrencyName",Pa[Pa.Currencies=18]="Currencies",Pa[Pa.Directionality=19]="Directionality",Pa[Pa.PluralCase=20]="PluralCase",Pa[Pa.ExtraData=21]="ExtraData",Pa))();const hg=["zero","one","two","few","many"],Sn="en-US",Ci={marker:"element"},_i={marker:"ICU"};var bi=(()=>((bi=bi||{})[bi.SHIFT=2]="SHIFT",bi[bi.APPEND_EAGERLY=1]="APPEND_EAGERLY",bi[bi.COMMENT=2]="COMMENT",bi))();let Yr=Sn;function da(n){(function Wr(n,r){null==n&&Ko(r,n,null,"!=")})(n,"Expected localeId to be defined"),"string"==typeof n&&(Yr=n.toLowerCase().replace(/_/g,"-"))}function ua(n,r,e){const i=r.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?qd(n,0,e):Ji(e[o])}function mo(n,r,e,i,o){const a=r.insertBeforeIndex;if(Array.isArray(a)){let s=i,l=null;if(3&r.type||(l=s,s=o),null!==s&&0==(2&r.flags))for(let d=1;d1)for(let e=n.length-2;e>=0;e--){const i=n[e];ts(i)||ul(i,r)&&null===ws(i)&&ns(i,r.index)}}function ts(n){return!(64&n.type)}function ul(n,r){return ts(r)||n.index>r.index}function ws(n){const r=n.insertBeforeIndex;return Array.isArray(r)?r[0]:r}function ns(n,r){const e=n.insertBeforeIndex;Array.isArray(e)?e[0]=r:(fD(ua,mo),n.insertBeforeIndex=r)}function Jc(n,r){const e=n.data[r];return null===e||"string"==typeof e?null:e.hasOwnProperty("currentCaseLViewIndex")?e:e.value}function em(n,r,e){const i=VM(n,e,64,null,null);return Xa(r,i),i}function Dm(n,r){const e=r[n.currentCaseLViewIndex];return null===e?e:e<0?~e:e}function xx(n){return n>>>17}function Mx(n){return(131070&n)>>>1}let F_=0,OI=0;function RQ(n,r,e,i){const o=e[11];let s,a=null;for(let l=0;l>>1,e),null,null,F,pe,null)}else switch(d){case _i:const f=r[++l],C=r[++l];null===e[C]&&sh(e[C]=XC(o,f),e);break;case Ci:const M=r[++l],T=r[++l];null===e[T]&&sh(e[T]=JC(o,M,null),e)}}}function BQ(n,r,e,i,o){for(let a=0;a>>2;switch(3&C){case 1:const T=e[++f],F=e[++f],pe=n.data[M];"string"==typeof pe?px(r[11],r[M],null,pe,T,d,F):ui(n,pe,r,T,d,r[11],F,!1);break;case 0:const ce=r[M];null!==ce&&cD(r[11],ce,d);break;case 2:p_e(n,Jc(n,M),r,d);break;case 3:LQ(n,Jc(n,M),i,r)}}}}else{const d=e[a+1];if(d>0&&3==(3&d)){const C=Jc(n,d>>>2);r[C.currentCaseLViewIndex]<0&&LQ(n,C,i,r)}}a+=l}}function LQ(n,r,e,i){let o=i[r.currentCaseLViewIndex];if(null!==o){let a=F_;o<0&&(o=i[r.currentCaseLViewIndex]=~o,a=-1),BQ(n,i,r.update[o],e,a)}}function p_e(n,r,e,i){const o=function h_e(n,r){let e=n.cases.indexOf(r);if(-1===e)switch(n.type){case 1:{const i=function cA(n,r){const e=function cd(n){return Da(n)[Pa.PluralCase]}(r)(parseInt(n,10)),i=hg[e];return void 0!==i?i:"other"}(r,function co(){return Yr}());e=n.cases.indexOf(i),-1===e&&"other"!==i&&(e=n.cases.indexOf("other"));break}case 0:e=n.cases.indexOf("other")}return-1===e?null:e}(r,i);if(Dm(r,e)!==o&&(NQ(n,r,e),e[r.currentCaseLViewIndex]=null===o?null:~o,null!==o)){const s=e[r.anchorIdx];s&&RQ(n,r.create[o],e,s)}}function NQ(n,r,e){let i=Dm(r,e);if(null!==i){const o=r.remove[i];for(let a=0;a0){const l=Ls(s,e);null!==l&&xh(e[11],l)}else NQ(n,Jc(n,~s),e)}}}function f_e(){const n=[];let e,i,r=-1;function a(l,d){r=0;const f=Dm(l,d);i=null!==f?l.remove[f]:Ts}function s(){if(r0?e[l]:(n.push(r,i),a(e[1].data[~l],e),s())}return 0===n.length?null:(i=n.pop(),r=n.pop(),s())}return function o(l,d){for(e=d;n.length;)n.pop();return a(l.value,d),s}}const rR=/\ufffd(\d+):?\d*\ufffd/gi,g_e=/\ufffd(\d+)\ufffd/,VQ=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,v_e=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,b_e=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,y_e=/\uE500/g;function UQ(n,r,e,i,o,a,s){const l=Oy(n,i,1,null);let d=l<e.length&&e.push(d)}return{type:i,mainBinding:o,cases:r,values:e}}function E7(n){if(!n)return[];let r=0;const e=[],i=[],o=/[{}]/g;let a;for(o.lastIndex=0;a=o.exec(n);){const l=a.index;if("}"==a[0]){if(e.pop(),0==e.length){const d=n.substring(r,l);VQ.test(d)?i.push(D_e(d)):i.push(d),r=l+1}}else{if(0==e.length){const d=n.substring(r,l);i.push(d),r=l+1}e.push("{")}}const s=n.substring(r);return i.push(s),i}function P_e(n,r,e,i,o,a,s,l){const d=[],f=[],C=[];r.cases.push(a),r.create.push(d),r.remove.push(f),r.update.push(C);const T=nb(zC()).getInertBodyElement(s),F=Se(T)||T;return F?YQ(n,r,e,i,d,f,C,F,o,l,0):0}function YQ(n,r,e,i,o,a,s,l,d,f,C){let M=0,T=l.firstChild;for(;T;){const F=Oy(n,e,1,null);switch(T.nodeType){case Node.ELEMENT_NODE:const pe=T,ce=pe.tagName.toLowerCase();if(xm.hasOwnProperty(ce)){I7(o,Ci,ce,d,F),n.data[F]=ce;const Ge=pe.attributes;for(let lt=0;lt>>bi.SHIFT;let M=n[C];null===M&&(M=n[C]=d?o.createComment(l):vM(o,l)),f&&null!==e&&lb(o,e,M,i,!1)}})(o,d.create,C,l&&8&l.type?o[l.index]:null),_u(!0)}function Xg(n,r,e){QQ(n,r,e),function KQ(){_u(!1)}()}function II(n){return function c_e(n){n&&(F_|=1<0){const i=n.data[e];BQ(n,r,Array.isArray(i)?i:i.update,df()-OI-1,F_)}F_=0,OI=0}(qo(),Pr(),n+22)}function F7(n,r,e,i,o){if(n=an(n),Array.isArray(n))for(let a=0;a>20;if(rp(n)||!n.multi){const F=new Rg(d,o,U),pe=B7(l,r,o?C:C+T,M);-1===pe?(o0(ig(f,s),a,l),R7(a,n,r.length),r.push(l),f.directiveStart++,f.directiveEnd++,o&&(f.providerIndexes+=1048576),e.push(F),s.push(F)):(e[pe]=F,s[pe]=F)}else{const F=B7(l,r,C+T,M),pe=B7(l,r,C,C+T),ce=F>=0&&e[F],fe=pe>=0&&e[pe];if(o&&!fe||!o&&!ce){o0(ig(f,s),a,l);const Pe=function W_e(n,r,e,i,o){const a=new Rg(n,e,U);return a.multi=[],a.index=r,a.componentProviders=0,qQ(a,o,i&&!e),a}(o?G_e:Y_e,e.length,o,i,d);!o&&fe&&(e[pe].providerFactory=Pe),R7(a,n,r.length,0),r.push(l),f.directiveStart++,f.directiveEnd++,o&&(f.providerIndexes+=1048576),e.push(Pe),s.push(Pe)}else R7(a,n,F>-1?F:pe,qQ(e[o?pe:F],d,!o&&i));!o&&i&&fe&&e[pe].componentProviders++}}}function R7(n,r,e,i){const o=rp(r),a=function ob(n){return!!n.useClass}(r);if(o||a){const d=(a?an(r.useClass):r).prototype.ngOnDestroy;if(d){const f=n.destroyHooks||(n.destroyHooks=[]);if(!o&&r.multi){const C=f.indexOf(e);-1===C?f.push(e,[i,d]):f[C+1].push(i,d)}else f.push(e,d)}}}function qQ(n,r,e){return e&&n.componentProviders++,n.multi.push(r)-1}function B7(n,r,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function $_e(n,r,e){const i=qo();if(i.firstCreatePass){const o=fd(n);F7(e,i.data,i.blueprint,o,!0),F7(r,i.data,i.blueprint,o,!1)}}(i,o?o(n):n,r)}}class KM{}class XQ{}class JQ extends KM{constructor(r,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new YM(this);const i=Ll(r);this._bootstrapComponents=T_(i.bootstrap),this._r3Injector=vD(r,e,[{provide:KM,useValue:this},{provide:$h,useValue:this.componentFactoryResolver}],at(r),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(r)}get injector(){return this._r3Injector}destroy(){const r=this._r3Injector;!r.destroyed&&r.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(r){this.destroyCbs.push(r)}}class N7 extends XQ{constructor(r){super(),this.moduleType=r}create(r){return new JQ(this.moduleType,r)}}class K_e extends KM{constructor(r,e,i){super(),this.componentFactoryResolver=new YM(this),this.instance=null;const o=new _y([...r,{provide:KM,useValue:this},{provide:$h,useValue:this.componentFactoryResolver}],e||tv(),i,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(r){this.injector.onDestroy(r)}}function aR(n,r,e=null){return new K_e(n,r,e).injector}let q_e=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=Vd(0,e.type),o=i.length>0?aR([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,o)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=Dn({token:n,providedIn:"environment",factory:()=>new n(en(Qg))}),n})();function ZQ(n){n.getStandaloneInjector=r=>r.get(q_e).getOrCreateStandaloneInjector(n)}function Er(n,r,e){const i=Wd()+n,o=Pr();return o[i]===tl?sv(o,i,e?r.call(e):r()):Sa(o,i)}function ri(n,r,e,i){return sK(Pr(),Wd(),n,r,e,i)}function eo(n,r,e,i,o){return lK(Pr(),Wd(),n,r,e,i,o)}function _l(n,r,e,i,o,a){return cK(Pr(),Wd(),n,r,e,i,o,a)}function Vp(n,r,e,i,o,a,s){return function dK(n,r,e,i,o,a,s,l,d){const f=r+e;return g0(n,f,o,a,s,l)?sv(n,f+4,d?i.call(d,o,a,s,l):i(o,a,s,l)):FI(n,f+4)}(Pr(),Wd(),n,r,e,i,o,a,s)}function V7(n,r,e,i,o,a,s,l){const d=Wd()+n,f=Pr(),C=g0(f,d,e,i,o,a);return Tm(f,d+4,s)||C?sv(f,d+5,l?r.call(l,e,i,o,a,s):r(e,i,o,a,s)):Sa(f,d+5)}function sR(n,r,e,i,o,a,s,l,d,f){const C=Wd()+n,M=Pr();let T=g0(M,C,e,i,o,a);return eP(M,C+4,s,l,d)||T?sv(M,C+7,f?r.call(f,e,i,o,a,s,l,d):r(e,i,o,a,s,l,d)):Sa(M,C+7)}function FI(n,r){const e=n[r];return e===tl?void 0:e}function sK(n,r,e,i,o,a){const s=r+e;return Tm(n,s,o)?sv(n,s+1,a?i.call(a,o):i(o)):FI(n,s+1)}function lK(n,r,e,i,o,a,s){const l=r+e;return lv(n,l,o,a)?sv(n,l+2,s?i.call(s,o,a):i(o,a)):FI(n,l+2)}function cK(n,r,e,i,o,a,s,l){const d=r+e;return eP(n,d,o,a,s)?sv(n,d+3,l?i.call(l,o,a,s):i(o,a,s)):FI(n,d+3)}function D(n,r){const e=qo();let i;const o=n+22;e.firstCreatePass?(i=function s0e(n,r){if(r)for(let e=r.length-1;e>=0;e--){const i=r[e];if(n===i.name)return i}}(r,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(o,i.onDestroy)):i=e.data[o];const a=i.factory||(i.factory=gp(i.type)),s=Gd(U);try{const l=Bh(!1),d=a();return Bh(l),function W5(n,r,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),r[e]=i}(e,Pr(),o,d),d}finally{Gd(s)}}function B(n,r,e){const i=n+22,o=Pr(),a=vp(o,i);return RI(o,i)?sK(o,Wd(),r,a.transform,e,a):a.transform(e)}function Zn(n,r,e,i){const o=n+22,a=Pr(),s=vp(a,o);return RI(a,o)?lK(a,Wd(),r,s.transform,e,i,s):s.transform(e,i)}function fg(n,r,e,i,o){const a=n+22,s=Pr(),l=vp(s,a);return RI(s,a)?cK(s,Wd(),r,l.transform,e,i,o,l):l.transform(e,i,o)}function RI(n,r){return n[1].data[r].pure}function U7(n){return r=>{setTimeout(n,void 0,r)}}const Cn=class d0e extends Fe{constructor(r=!1){super(),this.__isAsync=r}emit(r){super.next(r)}subscribe(r,e,i){let o=r,a=e||(()=>null),s=i;if(r&&"object"==typeof r){var l,d,f;const M=r;o=null===(l=M.next)||void 0===l?void 0:l.bind(M),a=null===(d=M.error)||void 0===d?void 0:d.bind(M),s=null===(f=M.complete)||void 0===f?void 0:f.bind(M)}this.__isAsync&&(a=U7(a),o&&(o=U7(o)),s&&(s=U7(s)));const C=super.subscribe({next:o,error:a,complete:s});return r instanceof X&&r.add(C),C}};function u0e(){return this._results[aA()]()}class uv{constructor(r=!1){this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=aA(),i=uv.prototype;i[e]||(i[e]=u0e)}get changes(){return this._changes||(this._changes=new Cn)}get(r){return this._results[r]}map(r){return this._results.map(r)}filter(r){return this._results.filter(r)}find(r){return this._results.find(r)}reduce(r,e){return this._results.reduce(r,e)}forEach(r){this._results.forEach(r)}some(r){return this._results.some(r)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(r,e){const i=this;i.dirty=!1;const o=Lh(r);(this._changesDetected=!function Hw(n,r,e){if(n.length!==r.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=f0e,n})();const p0e=Na,h0e=class extends p0e{constructor(r,e,i){super(),this._declarationLView=r,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(r,e){const i=this._declarationTContainer.tViews,o=HM(this._declarationLView,i,r,16,null,i.declTNode,null,null,null,null,e||null);o[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(o[19]=s.createEmbeddedView(i)),UM(i,o,r),new $M(o)}};function f0e(){return lR(Fl(),Pr())}function lR(n,r){return 4&n.type?new h0e(r,n,vy(n,r)):null}let ac=(()=>{class n{}return n.__NG_ELEMENT_ID__=m0e,n})();function m0e(){return fK(Fl(),Pr())}const g0e=ac,pK=class extends g0e{constructor(r,e,i){super(),this._lContainer=r,this._hostTNode=e,this._hostLView=i}get element(){return vy(this._hostTNode,this._hostLView)}get injector(){return new Qe(this._hostTNode,this._hostLView)}get parentInjector(){const r=Bp(this._hostTNode,this._hostLView);if(yp(r)){const e=ou(r,this._hostLView),i=xd(r);return new Qe(e[1].data[i+8],e)}return new Qe(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(r){const e=hK(this._lContainer);return null!==e&&e[r]||null}get length(){return this._lContainer.length-10}createEmbeddedView(r,e,i){let o,a;"number"==typeof i?o=i:null!=i&&(o=i.index,a=i.injector);const s=r.createEmbeddedView(e||{},a);return this.insert(s,o),s}createComponent(r,e,i,o,a){const s=r&&!Bv(r);let l;if(s)l=e;else{const M=e||{};l=M.index,i=M.injector,o=M.projectableNodes,a=M.environmentInjector||M.ngModuleRef}const d=s?r:new GM(Ya(r)),f=i||this.parentInjector;if(!a&&null==d.ngModule){const T=(s?f:this.parentInjector).get(Qg,null);T&&(a=T)}const C=d.create(f,o,void 0,a);return this.insert(C.hostView,l),C}insert(r,e){const i=r._lView,o=i[1];if(function fn(n){return Zs(n[3])}(i)){const C=this.indexOf(r);if(-1!==C)this.detach(C);else{const M=i[3],T=new pK(M,M[6],M[3]);T.detach(T.indexOf(r))}}const a=this._adjustIndex(e),s=this._lContainer;!function Gv(n,r,e,i){const o=10+i,a=e.length;i>0&&(e[o-1][4]=r),i0)i.push(s[l/2]);else{const f=a[l+1],C=r[-d];for(let M=10;M({bindingPropertyName:n})),lP=ta("HostListener",(n,r)=>({eventName:n,args:r}));function dR(...n){}const cP=new Pi("Application Initializer");let uR=(()=>{class n{constructor(e){this.appInits=e,this.resolve=dR,this.reject=dR,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{a.subscribe({complete:l,error:d})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(en(cP,8))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const dP=new Pi("AppId",{providedIn:"root",factory:function NK(){return`${J7()}${J7()}${J7()}`}});function J7(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const HK=new Pi("Platform Initializer"),v0=new Pi("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),VK=new Pi("appBootstrapListener"),Cu=new Pi("AnimationModuleType");let Y0e=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const mg=new Pi("LocaleId",{providedIn:"root",factory:()=>cc(mg,na.Optional|na.SkipSelf)||function G0e(){return typeof $localize<"u"&&$localize.locale||Sn}()}),W0e=new Pi("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Q0e{constructor(r,e){this.ngModuleFactory=r,this.componentFactories=e}}let Z7=(()=>{class n{compileModuleSync(e){return new N7(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),a=T_(Ll(e).declarations).reduce((s,l)=>{const d=Ya(l);return d&&s.push(new GM(d)),s},[]);return new Q0e(i,a)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const X0e=(()=>Promise.resolve(0))();function e9(n){typeof Zone>"u"?X0e.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Zo{constructor({enableLongStackTrace:r=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Cn(!1),this.onMicrotaskEmpty=new Cn(!1),this.onStable=new Cn(!1),this.onError=new Cn(!1),typeof Zone>"u")throw new ht(908,!1);Zone.assertZonePatched();const o=this;if(o._nesting=0,o._outer=o._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const a=Zone.AsyncStackTaggingZoneSpec;o._inner=o._inner.fork(new a("Angular"))}Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function J0e(){let n=zs.requestAnimationFrame,r=zs.cancelAnimationFrame;if(typeof Zone<"u"&&n&&r){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function tve(n){const r=()=>{!function eve(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(zs,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,n9(n),n.isCheckStableRunning=!0,t9(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),n9(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,a,s,l)=>{try{return jK(n),e.invokeTask(o,a,s,l)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||n.shouldCoalesceRunChangeDetection)&&r(),$K(n)}},onInvoke:(e,i,o,a,s,l,d)=>{try{return jK(n),e.invoke(o,a,s,l,d)}finally{n.shouldCoalesceRunChangeDetection&&r(),$K(n)}},onHasTask:(e,i,o,a)=>{e.hasTask(o,a),i===o&&("microTask"==a.change?(n._hasPendingMicrotasks=a.microTask,n9(n),t9(n)):"macroTask"==a.change&&(n.hasPendingMacrotasks=a.macroTask))},onHandleError:(e,i,o,a)=>(e.handleError(o,a),n.runOutsideAngular(()=>n.onError.emit(a)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Zo.isInAngularZone())throw new ht(909,!1)}static assertNotInAngularZone(){if(Zo.isInAngularZone())throw new ht(909,!1)}run(r,e,i){return this._inner.run(r,e,i)}runTask(r,e,i,o){const a=this._inner,s=a.scheduleEventTask("NgZoneEvent: "+o,r,Z0e,dR,dR);try{return a.runTask(s,e,i)}finally{a.cancelTask(s)}}runGuarded(r,e,i){return this._inner.runGuarded(r,e,i)}runOutsideAngular(r){return this._outer.run(r)}}const Z0e={};function t9(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 n9(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function jK(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function $K(n){n._nesting--,t9(n)}class nve{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Cn,this.onMicrotaskEmpty=new Cn,this.onStable=new Cn,this.onError=new Cn}run(r,e,i){return r.apply(e,i)}runGuarded(r,e,i){return r.apply(e,i)}runOutsideAngular(r){return r()}runTask(r,e,i,o){return r.apply(e,i)}}const YK=new Pi(""),pR=new Pi("");let o9,i9=(()=>{class n{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,o9||(function ive(n){o9=n}(o),o.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:()=>{Zo.assertNotInAngularZone(),e9(()=>{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())e9(()=>{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,o){let a=-1;i&&i>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==a),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:a,updateCb:o})}whenStable(e,i,o){if(o&&!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,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}}return n.\u0275fac=function(e){return new(e||n)(en(Zo),en(r9),en(pR))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),r9=(()=>{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){var o,a;return null!==(o=null===(a=o9)||void 0===a?void 0:a.findTestabilityInTree(this,e,i))&&void 0!==o?o:null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Sx=null;const GK=new Pi("AllowMultipleToken"),a9=new Pi("PlatformDestroyListeners");class WK{constructor(r,e){this.name=r,this.token=e}}function KK(n,r,e=[]){const i=`Platform: ${r}`,o=new Pi(i);return(a=[])=>{let s=s9();if(!s||s.injector.get(GK,!1)){const l=[...e,...a,{provide:o,useValue:!0}];n?n(l):function ave(n){if(Sx&&!Sx.get(GK,!1))throw new ht(400,!1);Sx=n;const r=n.get(XK);(function QK(n){const r=n.get(HK,null);r&&r.forEach(e=>e())})(n)}(function qK(n=[],r){return ql.create({name:r,providers:[{provide:qf,useValue:"platform"},{provide:a9,useValue:new Set([()=>Sx=null])},...n]})}(l,i))}return function lve(n){const r=s9();if(!r)throw new ht(401,!1);return r}()}}function s9(){var n,r;return null!==(n=null===(r=Sx)||void 0===r?void 0:r.get(XK))&&void 0!==n?n:null}let XK=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function ZK(n,r){let e;return e="noop"===n?new nve:("zone.js"===n?void 0:n)||new Zo(r),e}(i?.ngZone,function JK(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),a=[{provide:Zo,useValue:o}];return o.run(()=>{const s=ql.create({providers:a,parent:this.injector,name:e.moduleType.name}),l=e.create(s),d=l.injector.get(p0,null);if(!d)throw new ht(402,!1);return o.runOutsideAngular(()=>{const f=o.onError.subscribe({next:C=>{d.handleError(C)}});l.onDestroy(()=>{hR(this._modules,l),f.unsubscribe()})}),function eq(n,r,e){try{const i=e();return WM(i)?i.catch(o=>{throw r.runOutsideAngular(()=>n.handleError(o)),o}):i}catch(i){throw r.runOutsideAngular(()=>n.handleError(i)),i}}(d,o,()=>{const f=l.injector.get(uR);return f.runInitializers(),f.donePromise.then(()=>(da(l.injector.get(mg,Sn)||Sn),this._moduleDoBootstrap(l),l))})})}bootstrapModule(e,i=[]){const o=tq({},i);return function rve(n,r,e){const i=new N7(e);return Promise.resolve(i)}(0,0,e).then(a=>this.bootstrapModuleFactory(a,o))}_moduleDoBootstrap(e){const i=e.injector.get(pv);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new ht(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 ht(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(a9,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)(en(ql))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function tq(n,r){return Array.isArray(r)?r.reduce(tq,n):{...n,...r}}let pv=(()=>{class n{constructor(e,i,o){this._zone=e,this._injector=i,this._exceptionHandler=o,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 a=new ze(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),s=new ze(l=>{let d;this._zone.runOutsideAngular(()=>{d=this._zone.onStable.subscribe(()=>{Zo.assertNotInAngularZone(),e9(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const f=this._zone.onUnstable.subscribe(()=>{Zo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{d.unsubscribe(),f.unsubscribe()}});this.isStable=or(a,s.pipe(Xn()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof VT;if(!this._injector.get(uR).done)throw!o&&function Lu(n){const r=Ya(n)||js(n)||iu(n);return null!==r&&r.standalone}(e),new ht(405,false);let s;s=o?e:this._injector.get($h).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const l=function ove(n){return n.isBoundToModule}(s)?void 0:this._injector.get(KM),f=s.create(ql.NULL,[],i||s.selector,l),C=f.location.nativeElement,M=f.injector.get(YK,null);return M?.registerApplication(C),f.onDestroy(()=>{this.detachView(f.hostView),hR(this.components,f),M?.unregisterApplication(C)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new ht(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;hR(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(VK,[]).concat(this._bootstrapListeners).forEach(o=>o(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),()=>hR(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ht(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)(en(Zo),en(Qg),en(p0))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function hR(n,r){const e=n.indexOf(r);e>-1&&n.splice(e,1)}let iq=!0,rq=!1;function fR(){return rq=!0,iq}let Go=(()=>{class n{}return n.__NG_ELEMENT_ID__=uve,n})();function uve(n){return function pve(n,r,e){if(hd(n)&&!e){const i=_c(n.index,r);return new $M(i,i)}return 47&n.type?new $M(r[16],r):null}(Fl(),Pr(),16==(16&n))}class lq{constructor(){}supports(r){return Ey(r)}create(r){return new vve(r)}}const _ve=(n,r)=>r;class vve{constructor(r){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=r||_ve}forEachItem(r){let e;for(e=this._itHead;null!==e;e=e._next)r(e)}forEachOperation(r){let e=this._itHead,i=this._removalsHead,o=0,a=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(o,l),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,l,s,o)),Object.is(e.item,l)||this._addIdentityChange(e,l)):(e=this._mismatch(e,l,s,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=r,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let r;for(r=this._previousItHead=this._itHead;null!==r;r=r._next)r._nextPrevious=r._next;for(r=this._additionsHead;null!==r;r=r._nextAdded)r.previousIndex=r.currentIndex;for(this._additionsHead=this._additionsTail=null,r=this._movesHead;null!==r;r=r._nextMoved)r.previousIndex=r.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(r,e,i,o){let a;return null===r?a=this._itTail:(a=r._prev,this._remove(r)),null!==(r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(r.item,e)||this._addIdentityChange(r,e),this._reinsertAfter(r,a,o)):null!==(r=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(r.item,e)||this._addIdentityChange(r,e),this._moveAfter(r,a,o)):r=this._addAfter(new bve(e,i),a,o),r}_verifyReinsertion(r,e,i,o){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==a?r=this._reinsertAfter(a,r._prev,o):r.currentIndex!=o&&(r.currentIndex=o,this._addToMoves(r,o)),r}_truncate(r){for(;null!==r;){const e=r._next;this._addToRemovals(this._unlink(r)),r=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(r,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(r);const o=r._prevRemoved,a=r._nextRemoved;return null===o?this._removalsHead=a:o._nextRemoved=a,null===a?this._removalsTail=o:a._prevRemoved=o,this._insertAfter(r,e,i),this._addToMoves(r,i),r}_moveAfter(r,e,i){return this._unlink(r),this._insertAfter(r,e,i),this._addToMoves(r,i),r}_addAfter(r,e,i){return this._insertAfter(r,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=r:this._additionsTail._nextAdded=r,r}_insertAfter(r,e,i){const o=null===e?this._itHead:e._next;return r._next=o,r._prev=e,null===o?this._itTail=r:o._prev=r,null===e?this._itHead=r:e._next=r,null===this._linkedRecords&&(this._linkedRecords=new cq),this._linkedRecords.put(r),r.currentIndex=i,r}_remove(r){return this._addToRemovals(this._unlink(r))}_unlink(r){null!==this._linkedRecords&&this._linkedRecords.remove(r);const e=r._prev,i=r._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,r}_addToMoves(r,e){return r.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=r:this._movesTail._nextMoved=r),r}_addToRemovals(r){return null===this._unlinkedRecords&&(this._unlinkedRecords=new cq),this._unlinkedRecords.put(r),r.currentIndex=null,r._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=r,r._prevRemoved=null):(r._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=r),r}_addIdentityChange(r,e){return r.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=r:this._identityChangesTail._nextIdentityChange=r,r}}class bve{constructor(r,e){this.item=r,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 yve{constructor(){this._head=null,this._tail=null}add(r){null===this._head?(this._head=this._tail=r,r._nextDup=null,r._prevDup=null):(this._tail._nextDup=r,r._prevDup=this._tail,r._nextDup=null,this._tail=r)}get(r,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,r))return i;return null}remove(r){const e=r._prevDup,i=r._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class cq{constructor(){this.map=new Map}put(r){const e=r.trackById;let i=this.map.get(e);i||(i=new yve,this.map.set(e,i)),i.add(r)}get(r,e){const o=this.map.get(r);return o?o.get(r,e):null}remove(r){const e=r.trackById;return this.map.get(e).remove(r)&&this.map.delete(e),r}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function dq(n,r,e){const i=n.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const a=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,a)}}),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(r,e){if(r){const i=r._prev;return e._next=r,e._prev=i,r._prev=e,i&&(i._next=e),r===this._mapHead&&(this._mapHead=e),this._appendAfter=r,r}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(r,e){if(this._records.has(r)){const o=this._records.get(r);this._maybeAddToChanges(o,e);const a=o._prev,s=o._next;return a&&(a._next=s),s&&(s._prev=a),o._next=null,o._prev=null,o}const i=new Ave(r);return this._records.set(r,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let r;for(this._previousMapHead=this._mapHead,r=this._previousMapHead;null!==r;r=r._next)r._nextPrevious=r._next;for(r=this._changesHead;null!==r;r=r._nextChanged)r.previousValue=r.currentValue;for(r=this._additionsHead;null!=r;r=r._nextAdded)r.previousValue=r.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(r,e){Object.is(e,r.currentValue)||(r.previousValue=r.currentValue,r.currentValue=e,this._addToChanges(r))}_addToAdditions(r){null===this._additionsHead?this._additionsHead=this._additionsTail=r:(this._additionsTail._nextAdded=r,this._additionsTail=r)}_addToChanges(r){null===this._changesHead?this._changesHead=this._changesTail=r:(this._changesTail._nextChanged=r,this._changesTail=r)}_forEach(r,e){r instanceof Map?r.forEach(e):Object.keys(r).forEach(i=>e(r[i],i))}}class Ave{constructor(r){this.key=r,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 pq(){return new By([new lq])}let By=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||pq()),deps:[[n,new bf,new rh]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new ht(901,!1)}}return n.\u0275prov=Dn({token:n,providedIn:"root",factory:pq}),n})();function hq(){return new XM([new uq])}let XM=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||hq()),deps:[[n,new bf,new rh]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new ht(901,!1)}}return n.\u0275prov=Dn({token:n,providedIn:"root",factory:hq}),n})();const Mve=KK(null,"core",[]);let Sve=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(en(pv))},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})();function uA(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}let _R=null;function Ly(){return _R}const Fa=new Pi("DocumentToken");let p9=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:function(){return function Ove(){return en(fq)}()},providedIn:"platform"}),n})();const kve=new Pi("Location Initialized");let fq=(()=>{class n extends p9{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ly().getBaseHref(this._doc)}onPopState(e){const i=Ly().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Ly().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,o){mq()?this._history.pushState(e,i,o):this.location.hash=o}replaceState(e,i,o){mq()?this._history.replaceState(e,i,o):this.location.hash=o}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)(en(Fa))},n.\u0275prov=Dn({token:n,factory:function(){return function Eve(){return new fq(en(Fa))}()},providedIn:"platform"}),n})();function mq(){return!!window.history.pushState}function h9(n,r){if(0==n.length)return r;if(0==r.length)return n;let e=0;return n.endsWith("/")&&e++,r.startsWith("/")&&e++,2==e?n+r.substring(1):1==e?n+r:n+"/"+r}function gq(n){const r=n.match(/#|\?|$/),e=r&&r.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function pA(n){return n&&"?"!==n[0]?"?"+n:n}let JM=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:function(){return cc(vq)},providedIn:"root"}),n})();const _q=new Pi("appBaseHref");let vq=(()=>{class n extends JM{constructor(e,i){var o,a,s;super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=null!==(o=null!==(a=i??this._platformLocation.getBaseHrefFromDOM())&&void 0!==a?a:null===(s=cc(Fa).location)||void 0===s?void 0:s.origin)&&void 0!==o?o:""}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 h9(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+pA(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,a){const s=this.prepareExternalUrl(o+pA(a));this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,a){const s=this.prepareExternalUrl(o+pA(a));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var i,o;null===(i=(o=this._platformLocation).historyGo)||void 0===i||i.call(o,e)}}return n.\u0275fac=function(e){return new(e||n)(en(p9),en(_q,8))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ive=(()=>{class n extends JM{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=h9(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,a){let s=this.prepareExternalUrl(o+pA(a));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,a){let s=this.prepareExternalUrl(o+pA(a));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var i,o;null===(i=(o=this._platformLocation).historyGo)||void 0===i||i.call(o,e)}}return n.\u0275fac=function(e){return new(e||n)(en(p9),en(_q,8))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),hA=(()=>{class n{constructor(e){this._subject=new Cn,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=gq(bq(i)),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){var e;null===(e=this._urlChangeSubscription)||void 0===e||e.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+pA(i))}normalize(e){return n.stripTrailingSlash(function Rve(n,r){return n&&r.startsWith(n)?r.substring(n.length):r}(this._baseHref,bq(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+pA(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+pA(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){var i,o;null===(i=(o=this._locationStrategy).historyGo)||void 0===i||i.call(o,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);var o;this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(null===(o=this._urlChangeSubscription)||void 0===o||o.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}}return n.normalizeQueryParams=pA,n.joinWithSlash=h9,n.stripTrailingSlash=gq,n.\u0275fac=function(e){return new(e||n)(en(JM))},n.\u0275prov=Dn({token:n,factory:function(){return function Fve(){return new hA(en(JM))}()},providedIn:"root"}),n})();function bq(n){return n.replace(/\/index.html$/,"")}const yq={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var b0=(()=>((b0=b0||{})[b0.Decimal=0]="Decimal",b0[b0.Percent=1]="Percent",b0[b0.Currency=2]="Currency",b0[b0.Scientific=3]="Scientific",b0))(),Mp=(()=>((Mp=Mp||{})[Mp.Format=0]="Format",Mp[Mp.Standalone=1]="Standalone",Mp))(),Ac=(()=>((Ac=Ac||{})[Ac.Narrow=0]="Narrow",Ac[Ac.Abbreviated=1]="Abbreviated",Ac[Ac.Wide=2]="Wide",Ac[Ac.Short=3]="Short",Ac))(),uh=(()=>((uh=uh||{})[uh.Short=0]="Short",uh[uh.Medium=1]="Medium",uh[uh.Long=2]="Long",uh[uh.Full=3]="Full",uh))(),vl=(()=>((vl=vl||{})[vl.Decimal=0]="Decimal",vl[vl.Group=1]="Group",vl[vl.List=2]="List",vl[vl.PercentSign=3]="PercentSign",vl[vl.PlusSign=4]="PlusSign",vl[vl.MinusSign=5]="MinusSign",vl[vl.Exponential=6]="Exponential",vl[vl.SuperscriptingExponent=7]="SuperscriptingExponent",vl[vl.PerMille=8]="PerMille",vl[vl.Infinity=9]="Infinity",vl[vl.NaN=10]="NaN",vl[vl.TimeSeparator=11]="TimeSeparator",vl[vl.CurrencyDecimal=12]="CurrencyDecimal",vl[vl.CurrencyGroup=13]="CurrencyGroup",vl))();function Cq(n,r,e){const i=Da(n),a=Zv([i[Pa.DayPeriodsFormat],i[Pa.DayPeriodsStandalone]],r);return Zv(a,e)}function Aq(n,r,e){const i=Da(n),a=Zv([i[Pa.DaysFormat],i[Pa.DaysStandalone]],r);return Zv(a,e)}function f9(n,r,e){const i=Da(n),a=Zv([i[Pa.MonthsFormat],i[Pa.MonthsStandalone]],r);return Zv(a,e)}function vR(n,r){return Zv(Da(n)[Pa.DateFormat],r)}function bR(n,r){return Zv(Da(n)[Pa.TimeFormat],r)}function yR(n,r){return Zv(Da(n)[Pa.DateTimeFormat],r)}function Jv(n,r){const e=Da(n),i=e[Pa.NumberSymbols][r];if(typeof i>"u"){if(r===vl.CurrencyDecimal)return e[Pa.NumberSymbols][vl.Decimal];if(r===vl.CurrencyGroup)return e[Pa.NumberSymbols][vl.Group]}return i}function m9(n,r){return Da(n)[Pa.NumberFormats][r]}function wq(n){if(!n[Pa.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[Pa.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Zv(n,r){for(let e=r;e>-1;e--)if(typeof n[e]<"u")return n[e];throw new Error("Locale data API: locale data undefined")}function g9(n){const[r,e]=n.split(":");return{hours:+r,minutes:+e}}const Yve=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,LI={},Gve=/((?:[^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 tm=(()=>((tm=tm||{})[tm.Short=0]="Short",tm[tm.ShortGMT=1]="ShortGMT",tm[tm.Long=2]="Long",tm[tm.Extended=3]="Extended",tm))(),Tl=(()=>((Tl=Tl||{})[Tl.FullYear=0]="FullYear",Tl[Tl.Month=1]="Month",Tl[Tl.Date=2]="Date",Tl[Tl.Hours=3]="Hours",Tl[Tl.Minutes=4]="Minutes",Tl[Tl.Seconds=5]="Seconds",Tl[Tl.FractionalSeconds=6]="FractionalSeconds",Tl[Tl.Day=7]="Day",Tl))(),wc=(()=>((wc=wc||{})[wc.DayPeriods=0]="DayPeriods",wc[wc.Days=1]="Days",wc[wc.Months=2]="Months",wc[wc.Eras=3]="Eras",wc))();function xq(n,r,e,i){let o=function t1e(n){if(Tq(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[o,a=1,s=1]=n.split("-").map(l=>+l);return CR(o,a-1,s)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(Yve))return function n1e(n){const r=new Date(0);let e=0,i=0;const o=n[8]?r.setUTCFullYear:r.setFullYear,a=n[8]?r.setUTCHours:r.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),o.call(r,Number(n[1]),Number(n[2])-1,Number(n[3]));const s=Number(n[4]||0)-e,l=Number(n[5]||0)-i,d=Number(n[6]||0),f=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return a.call(r,s,l,d,f),r}(i)}const r=new Date(n);if(!Tq(r))throw new Error(`Unable to convert "${n}" into a date`);return r}(n);r=fA(e,r)||r;let l,s=[];for(;r;){if(l=Gve.exec(r),!l){s.push(r);break}{s=s.concat(l.slice(1));const C=s.pop();if(!C)break;r=C}}let d=o.getTimezoneOffset();i&&(d=Sq(i,d),o=function e1e(n,r,e){const i=e?-1:1,o=n.getTimezoneOffset();return function Zve(n,r){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+r),n}(n,i*(Sq(r,o)-o))}(o,i,!0));let f="";return s.forEach(C=>{const M=function Jve(n){if(v9[n])return v9[n];let r;switch(n){case"G":case"GG":case"GGG":r=cp(wc.Eras,Ac.Abbreviated);break;case"GGGG":r=cp(wc.Eras,Ac.Wide);break;case"GGGGG":r=cp(wc.Eras,Ac.Narrow);break;case"y":r=Sf(Tl.FullYear,1,0,!1,!0);break;case"yy":r=Sf(Tl.FullYear,2,0,!0,!0);break;case"yyy":r=Sf(Tl.FullYear,3,0,!1,!0);break;case"yyyy":r=Sf(Tl.FullYear,4,0,!1,!0);break;case"Y":r=MR(1);break;case"YY":r=MR(2,!0);break;case"YYY":r=MR(3);break;case"YYYY":r=MR(4);break;case"M":case"L":r=Sf(Tl.Month,1,1);break;case"MM":case"LL":r=Sf(Tl.Month,2,1);break;case"MMM":r=cp(wc.Months,Ac.Abbreviated);break;case"MMMM":r=cp(wc.Months,Ac.Wide);break;case"MMMMM":r=cp(wc.Months,Ac.Narrow);break;case"LLL":r=cp(wc.Months,Ac.Abbreviated,Mp.Standalone);break;case"LLLL":r=cp(wc.Months,Ac.Wide,Mp.Standalone);break;case"LLLLL":r=cp(wc.Months,Ac.Narrow,Mp.Standalone);break;case"w":r=_9(1);break;case"ww":r=_9(2);break;case"W":r=_9(1,!0);break;case"d":r=Sf(Tl.Date,1);break;case"dd":r=Sf(Tl.Date,2);break;case"c":case"cc":r=Sf(Tl.Day,1);break;case"ccc":r=cp(wc.Days,Ac.Abbreviated,Mp.Standalone);break;case"cccc":r=cp(wc.Days,Ac.Wide,Mp.Standalone);break;case"ccccc":r=cp(wc.Days,Ac.Narrow,Mp.Standalone);break;case"cccccc":r=cp(wc.Days,Ac.Short,Mp.Standalone);break;case"E":case"EE":case"EEE":r=cp(wc.Days,Ac.Abbreviated);break;case"EEEE":r=cp(wc.Days,Ac.Wide);break;case"EEEEE":r=cp(wc.Days,Ac.Narrow);break;case"EEEEEE":r=cp(wc.Days,Ac.Short);break;case"a":case"aa":case"aaa":r=cp(wc.DayPeriods,Ac.Abbreviated);break;case"aaaa":r=cp(wc.DayPeriods,Ac.Wide);break;case"aaaaa":r=cp(wc.DayPeriods,Ac.Narrow);break;case"b":case"bb":case"bbb":r=cp(wc.DayPeriods,Ac.Abbreviated,Mp.Standalone,!0);break;case"bbbb":r=cp(wc.DayPeriods,Ac.Wide,Mp.Standalone,!0);break;case"bbbbb":r=cp(wc.DayPeriods,Ac.Narrow,Mp.Standalone,!0);break;case"B":case"BB":case"BBB":r=cp(wc.DayPeriods,Ac.Abbreviated,Mp.Format,!0);break;case"BBBB":r=cp(wc.DayPeriods,Ac.Wide,Mp.Format,!0);break;case"BBBBB":r=cp(wc.DayPeriods,Ac.Narrow,Mp.Format,!0);break;case"h":r=Sf(Tl.Hours,1,-12);break;case"hh":r=Sf(Tl.Hours,2,-12);break;case"H":r=Sf(Tl.Hours,1);break;case"HH":r=Sf(Tl.Hours,2);break;case"m":r=Sf(Tl.Minutes,1);break;case"mm":r=Sf(Tl.Minutes,2);break;case"s":r=Sf(Tl.Seconds,1);break;case"ss":r=Sf(Tl.Seconds,2);break;case"S":r=Sf(Tl.FractionalSeconds,1);break;case"SS":r=Sf(Tl.FractionalSeconds,2);break;case"SSS":r=Sf(Tl.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":r=wR(tm.Short);break;case"ZZZZZ":r=wR(tm.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":r=wR(tm.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":r=wR(tm.Long);break;default:return null}return v9[n]=r,r}(C);f+=M?M(o,e,d):"''"===C?"'":C.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),f}function CR(n,r,e){const i=new Date(0);return i.setFullYear(n,r,e),i.setHours(0,0,0),i}function fA(n,r){const e=function Bve(n){return Da(n)[Pa.LocaleId]}(n);if(LI[e]=LI[e]||{},LI[e][r])return LI[e][r];let i="";switch(r){case"shortDate":i=vR(n,uh.Short);break;case"mediumDate":i=vR(n,uh.Medium);break;case"longDate":i=vR(n,uh.Long);break;case"fullDate":i=vR(n,uh.Full);break;case"shortTime":i=bR(n,uh.Short);break;case"mediumTime":i=bR(n,uh.Medium);break;case"longTime":i=bR(n,uh.Long);break;case"fullTime":i=bR(n,uh.Full);break;case"short":const o=fA(n,"shortTime"),a=fA(n,"shortDate");i=AR(yR(n,uh.Short),[o,a]);break;case"medium":const s=fA(n,"mediumTime"),l=fA(n,"mediumDate");i=AR(yR(n,uh.Medium),[s,l]);break;case"long":const d=fA(n,"longTime"),f=fA(n,"longDate");i=AR(yR(n,uh.Long),[d,f]);break;case"full":const C=fA(n,"fullTime"),M=fA(n,"fullDate");i=AR(yR(n,uh.Full),[C,M])}return i&&(LI[e][r]=i),i}function AR(n,r){return r&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=r&&i in r?r[i]:e})),n}function mb(n,r,e="-",i,o){let a="";(n<0||o&&n<=0)&&(o?n=1-n:(n=-n,a=e));let s=String(n);for(;s.length0||l>-e)&&(l+=e),n===Tl.Hours)0===l&&-12===e&&(l=12);else if(n===Tl.FractionalSeconds)return function Wve(n,r){return mb(n,3).substring(0,r)}(l,r);const d=Jv(s,vl.MinusSign);return mb(l,r,d,i,o)}}function cp(n,r,e=Mp.Format,i=!1){return function(o,a){return function Kve(n,r,e,i,o,a){switch(e){case wc.Months:return f9(r,o,i)[n.getMonth()];case wc.Days:return Aq(r,o,i)[n.getDay()];case wc.DayPeriods:const s=n.getHours(),l=n.getMinutes();if(a){const f=function Vve(n){const r=Da(n);return wq(r),(r[Pa.ExtraData][2]||[]).map(i=>"string"==typeof i?g9(i):[g9(i[0]),g9(i[1])])}(r),C=function Uve(n,r,e){const i=Da(n);wq(i);const a=Zv([i[Pa.ExtraData][0],i[Pa.ExtraData][1]],r)||[];return Zv(a,e)||[]}(r,o,i),M=f.findIndex(T=>{if(Array.isArray(T)){const[F,pe]=T,ce=s>=F.hours&&l>=F.minutes,fe=s0?Math.floor(o/60):Math.ceil(o/60);switch(n){case tm.Short:return(o>=0?"+":"")+mb(s,2,a)+mb(Math.abs(o%60),2,a);case tm.ShortGMT:return"GMT"+(o>=0?"+":"")+mb(s,1,a);case tm.Long:return"GMT"+(o>=0?"+":"")+mb(s,2,a)+":"+mb(Math.abs(o%60),2,a);case tm.Extended:return 0===i?"Z":(o>=0?"+":"")+mb(s,2,a)+":"+mb(Math.abs(o%60),2,a);default:throw new Error(`Unknown zone width "${n}"`)}}}function Mq(n){return CR(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function _9(n,r=!1){return function(e,i){let o;if(r){const a=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();o=1+Math.floor((s+a)/7)}else{const a=Mq(e),s=function Xve(n){const r=CR(n,0,1).getDay();return CR(n,0,1+(r<=4?4:11)-r)}(a.getFullYear()),l=a.getTime()-s.getTime();o=1+Math.round(l/6048e5)}return mb(o,n,Jv(i,vl.MinusSign))}}function MR(n,r=!1){return function(e,i){return mb(Mq(e).getFullYear(),n,Jv(i,vl.MinusSign),r)}}const v9={};function Sq(n,r){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?r:e}function Tq(n){return n instanceof Date&&!isNaN(n.valueOf())}const i1e=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function y9(n,r,e,i,o,a,s=!1){let l="",d=!1;if(isFinite(n)){let f=function u1e(n){let i,o,a,s,l,r=Math.abs(n)+"",e=0;for((o=r.indexOf("."))>-1&&(r=r.replace(".","")),(a=r.search(/e/i))>0?(o<0&&(o=a),o+=+r.slice(a+1),r=r.substring(0,a)):o<0&&(o=r.length),a=0;"0"===r.charAt(a);a++);if(a===(l=r.length))i=[0],o=1;else{for(l--;"0"===r.charAt(l);)l--;for(o-=a,i=[],s=0;a<=l;a++,s++)i[s]=Number(r.charAt(a))}return o>22&&(i=i.splice(0,21),e=o-1,o=1),{digits:i,exponent:e,integerLen:o}}(n);s&&(f=function d1e(n){if(0===n.digits[0])return n;const r=n.digits.length-n.integerLen;return n.exponent?n.exponent+=2:(0===r?n.digits.push(0,0):1===r&&n.digits.push(0),n.integerLen+=2),n}(f));let C=r.minInt,M=r.minFrac,T=r.maxFrac;if(a){const Ne=a.match(i1e);if(null===Ne)throw new Error(`${a} is not a valid digit info`);const Ge=Ne[1],lt=Ne[3],Pt=Ne[5];null!=Ge&&(C=A9(Ge)),null!=lt&&(M=A9(lt)),null!=Pt?T=A9(Pt):null!=lt&&M>T&&(T=M)}!function p1e(n,r,e){if(r>e)throw new Error(`The minimum number of digits after fraction (${r}) is higher than the maximum (${e}).`);let i=n.digits,o=i.length-n.integerLen;const a=Math.min(Math.max(r,o),e);let s=a+n.integerLen,l=i[s];if(s>0){i.splice(Math.max(n.integerLen,s));for(let M=s;M=5)if(s-1<0){for(let M=0;M>s;M--)i.unshift(0),n.integerLen++;i.unshift(1),n.integerLen++}else i[s-1]++;for(;o=f?pe.pop():d=!1),T>=10?1:0},0);C&&(i.unshift(C),n.integerLen++)}(f,M,T);let F=f.digits,pe=f.integerLen;const ce=f.exponent;let fe=[];for(d=F.every(Ne=>!Ne);pe0?fe=F.splice(pe,F.length):(fe=F,F=[0]);const Pe=[];for(F.length>=r.lgSize&&Pe.unshift(F.splice(-r.lgSize,F.length).join(""));F.length>r.gSize;)Pe.unshift(F.splice(-r.gSize,F.length).join(""));F.length&&Pe.unshift(F.join("")),l=Pe.join(Jv(e,i)),fe.length&&(l+=Jv(e,o)+fe.join("")),ce&&(l+=Jv(e,vl.Exponential)+"+"+ce)}else l=Jv(e,vl.Infinity);return l=n<0&&!d?r.negPre+l+r.negSuf:r.posPre+l+r.posSuf,l}function C9(n,r="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=n.split(";"),o=i[0],a=i[1],s=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],l=s[0],d=s[1]||"";e.posPre=l.substring(0,l.indexOf("#"));for(let C=0;C{class n{constructor(e,i,o,a){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=o,this._renderer=a,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&&(Ey(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 ${at(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(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return n.\u0275fac=function(e){return new(e||n)(U(By),U(XM),U(gr),U(Wl))},n.\u0275dir=Wn({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class m1e{constructor(r,e,i,o){this.$implicit=r,this.ngForOf=e,this.index=i,this.count=o}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 Oo=(()=>{class n{constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,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((o,a,s)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new m1e(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===a?void 0:a);else if(null!==a){const l=i.get(a);i.move(l,s),Fq(l,o)}});for(let o=0,a=i.length;o{Fq(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(U(ac),U(Na),U(By))},n.\u0275dir=Wn({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function Fq(n,r){n.context.$implicit=r.item}let rr=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new _1e,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){Rq("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Rq("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)(U(ac),U(Na))},n.\u0275dir=Wn({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class _1e{constructor(){this.$implicit=null,this.ngIf=null}}function Rq(n,r){if(r&&!r.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${at(r)}'.`)}class x9{constructor(r,e){this._viewContainerRef=r,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(r){r&&!this._created?this.create():!r&&this._created&&this.destroy()}}let ph=(()=>{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,o){this.ngSwitch=o,o._addCase(),this._view=new x9(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(U(ac),U(Na),U(ph,9))},n.\u0275dir=Wn({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),DR=(()=>{class n{constructor(e,i,o){o._addDefault(new x9(e,i))}}return n.\u0275fac=function(e){return new(e||n)(U(ac),U(Na),U(ph,9))},n.\u0275dir=Wn({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),gg=(()=>{class n{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,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[o,a]=e.split("."),s=-1===o.indexOf("-")?void 0:Mm.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,a?`${i}${a}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,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)(U(gr),U(XM),U(Wl))},n.\u0275dir=Wn({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),nm=(()=>{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:o,ngTemplateOutletContext:a,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(o,a,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)(U(ac))},n.\u0275dir=Wn({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[vo]}),n})();function gb(n,r){return new ht(2100,!1)}class b1e{createSubscription(r,e){return r.subscribe({next:e,error:i=>{throw i}})}dispose(r){r.unsubscribe()}}class y1e{createSubscription(r,e){return r.then(e,i=>{throw i})}dispose(r){}}const C1e=new y1e,A1e=new b1e;let wo=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(WM(e))return C1e;if(Q5(e))return A1e;throw gb()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(U(Go,16))},n.\u0275pipe=Js({name:"async",type:n,pure:!1,standalone:!0}),n})();const T1e=new Pi("DATE_PIPE_DEFAULT_TIMEZONE");let lu=(()=>{class n{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",o,a){if(null==e||""===e||e!=e)return null;try{var s;return xq(e,i,a||this.locale,null!==(s=o??this.defaultTimezone)&&void 0!==s?s:void 0)}catch(l){throw gb()}}}return n.\u0275fac=function(e){return new(e||n)(U(mg,16),U(T1e,24))},n.\u0275pipe=Js({name:"date",type:n,pure:!0,standalone:!0}),n})(),HI=(()=>{class n{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=Lq}transform(e,i=Lq){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const o=this.differ.diff(e),a=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(s=>{this.keyValues.push(function E1e(n,r){return{key:n,value:r}}(s.key,s.currentValue))})),(o||a)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}}return n.\u0275fac=function(e){return new(e||n)(U(XM,16))},n.\u0275pipe=Js({name:"keyvalue",type:n,pure:!1,standalone:!0}),n})();function Lq(n,r){const e=n.key,i=r.key;if(e===i)return 0;if(void 0===e)return 1;if(void 0===i)return-1;if(null===e)return 1;if(null===i)return-1;if("string"==typeof e&&"string"==typeof i)return e{class n{constructor(e){this._locale=e}transform(e,i,o){if(!S9(e))return null;o=o||this._locale;try{return function c1e(n,r,e){return y9(n,C9(m9(r,b0.Decimal),Jv(r,vl.MinusSign)),r,vl.Group,vl.Decimal,e)}(T9(e),o,i)}catch(a){throw gb()}}}return n.\u0275fac=function(e){return new(e||n)(U(mg,16))},n.\u0275pipe=Js({name:"number",type:n,pure:!0,standalone:!0}),n})(),Hq=(()=>{class n{constructor(e){this._locale=e}transform(e,i,o){if(!S9(e))return null;o=o||this._locale;try{return function l1e(n,r,e){return y9(n,C9(m9(r,b0.Percent),Jv(r,vl.MinusSign)),r,vl.Group,vl.Decimal,e,!0).replace(new RegExp("%","g"),Jv(r,vl.PercentSign))}(T9(e),o,i)}catch(a){throw gb()}}}return n.\u0275fac=function(e){return new(e||n)(U(mg,16))},n.\u0275pipe=Js({name:"percent",type:n,pure:!0,standalone:!0}),n})(),M9=(()=>{class n{constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,o="symbol",a,s){if(!S9(e))return null;s=s||this._locale,"boolean"==typeof o&&(o=o?"symbol":"code");let l=i||this._defaultCurrencyCode;"code"!==o&&(l="symbol"===o||"symbol-narrow"===o?function zve(n,r,e="en"){const i=function Nve(n){return Da(n)[Pa.Currencies]}(e)[n]||yq[n]||[],o=i[1];return"narrow"===r&&"string"==typeof o?o:i[0]||n}(l,"symbol"===o?"wide":"narrow",s):o);try{return function s1e(n,r,e,i,o){const s=C9(m9(r,b0.Currency),Jv(r,vl.MinusSign));return s.minFrac=function $ve(n){let r;const e=yq[n];return e&&(r=e[2]),"number"==typeof r?r:2}(i),s.maxFrac=s.minFrac,y9(n,s,r,vl.CurrencyGroup,vl.CurrencyDecimal,o).replace("\xa4",e).replace("\xa4","").trim()}(T9(e),s,l,i,a)}catch(d){throw gb()}}}return n.\u0275fac=function(e){return new(e||n)(U(mg,16),U(W0e,16))},n.\u0275pipe=Js({name:"currency",type:n,pure:!0,standalone:!0}),n})();function S9(n){return!(null==n||""===n||n!=n)}function T9(n){if("string"==typeof n&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if("number"!=typeof n)throw new Error(`${n} is not a number`);return n}let VI=(()=>{class n{transform(e,i,o){if(null==e)return null;if(!this.supports(e))throw gb();return e.slice(i,o)}supports(e){return"string"==typeof e||Array.isArray(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Js({name:"slice",type:n,pure:!1,standalone:!0}),n})(),xs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})();const Vq="browser";function Ny(n){return n===Vq}let B1e=(()=>{class n{}return n.\u0275prov=Dn({token:n,providedIn:"root",factory:()=>new L1e(en(Fa),window)}),n})();class L1e{constructor(r,e){this.document=r,this.window=e,this.offset=()=>[0,0]}setOffset(r){this.offset=Array.isArray(r)?()=>r:r}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(r){this.supportsScrolling()&&this.window.scrollTo(r[0],r[1])}scrollToAnchor(r){if(!this.supportsScrolling())return;const e=function N1e(n,r){const e=n.getElementById(r)||n.getElementsByName(r)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const a=o.shadowRoot;if(a){const s=a.getElementById(r)||a.querySelector(`[name="${r}"]`);if(s)return s}o=i.nextNode()}}return null}(this.document,r);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(r){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=r)}}scrollToElement(r){const e=r.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(i-a[0],o-a[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const r=Uq(this.window.history)||Uq(Object.getPrototypeOf(this.window.history));return!(!r||!r.writable&&!r.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Uq(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class zq{}class O9 extends class nbe extends class Pve{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function Dve(n){_R||(_R=n)}(new O9)}onAndCancel(r,e,i){return r.addEventListener(e,i,!1),()=>{r.removeEventListener(e,i,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function ibe(){return zI=zI||document.querySelector("base"),zI?zI.getAttribute("href"):null}();return null==e?null:function rbe(n){OR=OR||document.createElement("a"),OR.setAttribute("href",n);const r=OR.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){zI=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return kq(document.cookie,r)}}let OR,zI=null;const Gq=new Pi("TRANSITION_ID"),abe=[{provide:cP,useFactory:function obe(n,r,e){return()=>{e.get(uR).donePromise.then(()=>{const i=Ly(),o=r.querySelectorAll(`style[ng-transition="${n}"]`);for(let a=0;a{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const kR=new Pi("EventManagerPlugins");let ER=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}addGlobalEventListener(e,i,o){return this._findPluginFor(i).addGlobalEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const o=this._plugins;for(let a=0;a{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),i.add(o))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),jI=(()=>{class n extends Qq{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,o){e.forEach(a=>{const s=this._doc.createElement("style");s.textContent=a,o.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(Kq),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,o)=>{this._addStylesToHost(e,o,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Kq))}}return n.\u0275fac=function(e){return new(e||n)(en(Fa))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();function Kq(n){Ly().remove(n)}const k9={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/"},E9=/%COMP%/g;function IR(n,r,e){for(let i=0;i{if("__ngUnwrap__"===r)return n;!1===n(r)&&(r.preventDefault(),r.returnValue=!1)}}let FR=(()=>{class n{constructor(e,i,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new I9(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Sc.Emulated:{let o=this.rendererByCompId.get(i.id);return o||(o=new fbe(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(e),o}case 1:case Sc.ShadowDom:return new mbe(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const o=IR(i.id,i.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(en(ER),en(jI),en(dP))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();class I9{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(k9[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(eX(r)?r.content:r).appendChild(e)}insertBefore(r,e,i){r&&(eX(r)?r.content:r).insertBefore(e,i)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let i="string"==typeof r?document.querySelector(r):r;if(!i)throw new Error(`The selector "${r}" did not match any elements`);return e||(i.textContent=""),i}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,i,o){if(o){e=o+":"+e;const a=k9[o];a?r.setAttributeNS(a,e,i):r.setAttribute(e,i)}else r.setAttribute(e,i)}removeAttribute(r,e,i){if(i){const o=k9[i];o?r.removeAttributeNS(o,e):r.removeAttribute(`${i}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,i,o){o&(Mm.DashCase|Mm.Important)?r.style.setProperty(e,i,o&Mm.Important?"important":""):r.style[e]=i}removeStyle(r,e,i){i&Mm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,i){r[e]=i}setValue(r,e){r.nodeValue=e}listen(r,e,i){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,Jq(i)):this.eventManager.addEventListener(r,e,Jq(i))}}function eX(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class fbe extends I9{constructor(r,e,i,o){super(r),this.component=i;const a=IR(o+"-"+i.id,i.styles,[]);e.addStyles(a),this.contentAttr=function ube(n){return"_ngcontent-%COMP%".replace(E9,n)}(o+"-"+i.id),this.hostAttr=function pbe(n){return"_nghost-%COMP%".replace(E9,n)}(o+"-"+i.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const i=super.createElement(r,e);return super.setAttribute(i,this.contentAttr,""),i}}class mbe extends I9{constructor(r,e,i,o){super(r),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const a=IR(o.id,o.styles,[]);for(let s=0;s{class n extends Wq{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}}return n.\u0275fac=function(e){return new(e||n)(en(Fa))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const tX=["alt","control","meta","shift"],_be={"\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"},vbe={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let bbe=(()=>{class n extends Wq{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,o){const a=n.parseEventName(i),s=n.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ly().onAndCancel(e,a.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const a=n._normalizeKey(i.pop());let s="",l=i.indexOf("code");if(l>-1&&(i.splice(l,1),s="code."),tX.forEach(f=>{const C=i.indexOf(f);C>-1&&(i.splice(C,1),s+=f+".")}),s+=a,0!=i.length||0===a.length)return null;const d={};return d.domEventName=o,d.fullKey=s,d}static matchEventFullKeyCode(e,i){let o=_be[e.key]||e.key,a="";return i.indexOf("code.")>-1&&(o=e.code,a="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),tX.forEach(s=>{s!==o&&(0,vbe[s])(e)&&(a+=s+".")}),a+=o,a===i)}static eventCallback(e,i,o){return a=>{n.matchEventFullKeyCode(a,e)&&o.runGuarded(()=>i(a))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(en(Fa))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const iX=[{provide:v0,useValue:Vq},{provide:HK,useValue:function ybe(){O9.makeCurrent()},multi:!0},{provide:Fa,useFactory:function Abe(){return function X0(n){jv=n}(document),document},deps:[]}],wbe=KK(Mve,"browser",iX),rX=new Pi(""),oX=[{provide:pR,useClass:class sbe{addToWindow(r){zs.getAngularTestability=(i,o=!0)=>{const a=r.findTestabilityInTree(i,o);if(null==a)throw new Error("Could not find testability for element.");return a},zs.getAllAngularTestabilities=()=>r.getAllTestabilities(),zs.getAllAngularRootElements=()=>r.getAllRootElements(),zs.frameworkStabilizers||(zs.frameworkStabilizers=[]),zs.frameworkStabilizers.push(i=>{const o=zs.getAllAngularTestabilities();let a=o.length,s=!1;const l=function(d){s=s||d,a--,0==a&&i(s)};o.forEach(function(d){d.whenStable(l)})})}findTestabilityInTree(r,e,i){return null==e?null:r.getTestability(e)??(i?Ly().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:YK,useClass:i9,deps:[Zo,r9,pR]},{provide:i9,useClass:i9,deps:[Zo,r9,pR]}],aX=[{provide:qf,useValue:"root"},{provide:p0,useFactory:function Cbe(){return new p0},deps:[]},{provide:kR,useClass:gbe,multi:!0,deps:[Fa,Zo,v0]},{provide:kR,useClass:bbe,multi:!0,deps:[Fa]},{provide:FR,useClass:FR,deps:[ER,jI,dP]},{provide:iv,useExisting:FR},{provide:Qq,useExisting:jI},{provide:jI,useClass:jI,deps:[Fa]},{provide:ER,useClass:ER,deps:[kR,Zo]},{provide:zq,useClass:lbe,deps:[]},[]];let R9=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:dP,useValue:e.appId},{provide:Gq,useExisting:dP},abe]}}}return n.\u0275fac=function(e){return new(e||n)(en(rX,12))},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[...aX,...oX],imports:[xs,Sve]}),n})(),sX=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(en(Fa))},n.\u0275prov=Dn({token:n,factory:function(e){let i=null;return i=e?new e:function Mbe(){return new sX(en(Fa))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let mA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:function(e){let i=null;return i=e?new(e||n):en(dX),i},providedIn:"root"}),n})(),dX=(()=>{class n extends mA{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case yt.NONE:return i;case yt.HTML:return yf(i,"HTML")?Gu(i):me(this._doc,String(i)).toString();case yt.STYLE:return yf(i,"Style")?Gu(i):i;case yt.SCRIPT:if(yf(i,"Script"))return Gu(i);throw new Error("unsafe value used in a script context");case yt.URL:return yf(i,"URL")?Gu(i):au(String(i));case yt.RESOURCE_URL:if(yf(i,"ResourceURL"))return Gu(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 eb(n){return new Gw(n)}(e)}bypassSecurityTrustStyle(e){return function tb(n){return new py(n)}(e)}bypassSecurityTrustScript(e){return function $v(n){return new Ww(n)}(e)}bypassSecurityTrustUrl(e){return function Ns(n){return new hy(n)}(e)}bypassSecurityTrustResourceUrl(e){return function Z0(n){return new tM(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(en(Fa))},n.\u0275prov=Dn({token:n,factory:function(e){let i=null;return i=e?new e:function Ebe(n){return new dX(n.get(Fa))}(en(ql)),i},providedIn:"root"}),n})();K(88583),K(91539),K(1017);const Qu={hmr:!1,production:!0,openidConfigUrl:"assets/oidc/config-prod.json",serverUrl:"https://isa360-prd.azurewebsites.net",graphqlApiUri:"https://isa360-prd.azurewebsites.net/api/graphql",graphqlWebSocketUri:"wss://isa360-prd.azurewebsites.net/api/graphql",userLicenseApiUri:"https://isa360-prd.azurewebsites.net/api/license-details",gtagTrackingId:"UA-116678595-1",useAwsFileService:!0,imageTokenUri:"https://isa360-prd.azurewebsites.net/api/image-token",imageUploadUri:"https://isa360-prd.azurewebsites.net/api/image-upload",imageUploadThumbUri:"https://isa360-prd.azurewebsites.net/api/image-upload/thumb",ideaxUploadUri:"https://isa360-prd.azurewebsites.net/api/image-upload/ideax-file",generateReportUri:"https://isa360-prd.azurewebsites.net/api/generate-report",signedCookieUri:"https://prod.isa.audaces.com/auth",awsFileServerUri:"https://files.isa.audaces.com",notifyLoginTUPUri:"https://isa360-prd.azurewebsites.net/api/notify-login",identityManagerUri:"https://id.audaces.com/"};function Wo(...n){let r=n[n.length-1];return jt(r)?(n.pop(),Wt(n,r)):fr(n)}function Dx(n,r){return Kt(n,r,1)}function Fo(n,r){return function(i){return i.lift(new Ibe(n,r))}}class Ibe{constructor(r,e){this.predicate=r,this.thisArg=e}call(r,e){return e.subscribe(new Fbe(r,this.predicate,this.thisArg))}}class Fbe extends te{constructor(r,e,i){super(r),this.predicate=e,this.thisArg=i,this.count=0}_next(r){let e;try{e=this.predicate.call(this.thisArg,r,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(r)}}class uX{}class pX{}class dp{constructor(r){this.normalizedNames=new Map,this.lazyUpdate=null,r?this.lazyInit="string"==typeof r?()=>{this.headers=new Map,r.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),a=o.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(o,a),this.headers.has(a)?this.headers.get(a).push(s):this.headers.set(a,[s])}})}:()=>{this.headers=new Map,Object.keys(r).forEach(e=>{let i=r[e];const o=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(o,i),this.maybeSetNormalizedName(e,o))})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();const e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof dp?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){const e=new dp;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof dp?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){const e=r.name.toLowerCase();switch(r.op){case"a":case"s":let i=r.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(r.name,e);const o=("a"===r.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const a=r.value;if(a){let s=this.headers.get(e);if(!s)return;s=s.filter(l=>-1===a.indexOf(l)),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(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}}class Rbe{encodeKey(r){return hX(r)}encodeValue(r){return hX(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const Lbe=/%(\d[a-f0-9])/gi,Nbe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function hX(n){return encodeURIComponent(n).replace(Lbe,(r,e)=>{var i;return null!==(i=Nbe[e])&&void 0!==i?i:r})}function RR(n){return`${n}`}class _b{constructor(r={}){if(this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new Rbe,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Bbe(n,r){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(o=>{const a=o.indexOf("="),[s,l]=-1==a?[r.decodeKey(o),""]:[r.decodeKey(o.slice(0,a)),r.decodeValue(o.slice(a+1))],d=e.get(s)||[];d.push(l),e.set(s,d)}),e}(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{const i=r.fromObject[e],o=Array.isArray(i)?i.map(RR):[RR(i)];this.map.set(e,o)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();const e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){const e=[];return Object.keys(r).forEach(i=>{const o=r[i];Array.isArray(o)?o.forEach(a=>{e.push({param:i,value:a,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{const e=this.encoder.encodeKey(r);return this.map.get(r).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(r=>""!==r).join("&")}clone(r){const e=new _b({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":const e=("a"===r.op?this.map.get(r.param):void 0)||[];e.push(RR(r.value)),this.map.set(r.param,e);break;case"d":if(void 0===r.value){this.map.delete(r.param);break}{let i=this.map.get(r.param)||[];const o=i.indexOf(RR(r.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(r.param,i):this.map.delete(r.param)}}}),this.cloneFrom=this.updates=null)}}class Hbe{constructor(){this.map=new Map}set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}}function fX(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function mX(n){return typeof Blob<"u"&&n instanceof Blob}function gX(n){return typeof FormData<"u"&&n instanceof FormData}class $I{constructor(r,e,i,o){let a;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase(),function Vbe(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,a=o):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new dp),this.context||(this.context=new Hbe),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const l=e.indexOf("?");this.urlWithParams=e+(-1===l?"?":lT.set(F,r.setHeaders[F]),f)),r.setParams&&(C=Object.keys(r.setParams).reduce((T,F)=>T.set(F,r.setParams[F]),C)),new $I(i,o,s,{params:C,headers:f,context:M,reportProgress:d,responseType:a,withCredentials:l})}}var Tf=(()=>((Tf=Tf||{})[Tf.Sent=0]="Sent",Tf[Tf.UploadProgress=1]="UploadProgress",Tf[Tf.ResponseHeader=2]="ResponseHeader",Tf[Tf.DownloadProgress=3]="DownloadProgress",Tf[Tf.Response=4]="Response",Tf[Tf.User=5]="User",Tf))();class L9{constructor(r,e=200,i="OK"){this.headers=r.headers||new dp,this.status=void 0!==r.status?r.status:e,this.statusText=r.statusText||i,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}}class N9 extends L9{constructor(r={}){super(r),this.type=Tf.ResponseHeader}clone(r={}){return new N9({headers:r.headers||this.headers,status:void 0!==r.status?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}}class BR extends L9{constructor(r={}){super(r),this.type=Tf.Response,this.body=void 0!==r.body?r.body:null}clone(r={}){return new BR({body:void 0!==r.body?r.body:this.body,headers:r.headers||this.headers,status:void 0!==r.status?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}}class _X extends L9{constructor(r){super(r,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${r.url||"(unknown url)"}`:`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}}function H9(n,r){return{body:r,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let _g=(()=>{class n{constructor(e){this.handler=e}request(e,i,o={}){let a;if(e instanceof $I)a=e;else{let d,f;d=o.headers instanceof dp?o.headers:new dp(o.headers),o.params&&(f=o.params instanceof _b?o.params:new _b({fromObject:o.params})),a=new $I(e,i,void 0!==o.body?o.body:null,{headers:d,context:o.context,params:f,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=Wo(a).pipe(Dx(d=>this.handler.handle(d)));if(e instanceof $I||"events"===o.observe)return s;const l=s.pipe(Fo(d=>d instanceof BR));switch(o.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return l.pipe(Ct(d=>{if(null!==d.body&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return l.pipe(Ct(d=>{if(null!==d.body&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return l.pipe(Ct(d=>{if(null!==d.body&&"string"!=typeof d.body)throw new Error("Response is not a string.");return d.body}));default:return l.pipe(Ct(d=>d.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.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 _b).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,H9(o,i))}post(e,i,o={}){return this.request("POST",e,H9(o,i))}put(e,i,o={}){return this.request("PUT",e,H9(o,i))}}return n.\u0275fac=function(e){return new(e||n)(en(uX))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();class vX{constructor(r,e){this.next=r,this.interceptor=e}handle(r){return this.interceptor.intercept(r,this.next)}}const bX=new Pi("HTTP_INTERCEPTORS");let zbe=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const jbe=/^\)\]\}',?\n/;let yX=(()=>{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 ze(i=>{const o=this.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((F,pe)=>o.setRequestHeader(F,pe.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const F=e.detectContentTypeHeader();null!==F&&o.setRequestHeader("Content-Type",F)}if(e.responseType){const F=e.responseType.toLowerCase();o.responseType="json"!==F?F:"text"}const a=e.serializeBody();let s=null;const l=()=>{if(null!==s)return s;const F=o.statusText||"OK",pe=new dp(o.getAllResponseHeaders()),ce=function $be(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(o)||e.url;return s=new N9({headers:pe,status:o.status,statusText:F,url:ce}),s},d=()=>{let{headers:F,status:pe,statusText:ce,url:fe}=l(),Pe=null;204!==pe&&(Pe=typeof o.response>"u"?o.responseText:o.response),0===pe&&(pe=Pe?200:0);let Ne=pe>=200&&pe<300;if("json"===e.responseType&&"string"==typeof Pe){const Ge=Pe;Pe=Pe.replace(jbe,"");try{Pe=""!==Pe?JSON.parse(Pe):null}catch(lt){Pe=Ge,Ne&&(Ne=!1,Pe={error:lt,text:Pe})}}Ne?(i.next(new BR({body:Pe,headers:F,status:pe,statusText:ce,url:fe||void 0})),i.complete()):i.error(new _X({error:Pe,headers:F,status:pe,statusText:ce,url:fe||void 0}))},f=F=>{const{url:pe}=l(),ce=new _X({error:F,status:o.status||0,statusText:o.statusText||"Unknown Error",url:pe||void 0});i.error(ce)};let C=!1;const M=F=>{C||(i.next(l()),C=!0);let pe={type:Tf.DownloadProgress,loaded:F.loaded};F.lengthComputable&&(pe.total=F.total),"text"===e.responseType&&!!o.responseText&&(pe.partialText=o.responseText),i.next(pe)},T=F=>{let pe={type:Tf.UploadProgress,loaded:F.loaded};F.lengthComputable&&(pe.total=F.total),i.next(pe)};return o.addEventListener("load",d),o.addEventListener("error",f),o.addEventListener("timeout",f),o.addEventListener("abort",f),e.reportProgress&&(o.addEventListener("progress",M),null!==a&&o.upload&&o.upload.addEventListener("progress",T)),o.send(a),i.next({type:Tf.Sent}),()=>{o.removeEventListener("error",f),o.removeEventListener("abort",f),o.removeEventListener("load",d),o.removeEventListener("timeout",f),e.reportProgress&&(o.removeEventListener("progress",M),null!==a&&o.upload&&o.upload.removeEventListener("progress",T)),o.readyState!==o.DONE&&o.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(en(zq))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const V9=new Pi("XSRF_COOKIE_NAME"),U9=new Pi("XSRF_HEADER_NAME");class CX{}let Ybe=(()=>{class n{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,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=kq(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(en(Fa),en(v0),en(V9))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),z9=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const o=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||o.startsWith("http://")||o.startsWith("https://"))return i.handle(e);const a=this.tokenService.getToken();return null!==a&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,a)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(en(CX),en(U9))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),Gbe=(()=>{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(bX,[]);this.chain=i.reduceRight((o,a)=>new vX(o,a),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(en(pX),en(ql))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),Wbe=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:z9,useClass:zbe}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:V9,useValue:e.cookieName}:[],e.headerName?{provide:U9,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[z9,{provide:bX,useExisting:z9,multi:!0},{provide:CX,useClass:Ybe},{provide:V9,useValue:"XSRF-TOKEN"},{provide:U9,useValue:"X-XSRF-TOKEN"}]}),n})(),Qbe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[_g,{provide:uX,useClass:Gbe},yX,{provide:pX,useExisting:yX}],imports:[Wbe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();const ZM=void 0,qbe=["en",[["a","p"],["AM","PM"],ZM],[["AM","PM"],ZM,ZM],[["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"]],ZM,[["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"]],ZM,[["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}",ZM,"{1} 'at' {0}",ZM],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Kbe(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}],up=void 0,Jbe=["es",[["a.\xa0m.","p.\xa0m."],up,up],up,[["D","L","M","X","J","V","S"],["dom","lun","mar","mi\xe9","jue","vie","s\xe1b"],["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"],["DO","LU","MA","MI","JU","VI","SA"]],up,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene","feb","mar","abr","may","jun","jul","ago","sept","oct","nov","dic"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],up,[["a. C.","d. C."],up,["antes de Cristo","despu\xe9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1}, {0}",up,up,up],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{AUD:[up,"$"],BRL:[up,"R$"],BYN:[up,"\u0440."],CAD:[up,"$"],CNY:[up,"\xa5"],EGP:[],ESP:["\u20a7"],GBP:[up,"\xa3"],HKD:[up,"$"],ILS:[up,"\u20aa"],INR:[up,"\u20b9"],JPY:[up,"\xa5"],KRW:[up,"\u20a9"],MXN:[up,"$"],NZD:[up,"$"],PHP:[up,"\u20b1"],RON:[up,"L"],THB:["\u0e3f"],TWD:[up,"NT$"],USD:["US$","$"],XAF:[],XCD:[up,"$"],XOF:[]},"ltr",function Xbe(n){const r=n,e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length,o=parseInt(n.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return 1===r?1:0===o&&0!==e&&e%1e6==0&&0===i||!(o>=0&&o<=5)?4:5}],Pm=void 0,eye=["it",[["m.","p."],["AM","PM"],Pm],Pm,[["D","L","M","M","G","V","S"],["dom","lun","mar","mer","gio","ven","sab"],["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"],["dom","lun","mar","mer","gio","ven","sab"]],Pm,[["G","F","M","A","M","G","L","A","S","O","N","D"],["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]],Pm,[["aC","dC"],["a.C.","d.C."],["avanti Cristo","dopo Cristo"]],1,[6,0],["dd/MM/yy","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",Pm,"{1} {0}",Pm],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{BRL:[Pm,"R$"],BYN:[Pm,"Br"],EGP:[Pm,"\xa3E"],HKD:[Pm,"$"],INR:[Pm,"\u20b9"],JPY:[Pm,"\xa5"],KRW:[Pm,"\u20a9"],MXN:[Pm,"$"],NOK:[Pm,"NKr"],THB:["\u0e3f"],TWD:[Pm,"NT$"],USD:[Pm,"$"],VND:[Pm,"\u20ab"]},"ltr",function Zbe(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length,o=parseInt(n.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return 1===e&&0===i?1:0===o&&0!==e&&e%1e6==0&&0===i||!(o>=0&&o<=5)?4:5}],hv=void 0,nye=["pt",[["AM","PM"],hv,hv],hv,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."]],hv,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],hv,[["a.C.","d.C."],hv,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",hv,hv,hv],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],BYN:[hv,"\u0440."],JPY:["JP\xa5","\xa5"],PHP:[hv,"\u20b1"],PTE:["Esc."],RON:[hv,"L"],SYP:[hv,"S\xa3"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"]},"ltr",function tye(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length,o=parseInt(n.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return e===Math.floor(e)&&e>=0&&e<=1?1:0===o&&0!==e&&e%1e6==0&&0===i||!(o>=0&&o<=5)?4:5}];function AX(...n){if(1===n.length){const r=n[0];if(H(r))return LR(r,null);if(j(r)&&Object.getPrototypeOf(r)===Object.prototype){const e=Object.keys(r);return LR(e.map(i=>r[i]),e)}}if("function"==typeof n[n.length-1]){const r=n.pop();return LR(n=1===n.length&&H(n[0])?n[0]:n,null).pipe(Ct(e=>r(...e)))}return LR(n,null)}function LR(n,r){return new ze(e=>{const i=n.length;if(0===i)return void e.complete();const o=new Array(i);let a=0,s=0;for(let l=0;l{f||(f=!0,s++),o[l]=C},error:C=>e.error(C),complete:()=>{a++,(a===i||!f)&&(s===i&&e.next(r?r.reduce((C,M,T)=>(C[M]=o[T],C),{}):o),e.complete())}}))}})}let wX=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},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)(U(Wl),U(gr))},n.\u0275dir=Wn({type:n}),n})(),eS=(()=>{class n extends wX{}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,features:[Nr]}),n})();const Rc=new Pi("NgValueAccessor"),iye={provide:Rc,useExisting:ue(()=>tS),multi:!0};let tS=(()=>{class n extends eS{writeValue(e){this.setProperty("checked",e)}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&Me("change",function(a){return i.onChange(a.target.checked)})("blur",function(){return i.onTouched()})},features:[lo([iye]),Nr]}),n})();const rye={provide:Rc,useExisting:ue(()=>Fs),multi:!0},aye=new Pi("CompositionEventMode");let Fs=(()=>{class n extends wX{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function oye(){const n=Ly()?Ly().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)(U(Wl),U(gr),U(aye,8))},n.\u0275dir=Wn({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&&Me("input",function(a){return i._handleInput(a.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(a){return i._compositionEnd(a.target.value)})},features:[lo([rye]),Nr]}),n})();function Px(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function xX(n){return null!=n&&"number"==typeof n.length}const Up=new Pi("NgValidators"),Ox=new Pi("NgAsyncValidators"),lye=/^(?=.{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 Vs{static min(r){return MX(r)}static max(r){return SX(r)}static required(r){return TX(r)}static requiredTrue(r){return function DX(n){return!0===n.value?null:{required:!0}}(r)}static email(r){return function PX(n){return Px(n.value)||lye.test(n.value)?null:{email:!0}}(r)}static minLength(r){return function OX(n){return r=>Px(r.value)||!xX(r.value)?null:r.value.length{if(Px(i.value))return null;const o=i.value;return r.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(r)}static nullValidator(r){return null}static compose(r){return NX(r)}static composeAsync(r){return HX(r)}}function MX(n){return r=>{if(Px(r.value)||Px(n))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(Px(r.value)||Px(n))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>n?{max:{max:n,actual:r.value}}:null}}function TX(n){return Px(n.value)?{required:!0}:null}function kX(n){return r=>xX(r.value)&&r.value.length>n?{maxlength:{requiredLength:n,actualLength:r.value.length}}:null}function NR(n){return null}function IX(n){return null!=n}function FX(n){return WM(n)?vt(n):n}function RX(n){let r={};return n.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function BX(n,r){return r.map(e=>e(n))}function LX(n){return n.map(r=>function cye(n){return!n.validate}(r)?r:e=>r.validate(e))}function NX(n){if(!n)return null;const r=n.filter(IX);return 0==r.length?null:function(e){return RX(BX(e,r))}}function j9(n){return null!=n?NX(LX(n)):null}function HX(n){if(!n)return null;const r=n.filter(IX);return 0==r.length?null:function(e){return AX(BX(e,r).map(FX)).pipe(Ct(RX))}}function $9(n){return null!=n?HX(LX(n)):null}function VX(n,r){return null===n?[r]:Array.isArray(n)?[...n,r]:[n,r]}function UX(n){return n._rawValidators}function zX(n){return n._rawAsyncValidators}function Y9(n){return n?Array.isArray(n)?n:[n]:[]}function HR(n,r){return Array.isArray(n)?n.includes(r):n===r}function jX(n,r){const e=Y9(r);return Y9(n).forEach(o=>{HR(e,o)||e.push(o)}),e}function $X(n,r){return Y9(r).filter(e=>!HR(n,e))}class YX{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(r){this._rawValidators=r||[],this._composedValidatorFn=j9(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=$9(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class Zg extends YX{get formDirective(){return null}get path(){return null}}class e1 extends YX{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class GX{constructor(r){this._cd=r}get isTouched(){var r,e;return!(null===(r=this._cd)||void 0===r||null===(e=r.control)||void 0===e||!e.touched)}get isUntouched(){var r,e;return!(null===(r=this._cd)||void 0===r||null===(e=r.control)||void 0===e||!e.untouched)}get isPristine(){var r,e;return!(null===(r=this._cd)||void 0===r||null===(e=r.control)||void 0===e||!e.pristine)}get isDirty(){var r,e;return!(null===(r=this._cd)||void 0===r||null===(e=r.control)||void 0===e||!e.dirty)}get isValid(){var r,e;return!(null===(r=this._cd)||void 0===r||null===(e=r.control)||void 0===e||!e.valid)}get isInvalid(){var r,e;return!(null===(r=this._cd)||void 0===r||null===(e=r.control)||void 0===e||!e.invalid)}get isPending(){var r,e;return!(null===(r=this._cd)||void 0===r||null===(e=r.control)||void 0===e||!e.pending)}get isSubmitted(){var r;return!(null===(r=this._cd)||void 0===r||!r.submitted)}}let La=(()=>{class n extends GX{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(U(e1,2))},n.\u0275dir=Wn({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&g("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:[Nr]}),n})(),Ql=(()=>{class n extends GX{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(U(Zg,10))},n.\u0275dir=Wn({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&g("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[Nr]}),n})();const YI="VALID",UR="INVALID",uP="PENDING",GI="DISABLED";function K9(n){return(zR(n)?n.validators:n)||null}function QX(n){return Array.isArray(n)?j9(n):n||null}function q9(n,r){return(zR(r)?r.asyncValidators:n)||null}function KX(n){return Array.isArray(n)?$9(n):n||null}function zR(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function qX(n,r,e){const i=n.controls;if(!(r?Object.keys(i):i).length)throw new ht(1e3,"");if(!i[e])throw new ht(1001,"")}function XX(n,r,e){n._forEachChild((i,o)=>{if(void 0===e[o])throw new ht(1002,"")})}class jR{constructor(r,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=r,this._rawAsyncValidators=e,this._composedValidatorFn=QX(this._rawValidators),this._composedAsyncValidatorFn=KX(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===YI}get invalid(){return this.status===UR}get pending(){return this.status==uP}get disabled(){return this.status===GI}get enabled(){return this.status!==GI}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=QX(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=KX(r)}addValidators(r){this.setValidators(jX(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(jX(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators($X(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators($X(r,this._rawAsyncValidators))}hasValidator(r){return HR(this._rawValidators,r)}hasAsyncValidator(r){return HR(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=uP,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=GI,this.errors=null,this._forEachChild(i=>{i.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=YI,this._forEachChild(i=>{i.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===YI||this.status===uP)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?GI:YI}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=uP,this._hasOwnPendingAsyncValidator=!0;const e=FX(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(r,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new Cn,this.statusChanges=new Cn}_calculateStatus(){return this._allControlsDisabled()?GI:this.errors?UR:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(uP)?uP:this._anyControlsHaveStatus(UR)?UR:YI}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){zR(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class nS extends jR{constructor(r,e,i){super(K9(e),q9(i,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,i={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,i={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){XX(this,0,r),Object.keys(r).forEach(i=>{qX(this,!0,i),this.controls[i].setValue(r[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(i=>{const o=this.controls[i];o&&o.patchValue(r[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((i,o)=>{i.reset(r[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,i)=>(r[i]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&r(i,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&r(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(r,e){let i=r;return this._forEachChild((o,a)=>{i=e(i,o,a)}),i}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}const Ud=nS;class JX extends nS{}function $R(n,r){return[...r.path,n]}function WI(n,r){var e,i;X9(n,r),r.valueAccessor.writeValue(n.value),n.disabled&&(null===(e=(i=r.valueAccessor).setDisabledState)||void 0===e||e.call(i,!0)),function _ye(n,r){r.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&ZX(n,r)})}(n,r),function bye(n,r){const e=(i,o)=>{r.valueAccessor.writeValue(i),o&&r.viewToModelUpdate(i)};n.registerOnChange(e),r._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,r),function vye(n,r){r.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&ZX(n,r),"submit"!==n.updateOn&&n.markAsTouched()})}(n,r),function gye(n,r){if(r.valueAccessor.setDisabledState){const e=i=>{r.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),r._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,r)}function YR(n,r,e=!0){const i=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(i),r.valueAccessor.registerOnTouched(i)),WR(n,r),n&&(r._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function GR(n,r){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function X9(n,r){const e=UX(n);null!==r.validator?n.setValidators(VX(e,r.validator)):"function"==typeof e&&n.setValidators([e]);const i=zX(n);null!==r.asyncValidator?n.setAsyncValidators(VX(i,r.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const o=()=>n.updateValueAndValidity();GR(r._rawValidators,o),GR(r._rawAsyncValidators,o)}function WR(n,r){let e=!1;if(null!==n){if(null!==r.validator){const o=UX(n);if(Array.isArray(o)&&o.length>0){const a=o.filter(s=>s!==r.validator);a.length!==o.length&&(e=!0,n.setValidators(a))}}if(null!==r.asyncValidator){const o=zX(n);if(Array.isArray(o)&&o.length>0){const a=o.filter(s=>s!==r.asyncValidator);a.length!==o.length&&(e=!0,n.setAsyncValidators(a))}}}const i=()=>{};return GR(r._rawValidators,i),GR(r._rawAsyncValidators,i),e}function ZX(n,r){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function eJ(n,r){X9(n,r)}function J9(n,r){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}function nJ(n,r){n._syncPendingControls(),r.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Z9(n,r){if(!r)return null;let e,i,o;return Array.isArray(r),r.forEach(a=>{a.constructor===Fs?e=a:function Aye(n){return Object.getPrototypeOf(n.constructor)===eS}(a)?i=a:o=a}),o||i||e||null}const xye={provide:Zg,useExisting:ue(()=>Gh)},QI=(()=>Promise.resolve())();let Gh=(()=>{class n extends Zg{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Cn,this.form=new nS({},j9(e),$9(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){QI.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),WI(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){QI.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){QI.then(()=>{const i=this._findContainer(e.path),o=new nS({});eJ(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){QI.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){QI.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){var i;return this.submitted=!0,nJ(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===(null==e||null===(i=e.target)||void 0===i?void 0:i.method)}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)(U(Up,10),U(Ox,10))},n.\u0275dir=Wn({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&Me("submit",function(a){return i.onSubmit(a)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[lo([xye]),Nr]}),n})();function iJ(n,r){const e=n.indexOf(r);e>-1&&n.splice(e,1)}function rJ(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Hy=class extends jR{constructor(r=null,e,i){super(K9(e),q9(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),zR(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=rJ(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){iJ(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){iJ(this._onDisabledChange,r)}_forEachChild(r){}_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(r){rJ(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},Qo=Hy;let oJ=(()=>{class n extends Zg{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $R(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,features:[Nr]}),n})();const Tye={provide:e1,useExisting:ue(()=>Ec)},sJ=(()=>Promise.resolve())();let Ec=(()=>{class n extends e1{constructor(e,i,o,a,s){super(),this._changeDetectorRef=s,this.control=new Hy,this._registered=!1,this.update=new Cn,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Z9(0,a)}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),J9(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(){WI(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){sJ.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&uA(i);sJ.then(()=>{var a;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()})}_getPath(e){return this._parent?$R(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(U(Zg,9),U(Up,10),U(Ox,10),U(Rc,10),U(Go,8))},n.\u0275dir=Wn({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:[lo([Tye]),Nr,vo]}),n})(),Zc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const Dye={provide:Rc,useExisting:ue(()=>pP),multi:!0};let pP=(()=>{class n extends eS{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&Me("input",function(a){return i.onChange(a.target.value)})("blur",function(){return i.onTouched()})},features:[lo([Dye]),Nr]}),n})();const Pye={provide:Rc,useExisting:ue(()=>KI),multi:!0};let lJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})(),Oye=(()=>{class n{constructor(){this._accessors=[]}add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e)return void this._accessors.splice(i,1)}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return!!e[0].control&&e[0]._parent===i._control._parent&&e[1].name===i.name}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:lJ}),n})(),KI=(()=>{class n extends eS{constructor(e,i,o,a){super(e,i),this._registry=o,this._injector=a,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(e1),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return n.\u0275fac=function(e){return new(e||n)(U(Wl),U(gr),U(Oye),U(ql))},n.\u0275dir=Wn({type:n,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,i){1&e&&Me("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[lo([Pye]),Nr]}),n})();const eV=new Pi("NgModelWithFormControlWarning"),Eye={provide:e1,useExisting:ue(()=>Df)};let Df=(()=>{class n extends e1{constructor(e,i,o,a){super(),this._ngModelWarningConfig=a,this.update=new Cn,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Z9(0,o)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&YR(i,this,!1),WI(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}J9(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&YR(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)(U(Up,10),U(Ox,10),U(Rc,10),U(eV,8))},n.\u0275dir=Wn({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[lo([Eye]),Nr,vo]}),n})();const Iye={provide:Zg,useExisting:ue(()=>uc)};let uc=(()=>{class n extends Zg{constructor(e,i){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Cn,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&&(WR(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 WI(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){YR(e.control||null,e,!1),function wye(n,r){const e=n.indexOf(r);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){var i;return this.submitted=!0,nJ(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===(null==e||null===(i=e.target)||void 0===i?void 0:i.method)}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(YR(i||null,e),(n=>n instanceof Hy)(o)&&(WI(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);eJ(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function yye(n,r){return WR(n,r)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){X9(this.form,this),this._oldForm&&WR(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(U(Up,10),U(Ox,10))},n.\u0275dir=Wn({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Me("submit",function(a){return i.onSubmit(a)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[lo([Iye]),Nr,vo]}),n})();const Fye={provide:Zg,useExisting:ue(()=>QR)};let QR=(()=>{class n extends oJ{constructor(e,i,o){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){dJ(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(U(Zg,13),U(Up,10),U(Ox,10))},n.\u0275dir=Wn({type:n,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[lo([Fye]),Nr]}),n})();const Rye={provide:Zg,useExisting:ue(()=>tV)};let tV=(()=>{class n extends Zg{constructor(e,i,o){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return $R(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){dJ(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(U(Zg,13),U(Up,10),U(Ox,10))},n.\u0275dir=Wn({type:n,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[lo([Rye]),Nr]}),n})();function dJ(n){return!(n instanceof QR||n instanceof uc||n instanceof tV)}const Bye={provide:e1,useExisting:ue(()=>zd)};let zd=(()=>{class n extends e1{constructor(e,i,o,a,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Cn,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Z9(0,a)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),J9(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return $R(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(U(Zg,13),U(Up,10),U(Ox,10),U(Rc,10),U(eV,8))},n.\u0275dir=Wn({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[lo([Bye]),Nr,vo]}),n})();const Lye={provide:Rc,useExisting:ue(()=>hP),multi:!0};function uJ(n,r){return null==n?`${r}`:(r&&"object"==typeof r&&(r="Object"),`${n}: ${r}`.slice(0,50))}let hP=(()=>{class n extends eS{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const o=uJ(this._getOptionId(e),e);this.setProperty("value",o)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function Nye(n){return n.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&Me("change",function(a){return i.onChange(a.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[lo([Lye]),Nr]}),n})(),fP=(()=>{class n{constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(uJ(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(Wl),U(hP,9))},n.\u0275dir=Wn({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();const Hye={provide:Rc,useExisting:ue(()=>nV),multi:!0};function pJ(n,r){return null==n?`${r}`:("string"==typeof r&&(r=`'${r}'`),r&&"object"==typeof r&&(r="Object"),`${n}: ${r}`.slice(0,50))}let nV=(()=>{class n extends eS{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const o=e.map(a=>this._getOptionId(a));i=(a,s)=>{a._setSelected(o.indexOf(s.toString())>-1)}}else i=(o,a)=>{o._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const o=[],a=i.selectedOptions;if(void 0!==a){const s=a;for(let l=0;l{class n{constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(pJ(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(pJ(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(Wl),U(nV,9))},n.\u0275dir=Wn({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();function fJ(n){return"number"==typeof n?n:parseFloat(n)}let iS=(()=>{class n{constructor(){this._validator=NR}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):NR,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,features:[vo]}),n})();const Uye={provide:Up,useExisting:ue(()=>iV),multi:!0};let iV=(()=>{class n extends iS{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>fJ(e),this.createValidator=e=>SX(e)}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Tr("max",i._enabled?i.max:null)},inputs:{max:"max"},features:[lo([Uye]),Nr]}),n})();const zye={provide:Up,useExisting:ue(()=>KR),multi:!0};let KR=(()=>{class n extends iS{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>fJ(e),this.createValidator=e=>MX(e)}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Tr("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[lo([zye]),Nr]}),n})();const jye={provide:Up,useExisting:ue(()=>y0),multi:!0};let y0=(()=>{class n extends iS{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=uA,this.createValidator=e=>TX}enabled(e){return e}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&Tr("required",i._enabled?"":null)},inputs:{required:"required"},features:[lo([jye]),Nr]}),n})();const Wye={provide:Up,useExisting:ue(()=>gP),multi:!0};let gP=(()=>{class n extends iS{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function hJ(n){return"number"==typeof n?n:parseInt(n,10)}(e),this.createValidator=e=>kX(e)}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Tr("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[lo([Wye]),Nr]}),n})(),vJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[lJ]}),n})(),Vy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[vJ]}),n})(),rS=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:eV,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[vJ]}),n})();class bJ extends jR{constructor(r,e,i){super(K9(e),q9(i,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(r){return this.controls[this._adjustIndex(r)]}push(r,e={}){this.controls.push(r),this._registerControl(r),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(r,e,i={}){this.controls.splice(r,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(r,e={}){let i=this._adjustIndex(r);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(r,e,i={}){let o=this._adjustIndex(r);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(r,e={}){XX(this,0,r),r.forEach((i,o)=>{qX(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(r.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r=[],e={}){this._forEachChild((i,o)=>{i.reset(r[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(r=>r.getRawValue())}clear(r={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}))}_adjustIndex(r){return r<0?r+this.length:r}_syncPendingControls(){let r=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){this.controls.forEach((e,i)=>{r(e,i)})}_updateValue(){this.value=this.controls.filter(r=>r.enabled||this.disabled).map(r=>r.value)}_anyControls(r){return this.controls.some(e=>e.enabled&&r(e))}_setUpControls(){this._forEachChild(r=>this._registerControl(r))}_allControlsDisabled(){for(const r of this.controls)if(r.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)}_find(r){var e;return null!==(e=this.at(r))&&void 0!==e?e:null}}function yJ(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let Kye=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let a={};return yJ(i)?a=i:null!==i&&(a.validators=i.validator,a.asyncValidators=i.asyncValidator),new nS(o,a)}record(e,i=null){const o=this._reduceControls(e);return new JX(o,i)}control(e,i,o){let a={};return this.useNonNullable?(yJ(i)?a=i:(a.validators=i,a.asyncValidators=o),new Hy(e,{...a,nonNullable:!0})):new Hy(e,i,o)}array(e,i,o){const a=e.map(s=>this._createControl(s));return new bJ(a,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof Hy||e instanceof jR?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:rS}),n})(),rV=(()=>{class n extends Kye{group(e,i=null){return super.group(e,i)}control(e,i,o){return super.control(e,i,o)}array(e,i,o){return super.array(e,i,o)}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:rS}),n})();function _P(...n){return function qye(){return $i(1)}()(Wo(...n))}const CJ=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),gA=new ze(n=>n.complete());function XR(n){return n?function Xye(n){return new ze(r=>n.schedule(()=>r.complete()))}(n):gA}function Oa(n){return r=>0===n?XR():r.lift(new Jye(n))}class Jye{constructor(r){if(this.total=r,this.total<0)throw new CJ}call(r,e){return e.subscribe(new Zye(r,this.total))}}class Zye extends te{constructor(r,e){super(r),this.total=e,this.count=0}_next(r){const e=this.total,i=++this.count;i<=e&&(this.destination.next(r),i===e&&(this.destination.complete(),this.unsubscribe()))}}function qI(n,r){let e=!1;return arguments.length>=2&&(e=!0),function(o){return o.lift(new eCe(n,r,e))}}class eCe{constructor(r,e,i=!1){this.accumulator=r,this.seed=e,this.hasSeed=i}call(r,e){return e.subscribe(new tCe(r,this.accumulator,this.seed,this.hasSeed))}}class tCe extends te{constructor(r,e,i,o){super(r),this.accumulator=e,this._seed=i,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(r){this.hasSeed=!0,this._seed=r}_next(r){if(this.hasSeed)return this._tryNext(r);this.seed=r,this.destination.next(r)}_tryNext(r){const e=this.index++;let i;try{i=this.accumulator(this.seed,r,e)}catch(o){this.destination.error(o)}this.seed=i,this.destination.next(i)}}function XI(n){return function(e){return 0===n?XR():e.lift(new nCe(n))}}class nCe{constructor(r){if(this.total=r,this.total<0)throw new CJ}call(r,e){return e.subscribe(new iCe(r,this.total))}}class iCe extends te{constructor(r,e){super(r),this.total=e,this.ring=new Array,this.count=0}_next(r){const e=this.ring,i=this.total,o=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,o=this.ring;for(let a=0;ar.lift(new rCe(n))}class rCe{constructor(r){this.defaultValue=r}call(r,e){return e.subscribe(new oCe(r,this.defaultValue))}}class oCe extends te{constructor(r,e){super(r),this.defaultValue=e,this.isEmpty=!0}_next(r){this.isEmpty=!1,this.destination.next(r)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function sCe(n,r,e){return 0===e?[r]:(n.push(r),n)}function xc(n,r){return"function"==typeof r?e=>e.pipe(xc((i,o)=>vt(n(i,o)).pipe(Ct((a,s)=>r(i,a,o,s))))):e=>e.lift(new cCe(n))}class cCe{constructor(r){this.project=r}call(r,e){return e.subscribe(new dCe(r,this.project))}}class dCe extends ln{constructor(r,e){super(r),this.project=e,this.index=0}_next(r){let e;const i=this.index++;try{e=this.project(r,i)}catch(o){return void this.destination.error(o)}this._innerSub(e)}_innerSub(r){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Tt(this),o=this.destination;o.add(i),this.innerSubscription=Qi(r,i),this.innerSubscription!==i&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:r}=this;(!r||r.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(r){this.destination.next(r)}}class JI{}let AJ=(()=>{class n extends JI{getTranslation(e){return Wo({})}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();class oV{}let wJ=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();class JR{}let xJ=(()=>{class n extends JR{compile(e,i){return e}compileTranslations(e,i){return e}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();function ZI(n,r){if(n===r)return!0;if(null===n||null===r)return!1;if(n!=n&&r!=r)return!0;let o,a,s,e=typeof n;if(e==typeof r&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(r))return!1;for(a in s=Object.create(null),n){if(!ZI(n[a],r[a]))return!1;s[a]=!0}for(a in r)if(!(a in s)&&typeof r[a]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((o=n.length)==r.length){for(a=0;a{aV(r[i])?i in n?e[i]=MJ(n[i],r[i]):Object.assign(e,{[i]:r[i]}):Object.assign(e,{[i]:r[i]})}),e}class e3{}let SJ=(()=>{class n extends e3{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,i){let o;return o="string"==typeof e?this.interpolateString(e,i):"function"==typeof e?this.interpolateFunction(e,i):e,o}getValue(e,i){let o=i.split(".");i="";do{i+=o.shift(),!vb(e)||!vb(e[i])||"object"!=typeof e[i]&&o.length?o.length?i+=".":e=void 0:(e=e[i],i="")}while(o.length);return e}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(o,a)=>{let s=this.getValue(i,a);return vb(s)?s:o}):e}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();class TJ{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Cn,this.onLangChange=new Cn,this.onDefaultLangChange=new Cn}}const sV=new Pi("USE_STORE"),lV=new Pi("USE_DEFAULT_LANG");let Ja=(()=>{class n{constructor(e,i,o,a,s,l=!0,d=!1){this.store=e,this.currentLoader=i,this.compiler=o,this.parser=a,this.missingTranslationHandler=s,this.useDefaultLang=l,this.isolate=d,this.pending=!1,this._onTranslationChange=new Cn,this._onLangChange=new Cn,this._onDefaultLangChange=new Cn,this._langs=[],this._translations={},this._translationRequests={}}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"?(this.defaultLang||(this.defaultLang=e),i.pipe(Oa(1)).subscribe(o=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Wo(this.translations[e]);let i=this.retrieveTranslations(e);return typeof i<"u"?(this.currentLang||(this.currentLang=e),i.pipe(Oa(1)).subscribe(o=>{this.changeLang(e)}),i):(this.changeLang(e),Wo(this.translations[e]))}retrieveTranslations(e){let i;return typeof this.translations[e]>"u"&&(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(Xn());return this.loadingTranslations=i.pipe(Oa(1),Ct(o=>this.compiler.compileTranslations(o,e)),Xn()),this.loadingTranslations.subscribe(o=>{this.translations[e]=o,this.updateLangs(),this.pending=!1},o=>{this.pending=!1}),i}setTranslation(e,i,o=!1){i=this.compiler.compileTranslations(i,e),this.translations[e]=o&&this.translations[e]?MJ(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,o){let a;if(i instanceof Array){let s={},l=!1;for(let d of i)s[d]=this.getParsedResult(e,d,o),"function"==typeof s[d].subscribe&&(l=!0);if(l){let d;for(let f of i){let C="function"==typeof s[f].subscribe?s[f]:Wo(s[f]);d=typeof d>"u"?C:or(d,C)}return d.pipe(function lCe(){return function aCe(n,r){return arguments.length>=2?function(i){return _e(qI(n,r),XI(1),vP(r))(i)}:function(i){return _e(qI((o,a,s)=>n(o,a,s+1)),XI(1))(i)}}(sCe,[])}(),Ct(f=>{let C={};return f.forEach((M,T)=>{C[i[T]]=M}),C}))}return s}if(e&&(a=this.parser.interpolate(this.parser.getValue(e,i),o)),typeof a>"u"&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(a=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],i),o)),typeof a>"u"){let s={key:i,translateService:this};typeof o<"u"&&(s.interpolateParams=o),a=this.missingTranslationHandler.handle(s)}return typeof a<"u"?a:i}get(e,i){if(!vb(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return ze.create(o=>{let a=l=>{o.next(l),o.complete()},s=l=>{o.error(l)};this.loadingTranslations.subscribe(l=>{"function"==typeof(l=this.getParsedResult(l,e,i)).subscribe?l.subscribe(a,s):a(l)},s)});{let o=this.getParsedResult(this.translations[this.currentLang],e,i);return"function"==typeof o.subscribe?o:Wo(o)}}stream(e,i){if(!vb(e)||!e.length)throw new Error('Parameter "key" required');return _P(this.get(e,i),this.onLangChange.pipe(xc(o=>{const a=this.getParsedResult(o.translations,e,i);return"function"==typeof a.subscribe?a:Wo(a)})))}instant(e,i){if(!vb(e)||!e.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],e,i);if(typeof o.subscribe<"u"){if(e instanceof Array){let a={};return e.forEach((s,l)=>{a[e[l]]=e[l]}),a}return e}return o}set(e,i,o=this.currentLang){this.translations[o][e]=this.compiler.compile(i,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),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,-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)(en(TJ),en(JI),en(JR),en(e3),en(oV),en(lV),en(sV))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),vd=(()=>{class n{constructor(e,i,o){this.translateService=e,this.element=i,this._ref=o,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(a=>{a.lang===this.translateService.currentLang&&this.checkNodes(!0,a.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(a=>{this.checkNodes(!0,a.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(a=>{this.checkNodes(!0)}))}set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){ZI(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,i){let o=this.element.nativeElement.childNodes;o.length||(this.setContent(this.element.nativeElement,this.key),o=this.element.nativeElement.childNodes);for(let a=0;a{s!==e&&(i.lastKey=e),i.originalContent||(i.originalContent=this.getContent(i)),i.currentValue=vb(s)?s:i.originalContent||e,this.setContent(i,this.key?i.currentValue:i.originalContent.replace(e,i.currentValue)),this._ref.markForCheck()};if(vb(o)){let s=this.translateService.getParsedResult(o,e,this.currentParams);"function"==typeof s.subscribe?s.subscribe(a):a(s)}else this.translateService.get(e,this.currentParams).subscribe(a)}}getContent(e){return vb(e.textContent)?e.textContent:e.data}setContent(e,i){vb(e.textContent)?e.textContent=i:e.data=i}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(U(Ja),U(gr),U(Go))},n.\u0275dir=Wn({type:n,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),n})(),kr=(()=>{class n{constructor(e,i){this.translate=e,this._ref=i,this.value=""}updateValue(e,i,o){let a=s=>{this.value=void 0!==s?s:e,this.lastKey=e,this._ref.markForCheck()};if(o){let s=this.translate.getParsedResult(o,e,i);"function"==typeof s.subscribe?s.subscribe(a):a(s)}this.translate.get(e,i).subscribe(a)}transform(e,...i){if(!e||0===e.length)return e;if(ZI(e,this.lastKey)&&ZI(i,this.lastParams))return this.value;let o;if(vb(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){let a=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{o=JSON.parse(a)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else"object"==typeof i[0]&&!Array.isArray(i[0])&&(o=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(a=>{this.lastKey&&a.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,o,a.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(a=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o,a.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o))})),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)(U(Ja,16),U(Go,16))},n.\u0275pipe=Js({name:"translate",type:n,pure:!1}),n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),t1=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:JI,useClass:AJ},e.compiler||{provide:JR,useClass:xJ},e.parser||{provide:e3,useClass:SJ},e.missingTranslationHandler||{provide:oV,useClass:wJ},TJ,{provide:sV,useValue:e.isolate},{provide:lV,useValue:e.useDefaultLang},Ja]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:JI,useClass:AJ},e.compiler||{provide:JR,useClass:xJ},e.parser||{provide:e3,useClass:SJ},e.missingTranslationHandler||{provide:oV,useClass:wJ},{provide:sV,useValue:e.isolate},{provide:lV,useValue:e.useDefaultLang},Ja]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})();class uCe{constructor(r,e="/assets/i18n/",i=".json"){this.http=r,this.prefix=e,this.suffix=i}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}var pCe=K(70955),bP={userAgent:!1},yP={};if(void 0===Sh)var Sh={};Sh.lang={extend:function(n,r,e){if(!r||!n)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n,n.superclass=r.prototype,r.prototype.constructor==Object.prototype.constructor&&(r.prototype.constructor=r),e){var o;for(o in e)n.prototype[o]=e[o];var a=function(){},s=["toString","valueOf"];try{/MSIE/.test(bP.userAgent)&&(a=function(l,d){for(o=0;o>>2]|=(ce[Ne>>>2]>>>24-Ne%4*8&255)<<24-(fe+Ne)%4*8;else for(Ne=0;Ne>>2]=ce[Ne>>>2];return this.sigBytes+=Pe,this},clamp:function(){var F=this.words,pe=this.sigBytes;F[pe>>>2]&=4294967295<<32-pe%4*8,F.length=n.ceil(pe/4)},clone:function(){var F=o.clone.call(this);return F.words=this.words.slice(0),F},random:function(F){for(var pe=[],ce=0;ce>>2]>>>24-Pe%4*8&255;fe.push((Ne>>>4).toString(16)),fe.push((15&Ne).toString(16))}return fe.join("")},parse:function(F){for(var pe=F.length,ce=[],fe=0;fe>>3]|=parseInt(F.substr(fe,2),16)<<24-fe%8*4;return new a.init(ce,pe/2)}},d=s.Latin1={stringify:function(F){for(var pe=F.words,ce=F.sigBytes,fe=[],Pe=0;Pe>>2]>>>24-Pe%4*8&255));return fe.join("")},parse:function(F){for(var pe=F.length,ce=[],fe=0;fe>>2]|=(255&F.charCodeAt(fe))<<24-fe%4*8;return new a.init(ce,pe)}},f=s.Utf8={stringify:function(F){try{return decodeURIComponent(escape(d.stringify(F)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(F){return d.parse(unescape(encodeURIComponent(F)))}},C=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(F){"string"==typeof F&&(F=f.parse(F)),this._data.concat(F),this._nDataBytes+=F.sigBytes},_process:function(F){var pe=this._data,ce=pe.words,fe=pe.sigBytes,Pe=this.blockSize,Ge=fe/(4*Pe),lt=(Ge=F?n.ceil(Ge):n.max((0|Ge)-this._minBufferSize,0))*Pe,Pt=n.min(4*lt,fe);if(lt){for(var Qt=0;Qt>>2]>>>24-s%4*8&255)<<16|(i[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|i[s+2>>>2]>>>24-(s+2)%4*8&255,d=0;4>d&&s+.75*d>>6*(3-d)&63));if(i=a.charAt(64))for(;e.length%4;)e.push(i);return e.join("")},parse:function(e){var i=e.length,o=this._map;(a=o.charAt(64))&&-1!=(a=e.indexOf(a))&&(i=a);for(var a=[],s=0,l=0;l>>6-l%4*2;a[s>>>2]|=(d|f)<<24-s%4*8,s++}return r.create(a,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(n){for(var r=Rs,e=(F=r.lib).WordArray,i=F.Hasher,F=r.algo,o=[],a=[],s=function(ce){return 4294967296*(ce-(0|ce))|0},l=2,d=0;64>d;){var f;e:{for(var C=n.sqrt(f=l),M=2;M<=C;M++)if(!(f%M)){f=!1;break e}f=!0}f&&(8>d&&(o[d]=s(n.pow(l,.5))),a[d]=s(n.pow(l,1/3)),d++),l++}var T=[];F=F.SHA256=i.extend({_doReset:function(){this._hash=new e.init(o.slice(0))},_doProcessBlock:function(pe,ce){for(var fe=this._hash.words,Pe=fe[0],Ne=fe[1],Ge=fe[2],lt=fe[3],Pt=fe[4],Qt=fe[5],Ot=fe[6],tn=fe[7],Nn=0;64>Nn;Nn++){if(16>Nn)T[Nn]=0|pe[ce+Nn];else{var ii=T[Nn-15],Ht=T[Nn-2];T[Nn]=((ii<<25|ii>>>7)^(ii<<14|ii>>>18)^ii>>>3)+T[Nn-7]+((Ht<<15|Ht>>>17)^(Ht<<13|Ht>>>19)^Ht>>>10)+T[Nn-16]}ii=tn+((Pt<<26|Pt>>>6)^(Pt<<21|Pt>>>11)^(Pt<<7|Pt>>>25))+(Pt&Qt^~Pt&Ot)+a[Nn]+T[Nn],Ht=((Pe<<30|Pe>>>2)^(Pe<<19|Pe>>>13)^(Pe<<10|Pe>>>22))+(Pe&Ne^Pe&Ge^Ne&Ge),tn=Ot,Ot=Qt,Qt=Pt,Pt=lt+ii|0,lt=Ge,Ge=Ne,Ne=Pe,Pe=ii+Ht|0}fe[0]=fe[0]+Pe|0,fe[1]=fe[1]+Ne|0,fe[2]=fe[2]+Ge|0,fe[3]=fe[3]+lt|0,fe[4]=fe[4]+Pt|0,fe[5]=fe[5]+Qt|0,fe[6]=fe[6]+Ot|0,fe[7]=fe[7]+tn|0},_doFinalize:function(){var pe=this._data,ce=pe.words,fe=8*this._nDataBytes,Pe=8*pe.sigBytes;return ce[Pe>>>5]|=128<<24-Pe%32,ce[14+(Pe+64>>>9<<4)]=n.floor(fe/4294967296),ce[15+(Pe+64>>>9<<4)]=fe,pe.sigBytes=4*ce.length,this._process(),this._hash},clone:function(){var pe=i.clone.call(this);return pe._hash=this._hash.clone(),pe}}),r.SHA256=i._createHelper(F),r.HmacSHA256=i._createHmacHelper(F)}(Math),function(){function n(){return i.create.apply(i,arguments)}for(var r=Rs,e=r.lib.Hasher,i=(a=r.x64).Word,o=a.WordArray,a=r.algo,s=[n(1116352408,3609767458),n(1899447441,602891725),n(3049323471,3964484399),n(3921009573,2173295548),n(961987163,4081628472),n(1508970993,3053834265),n(2453635748,2937671579),n(2870763221,3664609560),n(3624381080,2734883394),n(310598401,1164996542),n(607225278,1323610764),n(1426881987,3590304994),n(1925078388,4068182383),n(2162078206,991336113),n(2614888103,633803317),n(3248222580,3479774868),n(3835390401,2666613458),n(4022224774,944711139),n(264347078,2341262773),n(604807628,2007800933),n(770255983,1495990901),n(1249150122,1856431235),n(1555081692,3175218132),n(1996064986,2198950837),n(2554220882,3999719339),n(2821834349,766784016),n(2952996808,2566594879),n(3210313671,3203337956),n(3336571891,1034457026),n(3584528711,2466948901),n(113926993,3758326383),n(338241895,168717936),n(666307205,1188179964),n(773529912,1546045734),n(1294757372,1522805485),n(1396182291,2643833823),n(1695183700,2343527390),n(1986661051,1014477480),n(2177026350,1206759142),n(2456956037,344077627),n(2730485921,1290863460),n(2820302411,3158454273),n(3259730800,3505952657),n(3345764771,106217008),n(3516065817,3606008344),n(3600352804,1432725776),n(4094571909,1467031594),n(275423344,851169720),n(430227734,3100823752),n(506948616,1363258195),n(659060556,3750685593),n(883997877,3785050280),n(958139571,3318307427),n(1322822218,3812723403),n(1537002063,2003034995),n(1747873779,3602036899),n(1955562222,1575990012),n(2024104815,1125592928),n(2227730452,2716904306),n(2361852424,442776044),n(2428436474,593698344),n(2756734187,3733110249),n(3204031479,2999351573),n(3329325298,3815920427),n(3391569614,3928383900),n(3515267271,566280711),n(3940187606,3454069534),n(4118630271,4000239992),n(116418474,1914138554),n(174292421,2731055270),n(289380356,3203993006),n(460393269,320620315),n(685471733,587496836),n(852142971,1086792851),n(1017036298,365543100),n(1126000580,2618297676),n(1288033470,3409855158),n(1501505948,4234509866),n(1607167915,987167468),n(1816402316,1246189591)],l=[],d=0;80>d;d++)l[d]=n();a=a.SHA512=e.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(f,C){for(var Ne,M=(Ne=this._hash.words)[0],T=Ne[1],F=Ne[2],pe=Ne[3],ce=Ne[4],fe=Ne[5],Pe=Ne[6],Ge=M.high,lt=M.low,Pt=T.high,Qt=T.low,Ot=F.high,tn=F.low,Nn=pe.high,ii=pe.low,Ht=ce.high,nn=ce.low,Fn=fe.high,At=fe.low,yn=Pe.high,Lt=Pe.low,pn=(Ne=Ne[7]).high,hn=Ne.low,ct=Ge,rn=lt,An=Pt,Mn=Qt,ai=Ot,si=tn,er=Nn,dr=ii,qi=Ht,yr=nn,Mo=Fn,ka=At,$o=yn,$r=Lt,oa=pn,vs=hn,Ha=0;80>Ha;Ha++){var Ju=l[Ha];if(16>Ha)var xi=Ju.high=0|f[C+2*Ha],Ws=Ju.low=0|f[C+2*Ha+1];else{xi=((Ws=(xi=l[Ha-15]).high)>>>1|(ls=xi.low)<<31)^(Ws>>>8|ls<<24)^Ws>>>7;var ls=(ls>>>1|Ws<<31)^(ls>>>8|Ws<<24)^(ls>>>7|Ws<<25),Ss=((Ws=(Ss=l[Ha-2]).high)>>>19|(Os=Ss.low)<<13)^(Ws<<3|Os>>>29)^Ws>>>6,Os=(Os>>>19|Ws<<13)^(Os<<3|Ws>>>29)^(Os>>>6|Ws<<26);Ju.high=xi=(xi=(xi=xi+(Yo=(Ws=l[Ha-7]).high)+((Ws=ls+Ws.low)>>>0>>0?1:0))+Ss+((Ws+=Os)>>>0>>0?1:0))+(Fc=(Ga=l[Ha-16]).high)+((Ws+=Ga=Ga.low)>>>0>>0?1:0),Ju.low=Ws}var Yo=qi&Mo^~qi&$o,Ga=yr&ka^~yr&$r,Do=(Ju=ct&An^ct&ai^An&ai,rn&Mn^rn&si^Mn&si),pc=(Os=s[Ha]).high,Nc=Os.low,Fc=oa+((qi>>>14|yr<<18)^(qi>>>18|yr<<14)^(qi<<23|yr>>>9))+((Os=vs+((yr>>>14|qi<<18)^(yr>>>18|qi<<14)^(yr<<23|qi>>>9)))>>>0>>0?1:0);oa=$o,vs=$r,$o=Mo,$r=ka,Mo=qi,ka=yr,qi=er+(Fc=(Fc=(Fc=Fc+Yo+((Os+=Ga)>>>0>>0?1:0))+pc+((Os+=Nc)>>>0>>0?1:0))+xi+((Os+=Ws)>>>0>>0?1:0))+((yr=dr+Os|0)>>>0>>0?1:0)|0,er=ai,dr=si,ai=An,si=Mn,An=ct,Mn=rn,ct=Fc+(Ju=(ls=(ct>>>28|rn<<4)^(ct<<30|rn>>>2)^(ct<<25|rn>>>7))+Ju+((Ws=(Ss=(rn>>>28|ct<<4)^(rn<<30|ct>>>2)^(rn<<25|ct>>>7))+Do)>>>0>>0?1:0))+((rn=Os+Ws|0)>>>0>>0?1:0)|0}lt=M.low=lt+rn,M.high=Ge+ct+(lt>>>0>>0?1:0),Qt=T.low=Qt+Mn,T.high=Pt+An+(Qt>>>0>>0?1:0),tn=F.low=tn+si,F.high=Ot+ai+(tn>>>0>>0?1:0),ii=pe.low=ii+dr,pe.high=Nn+er+(ii>>>0>>0?1:0),nn=ce.low=nn+yr,ce.high=Ht+qi+(nn>>>0>>0?1:0),At=fe.low=At+ka,fe.high=Fn+Mo+(At>>>0>>0?1:0),Lt=Pe.low=Lt+$r,Pe.high=yn+$o+(Lt>>>0<$r>>>0?1:0),hn=Ne.low=hn+vs,Ne.high=pn+oa+(hn>>>0>>0?1:0)},_doFinalize:function(){var f=this._data,C=f.words,M=8*this._nDataBytes,T=8*f.sigBytes;return C[T>>>5]|=128<<24-T%32,C[30+(T+128>>>10<<5)]=Math.floor(M/4294967296),C[31+(T+128>>>10<<5)]=M,f.sigBytes=4*C.length,this._process(),this._hash.toX32()},clone:function(){var f=e.clone.call(this);return f._hash=this._hash.clone(),f},blockSize:32}),r.SHA512=e._createHelper(a),r.HmacSHA512=e._createHmacHelper(a)}(),function(){var n=Rs,r=(o=n.x64).Word,e=o.WordArray,i=(o=n.algo).SHA512,o=o.SHA384=i.extend({_doReset:function(){this._hash=new e.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var a=i._doFinalize.call(this);return a.sigBytes-=16,a}});n.SHA384=i._createHelper(o),n.HmacSHA384=i._createHmacHelper(o)}();var kx,CP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function t3(n){var r,e,i="";for(r=0;r+3<=n.length;r+=3)e=parseInt(n.substring(r,r+3),16),i+=CP.charAt(e>>6)+CP.charAt(63&e);for(r+1==n.length?(e=parseInt(n.substring(r,r+1),16),i+=CP.charAt(e<<2)):r+2==n.length&&(e=parseInt(n.substring(r,r+2),16),i+=CP.charAt(e>>2)+CP.charAt((3&e)<<4));(3&i.length)>0;)i+="=";return i}function n3(n){var e,o,a,r="",i=0;for(e=0;e>2),o=3&a,i=1):1==i?(r+=_A(o<<2|a>>4),o=15&a,i=2):2==i?(r+=_A(o),r+=_A(a>>2),o=3&a,i=3):(r+=_A(o<<2|a>>4),r+=_A(15&a),i=0));return 1==i&&(r+=_A(o<<2)),r}function wr(n,r,e){null!=n&&("number"==typeof n?this.fromNumber(n,r,e):this.fromString(n,null==r&&"string"!=typeof n?256:r))}function bd(){return new wr(null)}"Microsoft Internet Explorer"==bP.appName?(wr.prototype.am=function gCe(n,r,e,i,o,a){for(var s=32767&r,l=r>>15;--a>=0;){var d=32767&this[n],f=this[n++]>>15,C=l*d+f*s;o=((d=s*d+((32767&C)<<15)+e[i]+(1073741823&o))>>>30)+(C>>>15)+l*f+(o>>>30),e[i++]=1073741823&d}return o},kx=30):"Netscape"!=bP.appName?(wr.prototype.am=function mCe(n,r,e,i,o,a){for(;--a>=0;){var s=r*this[n++]+e[i]+o;o=Math.floor(s/67108864),e[i++]=67108863&s}return o},kx=26):(wr.prototype.am=function _Ce(n,r,e,i,o,a){for(var s=16383&r,l=r>>14;--a>=0;){var d=16383&this[n],f=this[n++]>>14,C=l*d+f*s;o=((d=s*d+((16383&C)<<14)+e[i]+o)>>28)+(C>>14)+l*f,e[i++]=268435455&d}return o},kx=28),wr.prototype.DB=kx,wr.prototype.DM=(1<>>16)&&(n=e,r+=16),0!=(e=n>>8)&&(n=e,r+=8),0!=(e=n>>4)&&(n=e,r+=4),0!=(e=n>>2)&&(n=e,r+=2),0!=(e=n>>1)&&(n=e,r+=1),r}function oS(n){this.m=n}function aS(n){this.m=n,this.mp=n.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,r+=16),0==(255&n)&&(n>>=8,r+=8),0==(15&n)&&(n>>=4,r+=4),0==(3&n)&&(n>>=2,r+=2),0==(1&n)&&++r,r}function CAe(n){for(var r=0;0!=n;)n&=n-1,++r;return r}function r3(){}function EJ(n){return n}function wP(n){this.r2=bd(),this.q3=bd(),wr.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n),this.m=n}oS.prototype.convert=function LCe(n){return n.s<0||n.compareTo(this.m)>=0?n.mod(this.m):n},oS.prototype.revert=function NCe(n){return n},oS.prototype.reduce=function HCe(n){n.divRemTo(this.m,null,n)},oS.prototype.mulTo=function VCe(n,r,e){n.multiplyTo(r,e),this.reduce(e)},oS.prototype.sqrTo=function UCe(n,r){n.squareTo(r),this.reduce(r)},aS.prototype.convert=function jCe(n){var r=bd();return n.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),n.s<0&&r.compareTo(wr.ZERO)>0&&this.m.subTo(r,r),r},aS.prototype.revert=function $Ce(n){var r=bd();return n.copyTo(r),this.reduce(r),r},aS.prototype.reduce=function YCe(n){for(;n.t<=this.mt2;)n[n.t++]=0;for(var r=0;r>15)*this.mpl&this.um)<<15)&n.DM;for(n[e=r+this.m.t]+=this.m.am(0,i,n,r,0,this.m.t);n[e]>=n.DV;)n[e]-=n.DV,n[++e]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)},aS.prototype.mulTo=function WCe(n,r,e){n.multiplyTo(r,e),this.reduce(e)},aS.prototype.sqrTo=function GCe(n,r){n.squareTo(r),this.reduce(r)},wr.prototype.copyTo=function bCe(n){for(var r=this.t-1;r>=0;--r)n[r]=this[r];n.t=this.t,n.s=this.s},wr.prototype.fromInt=function yCe(n){this.t=1,this.s=n<0?-1:0,n>0?this[0]=n:n<-1?this[0]=n+this.DV:this.t=0},wr.prototype.fromString=function CCe(n,r){var e;if(16==r)e=4;else if(8==r)e=3;else if(256==r)e=8;else if(2==r)e=1;else if(32==r)e=5;else{if(4!=r)return void this.fromRadix(n,r);e=2}this.t=0,this.s=0;for(var i=n.length,o=!1,a=0;--i>=0;){var s=8==e?255&n[i]:PJ(n,i);s<0?"-"==n.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+e>this.DB?(this[this.t-1]|=(s&(1<>this.DB-a):this[this.t-1]|=s<=this.DB&&(a-=this.DB))}8==e&&0!=(128&n[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==n;)--this.t},wr.prototype.dlShiftTo=function DCe(n,r){var e;for(e=this.t-1;e>=0;--e)r[e+n]=this[e];for(e=n-1;e>=0;--e)r[e]=0;r.t=this.t+n,r.s=this.s},wr.prototype.drShiftTo=function PCe(n,r){for(var e=n;e=0;--l)r[l+a+1]=this[l]>>i|s,s=(this[l]&o)<=0;--l)r[l]=0;r[a]=s,r.t=this.t+a+1,r.s=this.s,r.clamp()},wr.prototype.rShiftTo=function kCe(n,r){r.s=this.s;var e=Math.floor(n/this.DB);if(e>=this.t)r.t=0;else{var i=n%this.DB,o=this.DB-i,a=(1<>i;for(var s=e+1;s>i;i>0&&(r[this.t-e-1]|=(this.s&a)<>=this.DB;if(n.t>=this.DB;i+=this.s}else{for(i+=this.s;e>=this.DB;i-=n.s}r.s=i<0?-1:0,i<-1?r[e++]=this.DV+i:i>0&&(r[e++]=i),r.t=e,r.clamp()},wr.prototype.multiplyTo=function ICe(n,r){var e=this.abs(),i=n.abs(),o=e.t;for(r.t=o+i.t;--o>=0;)r[o]=0;for(o=0;o=0;)n[e]=0;for(e=0;e=r.DV&&(n[e+r.t]-=r.DV,n[e+r.t+1]=1)}n.t>0&&(n[n.t-1]+=r.am(e,r[e],n,2*e,0,1)),n.s=0,n.clamp()},wr.prototype.divRemTo=function RCe(n,r,e){var i=n.abs();if(!(i.t<=0)){var o=this.abs();if(o.t0?(i.lShiftTo(d,a),o.lShiftTo(d,e)):(i.copyTo(a),o.copyTo(e));var f=a.t,C=a[f-1];if(0!=C){var M=C*(1<1?a[f-2]>>this.F2:0),T=this.FV/M,F=(1<=0&&(e[e.t++]=1,e.subTo(Pe,e)),wr.ONE.dlShiftTo(f,Pe),Pe.subTo(a,a);a.t=0;){var Ne=e[--ce]==C?this.DM:Math.floor(e[ce]*T+(e[ce-1]+pe)*F);if((e[ce]+=a.am(0,Ne,e,fe,0,f))0&&e.rShiftTo(d,e),s<0&&wr.ZERO.subTo(e,e)}}},wr.prototype.invDigit=function zCe(){if(this.t<1)return 0;var n=this[0];if(0==(1&n))return 0;var r=3&n;return(r=(r=(r=(r=r*(2-(15&n)*r)&15)*(2-(255&n)*r)&255)*(2-((65535&n)*r&65535))&65535)*(2-n*r%this.DV)%this.DV)>0?this.DV-r:-r},wr.prototype.isEven=function QCe(){return 0==(this.t>0?1&this[0]:this.s)},wr.prototype.exp=function KCe(n,r){if(n>4294967295||n<1)return wr.ONE;var e=bd(),i=bd(),o=r.convert(this),a=eB(n)-1;for(o.copyTo(e);--a>=0;)if(r.sqrTo(e,i),(n&1<0)r.mulTo(i,o,e);else{var s=e;e=i,i=s}return r.revert(e)},wr.prototype.toString=function wCe(n){if(this.s<0)return"-"+this.negate().toString(n);var r;if(16==n)r=4;else if(8==n)r=3;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return this.toRadix(n);r=2}var i,e=(1<0)for(l>l)>0&&(o=!0,a=_A(i));s>=0;)l>(l+=this.DB-r)):(i=this[s]>>(l-=r)&e,l<=0&&(l+=this.DB,--s)),i>0&&(o=!0),o&&(a+=_A(i));return o?a:"0"},wr.prototype.negate=function xCe(){var n=bd();return wr.ZERO.subTo(this,n),n},wr.prototype.abs=function MCe(){return this.s<0?this.negate():this},wr.prototype.compareTo=function SCe(n){var r=this.s-n.s;if(0!=r)return r;var e=this.t;if(0!=(r=e-n.t))return this.s<0?-r:r;for(;--e>=0;)if(0!=(r=this[e]-n[e]))return r;return 0},wr.prototype.bitLength=function TCe(){return this.t<=0?0:this.DB*(this.t-1)+eB(this[this.t-1]^this.s&this.DM)},wr.prototype.mod=function BCe(n){var r=bd();return this.abs().divRemTo(n,null,r),this.s<0&&r.compareTo(wr.ZERO)>0&&n.subTo(r,r),r},wr.prototype.modPowInt=function qCe(n,r){var e;return e=n<256||r.isEven()?new oS(r):new aS(r),this.exp(n,e)},wr.ZERO=Ex(0),wr.ONE=Ex(1),r3.prototype.convert=EJ,r3.prototype.revert=EJ,r3.prototype.mulTo=function NAe(n,r,e){n.multiplyTo(r,e)},r3.prototype.sqrTo=function HAe(n,r){n.squareTo(r)},wP.prototype.convert=function jAe(n){if(n.s<0||n.t>2*this.m.t)return n.mod(this.m);if(n.compareTo(this.m)<0)return n;var r=bd();return n.copyTo(r),this.reduce(r),r},wP.prototype.revert=function $Ae(n){return n},wP.prototype.reduce=function YAe(n){for(n.drShiftTo(this.m.t-1,this.r2),n.t>this.m.t+1&&(n.t=this.m.t+1,n.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);n.compareTo(this.r2)<0;)n.dAddOffset(1,this.m.t+1);for(n.subTo(this.r2,n);n.compareTo(this.m)>=0;)n.subTo(this.m,n)},wP.prototype.mulTo=function WAe(n,r,e){n.multiplyTo(r,e),this.reduce(e)},wP.prototype.sqrTo=function GAe(n,r){n.squareTo(r),this.reduce(r)};var tB,fv,Om,B_=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],JAe=(1<<26)/B_[B_.length-1];function pV(){this.i=0,this.j=0,this.S=new Array}function IJ(){!function rwe(n){fv[Om++]^=255&n,fv[Om++]^=n>>8&255,fv[Om++]^=n>>16&255,fv[Om++]^=n>>24&255,Om>=256&&(Om-=256)}((new Date).getTime())}if(wr.prototype.chunkSize=function tAe(n){return Math.floor(Math.LN2*this.DB/Math.log(n))},wr.prototype.toRadix=function iAe(n){if(null==n&&(n=10),0==this.signum()||n<2||n>36)return"0";var r=this.chunkSize(n),e=Math.pow(n,r),i=Ex(e),o=bd(),a=bd(),s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(e+a.intValue()).toString(n).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(n)+s},wr.prototype.fromRadix=function rAe(n,r){this.fromInt(0),null==r&&(r=10);for(var e=this.chunkSize(r),i=Math.pow(r,e),o=!1,a=0,s=0,l=0;l=e&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(r,a)),this.dAddOffset(s,0)),o&&wr.ZERO.subTo(this,this)},wr.prototype.fromNumber=function oAe(n,r,e){if("number"==typeof r)if(n<2)this.fromInt(1);else for(this.fromNumber(n,e),this.testBit(n-1)||this.bitwiseTo(wr.ONE.shiftLeft(n-1),uV,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>n&&this.subTo(wr.ONE.shiftLeft(n-1),this);else{var i=new Array,o=7&n;i.length=1+(n>>3),r.nextBytes(i),o>0?i[0]&=(1<>=this.DB;if(n.t>=this.DB;i+=this.s}else{for(i+=this.s;e>=this.DB;i+=n.s}r.s=i<0?-1:0,i>0?r[e++]=i:i<-1&&(r[e++]=this.DV+i),r.t=e,r.clamp()},wr.prototype.dMultiply=function BAe(n){this[this.t]=this.am(0,n-1,this,0,0,this.t),++this.t,this.clamp()},wr.prototype.dAddOffset=function LAe(n,r){if(0!=n){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=n;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},wr.prototype.multiplyLowerTo=function UAe(n,r,e){var o,i=Math.min(this.t+n.t,r);for(e.s=0,e.t=i;i>0;)e[--i]=0;for(o=e.t-this.t;i=0;)e[i]=0;for(i=Math.max(r-this.t,0);i0)if(0==r)e=this[0]%n;else for(var i=this.t-1;i>=0;--i)e=(r*e+this[i])%n;return e},wr.prototype.millerRabin=function ewe(n){var r=this.subtract(wr.ONE),e=r.getLowestSetBit();if(e<=0)return!1;var i=r.shiftRight(e);(n=n+1>>1)>B_.length&&(n=B_.length);for(var o=bd(),a=0;a>24},wr.prototype.shortValue=function eAe(){return 0==this.t?this.s:this[0]<<16>>16},wr.prototype.signum=function nAe(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},wr.prototype.toByteArray=function aAe(){var n=this.t,r=new Array;r[0]=this.s;var i,e=this.DB-n*this.DB%8,o=0;if(n-- >0)for(e>e)!=(this.s&this.DM)>>e&&(r[o++]=i|this.s<=0;)e<8?(i=(this[n]&(1<>(e+=this.DB-8)):(i=this[n]>>(e-=8)&255,e<=0&&(e+=this.DB,--n)),0!=(128&i)&&(i|=-256),0==o&&(128&this.s)!=(128&i)&&++o,(o>0||i!=this.s)&&(r[o++]=i);return r},wr.prototype.equals=function sAe(n){return 0==this.compareTo(n)},wr.prototype.min=function lAe(n){return this.compareTo(n)<0?this:n},wr.prototype.max=function cAe(n){return this.compareTo(n)>0?this:n},wr.prototype.and=function pAe(n){var r=bd();return this.bitwiseTo(n,uAe,r),r},wr.prototype.or=function hAe(n){var r=bd();return this.bitwiseTo(n,uV,r),r},wr.prototype.xor=function fAe(n){var r=bd();return this.bitwiseTo(n,OJ,r),r},wr.prototype.andNot=function mAe(n){var r=bd();return this.bitwiseTo(n,kJ,r),r},wr.prototype.not=function gAe(){for(var n=bd(),r=0;r=this.t?0!=this.s:0!=(this[r]&1<1){var C=bd();for(a.sqrTo(s[1],C);l<=f;)s[l]=bd(),a.mulTo(C,s[l-2],s[l]),l+=2}var T,ce,M=n.t-1,F=!0,pe=bd();for(e=eB(n[M])-1;M>=0;){for(e>=d?T=n[M]>>e-d&f:(T=(n[M]&(1<0&&(T|=n[M-1]>>this.DB+e-d)),l=i;0==(1&T);)T>>=1,--l;if((e-=l)<0&&(e+=this.DB,--M),F)s[T].copyTo(o),F=!1;else{for(;l>1;)a.sqrTo(o,pe),a.sqrTo(pe,o),l-=2;l>0?a.sqrTo(o,pe):(ce=o,o=pe,pe=ce),a.mulTo(pe,s[T],o)}for(;M>=0&&0==(n[M]&1<=0?(e.subTo(i,e),r&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(e,i),r&&s.subTo(o,s),l.subTo(a,l))}return 0!=i.compareTo(wr.ONE)?wr.ZERO:l.compareTo(n)>=0?l.subtract(n):l.signum()<0?(l.addTo(n,l),l.signum()<0?l.add(n):l):l},wr.prototype.pow=function VAe(n){return this.exp(n,new r3)},wr.prototype.gcd=function KAe(n){var r=this.s<0?this.negate():this.clone(),e=n.s<0?n.negate():n.clone();if(r.compareTo(e)<0){var i=r;r=e,e=i}var o=r.getLowestSetBit(),a=e.getLowestSetBit();if(a<0)return r;for(o0&&(r.rShiftTo(a,r),e.rShiftTo(a,e));r.signum()>0;)(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=e.getLowestSetBit())>0&&e.rShiftTo(o,e),r.compareTo(e)>=0?(r.subTo(e,r),r.rShiftTo(1,r)):(e.subTo(r,e),e.rShiftTo(1,e));return a>0&&e.lShiftTo(a,e),e},wr.prototype.isProbablePrime=function ZAe(n){var r,e=this.abs();if(1==e.t&&e[0]<=B_[B_.length-1]){for(r=0;r>>8,fv[Om++]=255&bb;Om=0,IJ()}function owe(){if(null==tB){for(IJ(),(tB=function iwe(){return new pV}()).init(fv),Om=0;Om>24,(16711680&o)>>16,(65280&o)>>8,255&o]))),o+=1;return i}function Ul(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function L_(n,r){this.x=r,this.q=n}function vg(n,r,e,i){this.curve=n,this.x=r,this.y=e,this.z=i??wr.ONE,this.zinv=null}function Ix(n,r,e){this.q=n,this.a=this.fromBigInteger(r),this.b=this.fromBigInteger(e),this.infinity=new vg(this,null,null)}xP.prototype.nextBytes=function awe(n){var r;for(r=0;r0&&r.length>0))throw"Invalid RSA public key";this.n=o3(n,16),this.e=parseInt(r,16)}},Ul.prototype.encrypt=function uwe(n){var r=function swe(n,r){if(r=0&&r>0;){var o=n.charCodeAt(i--);o<128?e[--r]=o:o>127&&o<2048?(e[--r]=63&o|128,e[--r]=o>>6|192):(e[--r]=63&o|128,e[--r]=o>>6&63|128,e[--r]=o>>12|224)}e[--r]=0;for(var a=new xP,s=new Array;r>2;){for(s[0]=0;0==s[0];)a.nextBytes(s);e[--r]=s[0]}return e[--r]=2,e[--r]=0,new wr(e)}(n,this.n.bitLength()+7>>3);if(null==r)return null;var e=this.doPublic(r);if(null==e)return null;var i=e.toString(16);return 0==(1&i.length)?i:"0"+i},Ul.prototype.encryptOAEP=function pwe(n,r,e){var i=function lwe(n,r,e,i){var o=Vn.crypto.MessageDigest,a=Vn.crypto.Util,s=null;if(e||(e="sha1"),"string"==typeof e&&(s=o.getCanonicalAlgName(e),i=o.getHashLength(s),e=function(ce){return sS(a.hashHex(vA(ce),s))}),n.length+2*i+2>r)throw"Message too long for RSA";var d,l="";for(d=0;d>3,r,e);if(null==i)return null;var o=this.doPublic(i);if(null==o)return null;var a=o.toString(16);return 0==(1&a.length)?a:"0"+a},Ul.prototype.type="RSA",L_.prototype.equals=function hwe(n){return n==this||this.q.equals(n.q)&&this.x.equals(n.x)},L_.prototype.toBigInteger=function fwe(){return this.x},L_.prototype.negate=function mwe(){return new L_(this.q,this.x.negate().mod(this.q))},L_.prototype.add=function gwe(n){return new L_(this.q,this.x.add(n.toBigInteger()).mod(this.q))},L_.prototype.subtract=function _we(n){return new L_(this.q,this.x.subtract(n.toBigInteger()).mod(this.q))},L_.prototype.multiply=function vwe(n){return new L_(this.q,this.x.multiply(n.toBigInteger()).mod(this.q))},L_.prototype.square=function bwe(){return new L_(this.q,this.x.square().mod(this.q))},L_.prototype.divide=function ywe(n){return new L_(this.q,this.x.multiply(n.toBigInteger().modInverse(this.q)).mod(this.q))},vg.prototype.getX=function Cwe(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},vg.prototype.getY=function Awe(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},vg.prototype.equals=function wwe(n){return n==this||(this.isInfinity()?n.isInfinity():n.isInfinity()?this.isInfinity():!!n.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(n.z)).mod(this.curve.q).equals(wr.ZERO)&&n.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(n.z)).mod(this.curve.q).equals(wr.ZERO))},vg.prototype.isInfinity=function xwe(){return null==this.x&&null==this.y||this.z.equals(wr.ZERO)&&!this.y.toBigInteger().equals(wr.ZERO)},vg.prototype.negate=function Mwe(){return new vg(this.curve,this.x,this.y.negate(),this.z)},vg.prototype.add=function Swe(n){if(this.isInfinity())return n;if(n.isInfinity())return this;var r=n.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(n.z)).mod(this.curve.q),e=n.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(n.z)).mod(this.curve.q);if(wr.ZERO.equals(e))return wr.ZERO.equals(r)?this.twice():this.curve.getInfinity();var i=new wr("3"),o=this.x.toBigInteger(),a=this.y.toBigInteger(),d=(n.x.toBigInteger(),n.y.toBigInteger(),e.square()),f=d.multiply(e),C=o.multiply(d),M=r.square().multiply(this.z),T=M.subtract(C.shiftLeft(1)).multiply(n.z).subtract(f).multiply(e).mod(this.curve.q),F=C.multiply(i).multiply(r).subtract(a.multiply(f)).subtract(M.multiply(r)).multiply(n.z).add(r.multiply(f)).mod(this.curve.q),pe=f.multiply(this.z).multiply(n.z).mod(this.curve.q);return new vg(this.curve,this.curve.fromBigInteger(T),this.curve.fromBigInteger(F),pe)},vg.prototype.twice=function Twe(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var n=new wr("3"),r=this.x.toBigInteger(),e=this.y.toBigInteger(),i=e.multiply(this.z),o=i.multiply(e).mod(this.curve.q),a=this.curve.a.toBigInteger(),s=r.square().multiply(n);wr.ZERO.equals(a)||(s=s.add(this.z.square().multiply(a)));var l=(s=s.mod(this.curve.q)).square().subtract(r.shiftLeft(3).multiply(o)).shiftLeft(1).multiply(i).mod(this.curve.q),d=s.multiply(n).multiply(r).subtract(o.shiftLeft(1)).shiftLeft(2).multiply(o).subtract(s.square().multiply(s)).mod(this.curve.q),f=i.square().multiply(i).shiftLeft(3).mod(this.curve.q);return new vg(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(d),f)},vg.prototype.multiply=function Dwe(n){if(this.isInfinity())return this;if(0==n.signum())return this.curve.getInfinity();var a,r=n,e=r.multiply(new wr("3")),i=this.negate(),o=this;for(a=e.bitLength()-2;a>0;--a){o=o.twice();var s=e.testBit(a);s!=r.testBit(a)&&(o=o.add(s?this:i))}return o},vg.prototype.multiplyTwo=function Pwe(n,r,e){var i;i=n.bitLength()>e.bitLength()?n.bitLength()-1:e.bitLength()-1;for(var o=this.curve.getInfinity(),a=this.add(r);i>=0;)o=o.twice(),n.testBit(i)?o=e.testBit(i)?o.add(a):o.add(this):e.testBit(i)&&(o=o.add(r)),--i;return o},Ix.prototype.getQ=function Owe(){return this.q},Ix.prototype.getA=function kwe(){return this.a},Ix.prototype.getB=function Ewe(){return this.b},Ix.prototype.equals=function Iwe(n){return n==this||this.q.equals(n.q)&&this.a.equals(n.a)&&this.b.equals(n.b)},Ix.prototype.getInfinity=function Fwe(){return this.infinity},Ix.prototype.fromBigInteger=function Rwe(n){return new L_(this.q,n)},Ix.prototype.decodePointHex=function Bwe(n){switch(parseInt(n.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:default:return null;case 4:case 6:case 7:var r=(n.length-2)/2,e=n.substr(2,r),i=n.substr(r+2,r);return new vg(this,this.fromBigInteger(new wr(e,16)),this.fromBigInteger(new wr(i,16)))}};var NJ=function(){var i=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),o=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),a={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function s(M,T,F){return T?a[T]:String.fromCharCode(parseInt(F,16))}var l=new String(""),C=Object.hasOwnProperty;return function(M,T){var pe,F=M.match(i),ce=F[0],fe=!1;"{"===ce?pe={}:"["===ce?pe=[]:(pe=[],fe=!0);for(var Pe,Ne=[pe],Ge=1-fe,lt=F.length;Ge=0;)delete Nn[ii[Fn]]}return T.call(Ot,tn,Nn)};pe=Qt({"":pe},"")}return pe}}();(typeof Vn>"u"||!Vn)&&(Vn={}),(typeof Vn.asn1>"u"||!Vn.asn1)&&(Vn.asn1={}),Vn.asn1.ASN1Util=new function(){this.integerToByteHex=function(n){var r=n.toString(16);return r.length%2==1&&(r="0"+r),r},this.bigIntToMinTwosComplementsHex=function(n){var r=n.toString(16);if("-"!=r.substr(0,1))r.length%2==1?r="0"+r:r.match(/^[0-7]/)||(r="00"+r);else{var i=r.substr(1).length;i%2==1?i+=1:r.match(/^[0-7]/)||(i+=2);for(var o="",a=0;a"u"||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var a=this.hV.length/2,s=a.toString(16);if(s.length%2==1&&(s="0"+s),a<128)return s;var l=s.length/2;if(l>15)throw"ASN.1 length too long to represent by 8x: n = "+a.toString(16);return(128+l).toString(16)+s},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Vn.asn1.DERAbstractString=function(n){Vn.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(i){this.hTLV=null,this.isModified=!0,this.s=i,this.hV=HJ(this.s).toLowerCase()},this.setStringHex=function(i){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&("string"==typeof n?this.setString(n):typeof n.str<"u"?this.setString(n.str):typeof n.hex<"u"&&this.setStringHex(n.hex))},Sh.lang.extend(Vn.asn1.DERAbstractString,Vn.asn1.ASN1Object),Vn.asn1.DERAbstractTime=function(n){Vn.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(i){return utc=i.getTime()+6e4*i.getTimezoneOffset(),new Date(utc)},this.formatDate=function(i,o,a){var s=this.zeroPadding,l=this.localDateToUTC(i),d=String(l.getFullYear());"utc"==o&&(d=d.substr(2,2));var pe=d+s(String(l.getMonth()+1),2)+s(String(l.getDate()),2)+s(String(l.getHours()),2)+s(String(l.getMinutes()),2)+s(String(l.getSeconds()),2);if(!0===a){var ce=l.getMilliseconds();if(0!=ce){var fe=s(String(ce),3);pe=pe+"."+(fe=fe.replace(/[0]+$/,""))}}return pe+"Z"},this.zeroPadding=function(i,o){return i.length>=o?i:new Array(o-i.length+1).join("0")+i},this.getString=function(){return this.s},this.setString=function(i){this.hTLV=null,this.isModified=!0,this.s=i,this.hV=Fx(i)},this.setByDateValue=function(i,o,a,s,l,d){var f=new Date(Date.UTC(i,o-1,a,s,l,d,0));this.setByDate(f)},this.getFreshValueHex=function(){return this.hV}},Sh.lang.extend(Vn.asn1.DERAbstractTime,Vn.asn1.ASN1Object),Vn.asn1.DERAbstractStructured=function(n){Vn.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof n<"u"&&typeof n.array<"u"&&(this.asn1Array=n.array)},Sh.lang.extend(Vn.asn1.DERAbstractStructured,Vn.asn1.ASN1Object),Vn.asn1.DERBoolean=function(){Vn.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Sh.lang.extend(Vn.asn1.DERBoolean,Vn.asn1.ASN1Object),Vn.asn1.DERInteger=function(n){Vn.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(r){this.hTLV=null,this.isModified=!0,this.hV=Vn.asn1.ASN1Util.bigIntToMinTwosComplementsHex(r)},this.setByInteger=function(r){var e=new wr(String(r),10);this.setByBigInteger(e)},this.setValueHex=function(r){this.hV=r},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.bigint<"u"?this.setByBigInteger(n.bigint):typeof n.int<"u"?this.setByInteger(n.int):"number"==typeof n?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},Sh.lang.extend(Vn.asn1.DERInteger,Vn.asn1.ASN1Object),Vn.asn1.DERBitString=function(n){if(void 0!==n&&typeof n.obj<"u"){var r=Vn.asn1.ASN1Util.newObject(n.obj);n.hex="00"+r.getEncodedHex()}Vn.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,i){if(e<0||7"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=Fx(this.s)),this.hV},void 0!==n&&(void 0!==n.str?this.setString(n.str):"string"==typeof n&&n.match(/^[0-9]{12}Z$/)?this.setString(n):void 0!==n.hex?this.setStringHex(n.hex):void 0!==n.date&&this.setByDate(n.date))},Sh.lang.extend(Vn.asn1.DERUTCTime,Vn.asn1.DERAbstractTime),Vn.asn1.DERGeneralizedTime=function(n){Vn.asn1.DERGeneralizedTime.superclass.constructor.call(this,n),this.hT="18",this.withMillis=!1,this.setByDate=function(r){this.hTLV=null,this.isModified=!0,this.date=r,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=Fx(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=Fx(this.s)),this.hV},void 0!==n&&(void 0!==n.str?this.setString(n.str):"string"==typeof n&&n.match(/^[0-9]{14}Z$/)?this.setString(n):void 0!==n.hex?this.setStringHex(n.hex):void 0!==n.date&&this.setByDate(n.date),!0===n.millis&&(this.withMillis=!0))},Sh.lang.extend(Vn.asn1.DERGeneralizedTime,Vn.asn1.DERAbstractTime),Vn.asn1.DERSequence=function(n){Vn.asn1.DERSequence.superclass.constructor.call(this,n),this.hT="30",this.getFreshValueHex=function(){for(var r="",e=0;eo.length&&(o=i[e]);return(n=n.replace(o,"::")).slice(1,-1)}(n):n;try{return parseInt(n.substr(0,2),16)+"."+parseInt(n.substr(2,2),16)+"."+parseInt(n.substr(4,2),16)+"."+parseInt(n.substr(6,2),16)}catch{throw r}}function vV(n){for(var r=encodeURIComponent(n),e="",i=0;i"7"?"00"+n:n}qs.getLblen=function(n,r){if("8"!=n.substr(r+2,1))return 1;var e=parseInt(n.substr(r+3,1));return 0==e?-1:0=2*a||l>=200)break;i.push(d),s=d,l++}return i},qs.getNthChildIdx=function(n,r,e){return qs.getChildIdx(n,r)[e]},qs.getIdxbyList=function(n,r,e,i){var a,s,o=qs;if(0==e.length){if(void 0!==i&&n.substr(r,2)!==i)throw"checking tag doesn't match: "+n.substr(r,2)+"!="+i;return r}return a=e.shift(),s=o.getChildIdx(n,r),o.getIdxbyList(n,s[a],e,i)},qs.getTLVbyList=function(n,r,e,i){var o=qs,a=o.getIdxbyList(n,r,e);if(void 0===a)throw"can't find nthList object";if(void 0!==i&&n.substr(a,2)!=i)throw"checking tag doesn't match: "+n.substr(a,2)+"!="+i;return o.getTLV(n,a)},qs.getVbyList=function(n,r,e,i,o){var s,l,a=qs;if(void 0===(s=a.getIdxbyList(n,r,e,i)))throw"can't find nthList object";return l=a.getV(n,s),!0===o&&(l=l.substr(2)),l},qs.hextooidstr=function(n){var r=function(M,T){return M.length>=T?M:new Array(T-M.length+1).join("0")+M},e=[],i=n.substr(0,2),o=parseInt(i,16);e[0]=new String(Math.floor(o/40)),e[1]=new String(o%40);for(var a=n.substr(2),s=[],l=0;l0&&(C=C+"."+d.join(".")),C},qs.dump=function(n,r,e,i){var o=qs,a=o.getV,s=o.dump,l=o.getChildIdx,d=n;n instanceof Vn.asn1.ASN1Object&&(d=n.getEncodedHex());var f=function(Ot,tn){return Ot.length<=2*tn?Ot:Ot.substr(0,tn)+"..(total "+Ot.length/2+"bytes).."+Ot.substr(Ot.length-tn,tn)};void 0===r&&(r={ommit_long_octet:32}),void 0===e&&(e=0),void 0===i&&(i="");var C=r.ommit_long_octet;if("01"==d.substr(e,2))return"00"==(M=a(d,e))?i+"BOOLEAN FALSE\n":i+"BOOLEAN TRUE\n";if("02"==d.substr(e,2))return i+"INTEGER "+f(M=a(d,e),C)+"\n";if("03"==d.substr(e,2))return i+"BITSTRING "+f(M=a(d,e),C)+"\n";if("04"==d.substr(e,2)){var M=a(d,e);return o.isASN1HEX(M)?(T=i+"OCTETSTRING, encapsulates\n")+s(M,r,0,i+" "):i+"OCTETSTRING "+f(M,C)+"\n"}if("05"==d.substr(e,2))return i+"NULL\n";if("06"==d.substr(e,2)){var F=a(d,e),pe=Vn.asn1.ASN1Util.oidHexToInt(F),ce=Vn.asn1.x509.OID.oid2name(pe),fe=pe.replace(/\./g," ");return""!=ce?i+"ObjectIdentifier "+ce+" ("+fe+")\n":i+"ObjectIdentifier ("+fe+")\n"}if("0c"==d.substr(e,2))return i+"UTF8String '"+e_(a(d,e))+"'\n";if("13"==d.substr(e,2))return i+"PrintableString '"+e_(a(d,e))+"'\n";if("14"==d.substr(e,2))return i+"TeletexString '"+e_(a(d,e))+"'\n";if("16"==d.substr(e,2))return i+"IA5String '"+e_(a(d,e))+"'\n";if("17"==d.substr(e,2))return i+"UTCTime "+e_(a(d,e))+"\n";if("18"==d.substr(e,2))return i+"GeneralizedTime "+e_(a(d,e))+"\n";if("30"==d.substr(e,2)){if("3000"==d.substr(e,4))return i+"SEQUENCE {}\n";T=i+"SEQUENCE\n";var Ne=r;if((2==(Pe=l(d,e)).length||3==Pe.length)&&"06"==d.substr(Pe[0],2)&&"04"==d.substr(Pe[Pe.length-1],2)){ce=o.oidname(a(d,Pe[0]));var Ge=JSON.parse(JSON.stringify(r));Ge.x509ExtName=ce,Ne=Ge}for(var lt=0;lt"u"||!Vn)&&(Vn={}),(typeof Vn.lang>"u"||!Vn.lang)&&(Vn.lang={}),Vn.lang.String=function(){},"function"==typeof Buffer?(iB=function(n){return mV(new Buffer(n,"utf8").toString("base64"))},Uy=function(n){return new Buffer(nB(n),"base64").toString("utf8")}):(iB=function(n){return Pf(gV(vV(n)))},Uy=function(n){return decodeURIComponent(_V(zp(n)))}),Vn.lang.String.isInteger=function(n){return!!n.match(/^[0-9]+$/)||!!n.match(/^-[0-9]+$/)},Vn.lang.String.isHex=function(n){return!(n.length%2!=0||!n.match(/^[0-9a-f]+$/)&&!n.match(/^[0-9A-F]+$/))},Vn.lang.String.isBase64=function(n){return!(!(n=n.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||n.length%4!=0)},Vn.lang.String.isBase64URL=function(n){return!n.match(/[+/=]/)&&(n=nB(n),Vn.lang.String.isBase64(n))},Vn.lang.String.isIntegerArray=function(n){return!!(n=n.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},(typeof Vn>"u"||!Vn)&&(Vn={}),(typeof Vn.crypto>"u"||!Vn.crypto)&&(Vn.crypto={}),Vn.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:Rs.algo.MD5,sha1:Rs.algo.SHA1,sha224:Rs.algo.SHA224,sha256:Rs.algo.SHA256,sha384:Rs.algo.SHA384,sha512:Rs.algo.SHA512,ripemd160:Rs.algo.RIPEMD160},this.getDigestInfoHex=function(n,r){if(typeof this.DIGESTINFOHEAD[r]>"u")throw"alg not supported in Util.DIGESTINFOHEAD: "+r;return this.DIGESTINFOHEAD[r]+n},this.getPaddedDigestInfoHex=function(n,r,e){var i=this.getDigestInfoHex(n,r),o=e/4;if(i.length+22>o)throw"key is too short for SigAlg: keylen="+e+","+r;for(var a="0001",s="00"+i,l="",d=o-a.length-s.length,f=0;f"u"||!Vn)&&(Vn={}),(typeof Vn.crypto>"u"||!Vn.crypto)&&(Vn.crypto={}),Vn.crypto.ECDSA=function(n){var a=new xP;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(d){return new wr(d.bitLength(),a).mod(d.subtract(wr.ONE)).add(wr.ONE)},this.setNamedCurve=function(d){this.ecparams=Vn.crypto.ECParameterDB.getByName(d),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=d},this.setPrivateKeyHex=function(d){this.isPrivate=!0,this.prvKeyHex=d},this.setPublicKeyHex=function(d){this.isPublic=!0,this.pubKeyHex=d},this.getPublicKeyXYHex=function(){var d=this.pubKeyHex;if("04"!==d.substr(0,2))throw"this method supports uncompressed format(04) only";var f=this.ecparams.keylen/4;if(d.length!==2+2*f)throw"malformed public key hex length";var C={};return C.x=d.substr(2,f),C.y=d.substr(2+f),C},this.getShortNISTPCurveName=function(){var d=this.curveName;return"secp256r1"===d||"NIST P-256"===d||"P-256"===d||"prime256v1"===d?"P-256":"secp384r1"===d||"NIST P-384"===d||"P-384"===d?"P-384":null},this.generateKeyPairHex=function(){var f=this.getBigRandom(this.ecparams.n),C=this.ecparams.G.multiply(f),M=C.getX().toBigInteger(),T=C.getY().toBigInteger(),F=this.ecparams.keylen/4,pe=("0000000000"+f.toString(16)).slice(-F),Pe="04"+("0000000000"+M.toString(16)).slice(-F)+("0000000000"+T.toString(16)).slice(-F);return this.setPrivateKeyHex(pe),this.setPublicKeyHex(Pe),{ecprvhex:pe,ecpubhex:Pe}},this.signWithMessageHash=function(d){return this.signHex(d,this.prvKeyHex)},this.signHex=function(d,f){var C=new wr(f,16),M=this.ecparams.n,T=new wr(d,16);do{var F=this.getBigRandom(M),fe=this.ecparams.G.multiply(F).getX().toBigInteger().mod(M)}while(fe.compareTo(wr.ZERO)<=0);var Pe=F.modInverse(M).multiply(T.add(C.multiply(fe))).mod(M);return Vn.crypto.ECDSA.biRSSigToASN1Sig(fe,Pe)},this.sign=function(d,f){var C=f,M=this.ecparams.n,T=wr.fromByteArrayUnsigned(d);do{var F=this.getBigRandom(M),fe=this.ecparams.G.multiply(F).getX().toBigInteger().mod(M)}while(fe.compareTo(wr.ZERO)<=0);var Pe=F.modInverse(M).multiply(T.add(C.multiply(fe))).mod(M);return this.serializeSig(fe,Pe)},this.verifyWithMessageHash=function(d,f){return this.verifyHex(d,f,this.pubKeyHex)},this.verifyHex=function(d,f,C){var M,T,pe,F=Vn.crypto.ECDSA.parseSigHex(f);M=F.r,T=F.s,pe=vg.decodeFromHex(this.ecparams.curve,C);var ce=new wr(d,16);return this.verifyRaw(ce,M,T,pe)},this.verify=function(d,f,C){var M,T,pe;if(Bitcoin.Util.isArray(f)){var F=this.parseSig(f);M=F.r,T=F.s}else{if("object"!=typeof f||!f.r||!f.s)throw"Invalid value for signature";M=f.r,T=f.s}if(C instanceof vg)pe=C;else{if(!Bitcoin.Util.isArray(C))throw"Invalid format for pubkey value, must be byte array or ECPointFp";pe=vg.decodeFrom(this.ecparams.curve,C)}var ce=wr.fromByteArrayUnsigned(d);return this.verifyRaw(ce,M,T,pe)},this.verifyRaw=function(d,f,C,M){var T=this.ecparams.n,F=this.ecparams.G;if(f.compareTo(wr.ONE)<0||f.compareTo(T)>=0||C.compareTo(wr.ONE)<0||C.compareTo(T)>=0)return!1;var pe=C.modInverse(T),ce=d.multiply(pe).mod(T),fe=f.multiply(pe).mod(T);return F.multiply(ce).add(M.multiply(fe)).getX().toBigInteger().mod(T).equals(f)},this.serializeSig=function(d,f){var C=d.toByteArraySigned(),M=f.toByteArraySigned(),T=[];return T.push(2),T.push(C.length),(T=T.concat(C)).push(2),T.push(M.length),(T=T.concat(M)).unshift(T.length),T.unshift(48),T},this.parseSig=function(d){var f;if(48!=d[0])throw new Error("Signature not a valid DERSequence");if(2!=d[f=2])throw new Error("First element in signature must be a DERInteger");var C=d.slice(f+2,f+2+d[f+1]);if(2!=d[f+=2+d[f+1]])throw new Error("Second element in signature must be a DERInteger");var M=d.slice(f+2,f+2+d[f+1]);return f+=2+d[f+1],{r:wr.fromByteArrayUnsigned(C),s:wr.fromByteArrayUnsigned(M)}},this.parseSigCompact=function(d){if(65!==d.length)throw"Signature has the wrong length";var f=d[0]-27;if(f<0||f>7)throw"Invalid signature type";var C=this.ecparams.n;return{r:wr.fromByteArrayUnsigned(d.slice(1,33)).mod(C),s:wr.fromByteArrayUnsigned(d.slice(33,65)).mod(C),i:f}},this.readPKCS5PrvKeyHex=function(d){var T,F,pe,C=Vn.crypto.ECDSA.getName,M=qs.getVbyList;if(!1===qs.isASN1HEX(d))throw"not ASN.1 hex string";try{T=M(d,0,[2,0],"06"),F=M(d,0,[1],"04");try{pe=M(d,0,[3,0],"03").substr(2)}catch{}}catch{throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=C(T),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(pe),this.setPrivateKeyHex(F),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(d){var F,pe,ce,C=Vn.crypto.ECDSA.getName,M=qs.getVbyList;if(!1===qs.isASN1HEX(d))throw"not ASN.1 hex string";try{M(d,0,[1,0],"06"),F=M(d,0,[1,1],"06"),pe=M(d,0,[2,0,1],"04");try{ce=M(d,0,[2,0,2,0],"03").substr(2)}catch{}}catch{throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=C(F),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(ce),this.setPrivateKeyHex(pe),this.isPublic=!1},this.readPKCS8PubKeyHex=function(d){var F,pe,C=Vn.crypto.ECDSA.getName,M=qs.getVbyList;if(!1===qs.isASN1HEX(d))throw"not ASN.1 hex string";try{M(d,0,[0,0],"06"),F=M(d,0,[0,1],"06"),pe=M(d,0,[1],"03").substr(2)}catch{throw"malformed PKCS#8 ECC public key"}if(this.curveName=C(F),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(pe)},this.readCertPubKeyHex=function(d,f){5!==f&&(f=6);var F,pe,M=Vn.crypto.ECDSA.getName,T=qs.getVbyList;if(!1===qs.isASN1HEX(d))throw"not ASN.1 hex string";try{F=T(d,0,[0,f,0,1],"06"),pe=T(d,0,[0,f,1],"03").substr(2)}catch{throw"malformed X.509 certificate ECC public key"}if(this.curveName=M(F),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(pe)},void 0!==n&&void 0!==n.curve&&(this.curveName=n.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==n&&(void 0!==n.prv&&this.setPrivateKeyHex(n.prv),void 0!==n.pub&&this.setPublicKeyHex(n.pub))},Vn.crypto.ECDSA.parseSigHex=function(n){var r=Vn.crypto.ECDSA.parseSigHexInHexRS(n);return{r:new wr(r.r,16),s:new wr(r.s,16)}},Vn.crypto.ECDSA.parseSigHexInHexRS=function(n){var e=qs.getChildIdx,i=qs.getV;if("30"!=n.substr(0,2))throw"signature is not a ASN.1 sequence";var o=e(n,0);if(2!=o.length)throw"number of signature ASN.1 sequence elements seem wrong";var a=o[0],s=o[1];if("02"!=n.substr(a,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=n.substr(s,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:i(n,a),s:i(n,s)}},Vn.crypto.ECDSA.asn1SigToConcatSig=function(n){var r=Vn.crypto.ECDSA.parseSigHexInHexRS(n),e=r.r,i=r.s;if("00"==e.substr(0,2)&&e.length%32==2&&(e=e.substr(2)),"00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),e.length%32==30&&(e="00"+e),i.length%32==30&&(i="00"+i),e.length%32!=0)throw"unknown ECDSA sig r length error";if(i.length%32!=0)throw"unknown ECDSA sig s length error";return e+i},Vn.crypto.ECDSA.concatSigToASN1Sig=function(n){if(n.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var r=n.substr(0,n.length/2),e=n.substr(n.length/2);return Vn.crypto.ECDSA.hexRSSigToASN1Sig(r,e)},Vn.crypto.ECDSA.hexRSSigToASN1Sig=function(n,r){var e=new wr(n,16),i=new wr(r,16);return Vn.crypto.ECDSA.biRSSigToASN1Sig(e,i)},Vn.crypto.ECDSA.biRSSigToASN1Sig=function(n,r){var e=Vn.asn1,i=new e.DERInteger({bigint:n}),o=new e.DERInteger({bigint:r});return new e.DERSequence({array:[i,o]}).getEncodedHex()},Vn.crypto.ECDSA.getName=function(n){return"2a8648ce3d030107"===n?"secp256r1":"2b8104000a"===n?"secp256k1":"2b81040022"===n?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(n)?"secp256r1":-1!=="|secp256k1|".indexOf(n)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(n)?"secp384r1":null},(typeof Vn>"u"||!Vn)&&(Vn={}),(typeof Vn.crypto>"u"||!Vn.crypto)&&(Vn.crypto={}),Vn.crypto.ECParameterDB=new function(){var n={},r={};function e(i){return new wr(i,16)}this.getByName=function(i){var o=i;if(typeof r[o]<"u"&&(o=r[i]),typeof n[o]<"u")return n[o];throw"unregistered EC curve name: "+o},this.regist=function(i,o,a,s,l,d,f,C,M,T,F,pe){n[i]={};var ce=e(a),fe=e(s),Pe=e(l),Ne=e(d),Ge=e(f),lt=new Ix(ce,fe,Pe),Pt=lt.decodePointHex("04"+C+M);n[i].name=i,n[i].keylen=o,n[i].curve=lt,n[i].G=Pt,n[i].n=Ne,n[i].h=Ge,n[i].oid=F,n[i].info=pe;for(var Qt=0;Qt=2*Pt)break}var Nn={};return Nn.keyhex=Qt.substr(0,2*d[ce].keylen),Nn.ivhex=Qt.substr(2*d[ce].keylen,2*d[ce].ivlen),Nn},F=function(ce,fe,Pe,Ne){var Ge=Rs.enc.Base64.parse(ce),lt=Rs.enc.Hex.stringify(Ge);return(0,d[fe].proc)(lt,Pe,Ne)};return{version:"1.0.0",parsePKCS5PEM:function(ce){return M(ce)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(ce,fe,Pe){return T(ce,fe,Pe)},decryptKeyB64:function(ce,fe,Pe,Ne){return F(ce,fe,Pe,Ne)},getDecryptedKeyHex:function(ce,fe){var Pe=M(ce),Ge=Pe.cipher,lt=Pe.ivsalt,Pt=Pe.data,Qt=T(Ge,fe,lt);return F(Pt,Ge,Qt.keyhex,lt)},getEncryptedPKCS5PEMFromPrvKeyHex:function(ce,fe,Pe,Ne,Ge){var ii="";if((typeof Ne>"u"||null==Ne)&&(Ne="AES-256-CBC"),typeof d[Ne]>"u")throw"KEYUTIL unsupported algorithm: "+Ne;if(typeof Ge>"u"||null==Ge){var Pt=function(ce){var fe=Rs.lib.WordArray.random(ce);return Rs.enc.Hex.stringify(fe)}(d[Ne].ivlen);Ge=Pt.toUpperCase()}var tn=function(ce,fe,Pe,Ne){return(0,d[fe].eproc)(ce,Pe,Ne)}(fe,Ne,T(Ne,Pe,Ge).keyhex,Ge);return ii="-----BEGIN "+ce+" PRIVATE KEY-----\r\n",ii+="Proc-Type: 4,ENCRYPTED\r\n",ii+="DEK-Info: "+Ne+","+Ge+"\r\n",ii+="\r\n",(ii+=tn.replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+ce+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(ce){var Pe=qs.getChildIdx,Ne=qs.getV,Ge={},lt=Pe(ce,0);if(2!=lt.length)throw"malformed format: SEQUENCE(0).items != 2: "+lt.length;Ge.ciphertext=Ne(ce,lt[1]);var Pt=Pe(ce,lt[0]);if(2!=Pt.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+Pt.length;if("2a864886f70d01050d"!=Ne(ce,Pt[0]))throw"this only supports pkcs5PBES2";var Qt=Pe(ce,Pt[1]);if(2!=Pt.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+Qt.length;var Ot=Pe(ce,Qt[1]);if(2!=Ot.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+Ot.length;if("2a864886f70d0307"!=Ne(ce,Ot[0]))throw"this only supports TripleDES";Ge.encryptionSchemeAlg="TripleDES",Ge.encryptionSchemeIV=Ne(ce,Ot[1]);var tn=Pe(ce,Qt[0]);if(2!=tn.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+tn.length;if("2a864886f70d01050c"!=Ne(ce,tn[0]))throw"this only supports pkcs5PBKDF2";var Nn=Pe(ce,tn[1]);if(Nn.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+Nn.length;Ge.pbkdf2Salt=Ne(ce,Nn[0]);var ii=Ne(ce,Nn[1]);try{Ge.pbkdf2Iter=parseInt(ii,16)}catch{throw"malformed format pbkdf2Iter: "+ii}return Ge},getPBKDF2KeyHexFromParam:function(ce,fe){var Pe=Rs.enc.Hex.parse(ce.pbkdf2Salt),Ge=Rs.PBKDF2(fe,Pe,{keySize:6,iterations:ce.pbkdf2Iter});return Rs.enc.Hex.stringify(Ge)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(ce,fe){var Pe=lS(ce,"ENCRYPTED PRIVATE KEY"),Ne=this.parseHexOfEncryptedPKCS8(Pe),Ge=im.getPBKDF2KeyHexFromParam(Ne,fe),lt={};lt.ciphertext=Rs.enc.Hex.parse(Ne.ciphertext);var Pt=Rs.enc.Hex.parse(Ge),Qt=Rs.enc.Hex.parse(Ne.encryptionSchemeIV),Ot=Rs.TripleDES.decrypt(lt,Pt,{iv:Qt});return Rs.enc.Hex.stringify(Ot)},getKeyFromEncryptedPKCS8PEM:function(ce,fe){var Pe=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(ce,fe);return this.getKeyFromPlainPrivatePKCS8Hex(Pe)},parsePlainPrivatePKCS8Hex:function(ce){var fe=qs,Pe=fe.getChildIdx,Ne=fe.getV,Ge={algparam:null};if("30"!=ce.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var lt=Pe(ce,0);if(3!=lt.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=ce.substr(lt[1],2))throw"malformed PKCS8 private key(code:003)";var Pt=Pe(ce,lt[1]);if(2!=Pt.length)throw"malformed PKCS8 private key(code:004)";if("06"!=ce.substr(Pt[0],2))throw"malformed PKCS8 private key(code:005)";if(Ge.algoid=Ne(ce,Pt[0]),"06"==ce.substr(Pt[1],2)&&(Ge.algparam=Ne(ce,Pt[1])),"04"!=ce.substr(lt[2],2))throw"malformed PKCS8 private key(code:006)";return Ge.keyidx=fe.getVidx(ce,lt[2]),Ge},getKeyFromPlainPrivatePKCS8PEM:function(ce){var fe=lS(ce,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(fe)},getKeyFromPlainPrivatePKCS8Hex:function(ce){var Pe,fe=this.parsePlainPrivatePKCS8Hex(ce);if("2a864886f70d010101"==fe.algoid)Pe=new Ul;else if("2a8648ce380401"==fe.algoid)Pe=new Vn.crypto.DSA;else{if("2a8648ce3d0201"!=fe.algoid)throw"unsupported private key algorithm";Pe=new Vn.crypto.ECDSA}return Pe.readPKCS8PrvKeyHex(ce),Pe},_getKeyFromPublicPKCS8Hex:function(ce){var fe,Pe=qs.getVbyList(ce,0,[0,0],"06");if("2a864886f70d010101"===Pe)fe=new Ul;else if("2a8648ce380401"===Pe)fe=new Vn.crypto.DSA;else{if("2a8648ce3d0201"!==Pe)throw"unsupported PKCS#8 public key hex";fe=new Vn.crypto.ECDSA}return fe.readPKCS8PubKeyHex(ce),fe},parsePublicRawRSAKeyHex:function(ce){var Pe=qs.getChildIdx,Ne=qs.getV,Ge={};if("30"!=ce.substr(0,2))throw"malformed RSA key(code:001)";var lt=Pe(ce,0);if(2!=lt.length)throw"malformed RSA key(code:002)";if("02"!=ce.substr(lt[0],2))throw"malformed RSA key(code:003)";if(Ge.n=Ne(ce,lt[0]),"02"!=ce.substr(lt[1],2))throw"malformed RSA key(code:004)";return Ge.e=Ne(ce,lt[1]),Ge},parsePublicPKCS8Hex:function(ce){var fe=qs,Pe=fe.getChildIdx,Ne=fe.getV,Ge={algparam:null},lt=Pe(ce,0);if(2!=lt.length)throw"outer DERSequence shall have 2 elements: "+lt.length;var Pt=lt[0];if("30"!=ce.substr(Pt,2))throw"malformed PKCS8 public key(code:001)";var Qt=Pe(ce,Pt);if(2!=Qt.length)throw"malformed PKCS8 public key(code:002)";if("06"!=ce.substr(Qt[0],2))throw"malformed PKCS8 public key(code:003)";if(Ge.algoid=Ne(ce,Qt[0]),"06"==ce.substr(Qt[1],2)?Ge.algparam=Ne(ce,Qt[1]):"30"==ce.substr(Qt[1],2)&&(Ge.algparam={},Ge.algparam.p=fe.getVbyList(ce,Qt[1],[0],"02"),Ge.algparam.q=fe.getVbyList(ce,Qt[1],[1],"02"),Ge.algparam.g=fe.getVbyList(ce,Qt[1],[2],"02")),"03"!=ce.substr(lt[1],2))throw"malformed PKCS8 public key(code:004)";return Ge.key=Ne(ce,lt[1]).substr(2),Ge}}}();im.getKey=function(n,r,e){var tn,o=(i=qs).getChildIdx,s=i.getVbyList,l=Vn.crypto,d=l.ECDSA,f=l.DSA,C=Ul,M=lS,T=im;if(typeof C<"u"&&n instanceof C||typeof d<"u"&&n instanceof d||typeof f<"u"&&n instanceof f)return n;if(void 0!==n.curve&&void 0!==n.xy&&void 0===n.d)return new d({pub:n.xy,curve:n.curve});if(void 0!==n.curve&&void 0!==n.d)return new d({prv:n.d,curve:n.curve});if(void 0===n.kty&&void 0!==n.n&&void 0!==n.e&&void 0===n.d)return(F=new C).setPublic(n.n,n.e),F;if(void 0===n.kty&&void 0!==n.n&&void 0!==n.e&&void 0!==n.d&&void 0!==n.p&&void 0!==n.q&&void 0!==n.dp&&void 0!==n.dq&&void 0!==n.co&&void 0===n.qi)return(F=new C).setPrivateEx(n.n,n.e,n.d,n.p,n.q,n.dp,n.dq,n.co),F;if(void 0===n.kty&&void 0!==n.n&&void 0!==n.e&&void 0!==n.d&&void 0===n.p)return(F=new C).setPrivate(n.n,n.e,n.d),F;if(void 0!==n.p&&void 0!==n.q&&void 0!==n.g&&void 0!==n.y&&void 0===n.x)return(F=new f).setPublic(n.p,n.q,n.g,n.y),F;if(void 0!==n.p&&void 0!==n.q&&void 0!==n.g&&void 0!==n.y&&void 0!==n.x)return(F=new f).setPrivate(n.p,n.q,n.g,n.y,n.x),F;if("RSA"===n.kty&&void 0!==n.n&&void 0!==n.e&&void 0===n.d)return(F=new C).setPublic(zp(n.n),zp(n.e)),F;if("RSA"===n.kty&&void 0!==n.n&&void 0!==n.e&&void 0!==n.d&&void 0!==n.p&&void 0!==n.q&&void 0!==n.dp&&void 0!==n.dq&&void 0!==n.qi)return(F=new C).setPrivateEx(zp(n.n),zp(n.e),zp(n.d),zp(n.p),zp(n.q),zp(n.dp),zp(n.dq),zp(n.qi)),F;if("RSA"===n.kty&&void 0!==n.n&&void 0!==n.e&&void 0!==n.d)return(F=new C).setPrivate(zp(n.n),zp(n.e),zp(n.d)),F;if("EC"===n.kty&&void 0!==n.crv&&void 0!==n.x&&void 0!==n.y&&void 0===n.d){var ce=(pe=new d({curve:n.crv})).ecparams.keylen/4,fe=("0000000000"+zp(n.x)).slice(-ce),Pe=("0000000000"+zp(n.y)).slice(-ce);return pe.setPublicKeyHex(Ne="04"+fe+Pe),pe}if("EC"===n.kty&&void 0!==n.crv&&void 0!==n.x&&void 0!==n.y&&void 0!==n.d){ce=(pe=new d({curve:n.crv})).ecparams.keylen/4;var Ne="04"+(fe=("0000000000"+zp(n.x)).slice(-ce))+(Pe=("0000000000"+zp(n.y)).slice(-ce)),Ge=("0000000000"+zp(n.d)).slice(-ce);return pe.setPublicKeyHex(Ne),pe.setPrivateKeyHex(Ge),pe}if("pkcs5prv"===e){var Pt,lt=n,i=qs;if(9===(Pt=o(lt,0)).length)(F=new C).readPKCS5PrvKeyHex(lt);else if(6===Pt.length)(F=new f).readPKCS5PrvKeyHex(lt);else{if(!(Pt.length>2&&"04"===lt.substr(Pt[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(F=new d).readPKCS5PrvKeyHex(lt)}return F}if("pkcs8prv"===e)return T.getKeyFromPlainPrivatePKCS8Hex(n);if("pkcs8pub"===e)return T._getKeyFromPublicPKCS8Hex(n);if("x509pub"===e)return rm.getPublicKeyFromCertHex(n);if(-1!=n.indexOf("-END CERTIFICATE-",0)||-1!=n.indexOf("-END X509 CERTIFICATE-",0)||-1!=n.indexOf("-END TRUSTED CERTIFICATE-",0))return rm.getPublicKeyFromCertPEM(n);if(-1!=n.indexOf("-END PUBLIC KEY-")){var Qt=lS(n,"PUBLIC KEY");return T._getKeyFromPublicPKCS8Hex(Qt)}if(-1!=n.indexOf("-END RSA PRIVATE KEY-")&&-1==n.indexOf("4,ENCRYPTED")){var Ot=M(n,"RSA PRIVATE KEY");return T.getKey(Ot,null,"pkcs5prv")}if(-1!=n.indexOf("-END DSA PRIVATE KEY-")&&-1==n.indexOf("4,ENCRYPTED")){var Nn=s(tn=M(n,"DSA PRIVATE KEY"),0,[1],"02"),ii=s(tn,0,[2],"02"),Ht=s(tn,0,[3],"02"),nn=s(tn,0,[4],"02"),Fn=s(tn,0,[5],"02");return(F=new f).setPrivate(new wr(Nn,16),new wr(ii,16),new wr(Ht,16),new wr(nn,16),new wr(Fn,16)),F}if(-1!=n.indexOf("-END PRIVATE KEY-"))return T.getKeyFromPlainPrivatePKCS8PEM(n);if(-1!=n.indexOf("-END RSA PRIVATE KEY-")&&-1!=n.indexOf("4,ENCRYPTED")){var At=T.getDecryptedKeyHex(n,r),yn=new Ul;return yn.readPKCS5PrvKeyHex(At),yn}if(-1!=n.indexOf("-END EC PRIVATE KEY-")&&-1!=n.indexOf("4,ENCRYPTED")){var pe,F=s(tn=T.getDecryptedKeyHex(n,r),0,[1],"04"),Lt=s(tn,0,[2,0],"06"),pn=s(tn,0,[3,0],"03").substr(2);if(void 0===Vn.crypto.OID.oidhex2name[Lt])throw"undefined OID(hex) in KJUR.crypto.OID: "+Lt;return(pe=new d({curve:Vn.crypto.OID.oidhex2name[Lt]})).setPublicKeyHex(pn),pe.setPrivateKeyHex(F),pe.isPublic=!1,pe}if(-1!=n.indexOf("-END DSA PRIVATE KEY-")&&-1!=n.indexOf("4,ENCRYPTED"))return Nn=s(tn=T.getDecryptedKeyHex(n,r),0,[1],"02"),ii=s(tn,0,[2],"02"),Ht=s(tn,0,[3],"02"),nn=s(tn,0,[4],"02"),Fn=s(tn,0,[5],"02"),(F=new f).setPrivate(new wr(Nn,16),new wr(ii,16),new wr(Ht,16),new wr(nn,16),new wr(Fn,16)),F;if(-1!=n.indexOf("-END ENCRYPTED PRIVATE KEY-"))return T.getKeyFromEncryptedPKCS8PEM(n,r);throw"not supported argument"},im.generateKeypair=function(n,r){if("RSA"==n){var e=r;(i=new Ul).generate(e,"10001"),i.isPrivate=!0,i.isPublic=!0;var o=new Ul,a=i.n.toString(16),s=i.e.toString(16);return o.setPublic(a,s),o.isPrivate=!1,o.isPublic=!0,(l={}).prvKeyObj=i,l.pubKeyObj=o,l}if("EC"==n){var i,l,d=r,C=new Vn.crypto.ECDSA({curve:d}).generateKeyPairHex();return(i=new Vn.crypto.ECDSA({curve:d})).setPublicKeyHex(C.ecpubhex),i.setPrivateKeyHex(C.ecprvhex),i.isPrivate=!0,i.isPublic=!1,(o=new Vn.crypto.ECDSA({curve:d})).setPublicKeyHex(C.ecpubhex),o.isPrivate=!1,o.isPublic=!0,(l={}).prvKeyObj=i,l.pubKeyObj=o,l}throw"unknown algorithm: "+n},im.getPEM=function(n,r,e,i,o,a){var l=Vn.asn1,d=l.DERObjectIdentifier,f=l.DERInteger,C=l.ASN1Util.newObject,F=Vn.crypto,pe=F.DSA,ce=F.ECDSA,fe=Ul;function Pe(yn){return C({seq:[{int:0},{int:{bigint:yn.n}},{int:yn.e},{int:{bigint:yn.d}},{int:{bigint:yn.p}},{int:{bigint:yn.q}},{int:{bigint:yn.dmp1}},{int:{bigint:yn.dmq1}},{int:{bigint:yn.coeff}}]})}function Ne(yn){return C({seq:[{int:1},{octstr:{hex:yn.prvKeyHex}},{tag:["a0",!0,{oid:{name:yn.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+yn.pubKeyHex}}]}]})}function Ge(yn){return C({seq:[{int:0},{int:{bigint:yn.p}},{int:{bigint:yn.q}},{int:{bigint:yn.g}},{int:{bigint:yn.y}},{int:{bigint:yn.x}}]})}if((void 0!==fe&&n instanceof fe||void 0!==pe&&n instanceof pe||void 0!==ce&&n instanceof ce)&&1==n.isPublic&&(void 0===r||"PKCS8PUB"==r))return r1(Pt=new(0,l.x509.SubjectPublicKeyInfo)(n).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==r&&void 0!==fe&&n instanceof fe&&(void 0===e||null==e)&&1==n.isPrivate)return r1(Pt=Pe(n).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==r&&void 0!==ce&&n instanceof ce&&(void 0===e||null==e)&&1==n.isPrivate){var Ot=new d({name:n.curveName}).getEncodedHex(),Nn=Ne(n).getEncodedHex(),ii="";return(ii+=r1(Ot,"EC PARAMETERS"))+r1(Nn,"EC PRIVATE KEY")}if("PKCS1PRV"==r&&void 0!==pe&&n instanceof pe&&(void 0===e||null==e)&&1==n.isPrivate)return r1(Pt=Ge(n).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==r&&void 0!==fe&&n instanceof fe&&void 0!==e&&null!=e&&1==n.isPrivate){var Pt=Pe(n).getEncodedHex();return void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",Pt,e,i,a)}if("PKCS5PRV"==r&&void 0!==ce&&n instanceof ce&&void 0!==e&&null!=e&&1==n.isPrivate)return Pt=Ne(n).getEncodedHex(),void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",Pt,e,i,a);if("PKCS5PRV"==r&&void 0!==pe&&n instanceof pe&&void 0!==e&&null!=e&&1==n.isPrivate)return Pt=Ge(n).getEncodedHex(),void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",Pt,e,i,a);var Ht=function(yn,Lt){var pn=nn(yn,Lt);return new C({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:pn.pbkdf2Salt}},{int:pn.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:pn.encryptionSchemeIV}}]}]}]},{octstr:{hex:pn.ciphertext}}]}).getEncodedHex()},nn=function(yn,Lt){var hn=Rs.lib.WordArray.random(8),rn=Rs.lib.WordArray.random(8),An=Rs.PBKDF2(Lt,hn,{keySize:6,iterations:100}),Mn=Rs.enc.Hex.parse(yn),ai=Rs.TripleDES.encrypt(Mn,An,{iv:rn})+"",si={};return si.ciphertext=ai,si.pbkdf2Salt=Rs.enc.Hex.stringify(hn),si.pbkdf2Iter=100,si.encryptionSchemeAlg="DES-EDE3-CBC",si.encryptionSchemeIV=Rs.enc.Hex.stringify(rn),si};if("PKCS8PRV"==r&&null!=fe&&n instanceof fe&&1==n.isPrivate){var At=Pe(n).getEncodedHex();return Pt=C({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:At}}]}).getEncodedHex(),void 0===e||null==e?r1(Pt,"PRIVATE KEY"):r1(Nn=Ht(Pt,e),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==r&&void 0!==ce&&n instanceof ce&&1==n.isPrivate)return At=new C({seq:[{int:1},{octstr:{hex:n.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+n.pubKeyHex}}]}]}).getEncodedHex(),Pt=C({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:n.curveName}}]},{octstr:{hex:At}}]}).getEncodedHex(),void 0===e||null==e?r1(Pt,"PRIVATE KEY"):r1(Nn=Ht(Pt,e),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==r&&void 0!==pe&&n instanceof pe&&1==n.isPrivate)return At=new f({bigint:n.x}).getEncodedHex(),Pt=C({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:n.p}},{int:{bigint:n.q}},{int:{bigint:n.g}}]}]},{octstr:{hex:At}}]}).getEncodedHex(),void 0===e||null==e?r1(Pt,"PRIVATE KEY"):r1(Nn=Ht(Pt,e),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},im.getKeyFromCSRPEM=function(n){var r=lS(n,"CERTIFICATE REQUEST");return im.getKeyFromCSRHex(r)},im.getKeyFromCSRHex=function(n){var r=im.parseCSRHex(n);return im.getKey(r.p8pubkeyhex,null,"pkcs8pub")},im.parseCSRHex=function(n){var e=qs.getChildIdx,i=qs.getTLV,o={},a=n;if("30"!=a.substr(0,2))throw"malformed CSR(code:001)";var s=e(a,0);if(s.length<1)throw"malformed CSR(code:002)";if("30"!=a.substr(s[0],2))throw"malformed CSR(code:003)";var l=e(a,s[0]);if(l.length<3)throw"malformed CSR(code:004)";return o.p8pubkeyhex=i(a,l[2]),o},im.getJWKFromKey=function(n){var r={};if(n instanceof Ul&&n.isPrivate)return r.kty="RSA",r.n=Pf(n.n.toString(16)),r.e=Pf(n.e.toString(16)),r.d=Pf(n.d.toString(16)),r.p=Pf(n.p.toString(16)),r.q=Pf(n.q.toString(16)),r.dp=Pf(n.dmp1.toString(16)),r.dq=Pf(n.dmq1.toString(16)),r.qi=Pf(n.coeff.toString(16)),r;if(n instanceof Ul&&n.isPublic)return r.kty="RSA",r.n=Pf(n.n.toString(16)),r.e=Pf(n.e.toString(16)),r;if(n instanceof Vn.crypto.ECDSA&&n.isPrivate){if("P-256"!==(e=n.getShortNISTPCurveName())&&"P-384"!==e)throw"unsupported curve name for JWT: "+e;var i=n.getPublicKeyXYHex();return r.kty="EC",r.crv=e,r.x=Pf(i.x),r.y=Pf(i.y),r.d=Pf(n.prvKeyHex),r}if(n instanceof Vn.crypto.ECDSA&&n.isPublic){var e;if("P-256"!==(e=n.getShortNISTPCurveName())&&"P-384"!==e)throw"unsupported curve name for JWT: "+e;return i=n.getPublicKeyXYHex(),r.kty="EC",r.crv=e,r.x=Pf(i.x),r.y=Pf(i.y),r}throw"not supported key object"},Ul.getPosArrayOfChildrenFromHex=function(n){return qs.getChildIdx(n,0)},Ul.getHexValueArrayOfChildrenFromHex=function(n){var T,e=qs.getV,i=e(n,(T=Ul.getPosArrayOfChildrenFromHex(n))[0]),o=e(n,T[1]),a=e(n,T[2]),s=e(n,T[3]),l=e(n,T[4]),d=e(n,T[5]),f=e(n,T[6]),C=e(n,T[7]),M=e(n,T[8]);return(T=new Array).push(i,o,a,s,l,d,f,C,M),T},Ul.prototype.readPrivateKeyFromPEMString=function(n){var r=lS(n),e=Ul.getHexValueArrayOfChildrenFromHex(r);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},Ul.prototype.readPKCS5PrvKeyHex=function(n){var r=Ul.getHexValueArrayOfChildrenFromHex(n);this.setPrivateEx(r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8])},Ul.prototype.readPKCS8PrvKeyHex=function(n){var r,e,i,o,a,s,l,d,C=qs.getVbyList;if(!1===qs.isASN1HEX(n))throw"not ASN.1 hex string";try{r=C(n,0,[2,0,1],"02"),e=C(n,0,[2,0,2],"02"),i=C(n,0,[2,0,3],"02"),o=C(n,0,[2,0,4],"02"),a=C(n,0,[2,0,5],"02"),s=C(n,0,[2,0,6],"02"),l=C(n,0,[2,0,7],"02"),d=C(n,0,[2,0,8],"02")}catch{throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(r,e,i,o,a,s,l,d)},Ul.prototype.readPKCS5PubKeyHex=function(n){var r=qs,e=r.getV;if(!1===r.isASN1HEX(n))throw"keyHex is not ASN.1 hex string";var i=r.getChildIdx(n,0);if(2!==i.length||"02"!==n.substr(i[0],2)||"02"!==n.substr(i[1],2))throw"wrong hex for PKCS#5 public key";var o=e(n,i[0]),a=e(n,i[1]);this.setPublic(o,a)},Ul.prototype.readPKCS8PubKeyHex=function(n){var r=qs;if(!1===r.isASN1HEX(n))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==r.getTLVbyList(n,0,[0,0]))throw"not PKCS8 RSA public key";var e=r.getTLVbyList(n,0,[1,0]);this.readPKCS5PubKeyHex(e)},Ul.prototype.readCertPubKeyHex=function(n,r){var e,i;(e=new rm).readCertHex(n),i=e.getPublicKeyHex(),this.readPKCS8PubKeyHex(i)};var bV=new RegExp("");function zJ(n,r){for(var e="",i=r/4-n.length,o=0;o>24,(16711680&o)>>16,(65280&o)>>8,255&o])))),o+=1;return i}function $J(n){for(var r in Vn.crypto.Util.DIGESTINFOHEAD){var e=Vn.crypto.Util.DIGESTINFOHEAD[r],i=e.length;if(n.substring(0,i)==e)return[r,n.substring(i)]}return[]}function rm(){var n=qs,r=n.getChildIdx,e=n.getV,i=n.getTLV,o=n.getVbyList,a=n.getTLVbyList,s=n.getIdxbyList,l=n.getVidx,d=n.oidname,f=rm,C=lS;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==a(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return o(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return d(o(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return a(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return f.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return a(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return f.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var M=o(this.hex,0,[0,4+this.foffset,0]);return M=M.replace(/(..)/g,"%$1"),decodeURIComponent(M)},this.getNotAfter=function(){var M=o(this.hex,0,[0,4+this.foffset,1]);return M=M.replace(/(..)/g,"%$1"),decodeURIComponent(M)},this.getPublicKeyHex=function(){return n.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return s(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var M=this.getPublicKeyIdx();return s(this.hex,M,[1,0],"30")},this.getPublicKey=function(){return im.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return d(o(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return o(this.hex,0,[2],"03",!0)},this.verifySignature=function(M){var T=this.getSignatureAlgorithmName(),F=this.getSignatureValueHex(),pe=a(this.hex,0,[0],"30"),ce=new Vn.crypto.Signature({alg:T});return ce.init(M),ce.updateHex(pe),ce.verify(F)},this.parseExt=function(){if(3!==this.version)return-1;var M=s(this.hex,0,[0,7,0],"30"),T=r(this.hex,M);this.aExtInfo=new Array;for(var F=0;F0&&(f=new Array(e),(new xP).nextBytes(f),f=String.fromCharCode.apply(String,f));var C=sS(d(vA("\0\0\0\0\0\0\0\0"+i+f))),M=[];for(l=0;l>8*s-a&255),l=0;lthis.n.bitLength())return 0;var a=$J(this.doPublic(e).toString(16).replace(/^1f+00/,""));return 0!=a.length&&a[1]==Vn.crypto.Util.hashString(n,a[0])},Ul.prototype.verifyWithMessageHash=function(n,r){var e=o3(r=(r=r.replace(bV,"")).replace(/[ \n]+/g,""),16);if(e.bitLength()>this.n.bitLength())return 0;var a=$J(this.doPublic(e).toString(16).replace(/^1f+00/,""));return 0!=a.length&&a[1]==n},Ul.prototype.verifyPSS=function(n,r,e,i){var s,a=(s=vA(n),Vn.crypto.Util.hashHex(s,e));return void 0===i&&(i=-1),this.verifyWithMessageHashPSS(a,r,e,i)},Ul.prototype.verifyWithMessageHashPSS=function(n,r,e,i){var o=new wr(r,16);if(o.bitLength()>this.n.bitLength())return!1;var C,a=function(Ne){return Vn.crypto.Util.hashHex(Ne,e)},s=sS(n),l=s.length,d=this.n.bitLength()-1,f=Math.ceil(d/8);if(-1===i||void 0===i)i=l;else if(-2===i)i=f-l-2;else if(i<-2)throw"invalid salt length";if(f>8*f-d&255;if(0!=(T.charCodeAt(0)&pe))throw"bits beyond keysize not zero";var ce=jJ(F,T.length,a),fe=[];for(C=0;C"u"||!Vn)&&(Vn={}),(typeof Vn.jws>"u"||!Vn.jws)&&(Vn.jws={}),Vn.jws.JWS=function(){var e=Vn.jws.JWS.isSafeJSONString;this.parseJWS=function(i,o){if(void 0===this.parsedJWS||!o&&void 0===this.parsedJWS.sigvalH){var a=i.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(null==a)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var s=a[1],l=a[2],d=a[3],f=s+"."+l;if(this.parsedJWS={},this.parsedJWS.headB64U=s,this.parsedJWS.payloadB64U=l,this.parsedJWS.sigvalB64U=d,this.parsedJWS.si=f,!o){var C=zp(d),M=o3(C,16);this.parsedJWS.sigvalH=C,this.parsedJWS.sigvalBI=M}var T=Uy(s),F=Uy(l);if(this.parsedJWS.headS=T,this.parsedJWS.payloadS=F,!e(T,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+T}}},Vn.jws.JWS.sign=function(n,r,e,i,o){var ce,fe,Pe,l=Vn.jws.JWS,d=l.readSafeJSONString,f=l.isSafeJSONString,C=Vn.crypto,T=C.Mac,F=C.Signature,pe=JSON;if("string"!=typeof r&&"object"!=typeof r)throw"spHeader must be JSON string or object: "+r;if("object"==typeof r&&(ce=pe.stringify(fe=r)),"string"==typeof r){if(!f(ce=r))throw"JWS Head is not safe JSON string: "+ce;fe=d(ce)}if(Pe=e,"object"==typeof e&&(Pe=pe.stringify(e)),(""==n||null==n)&&void 0!==fe.alg&&(n=fe.alg),""!=n&&null!=n&&void 0===fe.alg&&(fe.alg=n,ce=pe.stringify(fe)),n!==fe.alg)throw"alg and sHeader.alg doesn't match: "+n+"!="+fe.alg;var Ne=null;if(void 0===l.jwsalg2sigalg[n])throw"unsupported alg name: "+n;Ne=l.jwsalg2sigalg[n];var Pt=iB(ce)+"."+iB(Pe),Qt="";if("Hmac"==Ne.substr(0,4)){if(void 0===i)throw"mac key shall be specified for HS* alg";var Ot=new T({alg:Ne,prov:"cryptojs",pass:i});Ot.updateString(Pt),Qt=Ot.doFinal()}else if(-1!=Ne.indexOf("withECDSA"))(tn=new F({alg:Ne})).init(i,o),tn.updateString(Pt),hASN1Sig=tn.sign(),Qt=Vn.crypto.ECDSA.asn1SigToConcatSig(hASN1Sig);else if("none"!=Ne){var tn;(tn=new F({alg:Ne})).init(i,o),tn.updateString(Pt),Qt=tn.sign()}return Pt+"."+Pf(Qt)},Vn.jws.JWS.verify=function(n,r,e){var M,a=Vn.jws.JWS,s=a.readSafeJSONString,l=Vn.crypto,d=l.ECDSA,f=l.Mac,C=l.Signature;M=Ul;var T=n.split(".");if(3!==T.length)return!1;var Ge,ce=T[0]+"."+T[1],fe=zp(T[2]),Pe=s(Uy(T[0])),Ne=null;if(void 0===Pe.alg)throw"algorithm not specified in header";if(Ge=(Ne=Pe.alg).substr(0,2),null!=e&&"[object Array]"===Object.prototype.toString.call(e)&&e.length>0&&-1==(":"+e.join(":")+":").indexOf(":"+Ne+":"))throw"algorithm '"+Ne+"' not accepted in the list";if("none"!=Ne&&null===r)throw"key shall be specified to verify.";if("string"==typeof r&&-1!=r.indexOf("-----BEGIN ")&&(r=im.getKey(r)),!("RS"!=Ge&&"PS"!=Ge||r instanceof M))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==Ge&&!(r instanceof d))throw"key shall be a ECDSA obj for ES* algs";var Pt=null;if(void 0===a.jwsalg2sigalg[Pe.alg])throw"unsupported alg name: "+Ne;if("none"==(Pt=a.jwsalg2sigalg[Ne]))throw"not supported";if("Hmac"==Pt.substr(0,4)){if(void 0===r)throw"hexadecimal key shall be specified for HMAC";var Ot=new f({alg:Pt,pass:r});return Ot.updateString(ce),fe==Ot.doFinal()}if(-1!=Pt.indexOf("withECDSA")){var Nn,tn=null;try{tn=d.concatSigToASN1Sig(fe)}catch{return!1}return(Nn=new C({alg:Pt})).init(r),Nn.updateString(ce),Nn.verify(tn)}return(Nn=new C({alg:Pt})).init(r),Nn.updateString(ce),Nn.verify(fe)},Vn.jws.JWS.parse=function(n){var o,a,r=n.split("."),e={};if(2!=r.length&&3!=r.length)throw"malformed sJWS: wrong number of '.' splitted elements";return o=r[1],3==r.length&&(a=r[2]),e.headerObj=Vn.jws.JWS.readSafeJSONString(Uy(r[0])),e.payloadObj=Vn.jws.JWS.readSafeJSONString(Uy(o)),e.headerPP=JSON.stringify(e.headerObj,null," "),e.payloadPP=null==e.payloadObj?Uy(o):JSON.stringify(e.payloadObj,null," "),void 0!==a&&(e.sigHex=zp(a)),e},Vn.jws.JWS.verifyJWT=function(n,r,e){var o=Vn.jws,a=o.JWS,s=a.readSafeJSONString,l=a.inArray,d=a.includedArray,f=n.split("."),C=f[0],M=f[1],pe=(zp(f[2]),s(Uy(C))),ce=s(Uy(M));if(void 0===pe.alg)return!1;if(void 0===e.alg)throw"acceptField.alg shall be specified";if(!l(pe.alg,e.alg)||void 0!==ce.iss&&"object"==typeof e.iss&&!l(ce.iss,e.iss)||void 0!==ce.sub&&"object"==typeof e.sub&&!l(ce.sub,e.sub))return!1;if(void 0!==ce.aud&&"object"==typeof e.aud)if("string"==typeof ce.aud){if(!l(ce.aud,e.aud))return!1}else if("object"==typeof ce.aud&&!d(ce.aud,e.aud))return!1;var fe=o.IntDate.getNow();return void 0!==e.verifyAt&&"number"==typeof e.verifyAt&&(fe=e.verifyAt),(void 0===e.gracePeriod||"number"!=typeof e.gracePeriod)&&(e.gracePeriod=0),!(void 0!==ce.exp&&"number"==typeof ce.exp&&ce.exp+e.gracePeriod{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,o){return new this.SchedulerAction(this,e).schedule(o,i)}}return n.now=()=>Date.now(),n})();class yb extends YJ{constructor(r,e=YJ.now){super(r,()=>yb.delegate&&yb.delegate!==this?yb.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(r,e=0,i){return yb.delegate&&yb.delegate!==this?yb.delegate.schedule(r,e,i):super.schedule(r,e,i)}flush(r){const{actions:e}=this;if(this.active)return void e.push(r);let i;this.active=!0;do{if(i=r.execute(r.state,r.delay))break}while(r=e.shift());if(this.active=!1,i){for(;r=e.shift();)r.unsubscribe();throw i}}}const yV=new class Kwe extends yb{}(class Qwe extends rB{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}schedule(r,e=0){return e>0?super.schedule(r,e):(this.delay=e,this.state=r,this.scheduler.flush(this),this)}execute(r,e){return e>0||this.closed?super.execute(r,e):this._execute(r,e)}requestAsyncId(r,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(r,e,i):r.flush(this)}}),qwe=yV;function Cb(n,r){return new ze(r?e=>r.schedule(Xwe,0,{error:n,subscriber:e}):e=>e.error(n))}function Xwe({error:n,subscriber:r}){r.error(n)}class C0{constructor(r,e,i){this.kind=r,this.value=e,this.error=i,this.hasValue="N"===r}observe(r){switch(this.kind){case"N":return r.next&&r.next(this.value);case"E":return r.error&&r.error(this.error);case"C":return r.complete&&r.complete()}}do(r,e,i){switch(this.kind){case"N":return r&&r(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(r,e,i){return r&&"function"==typeof r.next?this.observe(r):this.do(r,e,i)}toObservable(){switch(this.kind){case"N":return Wo(this.value);case"E":return Cb(this.error);case"C":return XR()}throw new Error("unexpected notification kind value")}static createNext(r){return typeof r<"u"?new C0("N",r):C0.undefinedValueNotification}static createError(r){return new C0("E",void 0,r)}static createComplete(){return C0.completeNotification}}function GJ(n,r=0){return function(i){return i.lift(new Jwe(n,r))}}C0.completeNotification=new C0("C"),C0.undefinedValueNotification=new C0("N",void 0);class Jwe{constructor(r,e=0){this.scheduler=r,this.delay=e}call(r,e){return e.subscribe(new oB(r,this.scheduler,this.delay))}}class oB extends te{constructor(r,e,i=0){super(r),this.scheduler=e,this.delay=i}static dispatch(r){const{notification:e,destination:i}=r;e.observe(i),this.unsubscribe()}scheduleMessage(r){this.destination.add(this.scheduler.schedule(oB.dispatch,this.delay,new Zwe(r,this.destination)))}_next(r){this.scheduleMessage(C0.createNext(r))}_error(r){this.scheduleMessage(C0.createError(r)),this.unsubscribe()}_complete(){this.scheduleMessage(C0.createComplete()),this.unsubscribe()}}class Zwe{constructor(r,e){this.notification=r,this.destination=e}}class cS extends Fe{constructor(r=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=r<1?1:r,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(r){if(!this.isStopped){const e=this._events;e.push(r),e.length>this._bufferSize&&e.shift()}super.next(r)}nextTimeWindow(r){this.isStopped||(this._events.push(new exe(this._getNow(),r)),this._trimBufferThenGetEvents()),super.next(r)}_subscribe(r){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,a=i.length;let s;if(this.closed)throw new et;if(this.isStopped||this.hasError?s=X.EMPTY:(this.observers.push(r),s=new nt(this,r)),o&&r.add(r=new oB(r,o)),e)for(let l=0;le&&(s=Math.max(s,a-e)),s>0&&o.splice(0,s),o}}class exe{constructor(r,e){this.time=r,this.value=e}}class Yn extends Fe{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const e=super._subscribe(r);return e&&!e.closed&&r.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new et;return this._value}next(r){super.next(this._value=r)}}const dS=new yb(rB);function CV(n){return!H(n)&&n-parseFloat(n)+1>=0}function Rx(n=0,r,e){let i=-1;return CV(r)?i=Number(r)<1?1:Number(r):jt(r)&&(e=r),jt(e)||(e=dS),new ze(o=>{const a=CV(n)?n:+n-e.now();return e.schedule(txe,a,{index:0,period:i,subscriber:o})})}function txe(n){const{index:r,period:e,subscriber:i}=n;if(i.next(r),!i.closed){if(-1===e)return i.complete();n.index=r+1,this.schedule(n,e)}}function N_(n){return function(e){const i=new nxe(n),o=e.lift(i);return i.caught=o}}class nxe{constructor(r){this.selector=r}call(r,e){return e.subscribe(new ixe(r,this.selector,this.caught))}}class ixe extends ln{constructor(r,e,i){super(r),this.selector=e,this.caught=i}error(r){if(!this.isStopped){let e;try{e=this.selector(r,this.caught)}catch(a){return void super.error(a)}this._unsubscribeAndRecycle();const i=new Tt(this);this.add(i);const o=Qi(e,i);o!==i&&this.add(o)}}}function bA(){}function Md(n,r,e){return function(o){return o.lift(new rxe(n,r,e))}}class rxe{constructor(r,e,i){this.nextOrObserver=r,this.error=e,this.complete=i}call(r,e){return e.subscribe(new oxe(r,this.nextOrObserver,this.error,this.complete))}}class oxe extends te{constructor(r,e,i,o){super(r),this._tapNext=bA,this._tapError=bA,this._tapComplete=bA,this._tapError=i||bA,this._tapComplete=o||bA,W(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||bA,this._tapError=e.error||bA,this._tapComplete=e.complete||bA)}_next(r){try{this._tapNext.call(this._context,r)}catch(e){return void this.destination.error(e)}this.destination.next(r)}_error(r){try{this._tapError.call(this._context,r)}catch(e){return void this.destination.error(e)}this.destination.error(r)}_complete(){try{this._tapComplete.call(this._context)}catch(r){return void this.destination.error(r)}return this.destination.complete()}}class AV extends te{notifyNext(r,e,i,o,a){this.destination.next(e)}notifyError(r,e){this.destination.error(r)}notifyComplete(r){this.destination.complete()}}class axe extends te{constructor(r,e,i){super(),this.parent=r,this.outerValue=e,this.outerIndex=i,this.index=0}_next(r){this.parent.notifyNext(this.outerValue,r,this.outerIndex,this.index++,this)}_error(r){this.parent.notifyError(r,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function wV(n,r,e,i,o=new axe(n,e,i)){if(!o.closed)return r instanceof ze?r.subscribe(o):ki(r)(o)}function WJ(...n){if(1===n.length){if(!H(n[0]))return n[0];n=n[0]}return fr(n,void 0).lift(new sxe)}class sxe{call(r,e){return e.subscribe(new lxe(r))}}class lxe extends AV{constructor(r){super(r),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(r){this.observables.push(r)}_complete(){const r=this.observables,e=r.length;if(0===e)this.destination.complete();else{for(let i=0;io.lift(function uxe({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:r=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let o,s,a=0,l=!1,d=!1;return function(C){let M;a++,!o||l?(l=!1,o=new cS(n,r,i),M=o.subscribe(this),s=C.subscribe({next(T){o.next(T)},error(T){l=!0,o.error(T)},complete(){d=!0,s=void 0,o.complete()}}),d&&(s=void 0)):M=o.subscribe(this),this.add(()=>{a--,M.unsubscribe(),M=void 0,s&&!d&&e&&0===a&&(s.unsubscribe(),s=void 0,o=void 0)})}}(i))}const aB=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})(),KJ={};function o1(...n){let r,e;return jt(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(r=n.pop()),1===n.length&&H(n[0])&&(n=n[0]),fr(n,e).lift(new qJ(r))}class qJ{constructor(r){this.resultSelector=r}call(r,e){return e.subscribe(new pxe(r,this.resultSelector))}}class pxe extends AV{constructor(r,e){super(r),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(r){this.values.push(KJ),this.observables.push(r)}_complete(){const r=this.observables,e=r.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{let e;try{e=n()}catch(o){return void r.error(o)}return(e?vt(e):XR()).subscribe(r)})}function Zl(...n){const r=n[n.length-1];return jt(r)?(n.pop(),e=>_P(n,e,r)):e=>_P(n,e)}function XJ(n=mxe){return r=>r.lift(new hxe(n))}class hxe{constructor(r){this.errorFactory=r}call(r,e){return e.subscribe(new fxe(r,this.errorFactory))}}class fxe extends te{constructor(r,e){super(r),this.errorFactory=e,this.hasValue=!1}_next(r){this.hasValue=!0,this.destination.next(r)}_complete(){if(this.hasValue)return this.destination.complete();{let r;try{r=this.errorFactory()}catch(e){r=e}this.destination.error(r)}}}function mxe(){return new aB}function Of(n,r){const e=arguments.length>=2;return i=>i.pipe(n?Fo((o,a)=>n(o,a,i)):oe,Oa(1),e?vP(r):XJ(()=>new aB))}function JJ(n,r){const e=arguments.length>=2;return i=>i.pipe(n?Fo((o,a)=>n(o,a,i)):oe,XI(1),e?vP(r):XJ(()=>new aB))}function ZJ(n,r=!1){return e=>e.lift(new gxe(n,r))}class gxe{constructor(r,e){this.predicate=r,this.inclusive=e}call(r,e){return e.subscribe(new _xe(r,this.predicate,this.inclusive))}}class _xe extends te{constructor(r,e,i){super(r),this.predicate=e,this.inclusive=i,this.index=0}_next(r){const e=this.destination;let i;try{i=this.predicate(r,this.index++)}catch(o){return void e.error(o)}this.nextOrComplete(r,i)}nextOrComplete(r,e){const i=this.destination;Boolean(e)?i.next(r):(this.inclusive&&i.next(r),i.complete())}}function xV(n){return r=>r.lift(new vxe(n))}class vxe{constructor(r){this.value=r}call(r,e){return e.subscribe(new bxe(r,this.value))}}class bxe extends te{constructor(r,e){super(r),this.value=e}_next(r){this.destination.next(this.value)}}function sB(n){return r=>r.lift(new yxe(n))}class yxe{constructor(r){this.callback=r}call(r,e){return e.subscribe(new Cxe(r,this.callback))}}class Cxe extends te{constructor(r,e){super(r),this.add(new X(e))}}const Bc="primary",a3=Symbol("RouteTitle");class Axe{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function MP(n){return new Axe(n)}function wxe(n,r,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(r.hasChildren()||i.lengthi[a]===o)}return n===r}function tZ(n){return Array.prototype.concat.apply([],n)}function nZ(n){return n.length>0?n[n.length-1]:null}function bg(n,r){for(const e in n)n.hasOwnProperty(e)&&r(n[e],e)}function Lx(n){return nP(n)?n:WM(n)?vt(Promise.resolve(n)):Wo(n)}const Sxe={exact:function oZ(n,r,e){if(!pS(n.segments,r.segments)||!lB(n.segments,r.segments,e)||n.numberOfChildren!==r.numberOfChildren)return!1;for(const i in r.children)if(!n.children[i]||!oZ(n.children[i],r.children[i],e))return!1;return!0},subset:aZ},iZ={exact:function Txe(n,r){return zy(n,r)},subset:function Dxe(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(e=>eZ(n[e],r[e]))},ignored:()=>!0};function rZ(n,r,e){return Sxe[e.paths](n.root,r.root,e.matrixParams)&&iZ[e.queryParams](n.queryParams,r.queryParams)&&!("exact"===e.fragment&&n.fragment!==r.fragment)}function aZ(n,r,e){return sZ(n,r,r.segments,e)}function sZ(n,r,e,i){if(n.segments.length>e.length){const o=n.segments.slice(0,e.length);return!(!pS(o,e)||r.hasChildren()||!lB(o,e,i))}if(n.segments.length===e.length){if(!pS(n.segments,e)||!lB(n.segments,e,i))return!1;for(const o in r.children)if(!n.children[o]||!aZ(n.children[o],r.children[o],i))return!1;return!0}{const o=e.slice(0,n.segments.length),a=e.slice(n.segments.length);return!!(pS(n.segments,o)&&lB(n.segments,o,i)&&n.children[Bc])&&sZ(n.children[Bc],r,a,i)}}function lB(n,r,e){return r.every((i,o)=>iZ[e](n[o].parameters,i.parameters))}class uS{constructor(r,e,i){this.root=r,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=MP(this.queryParams)),this._queryParamMap}toString(){return kxe.serialize(this)}}class zc{constructor(r,e){this.segments=r,this.children=e,this.parent=null,bg(e,(i,o)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return cB(this)}}class s3{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=MP(this.parameters)),this._parameterMap}toString(){return uZ(this)}}function pS(n,r){return n.length===r.length&&n.every((e,i)=>e.path===r[i].path)}let lZ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:function(){return new SV},providedIn:"root"}),n})();class SV{parse(r){const e=new Vxe(r);return new uS(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${l3(r.root,!0)}`,i=function Fxe(n){const r=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(o=>`${dB(e)}=${dB(o)}`).join("&"):`${dB(e)}=${dB(i)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams),o="string"==typeof r.fragment?`#${function Exe(n){return encodeURI(n)}(r.fragment)}`:"";return`${e}${i}${o}`}}const kxe=new SV;function cB(n){return n.segments.map(r=>uZ(r)).join("/")}function l3(n,r){if(!n.hasChildren())return cB(n);if(r){const e=n.children[Bc]?l3(n.children[Bc],!1):"",i=[];return bg(n.children,(o,a)=>{a!==Bc&&i.push(`${a}:${l3(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function Oxe(n,r){let e=[];return bg(n.children,(i,o)=>{o===Bc&&(e=e.concat(r(i,o)))}),bg(n.children,(i,o)=>{o!==Bc&&(e=e.concat(r(i,o)))}),e}(n,(i,o)=>o===Bc?[l3(n.children[Bc],!1)]:[`${o}:${l3(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Bc]?`${cB(n)}/${e[0]}`:`${cB(n)}/(${e.join("//")})`}}function cZ(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function dB(n){return cZ(n).replace(/%3B/gi,";")}function TV(n){return cZ(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function uB(n){return decodeURIComponent(n)}function dZ(n){return uB(n.replace(/\+/g,"%20"))}function uZ(n){return`${TV(n.path)}${function Ixe(n){return Object.keys(n).map(r=>`;${TV(r)}=${TV(n[r])}`).join("")}(n.parameters)}`}const Rxe=/^[^\/()?;=#]+/;function pB(n){const r=n.match(Rxe);return r?r[0]:""}const Bxe=/^[^=?&#]+/,Nxe=/^[^&#]+/;class Vxe{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new zc([],{}):new zc([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(i[Bc]=new zc(r,e)),i}parseSegment(){const r=pB(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new ht(4009,!1);return this.capture(r),new s3(uB(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=pB(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=pB(this.remaining);o&&(i=o,this.capture(i))}r[uB(e)]=uB(i)}parseQueryParam(r){const e=function Lxe(n){const r=n.match(Bxe);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function Hxe(n){const r=n.match(Nxe);return r?r[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const o=dZ(e),a=dZ(i);if(r.hasOwnProperty(o)){let s=r[o];Array.isArray(s)||(s=[s],r[o]=s),s.push(a)}else r[o]=a}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=pB(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new ht(4010,!1);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):r&&(a=Bc);const s=this.parseChildren();e[a]=1===Object.keys(s).length?s[Bc]:new zc([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new ht(4011,!1)}}function DV(n){return n.segments.length>0?new zc([],{[Bc]:n}):n}function hB(n){const r={};for(const i of Object.keys(n.children)){const a=hB(n.children[i]);(a.segments.length>0||a.hasChildren())&&(r[i]=a)}return function Uxe(n){if(1===n.numberOfChildren&&n.children[Bc]){const r=n.children[Bc];return new zc(n.segments.concat(r.segments),r.children)}return n}(new zc(n.segments,r))}function hS(n){return n instanceof uS}function $xe(n,r,e,i,o){var a;if(0===e.length)return SP(r.root,r.root,r.root,i,o);const s=function fZ(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new hZ(!0,0,n);let r=0,e=!1;const i=n.reduce((o,a,s)=>{if("object"==typeof a&&null!=a){if(a.outlets){const l={};return bg(a.outlets,(d,f)=>{l[f]="string"==typeof d?d.split("/"):d}),[...o,{outlets:l}]}if(a.segmentPath)return[...o,a.segmentPath]}return"string"!=typeof a?[...o,a]:0===s?(a.split("/").forEach((l,d)=>{0==d&&"."===l||(0==d&&""===l?e=!0:".."===l?r++:""!=l&&o.push(l))}),o):[...o,a]},[]);return new hZ(e,r,i)}(e);if(s.toRoot())return SP(r.root,r.root,new zc([],{}),i,o);const d=function l(C){var M;const T=function Gxe(n,r,e,i){if(n.isAbsolute)return new TP(r.root,!0,0);if(-1===i)return new TP(e,e===r.root,0);return function mZ(n,r,e){let i=n,o=r,a=e;for(;a>o;){if(a-=o,i=i.parent,!i)throw new ht(4005,!1);o=i.segments.length}return new TP(i,!1,o-a)}(e,i+(c3(n.commands[0])?0:1),n.numberOfDoubleDots)}(s,r,null===(M=n.snapshot)||void 0===M?void 0:M._urlSegment,C),F=T.processChildren?u3(T.segmentGroup,T.index,s.commands):OV(T.segmentGroup,T.index,s.commands);return SP(r.root,T.segmentGroup,F,i,o)}(null===(a=n.snapshot)||void 0===a?void 0:a._lastPathIndex);return d}function c3(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function d3(n){return"object"==typeof n&&null!=n&&n.outlets}function SP(n,r,e,i,o){let s,a={};i&&bg(i,(d,f)=>{a[f]=Array.isArray(d)?d.map(C=>`${C}`):`${d}`}),s=n===r?e:pZ(n,r,e);const l=DV(hB(s));return new uS(l,a,o)}function pZ(n,r,e){const i={};return bg(n.children,(o,a)=>{i[a]=o===r?e:pZ(o,r,e)}),new zc(n.segments,i)}class hZ{constructor(r,e,i){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=i,r&&i.length>0&&c3(i[0]))throw new ht(4003,!1);const o=i.find(d3);if(o&&o!==nZ(i))throw new ht(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class TP{constructor(r,e,i){this.segmentGroup=r,this.processChildren=e,this.index=i}}function OV(n,r,e){if(n||(n=new zc([],{})),0===n.segments.length&&n.hasChildren())return u3(n,r,e);const i=function Qxe(n,r,e){let i=0,o=r;const a={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return a;const s=n.segments[o],l=e[i];if(d3(l))break;const d=`${l}`,f=i0&&void 0===d)break;if(d&&f&&"object"==typeof f&&void 0===f.outlets){if(!_Z(d,f,s))return a;i+=2}else{if(!_Z(d,{},s))return a;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(n,r,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof a&&(a=[a]),null!==a&&(o[s]=OV(n.children[s],r,a))}),bg(n.children,(a,s)=>{void 0===i[s]&&(o[s]=a)}),new zc(n.segments,o)}}function kV(n,r,e){const i=n.segments.slice(0,r);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(r[i]=kV(new zc([],{}),0,e))}),r}function gZ(n){const r={};return bg(n,(e,i)=>r[i]=`${e}`),r}function _Z(n,r,e){return n==e.path&&zy(r,e.parameters)}class yA{constructor(r,e){this.id=r,this.url=e}}class EV extends yA{constructor(r,e,i="imperative",o=null){super(r,e),this.type=0,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nx extends yA{constructor(r,e,i){super(r,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class fB extends yA{constructor(r,e,i,o){super(r,e),this.reason=i,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vZ extends yA{constructor(r,e,i,o){super(r,e),this.error=i,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class bZ extends yA{constructor(r,e,i,o){super(r,e),this.urlAfterRedirects=i,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qxe extends yA{constructor(r,e,i,o){super(r,e),this.urlAfterRedirects=i,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xxe extends yA{constructor(r,e,i,o,a){super(r,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=a,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Jxe extends yA{constructor(r,e,i,o){super(r,e),this.urlAfterRedirects=i,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zxe extends yA{constructor(r,e,i,o){super(r,e),this.urlAfterRedirects=i,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class e2e{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class t2e{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class n2e{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class i2e{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class r2e{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class o2e{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yZ{constructor(r,e,i){this.routerEvent=r,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class CZ{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=IV(r,this._root);return e?e.children.map(i=>i.value):[]}firstChild(r){const e=IV(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=FV(r,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==r)}pathFromRoot(r){return FV(r,this._root).map(e=>e.value)}}function IV(n,r){if(n===r.value)return r;for(const e of r.children){const i=IV(n,e);if(i)return i}return null}function FV(n,r){if(n===r.value)return[r];for(const e of r.children){const i=FV(n,e);if(i.length)return i.unshift(r),i}return[]}class CA{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function DP(n){const r={};return n&&n.children.forEach(e=>r[e.value.outlet]=e),r}class AZ extends CZ{constructor(r,e){super(r),this.snapshot=e,RV(this,r)}toString(){return this.snapshot.toString()}}function wZ(n,r){const e=function s2e(n,r){const s=new mB([],{},{},"",{},Bc,r,null,n.root,-1,{});return new MZ("",new CA(s,[]))}(n,r),i=new Yn([new s3("",{})]),o=new Yn({}),a=new Yn({}),s=new Yn({}),l=new Yn(""),d=new Iu(i,o,s,l,a,Bc,r,e.root);return d.snapshot=e.root,new AZ(new CA(d,[]),e)}class Iu{constructor(r,e,i,o,a,s,l,d){var f,C;this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this.title=null!==(f=null===(C=this.data)||void 0===C?void 0:C.pipe(Ct(M=>M[a3])))&&void 0!==f?f:Wo(void 0),this._futureSnapshot=d}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(Ct(r=>MP(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ct(r=>MP(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function xZ(n,r="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==r)for(i=e.length-1;i>=1;){const o=e[i],a=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(a.component)break;i--}}return function l2e(n){return n.reduce((r,e)=>{var i;return{params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...null===(i=e.routeConfig)||void 0===i?void 0:i.data,...e._resolvedData}}},{params:{},data:{},resolve:{}})}(e.slice(i))}class mB{constructor(r,e,i,o,a,s,l,d,f,C,M,T){var F;this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this.title=null===(F=this.data)||void 0===F?void 0:F[a3],this.routeConfig=d,this._urlSegment=f,this._lastPathIndex=C,this._correctedLastPathIndex=T??C,this._resolve=M}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=MP(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=MP(this.queryParams)),this._queryParamMap}toString(){const r=this.url.map(i=>i.toString()).join("/");return`Route(url:'${r}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class MZ extends CZ{constructor(r,e){super(e),this.url=r,RV(this,e)}toString(){return SZ(this._root)}}function RV(n,r){r.value._routerState=n,r.children.forEach(e=>RV(n,e))}function SZ(n){const r=n.children.length>0?` { ${n.children.map(SZ).join(", ")} } `:"";return`${n.value}${r}`}function BV(n){if(n.snapshot){const r=n.snapshot,e=n._futureSnapshot;n.snapshot=e,zy(r.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),r.fragment!==e.fragment&&n.fragment.next(e.fragment),zy(r.params,e.params)||n.params.next(e.params),function xxe(n,r){if(n.length!==r.length)return!1;for(let e=0;ezy(e.parameters,r[i].parameters))}(n.url,r.url);return e&&!(!n.parent!=!r.parent)&&(!n.parent||LV(n.parent,r.parent))}function p3(n,r,e){if(e&&n.shouldReuseRoute(r.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=r.value;const o=function d2e(n,r,e){return r.children.map(i=>{for(const o of e.children)if(n.shouldReuseRoute(i.value,o.value.snapshot))return p3(n,i,o);return p3(n,i)})}(n,r,e);return new CA(i,o)}{if(n.shouldAttach(r.value)){const a=n.retrieve(r.value);if(null!==a){const s=a.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(l=>p3(n,l)),s}}const i=function u2e(n){return new Iu(new Yn(n.url),new Yn(n.params),new Yn(n.queryParams),new Yn(n.fragment),new Yn(n.data),n.outlet,n.component,n)}(r.value),o=r.children.map(a=>p3(n,a));return new CA(i,o)}}const NV="ngNavigationCancelingError";function TZ(n,r){const{redirectTo:e,navigationBehaviorOptions:i}=hS(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,o=DZ(!1,0,r);return o.url=e,o.navigationBehaviorOptions=i,o}function DZ(n,r,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[NV]=!0,i.cancellationCode=r,e&&(i.url=e),i}function PZ(n){return OZ(n)&&hS(n.url)}function OZ(n){return n&&n[NV]}class p2e{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new h3,this.attachRef=null}}let h3=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new p2e,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const gB=!1;let HV=(()=>{class n{constructor(e,i,o,a,s){this.parentContexts=e,this.location=i,this.changeDetector=a,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Cn,this.deactivateEvents=new Cn,this.attachEvents=new Cn,this.detachEvents=new Cn,this.name=o||Bc,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.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 ht(4012,gB);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ht(4012,gB);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ht(4012,gB);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 ht(4013,gB);this._activatedRoute=e;const o=this.location,s=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,d=new h2e(e,l,o.injector);if(i&&function f2e(n){return!!n.resolveComponentFactory}(i)){const f=i.resolveComponentFactory(s);this.activated=o.createComponent(f,o.length,d)}else this.activated=o.createComponent(s,{index:o.length,injector:d,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(U(h3),U(ac),ge("name"),U(Go),U(Qg))},n.\u0275dir=Wn({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),n})();class h2e{constructor(r,e,i){this.route=r,this.childContexts=e,this.parent=i}get(r,e){return r===Iu?this.route:r===h3?this.childContexts:this.parent.get(r,e)}}let VV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["ng-component"]],standalone:!0,features:[ZQ],decls:1,vars:0,template:function(e,i){1&e&&be(0,"router-outlet")},dependencies:[HV],encapsulation:2}),n})();function kZ(n,r){var e;return n.providers&&!n._injector&&(n._injector=aR(n.providers,r,`Route: ${n.path}`)),null!==(e=n._injector)&&void 0!==e?e:r}function zV(n){const r=n.children&&n.children.map(zV),e=r?{...n,children:r}:{...n};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==Bc&&(e.component=VV),e}function a1(n){return n.outlet||Bc}function EZ(n,r){const e=n.filter(i=>a1(i)===r);return e.push(...n.filter(i=>a1(i)!==r)),e}function f3(n){var r;if(!n)return null;if(null!==(r=n.routeConfig)&&void 0!==r&&r._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const i=e.routeConfig;if(null!=i&&i._loadedInjector)return i._loadedInjector;if(null!=i&&i._injector)return i._injector}return null}class b2e{constructor(r,e,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=i,this.forwardEvent=o}activate(r){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,r),BV(this.futureState.root),this.activateChildRoutes(e,i,r)}deactivateChildRoutes(r,e,i){const o=DP(e);r.children.forEach(a=>{const s=a.value.outlet;this.deactivateRoutes(a,o[s],i),delete o[s]}),bg(o,(a,s)=>{this.deactivateRouteAndItsChildren(a,i)})}deactivateRoutes(r,e,i){const o=r.value,a=e?e.value:null;if(o===a)if(o.component){const s=i.getContext(o.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,i);else a&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const i=e.getContext(r.value.outlet),o=i&&r.value.component?i.children:e,a=DP(r);for(const s of Object.keys(a))this.deactivateRouteAndItsChildren(a[s],o);if(i&&i.outlet){const s=i.outlet.detach(),l=i.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:l})}}deactivateRouteAndOutlet(r,e){const i=e.getContext(r.value.outlet),o=i&&r.value.component?i.children:e,a=DP(r);for(const s of Object.keys(a))this.deactivateRouteAndItsChildren(a[s],o);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(r,e,i){const o=DP(e);r.children.forEach(a=>{this.activateRoutes(a,o[a.value.outlet],i),this.forwardEvent(new o2e(a.value.snapshot))}),r.children.length&&this.forwardEvent(new i2e(r.value.snapshot))}activateRoutes(r,e,i){const o=r.value,a=e?e.value:null;if(BV(o),o===a)if(o.component){const l=i.getOrCreateContext(o.outlet);this.activateChildRoutes(r,e,l.children)}else this.activateChildRoutes(r,e,i);else if(o.component){const l=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const d=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),l.children.onOutletReAttached(d.contexts),l.attachRef=d.componentRef,l.route=d.route.value,l.outlet&&l.outlet.attach(d.componentRef,d.route.value),BV(d.route.value),this.activateChildRoutes(r,null,l.children)}else{var s;const d=f3(o.snapshot),f=null!==(s=d?.get($h))&&void 0!==s?s:null;l.attachRef=null,l.route=o,l.resolver=f,l.injector=d,l.outlet&&l.outlet.activateWith(o,l.injector),this.activateChildRoutes(r,null,l.children)}}else this.activateChildRoutes(r,null,i)}}class IZ{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class _B{constructor(r,e){this.component=r,this.route=e}}function y2e(n,r,e){const i=n._root;return m3(i,r?r._root:null,e,[i.value])}function PP(n,r){const e=Symbol(),i=r.get(n,e);return i===e?"function"!=typeof n||function Ld(n){return null!==Eh(n)}(n)?r.get(n):n:i}function m3(n,r,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const a=DP(r);return n.children.forEach(s=>{(function A2e(n,r,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const a=n.value,s=r?r.value:null,l=e?e.getContext(n.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){const d=function w2e(n,r,e){if("function"==typeof e)return e(n,r);switch(e){case"pathParamsChange":return!pS(n.url,r.url);case"pathParamsOrQueryParamsChange":return!pS(n.url,r.url)||!zy(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!LV(n,r)||!zy(n.queryParams,r.queryParams);default:return!LV(n,r)}}(s,a,a.routeConfig.runGuardsAndResolvers);d?o.canActivateChecks.push(new IZ(i)):(a.data=s.data,a._resolvedData=s._resolvedData),m3(n,r,a.component?l?l.children:null:e,i,o),d&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new _B(l.outlet.component,s))}else s&&g3(r,l,o),o.canActivateChecks.push(new IZ(i)),m3(n,null,a.component?l?l.children:null:e,i,o)})(s,a[s.value.outlet],e,i.concat([s.value]),o),delete a[s.value.outlet]}),bg(a,(s,l)=>g3(s,e.getContext(l),o)),o}function g3(n,r,e){const i=DP(n),o=n.value;bg(i,(a,s)=>{g3(a,o.component?r?r.children.getContext(s):null:r,e)}),e.canDeactivateChecks.push(new _B(o.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,o))}function _3(n){return"function"==typeof n}function jV(n){return n instanceof aB||"EmptyError"===n?.name}const vB=Symbol("INITIAL_VALUE");function OP(){return xc(n=>o1(n.map(r=>r.pipe(Oa(1),Zl(vB)))).pipe(Ct(r=>{for(const e of r)if(!0!==e){if(e===vB)return vB;if(!1===e||e instanceof uS)return e}return!0}),Fo(r=>r!==vB),Oa(1)))}function FZ(n){return _e(Md(r=>{if(hS(r))throw TZ(0,r)}),Ct(r=>!0===r))}const $V={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function RZ(n,r,e,i,o){const a=YV(n,r,e);return a.matched?function V2e(n,r,e,i){const o=r.canMatch;return o&&0!==o.length?Wo(o.map(s=>{const l=PP(s,n);return Lx(function P2e(n){return n&&_3(n.canMatch)}(l)?l.canMatch(r,e):n.runInContext(()=>l(r,e)))})).pipe(OP(),FZ()):Wo(!0)}(i=kZ(r,i),r,e).pipe(Ct(s=>!0===s?a:{...$V})):Wo(a)}function YV(n,r,e){var i;if(""===r.path)return"full"===r.pathMatch&&(n.hasChildren()||e.length>0)?{...$V}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const a=(r.matcher||wxe)(e,n,r);if(!a)return{...$V};const s={};bg(a.posParams,(d,f)=>{s[f]=d.path});const l=a.consumed.length>0?{...s,...a.consumed[a.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:a.consumed,remainingSegments:e.slice(a.consumed.length),parameters:l,positionalParamSegments:null!==(i=a.posParams)&&void 0!==i?i:{}}}function bB(n,r,e,i,o="corrected"){if(e.length>0&&function j2e(n,r,e){return e.some(i=>yB(n,r,i)&&a1(i)!==Bc)}(n,e,i)){const s=new zc(r,function z2e(n,r,e,i){const o={};o[Bc]=i,i._sourceSegment=n,i._segmentIndexShift=r.length;for(const a of e)if(""===a.path&&a1(a)!==Bc){const s=new zc([],{});s._sourceSegment=n,s._segmentIndexShift=r.length,o[a1(a)]=s}return o}(n,r,i,new zc(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function $2e(n,r,e){return e.some(i=>yB(n,r,i))}(n,e,i)){const s=new zc(n.segments,function U2e(n,r,e,i,o,a){const s={};for(const l of i)if(yB(n,e,l)&&!o[a1(l)]){const d=new zc([],{});d._sourceSegment=n,d._segmentIndexShift="legacy"===a?n.segments.length:r.length,s[a1(l)]=d}return{...o,...s}}(n,r,e,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:e}}const a=new zc(n.segments,n.children);return a._sourceSegment=n,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:e}}function yB(n,r,e){return(!(n.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function BZ(n,r,e,i){return!!(a1(n)===i||i!==Bc&&yB(r,e,n))&&("**"===n.path||YV(r,n,e).matched)}function LZ(n,r,e){return 0===r.length&&!n.children[e]}const CB=!1;class AB{constructor(r){this.segmentGroup=r||null}}class NZ{constructor(r){this.urlTree=r}}function v3(n){return Cb(new AB(n))}function HZ(n){return Cb(new NZ(n))}class Q2e{constructor(r,e,i,o,a){this.injector=r,this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0}apply(){const r=bB(this.urlTree.root,[],[],this.config).segmentGroup,e=new zc(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,Bc).pipe(Ct(a=>this.createUrlTree(hB(a),this.urlTree.queryParams,this.urlTree.fragment))).pipe(N_(a=>{if(a instanceof NZ)return this.allowRedirects=!1,this.match(a.urlTree);throw a instanceof AB?this.noMatchError(a):a}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,Bc).pipe(Ct(o=>this.createUrlTree(hB(o),r.queryParams,r.fragment))).pipe(N_(o=>{throw o instanceof AB?this.noMatchError(o):o}))}noMatchError(r){return new ht(4002,CB)}createUrlTree(r,e,i){const o=DV(r);return new uS(o,e,i)}expandSegmentGroup(r,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(r,e,i).pipe(Ct(a=>new zc([],a))):this.expandSegment(r,i,e,i.segments,o,!0)}expandChildren(r,e,i){const o=[];for(const a of Object.keys(i.children))"primary"===a?o.unshift(a):o.push(a);return vt(o).pipe(Dx(a=>{const s=i.children[a],l=EZ(e,a);return this.expandSegmentGroup(r,l,s,a).pipe(Ct(d=>({segment:d,outlet:a})))}),qI((a,s)=>(a[s.outlet]=s.segment,a),{}),JJ())}expandSegment(r,e,i,o,a,s){return vt(i).pipe(Dx(l=>this.expandSegmentAgainstRoute(r,e,i,l,o,a,s).pipe(N_(f=>{if(f instanceof AB)return Wo(null);throw f}))),Of(l=>!!l),N_((l,d)=>{if(jV(l))return LZ(e,o,a)?Wo(new zc([],{})):v3(e);throw l}))}expandSegmentAgainstRoute(r,e,i,o,a,s,l){return BZ(o,e,a,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(r,e,o,a,s):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,i,o,a,s):v3(e):v3(e)}expandSegmentAgainstRouteUsingRedirect(r,e,i,o,a,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,i,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,i,o,a,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,i,o){const a=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?HZ(a):this.lineralizeSegments(i,a).pipe(Kt(s=>{const l=new zc(s,{});return this.expandSegment(r,l,e,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,i,o,a,s){const{matched:l,consumedSegments:d,remainingSegments:f,positionalParamSegments:C}=YV(e,o,a);if(!l)return v3(e);const M=this.applyRedirectCommands(d,o.redirectTo,C);return o.redirectTo.startsWith("/")?HZ(M):this.lineralizeSegments(o,M).pipe(Kt(T=>this.expandSegment(r,e,i,T.concat(f),s,!1)))}matchSegmentAgainstRoute(r,e,i,o,a){return"**"===i.path?(r=kZ(i,r),i.loadChildren?(i._loadedRoutes?Wo({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(r,i)).pipe(Ct(l=>(i._loadedRoutes=l.routes,i._loadedInjector=l.injector,new zc(o,{})))):Wo(new zc(o,{}))):RZ(e,i,o,r).pipe(xc(({matched:s,consumedSegments:l,remainingSegments:d})=>{var f;return s?(r=null!==(f=i._injector)&&void 0!==f?f:r,this.getChildConfig(r,i,o).pipe(Kt(M=>{var T;const F=null!==(T=M.injector)&&void 0!==T?T:r,pe=M.routes,{segmentGroup:ce,slicedSegments:fe}=bB(e,l,d,pe),Pe=new zc(ce.segments,ce.children);if(0===fe.length&&Pe.hasChildren())return this.expandChildren(F,pe,Pe).pipe(Ct(Pt=>new zc(l,Pt)));if(0===pe.length&&0===fe.length)return Wo(new zc(l,{}));const Ne=a1(i)===a;return this.expandSegment(F,Pe,pe,fe,Ne?Bc:a,!0).pipe(Ct(lt=>new zc(l.concat(lt.segments),lt.children)))}))):v3(e)}))}getChildConfig(r,e,i){return e.children?Wo({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?Wo({routes:e._loadedRoutes,injector:e._loadedInjector}):function H2e(n,r,e,i){const o=r.canLoad;return void 0===o||0===o.length?Wo(!0):Wo(o.map(s=>{const l=PP(s,n);return Lx(function M2e(n){return n&&_3(n.canLoad)}(l)?l.canLoad(r,e):n.runInContext(()=>l(r,e)))})).pipe(OP(),FZ())}(r,e,i).pipe(Kt(o=>o?this.configLoader.loadChildren(r,e).pipe(Md(a=>{e._loadedRoutes=a.routes,e._loadedInjector=a.injector})):function G2e(n){return Cb(DZ(CB,3))}())):Wo({routes:[],injector:r})}lineralizeSegments(r,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return Wo(i);if(o.numberOfChildren>1||!o.children[Bc])return Cb(new ht(4e3,CB));o=o.children[Bc]}}applyRedirectCommands(r,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,i)}applyRedirectCreateUrlTree(r,e,i,o){const a=this.createSegmentGroup(r,e.root,i,o);return new uS(a,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const i={};return bg(r,(o,a)=>{if("string"==typeof o&&o.startsWith(":")){const l=o.substring(1);i[a]=e[l]}else i[a]=o}),i}createSegmentGroup(r,e,i,o){const a=this.createSegments(r,e.segments,i,o);let s={};return bg(e.children,(l,d)=>{s[d]=this.createSegmentGroup(r,l,i,o)}),new zc(a,s)}createSegments(r,e,i,o){return e.map(a=>a.path.startsWith(":")?this.findPosParam(r,a,o):this.findOrReturn(a,i))}findPosParam(r,e,i){const o=i[e.path.substring(1)];if(!o)throw new ht(4001,CB);return o}findOrReturn(r,e){let i=0;for(const o of e){if(o.path===r.path)return e.splice(i),o;i++}return r}}class q2e{}class Z2e{constructor(r,e,i,o,a,s,l,d){this.injector=r,this.rootComponentType=e,this.config=i,this.urlTree=o,this.url=a,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=l,this.urlSerializer=d}recognize(){const r=bB(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,Bc).pipe(Ct(e=>{if(null===e)return null;const i=new mB([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Bc,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new CA(i,e),a=new MZ(this.url,o);return this.inheritParamsAndData(a._root),a}))}inheritParamsAndData(r){const e=r.value,i=xZ(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),r.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(r,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(r,e,i):this.processSegment(r,e,i,i.segments,o)}processChildren(r,e,i){return vt(Object.keys(i.children)).pipe(Dx(o=>{const a=i.children[o],s=EZ(e,o);return this.processSegmentGroup(r,s,a,o)}),qI((o,a)=>o&&a?(o.push(...a),o):null),ZJ(o=>null!==o),vP(null),JJ(),Ct(o=>{if(null===o)return null;const a=VZ(o);return function eMe(n){n.sort((r,e)=>r.value.outlet===Bc?-1:e.value.outlet===Bc?1:r.value.outlet.localeCompare(e.value.outlet))}(a),a}))}processSegment(r,e,i,o,a){return vt(e).pipe(Dx(s=>{var l;return this.processSegmentAgainstRoute(null!==(l=s._injector)&&void 0!==l?l:r,s,i,o,a)}),Of(s=>!!s),N_(s=>{if(jV(s))return LZ(i,o,a)?Wo([]):Wo(null);throw s}))}processSegmentAgainstRoute(r,e,i,o,a){if(e.redirectTo||!BZ(e,i,o,a))return Wo(null);let s;if("**"===e.path){var l,d;const f=o.length>0?nZ(o).parameters:{},C=zZ(i)+o.length;s=Wo({snapshot:new mB(o,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$Z(e),a1(e),null!==(l=null!==(d=e.component)&&void 0!==d?d:e._loadedComponent)&&void 0!==l?l:null,e,UZ(i),C,YZ(e),C),consumedSegments:[],remainingSegments:[]})}else s=RZ(i,e,o,r).pipe(Ct(({matched:f,consumedSegments:C,remainingSegments:M,parameters:T})=>{var F,pe;if(!f)return null;const ce=zZ(i)+C.length;return{snapshot:new mB(C,T,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$Z(e),a1(e),null!==(F=null!==(pe=e.component)&&void 0!==pe?pe:e._loadedComponent)&&void 0!==F?F:null,e,UZ(i),ce,YZ(e),ce),consumedSegments:C,remainingSegments:M}}));return s.pipe(xc(f=>{var C,M;if(null===f)return Wo(null);const{snapshot:T,consumedSegments:F,remainingSegments:pe}=f;r=null!==(C=e._injector)&&void 0!==C?C:r;const ce=null!==(M=e._loadedInjector)&&void 0!==M?M:r,fe=function tMe(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:Pe,slicedSegments:Ne}=bB(i,F,pe,fe.filter(lt=>void 0===lt.redirectTo),this.relativeLinkResolution);if(0===Ne.length&&Pe.hasChildren())return this.processChildren(ce,fe,Pe).pipe(Ct(lt=>null===lt?null:[new CA(T,lt)]));if(0===fe.length&&0===Ne.length)return Wo([new CA(T,[])]);const Ge=a1(e)===a;return this.processSegment(ce,fe,Pe,Ne,Ge?Bc:a).pipe(Ct(lt=>null===lt?null:[new CA(T,lt)]))}))}}function nMe(n){const r=n.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function VZ(n){const r=[],e=new Set;for(const i of n){if(!nMe(i)){r.push(i);continue}const o=r.find(a=>i.value.routeConfig===a.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):r.push(i)}for(const i of e){const o=VZ(i.children);r.push(new CA(i.value,o))}return r.filter(i=>!e.has(i))}function UZ(n){let r=n;for(;r._sourceSegment;)r=r._sourceSegment;return r}function zZ(n){var r;let e=n,i=null!==(r=e._segmentIndexShift)&&void 0!==r?r:0;for(;e._sourceSegment;){var o;e=e._sourceSegment,i+=null!==(o=e._segmentIndexShift)&&void 0!==o?o:0}return i-1}function $Z(n){return n.data||{}}function YZ(n){return n.resolve||{}}function GZ(n){return"string"==typeof n.title||null===n.title}function GV(n){return xc(r=>{const e=n(r);return e?vt(e).pipe(Ct(()=>r)):Wo(r)})}let WZ=(()=>{class n{buildTitle(e){let i,o=e.root;for(;void 0!==o;){var a;i=null!==(a=this.getResolvedTitleForRoute(o))&&void 0!==a?a:i,o=o.children.find(s=>s.outlet===Bc)}return i}getResolvedTitleForRoute(e){return e.data[a3]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:function(){return cc(QZ)},providedIn:"root"}),n})(),QZ=(()=>{class n extends WZ{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(e){return new(e||n)(en(sX))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class dMe{}class pMe extends class uMe{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const xB=new Pi("",{providedIn:"root",factory:()=>({})}),WV=new Pi("ROUTES");let QV=(()=>{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 Wo(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Lx(e.loadComponent()).pipe(Md(a=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=a}),sB(()=>{this.componentLoaders.delete(e)})),o=new ur(i,()=>new Fe).pipe(to());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Wo({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const a=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(Ct(l=>{this.onLoadEndListener&&this.onLoadEndListener(i);let d,f,C=!1;Array.isArray(l)?f=l:(d=l.create(e).injector,f=tZ(d.get(WV,[],na.Self|na.Optional)));return{routes:f.map(zV),injector:d}}),sB(()=>{this.childrenLoaders.delete(i)})),s=new ur(a,()=>new Fe).pipe(to());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Lx(e()).pipe(Kt(i=>i instanceof XQ||Array.isArray(i)?Wo(i):vt(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(en(ql),en(Z7))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class fMe{}class mMe{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function gMe(n){throw n}function _Me(n,r,e){return r.parse("/")}const vMe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},bMe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function qZ(){var n,r;const e=cc(lZ),i=cc(h3),o=cc(hA),a=cc(ql),s=cc(Z7),l=null!==(n=cc(WV,{optional:!0}))&&void 0!==n?n:[],d=null!==(r=cc(xB,{optional:!0}))&&void 0!==r?r:{},f=cc(QZ),C=cc(WZ,{optional:!0}),M=cc(fMe,{optional:!0}),T=cc(dMe,{optional:!0}),F=new ed(null,e,i,o,a,s,tZ(l));return M&&(F.urlHandlingStrategy=M),T&&(F.routeReuseStrategy=T),F.titleStrategy=C??f,function yMe(n,r){n.errorHandler&&(r.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(r.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(r.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(r.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(r.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(r.canceledNavigationResolution=n.canceledNavigationResolution)}(d,F),F}let ed=(()=>{class n{constructor(e,i,o,a,s,l,d){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=o,this.location=a,this.config=d,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Fe,this.errorHandler=gMe,this.malformedUriErrorHandler=_Me,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>Wo(void 0),this.urlHandlingStrategy=new mMe,this.routeReuseStrategy=new pMe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(QV),this.configLoader.onLoadEndListener=T=>this.triggerEvent(new t2e(T)),this.configLoader.onLoadStartListener=T=>this.triggerEvent(new e2e(T)),this.ngModule=s.get(KM),this.console=s.get(Y0e);const M=s.get(Zo);this.isNgZoneEnabled=M instanceof Zo&&Zo.isInAngularZone(),this.resetConfig(d),this.currentUrlTree=function Mxe(){return new uS(new zc([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wZ(this.currentUrlTree,this.rootComponentType),this.transitions=new Yn({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(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(Fo(o=>0!==o.id),Ct(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),xc(o=>{let a=!1,s=!1;return Wo(o).pipe(Md(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),xc(l=>{const d=this.browserUrlTree.toString(),f=!this.navigated||l.extractedUrl.toString()!==d||d!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||f)&&this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return XZ(l.source)&&(this.browserUrlTree=l.extractedUrl),Wo(l).pipe(xc(M=>{const T=this.transitions.getValue();return i.next(new EV(M.id,this.serializeUrl(M.extractedUrl),M.source,M.restoredState)),T!==this.transitions.getValue()?gA:Promise.resolve(M)}),function K2e(n,r,e,i){return xc(o=>function W2e(n,r,e,i,o){return new Q2e(n,r,e,i,o).apply()}(n,r,e,o.extractedUrl,i).pipe(Ct(a=>({...o,urlAfterRedirects:a}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Md(M=>{this.currentNavigation={...this.currentNavigation,finalUrl:M.urlAfterRedirects},o.urlAfterRedirects=M.urlAfterRedirects}),function rMe(n,r,e,i,o,a){return Kt(s=>function J2e(n,r,e,i,o,a,s="emptyOnly",l="legacy"){return new Z2e(n,r,e,i,o,s,l,a).recognize().pipe(xc(d=>null===d?function X2e(n){return new ze(r=>r.error(n))}(new q2e):Wo(d)))}(n,r,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,o,a).pipe(Ct(l=>({...s,targetSnapshot:l}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Md(M=>{if(o.targetSnapshot=M.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!M.extras.skipLocationChange){const F=this.urlHandlingStrategy.merge(M.urlAfterRedirects,M.rawUrl);this.setBrowserUrl(F,M)}this.browserUrlTree=M.urlAfterRedirects}const T=new bZ(M.id,this.serializeUrl(M.extractedUrl),this.serializeUrl(M.urlAfterRedirects),M.targetSnapshot);i.next(T)}));if(f&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:T,extractedUrl:F,source:pe,restoredState:ce,extras:fe}=l,Pe=new EV(T,this.serializeUrl(F),pe,ce);i.next(Pe);const Ne=wZ(F,this.rootComponentType).snapshot;return Wo(o={...l,targetSnapshot:Ne,urlAfterRedirects:F,extras:{...fe,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=l.rawUrl,l.resolve(null),gA}),Md(l=>{const d=new qxe(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(d)}),Ct(l=>o={...l,guards:y2e(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),function k2e(n,r){return Kt(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:a,canDeactivateChecks:s}}=e;return 0===s.length&&0===a.length?Wo({...e,guardsResult:!0}):function E2e(n,r,e,i){return vt(n).pipe(Kt(o=>function N2e(n,r,e,i,o){const a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;return a&&0!==a.length?Wo(a.map(l=>{var d;const f=null!==(d=f3(r))&&void 0!==d?d:o,C=PP(l,f);return Lx(function D2e(n){return n&&_3(n.canDeactivate)}(C)?C.canDeactivate(n,r,e,i):f.runInContext(()=>C(n,r,e,i))).pipe(Of())})).pipe(OP()):Wo(!0)}(o.component,o.route,e,r,i)),Of(o=>!0!==o,!0))}(s,i,o,n).pipe(Kt(l=>l&&function x2e(n){return"boolean"==typeof n}(l)?function I2e(n,r,e,i){return vt(r).pipe(Dx(o=>_P(function R2e(n,r){return null!==n&&r&&r(new n2e(n)),Wo(!0)}(o.route.parent,i),function F2e(n,r){return null!==n&&r&&r(new r2e(n)),Wo(!0)}(o.route,i),function L2e(n,r,e){const i=r[r.length-1],a=r.slice(0,r.length-1).reverse().map(s=>function C2e(n){const r=n.routeConfig?n.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:n,guards:r}:null}(s)).filter(s=>null!==s).map(s=>Bx(()=>Wo(s.guards.map(d=>{var f;const C=null!==(f=f3(s.node))&&void 0!==f?f:e,M=PP(d,C);return Lx(function T2e(n){return n&&_3(n.canActivateChild)}(M)?M.canActivateChild(i,n):C.runInContext(()=>M(i,n))).pipe(Of())})).pipe(OP())));return Wo(a).pipe(OP())}(n,o.path,e),function B2e(n,r,e){const i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return Wo(!0);const o=i.map(a=>Bx(()=>{var s;const l=null!==(s=f3(r))&&void 0!==s?s:e,d=PP(a,l);return Lx(function S2e(n){return n&&_3(n.canActivate)}(d)?d.canActivate(r,n):l.runInContext(()=>d(r,n))).pipe(Of())}));return Wo(o).pipe(OP())}(n,o.route,e))),Of(o=>!0!==o,!0))}(i,a,n,r):Wo(l)),Ct(l=>({...e,guardsResult:l})))})}(this.ngModule.injector,l=>this.triggerEvent(l)),Md(l=>{if(o.guardsResult=l.guardsResult,hS(l.guardsResult))throw TZ(0,l.guardsResult);const d=new Xxe(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.triggerEvent(d)}),Fo(l=>!!l.guardsResult||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",3),!1)),GV(l=>{if(l.guards.canActivateChecks.length)return Wo(l).pipe(Md(d=>{const f=new Jxe(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);this.triggerEvent(f)}),xc(d=>{let f=!1;return Wo(d).pipe(function oMe(n,r){return Kt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return Wo(e);let a=0;return vt(o).pipe(Dx(s=>function aMe(n,r,e,i){const o=n.routeConfig,a=n._resolve;return void 0!==o?.title&&!GZ(o)&&(a[a3]=o.title),function sMe(n,r,e,i){const o=function lMe(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===o.length)return Wo({});const a={};return vt(o).pipe(Kt(s=>function cMe(n,r,e,i){var o;const a=null!==(o=f3(r))&&void 0!==o?o:i,s=PP(n,a);return Lx(s.resolve?s.resolve(r,e):a.runInContext(()=>s(r,e)))}(n[s],r,e,i).pipe(Of(),Md(l=>{a[s]=l}))),XI(1),xV(a),N_(s=>jV(s)?gA:Cb(s)))}(a,n,r,i).pipe(Ct(s=>(n._resolvedData=s,n.data=xZ(n,e).resolve,o&&GZ(o)&&(n.data[a3]=o.title),null)))}(s.route,i,n,r)),Md(()=>a++),XI(1),Kt(s=>a===o.length?Wo(e):gA))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Md({next:()=>f=!0,complete:()=>{f||(this.restoreHistory(d),this.cancelNavigationTransition(d,"",2))}}))}),Md(d=>{const f=new Zxe(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);this.triggerEvent(f)}))}),GV(l=>{const d=f=>{var C;const M=[];null!==(C=f.routeConfig)&&void 0!==C&&C.loadComponent&&!f.routeConfig._loadedComponent&&M.push(this.configLoader.loadComponent(f.routeConfig).pipe(Md(T=>{f.component=T}),Ct(()=>{})));for(const T of f.children)M.push(...d(T));return M};return o1(d(l.targetSnapshot.root)).pipe(vP(),Oa(1))}),GV(()=>this.afterPreactivation()),Ct(l=>{const d=function c2e(n,r,e){const i=p3(n,r._root,e?e._root:void 0);return new AZ(i,r)}(this.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return o={...l,targetRouterState:d}}),Md(l=>{this.currentUrlTree=l.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),this.routerState=l.targetRouterState,"deferred"===this.urlUpdateStrategy&&(l.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,l),this.browserUrlTree=l.urlAfterRedirects)}),((n,r,e)=>Ct(i=>(new b2e(r,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,l=>this.triggerEvent(l)),Md({next(){a=!0},complete(){a=!0}}),sB(()=>{var l;a||s||this.cancelNavigationTransition(o,"",1),(null===(l=this.currentNavigation)||void 0===l?void 0:l.id)===o.id&&(this.currentNavigation=null)}),N_(l=>{if(s=!0,OZ(l)){PZ(l)||(this.navigated=!0,this.restoreHistory(o,!0));const f=new fB(o.id,this.serializeUrl(o.extractedUrl),l.message,l.cancellationCode);if(i.next(f),PZ(l)){const C=this.urlHandlingStrategy.merge(l.url,this.rawUrlTree),M={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||XZ(o.source)};this.scheduleNavigation(C,"imperative",null,M,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{var d;this.restoreHistory(o,!0);const f=new vZ(o.id,this.serializeUrl(o.extractedUrl),l,null!==(d=o.targetSnapshot)&&void 0!==d?d:void 0);i.next(f);try{o.resolve(this.errorHandler(l))}catch(C){o.reject(C)}}return gA}))}))}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(()=>{var o;const a={replaceUrl:!0},s=null!==(o=e.state)&&void 0!==o&&o.navigationId?e.state:null;if(s){const d={...s};delete d.navigationId,delete d.\u0275routerPageId,0!==Object.keys(d).length&&(a.state=d)}const l=this.parseUrl(e.url);this.scheduleNavigation(l,i,s,a)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(zV),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:o,queryParams:a,fragment:s,queryParamsHandling:l,preserveFragment:d}=i,f=o||this.routerState.root,C=d?this.currentUrlTree.fragment:s;let M=null;switch(l){case"merge":M={...this.currentUrlTree.queryParams,...a};break;case"preserve":M=this.currentUrlTree.queryParams;break;default:M=a||null}return null!==M&&(M=this.removeEmptyProps(M)),$xe(f,this.currentUrlTree,e,M,C??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=hS(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function CMe(n){for(let r=0;r{const a=e[o];return null!=a&&(i[o]=a),i},{})}processNavigations(){this.navigations.subscribe(e=>{var i;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Nx(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(i=this.titleStrategy)||void 0===i||i.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,o,a,s){if(this.disposed)return Promise.resolve(!1);let l,d,f;s?(l=s.resolve,d=s.reject,f=s.promise):f=new Promise((pe,ce)=>{l=pe,d=ce});const C=++this.navigationId;let M;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(o=this.location.getState()),o&&o.\u0275routerPageId)M=o.\u0275routerPageId;else if(a.replaceUrl||a.skipLocationChange){var T;M=null!==(T=this.browserPageId)&&void 0!==T?T:0}else{var F;M=(null!==(F=this.browserPageId)&&void 0!==F?F:0)+1}else M=0;return this.setTransition({id:C,targetPageId:M,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:a,resolve:l,reject:d,promise:f,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),f.catch(pe=>Promise.reject(pe))}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e),a={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",a):this.location.go(o,"",a)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){var o,a;const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}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,o){const a=new fB(e.id,this.serializeUrl(e.extractedUrl),i,o);this.triggerEvent(a),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){P_()},n.\u0275prov=Dn({token:n,factory:function(){return qZ()},providedIn:"root"}),n})();function XZ(n){return"imperative"!==n}let A0=(()=>{class n{constructor(e,i,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=a,this.el=s,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new Fe,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=uA(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=uA(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=uA(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const i=this.renderer,o=this.el.nativeElement;null!==e?i.setAttribute(o,"tabindex",e):i.removeAttribute(o,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return n.\u0275fac=function(e){return new(e||n)(U(ed),U(Iu),ge("tabindex"),U(Wl),U(gr))},n.\u0275dir=Wn({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&Me("click",function(){return i.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[vo]}),n})(),w0=(()=>{class n{constructor(e,i,o){this.router=e,this.route=i,this.locationStrategy=o,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new Fe,this.subscription=e.events.subscribe(a=>{a instanceof Nx&&this.updateTargetUrlAndHref()})}set preserveFragment(e){this._preserveFragment=uA(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=uA(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=uA(e)}get replaceUrl(){return this._replaceUrl}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,o,a,s){return!!(0!==e||i||o||a||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return n.\u0275fac=function(e){return new(e||n)(U(ed),U(Iu),U(JM))},n.\u0275dir=Wn({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&Me("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&e&&Tr("target",i.target)("href",i.href,In)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[vo]}),n})(),JZ=(()=>{class n{constructor(e,i,o,a,s,l){this.router=e,this.element=i,this.renderer=o,this.cdr=a,this.link=s,this.linkWithHref=l,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Cn,this.routerEventsSubscription=e.events.subscribe(d=>{d instanceof Nx&&this.update()})}ngAfterContentInit(){Wo(this.links.changes,this.linksWithHrefs.changes,Wo(null)).pipe($i()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const i=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(o=>!!o).map(o=>o.onChanges);this.linkInputChangesSubscription=vt(i).pipe($i()).subscribe(o=>{this.isActive!==this.isLinkActive(this.router)(o)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function AMe(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&e.isActive(o.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return n.\u0275fac=function(e){return new(e||n)(U(ed),U(gr),U(Wl),U(Go),U(A0,8),U(w0,8))},n.\u0275dir=Wn({type:n,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,o){if(1&e&&(Jo(o,A0,5),Jo(o,w0,5)),2&e){let a;Ai(a=wi())&&(i.links=a),Ai(a=wi())&&(i.linksWithHrefs=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[vo]}),n})();class ZZ{}let wMe=(()=>{class n{constructor(e,i,o,a,s){this.router=e,this.injector=o,this.preloadingStrategy=a,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Fo(e=>e instanceof Nx),Dx(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const d of i){var a,s;d.providers&&!d._injector&&(d._injector=aR(d.providers,e,`Route: ${d.path}`));const f=null!==(a=d._injector)&&void 0!==a?a:e,C=null!==(s=d._loadedInjector)&&void 0!==s?s:f;if(d.loadChildren&&!d._loadedRoutes&&void 0===d.canLoad||d.loadComponent&&!d._loadedComponent)o.push(this.preloadConfig(f,d));else if(d.children||d._loadedRoutes){var l;o.push(this.processRoutes(C,null!==(l=d.children)&&void 0!==l?l:d._loadedRoutes))}}return vt(o).pipe($i())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Wo(null);const a=o.pipe(Kt(s=>{var l;return null===s?Wo(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(null!==(l=s.injector)&&void 0!==l?l:e,s.routes))}));return i.loadComponent&&!i._loadedComponent?vt([a,this.loader.loadComponent(i)]).pipe($i()):a})}}return n.\u0275fac=function(e){return new(e||n)(en(ed),en(Z7),en(Qg),en(ZZ),en(QV))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const KV=new Pi("");let eee=(()=>{class n{constructor(e,i,o={}){this.router=e,this.viewportScroller=i,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof EV?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Nx&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof yZ&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new yZ(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){P_()},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();function kP(n,r){return{\u0275kind:n,\u0275providers:r}}function qV(n){return[{provide:WV,multi:!0,useValue:n}]}function nee(){const n=cc(ql);return r=>{var e,i;const o=n.get(pv);if(r!==o.components[0])return;const a=n.get(ed),s=n.get(iee);1===n.get(XV)&&a.initialNavigation(),null===(e=n.get(ree,null,na.Optional))||void 0===e||e.setUpPreloading(),null===(i=n.get(KV,null,na.Optional))||void 0===i||i.init(),a.resetRootComponentType(o.componentTypes[0]),s.next(),s.complete()}}const iee=new Pi("",{factory:()=>new Fe}),XV=new Pi("",{providedIn:"root",factory:()=>1});const ree=new Pi("");function TMe(n){return kP(0,[{provide:ree,useExisting:wMe},{provide:ZZ,useExisting:n}])}const oee=new Pi("ROUTER_FORROOT_GUARD"),DMe=[hA,{provide:lZ,useClass:SV},{provide:ed,useFactory:qZ},h3,{provide:Iu,useFactory:function tee(n){return n.routerState.root},deps:[ed]},QV];function PMe(){return new WK("Router",ed)}let DB=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[DMe,[],qV(e),{provide:oee,useFactory:IMe,deps:[[ed,new rh,new bf]]},{provide:xB,useValue:i||{}},null!=i&&i.useHash?{provide:JM,useClass:Ive}:{provide:JM,useClass:vq},{provide:KV,useFactory:()=>{const n=cc(ed),r=cc(B1e),e=cc(xB);return e.scrollOffset&&r.setOffset(e.scrollOffset),new eee(n,r,e)}},null!=i&&i.preloadingStrategy?TMe(i.preloadingStrategy).\u0275providers:[],{provide:WK,multi:!0,useFactory:PMe},null!=i&&i.initialNavigation?FMe(i):[],[{provide:aee,useFactory:nee},{provide:VK,multi:!0,useExisting:aee}]]}}static forChild(e){return{ngModule:n,providers:[qV(e)]}}}return n.\u0275fac=function(e){return new(e||n)(en(oee,8))},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[VV]}),n})();function IMe(n){return"guarded"}function FMe(n){return["disabled"===n.initialNavigation?kP(3,[{provide:cP,multi:!0,useFactory:()=>{const r=cc(ed);return()=>{r.setUpLocationChangeListener()}}},{provide:XV,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?kP(2,[{provide:XV,useValue:0},{provide:cP,multi:!0,deps:[ql],useFactory:r=>{const e=r.get(kve,Promise.resolve());let i=!1;return()=>e.then(()=>new Promise(a=>{const s=r.get(ed),l=r.get(iee);(function o(a){r.get(ed).events.pipe(Fo(l=>l instanceof Nx||l instanceof fB||l instanceof vZ),Ct(l=>l instanceof Nx||l instanceof fB&&(0===l.code||1===l.code)&&null),Fo(l=>null!==l),Oa(1)).subscribe(()=>{a()})})(()=>{a(!0),i=!0}),s.afterPreactivation=()=>(a(!0),i||l.closed?Wo(void 0):l),s.initialNavigation()}))}}]).\u0275providers:[]]}const aee=new Pi("");class AA{constructor(r,e,i=!1){this.authorizationState=r,this.validationResult=e,this.isRenewProcess=i}}class see{constructor(r="",e="",i=!1,o={},a="NotSet"){this.access_token=r,this.id_token=e,this.authResponseIsValid=i,this.decoded_id_token=o,this.state=a}}let JV=(()=>{class n{constructor(e){this.httpClient=e}getWellknownEndpoints(e){let i=new dp;return i=i.set("Accept","application/json"),this.httpClient.get(e,{headers:i})}getIdentityUserData(e,i){let o=new dp;return o=o.set("Accept","application/json"),o=o.set("Authorization","Bearer "+decodeURIComponent(i)),this.httpClient.get(e,{headers:o})}get(e){let i=new dp;return i=i.set("Accept","application/json"),this.httpClient.get(e,{headers:i})}}return n.\u0275fac=function(e){return new(e||n)(en(_g))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();class jy{constructor(r){this.platformId=r}get isBrowser(){return Ny(this.platformId)}}jy.\u0275fac=function(r){return new(r||jy)(en(v0))},jy.\u0275prov=Dn({token:jy,factory:jy.\u0275fac,providedIn:"root"}),jy.ngInjectableDef=Bd({factory:function(){return new jy(cc(v0))},token:jy,providedIn:"root"});class x0{constructor(r){this.platformProvider=r,this.DEFAULT_CONFIG={stsServer:"https://please_set",redirect_url:"https://please_set",client_id:"please_set",response_type:"code",scope:"openid email profile",hd_param:"",post_logout_redirect_uri:"https://please_set",start_checksession:!1,silent_renew:!1,silent_renew_url:"https://please_set",silent_renew_offset_in_seconds:0,use_refresh_token:!1,post_login_route:"/",forbidden_route:"/forbidden",unauthorized_route:"/unauthorized",auto_userinfo:!0,auto_clean_state_after_authentication:!0,trigger_authorization_result_event:!1,log_console_warning_active:!0,log_console_debug_active:!1,iss_validation_off:!1,history_cleanup_off:!1,max_id_token_iat_offset_allowed_in_seconds:3,isauthorizedrace_timeout_in_seconds:5,disable_iat_offset_validation:!1,storage:typeof Storage<"u"?sessionStorage:null},this.INITIAL_AUTHWELLKNOWN={issuer:"",jwks_uri:"",authorization_endpoint:"",token_endpoint:"",userinfo_endpoint:"",end_session_endpoint:"",check_session_iframe:"",revocation_endpoint:"",introspection_endpoint:""},this.mergedOpenIdConfiguration=this.DEFAULT_CONFIG,this.authWellKnownEndpoints=this.INITIAL_AUTHWELLKNOWN,this.onConfigurationChangeInternal=new Fe}get openIDConfiguration(){return this.mergedOpenIdConfiguration}get wellKnownEndpoints(){return this.authWellKnownEndpoints}get onConfigurationChange(){return this.onConfigurationChangeInternal.asObservable()}setup(r,e){this.mergedOpenIdConfiguration=Object.assign({},this.mergedOpenIdConfiguration,r),this.setSpecialCases(this.mergedOpenIdConfiguration),this.authWellKnownEndpoints=Object.assign({},e),this.onConfigurationChangeInternal.next(Object.assign({},this.mergedOpenIdConfiguration))}setSpecialCases(r){this.platformProvider.isBrowser||(r.start_checksession=!1,r.silent_renew=!1,r.use_refresh_token=!1)}}x0.\u0275fac=function(r){return new(r||x0)(en(jy))},x0.\u0275prov=Dn({token:x0,factory:x0.\u0275fac,providedIn:"root"}),x0.ngInjectableDef=Bd({factory:function(){return new x0(cc(jy))},token:x0,providedIn:"root"});let $y=(()=>{class n{constructor(e){this.configurationProvider=e}logError(e,...i){console.error(e,...i)}logWarning(e){this.configurationProvider.openIDConfiguration.log_console_warning_active&&console.warn(e)}logDebug(e){this.configurationProvider.openIDConfiguration.log_console_debug_active&&console.log(e)}}return n.\u0275fac=function(e){return new(e||n)(en(x0))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),ZV=(()=>{class n{constructor(e){this.loggerService=e}getExistingIFrame(e){const i=this.getIFrameFromParentWindow(e);if(this.isIFrameElement(i))return i;const o=this.getIFrameFromWindow(e);return this.isIFrameElement(o)?o:null}addIFrameToWindowBody(e){const i=window.document.createElement("iframe");return i.id=e,this.loggerService.logDebug(i),i.style.display="none",window.document.body.appendChild(i),i}getIFrameFromParentWindow(e){try{const i=window.parent.document.getElementById(e);return this.isIFrameElement(i)?i:null}catch{return null}}getIFrameFromWindow(e){const i=window.document.getElementById(e);return this.isIFrameElement(i)?i:null}isIFrameElement(e){return!!e&&e instanceof HTMLIFrameElement}}return n.\u0275fac=function(e){return new(e||n)(en($y))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),lee=(()=>{class n{areEqual(e,i){if(!e||!i)return!1;if(this.bothValuesAreArrays(e,i))return this.arraysEqual(e,i);if(this.bothValuesAreStrings(e,i))return e===i;if(this.bothValuesAreObjects(e,i))return JSON.stringify(e).toLowerCase()===JSON.stringify(i).toLowerCase();if(this.oneValueIsStringAndTheOtherIsArray(e,i)){if(Array.isArray(e)&&this.valueIsString(i))return e[0]===i;if(Array.isArray(i)&&this.valueIsString(e))return i[0]===e}}oneValueIsStringAndTheOtherIsArray(e,i){return Array.isArray(e)&&this.valueIsString(i)||Array.isArray(i)&&this.valueIsString(e)}bothValuesAreObjects(e,i){return this.valueIsObject(e)&&this.valueIsObject(i)}bothValuesAreStrings(e,i){return this.valueIsString(e)&&this.valueIsString(i)}bothValuesAreArrays(e,i){return Array.isArray(e)&&Array.isArray(i)}valueIsString(e){return"string"==typeof e||e instanceof String}valueIsObject(e){return"object"==typeof e}arraysEqual(e,i){if(e.length!==i.length)return!1;for(let o=e.length;o--;)if(e[o]!==i[o])return!1;return!0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),PB=(()=>{class n{constructor(e){this.loggerService=e,this.PARTS_OF_TOKEN=3}getTokenExpirationDate(e){if(!e.hasOwnProperty("exp"))return new Date;const i=new Date(0);return i.setUTCSeconds(e.exp),i}getHeaderFromToken(e,i){return this.tokenIsValid(e)?this.getPartOfToken(e,0,i):{}}getPayloadFromToken(e,i){return this.tokenIsValid(e)?this.getPartOfToken(e,1,i):{}}getSignatureFromToken(e,i){return this.tokenIsValid(e)?this.getPartOfToken(e,2,i):{}}getPartOfToken(e,i,o){const a=this.extractPartOfToken(e,i);if(o)return a;const s=this.urlBase64Decode(a);return JSON.parse(s)}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 Error("Illegal base64url string!")}const o=typeof window<"u"?window.atob(i):new Buffer(i,"base64").toString("binary");try{return decodeURIComponent(o.split("").map(a=>"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)).join(""))}catch{return o}}tokenIsValid(e){return e?e.includes(".")?e.split(".").length===this.PARTS_OF_TOKEN||(this.loggerService.logError(`token '${e}' is not valid --\x3e token has to have exactly ${this.PARTS_OF_TOKEN} dots`),!1):(this.loggerService.logError(`token '${e}' is not valid --\x3e no dots included`),!1):(this.loggerService.logError(`token '${e}' is not valid --\x3e token falsy`),!1)}extractPartOfToken(e,i){return e.split(".")[i]}}return n.\u0275fac=function(e){return new(e||n)(en($y))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),cee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),BMe=(()=>{class n{constructor(e){this.configProvider=e,this.hasStorage=typeof Storage<"u"}read(e){if(this.hasStorage)return JSON.parse(this.configProvider.openIDConfiguration.storage.getItem(e+"_"+this.configProvider.openIDConfiguration.client_id))}write(e,i){this.hasStorage&&(i=void 0===i?null:i,this.configProvider.openIDConfiguration.storage.setItem(e+"_"+this.configProvider.openIDConfiguration.client_id,JSON.stringify(i)))}}return n.\u0275fac=function(e){return new(e||n)(en(x0))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),b3=(()=>{class n{constructor(e){this.oidcSecurityStorage=e,this.storage_auth_result="authorizationResult",this.storage_access_token="authorizationData",this.storage_id_token="authorizationDataIdToken",this.storage_is_authorized="_isAuthorized",this.storage_user_data="userData",this.storage_auth_nonce="authNonce",this.storage_code_verifier="code_verifier",this.storage_auth_state_control="authStateControl",this.storage_session_state="session_state",this.storage_silent_renew_running="storage_silent_renew_running",this.storage_custom_request_params="storage_custom_request_params"}get authResult(){return this.retrieve(this.storage_auth_result)}set authResult(e){this.store(this.storage_auth_result,e)}get accessToken(){return this.retrieve(this.storage_access_token)||""}set accessToken(e){this.store(this.storage_access_token,e)}get idToken(){return this.retrieve(this.storage_id_token)||""}set idToken(e){this.store(this.storage_id_token,e)}get isAuthorized(){return this.retrieve(this.storage_is_authorized)}set isAuthorized(e){this.store(this.storage_is_authorized,e)}get userData(){return this.retrieve(this.storage_user_data)}set userData(e){this.store(this.storage_user_data,e)}get authNonce(){return this.retrieve(this.storage_auth_nonce)||""}set authNonce(e){this.store(this.storage_auth_nonce,e)}get code_verifier(){return this.retrieve(this.storage_code_verifier)||""}set code_verifier(e){this.store(this.storage_code_verifier,e)}get authStateControl(){return this.retrieve(this.storage_auth_state_control)||""}set authStateControl(e){this.store(this.storage_auth_state_control,e)}get sessionState(){return this.retrieve(this.storage_session_state)}set sessionState(e){this.store(this.storage_session_state,e)}get silentRenewRunning(){return this.retrieve(this.storage_silent_renew_running)||""}set silentRenewRunning(e){this.store(this.storage_silent_renew_running,e)}get customRequestParams(){return this.retrieve(this.storage_custom_request_params)}set customRequestParams(e){this.store(this.storage_custom_request_params,e)}retrieve(e){return this.oidcSecurityStorage.read(e)}store(e,i){this.oidcSecurityStorage.write(e,i)}resetStorageData(e){e||(this.store(this.storage_auth_result,""),this.store(this.storage_session_state,""),this.store(this.storage_silent_renew_running,""),this.store(this.storage_is_authorized,!1),this.store(this.storage_access_token,""),this.store(this.storage_id_token,""),this.store(this.storage_user_data,""),this.store(this.storage_code_verifier,""))}getAccessToken(){return this.retrieve(this.storage_access_token)}getIdToken(){return this.retrieve(this.storage_id_token)}getRefreshToken(){return this.authResult.refresh_token}}return n.\u0275fac=function(e){return new(e||n)(en(cee))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),OB=(()=>{class n{constructor(e,i,o){this.arrayHelperService=e,this.tokenHelperService=i,this.loggerService=o}isTokenExpired(e,i){let o;return o=this.tokenHelperService.getPayloadFromToken(e,!1),!this.validate_id_token_exp_not_expired(o,i)}validate_id_token_exp_not_expired(e,i){const o=this.tokenHelperService.getTokenExpirationDate(e);if(i=i||0,!o)return!1;const a=o.valueOf(),s=(new Date).valueOf()+1e3*i,l=a>s;return this.loggerService.logDebug(`Token not expired?: ${a} > ${s} (${l})`),l}validate_required_id_token(e){let i=!0;return e.hasOwnProperty("iss")||(i=!1,this.loggerService.logWarning("iss is missing, this is required in the id_token")),e.hasOwnProperty("sub")||(i=!1,this.loggerService.logWarning("sub is missing, this is required in the id_token")),e.hasOwnProperty("aud")||(i=!1,this.loggerService.logWarning("aud is missing, this is required in the id_token")),e.hasOwnProperty("exp")||(i=!1,this.loggerService.logWarning("exp is missing, this is required in the id_token")),e.hasOwnProperty("iat")||(i=!1,this.loggerService.logWarning("iat is missing, this is required in the id_token")),i}validate_id_token_iat_max_offset(e,i,o){if(o)return!0;if(!e.hasOwnProperty("iat"))return!1;const a=new Date(0);return a.setUTCSeconds(e.iat),i=i||0,null!=a&&(this.loggerService.logDebug("validate_id_token_iat_max_offset: "+((new Date).valueOf()-a.valueOf())+" < "+1e3*i),(new Date).valueOf()-a.valueOf()<1e3*i)}validate_id_token_nonce(e,i){return void 0===e.nonce&&i===n.RefreshTokenNoncePlaceholder||e.nonce===i||(this.loggerService.logDebug("Validate_id_token_nonce failed, dataIdToken.nonce: "+e.nonce+" local_nonce:"+i),!1)}validate_id_token_iss(e,i){return e.iss===i||(this.loggerService.logDebug("Validate_id_token_iss failed, dataIdToken.iss: "+e.iss+" authWellKnownEndpoints issuer:"+i),!1)}validate_id_token_aud(e,i){return e.aud instanceof Array?!!this.arrayHelperService.areEqual(e.aud,i)||(this.loggerService.logDebug("Validate_id_token_aud array failed, dataIdToken.aud: "+e.aud+" client_id:"+i),!1):e.aud===i||(this.loggerService.logDebug("Validate_id_token_aud failed, dataIdToken.aud: "+e.aud+" client_id:"+i),!1)}validateStateFromHashCallback(e,i){return e===i||(this.loggerService.logDebug("ValidateStateFromHashCallback failed, state: "+e+" local_state:"+i),!1)}validate_userdata_sub_id_token(e,i){return e===i||(this.loggerService.logDebug("validate_userdata_sub_id_token failed, id_token_sub: "+e+" userdata_sub:"+i),!1)}validate_signature_id_token(e,i){if(!i||!i.keys)return!1;const o=this.tokenHelperService.getHeaderFromToken(e,!1);if(0===Object.keys(o).length&&o.constructor===Object)return this.loggerService.logWarning("id token has no header data"),!1;const a=o.kid;if("RS256"!==o.alg)return this.loggerService.logWarning("Only RS256 supported"),!1;let l=!1;if(o.hasOwnProperty("kid")){for(const d of i.keys)if(d.kid===a){const f=im.getKey(d);return l=Vn.jws.JWS.verify(e,f,["RS256"]),l||this.loggerService.logWarning("incorrect Signature, validation failed for id_token"),l}}else{let d=0;for(const f of i.keys)"RSA"===f.kty&&"sig"===f.use&&(d+=1);if(0===d)return this.loggerService.logWarning("no keys found, incorrect Signature, validation failed for id_token"),!1;if(d>1)return this.loggerService.logWarning("no ID Token kid claim in JOSE header and multiple supplied in jwks_uri"),!1;for(const f of i.keys)if("RSA"===f.kty&&"sig"===f.use){const C=im.getKey(f);return l=Vn.jws.JWS.verify(e,C,["RS256"]),l||this.loggerService.logWarning("incorrect Signature, validation failed for id_token"),l}}return l}config_validate_response_type(e){return"id_token token"===e||"id_token"===e||"code"===e||(this.loggerService.logWarning("module configure incorrect, invalid response_type:"+e),!1)}validate_id_token_at_hash(e,i,o){if(this.loggerService.logDebug("at_hash from the server:"+i),o&&!i)return this.loggerService.logDebug("Code Flow active, and no at_hash in the id_token, skipping check!"),!0;const a=this.generate_at_hash(""+e);if(this.loggerService.logDebug("at_hash client validation not decoded:"+a),a===i)return!0;{const s=this.generate_at_hash(""+decodeURIComponent(e));if(this.loggerService.logDebug("-gen access--"+s),s===i)return!0}return!1}generate_at_hash(e){const i=Vn.crypto.Util.hashString(e,"sha256");return Pf(i.substr(0,i.length/2))}generate_code_verifier(e){return Pf(Vn.crypto.Util.hashString(e,"sha256"))}}return n.\u0275fac=function(e){return new(e||n)(en(lee),en(PB),en($y))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n.RefreshTokenNoncePlaceholder="--RefreshToken--",n})(),dee=(()=>{class n{constructor(e,i,o,a,s){this.oidcSecurityCommon=e,this.oidcSecurityValidation=i,this.tokenHelperService=o,this.loggerService=a,this.configurationProvider=s}validateState(e,i){const o=new see;if(!this.oidcSecurityValidation.validateStateFromHashCallback(e.state,this.oidcSecurityCommon.authStateControl))return this.loggerService.logWarning("authorizedCallback incorrect state"),o.state="StatesDoNotMatch",this.handleUnsuccessfulValidation(),o;if(("id_token token"===this.configurationProvider.openIDConfiguration.response_type||"code"===this.configurationProvider.openIDConfiguration.response_type)&&(o.access_token=e.access_token),e.id_token){if(o.id_token=e.id_token,o.decoded_id_token=this.tokenHelperService.getPayloadFromToken(o.id_token,!1),!this.oidcSecurityValidation.validate_signature_id_token(o.id_token,i))return this.loggerService.logDebug("authorizedCallback Signature validation failed id_token"),o.state="SignatureFailed",this.handleUnsuccessfulValidation(),o;if(!this.oidcSecurityValidation.validate_id_token_nonce(o.decoded_id_token,this.oidcSecurityCommon.authNonce))return this.loggerService.logWarning("authorizedCallback incorrect nonce"),o.state="IncorrectNonce",this.handleUnsuccessfulValidation(),o;if(!this.oidcSecurityValidation.validate_required_id_token(o.decoded_id_token))return this.loggerService.logDebug("authorizedCallback Validation, one of the REQUIRED properties missing from id_token"),o.state="RequiredPropertyMissing",this.handleUnsuccessfulValidation(),o;if(!this.oidcSecurityValidation.validate_id_token_iat_max_offset(o.decoded_id_token,this.configurationProvider.openIDConfiguration.max_id_token_iat_offset_allowed_in_seconds,this.configurationProvider.openIDConfiguration.disable_iat_offset_validation))return this.loggerService.logWarning("authorizedCallback Validation, iat rejected id_token was issued too far away from the current time"),o.state="MaxOffsetExpired",this.handleUnsuccessfulValidation(),o;if(!this.configurationProvider.wellKnownEndpoints)return this.loggerService.logWarning("authWellKnownEndpoints is undefined"),o.state="NoAuthWellKnownEndPoints",this.handleUnsuccessfulValidation(),o;if(this.configurationProvider.openIDConfiguration.iss_validation_off)this.loggerService.logDebug("iss validation is turned off, this is not recommended!");else if(!this.configurationProvider.openIDConfiguration.iss_validation_off&&!this.oidcSecurityValidation.validate_id_token_iss(o.decoded_id_token,this.configurationProvider.wellKnownEndpoints.issuer))return this.loggerService.logWarning("authorizedCallback incorrect iss does not match authWellKnownEndpoints issuer"),o.state="IssDoesNotMatchIssuer",this.handleUnsuccessfulValidation(),o;if(!this.oidcSecurityValidation.validate_id_token_aud(o.decoded_id_token,this.configurationProvider.openIDConfiguration.client_id))return this.loggerService.logWarning("authorizedCallback incorrect aud"),o.state="IncorrectAud",this.handleUnsuccessfulValidation(),o;if(!this.oidcSecurityValidation.validate_id_token_exp_not_expired(o.decoded_id_token))return this.loggerService.logWarning("authorizedCallback token expired"),o.state="TokenExpired",this.handleUnsuccessfulValidation(),o}else this.loggerService.logDebug("No id_token found, skipping id_token validation");return"id_token token"!==this.configurationProvider.openIDConfiguration.response_type&&"code"!==this.configurationProvider.openIDConfiguration.response_type?(o.authResponseIsValid=!0,o.state="Ok",this.handleSuccessfulValidation(),this.handleUnsuccessfulValidation(),o):this.oidcSecurityValidation.validate_id_token_at_hash(o.access_token,o.decoded_id_token.at_hash,"code"===this.configurationProvider.openIDConfiguration.response_type)&&o.access_token?(o.authResponseIsValid=!0,o.state="Ok",this.handleSuccessfulValidation(),o):(this.loggerService.logWarning("authorizedCallback incorrect at_hash"),o.state="IncorrectAtHash",this.handleUnsuccessfulValidation(),o)}handleSuccessfulValidation(){this.oidcSecurityCommon.authNonce="",this.configurationProvider.openIDConfiguration.auto_clean_state_after_authentication&&(this.oidcSecurityCommon.authStateControl=""),this.loggerService.logDebug("AuthorizedCallback token(s) validated, continue")}handleUnsuccessfulValidation(){this.oidcSecurityCommon.authNonce="",this.configurationProvider.openIDConfiguration.auto_clean_state_after_authentication&&(this.oidcSecurityCommon.authStateControl=""),this.loggerService.logDebug("AuthorizedCallback token(s) invalid")}}return n.\u0275fac=function(e){return new(e||n)(en(b3),en(OB),en(PB),en($y),en(x0))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const uee="myiFrameForCheckSession";let pee=(()=>{class n{constructor(e,i,o,a,s){this.oidcSecurityCommon=e,this.loggerService=i,this.iFrameService=o,this.zone=a,this.configurationProvider=s,this.lastIFrameRefresh=0,this.outstandingMessages=0,this.heartBeatInterval=3e3,this.iframeRefreshInterval=6e4,this._onCheckSessionChanged=new Fe}get onCheckSessionChanged(){return this._onCheckSessionChanged.asObservable()}doesSessionExist(){const e=this.iFrameService.getExistingIFrame(uee);return!!e&&(this.sessionIframe=e,!0)}init(){return this.lastIFrameRefresh+this.iframeRefreshInterval>Date.now()?vt([this]):(this.doesSessionExist()||(this.sessionIframe=this.iFrameService.addIFrameToWindowBody(uee),this.iframeMessageEvent=this.messageHandler.bind(this),window.addEventListener("message",this.iframeMessageEvent,!1)),this.configurationProvider.wellKnownEndpoints?(this.configurationProvider.wellKnownEndpoints.check_session_iframe?this.sessionIframe.contentWindow.location.replace(this.configurationProvider.wellKnownEndpoints.check_session_iframe):this.loggerService.logWarning("init check session: authWellKnownEndpoints is undefined"),ze.create(e=>{this.sessionIframe.onload=()=>{this.lastIFrameRefresh=Date.now(),e.next(this),e.complete()}})):void this.loggerService.logWarning("init check session: authWellKnownEndpoints is undefined. Returning."))}startCheckingSession(e){this.scheduledHeartBeat||this.pollServerSession(e)}stopCheckingSession(){!this.scheduledHeartBeat||this.clearScheduledHeartBeat()}pollServerSession(e){const i=()=>{this.init().pipe(Oa(1)).subscribe(()=>{if(this.sessionIframe&&e){this.loggerService.logDebug(this.sessionIframe);const o=this.oidcSecurityCommon.sessionState;o?(this.outstandingMessages++,this.sessionIframe.contentWindow.postMessage(e+" "+o,this.configurationProvider.openIDConfiguration.stsServer)):(this.loggerService.logDebug("OidcSecurityCheckSession pollServerSession session_state is blank"),this._onCheckSessionChanged.next())}else this.loggerService.logWarning("OidcSecurityCheckSession pollServerSession sessionIframe does not exist"),this.loggerService.logDebug(e),this.loggerService.logDebug(this.sessionIframe);this.outstandingMessages>3&&(this.loggerService.logError(`OidcSecurityCheckSession not receiving check session response messages. Outstanding messages: ${this.outstandingMessages}. Server unreachable?`),this._onCheckSessionChanged.next()),this.scheduledHeartBeat=setTimeout(i,this.heartBeatInterval)})};this.outstandingMessages=0,this.zone.runOutsideAngular(()=>{this.scheduledHeartBeat=setTimeout(i,this.heartBeatInterval)})}clearScheduledHeartBeat(){clearTimeout(this.scheduledHeartBeat),this.scheduledHeartBeat=null}messageHandler(e){this.outstandingMessages=0,this.sessionIframe&&e.origin===this.configurationProvider.openIDConfiguration.stsServer&&e.source===this.sessionIframe.contentWindow&&("error"===e.data?this.loggerService.logWarning("error from checksession messageHandler"):"changed"===e.data?this._onCheckSessionChanged.next():this.loggerService.logDebug(e.data+" from checksession messageHandler"))}}return n.\u0275fac=function(e){return new(e||n)(en(b3),en($y),en(ZV),en(Zo),en(x0))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),kB=(()=>{class n{constructor(e,i){this.loggerService=e,this.httpClient=i,this.configurationLoadedInternal=new cS(1)}get onConfigurationLoaded(){return this.configurationLoadedInternal.asObservable()}load(e){return this.httpClient.get(e).pipe(xc(i=>this.loadUsingConfiguration(i)),N_(i=>(this.loggerService.logError(`OidcConfigService 'load' threw an error on calling ${e}`,i),this.configurationLoadedInternal.next(void 0),Wo(!1)))).toPromise()}load_using_stsServer(e){return this.loadUsingConfiguration({stsServer:e}).toPromise()}load_using_custom_stsServer(e){return this.httpClient.get(e).pipe(xc(i=>(this.configurationLoadedInternal.next({authWellknownEndpoints:i,customConfig:{stsServer:e}}),Wo(!0))),N_(i=>(this.loggerService.logError(`OidcConfigService 'load_using_custom_stsServer' threw an error on calling ${e}`,i),this.configurationLoadedInternal.next(void 0),Wo(!1)))).toPromise()}loadUsingConfiguration(e){if(!e.stsServer)throw this.loggerService.logError(`Property 'stsServer' is not present of passed config ${JSON.stringify(e)}`,e),new Error(`Property 'stsServer' is not present of passed config ${JSON.stringify(e)}`);const i=`${e.stsServer}/.well-known/openid-configuration`;return this.httpClient.get(i).pipe(xc(o=>(this.configurationLoadedInternal.next({authWellknownEndpoints:o,customConfig:e}),Wo(!0))),N_(o=>(this.loggerService.logError(`OidcConfigService 'load_using_stsServer' threw an error on calling ${i}`,o),this.configurationLoadedInternal.next(void 0),Wo(!1))))}}return n.\u0275fac=function(e){return new(e||n)(en($y),en(_g))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const hee="myiFrameForSilentRenew";let fee=(()=>{class n{constructor(e,i){this.loggerService=e,this.iFrameService=i}initRenew(){return this.iFrameService.getExistingIFrame(hee)||this.iFrameService.addIFrameToWindowBody(hee)}startRenew(e){const i=this.initRenew();return this.loggerService.logDebug("startRenew for URL:"+e),new ze(o=>{const a=()=>{i.removeEventListener("load",a),o.next(void 0),o.complete()};return i.addEventListener("load",a),i.src=e,()=>{i.removeEventListener("load",a)}})}}return n.\u0275fac=function(e){return new(e||n)(en($y),en(ZV))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),mee=(()=>{class n{constructor(e,i,o,a){this.oidcDataService=e,this.oidcSecurityCommon=i,this.loggerService=o,this.configurationProvider=a,this.userData=""}initUserData(){return this.getIdentityUserData().pipe(Ct(e=>this.userData=e))}getUserData(){if(!this.userData)throw Error("UserData is not set!");return this.userData}setUserData(e){this.userData=e}getIdentityUserData(){const e=this.oidcSecurityCommon.getAccessToken();if(!this.configurationProvider.wellKnownEndpoints)throw this.loggerService.logWarning("init check session: authWellKnownEndpoints is undefined"),Error("authWellKnownEndpoints is undefined");if(!this.configurationProvider.wellKnownEndpoints||!this.configurationProvider.wellKnownEndpoints.userinfo_endpoint)throw this.loggerService.logError("init check session: authWellKnownEndpoints.userinfo_endpoint is undefined; set auto_userinfo = false in config"),Error("authWellKnownEndpoints.userinfo_endpoint is undefined");return this.oidcDataService.getIdentityUserData(this.configurationProvider.wellKnownEndpoints.userinfo_endpoint||"",e)}}return n.\u0275fac=function(e){return new(e||n)(en(JV),en(b3),en($y),en(x0))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();class gee{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}class xA{getUrlParameter(r,e){if(!r||!e)return"";e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const o=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(r);return null===o?"":decodeURIComponent(o[1])}}xA.\u0275fac=function(r){return new(r||xA)},xA.\u0275prov=Dn({token:xA,factory:xA.\u0275fac,providedIn:"root"}),xA.ngInjectableDef=Bd({factory:function(){return new xA},token:xA,providedIn:"root"});let H_=(()=>{class n{constructor(e,i,o,a,s,l,d,f,C,M,T,F,pe,ce){this.oidcDataService=e,this.stateValidationService=i,this.router=o,this.oidcSecurityCheckSession=a,this.oidcSecuritySilentRenew=s,this.oidcSecurityUserService=l,this.oidcSecurityCommon=d,this.oidcSecurityValidation=f,this.tokenHelperService=C,this.loggerService=M,this.zone=T,this.httpClient=F,this.configurationProvider=pe,this.urlParserService=ce,this._onModuleSetup=new Fe,this._onCheckSessionChanged=new Fe,this._onAuthorizationResult=new Fe,this.checkSessionChanged=!1,this.moduleSetup=!1,this._isModuleSetup=new Yn(!1),this._isAuthorized=new Yn(!1),this._userData=new Yn(""),this.authWellKnownEndpointsLoaded=!1,this.runTokenValidationRunning=!1,this.onModuleSetup.pipe(Oa(1)).subscribe(()=>{this.moduleSetup=!0,this._isModuleSetup.next(!0)}),this._isSetupAndAuthorized=this._isModuleSetup.pipe(Fo(fe=>fe),xc(()=>{if(!this.configurationProvider.openIDConfiguration.silent_renew)return this.loggerService.logDebug("IsAuthorizedRace: Silent Renew Not Active. Emitting."),vt([!0]);const fe=this._isAuthorized.asObservable().pipe(Fo(Pe=>Pe),Oa(1),Md(()=>this.loggerService.logDebug("IsAuthorizedRace: Existing token is still authorized.")),function cxe(...n){return function(e){return 1===n.length&&H(n[0])&&(n=n[0]),e.lift.call(WJ(e,...n))}}(this._onAuthorizationResult.pipe(Oa(1),Md(()=>this.loggerService.logDebug("IsAuthorizedRace: Silent Renew Refresh Session Complete")),Ct(()=>!0)),Rx(1e3*this.configurationProvider.openIDConfiguration.isauthorizedrace_timeout_in_seconds).pipe(Md(()=>{this.resetAuthorizationData(!1),this.oidcSecurityCommon.authNonce="",this.loggerService.logWarning("IsAuthorizedRace: Timeout reached. Emitting.")}),Ct(()=>!0))));return this.loggerService.logDebug("Silent Renew is active, check if token in storage is active"),(""===this.oidcSecurityCommon.authNonce||void 0===this.oidcSecurityCommon.authNonce)&&(this.loggerService.logDebug("Silent Renew or login not running, try to refresh the session"),this.refreshSession().subscribe()),fe}),Md(()=>this.loggerService.logDebug("IsAuthorizedRace: Completed")),function dxe(n,r){return r?xc(()=>n,r):xc(()=>n)}(this._isAuthorized.asObservable()),Md(fe=>this.loggerService.logDebug(`getIsAuthorized: ${fe}`)),QJ(1)),this._isSetupAndAuthorized.pipe(Fo(()=>this.configurationProvider.openIDConfiguration.start_checksession)).subscribe(fe=>{fe?this.oidcSecurityCheckSession.startCheckingSession(this.configurationProvider.openIDConfiguration.client_id):this.oidcSecurityCheckSession.stopCheckingSession()})}get onModuleSetup(){return this._onModuleSetup.asObservable()}get onAuthorizationResult(){return this._onAuthorizationResult.asObservable()}get onCheckSessionChanged(){return this._onCheckSessionChanged.asObservable()}get onConfigurationChange(){return this.configurationProvider.onConfigurationChange}setupModule(e,i){this.configurationProvider.setup(e,i),this.oidcSecurityCheckSession.onCheckSessionChanged.subscribe(()=>{this.loggerService.logDebug("onCheckSessionChanged"),this.checkSessionChanged=!0,this._onCheckSessionChanged.next(this.checkSessionChanged)});const o=this.oidcSecurityCommon.userData;o&&this.setUserData(o);const a=this.oidcSecurityCommon.isAuthorized;if(a&&(this.loggerService.logDebug("IsAuthorized setup module"),this.loggerService.logDebug(this.oidcSecurityCommon.idToken),this.oidcSecurityValidation.isTokenExpired(this.oidcSecurityCommon.idToken||this.oidcSecurityCommon.accessToken,this.configurationProvider.openIDConfiguration.silent_renew_offset_in_seconds)?this.loggerService.logDebug("IsAuthorized setup module; id_token isTokenExpired"):(this.loggerService.logDebug("IsAuthorized setup module; id_token is valid"),this.setIsAuthorized(a)),this.runTokenValidation()),this.loggerService.logDebug("STS server: "+this.configurationProvider.openIDConfiguration.stsServer),this._onModuleSetup.next(),this.configurationProvider.openIDConfiguration.silent_renew){this.oidcSecuritySilentRenew.initRenew(),this.boundSilentRenewEvent=this.silentRenewEventHandler.bind(this);const s=Math.random(),l=(d=>{d.detail!==s&&(window.removeEventListener("oidc-silent-renew-message",this.boundSilentRenewEvent),window.removeEventListener("oidc-silent-renew-init",l))}).bind(this);window.addEventListener("oidc-silent-renew-init",l,!1),window.addEventListener("oidc-silent-renew-message",this.boundSilentRenewEvent,!1),window.dispatchEvent(new CustomEvent("oidc-silent-renew-init",{detail:s}))}}getUserData(){return this._userData.asObservable()}getIsModuleSetup(){return this._isModuleSetup.asObservable()}getIsAuthorized(){return this._isSetupAndAuthorized}getToken(){if(!this._isAuthorized.getValue())return"";const e=this.oidcSecurityCommon.getAccessToken();return decodeURIComponent(e)}getIdToken(){if(!this._isAuthorized.getValue())return"";const e=this.oidcSecurityCommon.getIdToken();return decodeURIComponent(e)}getRefreshToken(){if(!this._isAuthorized.getValue())return"";const e=this.oidcSecurityCommon.getRefreshToken();return decodeURIComponent(e)}getPayloadFromIdToken(e=!1){const i=this.getIdToken();return this.tokenHelperService.getPayloadFromToken(i,e)}setState(e){this.oidcSecurityCommon.authStateControl=e}getState(){return this.oidcSecurityCommon.authStateControl}setCustomRequestParameters(e){this.oidcSecurityCommon.customRequestParams=e}authorize(e){if(this.configurationProvider.wellKnownEndpoints&&(this.authWellKnownEndpointsLoaded=!0),!this.authWellKnownEndpointsLoaded)return void this.loggerService.logError("Well known endpoints must be loaded before user can login!");if(!this.oidcSecurityValidation.config_validate_response_type(this.configurationProvider.openIDConfiguration.response_type))return;this.resetAuthorizationData(!1),this.loggerService.logDebug("BEGIN Authorize Code Flow, no auth data");let i=this.oidcSecurityCommon.authStateControl;i||(i=Date.now()+""+Math.random()+Math.random(),this.oidcSecurityCommon.authStateControl=i);const o="N"+Math.random()+Date.now();this.oidcSecurityCommon.authNonce=o,this.loggerService.logDebug("AuthorizedController created. local state: "+this.oidcSecurityCommon.authStateControl);let a="";if("code"===this.configurationProvider.openIDConfiguration.response_type){const s="C"+Math.random()+Date.now()+Date.now()+Math.random(),l=this.oidcSecurityValidation.generate_code_verifier(s);this.oidcSecurityCommon.code_verifier=s,this.configurationProvider.wellKnownEndpoints?a=this.createAuthorizeUrl(!0,l,this.configurationProvider.openIDConfiguration.redirect_url,o,i,this.configurationProvider.wellKnownEndpoints.authorization_endpoint||""):this.loggerService.logError("authWellKnownEndpoints is undefined")}else this.configurationProvider.wellKnownEndpoints?a=this.createAuthorizeUrl(!1,"",this.configurationProvider.openIDConfiguration.redirect_url,o,i,this.configurationProvider.wellKnownEndpoints.authorization_endpoint||""):this.loggerService.logError("authWellKnownEndpoints is undefined");e?e(a):this.redirectTo(a)}authorizedCallbackWithCode(e){this.authorizedCallbackWithCode$(e).subscribe()}authorizedCallbackWithCode$(e){const i=this.urlParserService.getUrlParameter(e,"code"),o=this.urlParserService.getUrlParameter(e,"state"),a=this.urlParserService.getUrlParameter(e,"session_state")||null;return o?i?(this.loggerService.logDebug("running validation for callback"+e),this.requestTokensWithCode$(i,o,a)):(this.loggerService.logDebug("no code in url"),Wo()):(this.loggerService.logDebug("no state in url"),Wo())}requestTokensWithCode(e,i,o){this.requestTokensWithCode$(e,i,o).subscribe()}requestTokensWithCode$(e,i,o){return this._isModuleSetup.pipe(Fo(a=>!!a),Oa(1),xc(()=>this.requestTokensWithCodeProcedure$(e,i,o)))}refreshTokensWithCodeProcedure(e,i){let o="";this.configurationProvider.wellKnownEndpoints&&this.configurationProvider.wellKnownEndpoints.token_endpoint&&(o=`${this.configurationProvider.wellKnownEndpoints.token_endpoint}`);let a=new dp;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.httpClient.post(o,`grant_type=refresh_token&client_id=${this.configurationProvider.openIDConfiguration.client_id}&refresh_token=${e}`,{headers:a}).pipe(Ct(l=>{this.loggerService.logDebug("token refresh response: "+JSON.stringify(l));let d=new Object;d=l,d.state=i,this.authorizedCodeFlowCallbackProcedure(d)}),N_(l=>(this.loggerService.logError(l),this.loggerService.logError(`OidcService code request ${this.configurationProvider.openIDConfiguration.stsServer}`),Wo(!1))))}requestTokensWithCodeProcedure(e,i,o){this.requestTokensWithCodeProcedure$(e,i,o).subscribe()}requestTokensWithCodeProcedure$(e,i,o){let a="";if(this.configurationProvider.wellKnownEndpoints&&this.configurationProvider.wellKnownEndpoints.token_endpoint&&(a=`${this.configurationProvider.wellKnownEndpoints.token_endpoint}`),!this.oidcSecurityValidation.validateStateFromHashCallback(i,this.oidcSecurityCommon.authStateControl))return this.loggerService.logWarning("authorizedCallback incorrect state"),Cb(new Error("incorrect state"));let s=new dp;s=s.set("Content-Type","application/x-www-form-urlencoded");let l=`grant_type=authorization_code&client_id=${this.configurationProvider.openIDConfiguration.client_id}&code_verifier=${this.oidcSecurityCommon.code_verifier}&code=${e}&redirect_uri=${this.configurationProvider.openIDConfiguration.redirect_url}`;return"running"===this.oidcSecurityCommon.silentRenewRunning&&(l=`grant_type=authorization_code&client_id=${this.configurationProvider.openIDConfiguration.client_id}&code_verifier=${this.oidcSecurityCommon.code_verifier}&code=${e}&redirect_uri=${this.configurationProvider.openIDConfiguration.silent_renew_url}`),this.httpClient.post(a,l,{headers:s}).pipe(Ct(d=>{let f=new Object;f=d,f.state=i,f.session_state=o,this.authorizedCodeFlowCallbackProcedure(f)}),N_(d=>(this.loggerService.logError(d),this.loggerService.logError(`OidcService code request ${this.configurationProvider.openIDConfiguration.stsServer}`),Cb(d))))}authorizedCodeFlowCallbackProcedure(e){const o="running"===this.oidcSecurityCommon.silentRenewRunning;this.loggerService.logDebug("BEGIN authorized Code Flow Callback, no auth data"),this.resetAuthorizationData(o),this.authorizedCallbackProcedure(e,o)}authorizedImplicitFlowCallbackProcedure(e){const o="running"===this.oidcSecurityCommon.silentRenewRunning;this.loggerService.logDebug("BEGIN authorizedCallback, no auth data"),this.resetAuthorizationData(o);const a=(e=e||window.location.hash.substr(1)).split("&").reduce(function(s,l){const d=l.split("=");return s[d.shift()]=d.join("="),s},{});this.authorizedCallbackProcedure(a,o)}authorizedImplicitFlowCallback(e){this._isModuleSetup.pipe(Fo(i=>i),Oa(1)).subscribe(()=>{this.authorizedImplicitFlowCallbackProcedure(e)})}redirectTo(e){window.location.href=e}authorizedCallbackProcedure(e,i){this.oidcSecurityCommon.authResult=e,this.configurationProvider.openIDConfiguration.history_cleanup_off||i?this.loggerService.logDebug("history clean up inactive"):window.history.replaceState({},window.document.title,window.location.origin+window.location.pathname),e.error?(i?this.loggerService.logDebug(e):this.loggerService.logWarning(e),this._onAuthorizationResult.next(new AA("unauthorized","login_required"===e.error?"LoginRequired":"SecureTokenServerError",i)),this.resetAuthorizationData(!1),this.oidcSecurityCommon.authNonce="",!this.configurationProvider.openIDConfiguration.trigger_authorization_result_event&&!i&&this.router.navigate([this.configurationProvider.openIDConfiguration.unauthorized_route])):(this.loggerService.logDebug(e),this.loggerService.logDebug("authorizedCallback created, begin token validation"),this.getSigningKeys().subscribe(o=>{const a=this.getValidatedStateResult(e,o);a.authResponseIsValid?(this.setAuthorizationData(a.access_token,a.id_token),this.oidcSecurityCommon.silentRenewRunning="",this.configurationProvider.openIDConfiguration.auto_userinfo?this.getUserinfo(i,e,a.id_token,a.decoded_id_token).subscribe(s=>{s?(this._onAuthorizationResult.next(new AA("authorized",a.state,i)),!this.configurationProvider.openIDConfiguration.trigger_authorization_result_event&&!i&&this.router.navigate([this.configurationProvider.openIDConfiguration.post_login_route])):(this._onAuthorizationResult.next(new AA("unauthorized",a.state,i)),!this.configurationProvider.openIDConfiguration.trigger_authorization_result_event&&!i&&this.router.navigate([this.configurationProvider.openIDConfiguration.unauthorized_route]))},s=>{this.loggerService.logWarning("Failed to retreive user info with error: "+JSON.stringify(s))}):(i||(this.oidcSecurityUserService.setUserData(a.decoded_id_token),this.setUserData(this.oidcSecurityUserService.getUserData())),this.runTokenValidation(),this._onAuthorizationResult.next(new AA("authorized",a.state,i)),!this.configurationProvider.openIDConfiguration.trigger_authorization_result_event&&!i&&this.router.navigate([this.configurationProvider.openIDConfiguration.post_login_route]))):(this.loggerService.logWarning("authorizedCallback, token(s) validation failed, resetting"),this.loggerService.logWarning(window.location.hash),this.resetAuthorizationData(!1),this.oidcSecurityCommon.silentRenewRunning="",this._onAuthorizationResult.next(new AA("unauthorized",a.state,i)),!this.configurationProvider.openIDConfiguration.trigger_authorization_result_event&&!i&&this.router.navigate([this.configurationProvider.openIDConfiguration.unauthorized_route]))},o=>{this.loggerService.logWarning("Failed to retreive siging key with error: "+JSON.stringify(o)),this.oidcSecurityCommon.silentRenewRunning=""}))}getUserinfo(e=!1,i,o,a){return i=i||this.oidcSecurityCommon.authResult,o=o||this.oidcSecurityCommon.idToken,a=a||this.tokenHelperService.getPayloadFromToken(o,!1),new ze(s=>{"id_token token"===this.configurationProvider.openIDConfiguration.response_type||"code"===this.configurationProvider.openIDConfiguration.response_type?e&&this._userData.value?(this.oidcSecurityCommon.sessionState=i.session_state,s.next(!0),s.complete()):this.oidcSecurityUserService.initUserData().subscribe(()=>{this.loggerService.logDebug("authorizedCallback (id_token token || code) flow");const l=this.oidcSecurityUserService.getUserData();this.oidcSecurityValidation.validate_userdata_sub_id_token(a.sub,l.sub)?(this.setUserData(l),this.loggerService.logDebug(this.oidcSecurityCommon.accessToken),this.loggerService.logDebug(this.oidcSecurityUserService.getUserData()),this.oidcSecurityCommon.sessionState=i.session_state,this.runTokenValidation(),s.next(!0)):(this.loggerService.logWarning("authorizedCallback, User data sub does not match sub in id_token"),this.loggerService.logDebug("authorizedCallback, token(s) validation failed, resetting"),this.resetAuthorizationData(!1),s.next(!1)),s.complete()}):(this.loggerService.logDebug("authorizedCallback id_token flow"),this.loggerService.logDebug(this.oidcSecurityCommon.accessToken),this.oidcSecurityUserService.setUserData(a),this.setUserData(this.oidcSecurityUserService.getUserData()),this.oidcSecurityCommon.sessionState=i.session_state,this.runTokenValidation(),s.next(!0),s.complete())})}logoff(e){if(this.loggerService.logDebug("BEGIN Authorize, no auth data"),this.configurationProvider.wellKnownEndpoints)if(this.configurationProvider.wellKnownEndpoints.end_session_endpoint){const a=this.createEndSessionUrl(this.configurationProvider.wellKnownEndpoints.end_session_endpoint,this.oidcSecurityCommon.idToken);this.resetAuthorizationData(!1),this.configurationProvider.openIDConfiguration.start_checksession&&this.checkSessionChanged?this.loggerService.logDebug("only local login cleaned up, server session has changed"):e?e(a):this.redirectTo(a)}else this.resetAuthorizationData(!1),this.loggerService.logDebug("only local login cleaned up, no end_session_endpoint");else this.loggerService.logWarning("authWellKnownEndpoints is undefined")}refreshSession(){if(!this.configurationProvider.openIDConfiguration.silent_renew)return Wo(!1);this.loggerService.logDebug("BEGIN refresh session Authorize");let e=this.oidcSecurityCommon.authStateControl;(""===e||null===e)&&(e=Date.now()+""+Math.random()+Math.random(),this.oidcSecurityCommon.authStateControl=e);const i="N"+Math.random()+Date.now();this.oidcSecurityCommon.authNonce=i,this.loggerService.logDebug("RefreshSession created. adding myautostate: "+this.oidcSecurityCommon.authStateControl);let o="";if("code"===this.configurationProvider.openIDConfiguration.response_type){if(this.configurationProvider.openIDConfiguration.use_refresh_token){const l=this.oidcSecurityCommon.getRefreshToken();if(l)return this.loggerService.logDebug("found refresh code, obtaining new credentials with refresh code"),this.oidcSecurityCommon.authNonce=OB.RefreshTokenNoncePlaceholder,this.refreshTokensWithCodeProcedure(l,e);this.loggerService.logDebug("no refresh token found, using silent renew")}const a="C"+Math.random()+Date.now()+Date.now()+Math.random(),s=this.oidcSecurityValidation.generate_code_verifier(a);this.oidcSecurityCommon.code_verifier=a,this.configurationProvider.wellKnownEndpoints?o=this.createAuthorizeUrl(!0,s,this.configurationProvider.openIDConfiguration.silent_renew_url,i,e,this.configurationProvider.wellKnownEndpoints.authorization_endpoint||"","none"):this.loggerService.logWarning("authWellKnownEndpoints is undefined")}else this.configurationProvider.wellKnownEndpoints?o=this.createAuthorizeUrl(!1,"",this.configurationProvider.openIDConfiguration.silent_renew_url,i,e,this.configurationProvider.wellKnownEndpoints.authorization_endpoint||"","none"):this.loggerService.logWarning("authWellKnownEndpoints is undefined");return this.oidcSecurityCommon.silentRenewRunning="running",this.oidcSecuritySilentRenew.startRenew(o).pipe(Ct(()=>!0))}handleError(e){const o="running"===this.oidcSecurityCommon.silentRenewRunning;this.loggerService.logError(e),403===e.status||"403"===e.status?this.configurationProvider.openIDConfiguration.trigger_authorization_result_event?this._onAuthorizationResult.next(new AA("unauthorized","NotSet",o)):this.router.navigate([this.configurationProvider.openIDConfiguration.forbidden_route]):401!==e.status&&"401"!==e.status||(this.resetAuthorizationData(!!this.oidcSecurityCommon.silentRenewRunning),this.configurationProvider.openIDConfiguration.trigger_authorization_result_event?this._onAuthorizationResult.next(new AA("unauthorized","NotSet",o)):this.router.navigate([this.configurationProvider.openIDConfiguration.unauthorized_route]))}startCheckingSilentRenew(){this.runTokenValidation()}stopCheckingSilentRenew(){this._scheduledHeartBeat&&(clearTimeout(this._scheduledHeartBeat),this._scheduledHeartBeat=null,this.runTokenValidationRunning=!1)}resetAuthorizationData(e){e||(this.configurationProvider.openIDConfiguration.auto_userinfo&&this.setUserData(""),this.oidcSecurityCommon.resetStorageData(e),this.checkSessionChanged=!1,this.setIsAuthorized(!1))}getEndSessionUrl(){if(this.configurationProvider.wellKnownEndpoints&&this.configurationProvider.wellKnownEndpoints.end_session_endpoint)return this.createEndSessionUrl(this.configurationProvider.wellKnownEndpoints.end_session_endpoint,this.oidcSecurityCommon.idToken)}getValidatedStateResult(e,i){return e.error?new see("","",!1,{}):this.stateValidationService.validateState(e,i)}setUserData(e){this.oidcSecurityCommon.userData=e,this._userData.next(e)}setIsAuthorized(e){this._isAuthorized.next(e)}setAuthorizationData(e,i){""!==this.oidcSecurityCommon.accessToken&&(this.oidcSecurityCommon.accessToken=""),this.loggerService.logDebug(e),this.loggerService.logDebug(i),this.loggerService.logDebug("storing to storage, getting the roles"),this.oidcSecurityCommon.accessToken=e,this.oidcSecurityCommon.idToken=i,this.setIsAuthorized(!0),this.oidcSecurityCommon.isAuthorized=!0}createAuthorizeUrl(e,i,o,a,s,l,d){const f=l.split("?"),C=f[0];let M=new _b({fromString:f[1],encoder:new gee});M=M.set("client_id",this.configurationProvider.openIDConfiguration.client_id),M=M.append("redirect_uri",o),M=M.append("response_type",this.configurationProvider.openIDConfiguration.response_type),M=M.append("scope",this.configurationProvider.openIDConfiguration.scope),M=M.append("nonce",a),M=M.append("state",s),e&&(M=M.append("code_challenge",i),M=M.append("code_challenge_method","S256")),d&&(M=M.append("prompt",d)),this.configurationProvider.openIDConfiguration.hd_param&&(M=M.append("hd",this.configurationProvider.openIDConfiguration.hd_param));const T=Object.assign({},this.oidcSecurityCommon.customRequestParams);return Object.keys(T).forEach(F=>{M=M.append(F,T[F].toString())}),`${C}?${M}`}createEndSessionUrl(e,i){const o=e.split("?"),a=o[0];let s=new _b({fromString:o[1],encoder:new gee});return s=s.set("id_token_hint",i),s=s.append("post_logout_redirect_uri",this.configurationProvider.openIDConfiguration.post_logout_redirect_uri),`${a}?${s}`}getSigningKeys(){return this.configurationProvider.wellKnownEndpoints?(this.loggerService.logDebug("jwks_uri: "+this.configurationProvider.wellKnownEndpoints.jwks_uri),this.oidcDataService.get(this.configurationProvider.wellKnownEndpoints.jwks_uri||"").pipe(N_(this.handleErrorGetSigningKeys))):(this.loggerService.logWarning("getSigningKeys: authWellKnownEndpoints is undefined"),this.oidcDataService.get("undefined").pipe(N_(this.handleErrorGetSigningKeys)))}handleErrorGetSigningKeys(e){let i;if(e instanceof Response){const o=e.json()||{},a=JSON.stringify(o);i=`${e.status} - ${e.statusText||""} ${a}`}else i=e.message?e.message:e.toString();return this.loggerService.logError(i),Cb(i)}runTokenValidation(){if(this.runTokenValidationRunning||!this.configurationProvider.openIDConfiguration.silent_renew)return;this.runTokenValidationRunning=!0,this.loggerService.logDebug("runTokenValidation silent-renew running");const e=()=>{if(this.loggerService.logDebug(`silentRenewHeartBeatCheck\r\n\tsilentRenewRunning: ${"running"===this.oidcSecurityCommon.silentRenewRunning}\r\n\tidToken: ${!!this.getIdToken()}\r\n\t_userData.value: ${!!this._userData.value}`),this._userData.value&&"running"!==this.oidcSecurityCommon.silentRenewRunning&&this.getIdToken()&&this.oidcSecurityValidation.isTokenExpired(this.oidcSecurityCommon.idToken,this.configurationProvider.openIDConfiguration.silent_renew_offset_in_seconds)){if(this.loggerService.logDebug("IsAuthorized: id_token isTokenExpired, start silent renew if active"),this.configurationProvider.openIDConfiguration.silent_renew)return void this.refreshSession().subscribe(()=>{this._scheduledHeartBeat=setTimeout(e,3e3)},i=>{this.loggerService.logError("Error: "+i),this._scheduledHeartBeat=setTimeout(e,3e3)});this.resetAuthorizationData(!1)}this._scheduledHeartBeat=setTimeout(e,3e3)};this.zone.runOutsideAngular(()=>{this._scheduledHeartBeat=setTimeout(e,1e4)})}silentRenewEventHandler(e){if(this.loggerService.logDebug("silentRenewEventHandler"),"code"===this.configurationProvider.openIDConfiguration.response_type){const i=e.detail.toString().split("?"),o=new _b({fromString:i[1]}),a=o.get("code"),s=o.get("state"),l=o.get("session_state"),d=o.get("error");a&&s&&this.requestTokensWithCodeProcedure(a,s,l),d&&(this._onAuthorizationResult.next(new AA("unauthorized","LoginRequired",!0)),this.resetAuthorizationData(!1),this.oidcSecurityCommon.authNonce="",this.loggerService.logDebug(e.detail.toString()))}else this.authorizedImplicitFlowCallback(e.detail)}}return n.\u0275fac=function(e){return new(e||n)(en(JV),en(dee),en(ed),en(pee),en(fee),en(mee),en(b3),en(OB),en(PB),en($y),en(Zo),en(_g),en(x0),en(xA))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),LMe=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[kB,H_,OB,pee,fee,mee,b3,PB,$y,ZV,lee,JV,dee,{provide:cee,useClass:e.storage||BMe}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})(),MA=(()=>{class n{constructor(){this.layout={isFixed:!0,isCollapsed:!1,isBoxed:!1,isRTL:!1,horizontal:!1,isFloat:!1,asideHover:!1,theme:null,asideScrollbar:!1,isCollapsedText:!1,useFullLayout:!1,hiddenFooter:!1,offsidebarOpen:!1,asideToggled:!1,viewAnimation:"ng-fadeInUp"}}getLayoutSetting(e){return e?this.layout[e]:this.layout}setLayoutSetting(e,i){if(typeof this.layout[e]<"u")return this.layout[e]=i}toggleLayoutSetting(e){return this.setLayoutSetting(e,!this.getLayoutSetting(e))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),y3=(()=>{class n{constructor(){this._menuItems=new Yn([]),this.menuItems=this._menuItems.asObservable()}setMenu(e){this._menuItems.next(e)}addMenu(e){const i=this._menuItems.getValue();this.setMenu(i.concat(e))}getMenu(){return this._menuItems.getValue()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),HMe=(()=>{class n{constructor(e){!function NMe(n,r){if(n)throw new Error(`${r} has already been loaded. Import Core modules in the AppModule only.`)}(e,"CoreModule")}}return n.\u0275fac=function(e){return new(e||n)(en(n,12))},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[MA,y3]}),n})(),C3=(()=>{class n{constructor(){this._user=new Yn({name:"",role:"",pictureUrl:null}),this.user$=this._user.asObservable(),this.userBlockVisible=!0}getVisibility(){return this.userBlockVisible}setVisibility(e=!0){this.userBlockVisible=e}toggleVisibility(){this.userBlockVisible=!this.userBlockVisible}set user(e){this._user.next(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();class VMe{constructor(r,e){this.open=r,this.close=e||r}isManual(){return"manual"===this.open||"manual"===this.close}}const UMe={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function eU(n,r=UMe){const e=(n||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(a=>a.split(":")).map(a=>{const s=r[a[0]]||a;return new VMe(s[0],s[1])}),o=i.filter(a=>a.isManual());if(o.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===o.length&&i.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return i}const jp=typeof window<"u"&&window||{};var EB=(()=>(function(n){n.isBs3="bs3",n.isBs4="bs4",n.isBs5="bs5"}(EB||(EB={})),EB))();let mv;function tU(){if(typeof jp.document>"u")return"bs4";const n=jp.document.createElement("span");n.innerText="testing bs version",n.classList.add("d-none"),n.classList.add("pl-1"),jp.document.head.appendChild(n);const r=n.getBoundingClientRect(),e=jp.getComputedStyle(n).paddingLeft;return!r||r&&0!==r.top?(jp.document.head.removeChild(n),"bs3"):e&&parseFloat(e)?(jp.document.head.removeChild(n),"bs4"):(jp.document.head.removeChild(n),"bs5")}function Yy(){return typeof jp>"u"||(typeof jp.__theme>"u"?(mv||(mv=tU()),"bs3"===mv):"bs3"===jp.__theme)}function _ee(){return!Yy()&&(mv||(mv=tU()),"bs4"===mv)}function EP(){return{isBs3:Yy(),isBs4:_ee(),isBs5:!Yy()&&!_ee()&&(mv||(mv=tU()),"bs5"===mv)}}function vee(){const n="Change";return function(e,i){const o=` __${i}Value`;Object.defineProperty(e,i,{get(){return this[o]},set(a){const s=this[o];this[o]=a,s!==a&&this[i+n]&&this[i+n].emit(a)}})}}const bee={},QMe=typeof console>"u"||!("warn"in console);function gv(n){!fR()||QMe||n in bee||(bee[n]=!0,console.warn(n))}class A3{}const SA="*";function Ku(n,r){return{type:7,name:n,definitions:r,options:{}}}function qa(n,r=null){return{type:4,styles:r,timings:n}}function TA(n,r=null){return{type:3,steps:n,options:r}}function yee(n,r=null){return{type:2,steps:n,options:r}}function uo(n){return{type:6,styles:n,offset:null}}function Al(n,r,e){return{type:0,name:n,styles:r,options:e}}function fS(n){return{type:5,steps:n}}function Xs(n,r,e=null){return{type:1,expr:n,animation:r,options:e}}function IP(n=null){return{type:9,options:n}}function FP(n,r,e=null){return{type:11,selector:n,animation:r,options:e}}function Cee(n){Promise.resolve().then(n)}class w3{constructor(r=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=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Cee(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Aee{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,i=0,o=0;const a=this.players.length;0==a?Cee(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==a&&this._onFinish()}),s.onDestroy(()=>{++i==a&&this._onDestroy()}),s.onStart(()=>{++o==a&&this._onStart()})}),this.totalTime=this.players.reduce((s,l)=>Math.max(s,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const r=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const wee="400ms cubic-bezier(0.4,0.0,0.2,1)",qMe=[uo({height:0,visibility:"hidden"}),qa(wee,uo({height:"*",visibility:"visible"}))],XMe=[uo({height:"*",visibility:"visible"}),qa(wee,uo({height:0,visibility:"hidden"}))];let JMe=(()=>{class n{constructor(e,i,o){this._el=e,this._renderer=i,this.collapsed=new Cn,this.collapses=new Cn,this.expanded=new Cn,this.expands=new Cn,this.isExpanded=!0,this.collapseNewValue=!0,this.isCollapsed=!1,this.isCollapse=!0,this.isCollapsing=!1,this.isAnimated=!1,this._display="block",this._stylesLoaded=!1,this._COLLAPSE_ACTION_NAME="collapse",this._EXPAND_ACTION_NAME="expand",this._factoryCollapseAnimation=o.build(XMe),this._factoryExpandAnimation=o.build(qMe)}set display(e){this._display=e,"none"!==e?this.isAnimated?this.toggle():this.show():this.hide()}set collapse(e){this.collapseNewValue=e,(!this._player||this._isAnimationDone)&&(this.isExpanded=e,this.toggle())}get collapse(){return this.isExpanded}ngAfterViewChecked(){this._stylesLoaded=!0,this._player&&this._isAnimationDone&&(this._player.reset(),this._renderer.setStyle(this._el.nativeElement,"height","*"))}toggle(){this.isExpanded?this.hide():this.show()}hide(){this.isCollapsing=!0,this.isExpanded=!1,this.isCollapsed=!0,this.isCollapsing=!1,this.collapses.emit(this),this._isAnimationDone=!1,this.animationRun(this.isAnimated,this._COLLAPSE_ACTION_NAME)(()=>{this._isAnimationDone=!0,this.collapseNewValue!==this.isCollapsed&&this.isAnimated?this.show():(this.collapsed.emit(this),this._renderer.setStyle(this._el.nativeElement,"display","none"))})}show(){this._renderer.setStyle(this._el.nativeElement,"display",this._display),this.isCollapsing=!0,this.isExpanded=!0,this.isCollapsed=!1,this.isCollapsing=!1,this.expands.emit(this),this._isAnimationDone=!1,this.animationRun(this.isAnimated,this._EXPAND_ACTION_NAME)(()=>{this._isAnimationDone=!0,this.collapseNewValue!==this.isCollapsed&&this.isAnimated?this.hide():(this.expanded.emit(this),this._renderer.removeStyle(this._el.nativeElement,"overflow"))})}animationRun(e,i){if(!e||!this._stylesLoaded)return a=>a();this._renderer.setStyle(this._el.nativeElement,"overflow","hidden"),this._renderer.addClass(this._el.nativeElement,"collapse");const o=i===this._EXPAND_ACTION_NAME?this._factoryExpandAnimation:this._factoryCollapseAnimation;return this._player&&this._player.reset(),this._player=o.create(this._el.nativeElement),this._player.play(),a=>{var s;return null===(s=this._player)||void 0===s?void 0:s.onDone(a)}}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(Wl),U(A3))},n.\u0275dir=Wn({type:n,selectors:[["","collapse",""]],hostVars:9,hostBindings:function(e,i){2&e&&(Tr("aria-hidden",i.isCollapsed),g("collapse",i.isCollapse)("in",i.isExpanded)("show",i.isExpanded)("collapsing",i.isCollapsing))},inputs:{display:"display",isAnimated:"isAnimated",collapse:"collapse"},outputs:{collapsed:"collapsed",collapses:"collapses",expanded:"expanded",expands:"expands"},exportAs:["bs-collapse"]}),n})(),IB=(()=>{class n{static forRoot(){return{ngModule:n,providers:[]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})();const ZMe=["*"],eSe=function(n){return{"text-muted":n}};function tSe(n,r){if(1&n&&(b(0,"button",7),L(1),y()),2&n){const e=w();m("ngClass",ri(2,eSe,e.isDisabled)),p(1),Be(" ",e.heading," ")}}const nSe=[[["","accordion-heading",""]],"*"],iSe=["[accordion-heading]","*"];let rSe=(()=>{class n{constructor(){this.closeOthers=!1,this.isAnimated=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xee=(()=>{class n{constructor(e){this.isAnimated=!1,this.closeOthers=!1,this.groups=[],Object.assign(this,e)}closeOtherPanels(e){!this.closeOthers||this.groups.forEach(i=>{i!==e&&(i.isOpen=!1)})}addGroup(e){e.isAnimated=this.isAnimated,this.groups.push(e)}removeGroup(e){const i=this.groups.indexOf(e);-1!==i&&this.groups.splice(i,1)}}return n.\u0275fac=function(e){return new(e||n)(U(rSe))},n.\u0275cmp=wn({type:n,selectors:[["accordion"]],hostAttrs:["role","tablist",1,"panel-group",2,"display","block"],hostVars:1,hostBindings:function(e,i){2&e&&Tr("aria-multiselectable",i.closeOthers)},inputs:{isAnimated:"isAnimated",closeOthers:"closeOthers"},ngContentSelectors:ZMe,decls:1,vars:0,template:function(e,i){1&e&&(Cs(),ha(0))},encapsulation:2}),n})(),oSe=(()=>{class n{constructor(e){this.isAnimated=!1,this.panelClass="panel-default",this.isDisabled=!1,this.isOpenChange=new Cn,this._isOpen=!1,this.accordion=e}get isOpen(){return this._isOpen}set isOpen(e){e!==this.isOpen&&(e&&this.accordion.closeOtherPanels(this),this._isOpen=e,Promise.resolve(null).then(()=>{this.isOpenChange.emit(e)}))}get isBs3(){return Yy()}ngOnInit(){this.accordion.addGroup(this)}ngOnDestroy(){this.accordion.removeGroup(this)}toggleOpen(){this.isDisabled||(this.isOpen=!this.isOpen)}}return n.\u0275fac=function(e){return new(e||n)(U(xee))},n.\u0275cmp=wn({type:n,selectors:[["accordion-group"],["accordion-panel"]],hostAttrs:[1,"panel",2,"display","block"],hostVars:2,hostBindings:function(e,i){2&e&&g("panel-open",i.isOpen)},inputs:{heading:"heading",panelClass:"panelClass",isDisabled:"isDisabled",isOpen:"isOpen"},outputs:{isOpenChange:"isOpenChange"},ngContentSelectors:iSe,decls:9,vars:6,consts:[[1,"panel","card",3,"ngClass"],["role","tab",1,"panel-heading","card-header",3,"ngClass","click"],[1,"panel-title"],["role","button",1,"accordion-toggle"],["class","btn btn-link","type","button",3,"ngClass",4,"ngIf"],["role","tabpanel",1,"panel-collapse","collapse",3,"collapse","isAnimated"],[1,"panel-body","card-block","card-body"],["type","button",1,"btn","btn-link",3,"ngClass"]],template:function(e,i){1&e&&(Cs(nSe),b(0,"div",0)(1,"div",1),Me("click",function(){return i.toggleOpen()}),b(2,"div",2)(3,"div",3),O(4,tSe,2,4,"button",4),ha(5),y()()(),b(6,"div",5)(7,"div",6),ha(8,1),y()()()),2&e&&(m("ngClass",i.panelClass),p(1),m("ngClass",i.isDisabled?"panel-disabled":"panel-enabled"),p(2),Tr("aria-expanded",i.isOpen),p(1),m("ngIf",i.heading),p(2),m("collapse",!i.isOpen)("isAnimated",i.isAnimated))},dependencies:[ra,rr,JMe],styles:["[_nghost-%COMP%] .card-header.panel-enabled[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] .card-header.panel-disabled[_ngcontent-%COMP%] .btn.btn-link[_ngcontent-%COMP%]{cursor:default;text-decoration:none}"]}),n})(),iU=(()=>{class n{static forRoot(){return{ngModule:n,providers:[]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs,IB]}),n})();function oU(n,r,e,i){var s,o=arguments.length,a=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,r,e,i);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(a=(o<3?s(a):o>3?s(r,e,a):s(r,e))||a);return o>3&&a&&Object.defineProperty(r,e,a),a}function See(n,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,r)}function lSe(n,r){if(1&n){const e=xt();b(0,"button",2),Me("click",function(){return Oe(e),Re(w(2).close())}),b(1,"span",3),L(2,"\xd7"),y(),b(3,"span",4),L(4,"Close"),y()()}}function cSe(n,r){if(1&n&&(b(0,"div",1),O(1,lSe,5,0,"ng-template",0),ha(2),y()),2&n){const e=w();J("alert alert-"+e.type),m("ngClass",e.classes),p(1),m("ngIf",e.dismissible)}}const dSe=["*"];let uSe=(()=>{class n{constructor(){this.type="warning",this.dismissible=!1,this.dismissOnTimeout=void 0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pee=(()=>{class n{constructor(e,i){this.changeDetection=i,this.type="warning",this.dismissible=!1,this.isOpen=!0,this.onClose=new Cn,this.onClosed=new Cn,this.classes="",this.dismissibleChange=new Cn,Object.assign(this,e),this.dismissibleChange.subscribe(()=>{this.classes=this.dismissible?"alert-dismissible":"",this.changeDetection.markForCheck()})}ngOnInit(){this.dismissOnTimeout&&setTimeout(()=>this.close(),parseInt(this.dismissOnTimeout,10))}close(){!this.isOpen||(this.onClose.emit(this),this.isOpen=!1,this.changeDetection.markForCheck(),this.onClosed.emit(this))}}return n.\u0275fac=function(e){return new(e||n)(U(uSe),U(Go))},n.\u0275cmp=wn({type:n,selectors:[["alert"],["bs-alert"]],inputs:{type:"type",dismissible:"dismissible",dismissOnTimeout:"dismissOnTimeout",isOpen:"isOpen"},outputs:{onClose:"onClose",onClosed:"onClosed"},ngContentSelectors:dSe,decls:1,vars:1,consts:[[3,"ngIf"],["role","alert",3,"ngClass"],["type","button","aria-label","Close",1,"close","btn-close",3,"click"],["aria-hidden","true",1,"visually-hidden"],[1,"sr-only","visually-hidden"]],template:function(e,i){1&e&&(Cs(),O(0,cSe,3,4,"ng-template",0)),2&e&&m("ngIf",i.isOpen)},dependencies:[ra,rr],encapsulation:2,changeDetection:0}),oU([vee(),See("design:type",Object)],n.prototype,"dismissible",void 0),n})(),Oee=(()=>{class n{static forRoot(){return{ngModule:n,providers:[]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();const pSe={provide:Rc,useExisting:ue(()=>hSe),multi:!0};let hSe=(()=>{class n{constructor(){this.btnCheckboxTrue=!0,this.btnCheckboxFalse=!1,this.state=!1,this.isDisabled=!1,this.onChange=Function.prototype,this.onTouched=Function.prototype}onClick(){this.isDisabled||(this.toggle(!this.state),this.onChange(this.value))}ngOnInit(){this.toggle(this.trueValue===this.value)}get trueValue(){return!(typeof this.btnCheckboxTrue<"u")||this.btnCheckboxTrue}get falseValue(){return typeof this.btnCheckboxFalse<"u"&&this.btnCheckboxFalse}toggle(e){this.state=e,this.value=this.state?this.trueValue:this.falseValue}writeValue(e){this.state=this.trueValue===e,this.value=e?this.trueValue:this.falseValue}setDisabledState(e){this.isDisabled=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,selectors:[["","btnCheckbox",""]],hostVars:3,hostBindings:function(e,i){1&e&&Me("click",function(){return i.onClick()}),2&e&&(Tr("aria-pressed",i.state),g("active",i.state))},inputs:{btnCheckboxTrue:"btnCheckboxTrue",btnCheckboxFalse:"btnCheckboxFalse"},features:[lo([pSe])]}),n})();const fSe={provide:Rc,useExisting:ue(()=>kee),multi:!0};let kee=(()=>{class n{constructor(e,i,o,a){this.el=e,this.cdr=i,this.renderer=o,this.group=a,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.uncheckable=!1,this.role="radio",this._disabled=!1,this._hasFocus=!1}get value(){return this.group?this.group.value:this._value}set value(e){this.group?this.group.value=e:(this._value=e,this._onChange(e))}get disabled(){return this._disabled}set disabled(e){this.setDisabledState(e)}get controlOrGroupDisabled(){return!!(this.disabled||this.group&&this.group.disabled)||void 0}get hasDisabledClass(){return this.controlOrGroupDisabled&&!this.isActive}get isActive(){return this.btnRadio===this.value}get tabindex(){if(!this.controlOrGroupDisabled)return this.isActive||null==this.group?0:-1}get hasFocus(){return this._hasFocus}toggleIfAllowed(){!this.canToggle()||(this.value=this.uncheckable&&this.btnRadio===this.value?void 0:this.btnRadio)}onSpacePressed(e){this.toggleIfAllowed(),e.preventDefault()}focus(){this.el.nativeElement.focus()}onFocus(){this._hasFocus=!0}onBlur(){this._hasFocus=!1,this.onTouched()}canToggle(){return!this.controlOrGroupDisabled&&(this.uncheckable||this.btnRadio!==this.value)}ngOnChanges(e){"uncheckable"in e&&(this.uncheckable=!1!==this.uncheckable&&typeof this.uncheckable<"u")}_onChange(e){this.group?this.group.value=e:(this.onTouched(),this.onChange(e))}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._disabled=e,e?this.renderer.setAttribute(this.el.nativeElement,"disabled","disabled"):this.renderer.removeAttribute(this.el.nativeElement,"disabled")}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(Go),U(Wl),U(ue(()=>Eee),8))},n.\u0275dir=Wn({type:n,selectors:[["","btnRadio",""]],hostVars:8,hostBindings:function(e,i){1&e&&Me("click",function(){return i.toggleIfAllowed()})("keydown.space",function(a){return i.onSpacePressed(a)})("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()}),2&e&&(Tr("aria-disabled",i.controlOrGroupDisabled)("aria-checked",i.isActive)("role",i.role)("tabindex",i.tabindex),g("disabled",i.hasDisabledClass)("active",i.isActive))},inputs:{btnRadio:"btnRadio",uncheckable:"uncheckable",value:"value",disabled:"disabled"},features:[lo([fSe]),vo]}),n})();const mSe={provide:Rc,useExisting:ue(()=>Eee),multi:!0};let Eee=(()=>{class n{constructor(e){this.cdr=e,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.role="radiogroup",this._disabled=!1}get value(){return this._value}set value(e){this._value=e,this.onChange(e)}get disabled(){return this._disabled}get tabindex(){return this._disabled?null:0}writeValue(e){this._value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.radioButtons&&(this._disabled=e,this.radioButtons.forEach(i=>{i.setDisabledState(e)}),this.cdr.markForCheck())}onFocus(){if(this._disabled)return;const e=this.getActiveOrFocusedRadio();if(e)e.focus();else if(this.radioButtons){const i=this.radioButtons.find(o=>!o.disabled);i&&i.focus()}}onBlur(){this.onTouched&&this.onTouched()}selectNext(e){this.selectInDirection("next"),e.preventDefault()}selectPrevious(e){this.selectInDirection("previous"),e.preventDefault()}selectInDirection(e){if(this._disabled)return;function i(a,s){let d=(a+("next"===e?1:-1))%s.length;return d<0&&(d=s.length-1),d}const o=this.getActiveOrFocusedRadio();if(o&&this.radioButtons){const a=this.radioButtons.toArray(),s=a.indexOf(o);for(let l=i(s,a);l!==s;l=i(l,a))if(a[l].canToggle()){a[l].toggleIfAllowed(),a[l].focus();break}}}getActiveOrFocusedRadio(){if(this.radioButtons)return this.radioButtons.find(e=>e.isActive)||this.radioButtons.find(e=>e.hasFocus)}}return n.\u0275fac=function(e){return new(e||n)(U(Go))},n.\u0275dir=Wn({type:n,selectors:[["","btnRadioGroup",""]],contentQueries:function(e,i,o){if(1&e&&Jo(o,kee,4),2&e){let a;Ai(a=wi())&&(i.radioButtons=a)}},hostVars:2,hostBindings:function(e,i){1&e&&Me("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("keydown.ArrowRight",function(a){return i.selectNext(a)})("keydown.ArrowDown",function(a){return i.selectNext(a)})("keydown.ArrowLeft",function(a){return i.selectPrevious(a)})("keydown.ArrowUp",function(a){return i.selectPrevious(a)}),2&e&&Tr("role",i.role)("tabindex",i.tabindex)},features:[lo([mSe])]}),n})(),Iee=(()=>{class n{static forRoot(){return{ngModule:n,providers:[]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})();function dd(n,r,e,i){return W(e)&&(i=e,e=void 0),i?dd(n,r,e).pipe(Ct(o=>H(o)?i(...o):i(o))):new ze(o=>{Fee(n,r,function a(s){o.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},o,e)})}function Fee(n,r,e,i,o){let a;if(function vSe(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(r,e,o),a=()=>s.removeEventListener(r,e,o)}else if(function _Se(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(r,e),a=()=>s.off(r,e)}else if(function gSe(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(r,e),a=()=>s.removeListener(r,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,l=n.length;s0?super.requestAsyncId(r,e,i):(r.actions.push(this),r.scheduled||(r.scheduled=requestAnimationFrame(()=>r.flush(null))))}recycleAsyncId(r,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(r,e,i);0===r.actions.length&&(cancelAnimationFrame(e),r.scheduled=void 0)}});var BB=(()=>(function(n){n.top="top",n.bottom="bottom",n.left="left",n.right="right",n.auto="auto",n.end="right",n.start="left",n["top left"]="top left",n["top right"]="top right",n["right top"]="right top",n["right bottom"]="right bottom",n["bottom right"]="bottom right",n["bottom left"]="bottom left",n["left bottom"]="left bottom",n["left top"]="left top",n["top start"]="top left",n["top end"]="top right",n["end top"]="right top",n["end bottom"]="right bottom",n["bottom end"]="bottom right",n["bottom start"]="bottom left",n["start bottom"]="start bottom",n["start top"]="left top"}(BB||(BB={})),BB))(),RP=(()=>(function(n){n.top="top",n.bottom="bottom",n.left="start",n.right="end",n.auto="auto",n.end="end",n.start="start",n["top left"]="top start",n["top right"]="top end",n["right top"]="end top",n["right bottom"]="end bottom",n["bottom right"]="bottom end",n["bottom left"]="bottom start",n["left bottom"]="start bottom",n["left top"]="start top",n["top start"]="top start",n["top end"]="top end",n["end top"]="end top",n["end bottom"]="end bottom",n["bottom end"]="bottom end",n["bottom start"]="bottom start",n["start bottom"]="start bottom",n["start top"]="start top"}(RP||(RP={})),RP))();function mS(n,r){if(1!==n.nodeType)return[];const i=n.ownerDocument.defaultView?.getComputedStyle(n,null);return r?i&&i[r]:i}function aU(n){if(!n)return document.documentElement;let i,e=n?.offsetParent;for(;null===e&&n.nextElementSibling&&i!==n.nextElementSibling;)i=n.nextElementSibling,e=i.offsetParent;const o=e&&e.nodeName;return o&&"BODY"!==o&&"HTML"!==o?e&&-1!==["TH","TD","TABLE"].indexOf(e.nodeName)&&"static"===mS(e,"position")?aU(e):e:i?i.ownerDocument.documentElement:document.documentElement}function sU(n){return null!==n.parentNode?sU(n.parentNode):n}function LB(n,r){if(!(n&&n.nodeType&&r&&r.nodeType))return document.documentElement;const e=n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING,i=e?n:r,o=e?r:n,a=document.createRange();a.setStart(i,0),a.setEnd(o,0);const s=a.commonAncestorContainer;if(n!==s&&r!==s||i.contains(o))return function CSe(n){const{nodeName:r}=n;return"BODY"!==r&&("HTML"===r||aU(n.firstElementChild)===n)}(s)?s:aU(s);const l=sU(n);return l.host?LB(l.host,r):LB(n,sU(r).host)}function Ree(n){if(!n||!n.parentElement)return document.documentElement;let r=n.parentElement;for(;null!==(e=r)&&void 0!==e&&e.parentElement&&"none"===mS(r,"transform");){var e;r=r.parentElement}return r||document.documentElement}function Bee(n,r){const e="x"===r?"Left":"Top",i="Left"===e?"Right":"Bottom";return parseFloat(n[`border${e}Width`])+parseFloat(n[`border${i}Width`])}function Lee(n,r,e,i){return Math.max(r[`offset${n}`],r[`scroll${n}`],e[`client${n}`],e[`offset${n}`],e[`scroll${n}`],0)}function Nee(n){const r=n.body,e=n.documentElement;return{height:Lee("Height",r,e),width:Lee("Width",r,e)}}function x3(n){return{...n,right:(n.left||0)+n.width,bottom:(n.top||0)+n.height}}function $p(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function Hee(n){const r=n.getBoundingClientRect();if(!(r&&$p(r.top)&&$p(r.left)&&$p(r.bottom)&&$p(r.right)))return r;const e={left:r.left,top:r.top,width:r.right-r.left,height:r.bottom-r.top},i="HTML"===n.nodeName?Nee(n.ownerDocument):void 0,o=i?.width||n.clientWidth||$p(r.right)&&$p(e.left)&&r.right-e.left||0,a=i?.height||n.clientHeight||$p(r.bottom)&&$p(e.top)&&r.bottom-e.top||0;let s=n.offsetWidth-o,l=n.offsetHeight-a;if(s||l){const d=mS(n);s-=Bee(d,"x"),l-=Bee(d,"y"),e.width-=s,e.height-=l}return x3(e)}function lU(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function cU(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}const{overflow:r,overflowX:e,overflowY:i}=mS(n);return/(auto|scroll|overlay)/.test(String(r)+String(i)+String(e))?n:cU(lU(n))}function dU(n,r,e=!1){var i,o,a,s;const l="HTML"===r.nodeName,d=Hee(n),f=Hee(r),M=(cU(n),mS(r)),T=parseFloat(M.borderTopWidth),F=parseFloat(M.borderLeftWidth);var pe,ce;e&&l&&(f.top=Math.max(null!==(pe=f.top)&&void 0!==pe?pe:0,0),f.left=Math.max(null!==(ce=f.left)&&void 0!==ce?ce:0,0));const fe=x3({top:(null!==(i=d.top)&&void 0!==i?i:0)-(null!==(o=f.top)&&void 0!==o?o:0)-T,left:(null!==(a=d.left)&&void 0!==a?a:0)-(null!==(s=f.left)&&void 0!==s?s:0)-F,width:d.width,height:d.height});if(fe.marginTop=0,fe.marginLeft=0,l){const Pe=parseFloat(M.marginTop),Ne=parseFloat(M.marginLeft);$p(fe.top)&&(fe.top-=T-Pe),$p(fe.bottom)&&(fe.bottom-=T-Pe),$p(fe.left)&&(fe.left-=F-Ne),$p(fe.right)&&(fe.right-=F-Ne),fe.marginTop=Pe,fe.marginLeft=Ne}return fe}function Vee(n,r="top"){const e="top"===r?"scrollTop":"scrollLeft",i=n.nodeName;if("BODY"===i||"HTML"===i){const o=n.ownerDocument.documentElement;return(n.ownerDocument.scrollingElement||o)[e]}return n[e]}function Uee(n){const r=n.nodeName;return"BODY"!==r&&"HTML"!==r&&("fixed"===mS(n,"position")||Uee(lU(n)))}function uU(n,r,e=0,i,o=!1){let a={top:0,left:0};const s=o?Ree(n):LB(n,r);if("viewport"===i)a=function wSe(n,r=!1){const e=n.ownerDocument.documentElement,i=dU(n,e),o=Math.max(e.clientWidth,window.innerWidth||0),a=Math.max(e.clientHeight,window.innerHeight||0),s=r?0:Vee(e),l=r?0:Vee(e,"left");return x3({top:s-Number(i?.top)+Number(i?.marginTop),left:l-Number(i?.left)+Number(i?.marginLeft),width:o,height:a})}(s,o);else{let l;"scrollParent"===i?(l=cU(lU(r)),"BODY"===l.nodeName&&(l=n.ownerDocument.documentElement)):l="window"===i?n.ownerDocument.documentElement:i;const d=dU(l,s,o);if(d&&"HTML"===l.nodeName&&!Uee(s)){const{height:f,width:C}=Nee(n.ownerDocument);$p(a.top)&&$p(d.top)&&$p(d.marginTop)&&(a.top+=d.top-d.marginTop),$p(a.top)&&(a.bottom=Number(f)+Number(d.top)),$p(a.left)&&$p(d.left)&&$p(d.marginLeft)&&(a.left+=d.left-d.marginLeft),$p(a.top)&&(a.right=Number(C)+Number(d.left))}else d&&(a=d)}return $p(a.left)&&(a.left+=e),$p(a.top)&&(a.top+=e),$p(a.right)&&(a.right-=e),$p(a.bottom)&&(a.bottom-=e),a}function xSe({width:n,height:r}){return n*r}function zee(n,r,e,i,o=["top","bottom","right","left"],a="viewport",s=0){var l,d,f,C,M,T,F,pe,ce,fe,Pe,Ne;if(-1===n.indexOf("auto"))return n;const Ge=uU(e,i,s,a),lt={top:{width:null!==(l=Ge?.width)&&void 0!==l?l:0,height:(null!==(d=r?.top)&&void 0!==d?d:0)-(null!==(f=Ge?.top)&&void 0!==f?f:0)},right:{width:(null!==(C=Ge?.right)&&void 0!==C?C:0)-(null!==(M=r?.right)&&void 0!==M?M:0),height:null!==(T=Ge?.height)&&void 0!==T?T:0},bottom:{width:null!==(F=Ge?.width)&&void 0!==F?F:0,height:(null!==(pe=Ge?.bottom)&&void 0!==pe?pe:0)-(null!==(ce=r?.bottom)&&void 0!==ce?ce:0)},left:{width:(null!==(fe=r.left)&&void 0!==fe?fe:0)-(null!==(Pe=Ge?.left)&&void 0!==Pe?Pe:0),height:null!==(Ne=Ge?.height)&&void 0!==Ne?Ne:0}},Pt=Object.keys(lt).map(Nn=>({position:Nn,...lt[Nn],area:xSe(lt[Nn])})).sort((Nn,ii)=>ii.area-Nn.area);let Qt=Pt.filter(({width:Nn,height:ii})=>Nn>=e.clientWidth&&ii>=e.clientHeight);Qt=Qt.filter(({position:Nn})=>o.some(ii=>ii===Nn));const Ot=Qt.length>0?Qt[0].position:Pt[0].position,tn=n.split(" ")[1];return e.className=e.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${EP().isBs5?RP[Ot]:Ot}`),Ot+(tn?`-${tn}`:"")}const NB=(n,r=0)=>n?parseFloat(n):r;function jee(n){const e=n.ownerDocument.defaultView?.getComputedStyle(n),i=NB(e?.marginTop)+NB(e?.marginBottom),o=NB(e?.marginLeft)+NB(e?.marginRight);return{width:Number(n.offsetWidth)+o,height:Number(n.offsetHeight)+i}}function $ee(n,r,e){return dU(r,e?Ree(n):LB(n,r),e)}function pU(n,r,e){var i,o,a;const s=e.split(" ")[0],l=jee(n),d={width:l.width,height:l.height},f=-1!==["right","left"].indexOf(s),C=f?"top":"left",M=f?"left":"top",T=f?"height":"width",F=f?"width":"height";return d[C]=(null!==(i=r[C])&&void 0!==i?i:0)+r[T]/2-l[T]/2,d[M]=s===M?(null!==(o=r[M])&&void 0!==o?o:0)-l[F]:null!==(a=r[function SSe(n){const r={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,e=>r[e])}(M)])&&void 0!==a?a:0,d}function Yee(n,r){var e;return!(null===(e=n.modifiers[r])||void 0===e||!e.enabled)}const DSe={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function HB(n,r){return!!EP().isBs5&&DSe[r].includes(n)}function Gee(n,r,e){!n||!r||Object.keys(r).forEach(i=>{let o="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&function ASe(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(Number(n))}(r[i])&&(o="px"),e?e.setStyle(n,i,`${String(r[i])}${o}`):n.style[i]=String(r[i])+o})}function kSe(n){var r,e,i,o;let a=n.offsets.target;const s=n.instance.target.querySelector(".arrow");if(!s)return n;const l=-1!==["left","right"].indexOf(n.placement.split(" ")[0]),d=l?"height":"width",f=l?"Top":"Left",C=f.toLowerCase(),M=l?"left":"top",T=l?"bottom":"right",F=jee(s)[d],pe=n.placement.split(" ")[1];var ce,fe;(null!==(r=n.offsets.host[T])&&void 0!==r?r:0)-F<(null!==(e=a[C])&&void 0!==e?e:0)&&(a[C]-=(null!==(ce=a[C])&&void 0!==ce?ce:0)-((null!==(fe=n.offsets.host[T])&&void 0!==fe?fe:0)-F)),Number(n.offsets.host[C])+Number(F)>(null!==(i=a[T])&&void 0!==i?i:0)&&(a[C]+=Number(n.offsets.host[C])+Number(F)-Number(a[T])),a=x3(a);const Pe=mS(n.instance.target),Ne=parseFloat(Pe[`margin${f}`])||0,Ge=parseFloat(Pe[`border${f}Width`])||0;let lt;if(pe){const Qt=parseFloat(Pe.borderRadius)||0,Ot=Number(Ne+Ge+Qt);lt=C===pe?Number(n.offsets.host[C])+Ot:Number(n.offsets.host[C])+Number(n.offsets.host[d]-Ot)}else lt=Number(n.offsets.host[C])+Number(n.offsets.host[d]/2-F/2);let Pt=lt-(null!==(o=a[C])&&void 0!==o?o:0)-Ne-Ge;return Pt=Math.max(Math.min(a[d]-(F+5),Pt),0),n.offsets.arrow={[C]:Math.round(Pt),[M]:""},n.instance.arrow=s,n}function ESe(n){if(n.offsets.target=x3(n.offsets.target),!Yee(n.options,"flip"))return n.offsets.target={...n.offsets.target,...pU(n.instance.target,n.offsets.host,n.placement)},n;const r=uU(n.instance.target,n.instance.host,0,"viewport",!1);let e=n.placement.split(" ")[0],i=n.placement.split(" ")[1]||"";const l=zee("auto",n.offsets.host,n.instance.target,n.instance.host,n.options.allowedPositions),d=[e,l];return d.forEach((f,C)=>{var M,T,F,pe,ce,fe,Pe,Ne,Ge,lt,Pt,Qt,Ot,tn,Nn,ii;if(e!==f||d.length===C+1)return;e=n.placement.split(" ")[0];const Ht="left"===e&&Math.floor(null!==(M=n.offsets.target.right)&&void 0!==M?M:0)>Math.floor(null!==(T=n.offsets.host.left)&&void 0!==T?T:0)||"right"===e&&Math.floor(null!==(F=n.offsets.target.left)&&void 0!==F?F:0)Math.floor(null!==(fe=n.offsets.host.top)&&void 0!==fe?fe:0)||"bottom"===e&&Math.floor(null!==(Pe=n.offsets.target.top)&&void 0!==Pe?Pe:0)Math.floor(null!==(Qt=r.right)&&void 0!==Qt?Qt:0),At=Math.floor(null!==(Ot=n.offsets.target.top)&&void 0!==Ot?Ot:0)Math.floor(null!==(ii=r.bottom)&&void 0!==ii?ii:0),Lt="left"===e&&nn||"right"===e&&Fn||"top"===e&&At||"bottom"===e&&yn,pn=-1!==["top","bottom"].indexOf(e),hn=pn&&"left"===i&&nn||pn&&"right"===i&&Fn||!pn&&"left"===i&&At||!pn&&"right"===i&&yn;(Ht||Lt||hn)&&((Ht||Lt)&&(e=d[C+1]),hn&&(i=function TSe(n){return"right"===n?"left":"left"===n?"right":n}(i)),n.placement=e+(i?` ${i}`:""),n.offsets.target={...n.offsets.target,...pU(n.instance.target,n.offsets.host,n.placement)})}),n}function FSe(n){var r;if(!Yee(n.options,"preventOverflow"))return n;const e="transform",i=n.instance.target.style,{top:o,left:a,[e]:s}=i;i.top="",i.left="",i[e]="";const l=uU(n.instance.target,n.instance.host,0,(null===(r=n.options.modifiers.preventOverflow)||void 0===r?void 0:r.boundariesElement)||"scrollParent",!1);i.top=o,i.left=a,i[e]=s;const f={primary(C){var M,T;let F=n.offsets.target[C];var pe,ce;return(null!==(M=n.offsets.target[C])&&void 0!==M?M:0)<(null!==(T=l[C])&&void 0!==T?T:0)&&(F=Math.max(null!==(pe=n.offsets.target[C])&&void 0!==pe?pe:0,null!==(ce=l[C])&&void 0!==ce?ce:0)),{[C]:F}},secondary(C){var M,T;const F="right"===C,pe=F?"left":"top";let fe=n.offsets.target[pe];var Pe,Ne;return(null!==(M=n.offsets.target[C])&&void 0!==M?M:0)>(null!==(T=l[C])&&void 0!==T?T:0)&&(fe=Math.min(null!==(Pe=n.offsets.target[pe])&&void 0!==Pe?Pe:0,(null!==(Ne=l[C])&&void 0!==Ne?Ne:0)-n.offsets.target[F?"width":"height"])),{[pe]:fe}}};return["left","right","top","bottom"].forEach(C=>{const M=-1!==["left","top","start"].indexOf(C)?f.primary:f.secondary;n.offsets.target={...n.offsets.target,...M(C)}}),n}function RSe(n){const r=n.placement,e=r.split(" ")[0],i=r.split(" ")[1];if(i){var o;const{host:a,target:s}=n.offsets,l=-1!==["bottom","top"].indexOf(e),d=l?"left":"top",f=l?"width":"height",C={start:{[d]:a[d]},end:{[d]:(null!==(o=a[d])&&void 0!==o?o:0)+a[f]-s[f]}};n.offsets.target={...s,[d]:d===i?C.start[d]:C.end[d]}}return n}const LSe=new class BSe{position(r,e){return this.offset(r,e)}offset(r,e){return $ee(e,r)}positionElements(r,e,i,o,a){const s=[ESe,RSe,FSe,kSe],d=function ISe(n,r,e,i){if(!n||!r)return;const o=$ee(n,r);!e.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!e.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(e="auto");const a=!!e.match(/auto/g);let s=e.match(/auto\s(left|right|top|bottom|start|end)/)?e.split(" ")[1]||"auto":e;const l=s.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return l&&(s=l[1]+(l[2]?` ${l[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(s)&&(s="auto"),s=zee(s,o,n,r,i?i.allowedPositions:void 0),{options:i||{modifiers:{}},instance:{target:n,host:r,arrow:void 0},offsets:{target:pU(n,o,s),host:o,arrow:void 0},positionFixed:!1,placement:s,placementAuto:a}}(e,r,BB[i],a);if(d)return s.reduce((f,C)=>C(f),d)}};function NSe(n,r,e,i,o,a){const s=LSe.positionElements(n,r,e,i,o);if(!s)return;const l=function MSe(n){var r,e,i,o;return{width:n.offsets.target.width,height:n.offsets.target.height,left:Math.floor(null!==(r=n.offsets.target.left)&&void 0!==r?r:0),top:Math.round(null!==(e=n.offsets.target.top)&&void 0!==e?e:0),bottom:Math.round(null!==(i=n.offsets.target.bottom)&&void 0!==i?i:0),right:Math.floor(null!==(o=n.offsets.target.right)&&void 0!==o?o:0)}}(s);Gee(r,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${l.left}px, ${l.top}px, 0px)`},a),s.instance.arrow&&Gee(s.instance.arrow,s.offsets.arrow,a),function OSe(n,r){const e=n.instance.target;let i=e.className;const o=EP().isBs5?RP[n.placement]:n.placement;n.placementAuto&&(i=i.replace(/bs-popover-auto/g,`bs-popover-${o}`),i=i.replace(/ms-2|me-2|mb-2|mt-2/g,""),i=i.replace(/bs-tooltip-auto/g,`bs-tooltip-${o}`),i=i.replace(/\sauto/g,` ${o}`),-1!==i.indexOf("popover")&&(i=i+" "+function PSe(n){return EP().isBs5?HB(n,"end")?"ms-2":HB(n,"start")?"me-2":HB(n,"top")?"mb-2":HB(n,"bottom")?"mt-2":"":""}(o)),-1!==i.indexOf("popover")&&-1===i.indexOf("popover-auto")&&(i+=" popover-auto"),-1!==i.indexOf("tooltip")&&-1===i.indexOf("tooltip-auto")&&(i+=" tooltip-auto")),i=i.replace(/left|right|top|bottom|end|start/g,`${o.split(" ")[0]}`),r?r.setAttribute(e,"class",i):e.className=i}(s,a)}let Ab=(()=>{class n{constructor(e,i,o){this.update$$=new Fe,this.positionElements=new Map,this.isDisabled=!1,Ny(o)&&e.runOutsideAngular(()=>{this.triggerEvent$=or(dd(window,"scroll",{passive:!0}),dd(window,"resize",{passive:!0}),Wo(0,RB),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(a=>{NSe(VB(a.target),VB(a.element),a.attachment,a.appendToBody,this.options,i.createRenderer(null,null))})})})}position(e){this.addPositionElement(e)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(e){this.positionElements.set(VB(e.element),e)}calcPosition(){this.update$$.next(null)}deletePositionElement(e){this.positionElements.delete(VB(e))}setOptions(e){this.options=e}}return n.\u0275fac=function(e){return new(e||n)(en(Zo),en(iv),en(v0))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function VB(n){return"string"==typeof n?document.querySelector(n):n instanceof gr?n.nativeElement:n??null}class M3{constructor(r,e,i){this.nodes=r,this.viewRef=e,this.componentRef=i}}class HSe{constructor(r,e,i,o,a,s,l,d,f){this._viewContainerRef=r,this._renderer=e,this._elementRef=i,this._injector=o,this._componentFactoryResolver=a,this._ngZone=s,this._applicationRef=l,this._posService=d,this._document=f,this.onBeforeShow=new Cn,this.onShown=new Cn,this.onBeforeHide=new Cn,this.onHidden=new Cn,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(r){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(r),this}to(r){return this.container=r||this.container,this}position(r){return r?(this.attachment=r.attachment||this.attachment,this._elementRef=r.target||this._elementRef,this):this}provide(r){return this._providers.push(r),this}show(r={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(r.content,r.context,r.initialState);const e=ql.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(e,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,r),this.container instanceof gr&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof this._document<"u"){const i=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!i)return;i.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(r.id?{id:r.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(r){var e,i,o,a,s,l;if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const d=this._componentRef.location.nativeElement;return null===(e=d.parentNode)||void 0===e||e.removeChild(d),null===(i=this._contentRef)||void 0===i||null===(o=i.componentRef)||void 0===o||o.destroy(),this._viewContainerRef&&null!==(a=this._contentRef)&&void 0!==a&&a.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),null===(s=this._contentRef)||void 0===s||null===(l=s.viewRef)||void 0===l||l.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(r?{id:r}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(r){var e;this.triggers=r.triggers||this.triggers,this._listenOpts.outsideClick=r.outsideClick,this._listenOpts.outsideEsc=r.outsideEsc,r.target=r.target||(null===(e=this._elementRef)||void 0===e?void 0:e.nativeElement);const i=this._listenOpts.hide=()=>r.hide?r.hide():void this.hide(),o=this._listenOpts.show=s=>{r.show?r.show(s):this.show(s),s()};return this._renderer&&(this._unregisterListenersFn=function zMe(n,r){const e=eU(r.triggers),i=r.target;if(1===e.length&&e[0].isManual())return Function.prototype;const o=[],a=[],s=()=>{a.forEach(l=>o.push(l())),a.length=0};return e.forEach(l=>{const d=l.open===l.close,f=d?r.toggle:r.show;if(!d&&l.close&&r.hide){const C=n.listen(i,l.close,r.hide);a.push(()=>C)}f&&o.push(n.listen(i,l.open,()=>f(s)))}),()=>{o.forEach(l=>l())}}(this._renderer,{target:r.target,triggers:r.triggers,show:o,hide:i,toggle:s=>{this.isShown?i():o(s)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(r,e){return r&&e&&(this._inlineViewRef=r.createEmbeddedView(e)),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const r=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(this._globalListener=function jMe(n,r){return r.outsideClick?n.listen("document","click",e=>{r.target&&r.target.contains(e.target)||r.targets&&r.targets.some(i=>i.contains(e.target))||r.hide&&r.hide()}):Function.prototype}(this._renderer,{targets:[r,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(this._globalListener=function $Me(n,r){return r.outsideEsc?n.listen("document","keyup.esc",e=>{r.target&&r.target.contains(e.target)||r.targets&&r.targets.some(i=>i.contains(e.target))||r.hide&&r.hide()}):Function.prototype}(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{var r;this._posService.position({element:null===(r=this._componentRef)||void 0===r?void 0:r.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{!this._componentRef||this._posService.calcPosition()}))}_unsubscribePositioning(){!this._zoneSubscription||(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(r,e,i){if(!r)return new M3([]);if(r instanceof Na){if(this._viewContainerRef){const s=this._viewContainerRef.createEmbeddedView(r,e);return s.markForCheck(),new M3([s.rootNodes],s)}const a=r.createEmbeddedView({});return this._applicationRef.attachView(a),new M3([a.rootNodes],a)}if("function"==typeof r){const a=this._componentFactoryResolver.resolveComponentFactory(r),s=ql.create({providers:this._providers,parent:this._injector}),l=a.create(s);return Object.assign(l.instance,i),this._applicationRef.attachView(l.hostView),new M3([[l.location.nativeElement]],l.hostView,l)}const o=this._renderer?[this._renderer.createText(`${r}`)]:[];return new M3([o])}}let s1=(()=>{class n{constructor(e,i,o,a,s,l){this._componentFactoryResolver=e,this._ngZone=i,this._injector=o,this._posService=a,this._applicationRef=s,this._document=l}createLoader(e,i,o){return new HSe(i,o,e,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}}return n.\u0275fac=function(e){return new(e||n)(en($h),en(Zo),en(ql),en(Ab),en(pv),en(Fa))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const VSe=function(n){return{dropdown:n}},USe=["*"];let zSe=(()=>{class n{constructor(){this.autoClose=!0,this.insideClick=!1,this.isAnimated=!1,this.stopOnClickPropagation=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gS=(()=>{class n{constructor(){this.direction="down",this.autoClose=!0,this.insideClick=!1,this.isAnimated=!1,this.stopOnClickPropagation=!1,this.isOpenChange=new Cn,this.isDisabledChange=new Cn,this.toggleClick=new Cn,this.counts=0,this.dropdownMenu=new Promise(e=>{this.resolveDropdownMenu=e})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Wee=[uo({height:0,overflow:"hidden"}),qa("220ms cubic-bezier(0, 0, 0.2, 1)",uo({height:"*",overflow:"hidden"}))];let hU,$Se=(()=>{class n{constructor(e,i,o,a,s){this._state=e,this.cd=i,this._renderer=o,this._element=a,this.isOpen=!1,this._factoryDropDownAnimation=s.build(Wee),this._subscription=e.isOpenChange.subscribe(l=>{this.isOpen=l;const d=this._element.nativeElement.querySelector(".dropdown-menu");this._renderer.addClass(this._element.nativeElement.querySelector("div"),"open"),d&&!Yy()&&(this._renderer.addClass(d,"show"),(d.classList.contains("dropdown-menu-right")||d.classList.contains("dropdown-menu-end"))&&(this._renderer.setStyle(d,"left","auto"),this._renderer.setStyle(d,"right","0")),"up"===this.direction&&(this._renderer.setStyle(d,"top","auto"),this._renderer.setStyle(d,"transform","translateY(-101%)"))),d&&this._state.isAnimated&&this._factoryDropDownAnimation.create(d).play(),this.cd.markForCheck(),this.cd.detectChanges()})}get direction(){return this._state.direction}_contains(e){return this._element.nativeElement.contains(e)}ngOnDestroy(){this._subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(U(gS),U(Go),U(Wl),U(gr),U(A3))},n.\u0275cmp=wn({type:n,selectors:[["bs-dropdown-container"]],hostAttrs:[2,"display","block","position","absolute","z-index","1040"],ngContentSelectors:USe,decls:2,vars:9,consts:[[3,"ngClass"]],template:function(e,i){1&e&&(Cs(),b(0,"div",0),ha(1),y()),2&e&&(g("dropup","up"===i.direction)("show",i.isOpen)("open",i.isOpen),m("ngClass",ri(7,VSe,"down"===i.direction)))},dependencies:[ra],encapsulation:2,changeDetection:0}),n})(),Qee=(()=>{class n{constructor(e,i,o,a,s,l,d){this._elementRef=e,this._renderer=i,this._viewContainerRef=o,this._cis=a,this._state=s,this._config=l,this.dropup=!1,this._isInlineOpen=!1,this._isDisabled=!1,this._subscriptions=[],this._isInited=!1,this._state.autoClose=this._config.autoClose,this._state.insideClick=this._config.insideClick,this._state.isAnimated=this._config.isAnimated,this._state.stopOnClickPropagation=this._config.stopOnClickPropagation,this._factoryDropDownAnimation=d.build(Wee),this._dropdown=this._cis.createLoader(this._elementRef,this._viewContainerRef,this._renderer).provide({provide:gS,useValue:this._state}),this.onShown=this._dropdown.onShown,this.onHidden=this._dropdown.onHidden,this.isOpenChange=this._state.isOpenChange}set autoClose(e){this._state.autoClose=e}get autoClose(){return this._state.autoClose}set isAnimated(e){this._state.isAnimated=e}get isAnimated(){return this._state.isAnimated}set insideClick(e){this._state.insideClick=e}get insideClick(){return this._state.insideClick}set isDisabled(e){this._isDisabled=e,this._state.isDisabledChange.emit(e),e&&this.hide()}get isDisabled(){return this._isDisabled}get isOpen(){return this._showInline?this._isInlineOpen:this._dropdown.isShown}set isOpen(e){e?this.show():this.hide()}get isBs4(){return!Yy()}get _showInline(){return!this.container}ngOnInit(){this._isInited||(this._isInited=!0,this._dropdown.listen({outsideClick:!1,triggers:this.triggers,show:()=>this.show()}),this._subscriptions.push(this._state.toggleClick.subscribe(e=>this.toggle(e))),this._subscriptions.push(this._state.isDisabledChange.pipe(Fo(e=>e)).subscribe(()=>this.hide())))}show(){if(!this.isOpen&&!this.isDisabled){if(this._showInline)return this._inlinedMenu||this._state.dropdownMenu.then(e=>{this._dropdown.attachInline(e.viewContainer,e.templateRef),this._inlinedMenu=this._dropdown._inlineViewRef,this.addBs4Polyfills(),this._inlinedMenu&&this._renderer.addClass(this._inlinedMenu.rootNodes[0].parentNode,"open"),this.playAnimation()}).catch(),this.addBs4Polyfills(),this._isInlineOpen=!0,this.onShown.emit(!0),this._state.isOpenChange.emit(!0),void this.playAnimation();this._state.dropdownMenu.then(e=>{const i=this.dropup||typeof this.dropup<"u"&&this.dropup;this._state.direction=i?"up":"down";const o=this.placement||(i?"top start":"bottom start");this._dropdown.attach($Se).to(this.container).position({attachment:o}).show({content:e.templateRef,placement:o}),this._state.isOpenChange.emit(!0)}).catch()}}hide(){!this.isOpen||(this._showInline?(this.removeShowClass(),this.removeDropupStyles(),this._isInlineOpen=!1,this.onHidden.emit(!0)):this._dropdown.hide(),this._state.isOpenChange.emit(!1))}toggle(e){return this.isOpen||!e?this.hide():this.show()}_contains(e){return this._elementRef.nativeElement.contains(e.target)||this._dropdown.instance&&this._dropdown.instance._contains(e.target)}navigationClick(e){const i=this._elementRef.nativeElement.querySelector(".dropdown-menu");if(!i)return;const o=this._elementRef.nativeElement.ownerDocument.activeElement,a=i.querySelectorAll(".dropdown-item");switch(e.keyCode){case 38:this._state.counts>0&&a[--this._state.counts].focus();break;case 40:this._state.counts+1{this._inlinedMenu&&this._factoryDropDownAnimation.create(this._inlinedMenu.rootNodes[0]).play()})}addShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.addClass(this._inlinedMenu.rootNodes[0],"show")}removeShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.removeClass(this._inlinedMenu.rootNodes[0],"show")}checkRightAlignment(){if(this._inlinedMenu&&this._inlinedMenu.rootNodes[0]){const e=this._inlinedMenu.rootNodes[0].classList.contains("dropdown-menu-right")||this._inlinedMenu.rootNodes[0].classList.contains("dropdown-menu-end");this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"left",e?"auto":"0"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"right",e?"0":"auto")}}addDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"top",this.dropup?"auto":"100%"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"transform",this.dropup?"translateY(-101%)":"translateY(0)"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"bottom","auto"))}removeDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"top"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"transform"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"bottom"))}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(Wl),U(ac),U(s1),U(gS),U(zSe),U(A3))},n.\u0275dir=Wn({type:n,selectors:[["","bsDropdown",""],["","dropdown",""]],hostVars:6,hostBindings:function(e,i){1&e&&Me("keydown.arrowDown",function(a){return i.navigationClick(a)})("keydown.arrowUp",function(a){return i.navigationClick(a)}),2&e&&g("dropup",i.dropup)("open",i.isOpen)("show",i.isOpen&&i.isBs4)},inputs:{placement:"placement",triggers:"triggers",container:"container",dropup:"dropup",autoClose:"autoClose",isAnimated:"isAnimated",insideClick:"insideClick",isDisabled:"isDisabled",isOpen:"isOpen"},outputs:{isOpenChange:"isOpenChange",onShown:"onShown",onHidden:"onHidden"},exportAs:["bs-dropdown"],features:[lo([gS])]}),n})(),YSe=(()=>{class n{constructor(e,i,o){e.resolveDropdownMenu({templateRef:o,viewContainer:i})}}return n.\u0275fac=function(e){return new(e||n)(U(gS),U(ac),U(Na))},n.\u0275dir=Wn({type:n,selectors:[["","bsDropdownMenu",""],["","dropdownMenu",""]],exportAs:["bs-dropdown-menu"]}),n})(),GSe=(()=>{class n{constructor(e,i,o,a,s){this._changeDetectorRef=e,this._dropdown=i,this._element=o,this._renderer=a,this._state=s,this.isOpen=!1,this._subscriptions=[],this._subscriptions.push(this._state.isOpenChange.subscribe(l=>{this.isOpen=l,l?(this._documentClickListener=this._renderer.listen("document","click",d=>{this._state.autoClose&&2!==d.button&&!this._element.nativeElement.contains(d.target)&&(!this._state.insideClick||!this._dropdown._contains(d))&&(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())}),this._escKeyUpListener=this._renderer.listen(this._element.nativeElement,"keyup.esc",()=>{this._state.autoClose&&(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())})):(this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener())})),this._subscriptions.push(this._state.isDisabledChange.subscribe(l=>this.isDisabled=l||void 0))}onClick(e){this._state.stopOnClickPropagation&&e.stopPropagation(),!this.isDisabled&&this._state.toggleClick.emit(!0)}ngOnDestroy(){this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener();for(const e of this._subscriptions)e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(U(Go),U(Qee),U(gr),U(Wl),U(gS))},n.\u0275dir=Wn({type:n,selectors:[["","bsDropdownToggle",""],["","dropdownToggle",""]],hostVars:3,hostBindings:function(e,i){1&e&&Me("click",function(a){return i.onClick(a)}),2&e&&Tr("aria-haspopup",!0)("disabled",i.isDisabled)("aria-expanded",i.isOpen)},exportAs:["bs-dropdown-toggle"]}),n})(),Kee=(()=>{class n{static forRoot(){return{ngModule:n,providers:[s1,Ab,gS]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})(),WSe=(()=>{class n{constructor(){this._focusTrapStack=[]}register(e){this._focusTrapStack=this._focusTrapStack.filter(o=>o!==e);let i=this._focusTrapStack;i.length&&i[i.length-1]._disable(),i.push(e),e._enable()}deregister(e){e._disable();const i=this._focusTrapStack,o=i.indexOf(e);-1!==o&&(i.splice(o,1),i.length&&i[i.length-1]._enable())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();try{hU=typeof Intl<"u"&&Intl.v8BreakIterator}catch{hU=!1}let qee=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Ny(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&&!hU)&&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)(en(v0))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Xee=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function KSe(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 QSe(n){try{return n.frameElement}catch{return null}}(function iTe(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===Zee(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),a=Zee(e);return e.hasAttribute("contenteditable")?-1!==a:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function tTe(n){let r=n.nodeName.toLowerCase(),e="input"===r&&n.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==a:"video"===o?-1!==a&&(null!==a||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function nTe(n){return!function XSe(n){return function ZSe(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function qSe(n){let r=n.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(n)||function JSe(n){return function eTe(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||Jee(n))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(en(qee))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Jee(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let r=n.getAttribute("tabindex");return"-32768"!=r&&!(!r||isNaN(parseInt(r,10)))}function Zee(n){if(!Jee(n))return null;const r=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}function ete(n){return null!=n&&"false"!=`${n}`}class rTe{constructor(r,e,i,o,a=!1){this._element=r,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,a||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.parentNode&&r.parentNode.removeChild(r)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(){return new Promise(r=>{this._executeOnStable(()=>r(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(r=>{this._executeOnStable(()=>r(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(r=>{this._executeOnStable(()=>r(this.focusLastTabbableElement()))})}_getRegionBoundary(r){let e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);for(let i=0;i=0;i--){let o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe(Oa(1)).subscribe(r)}}let oTe=(()=>{class n{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new rTe(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(en(Xee),en(Zo),en(Fa))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aTe=(()=>{class n{constructor(e,i,o){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this._autoCapture=!1,this._document=o,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=ete(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=ete(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(oTe),U(Fa))},n.\u0275dir=Wn({type:n,selectors:[["","focusTrap",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["focusTrap"],features:[vo]}),n})(),tte=(()=>{class n{static forRoot(){return{ngModule:n,providers:[WSe,qee,Xee]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();const sTe=["*"];let nte=(()=>{class n{constructor(){this.hide=()=>{},this.setClass=()=>{}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),ite=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const UB={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",animated:!0,initialState:{},closeInterceptor:void 0},lTe=new Pi("override-default-config");let cTe=(()=>{class n{constructor(e,i,o){this._element=i,this._renderer=o,this.isShown=!1,this.isAnimated=!1,this.isModalHiding=!1,this.clickStartedInContent=!1,this.config=Object.assign({},e)}ngOnInit(){this.isAnimated&&this._renderer.addClass(this._element.nativeElement,"fade"),this._renderer.setStyle(this._element.nativeElement,"display","block"),setTimeout(()=>{this.isShown=!0,this._renderer.addClass(this._element.nativeElement,Yy()?"in":"show")},this.isAnimated?150:0),document&&document.body&&(this.bsModalService&&1===this.bsModalService.getModalsCount()&&(this.bsModalService.checkScrollbar(),this.bsModalService.setScrollbar()),this._renderer.addClass(document.body,"modal-open"),this._renderer.setStyle(document.body,"overflow-y","hidden")),this._element.nativeElement&&this._element.nativeElement.focus()}onClickStarted(e){this.clickStartedInContent=e.target!==this._element.nativeElement}onClickStop(e){var i;this.config.ignoreBackdropClick||"static"===this.config.backdrop||e.target!==this._element.nativeElement||this.clickStartedInContent?this.clickStartedInContent=!1:(null===(i=this.bsModalService)||void 0===i||i.setDismissReason("backdrop-click"),this.hide())}onPopState(){var e;null===(e=this.bsModalService)||void 0===e||e.setDismissReason("browser-back-navigation-clicked"),this.hide()}onEsc(e){var i,o;this.isShown&&((27===e.keyCode||"Escape"===e.key)&&e.preventDefault(),this.config.keyboard&&this.level===(null===(i=this.bsModalService)||void 0===i?void 0:i.getModalsCount()))&&(null===(o=this.bsModalService)||void 0===o||o.setDismissReason("esc"),this.hide())}ngOnDestroy(){this.isShown&&this._hide()}hide(){if(!this.isModalHiding&&this.isShown){if(this.config.closeInterceptor)return void this.config.closeInterceptor().then(()=>this._hide(),()=>{});this._hide()}}_hide(){this.isModalHiding=!0,this._renderer.removeClass(this._element.nativeElement,Yy()?"in":"show"),setTimeout(()=>{var e,i;this.isShown=!1,document&&document.body&&1===(null===(e=this.bsModalService)||void 0===e?void 0:e.getModalsCount())&&(this._renderer.removeClass(document.body,"modal-open"),this._renderer.setStyle(document.body,"overflow-y","")),null===(i=this.bsModalService)||void 0===i||i.hide(this.config.id),this.isModalHiding=!1},this.isAnimated?300:0)}}return n.\u0275fac=function(e){return new(e||n)(U(ite),U(gr),U(Wl))},n.\u0275cmp=wn({type:n,selectors:[["modal-container"]],hostAttrs:["role","dialog","tabindex","-1",1,"modal"],hostVars:3,hostBindings:function(e,i){1&e&&Me("mousedown",function(a){return i.onClickStarted(a)})("click",function(a){return i.onClickStop(a)})("popstate",function(){return i.onPopState()},!1,op)("keydown.esc",function(a){return i.onEsc(a)},!1,op),2&e&&Tr("aria-modal",!0)("aria-labelledby",i.config.ariaLabelledBy)("aria-describedby",i.config.ariaDescribedby)},ngContentSelectors:sTe,decls:3,vars:2,consts:[["role","document","focusTrap",""],[1,"modal-content"]],template:function(e,i){1&e&&(Cs(),b(0,"div",0)(1,"div",1),ha(2),y()()),2&e&&J("modal-dialog"+(i.config.class?" "+i.config.class:""))},dependencies:[aTe],encapsulation:2}),n})(),dTe=(()=>{class n{constructor(e,i){this._isAnimated=!1,this._isShown=!1,this.element=e,this.renderer=i}get isAnimated(){return this._isAnimated}set isAnimated(e){this._isAnimated=e}get isShown(){return this._isShown}set isShown(e){this._isShown=e,e?this.renderer.addClass(this.element.nativeElement,"in"):this.renderer.removeClass(this.element.nativeElement,"in"),Yy()||(e?this.renderer.addClass(this.element.nativeElement,"show"):this.renderer.removeClass(this.element.nativeElement,"show"))}ngOnInit(){this.isAnimated&&(this.renderer.addClass(this.element.nativeElement,"fade"),class WMe{static reflow(r){}static getStyles(r){let e=r.ownerDocument.defaultView;return(!e||!e.opener)&&(e=jp),e.getComputedStyle(r)}static stackOverflowConfig(){const r=function GMe(){const n=EP(),r=Object.keys(n).find(e=>n[e]);return EB[r]}();return{crossorigin:"bs3"!==r?"anonymous":void 0,integrity:"bs5"===r?"sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We":"bs4"===r?"sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2":void 0,cdnLink:"bs5"===r?"https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css":"bs4"===r?"https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css":"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"}}}.reflow(this.element.nativeElement)),this.isShown=!0}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(Wl))},n.\u0275cmp=wn({type:n,selectors:[["bs-modal-backdrop"]],hostAttrs:[1,"modal-backdrop"],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),uTe=1,rte=(()=>{class n{constructor(e,i,o){this.clf=i,this.modalDefaultOption=o,this.onShow=new Cn,this.onShown=new Cn,this.onHide=new Cn,this.onHidden=new Cn,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.loaders=[],this._backdropLoader=this.clf.createLoader(),this._renderer=e.createRenderer(null,null),this.config=o?Object.assign({},UB,o):UB}show(e,i){this.modalsCount++,this._createLoaders();const o=i?.id||uTe++;return this.config=this.modalDefaultOption?Object.assign({},UB,this.modalDefaultOption,i):Object.assign({},UB,i),this.config.id=o,this._showBackdrop(),this.lastDismissReason=void 0,this._showModal(e)}hide(e){(1===this.modalsCount||null==e)&&(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1&&null!=e?this.modalsCount-1:0,setTimeout(()=>{this._hideModal(e),this.removeLoaders(e)},this.config.animated?150:0)}_showBackdrop(){const e=!0===this.config.backdrop||"static"===this.config.backdrop,i=!this.backdropRef||!this.backdropRef.instance.isShown;1===this.modalsCount&&(this.removeBackdrop(),e&&i&&(this._backdropLoader.attach(dTe).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))}_hideBackdrop(){this.backdropRef&&(this.backdropRef.instance.isShown=!1,setTimeout(()=>this.removeBackdrop(),this.config.animated?150:0))}_showModal(e){const i=this.loaders[this.loaders.length-1];if(this.config&&this.config.providers)for(const l of this.config.providers)i.provide(l);const o=new nte,a=i.provide({provide:ite,useValue:this.config}).provide({provide:nte,useValue:o}).attach(cTe).to("body");var s;return o.hide=()=>{var l;return null===(l=a.instance)||void 0===l?void 0:l.hide()},o.setClass=l=>{a.instance&&(a.instance.config.class=l)},o.onHidden=new Cn,o.onHide=new Cn,this.copyEvent(i.onBeforeHide,o.onHide),this.copyEvent(i.onHidden,o.onHidden),a.show({content:e,isAnimated:this.config.animated,initialState:this.config.initialState,bsModalService:this,id:this.config.id}),a.instance&&(a.instance.level=this.getModalsCount(),o.content=i.getInnerComponent(),o.id=null===(s=a.instance.config)||void 0===s?void 0:s.id),o}_hideModal(e){if(null!=e){const i=this.loaders.findIndex(a=>{var s;return(null===(s=a.instance)||void 0===s?void 0:s.config.id)===e}),o=this.loaders[i];o&&o.hide(e)}else this.loaders.forEach(i=>{i.instance&&i.hide(i.instance.config.id)})}getModalsCount(){return this.modalsCount}setDismissReason(e){this.lastDismissReason=e}removeBackdrop(){this._renderer.removeClass(document.body,"modal-open"),this._renderer.setStyle(document.body,"overflow-y",""),this._backdropLoader.hide(),this.backdropRef=void 0}checkScrollbar(){this.isBodyOverflowing=document.body.clientWidth{var a;return(null===(a=o.instance)||void 0===a?void 0:a.config.id)===e});i>=0&&(this.loaders.splice(i,1),this.loaders.forEach((o,a)=>{o.instance&&(o.instance.level=a+1)}))}else this.loaders.splice(0,this.loaders.length)}copyEvent(e,i){e.subscribe(o=>{i.emit(this.lastDismissReason||o)})}}return n.\u0275fac=function(e){return new(e||n)(en(iv),en(s1),en(lTe,8))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();tte.forRoot();let ote=(()=>{class n{static forRoot(){return{ngModule:n,providers:[rte,s1,Ab]}}static forChild(){return{ngModule:n,providers:[rte,s1,Ab]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[tte]}),n})();const pTe=function(n,r){return{"pull-left":n,"float-left":r}},hTe=function(n,r){return{"pull-right":n,"float-right":r}},jB=function(n,r){return{disabled:n,currentPage:r}};function fTe(n,r){if(1&n){const e=xt();b(0,"li",11)(1,"a",12),Me("click",function(o){return Oe(e),Re(w().selectPage(1,o))}),lp(2,13),y()()}if(2&n){const e=w(),i=yi(13);g("disabled",e.noPrevious()||e.disabled),p(2),m("ngTemplateOutlet",e.customFirstTemplate||i)("ngTemplateOutletContext",eo(4,jB,e.noPrevious()||e.disabled,e.page))}}function mTe(n,r){if(1&n){const e=xt();b(0,"li",14)(1,"a",12),Me("click",function(o){Oe(e);const a=w();return Re(a.selectPage(a.page-1,o))}),lp(2,13),y()()}if(2&n){const e=w(),i=yi(11);g("disabled",e.noPrevious()||e.disabled),p(2),m("ngTemplateOutlet",e.customPreviousTemplate||i)("ngTemplateOutletContext",eo(4,jB,e.noPrevious()||e.disabled,e.page))}}const gTe=function(n,r,e){return{disabled:n,$implicit:r,currentPage:e}};function _Te(n,r){if(1&n){const e=xt();b(0,"li",15)(1,"a",12),Me("click",function(o){const s=Oe(e).$implicit;return Re(w().selectPage(s.number,o))}),lp(2,13),y()()}if(2&n){const e=r.$implicit,i=w(),o=yi(7);g("active",e.active)("disabled",i.disabled&&!e.active),p(2),m("ngTemplateOutlet",i.customPageTemplate||o)("ngTemplateOutletContext",_l(6,gTe,i.disabled,e,i.page))}}function vTe(n,r){if(1&n){const e=xt();b(0,"li",16)(1,"a",12),Me("click",function(o){Oe(e);const a=w();return Re(a.selectPage(a.page+1,o))}),lp(2,13),y()()}if(2&n){const e=w(),i=yi(9);g("disabled",e.noNext()||e.disabled),p(2),m("ngTemplateOutlet",e.customNextTemplate||i)("ngTemplateOutletContext",eo(4,jB,e.noNext()||e.disabled,e.page))}}function bTe(n,r){if(1&n){const e=xt();b(0,"li",17)(1,"a",12),Me("click",function(o){Oe(e);const a=w();return Re(a.selectPage(a.totalPages,o))}),lp(2,13),y()()}if(2&n){const e=w(),i=yi(15);g("disabled",e.noNext()||e.disabled),p(2),m("ngTemplateOutlet",e.customLastTemplate||i)("ngTemplateOutletContext",eo(4,jB,e.noNext()||e.disabled,e.page))}}function yTe(n,r){1&n&&L(0),2&n&&Xe(r.$implicit.text)}function CTe(n,r){1&n&&L(0),2&n&&Xe(w().getText("next"))}function ATe(n,r){1&n&&L(0),2&n&&Xe(w().getText("previous"))}function wTe(n,r){1&n&&L(0),2&n&&Xe(w().getText("first"))}function xTe(n,r){1&n&&L(0),2&n&&Xe(w().getText("last"))}let ate=(()=>{class n{constructor(){this.main={itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",pageBtnClass:"",rotate:!0},this.pager={itemsPerPage:15,previousText:"\xab Previous",nextText:"Next \xbb",pageBtnClass:"",align:!0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const MTe={provide:Rc,useExisting:ue(()=>STe),multi:!0};let STe=(()=>{class n{constructor(e,i,o){this.elementRef=e,this.changeDetection=o,this.align=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.firstText="First",this.previousText="\xab Previous",this.nextText="Next \xbb",this.lastText="Last",this.rotate=!0,this.pageBtnClass="",this.disabled=!1,this.numPages=new Cn,this.pageChanged=new Cn,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.classMap="",this.inited=!1,this._itemsPerPage=15,this._totalItems=0,this._totalPages=0,this._page=1,this.elementRef=e,this.config||this.configureOptions(Object.assign({},i.main,i.pager))}get itemsPerPage(){return this._itemsPerPage}set itemsPerPage(e){this._itemsPerPage=e,this.totalPages=this.calculateTotalPages()}get totalItems(){return this._totalItems}set totalItems(e){this._totalItems=e,this.totalPages=this.calculateTotalPages()}get totalPages(){return this._totalPages}set totalPages(e){this._totalPages=e,this.numPages.emit(e),this.inited&&this.selectPage(this.page)}get page(){return this._page}set page(e){const i=this._page;this._page=e>this.totalPages?this.totalPages:e||1,this.changeDetection.markForCheck(),!(i===this._page||typeof i>"u")&&this.pageChanged.emit({page:this._page,itemsPerPage:this.itemsPerPage})}configureOptions(e){this.config=Object.assign({},e)}ngOnInit(){var e,i,o,a,s,l;typeof window<"u"&&(this.classMap=this.elementRef.nativeElement.getAttribute("class")||""),typeof this.maxSize>"u"&&(this.maxSize=(null===(e=this.config)||void 0===e?void 0:e.maxSize)||0),typeof this.rotate>"u"&&(this.rotate=!(null===(i=this.config)||void 0===i||!i.rotate)),typeof this.boundaryLinks>"u"&&(this.boundaryLinks=!(null===(o=this.config)||void 0===o||!o.boundaryLinks)),typeof this.directionLinks>"u"&&(this.directionLinks=!(null===(a=this.config)||void 0===a||!a.directionLinks)),typeof this.pageBtnClass>"u"&&(this.pageBtnClass=(null===(s=this.config)||void 0===s?void 0:s.pageBtnClass)||""),typeof this.itemsPerPage>"u"&&(this.itemsPerPage=(null===(l=this.config)||void 0===l?void 0:l.itemsPerPage)||0),this.totalPages=this.calculateTotalPages(),this.pages=this.getPages(this.page,this.totalPages),this.inited=!0}writeValue(e){this.page=e,this.pages=this.getPages(this.page,this.totalPages)}getText(e){return this[`${e}Text`]||this.config[`${e}Text`]}noPrevious(){return 1===this.page}noNext(){return this.page===this.totalPages}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}selectPage(e,i){i&&i.preventDefault(),this.disabled||(i&&i.target&&i.target.blur(),this.writeValue(e),this.onChange(this.page))}makePage(e,i,o){return{text:i,number:e,active:o}}getPages(e,i){const o=[];let a=1,s=i;const l=typeof this.maxSize<"u"&&this.maxSizei&&(s=i,a=s-this.maxSize+1)):(a=(Math.ceil(e/this.maxSize)-1)*this.maxSize+1,s=Math.min(a+this.maxSize-1,i)));for(let d=a;d<=s;d++){const f=this.makePage(d,d.toString(),d===e);o.push(f)}if(l&&!this.rotate){if(a>1){const d=this.makePage(a-1,"...",!1);o.unshift(d)}if(sDTe),multi:!0};let DTe=(()=>{class n{constructor(e,i,o){this.elementRef=e,this.changeDetection=o,this.align=!0,this.boundaryLinks=!1,this.directionLinks=!0,this.rotate=!0,this.pageBtnClass="",this.disabled=!1,this.numPages=new Cn,this.pageChanged=new Cn,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.classMap="",this.inited=!1,this._itemsPerPage=10,this._totalItems=0,this._totalPages=0,this._page=1,this.elementRef=e,this.config||this.configureOptions(i.main)}get itemsPerPage(){return this._itemsPerPage}set itemsPerPage(e){this._itemsPerPage=e,this.totalPages=this.calculateTotalPages()}get totalItems(){return this._totalItems}set totalItems(e){this._totalItems=e,this.totalPages=this.calculateTotalPages()}get totalPages(){return this._totalPages}set totalPages(e){this._totalPages=e,this.numPages.emit(e),this.inited&&this.selectPage(this.page)}get page(){return this._page}set page(e){const i=this._page;this._page=e>this.totalPages?this.totalPages:e||1,this.changeDetection.markForCheck(),!(i===this._page||typeof i>"u")&&this.pageChanged.emit({page:this._page,itemsPerPage:this.itemsPerPage})}configureOptions(e){this.config=Object.assign({},e)}ngOnInit(){var e,i,o,a,s,l;typeof window<"u"&&(this.classMap=this.elementRef.nativeElement.getAttribute("class")||""),typeof this.maxSize>"u"&&(this.maxSize=(null===(e=this.config)||void 0===e?void 0:e.maxSize)||0),typeof this.rotate>"u"&&(this.rotate=!(null===(i=this.config)||void 0===i||!i.rotate)),typeof this.boundaryLinks>"u"&&(this.boundaryLinks=!(null===(o=this.config)||void 0===o||!o.boundaryLinks)),typeof this.directionLinks>"u"&&(this.directionLinks=!(null===(a=this.config)||void 0===a||!a.directionLinks)),typeof this.pageBtnClass>"u"&&(this.pageBtnClass=(null===(s=this.config)||void 0===s?void 0:s.pageBtnClass)||""),typeof this.itemsPerPage>"u"&&(this.itemsPerPage=(null===(l=this.config)||void 0===l?void 0:l.itemsPerPage)||0),this.totalPages=this.calculateTotalPages(),this.pages=this.getPages(this.page,this.totalPages),this.inited=!0}writeValue(e){this.page=e,this.pages=this.getPages(this.page,this.totalPages)}getText(e){return this[`${e}Text`]||this.config[`${e}Text`]}noPrevious(){return 1===this.page}noNext(){return this.page===this.totalPages}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}selectPage(e,i){i&&i.preventDefault(),this.disabled||(i&&i.target&&i.target.blur(),this.writeValue(e),this.onChange(this.page))}makePage(e,i,o){return{text:i,number:e,active:o}}getPages(e,i){const o=[];let a=1,s=i;const l=typeof this.maxSize<"u"&&this.maxSizei&&(s=i,a=s-this.maxSize+1)):(a=(Math.ceil(e/this.maxSize)-1)*this.maxSize+1,s=Math.min(a+this.maxSize-1,i)));for(let d=a;d<=s;d++){const f=this.makePage(d,d.toString(),d===e);o.push(f)}if(l&&!this.rotate){if(a>1){const d=this.makePage(a-1,"...",!1);o.unshift(d)}if(s{class n{static forRoot(){return{ngModule:n,providers:[]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})(),mU=(()=>{class n{static forRoot(){return{ngModule:n,providers:[]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();function OTe(n,r){1&n&&L(0),2&n&&Xe(r.index{class n{constructor(){this.ariaLabel="rating"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const RTe={provide:Rc,useExisting:ue(()=>BTe),multi:!0};let BTe=(()=>{class n{constructor(e,i){this.changeDetection=e,this.max=5,this.readonly=!1,this.titles=[],this.onHover=new Cn,this.onLeave=new Cn,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.ariaLabel="rating",this.range=[],this.value=0,Object.assign(this,i)}onKeydown(e){-1!==[37,38,39,40].indexOf(e.which)&&(e.preventDefault(),e.stopPropagation(),this.rate(this.value+(38===e.which||39===e.which?1:-1)))}ngOnInit(){this.max=this.max||5,this.titles=typeof this.titles<"u"&&this.titles.length>0?this.titles:[],this.range=this.buildTemplateObjects(this.max)}writeValue(e){if(e%1!==e)return this.value=Math.round(e),this.preValue=e,void this.changeDetection.markForCheck();this.preValue=e,this.value=e,this.changeDetection.markForCheck()}enter(e){this.readonly||(this.value=e,this.changeDetection.markForCheck(),this.onHover.emit(e))}reset(){"number"==typeof this.preValue&&(this.value=Math.round(this.preValue),this.changeDetection.markForCheck(),this.onLeave.emit(this.value))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}rate(e){!this.readonly&&this.range&&e>=0&&e<=this.range.length&&(this.writeValue(e),this.onChange(e))}buildTemplateObjects(e){const i=[];for(let o=0;o{class n{static forRoot(){return{ngModule:n,providers:[]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();function LTe(n,r){if(1&n){const e=xt();b(0,"span",7),Me("click",function(o){Oe(e);const a=w().$implicit,s=w();return o.preventDefault(),Re(s.removeTab(a))}),L(1," \u274c"),y()}}const NTe=function(n){return["nav-item",n]};function HTe(n,r){if(1&n){const e=xt();b(0,"li",3),Me("keydown",function(o){const s=Oe(e).index;return Re(w().keyNavActions(o,s))}),b(1,"a",4),Me("click",function(){return Re(Oe(e).$implicit.active=!0)}),b(2,"span",5),L(3),y(),O(4,LTe,2,0,"span",6),y()()}if(2&n){const e=r.$implicit;g("active",e.active)("disabled",e.disabled),m("ngClass",ri(15,NTe,e.customClass||"")),p(1),g("active",e.active)("disabled",e.disabled),Tr("aria-controls",e.id?e.id:"")("aria-selected",!!e.active)("id",e.id?e.id+"-link":""),p(1),m("ngTransclude",e.headingRef),p(1),Xe(e.heading),p(1),m("ngIf",e.removable)}}const VTe=["*"];let UTe=(()=>{class n{constructor(e){this.viewRef=e}set ngTransclude(e){this._ngTransclude=e,e&&this.viewRef.createEmbeddedView(e)}get ngTransclude(){return this._ngTransclude}}return n.\u0275fac=function(e){return new(e||n)(U(ac))},n.\u0275dir=Wn({type:n,selectors:[["","ngTransclude",""]],inputs:{ngTransclude:"ngTransclude"}}),n})(),zTe=(()=>{class n{constructor(){this.type="tabs",this.isKeysAllowed=!0,this.ariaLabel="Tabs"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$B=(()=>{class n{constructor(e,i,o){this.renderer=i,this.elementRef=o,this.clazz=!0,this.tabs=[],this.classMap={},this.ariaLabel="Tabs",this.isDestroyed=!1,this._vertical=!1,this._justified=!1,this._type="tabs",this._isKeysAllowed=!0,Object.assign(this,e)}get vertical(){return this._vertical}set vertical(e){this._vertical=e,this.setClassMap()}get justified(){return this._justified}set justified(e){this._justified=e,this.setClassMap()}get type(){return this._type}set type(e){this._type=e,this.setClassMap()}get isKeysAllowed(){return this._isKeysAllowed}set isKeysAllowed(e){this._isKeysAllowed=e}ngOnDestroy(){this.isDestroyed=!0}addTab(e){this.tabs.push(e),e.active=1===this.tabs.length&&!e.active}removeTab(e,i={reselect:!0,emit:!0}){const o=this.tabs.indexOf(e);if(-1!==o&&!this.isDestroyed){if(i.reselect&&e.active&&this.hasAvailableTabs(o)){const a=this.getClosestTabIndex(o);this.tabs[a].active=!0}i.emit&&e.removed.emit(e),this.tabs.splice(o,1),e.elementRef.nativeElement.parentNode&&this.renderer.removeChild(e.elementRef.nativeElement.parentNode,e.elementRef.nativeElement)}}keyNavActions(e,i){if(!this.isKeysAllowed)return;const o=Array.from(this.elementRef.nativeElement.querySelectorAll(".nav-link"));if(13===e.keyCode||"Enter"===e.key||32===e.keyCode||"Space"===e.key)return e.preventDefault(),void o[i%o.length].click();if(39!==e.keyCode&&"RightArrow"!==e.key)if(37!==e.keyCode&&"LeftArrow"!==e.key)if(36!==e.keyCode&&"Home"!==e.key)if(35!==e.keyCode&&"End"!==e.key){if((46===e.keyCode||"Delete"===e.key)&&this.tabs[i].removable){if(this.removeTab(this.tabs[i]),o[i+1])return void o[(i+1)%o.length].focus();o[o.length-1]&&o[0].focus()}}else{e.preventDefault();let a,s=1,l=i;do{l-s<0?(l=o.length-1,a=o[l],s=0):a=o[l-s],s++}while(a.classList.contains("disabled"));a.focus()}else{e.preventDefault();let a,s=0;do{a=o[s%o.length],s++}while(a.classList.contains("disabled"));a.focus()}else{let a,s=1,l=i;do{l-s<0?(l=o.length-1,a=o[l],s=0):a=o[l-s],s++}while(a.classList.contains("disabled"));a.focus()}else{let a,s=1;do{a=o[(i+s)%o.length],s++}while(a.classList.contains("disabled"));a.focus()}}getClosestTabIndex(e){const i=this.tabs.length;if(!i)return-1;for(let o=1;o<=i;o+=1){const a=e-o,s=e+o;if(this.tabs[a]&&!this.tabs[a].disabled)return a;if(this.tabs[s]&&!this.tabs[s].disabled)return s}return-1}hasAvailableTabs(e){const i=this.tabs.length;if(!i)return!1;for(let o=0;o{class n{constructor(e,i,o){this.elementRef=i,this.renderer=o,this.disabled=!1,this.removable=!1,this.selectTab=new Cn,this.deselect=new Cn,this.removed=new Cn,this.addClass=!0,this.role="tabpanel",this._active=!1,this._customClass="",this.tabset=e,this.tabset.addTab(this)}get customClass(){return this._customClass}set customClass(e){this.customClass&&this.customClass.split(" ").forEach(i=>{this.renderer.removeClass(this.elementRef.nativeElement,i)}),this._customClass=e?e.trim():"",this.customClass&&this.customClass.split(" ").forEach(i=>{this.renderer.addClass(this.elementRef.nativeElement,i)})}get active(){return this._active}set active(e){if(this._active!==e){if(this.disabled&&e||!e)return void(this._active&&!e&&(this.deselect.emit(this),this._active=e));this._active=e,this.selectTab.emit(this),this.tabset.tabs.forEach(i=>{i!==this&&(i.active=!1)})}}get ariaLabelledby(){return this.id?`${this.id}-link`:""}ngOnInit(){this.removable=!!this.removable}ngOnDestroy(){this.tabset.removeTab(this,{reselect:!1,emit:!1})}}return n.\u0275fac=function(e){return new(e||n)(U($B),U(gr),U(Wl))},n.\u0275dir=Wn({type:n,selectors:[["tab"],["","tab",""]],hostVars:7,hostBindings:function(e,i){2&e&&(Tr("id",i.id)("role",i.role)("aria-labelledby",i.ariaLabelledby),g("active",i.active)("tab-pane",i.addClass))},inputs:{heading:"heading",id:"id",disabled:"disabled",removable:"removable",customClass:"customClass",active:"active"},outputs:{selectTab:"selectTab",deselect:"deselect",removed:"removed"},exportAs:["tab"]}),n})(),cte=(()=>{class n{static forRoot(){return{ngModule:n,providers:[]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();function _v(n,r){return e=>e.lift(new jTe(n,r))}class jTe{constructor(r,e){this.compare=r,this.keySelector=e}call(r,e){return e.subscribe(new $Te(r,this.compare,this.keySelector))}}class $Te extends te{constructor(r,e,i){super(r),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(r,e){return r===e}_next(r){let e;try{const{keySelector:o}=this;e=o?o(r):r}catch(o){return this.destination.error(o)}let i=!1;if(this.hasKey)try{const{compare:o}=this;i=o(this.key,e)}catch(o){return this.destination.error(o)}else this.hasKey=!0;i||(this.key=e,this.destination.next(r))}}class dte extends Yn{constructor(r,e,i){super(r),e.pipe(GJ(yV)).pipe(qI((s,l)=>l?i(s,l):s,r)).subscribe(s=>this.next(s))}}class GB extends ze{constructor(r,e,i){super(),this._dispatcher=r,this._reducer=e,this.source=i}select(r){var e;return((null===(e=this.source)||void 0===e?void 0:e.pipe(Ct(r)))||(new ze).pipe(Ct(r))).pipe(_v())}lift(r){const e=new GB(this._dispatcher,this._reducer,this);return e.operator=r,e}dispatch(r){this._dispatcher.next(r)}next(r){this._dispatcher.next(r)}error(r){this._dispatcher.error(r)}complete(){}}function YTe(n,r){1&n&&(b(0,"td"),L(1,"\xa0\xa0\xa0"),y())}function GTe(n,r){if(1&n){const e=xt();b(0,"td")(1,"a",1),Me("click",function(){Oe(e);const o=w();return Re(o.changeMinutes(o.minuteStep))}),be(2,"span",2),y()()}if(2&n){const e=w();p(1),g("disabled",!e.canIncrementMinutes||!e.isEditable)}}function WTe(n,r){1&n&&(b(0,"td"),L(1,"\xa0"),y())}function QTe(n,r){if(1&n){const e=xt();b(0,"td")(1,"a",1),Me("click",function(){Oe(e);const o=w();return Re(o.changeSeconds(o.secondsStep))}),be(2,"span",2),y()()}if(2&n){const e=w();p(1),g("disabled",!e.canIncrementSeconds||!e.isEditable)}}function KTe(n,r){1&n&&(b(0,"td"),L(1,"\xa0\xa0\xa0"),y())}function qTe(n,r){1&n&&be(0,"td")}function XTe(n,r){1&n&&(b(0,"td"),L(1,"\xa0:\xa0"),y())}function JTe(n,r){if(1&n){const e=xt();b(0,"td",4)(1,"input",5),Me("wheel",function(o){Oe(e);const a=w();return a.prevDef(o),Re(a.changeMinutes(a.minuteStep*a.wheelSign(o),"wheel"))})("keydown.ArrowUp",function(){Oe(e);const o=w();return Re(o.changeMinutes(o.minuteStep,"key"))})("keydown.ArrowDown",function(){Oe(e);const o=w();return Re(o.changeMinutes(-o.minuteStep,"key"))})("change",function(o){return Oe(e),Re(w().updateMinutes(o.target))}),y()()}if(2&n){const e=w();g("has-error",e.invalidMinutes),p(1),g("is-invalid",e.invalidMinutes),m("placeholder",e.minutesPlaceholder)("readonly",e.readonlyInput)("disabled",e.disabled)("value",e.minutes),Tr("aria-label",e.labelMinutes)}}function ZTe(n,r){1&n&&(b(0,"td"),L(1,"\xa0:\xa0"),y())}function eDe(n,r){if(1&n){const e=xt();b(0,"td",4)(1,"input",5),Me("wheel",function(o){Oe(e);const a=w();return a.prevDef(o),Re(a.changeSeconds(a.secondsStep*a.wheelSign(o),"wheel"))})("keydown.ArrowUp",function(){Oe(e);const o=w();return Re(o.changeSeconds(o.secondsStep,"key"))})("keydown.ArrowDown",function(){Oe(e);const o=w();return Re(o.changeSeconds(-o.secondsStep,"key"))})("change",function(o){return Oe(e),Re(w().updateSeconds(o.target))}),y()()}if(2&n){const e=w();g("has-error",e.invalidSeconds),p(1),g("is-invalid",e.invalidSeconds),m("placeholder",e.secondsPlaceholder)("readonly",e.readonlyInput)("disabled",e.disabled)("value",e.seconds),Tr("aria-label",e.labelSeconds)}}function tDe(n,r){1&n&&(b(0,"td"),L(1,"\xa0\xa0\xa0"),y())}function nDe(n,r){if(1&n){const e=xt();b(0,"td")(1,"button",8),Me("click",function(){return Oe(e),Re(w().toggleMeridian())}),L(2),y()()}if(2&n){const e=w();p(1),g("disabled",!e.isEditable||!e.canToggleMeridian),m("disabled",!e.isEditable||!e.canToggleMeridian),p(1),Be("",e.meridian," ")}}function iDe(n,r){1&n&&(b(0,"td"),L(1,"\xa0\xa0\xa0"),y())}function rDe(n,r){if(1&n){const e=xt();b(0,"td")(1,"a",1),Me("click",function(){Oe(e);const o=w();return Re(o.changeMinutes(-o.minuteStep))}),be(2,"span",7),y()()}if(2&n){const e=w();p(1),g("disabled",!e.canDecrementMinutes||!e.isEditable)}}function oDe(n,r){1&n&&(b(0,"td"),L(1,"\xa0"),y())}function aDe(n,r){if(1&n){const e=xt();b(0,"td")(1,"a",1),Me("click",function(){Oe(e);const o=w();return Re(o.changeSeconds(-o.secondsStep))}),be(2,"span",7),y()()}if(2&n){const e=w();p(1),g("disabled",!e.canDecrementSeconds||!e.isEditable)}}function sDe(n,r){1&n&&(b(0,"td"),L(1,"\xa0\xa0\xa0"),y())}function lDe(n,r){1&n&&be(0,"td")}let DA=(()=>{class n{writeValue(e){return{type:n.WRITE_VALUE,payload:e}}changeHours(e){return{type:n.CHANGE_HOURS,payload:e}}changeMinutes(e){return{type:n.CHANGE_MINUTES,payload:e}}changeSeconds(e){return{type:n.CHANGE_SECONDS,payload:e}}setTime(e){return{type:n.SET_TIME_UNIT,payload:e}}updateControls(e){return{type:n.UPDATE_CONTROLS,payload:e}}}return n.WRITE_VALUE="[timepicker] write value from ng model",n.CHANGE_HOURS="[timepicker] change hours",n.CHANGE_MINUTES="[timepicker] change minutes",n.CHANGE_SECONDS="[timepicker] change seconds",n.SET_TIME_UNIT="[timepicker] set time unit",n.UPDATE_CONTROLS="[timepicker] update controls",n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function gU(n){return!(!n||n instanceof Date&&isNaN(n.getHours()))&&("string"!=typeof n||gU(new Date(n)))}function _U(n,r){return!(n.min&&rn.max)}function _S(n){return typeof n>"u"?NaN:"number"==typeof n?n:parseInt(n,10)}function pte(n,r=!1){const e=_S(n);return isNaN(e)||e<0||e>(r?12:24)?NaN:e}function hte(n){const r=_S(n);return isNaN(r)||r<0||r>60?NaN:r}function fte(n){const r=_S(n);return isNaN(r)||r<0||r>60?NaN:r}function mte(n){return"string"==typeof n?new Date(n):n}function l1(n,r){if(!n)return l1(WB(new Date,0,0,0),r);if(!r)return n;let e=n.getHours(),i=n.getMinutes(),o=n.getSeconds();return r.hour&&(e+=_S(r.hour)),r.minute&&(i+=_S(r.minute)),r.seconds&&(o+=_S(r.seconds)),WB(n,e,i,o)}function gte(n,r){let e=pte(r.hour);const i=hte(r.minute),o=fte(r.seconds)||0;return r.isPM&&12!==e&&(e+=12),n?isNaN(e)||isNaN(i)?n:WB(n,e,i,o):isNaN(e)||isNaN(i)?n:WB(new Date,e,i,o)}function WB(n,r,e,i){const o=new Date(n.getFullYear(),n.getMonth(),n.getDate(),r,e,i,n.getMilliseconds());return o.setFullYear(n.getFullYear()),o.setMonth(n.getMonth()),o.setDate(n.getDate()),o}function vU(n){const r=n.toString();return r.length>1?r:`0${r}`}function _te(n,r){return!isNaN(pte(n,r))}function vte(n){return!isNaN(hte(n))}function bte(n){return!isNaN(fte(n))}function yte(n,r="0",e="0",i){return _te(n,i)&&vte(r)&&bte(e)}function QB(n,r){return!(n.readonlyInput||n.disabled||r&&("wheel"===r.source&&!n.mousewheel||"key"===r.source&&!n.arrowkeys))}function Cte(n){const{hourStep:r,minuteStep:e,secondsStep:i,readonlyInput:o,disabled:a,mousewheel:s,arrowkeys:l,showSpinners:d,showMeridian:f,showSeconds:C,meridians:M,min:T,max:F}=n;return{hourStep:r,minuteStep:e,secondsStep:i,readonlyInput:o,disabled:a,mousewheel:s,arrowkeys:l,showSpinners:d,showMeridian:f,showSeconds:C,meridians:M,min:T,max:F}}let Ate=(()=>{class n{constructor(){this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.showMeridian=!0,this.meridians=["AM","PM"],this.readonlyInput=!1,this.disabled=!1,this.allowEmptyTime=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showSeconds=!1,this.showMinutes=!0,this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.ariaLabelHours="hours",this.ariaLabelMinutes="minutes",this.ariaLabelSeconds="seconds"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wte={value:void 0,config:new Ate,controls:{canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0}};function xte(n=wte,r){switch(r.type){case DA.WRITE_VALUE:return Object.assign({},n,{value:r.payload});case DA.CHANGE_HOURS:{if(!QB(n.config,r.payload)||!function mDe(n,r){return!(!n.step||n.step>0&&!r.canIncrementHours||n.step<0&&!r.canDecrementHours)}(r.payload,n.controls))return n;const e=l1(n.value,{hour:r.payload.step});return!n.config.max&&!n.config.min||_U(n.config,e)?Object.assign({},n,{value:e}):n}case DA.CHANGE_MINUTES:{if(!QB(n.config,r.payload)||!function gDe(n,r){return!(!n.step||n.step>0&&!r.canIncrementMinutes||n.step<0&&!r.canDecrementMinutes)}(r.payload,n.controls))return n;const e=l1(n.value,{minute:r.payload.step});return!n.config.max&&!n.config.min||_U(n.config,e)?Object.assign({},n,{value:e}):n}case DA.CHANGE_SECONDS:{if(!QB(n.config,r.payload)||!function _De(n,r){return!(!n.step||n.step>0&&!r.canIncrementSeconds||n.step<0&&!r.canDecrementSeconds)}(r.payload,n.controls))return n;const e=l1(n.value,{seconds:r.payload.step});return!n.config.max&&!n.config.min||_U(n.config,e)?Object.assign({},n,{value:e}):n}case DA.SET_TIME_UNIT:{if(!QB(n.config))return n;const e=gte(n.value,r.payload);return Object.assign({},n,{value:e})}case DA.UPDATE_CONTROLS:{const e=function vDe(n,r){const{min:o,max:a,hourStep:s,minuteStep:l,secondsStep:d,showSeconds:f}=r,C={canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0};if(!n)return C;if(a){const M=l1(n,{hour:s});if(C.canIncrementHours=a>M&&n.getHours()+s<24,!C.canIncrementHours){const T=l1(n,{minute:l});C.canIncrementMinutes=f?a>T:a>=T}if(!C.canIncrementMinutes){const T=l1(n,{seconds:d});C.canIncrementSeconds=a>=T}n.getHours()<12&&(C.canToggleMeridian=l1(n,{hour:12})=12&&(C.canToggleMeridian=l1(n,{hour:-12})>o)}return C}(n.value,r.payload),i={value:n.value,config:r.payload,controls:e};return n.config.showMeridian!==i.config.showMeridian&&n.value&&(i.value=new Date(n.value)),Object.assign({},n,i)}default:return n}}let KB=(()=>{class n extends GB{constructor(){const e=new Yn({type:"[mini-ngrx] dispatcher init"});super(e,xte,new dte(wte,e,xte))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const bDe={provide:Rc,useExisting:ue(()=>bU),multi:!0};let bU=(()=>{class n{constructor(e,i,o,a){this._cd=i,this._store=o,this._timepickerActions=a,this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.readonlyInput=!1,this.disabled=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showMeridian=!0,this.showMinutes=!0,this.showSeconds=!1,this.meridians=["AM","PM"],this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.isValid=new Cn,this.meridianChange=new Cn,this.hours="",this.minutes="",this.seconds="",this.meridian="",this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1,this.labelHours="hours",this.labelMinutes="minutes",this.labelSeconds="seconds",this.canIncrementHours=!0,this.canIncrementMinutes=!0,this.canIncrementSeconds=!0,this.canDecrementHours=!0,this.canDecrementMinutes=!0,this.canDecrementSeconds=!0,this.canToggleMeridian=!0,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.config=e,Object.assign(this,this.config),this.timepickerSub=o.select(s=>s.value).subscribe(s=>{this._renderTime(s),this.onChange(s),this._store.dispatch(this._timepickerActions.updateControls(Cte(this)))}),o.select(s=>s.controls).subscribe(s=>{const l=yte(this.hours,this.minutes,this.seconds,this.isPM()),d=this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||l;this.isValid.emit(d),Object.assign(this,s),i.markForCheck()})}get isSpinnersVisible(){return this.showSpinners&&!this.readonlyInput}get isEditable(){return!(this.readonlyInput||this.disabled)}resetValidation(){this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1}isPM(){return this.showMeridian&&this.meridian===this.meridians[1]}prevDef(e){e.preventDefault()}wheelSign(e){return-1*Math.sign(e.deltaY||0)}ngOnChanges(){this._store.dispatch(this._timepickerActions.updateControls(Cte(this)))}changeHours(e,i=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeHours({step:e,source:i}))}changeMinutes(e,i=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeMinutes({step:e,source:i}))}changeSeconds(e,i=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeSeconds({step:e,source:i}))}updateHours(e){this.resetValidation(),this.hours=e.value;const i=_te(this.hours,this.isPM())&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||i))return this.invalidHours=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateMinutes(e){this.resetValidation(),this.minutes=e.value;const i=vte(this.minutes)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||i))return this.invalidMinutes=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateSeconds(e){this.resetValidation(),this.seconds=e.value;const i=bte(this.seconds)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||i))return this.invalidSeconds=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}isValidLimit(){return function hDe(n,r,e){const i=gte(new Date,n);return!(!i||r&&i>r||e&&i=12?1:0],this.meridianChange.emit(this.meridian),a%=12,0===a&&(a=12)),this.hours=vU(a),this.minutes=vU(i.getMinutes()),this.seconds=vU(i.getUTCSeconds())}}return n.\u0275fac=function(e){return new(e||n)(U(Ate),U(Go),U(KB),U(DA))},n.\u0275cmp=wn({type:n,selectors:[["timepicker"]],inputs:{hourStep:"hourStep",minuteStep:"minuteStep",secondsStep:"secondsStep",readonlyInput:"readonlyInput",disabled:"disabled",mousewheel:"mousewheel",arrowkeys:"arrowkeys",showSpinners:"showSpinners",showMeridian:"showMeridian",showMinutes:"showMinutes",showSeconds:"showSeconds",meridians:"meridians",min:"min",max:"max",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",secondsPlaceholder:"secondsPlaceholder"},outputs:{isValid:"isValid",meridianChange:"meridianChange"},features:[lo([bDe,KB]),vo],decls:31,vars:33,consts:[[1,"text-center",3,"hidden"],[1,"btn","btn-link",3,"click"],[1,"bs-chevron","bs-chevron-up"],[4,"ngIf"],[1,"form-group","mb-3"],["type","text","maxlength","2",1,"form-control","text-center","bs-timepicker-field",3,"placeholder","readonly","disabled","value","wheel","keydown.ArrowUp","keydown.ArrowDown","change"],["class","form-group mb-3",3,"has-error",4,"ngIf"],[1,"bs-chevron","bs-chevron-down"],["type","button",1,"btn","btn-default","text-center",3,"disabled","click"]],template:function(e,i){1&e&&(b(0,"table")(1,"tbody")(2,"tr",0)(3,"td")(4,"a",1),Me("click",function(){return i.changeHours(i.hourStep)}),be(5,"span",2),y()(),O(6,YTe,2,0,"td",3),O(7,GTe,3,2,"td",3),O(8,WTe,2,0,"td",3),O(9,QTe,3,2,"td",3),O(10,KTe,2,0,"td",3),O(11,qTe,1,0,"td",3),y(),b(12,"tr")(13,"td",4)(14,"input",5),Me("wheel",function(a){return i.prevDef(a),i.changeHours(i.hourStep*i.wheelSign(a),"wheel")})("keydown.ArrowUp",function(){return i.changeHours(i.hourStep,"key")})("keydown.ArrowDown",function(){return i.changeHours(-i.hourStep,"key")})("change",function(a){return i.updateHours(a.target)}),y()(),O(15,XTe,2,0,"td",3),O(16,JTe,2,9,"td",6),O(17,ZTe,2,0,"td",3),O(18,eDe,2,9,"td",6),O(19,tDe,2,0,"td",3),O(20,nDe,3,4,"td",3),y(),b(21,"tr",0)(22,"td")(23,"a",1),Me("click",function(){return i.changeHours(-i.hourStep)}),be(24,"span",7),y()(),O(25,iDe,2,0,"td",3),O(26,rDe,3,2,"td",3),O(27,oDe,2,0,"td",3),O(28,aDe,3,2,"td",3),O(29,sDe,2,0,"td",3),O(30,lDe,1,0,"td",3),y()()()),2&e&&(p(2),m("hidden",!i.showSpinners),p(2),g("disabled",!i.canIncrementHours||!i.isEditable),p(2),m("ngIf",i.showMinutes),p(1),m("ngIf",i.showMinutes),p(1),m("ngIf",i.showSeconds),p(1),m("ngIf",i.showSeconds),p(1),m("ngIf",i.showMeridian),p(1),m("ngIf",i.showMeridian),p(2),g("has-error",i.invalidHours),p(1),g("is-invalid",i.invalidHours),m("placeholder",i.hoursPlaceholder)("readonly",i.readonlyInput)("disabled",i.disabled)("value",i.hours),Tr("aria-label",i.labelHours),p(1),m("ngIf",i.showMinutes),p(1),m("ngIf",i.showMinutes),p(1),m("ngIf",i.showSeconds),p(1),m("ngIf",i.showSeconds),p(1),m("ngIf",i.showMeridian),p(1),m("ngIf",i.showMeridian),p(1),m("hidden",!i.showSpinners),p(2),g("disabled",!i.canDecrementHours||!i.isEditable),p(2),m("ngIf",i.showMinutes),p(1),m("ngIf",i.showMinutes),p(1),m("ngIf",i.showSeconds),p(1),m("ngIf",i.showSeconds),p(1),m("ngIf",i.showMeridian),p(1),m("ngIf",i.showMeridian))},dependencies:[rr],styles:[".bs-chevron{border-style:solid;display:block;width:9px;height:9px;position:relative;border-width:3px 0px 0 3px}.bs-chevron-up{transform:rotate(45deg);top:2px}.bs-chevron-down{transform:rotate(-135deg);top:-2px}.bs-timepicker-field{width:65px;padding:.375rem .55rem}\n"],encapsulation:2,changeDetection:0}),n})(),yU=(()=>{class n{static forRoot(){return{ngModule:n,providers:[DA,KB]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[KB],imports:[xs]}),n})();const Tte="220ms cubic-bezier(0, 0, 0.2, 1)";Ku("typeaheadAnimation",[Al("animated-down",uo({height:"*",overflow:"hidden"})),Xs("* => animated-down",[uo({height:0,overflow:"hidden"}),qa(Tte)]),Al("animated-up",uo({height:"*",overflow:"hidden"})),Xs("* => animated-up",[uo({height:"*",overflow:"hidden"}),qa(Tte)]),Xs("* => unanimated",qa("0s"))]);let Dte=(()=>{class n{static forRoot(){return{ngModule:n,providers:[s1,Ab]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();function ma(n){return r=>r.lift(new PDe(n))}class PDe{constructor(r){this.notifier=r}call(r,e){const i=new ODe(r),o=Qi(this.notifier,new Tt(i));return o&&!i.seenValue?(i.add(o),e.subscribe(i)):i}}class ODe extends ln{constructor(r){super(r),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function vS(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function V_(n){return"string"==typeof n}function qB(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function Hx(n){return n&&n.getTime&&!isNaN(n.getTime())}function bS(n){return n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function yS(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function Yp(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function t_(n,r){return Object.prototype.hasOwnProperty.call(n,r)}function CS(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function Pte(n){return void 0===n}function td(n){const r=+n;let e=0;return 0!==r&&isFinite(r)&&(e=vS(r)),e}const S3={},Ote={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function n_(n,r){const e=n.toLowerCase();let i=n;e in Ote&&(i=Ote[e]),S3[e]=S3[`${e}s`]=S3[r]=i}function kte(n){return V_(n)?S3[n]||S3[n.toLowerCase()]:void 0}function kA(n,r,e){const i=`${Math.abs(n)}`;return(n>=0?e?"+":"":"-")+Math.pow(10,Math.max(0,r-i.length)).toString().substr(1)+i}const CU={},BP={},Ete=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function zl(n,r,e,i){n&&(BP[n]=i),r&&(BP[r[0]]=function(){return kA(i.apply(null,arguments),r[1],r[2])}),e&&(BP[e]=function(o,a){return a.locale.ordinal(i.apply(null,arguments),n)})}function LDe(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function XB(n,r,e){const i=new Date(Date.UTC.apply(null,arguments));return n<100&&n>=0&&isFinite(i.getUTCFullYear())&&i.setUTCFullYear(n),i}function JB(n,r=0,e=1,i=0,o=0,a=0,s=0){const l=new Date(n,r,e,i,o,a,s);return n<100&&n>=0&&isFinite(l.getFullYear())&&l.setFullYear(n),l}function nd(n,r=!1){return r?n.getUTCHours():n.getHours()}function LP(n,r=!1){return r?n.getUTCMinutes():n.getMinutes()}function AU(n,r=!1){return r?n.getUTCSeconds():n.getSeconds()}function EA(n,r=!1){return r?n.getUTCMilliseconds():n.getMilliseconds()}function Wy(n,r=!1){return r?n.getUTCDay():n.getDay()}function wS(n,r=!1){return r?n.getUTCDate():n.getDate()}function id(n,r=!1){return r?n.getUTCMonth():n.getMonth()}function hh(n,r=!1){return r?n.getUTCFullYear():n.getFullYear()}function NP(n,r){return!(!n||!r)&&HP(n,r)&&id(n)===id(r)}function HP(n,r){return!(!n||!r)&&hh(n)===hh(r)}function Vx(n,r){return!(!n||!r)&&HP(n,r)&&NP(n,r)&&wS(n)===wS(r)}const Ite=/\d/,vv=/\d\d/,Fte=/\d{3}/,wU=/\d{4}/,ZB=/[+-]?\d{6}/,Sp=/\d\d?/,Rte=/\d\d\d\d?/,Bte=/\d\d\d\d\d\d?/,eL=/\d{1,3}/,xU=/\d{1,4}/,tL=/[+-]?\d{1,6}/,jDe=/\d+/,nL=/[+-]?\d+/,iL=/Z|[+-]\d\d(?::?\d\d)?/gi,YDe=/[+-]?\d+(\.\d{1,3})?/,T3=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,rL={};function Us(n,r,e){rL[n]=bS(r)?r:function(i,o){return i&&e?e:r}}function GDe(n,r){return t_(rL,n)?rL[n](!1,r):new RegExp(function WDe(n){return xS(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(r,e,i,o,a)=>e||i||o||a))}(n))}function xS(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const MU={};function Tp(n,r){const e=V_(n)?[n]:n;let i=r;if(yS(r)&&(i=function(o,a,s){return a[r]=td(o),s}),Yp(e)&&bS(i)){let o;for(o=0;o68?1900:2e3)}function P3(n){return DU(n)?366:365}function DU(n){return n%4==0&&n%100!=0||n%400==0}function oL(n,r){if(isNaN(n)||isNaN(r))return NaN;const e=function kDe(n,r){return(n%r+r)%r}(r,12);return 1===e?DU(n+(r-e)/12)?29:28:31-e%7%2}const ePe={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function Em(n,r){const e=Object.assign({},ePe,r),i=n.getFullYear()+(e.year||0),o=n.getMonth()+(e.month||0);let a=n.getDate()+(e.day||0);return e.month&&!e.day&&(a=Math.min(a,oL(i,o))),JB(i,o,a,n.getHours()+(e.hour||0),n.getMinutes()+(e.minute||0),n.getSeconds()+(e.seconds||0))}function VP(n,r){return yS(r)?r:n}function MS(n,r,e){const i=Math.min(wS(n),oL(hh(n),r));return e?n.setUTCMonth(r,i):n.setMonth(r,i),n}function PU(n,r,e){return e?n.setUTCDate(r):n.setDate(r),n}function IA(n){return new Date(n.getTime())}function FA(n,r,e){const i=IA(n);switch(r){case"year":MS(i,0,e);case"quarter":case"month":PU(i,1,e);case"week":case"isoWeek":case"day":case"date":!function iPe(n,r,e){e?n.setUTCHours(r):n.setHours(r)}(i,0,e);case"hours":!function rPe(n,r,e){e?n.setUTCMinutes(r):n.setMinutes(r)}(i,0,e);case"minutes":!function oPe(n,r,e){e?n.setUTCSeconds(r):n.setSeconds(r)}(i,0,e);case"seconds":!function aPe(n,r,e){e?n.setUTCMilliseconds(r):n.setMilliseconds(r)}(i,0,e)}return"week"===r&&function bOe(n,r,e={}){qy(n,r-zU(n,e.locale,e.isUTC),"day")}(i,0,{isUTC:e}),"isoWeek"===r&&function yOe(n,r,e={}){const i=function vOe(n,r=am()){return V_(n)?r.weekdaysParse(n)%7||7:yS(n)&&isNaN(n)?null:n}(r,e.locale);F3(n,function kf(n,r){return Wy(n,r)}(n)%7?i:i-7)}(i,1),"quarter"===r&&MS(i,3*Math.floor(id(i,e)/3),e),i}function aL(n,r,e){let i=r;return"date"===i&&(i="day"),function mOe(n,r,e,i){return cne(n,UU(r,e),-1,i)}(qy(FA(n,i,e),1,"isoWeek"===i?"week":i,e),1,"milliseconds",e)}function OU(n,r){const e=+FA(n,"day",r),i=+FA(n,"year",r);return Math.round((e-i)/864e5)+1}function sL(n,r,e){const i=r-e+7;return-(XB(n,0,i).getUTCDay()-r+7)%7+i-1}function UP(n,r,e,i){const o=sL(hh(n,i),r,e),a=Math.floor((OU(n,i)-o-1)/7)+1;let s,l;return a<1?(l=hh(n,i)-1,s=a+SS(l,r,e)):a>SS(hh(n,i),r,e)?(s=a-SS(hh(n,i),r,e),l=hh(n,i)+1):(l=hh(n,i),s=a),{week:s,year:l}}function SS(n,r,e){const i=sL(n,r,e),o=sL(n+1,r,e);return(P3(n)-i+o)/7}const Nte=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,cPe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Hte="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),dPe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vte="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),uPe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ute={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},fPe=T3,mPe=T3;class zte{constructor(r){r&&this.set(r)}set(r){let e;for(e in r){if(!r.hasOwnProperty(e))continue;const i=r[e];this[bS(i)?e:`_${e}`]=i}this._config=r}calendar(r,e,i){const o=this._calendar[r]||this._calendar.sameElse;return bS(o)?o.call(null,e,i):o}longDateFormat(r){const e=this._longDateFormat[r],i=this._longDateFormat[r.toUpperCase()];return e||!i?e:(this._longDateFormat[r]=i.replace(/MMMM|MM|DD|dddd/g,function(o){return o.slice(1)}),this._longDateFormat[r])}get invalidDate(){return this._invalidDate}set invalidDate(r){this._invalidDate=r}ordinal(r,e){return this._ordinal.replace("%d",r.toString(10))}preparse(r,e){return r}getFullYear(r,e=!1){return hh(r,e)}postformat(r){return r}relativeTime(r,e,i,o){const a=this._relativeTime[i];return bS(a)?a(r,e,i,o):a.replace(/%d/i,r.toString(10))}pastFuture(r,e){const i=this._relativeTime[r>0?"future":"past"];return bS(i)?i(e):i.replace(/%s/i,e)}months(r,e,i=!1){if(!r)return Yp(this._months)?this._months:this._months.standalone;if(Yp(this._months))return this._months[id(r,i)];const o=(this._months.isFormat||Nte).test(e)?"format":"standalone";return this._months[o][id(r,i)]}monthsShort(r,e,i=!1){if(!r)return Yp(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(Yp(this._monthsShort))return this._monthsShort[id(r,i)];const o=Nte.test(e)?"format":"standalone";return this._monthsShort[o][id(r,i)]}monthsParse(r,e,i){let o,a,s;if(this._monthsParseExact)return this.handleMonthStrictParse(r,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(o=new Date(Date.UTC(2e3,s)),i&&!this._longMonthsParse[s]){const l=this.months(o,"",!0).replace(".",""),d=this.monthsShort(o,"",!0).replace(".","");this._longMonthsParse[s]=new RegExp(`^${l}$`,"i"),this._shortMonthsParse[s]=new RegExp(`^${d}$`,"i")}if(!i&&!this._monthsParse[s]&&(a=`^${this.months(o,"",!0)}|^${this.monthsShort(o,"",!0)}`,this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[s].test(r)||i&&"MMM"===e&&this._shortMonthsParse[s].test(r)||!i&&this._monthsParse[s].test(r))return s}}monthsRegex(r){return this._monthsParseExact?(t_(this,"_monthsRegex")||this.computeMonthsParse(),r?this._monthsStrictRegex:this._monthsRegex):(t_(this,"_monthsRegex")||(this._monthsRegex=mPe),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(r){return this._monthsParseExact?(t_(this,"_monthsRegex")||this.computeMonthsParse(),r?this._monthsShortStrictRegex:this._monthsShortRegex):(t_(this,"_monthsShortRegex")||(this._monthsShortRegex=fPe),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}week(r,e){return UP(r,this._week.dow,this._week.doy,e).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(r,e,i){if(!r)return Yp(this._weekdays)?this._weekdays:this._weekdays.standalone;if(Yp(this._weekdays))return this._weekdays[Wy(r,i)];const o=this._weekdays.isFormat.test(e)?"format":"standalone";return this._weekdays[o][Wy(r,i)]}weekdaysMin(r,e,i){return r?this._weekdaysMin[Wy(r,i)]:this._weekdaysMin}weekdaysShort(r,e,i){return r?this._weekdaysShort[Wy(r,i)]:this._weekdaysShort}weekdaysParse(r,e,i){let o,a;if(this._weekdaysParseExact)return this.handleWeekStrictParse(r,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){const s=F3(new Date(Date.UTC(2e3,1)),o,null,!0);if(i&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp(`^${this.weekdays(s,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[o]=new RegExp(`^${this.weekdaysShort(s,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[o]=new RegExp(`^${this.weekdaysMin(s,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[o]||(a=`^${this.weekdays(s,"",!0)}|^${this.weekdaysShort(s,"",!0)}|^${this.weekdaysMin(s,"",!0)}`,this._weekdaysParse[o]=new RegExp(a.replace(".",""),"i")),!(Yp(this._fullWeekdaysParse)&&Yp(this._shortWeekdaysParse)&&Yp(this._minWeekdaysParse)&&Yp(this._weekdaysParse)))return;if(i&&"dddd"===e&&this._fullWeekdaysParse[o].test(r))return o;if(i&&"ddd"===e&&this._shortWeekdaysParse[o].test(r))return o;if(i&&"dd"===e&&this._minWeekdaysParse[o].test(r))return o;if(!i&&this._weekdaysParse[o].test(r))return o}}weekdaysRegex(r){return this._weekdaysParseExact?(t_(this,"_weekdaysRegex")||this.computeWeekdaysParse(),r?this._weekdaysStrictRegex:this._weekdaysRegex):(t_(this,"_weekdaysRegex")||(this._weekdaysRegex=T3),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(r){return this._weekdaysParseExact?(t_(this,"_weekdaysRegex")||this.computeWeekdaysParse(),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(t_(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=T3),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(r){return this._weekdaysParseExact?(t_(this,"_weekdaysRegex")||this.computeWeekdaysParse(),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(t_(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=T3),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(r){return"p"===r.toLowerCase().charAt(0)}meridiem(r,e,i){return r>11?i?"pm":"PM":i?"am":"AM"}formatLongDate(r){this._longDateFormat=this._longDateFormat?this._longDateFormat:Ute;const e=this._longDateFormat[r],i=this._longDateFormat[r.toUpperCase()];return e||!i?e:(this._longDateFormat[r]=i.replace(/MMMM|MM|DD|dddd/g,o=>o.slice(1)),this._longDateFormat[r])}handleMonthStrictParse(r,e,i){const o=r.toLocaleLowerCase();let a,s,l;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)l=new Date(2e3,a),this._shortMonthsParse[a]=this.monthsShort(l,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(l,"").toLocaleLowerCase();return i?"MMM"===e?(s=this._shortMonthsParse.indexOf(o),-1!==s?s:null):(s=this._longMonthsParse.indexOf(o),-1!==s?s:null):"MMM"===e?(s=this._shortMonthsParse.indexOf(o),-1!==s?s:(s=this._longMonthsParse.indexOf(o),-1!==s?s:null)):(s=this._longMonthsParse.indexOf(o),-1!==s?s:(s=this._shortMonthsParse.indexOf(o),-1!==s?s:null))}handleWeekStrictParse(r,e,i){let o;const a=r.toLocaleLowerCase();if(!this._weekdaysParse){let s;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s){const l=F3(new Date(Date.UTC(2e3,1)),s,null,!0);this._minWeekdaysParse[s]=this.weekdaysMin(l).toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(l).toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(l,"").toLocaleLowerCase()}}if(Yp(this._weekdaysParse)&&Yp(this._shortWeekdaysParse)&&Yp(this._minWeekdaysParse))return i?"dddd"===e?(o=this._weekdaysParse.indexOf(a),-1!==o?o:null):"ddd"===e?(o=this._shortWeekdaysParse.indexOf(a),-1!==o?o:null):(o=this._minWeekdaysParse.indexOf(a),-1!==o?o:null):"dddd"===e?(o=this._weekdaysParse.indexOf(a),-1!==o||(o=this._shortWeekdaysParse.indexOf(a),-1!==o)?o:(o=this._minWeekdaysParse.indexOf(a),-1!==o?o:null)):"ddd"===e?(o=this._shortWeekdaysParse.indexOf(a),-1!==o||(o=this._weekdaysParse.indexOf(a),-1!==o)?o:(o=this._minWeekdaysParse.indexOf(a),-1!==o?o:null)):(o=this._minWeekdaysParse.indexOf(a),-1!==o||(o=this._weekdaysParse.indexOf(a),-1!==o)?o:(o=this._shortWeekdaysParse.indexOf(a),-1!==o?o:null))}computeMonthsParse(){const r=[],e=[],i=[];let o,a;for(a=0;a<12;a++)o=new Date(2e3,a),r.push(this.monthsShort(o,"")),e.push(this.months(o,"")),i.push(this.months(o,"")),i.push(this.monthsShort(o,""));for(r.sort(TS),e.sort(TS),i.sort(TS),a=0;a<12;a++)r[a]=xS(r[a]),e[a]=xS(e[a]);for(a=0;a<24;a++)i[a]=xS(i[a]);this._monthsRegex=new RegExp(`^(${i.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${e.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${r.join("|")})`,"i")}computeWeekdaysParse(){const r=[],e=[],i=[],o=[];let a;for(a=0;a<7;a++){const s=F3(new Date(Date.UTC(2e3,1)),a,null,!0),l=this.weekdaysMin(s),d=this.weekdaysShort(s),f=this.weekdays(s);r.push(l),e.push(d),i.push(f),o.push(l),o.push(d),o.push(f)}for(r.sort(TS),e.sort(TS),i.sort(TS),o.sort(TS),a=0;a<7;a++)e[a]=xS(e[a]),i[a]=xS(i[a]),o[a]=xS(o[a]);this._weekdaysRegex=new RegExp(`^(${o.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${i.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${e.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${r.join("|")})`,"i")}}function TS(n,r){return r.length-n.length}const jte={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:Ute,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:cPe,monthsShort:Hte,week:{dow:0,doy:6},weekdays:dPe,weekdaysMin:uPe,weekdaysShort:Vte,meridiemParse:/[ap]\.?m?\.?/i};function gPe(n,r,e){const i=Math.min(n.length,r.length),o=Math.abs(n.length-r.length);let s,a=0;for(s=0;s0;){if(e=Jte(o.slice(0,a).join("-")),e)return e;if(r&&r.length>=a&&gPe(o,r,!0)>=a-1)break;a--}i++}return null}(Yp(n)?n:[n]):k3}const E3=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],IPe=E3.reduce((n,r)=>(n[r]=!0,n),{});function ene(n){return n<0?Math.floor(n):Math.ceil(n)}function tne(n){return 4800*n/146097}function RU(n){return 146097*n/4800}let Ux=Math.round;const Qy_ss=44,Qy_s=45,Qy_m=45,Qy_h=22,Qy_d=26,Qy_M=11;function BPe(n,r,e,i,o){return o.relativeTime(r||1,!!e,n,i)}class nne{constructor(r,e={}){this._data={},this._locale=am(),this._locale=e&&e._locale||am();const o=r.year||0,a=r.quarter||0,s=r.month||0,l=r.week||0,d=r.day||0,f=r.hours||0,C=r.minutes||0,M=r.seconds||0,T=r.milliseconds||0;return this._isValid=function FPe(n){if(Object.keys(n).some(i=>i in IPe&&null===n[i]||isNaN(n[i])))return!1;let e=!1;for(let i=0;i=0&&e>=0&&i>=0||r<=0&&e<=0&&i<=0||(r+=864e5*ene(RU(i)+e),e=0,i=0),o.milliseconds=r%1e3;const a=vS(r/1e3);o.seconds=a%60;const s=vS(a/60);o.minutes=s%60;const l=vS(s/60);o.hours=l%24,e+=vS(l/24);const d=vS(tne(e));i+=d,e-=ene(RU(d));const f=vS(i/12);return i%=12,o.day=e,o.month=i,o.year=f,n}(this)}isValid(){return this._isValid}humanize(r){if(!this.isValid())return this.localeData().invalidDate;const e=this.localeData();let i=function LPe(n,r,e){const i=UU(n).abs(),o=Ux(i.as("s")),a=Ux(i.as("m")),s=Ux(i.as("h")),l=Ux(i.as("d")),d=Ux(i.as("M")),f=Ux(i.as("y")),C=o<=Qy_ss&&["s",o]||o0,e])}(this,!r,e);return r&&(i=e.pastFuture(+this,i)),e.postformat(i)}localeData(){return this._locale}locale(r){return r?(this._locale=am(r)||this._locale,this):this._locale._abbr}abs(){const r=Math.abs,e=this._data;return this._milliseconds=r(this._milliseconds),this._days=r(this._days),this._months=r(this._months),e.milliseconds=r(e.milliseconds),e.seconds=r(e.seconds),e.minutes=r(e.minutes),e.hours=r(e.hours),e.month=r(e.month),e.year=r(e.year),this}as(r){if(!this.isValid())return NaN;let e,i;const o=this._milliseconds,a=kte(r);if("month"===a||"year"===a)return e=this._days+o/864e5,i=this._months+tne(e),"month"===a?i:i/12;switch(e=this._days+Math.round(RU(this._months)),a){case"week":return e/7+o/6048e5;case"day":return e+o/864e5;case"hours":return 24*e+o/36e5;case"minutes":return 1440*e+o/6e4;case"seconds":return 86400*e+o/1e3;case"milliseconds":return Math.floor(864e5*e)+o;default:throw new Error(`Unknown unit ${a}`)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*td(this._months/12):NaN}}function BU(n){if(null==n._isValid){const r=kd(n),e=Array.prototype.some.call(r.parsedDateParts,function(o){return null!=o});let i=!isNaN(n._d&&n._d.getTime())&&r.overflow<0&&!r.empty&&!r.invalidMonth&&!r.invalidWeekday&&!r.weekdayMismatch&&!r.nullInput&&!r.invalidFormat&&!r.userInvalidated&&(!r.meridiem||r.meridiem&&e);if(n._strict&&(i=i&&0===r.charsLeftOver&&0===r.unusedTokens.length&&void 0===r.bigHour),null!=Object.isFrozen&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function dL(n,r){return n._d=new Date(NaN),Object.assign(kd(n),r||{userInvalidated:!0}),n}const VPe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,UPe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zPe=/Z|[+-]\d\d(?::?\d\d)?/,uL=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],LU=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],jPe=/^\/?Date\((\-?\d+)/i,$Pe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},YPe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function ine(n){if(!V_(n._i))return n;const r=n._i,e=VPe.exec(r)||UPe.exec(r);let i,o,a,s,l,d;if(!e)return n._isValid=!1,n;for(l=0,d=uL.length;lr.formatLongDate(s)||s;for(o.lastIndex=0;i>=0&&o.test(e);)e=e.replace(o,a),o.lastIndex=0,i-=1;return e}function zP(n,r,e){return n??r??e}function NU(n){const r=[];let e,i,o;if(n._d)return n;const a=function ZPe(n){const r=new Date;return n._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()]}(n);for(n._w&&null==n._a[2]&&null==n._a[1]&&function eOe(n){let r,e,i,o,a,s,l;const d=n._w;if(null!=d.GG||null!=d.W||null!=d.E)o=1,a=4,r=zP(d.GG,n._a[0],UP(new Date,1,4).year),e=zP(d.W,1),i=zP(d.E,1),(i<1||i>7)&&(l=!0);else{o=n._locale._week.dow,a=n._locale._week.doy;const f=UP(new Date,o,a);r=zP(d.gg,n._a[0],f.year),e=zP(d.w,f.week),null!=d.d?(i=d.d,(i<0||i>6)&&(l=!0)):null!=d.e?(i=d.e+o,(d.e<0||d.e>6)&&(l=!0)):i=o}e<1||e>SS(r,o,a)?kd(n)._overflowWeeks=!0:null!=l?kd(n)._overflowWeekday=!0:(s=function Lte(n,r,e,i,o){const l=1+7*(r-1)+(7+e-i)%7+sL(n,i,o);let d,f;return l<=0?(d=n-1,f=P3(d)+l):l>P3(n)?(d=n+1,f=l-P3(n)):(d=n,f=l),{year:d,dayOfYear:f}}(r,e,i,o,a),n._a[0]=s.year,n._dayOfYear=s.dayOfYear)}(n),null!=n._dayOfYear&&(o=zP(n._a[0],a[0]),(n._dayOfYear>P3(o)||0===n._dayOfYear)&&(kd(n)._overflowDayOfYear=!0),i=new Date(Date.UTC(o,0,n._dayOfYear)),n._a[1]=i.getUTCMonth(),n._a[2]=i.getUTCDate()),e=0;e<3&&null==n._a[e];++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]??(2===e?1:0);24===n._a[3]&&0===n._a[4]&&0===n._a[5]&&0===n._a[6]&&(n._nextDay=!0,n._a[3]=0),n._d=(n._useUTC?XB:JB).apply(null,r);const s=n._useUTC?n._d.getUTCDay():n._d.getDay();return null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[3]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==s&&(kd(n).weekdayMismatch=!0),n}function ane(n){let r;const e=n._a;return e&&-2===kd(n).overflow&&(r=e[1]<0||e[1]>11?1:e[2]<1||e[2]>oL(e[0],e[1])?2:e[3]<0||e[3]>24||24===e[3]&&(0!==e[4]||0!==e[5]||0!==e[6])?3:e[4]<0||e[4]>59?4:e[5]<0||e[5]>59?5:e[6]<0||e[6]>999?6:-1,kd(n)._overflowDayOfYear&&(r<0||r>2)&&(r=2),kd(n)._overflowWeeks&&-1===r&&(r=7),kd(n)._overflowWeekday&&-1===r&&(r=8),kd(n).overflow=r),n}function HU(n){if("ISO_8601"===n._f)return ine(n);if("RFC_2822"===n._f)return rne(n);if(n._a=[],kd(n).empty=!0,Yp(n._f)||!n._i&&0!==n._i)return n;let r=n._i.toString(),e=0;const i=r.length,o=one(n._f,n._locale).match(Ete)||[];let a,s,l,d;for(a=0;a0&&kd(n).unusedInput.push(d),r=r.slice(r.indexOf(l)+l.length),e+=l.length),BP[s]?(l?kd(n).empty=!1:kd(n).unusedTokens.push(s),QDe(s,l,n)):n._strict&&!l&&kd(n).unusedTokens.push(s);return kd(n).charsLeftOver=i-e,r.length>0&&kd(n).unusedInput.push(r),n._a[3]<=12&&!0===kd(n).bigHour&&n._a[3]>0&&(kd(n).bigHour=void 0),kd(n).parsedDateParts=n._a.slice(0),kd(n).meridiem=n._meridiem,n._a[3]=function iOe(n,r,e){let i=r;if(null==e)return i;if(null!=n.meridiemHour)return n.meridiemHour(i,e);if(null==n.isPM)return i;const o=n.isPM(e);return o&&i<12&&(i+=12),!o&&12===i&&(i=0),i}(n._locale,n._a[3],n._meridiem),NU(n),ane(n)}function aOe(n){const r=ane(function sOe(n){let r=n._i;const e=n._f;return n._locale=n._locale||am(n._l),null===r||void 0===e&&""===r?dL(n,{nullInput:!0}):(V_(r)&&(n._i=r=n._locale.preparse(r,e)),qB(r)?(n._d=IA(r),n):(Yp(e)?function rOe(n){let r,e,i,o,a;if(!n._f||0===n._f.length)return kd(n).invalidFormat=!0,dL(n);for(a=0;aV_(i)?parseInt(i,10):i),NU(n)}else if(CS(r))!function oOe(n){if(n._d)return n;const r=n._i;if(CS(r)){const e=function IDe(n){const r={};let e,i;for(i in n)t_(n,i)&&(e=kte(i),e&&(r[e]=n[i]));return r}(r);n._a=[e.year,e.month,e.day,e.hours,e.minutes,e.seconds,e.milliseconds].map(i=>V_(i)?parseInt(i,10):i)}return NU(n)}(n);else{if(!yS(r))return dL(n);n._d=new Date(r)}}(n),BU(n)||(n._d=null),n))}(n));return r._d=new Date(null!=r._d?r._d.getTime():NaN),BU(Object.assign({},r,{_isValid:null}))||(r._d=new Date(NaN)),r}function I3(n,r,e,i,o){return qB(n)?n:function cOe(n,r,e,i,o){const a={};let s=n;return(CS(s)&&function EDe(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;let r;for(r in n)if(n.hasOwnProperty(r))return!1;return!0}(s)||Yp(s)&&0===s.length)&&(s=void 0),a._useUTC=a._isUTC=o,a._l=e,a._i=s,a._f=r,a._strict=i,aOe(a)}(n,r,e,i,o)._d}function sne(n){return n instanceof Date?new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()):null}function VU(n){return n<0?-1*Math.round(-1*n):Math.round(n)}function Mb(n,r,e="milliseconds"){return!(!n||!r)&&("milliseconds"===e?n.valueOf()>r.valueOf():r.valueOf()=3&&n%100<=10?3:n%100>=11?4:5},wOe={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},d1=function(n){return function(r,e){const i=une(r);let o=wOe[n][une(r)];return 2===i&&(o=o[e?0:1]),o.replace(/%d/i,r.toString())}};"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),d1("s"),d1("s"),d1("m"),d1("m"),d1("h"),d1("h"),d1("d"),d1("d"),d1("M"),d1("M"),d1("y"),d1("y"),"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),"ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),"diu._dil._dim._dix._dij._div._dis.".split("_"),"dg_dl_dt_dc_dj_dv_ds".split("_");const $U="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),YU="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(n,r){let e,i=[];for(e=0;e<12;e++)i[e]=new RegExp("^"+n[e]+"$|^"+r[e]+"$","i")})($U,YU),function(n){let r,e=[];for(r=0;r<12;r++)e[r]=new RegExp("^"+n[r]+"$","i")}(YU),function(n){let r,e=[];for(r=0;r<12;r++)e[r]=new RegExp("^"+n[r]+"$","i")}($U),"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),"S\xf8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xf8rdag".split("_"),"S\xf8n_Man_Tir_Ons_Tor_Fre_L\xf8r".split("_"),"S\xf8_Ma_Ti_On_To_Fr_L\xf8".split("_"),"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),"P_E_T_K_N_R_L".split("_"),"P_E_T_K_N_R_L".split("_"),"nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_"),"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),"xan_feb_mar_abr_mai_xu\xf1_xul_ago_set_out_nov_dec".split("_"),"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),"vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" "),"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),"v_h_k_sze_cs_p_szo".split("_"),"Sije\u010danj_Velja\u010da_O\u017eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),"Sij_Velj_O\u017eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010cetvrtak_Petak_Subota".split("_"),"Ned_Pon_Uto_Sri_\u010cet_Pet_Sub".split("_"),"Ne_Po_Ut_Sr_\u010ce_Pe_Su".split("_"),"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),"dom_lun_mar_mer_gio_ven_sab".split("_"),"do_lu_ma_me_gi_ve_sa".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),"S_P_A_T_K_Pn_\u0160".split("_"),"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012blis_Maijs_J\u016bnijs_J\u016blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),"Jan_Feb_Mar_Apr_Mai_J\u016bn_J\u016bl_Aug_Sep_Okt_Nov_Dec".split("_"),"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_"),"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),"ne_po_to_sr_\u010de_pe_so".split("_"),"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),"E Diel\xeb_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),"Di_He_Ma_Me_En_Pr_Sh".split("_"),"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_");const One={abbr:"th-be",months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:n=>"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===n,meridiem:(n,r,e)=>n<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},preparse(n,r){const e=One.longDateFormat[r]?One.longDateFormat[r]:r;return-1!==e.indexOf("YYYY",e.length-4)?n.substr(0,n.length-4)+(parseInt(n.substr(n.length-4),10)-543):n},getFullYear:(n,r=!1)=>543+(r?n.getUTCFullYear():n.getFullYear())};function KP(n){return function(r){return n+"\u043e"+(11===nd(r)?"\u0431":"")+"] LT"}}"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_"),"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),KP("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),KP("[\u0417\u0430\u0432\u0442\u0440\u0430 "),KP("[\u0412\u0447\u043e\u0440\u0430 "),KP("[\u0423] dddd ["),"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_");const $Oe=["*"];let tz=(()=>{class n{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YOe=(()=>{class n{constructor(e){Object.assign(this,e)}get _bsVersions(){return EP()}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=RP[this.placement]),this.classMap[this.placement]=!0),this.classMap[`tooltip-${this.placement}`]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}}return n.\u0275fac=function(e){return new(e||n)(U(tz))},n.\u0275cmp=wn({type:n,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:7,hostBindings:function(e,i){2&e&&(Tr("id",i.id),J("tooltip in tooltip-"+i.placement+" bs-tooltip-"+i.placement+" "+i.placement+" "+i.containerClass),g("show",!i._bsVersions.isBs3)("bs3",i._bsVersions.isBs3))},ngContentSelectors:$Oe,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Cs(),be(0,"div",0),b(1,"div",1),ha(2),y())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none}.bs3.tooltip.top[_nghost-%COMP%] > .arrow[_ngcontent-%COMP%]{margin-left:-2px}.bs3.tooltip.bottom[_nghost-%COMP%]{margin-top:0}.bs3.bs-tooltip-left[_nghost-%COMP%], .bs3.bs-tooltip-right[_nghost-%COMP%]{margin:0}.bs3.bs-tooltip-right[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .bs3.bs-tooltip-left[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{margin:.3rem 0}"],changeDetection:0}),n})(),GOe=0,WOe=(()=>{class n{constructor(e,i,o,a,s,l){this._elementRef=a,this._renderer=s,this._positionService=l,this.tooltipId=GOe++,this.adaptivePosition=!0,this.tooltipChange=new Cn,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new Cn,this._tooltip=i.createLoader(this._elementRef,e,this._renderer).provide({provide:tz,useValue:o}),Object.assign(this,o),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}get isOpen(){return this._tooltip.isShown}set isOpen(e){e?this.show():this.hide()}set htmlContent(e){gv("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=e}set _placement(e){gv("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=e}set _isOpen(e){gv("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=e}get _isOpen(){return gv("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(e){gv("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!e}get _enable(){return gv("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(e){gv('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=e?"body":this.container}get _appendToBody(){return gv('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container}set _popupClass(e){gv("tooltipClass deprecated")}set _tooltipContext(e){gv("tooltipContext deprecated")}set _tooltipPopupDelay(e){gv("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=e}get _tooltipTrigger(){return gv("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(e){gv("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(e||"").toString()}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(e=>{e||this._tooltip.hide()}),this.onShown.subscribe(()=>{this.setAriaDescribedBy()}),this.onHidden.subscribe(()=>{this.setAriaDescribedBy()})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`tooltip-${this.tooltipId}`:void 0,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}toggle(){if(this.isOpen)return this.hide();this.show()}show(){if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}}),this.isOpen||this.isDisabled||this._delayTimeoutId||!this.tooltip)return;const e=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(YOe).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},i=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=Rx(this.delay).subscribe(()=>{e(),i()}),this.triggers&&eU(this.triggers).forEach(o=>{!o.close||(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,o.close,()=>{var a;null===(a=this._delaySubscription)||void 0===a||a.unsubscribe(),i()}))})):e()}hide(){var e;this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(null!==(e=this._tooltip.instance)&&void 0!==e&&e.classMap&&(this._tooltip.instance.classMap.in=!1),setTimeout(()=>{this._tooltip.hide()},this.tooltipFadeDuration))}ngOnDestroy(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(U(ac),U(s1),U(tz),U(gr),U(Wl),U(Ab))},n.\u0275dir=Wn({type:n,selectors:[["","tooltip",""],["","tooltipHtml",""]],inputs:{adaptivePosition:"adaptivePosition",tooltip:"tooltip",placement:"placement",triggers:"triggers",container:"container",containerClass:"containerClass",boundariesElement:"boundariesElement",isOpen:"isOpen",isDisabled:"isDisabled",delay:"delay",htmlContent:["tooltipHtml","htmlContent"],_placement:["tooltipPlacement","_placement"],_isOpen:["tooltipIsOpen","_isOpen"],_enable:["tooltipEnable","_enable"],_appendToBody:["tooltipAppendToBody","_appendToBody"],tooltipAnimation:"tooltipAnimation",_popupClass:["tooltipClass","_popupClass"],_tooltipContext:["tooltipContext","_tooltipContext"],_tooltipPopupDelay:["tooltipPopupDelay","_tooltipPopupDelay"],tooltipFadeDuration:"tooltipFadeDuration",_tooltipTrigger:["tooltipTrigger","_tooltipTrigger"]},outputs:{tooltipChange:"tooltipChange",onShown:"onShown",onHidden:"onHidden",tooltipStateChanged:"tooltipStateChanged"},exportAs:["bs-tooltip"]}),oU([vee(),See("design:type",Object)],n.prototype,"tooltip",void 0),n})(),QOe=(()=>{class n{static forRoot(){return{ngModule:n,providers:[s1,Ab]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();function KOe(n,r){if(1&n){const e=xt();b(0,"button",2),Me("click",function(){const a=Oe(e).$implicit;return Re(w().selectFromRanges(a))}),L(1),y()}if(2&n){const e=r.$implicit,i=w();g("selected",e.value===i.selectedRange),p(1),Be(" ",e.label," ")}}function qOe(n,r){1&n&&be(0,"bs-current-date",4)}function XOe(n,r){1&n&&be(0,"bs-timepicker")}const JOe=[[["bs-datepicker-navigation-view"]],"*"],ZOe=["bs-datepicker-navigation-view","*"],eke=["bsDatepickerDayDecorator",""];function tke(n,r){if(1&n){const e=xt();ti(0),L(1," \u200b "),b(2,"button",2),Me("click",function(){return Oe(e),Re(w().view("month"))}),b(3,"span"),L(4),y()(),ni()}if(2&n){const e=w();p(4),Xe(e.calendar.monthTitle)}}function nke(n,r){1&n&&be(0,"th")}function ike(n,r){if(1&n&&(b(0,"th",5),L(1),y()),2&n){const e=r.index,i=w();p(1),Be("",i.calendar.weekdays[e]," ")}}function rke(n,r){if(1&n){const e=xt();b(0,"span",11),Me("click",function(){Oe(e);const o=w(2).$implicit;return Re(w().selectWeek(o))}),L(1),y()}if(2&n){const e=w(2).index,i=w();p(1),Xe(i.calendar.weekNumbers[e])}}function oke(n,r){if(1&n){const e=xt();b(0,"span",12),Me("click",function(){Oe(e);const o=w(2).$implicit;return Re(w().selectWeek(o))})("mouseenter",function(){Oe(e);const o=w(2).$implicit;return Re(w().weekHoverHandler(o,!0))})("mouseleave",function(){Oe(e);const o=w(2).$implicit;return Re(w().weekHoverHandler(o,!1))}),L(1),y()}if(2&n){const e=w(2).index,i=w();p(1),Xe(i.calendar.weekNumbers[e])}}function ake(n,r){if(1&n&&(b(0,"td",8),O(1,rke,2,1,"span",9),O(2,oke,2,1,"span",10),y()),2&n){const e=w(2);g("active-week",e.isWeekHovered),p(1),m("ngIf",e.isiOS),p(1),m("ngIf",!e.isiOS)}}function ske(n,r){if(1&n){const e=xt();b(0,"span",17),Me("click",function(){Oe(e);const o=w().$implicit;return Re(w(2).selectDay(o))})("mouseenter",function(){Oe(e);const o=w().$implicit;return Re(w(2).hoverDay(o,!0))})("mouseleave",function(){Oe(e);const o=w().$implicit;return Re(w(2).hoverDay(o,!1))}),L(1),y()}if(2&n){const e=w().$implicit;Ti("tooltip",e.tooltipText),m("day",e),p(1),Be("",e.label," 3")}}function lke(n,r){if(1&n){const e=xt();b(0,"span",18),Me("click",function(){Oe(e);const o=w().$implicit;return Re(w(2).selectDay(o))})("mouseenter",function(){Oe(e);const o=w().$implicit;return Re(w(2).hoverDay(o,!0))})("mouseleave",function(){Oe(e);const o=w().$implicit;return Re(w(2).hoverDay(o,!1))}),L(1),y()}if(2&n){const e=w().$implicit;m("day",e),p(1),Be("",e.label," 2")}}function cke(n,r){if(1&n){const e=xt();b(0,"span",19),Me("click",function(){Oe(e);const o=w().$implicit;return Re(w(2).selectDay(o))}),L(1),y()}if(2&n){const e=w().$implicit;m("day",e),p(1),Be("",e.label," 1")}}function dke(n,r){if(1&n&&(b(0,"td",13),O(1,ske,2,3,"span",14),O(2,lke,2,2,"span",15),O(3,cke,2,2,"span",16),y()),2&n){const e=w(2);p(1),m("ngIf",!e.isiOS&&e.isShowTooltip),p(1),m("ngIf",!e.isiOS&&!e.isShowTooltip),p(1),m("ngIf",e.isiOS)}}function uke(n,r){if(1&n&&(b(0,"tr"),O(1,ake,3,4,"td",6),O(2,dke,4,3,"td",7),y()),2&n){const e=r.$implicit,i=w();p(1),m("ngIf",i.options&&i.options.showWeekNumbers),p(1),m("ngForOf",e.days)}}function pke(n,r){if(1&n){const e=xt();b(0,"td",4),Me("click",function(){const a=Oe(e).$implicit;return Re(w(2).viewMonth(a))})("mouseenter",function(){const a=Oe(e).$implicit;return Re(w(2).hoverMonth(a,!0))})("mouseleave",function(){const a=Oe(e).$implicit;return Re(w(2).hoverMonth(a,!1))}),b(1,"span"),L(2),y()()}if(2&n){const e=r.$implicit;g("disabled",e.isDisabled)("is-highlighted",e.isHovered),p(1),g("selected",e.isSelected),p(1),Xe(e.label)}}function hke(n,r){if(1&n&&(b(0,"tr"),O(1,pke,3,7,"td",3),y()),2&n){const e=r.$implicit;p(1),m("ngForOf",e)}}function fke(n,r){if(1&n){const e=xt();b(0,"td",4),Me("click",function(){const a=Oe(e).$implicit;return Re(w(2).viewYear(a))})("mouseenter",function(){const a=Oe(e).$implicit;return Re(w(2).hoverYear(a,!0))})("mouseleave",function(){const a=Oe(e).$implicit;return Re(w(2).hoverYear(a,!1))}),b(1,"span"),L(2),y()()}if(2&n){const e=r.$implicit;g("disabled",e.isDisabled)("is-highlighted",e.isHovered),p(1),g("selected",e.isSelected),p(1),Xe(e.label)}}function mke(n,r){if(1&n&&(b(0,"tr"),O(1,fke,3,7,"td",3),y()),2&n){const e=r.$implicit;p(1),m("ngForOf",e)}}const kne=["startTP"];function gke(n,r){if(1&n){const e=xt();b(0,"bs-days-calendar-view",11),Me("onNavigate",function(o){return Oe(e),Re(w(3).navigateTo(o))})("onViewMode",function(o){return Oe(e),Re(w(3).setViewMode(o))})("onHover",function(o){return Oe(e),Re(w(3).dayHoverHandler(o))})("onHoverWeek",function(o){return Oe(e),Re(w(3).weekHoverHandler(o))})("onSelect",function(o){return Oe(e),Re(w(3).daySelectHandler(o))}),D(1,"async"),y()}if(2&n){const e=r.$implicit,i=w(3);g("bs-datepicker-multiple",i.multipleCalendars),m("calendar",e)("options",B(1,4,i.options$))}}function _ke(n,r){1&n&&be(0,"timepicker",null,15)}function vke(n,r){if(1&n&&(b(0,"div",12),be(1,"timepicker",null,13),O(3,_ke,2,0,"timepicker",14),y()),2&n){const e=w(3);p(3),m("ngIf",e.isRangePicker)}}function bke(n,r){if(1&n&&(ti(0),b(1,"div",8),O(2,gke,2,6,"bs-days-calendar-view",9),D(3,"async"),y(),O(4,vke,4,1,"div",10),ni()),2&n){const e=w(2);p(2),m("ngForOf",B(3,2,e.daysCalendar$)),p(2),m("ngIf",e.withTimepicker)}}function yke(n,r){if(1&n){const e=xt();b(0,"bs-month-calendar-view",17),Me("onNavigate",function(o){return Oe(e),Re(w(3).navigateTo(o))})("onViewMode",function(o){return Oe(e),Re(w(3).setViewMode(o))})("onHover",function(o){return Oe(e),Re(w(3).monthHoverHandler(o))})("onSelect",function(o){return Oe(e),Re(w(3).monthSelectHandler(o))}),y()}if(2&n){const e=r.$implicit;g("bs-datepicker-multiple",w(3).multipleCalendars),m("calendar",e)}}function Cke(n,r){if(1&n&&(b(0,"div",8),O(1,yke,1,3,"bs-month-calendar-view",16),D(2,"async"),y()),2&n){const e=w(2);p(1),m("ngForOf",B(2,1,e.monthsCalendar))}}function Ake(n,r){if(1&n){const e=xt();b(0,"bs-years-calendar-view",17),Me("onNavigate",function(o){return Oe(e),Re(w(3).navigateTo(o))})("onViewMode",function(o){return Oe(e),Re(w(3).setViewMode(o))})("onHover",function(o){return Oe(e),Re(w(3).yearHoverHandler(o))})("onSelect",function(o){return Oe(e),Re(w(3).yearSelectHandler(o))}),y()}if(2&n){const e=r.$implicit;g("bs-datepicker-multiple",w(3).multipleCalendars),m("calendar",e)}}function wke(n,r){if(1&n&&(b(0,"div",8),O(1,Ake,1,3,"bs-years-calendar-view",16),D(2,"async"),y()),2&n){const e=w(2);p(1),m("ngForOf",B(2,1,e.yearsCalendar))}}function xke(n,r){1&n&&(b(0,"div",18)(1,"button",19),L(2,"Apply"),y(),b(3,"button",20),L(4,"Cancel"),y()())}function Mke(n,r){if(1&n){const e=xt();b(0,"div",23)(1,"button",24),Me("click",function(){return Oe(e),Re(w(3).setToday())}),L(2),y()()}if(2&n){const e=w(3);g("today-left","left"===e.todayPos)("today-right","right"===e.todayPos)("today-center","center"===e.todayPos),p(2),Xe(e.todayBtnLbl)}}function Ske(n,r){if(1&n){const e=xt();b(0,"div",25)(1,"button",24),Me("click",function(){return Oe(e),Re(w(3).clearDate())}),L(2),y()()}if(2&n){const e=w(3);g("clear-left","left"===e.clearPos)("clear-right","right"===e.clearPos)("clear-center","center"===e.clearPos),p(2),Xe(e.clearBtnLbl)}}function Tke(n,r){if(1&n&&(b(0,"div",18),O(1,Mke,3,7,"div",21),O(2,Ske,3,7,"div",22),y()),2&n){const e=w(2);p(1),m("ngIf",e.showTodayBtn),p(1),m("ngIf",e.showClearBtn)}}function Dke(n,r){if(1&n){const e=xt();b(0,"div",26)(1,"bs-custom-date-view",27),Me("onSelect",function(o){return Oe(e),Re(w(2).setRangeOnCalendar(o))}),y()()}if(2&n){const e=w(2);p(1),m("selectedRange",e.chosenRange)("ranges",e.customRanges)("customRangeLabel",e.customRangeBtnLbl)}}function Pke(n,r){if(1&n){const e=xt();b(0,"div",1)(1,"div",2),Me("@datepickerAnimation.done",function(){return Oe(e),Re(w().positionServiceEnable())}),b(2,"div",3),D(3,"async"),O(4,bke,5,4,"ng-container",4),O(5,Cke,3,3,"div",5),O(6,wke,3,3,"div",5),y(),O(7,xke,5,0,"div",6),O(8,Tke,3,2,"div",6),y(),O(9,Dke,2,3,"div",7),y()}if(2&n){const e=w();m("ngClass",e.containerClass),p(1),m("@datepickerAnimation",e.animationState),p(1),m("ngSwitch",B(3,9,e.viewMode)),p(2),m("ngSwitchCase","day"),p(1),m("ngSwitchCase","month"),p(1),m("ngSwitchCase","year"),p(1),m("ngIf",!1),p(1),m("ngIf",e.showTodayBtn||e.showClearBtn),p(1),m("ngIf",e.customRanges&&e.customRanges.length>0)}}const jke=["endTP"];function $ke(n,r){if(1&n){const e=xt();b(0,"bs-days-calendar-view",11),Me("onNavigate",function(o){return Oe(e),Re(w(3).navigateTo(o))})("onViewMode",function(o){return Oe(e),Re(w(3).setViewMode(o))})("onHover",function(o){return Oe(e),Re(w(3).dayHoverHandler(o))})("onHoverWeek",function(o){return Oe(e),Re(w(3).weekHoverHandler(o))})("onSelect",function(o){return Oe(e),Re(w(3).daySelectHandler(o))}),D(1,"async"),y()}if(2&n){const e=r.$implicit,i=w(3);g("bs-datepicker-multiple",i.multipleCalendars),m("calendar",e)("options",B(1,4,i.options$))}}function Yke(n,r){1&n&&be(0,"timepicker",null,15)}function Gke(n,r){if(1&n&&(b(0,"div",12),be(1,"timepicker",null,13),O(3,Yke,2,0,"timepicker",14),y()),2&n){const e=w(3);p(3),m("ngIf",e.isRangePicker)}}function Wke(n,r){if(1&n&&(ti(0),b(1,"div",8),O(2,$ke,2,6,"bs-days-calendar-view",9),D(3,"async"),y(),O(4,Gke,4,1,"div",10),ni()),2&n){const e=w(2);p(2),m("ngForOf",B(3,2,e.daysCalendar$)),p(2),m("ngIf",e.withTimepicker)}}function Qke(n,r){if(1&n){const e=xt();b(0,"bs-month-calendar-view",17),Me("onNavigate",function(o){return Oe(e),Re(w(3).navigateTo(o))})("onViewMode",function(o){return Oe(e),Re(w(3).setViewMode(o))})("onHover",function(o){return Oe(e),Re(w(3).monthHoverHandler(o))})("onSelect",function(o){return Oe(e),Re(w(3).monthSelectHandler(o))}),y()}if(2&n){const e=r.$implicit;g("bs-datepicker-multiple",w(3).multipleCalendars),m("calendar",e)}}function Kke(n,r){if(1&n&&(b(0,"div",8),O(1,Qke,1,3,"bs-month-calendar-view",16),D(2,"async"),y()),2&n){const e=w(2);p(1),m("ngForOf",B(2,1,e.monthsCalendar))}}function qke(n,r){if(1&n){const e=xt();b(0,"bs-years-calendar-view",17),Me("onNavigate",function(o){return Oe(e),Re(w(3).navigateTo(o))})("onViewMode",function(o){return Oe(e),Re(w(3).setViewMode(o))})("onHover",function(o){return Oe(e),Re(w(3).yearHoverHandler(o))})("onSelect",function(o){return Oe(e),Re(w(3).yearSelectHandler(o))}),y()}if(2&n){const e=r.$implicit;g("bs-datepicker-multiple",w(3).multipleCalendars),m("calendar",e)}}function Xke(n,r){if(1&n&&(b(0,"div",8),O(1,qke,1,3,"bs-years-calendar-view",16),D(2,"async"),y()),2&n){const e=w(2);p(1),m("ngForOf",B(2,1,e.yearsCalendar))}}function Jke(n,r){1&n&&(b(0,"div",18)(1,"button",19),L(2,"Apply"),y(),b(3,"button",20),L(4,"Cancel"),y()())}function Zke(n,r){if(1&n){const e=xt();b(0,"div",23)(1,"button",24),Me("click",function(){return Oe(e),Re(w(3).setToday())}),L(2),y()()}if(2&n){const e=w(3);g("today-left","left"===e.todayPos)("today-right","right"===e.todayPos)("today-center","center"===e.todayPos),p(2),Xe(e.todayBtnLbl)}}function eEe(n,r){if(1&n){const e=xt();b(0,"div",25)(1,"button",24),Me("click",function(){return Oe(e),Re(w(3).clearDate())}),L(2),y()()}if(2&n){const e=w(3);g("clear-left","left"===e.clearPos)("clear-right","right"===e.clearPos)("clear-center","center"===e.clearPos),p(2),Xe(e.clearBtnLbl)}}function tEe(n,r){if(1&n&&(b(0,"div",18),O(1,Zke,3,7,"div",21),O(2,eEe,3,7,"div",22),y()),2&n){const e=w(2);p(1),m("ngIf",e.showTodayBtn),p(1),m("ngIf",e.showClearBtn)}}function nEe(n,r){if(1&n){const e=xt();b(0,"div",26)(1,"bs-custom-date-view",27),Me("onSelect",function(o){return Oe(e),Re(w(2).setRangeOnCalendar(o))}),y()()}if(2&n){const e=w(2);p(1),m("selectedRange",e.chosenRange)("ranges",e.customRanges)("customRangeLabel",e.customRangeBtnLbl)}}function iEe(n,r){if(1&n){const e=xt();b(0,"div",1)(1,"div",2),Me("@datepickerAnimation.done",function(){return Oe(e),Re(w().positionServiceEnable())}),b(2,"div",3),D(3,"async"),O(4,Wke,5,4,"ng-container",4),O(5,Kke,3,3,"div",5),O(6,Xke,3,3,"div",5),y(),O(7,Jke,5,0,"div",6),O(8,tEe,3,2,"div",6),y(),O(9,nEe,2,3,"div",7),y()}if(2&n){const e=w();m("ngClass",e.containerClass),p(1),m("@datepickerAnimation",e.animationState),p(1),m("ngSwitch",B(3,9,e.viewMode)),p(2),m("ngSwitchCase","day"),p(1),m("ngSwitchCase","month"),p(1),m("ngSwitchCase","year"),p(1),m("ngIf",!1),p(1),m("ngIf",e.showTodayBtn||e.showClearBtn),p(1),m("ngIf",e.customRanges&&e.customRanges.length>0)}}let RA=(()=>{class n{constructor(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range",this.withTimepicker=!1,this.allowedPositions=["top","bottom"]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ene="220ms cubic-bezier(0, 0, 0.2, 1)",Ine=Ku("datepickerAnimation",[Al("animated-down",uo({height:"*",overflow:"hidden"})),Xs("* => animated-down",[uo({height:0,overflow:"hidden"}),qa(Ene)]),Al("animated-up",uo({height:"*",overflow:"hidden"})),Xs("* => animated-up",[uo({height:"*",overflow:"hidden"}),qa(Ene)]),Xs("* => unanimated",qa("0s"))]);class Fne{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new X,this.selectedTimeSub=new X}set minDate(r){var e;null===(e=this._effects)||void 0===e||e.setMinDate(r)}set maxDate(r){var e;null===(e=this._effects)||void 0===e||e.setMaxDate(r)}set daysDisabled(r){var e;null===(e=this._effects)||void 0===e||e.setDaysDisabled(r)}set datesDisabled(r){var e;null===(e=this._effects)||void 0===e||e.setDatesDisabled(r)}set datesEnabled(r){var e;null===(e=this._effects)||void 0===e||e.setDatesEnabled(r)}set isDisabled(r){var e;null===(e=this._effects)||void 0===e||e.setDisabled(r)}set dateCustomClasses(r){var e;null===(e=this._effects)||void 0===e||e.setDateCustomClasses(r)}set dateTooltipTexts(r){var e;null===(e=this._effects)||void 0===e||e.setDateTooltipTexts(r)}set daysCalendar$(r){this._daysCalendar$=r,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(e=>{this.multipleCalendars=!!e&&e.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(r){}navigateTo(r){}dayHoverHandler(r){}weekHoverHandler(r){}monthHoverHandler(r){}yearHoverHandler(r){}timeSelectHandler(r,e){}daySelectHandler(r){}monthSelectHandler(r){}yearSelectHandler(r){}setRangeOnCalendar(r){}setToday(){}clearDate(){}_stopPropagation(r){r.stopPropagation()}}let Ef=(()=>{class n{calculate(){return{type:n.CALCULATE}}format(){return{type:n.FORMAT}}flag(){return{type:n.FLAG}}select(e){return{type:n.SELECT,payload:e}}selectTime(e,i){return{type:n.SELECT_TIME,payload:{date:e,index:i}}}changeViewMode(e){return{type:n.CHANGE_VIEWMODE,payload:e}}navigateTo(e){return{type:n.NAVIGATE_TO,payload:e}}navigateStep(e){return{type:n.NAVIGATE_OFFSET,payload:e}}setOptions(e){return{type:n.SET_OPTIONS,payload:e}}selectRange(e){return{type:n.SELECT_RANGE,payload:e}}hoverDay(e){return{type:n.HOVER,payload:e.isHovered?e.cell.date:null}}minDate(e){return{type:n.SET_MIN_DATE,payload:e}}maxDate(e){return{type:n.SET_MAX_DATE,payload:e}}daysDisabled(e){return{type:n.SET_DAYSDISABLED,payload:e}}datesDisabled(e){return{type:n.SET_DATESDISABLED,payload:e}}datesEnabled(e){return{type:n.SET_DATESENABLED,payload:e}}isDisabled(e){return{type:n.SET_IS_DISABLED,payload:e}}setDateCustomClasses(e){return{type:n.SET_DATE_CUSTOM_CLASSES,payload:e}}setDateTooltipTexts(e){return{type:n.SET_DATE_TOOLTIP_TEXTS,payload:e}}setLocale(e){return{type:n.SET_LOCALE,payload:e}}}return n.CALCULATE="[datepicker] calculate dates matrix",n.FORMAT="[datepicker] format datepicker values",n.FLAG="[datepicker] set flags",n.SELECT="[datepicker] select date",n.NAVIGATE_OFFSET="[datepicker] shift view date",n.NAVIGATE_TO="[datepicker] change view date",n.SET_OPTIONS="[datepicker] update render options",n.HOVER="[datepicker] hover date",n.CHANGE_VIEWMODE="[datepicker] switch view mode",n.SET_MIN_DATE="[datepicker] set min date",n.SET_MAX_DATE="[datepicker] set max date",n.SET_DAYSDISABLED="[datepicker] set days disabled",n.SET_DATESDISABLED="[datepicker] set dates disabled",n.SET_DATESENABLED="[datepicker] set dates enabled",n.SET_IS_DISABLED="[datepicker] set is disabled",n.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes",n.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts",n.SET_LOCALE="[datepicker] set datepicker locale",n.SELECT_TIME="[datepicker] select time",n.SELECT_RANGE="[daterangepicker] select dates range",n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),hL=(()=>{class n{constructor(){this._defaultLocale="en",this._locale=new Yn(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(e){e!==this.currentLocale&&this._locale.next(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),B3=(()=>{class n{constructor(e,i){this._actions=e,this._localeService=i,this._subs=[]}init(e){return this._store=e,this}setValue(e){var i;null===(i=this._store)||void 0===i||i.dispatch(this._actions.select(e))}setRangeValue(e){var i;null===(i=this._store)||void 0===i||i.dispatch(this._actions.selectRange(e))}setMinDate(e){var i;return null===(i=this._store)||void 0===i||i.dispatch(this._actions.minDate(e)),this}setMaxDate(e){var i;return null===(i=this._store)||void 0===i||i.dispatch(this._actions.maxDate(e)),this}setDaysDisabled(e){var i;return null===(i=this._store)||void 0===i||i.dispatch(this._actions.daysDisabled(e)),this}setDatesDisabled(e){var i;return null===(i=this._store)||void 0===i||i.dispatch(this._actions.datesDisabled(e)),this}setDatesEnabled(e){var i;return null===(i=this._store)||void 0===i||i.dispatch(this._actions.datesEnabled(e)),this}setDisabled(e){var i;return null===(i=this._store)||void 0===i||i.dispatch(this._actions.isDisabled(e)),this}setDateCustomClasses(e){var i;return null===(i=this._store)||void 0===i||i.dispatch(this._actions.setDateCustomClasses(e)),this}setDateTooltipTexts(e){var i;return null===(i=this._store)||void 0===i||i.dispatch(this._actions.setDateTooltipTexts(e)),this}setOptions(e){var i;const o=Object.assign({locale:this._localeService.currentLocale},e);return null===(i=this._store)||void 0===i||i.dispatch(this._actions.setOptions(o)),this}setBindings(e){return this._store?(e.selectedTime=this._store.select(i=>i.selectedTime).pipe(Fo(i=>!!i)),e.daysCalendar$=this._store.select(i=>i.flaggedMonths).pipe(Fo(i=>!!i)),e.monthsCalendar=this._store.select(i=>i.flaggedMonthsCalendar).pipe(Fo(i=>!!i)),e.yearsCalendar=this._store.select(i=>i.yearsCalendarFlagged).pipe(Fo(i=>!!i)),e.viewMode=this._store.select(i=>{var o;return null===(o=i.view)||void 0===o?void 0:o.mode}),e.options$=o1([this._store.select(i=>i.showWeekNumbers),this._store.select(i=>i.displayMonths)]).pipe(Ct(i=>({showWeekNumbers:i[0],displayMonths:i[1]}))),this):this}setEventHandlers(e){return e.setViewMode=i=>{var o;null===(o=this._store)||void 0===o||o.dispatch(this._actions.changeViewMode(i))},e.navigateTo=i=>{var o;null===(o=this._store)||void 0===o||o.dispatch(this._actions.navigateStep(i.step))},e.dayHoverHandler=i=>{var o;const a=i.cell;a.isOtherMonth||a.isDisabled||(null===(o=this._store)||void 0===o||o.dispatch(this._actions.hoverDay(i)),a.isHovered=i.isHovered)},e.monthHoverHandler=i=>{i.cell.isHovered=i.isHovered},e.yearHoverHandler=i=>{i.cell.isHovered=i.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(e=>e.view).subscribe(()=>{var e;null===(e=this._store)||void 0===e||e.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(e=>e.monthsModel).pipe(Fo(e=>!!e)).subscribe(()=>{var e;return null===(e=this._store)||void 0===e?void 0:e.dispatch(this._actions.format())})),this._subs.push(this._store.select(e=>e.formattedMonths).pipe(Fo(e=>!!e)).subscribe(()=>{var e;return null===(e=this._store)||void 0===e?void 0:e.dispatch(this._actions.flag())})),this._subs.push(this._store.select(e=>e.selectedDate).pipe(Fo(e=>!!e)).subscribe(()=>{var e;return null===(e=this._store)||void 0===e?void 0:e.dispatch(this._actions.flag())})),this._subs.push(this._store.select(e=>e.selectedRange).pipe(Fo(e=>!!e)).subscribe(()=>{var e;return null===(e=this._store)||void 0===e?void 0:e.dispatch(this._actions.flag())})),this._subs.push(this._store.select(e=>e.monthsCalendar).subscribe(()=>{var e;return null===(e=this._store)||void 0===e?void 0:e.dispatch(this._actions.flag())})),this._subs.push(this._store.select(e=>e.yearsCalendarModel).pipe(Fo(e=>!!e)).subscribe(()=>{var e;return null===(e=this._store)||void 0===e?void 0:e.dispatch(this._actions.flag())})),this._subs.push(this._store.select(e=>e.hoveredDate).pipe(Fo(e=>!!e)).subscribe(()=>{var e;return null===(e=this._store)||void 0===e?void 0:e.dispatch(this._actions.flag())})),this._subs.push(this._store.select(e=>e.dateCustomClasses).pipe(Fo(e=>!!e)).subscribe(()=>{var e;return null===(e=this._store)||void 0===e?void 0:e.dispatch(this._actions.flag())})),this._subs.push(this._store.select(e=>e.dateTooltipTexts).pipe(Fo(e=>!!e)).subscribe(()=>{var e;return null===(e=this._store)||void 0===e?void 0:e.dispatch(this._actions.flag())})),this._subs.push(this._localeService.localeChange.subscribe(e=>{var i;return null===(i=this._store)||void 0===i?void 0:i.dispatch(this._actions.setLocale(e))})),this):this}destroy(){for(const e of this._subs)e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(en(Ef),en(hL))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const bEe={date:new Date,mode:"day"},Rne=Object.assign(new RA,{locale:"en",view:bEe,selectedRange:[],selectedTime:[],monthViewOptions:{width:7,height:6}});function nz(n,r,e){const i=r&&Ky(aL(n,"month"),r,"day"),o=e&&Mb(FA(n,"month"),e,"day");return i||o||!1}function L3(n,r,e){const i=r&&Ky(aL(n,"year"),r,"day"),o=e&&Mb(FA(n,"year"),e,"day");return i||o||!1}function iz(n,r,e){return!!(r&&Yp(r)&&r.length)&&(e&&"year"===e&&!r[0].getDate()?r.some(i=>jP(n,i,"year")):r.some(i=>jP(n,i,"date")))}function rz(n,r,e){return!!(r&&Yp(r)&&r.length)&&!r.some(i=>jP(n,i,e||"date"))}function Bne(n,r=0){const e=n&&n.yearsCalendarModel&&n.yearsCalendarModel[r];return e?.years[0]&&e.years[0][0]&&e.years[0][0].date}function AEe(n,r){return!n||!r||!n.length&&!n[0].value||n.forEach(e=>(!e||!e.value||e.value instanceof Date||!(e.value instanceof Array&&e.value.length)||(e.value=Nne(e.value,r)),n)),n}function Lne(n,r){return!n||!r||n instanceof Array&&!n.length||n instanceof Date?n:Nne(n,r)}function Nne(n,r){return n instanceof Array?n.map(i=>i&&(Mb(i,r,"date")&&(i=r),i)):n}function Hne(n){return n&&Une(n)}function Vne(n){return null!=n&&n.length&&n.map(r=>r&&Une(r)),n}function Une(n){const r=new Date;return n.setMilliseconds(r.getMilliseconds()),n.setSeconds(r.getSeconds()),n.setMinutes(r.getMinutes()),n.setHours(r.getHours()),n}function oz(n,r){let e=n.initialDate;const i=new Array(n.height);for(let o=0;os),month:e}}function xEe(n,r,e){return n.map(i=>i[0]?c1(i[0],r,e):"")}function MEe(n){const r=am(n),e=r.weekdaysShort(),i=r.firstDayOfWeek();return[...e.slice(i),...e.slice(0,i)]}function zne(n,r){return!r||n>=r}const OEe={month:1};function jne(n,r){return{months:oz({width:3,height:4,initialDate:FA(n,"year"),shift:OEe},a=>({date:a,label:c1(a,r.monthLabel,r.locale)})),monthTitle:"",yearTitle:c1(n,r.yearTitle,r.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}const $ne=-1*(Math.floor(8)-1),EEe={year:1};function Yne(n,r,e){const i=function IEe(n,r){return r&&n.getFullYear()>=r.getFullYear()&&n.getFullYear()({date:l,label:c1(l,r.yearLabel,r.locale)})),s=function FEe(n,r){return`${c1(n[0][0].date,r.yearTitle,r.locale)} - ${c1(n[3][3].date,r.yearTitle,r.locale)}`}(a,r);return{years:a,monthTitle:"",yearTitle:s,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function cz(n,r){!n||!isNaN(n.getTime())||(n.setHours(r.getHours()),n.setMinutes(r.getMinutes()),n.setSeconds(r.getSeconds()),n.setMilliseconds(r.getMilliseconds()))}function Gne(n=Rne,r){switch(r.type){case Ef.CALCULATE:return function BEe(n){if(!n.view)return n;let r;r=n.displayOneMonthRange&&Wne(n.view.date,n.minDate,n.maxDate)?1:n.displayMonths||1;let e=n.view.date;if("day"===n.view.mode&&n.monthViewOptions){n.showPreviousMonth&&n.selectedRange&&0===n.selectedRange.length&&(e=Em(e,{month:-1})),n.monthViewOptions.firstDayOfWeek=am(n.locale).firstDayOfWeek();let i=new Array(r);for(let o=0;on.monthViewOptions?az(a.month,n.monthViewOptions):null).filter(a=>null!==a))}return Object.assign({},n,{monthsModel:i})}if("month"===n.view.mode){const i=new Array(r);for(let o=0;ofunction wEe(n,r,e){return{month:n.month,monthTitle:c1(n.month,r.monthTitle,r.locale),yearTitle:c1(n.month,r.yearTitle,r.locale),weekNumbers:xEe(n.daysMatrix,r.weekNumbers,r.locale),weekdays:MEe(r.locale),weeks:n.daysMatrix.map((i,o)=>({days:i.map((a,s)=>({date:a,label:c1(a,r.dayLabel,r.locale),monthIndex:e,weekIndex:o,dayIndex:s}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}(o,N3(n),a));return Object.assign({},n,{formattedMonths:i})}const r=n.displayMonths||1;let e=n.view.date;if("month"===n.view.mode){const i=new Array(r);for(let o=0;ofunction SEe(n,r){return n.weeks.forEach(e=>{e.days.forEach((i,o)=>{const a=!NP(i.date,n.month),s=!a&&Vx(i.date,r.hoveredDate),l=!a&&r.selectedRange&&Vx(i.date,r.selectedRange[0]),d=!a&&r.selectedRange&&Vx(i.date,r.selectedRange[1]),f=!a&&Vx(i.date,r.selectedDate)||l||d,C=!a&&r.selectedRange&&function TEe(n,r,e){return!!(n&&r&&r[0])&&(r[1]?n>r[0]&&n<=r[1]:!!e&&n>r[0]&&n<=e)}(i.date,r.selectedRange,r.hoveredDate),M=r.isDisabled||Ky(i.date,r.minDate,"day")||Mb(i.date,r.maxDate,"day")||function dOe(n,r){return!(typeof r>"u"||!r||!r.length)&&r.some(e=>e===n.getDay())}(i.date,r.daysDisabled)||iz(i.date,r.datesDisabled)||rz(i.date,r.datesEnabled),T=new Date,F=!a&&Vx(i.date,T),pe=r.dateCustomClasses&&r.dateCustomClasses.map(Pe=>Vx(i.date,Pe.date)?Pe.classes:[]).reduce((Pe,Ne)=>Pe.concat(Ne),[]).join(" ")||"",ce=r.dateTooltipTexts&&r.dateTooltipTexts.map(Pe=>Vx(i.date,Pe.date)?Pe.tooltipText:"").reduce((Pe,Ne)=>(Pe.push(Ne),Pe),[]).join(" ")||"",fe=Object.assign({},i,{isOtherMonth:a,isHovered:s,isSelected:f,isSelectionStart:l,isSelectionEnd:d,isInRange:C,isDisabled:M,isToday:F,customClasses:pe,tooltipText:ce});(i.isOtherMonth!==fe.isOtherMonth||i.isHovered!==fe.isHovered||i.isSelected!==fe.isSelected||i.isSelectionStart!==fe.isSelectionStart||i.isSelectionEnd!==fe.isSelectionEnd||i.isDisabled!==fe.isDisabled||i.isInRange!==fe.isInRange||i.customClasses!==fe.customClasses||i.tooltipText!==fe.tooltipText)&&(e.days[o]=fe)})}),n.hideLeftArrow=r.isDisabled||!!r.monthIndex&&r.monthIndex>0&&r.monthIndex!==r.displayMonths,n.hideRightArrow=r.isDisabled||(!!r.monthIndex||0===r.monthIndex)&&!!r.displayMonths&&r.monthIndexfunction kEe(n,r){return n.months.forEach((e,i)=>{e.forEach((o,a)=>{let s;const l=NP(o.date,r.hoveredMonth),d=r.isDisabled||iz(o.date,r.datesDisabled)||rz(o.date,r.datesEnabled,"month")||nz(o.date,r.minDate,r.maxDate);!r.selectedDate&&r.selectedRange?(s=NP(o.date,r.selectedRange[0]),s||(s=NP(o.date,r.selectedRange[1]))):s=NP(o.date,r.selectedDate);const f=Object.assign(o,{isHovered:l,isDisabled:d,isSelected:s});(o.isHovered!==f.isHovered||o.isDisabled!==f.isDisabled||o.isSelected!==f.isSelected)&&(n.months[i][a]=f)})}),n.hideLeftArrow=!!r.monthIndex&&r.monthIndex>0&&r.monthIndex!==r.displayMonths,n.hideRightArrow=(!!r.monthIndex||0===r.monthIndex)&&(!!r.displayMonths||0===r.displayMonths)&&r.monthIndexfunction REe(n,r){n.years.forEach((o,a)=>{o.forEach((s,l)=>{let d;const f=HP(s.date,r.hoveredYear),C=r.isDisabled||iz(s.date,r.datesDisabled,"year")||rz(s.date,r.datesEnabled,"year")||L3(s.date,r.minDate,r.maxDate);!r.selectedDate&&r.selectedRange?(d=HP(s.date,r.selectedRange[0]),d||(d=HP(s.date,r.selectedRange[1]))):d=HP(s.date,r.selectedDate);const M=Object.assign(s,{isHovered:f,isDisabled:C,isSelected:d});(s.isHovered!==M.isHovered||s.isDisabled!==M.isDisabled||s.isSelected!==M.isSelected)&&(n.years[a][l]=M)})}),n.hideLeftArrow=!!r.yearIndex&&r.yearIndex>0&&r.yearIndex!==r.displayMonths,n.hideRightArrow=!!r.yearIndex&&!!r.displayMonths&&r.yearIndexl)),i.value instanceof Date&&(i.selectedDate=i.value,i.selectedTime=[i.value])),Object.assign({},n,i)}case Ef.SELECT_RANGE:{var e;if(!n.view)return n;const i={selectedRange:r.payload,view:n.view};null===(e=i.selectedRange)||void 0===e||e.forEach((l,d)=>{if(Array.isArray(n.selectedTime)){const f=n.selectedTime[d];f&&cz(l,f)}});const o=n.view.mode,s=dz(r.payload&&r.payload[0]||n.view.date,n.minDate,n.maxDate);return i.view={mode:o,date:s},Object.assign({},n,i)}case Ef.SET_MIN_DATE:return Object.assign({},n,{minDate:r.payload});case Ef.SET_MAX_DATE:return Object.assign({},n,{maxDate:r.payload});case Ef.SET_IS_DISABLED:return Object.assign({},n,{isDisabled:r.payload});case Ef.SET_DATE_CUSTOM_CLASSES:return Object.assign({},n,{dateCustomClasses:r.payload});case Ef.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},n,{dateTooltipTexts:r.payload});default:return n}}function N3(n){return{locale:n.locale,monthTitle:n.monthTitle,yearTitle:n.yearTitle,dayLabel:n.dayLabel,monthLabel:n.monthLabel,yearLabel:n.yearLabel,weekNumbers:n.weekNumbers}}function dz(n,r,e){const i=Array.isArray(n)?n[0]:n;return r&&Mb(r,i,"day")?r:e&&Ky(e,i,"day")?e:i}function Wne(n,r,e){return!(!e||!jP(e,n,"day"))||r&&e&&r.getMonth()===e.getMonth()}let H3=(()=>{class n extends GB{constructor(){const e=new Yn({type:"[datepicker] dispatcher init"});super(e,Gne,new dte(Rne,e,Gne))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Qne=(()=>{class n{constructor(){this.onSelect=new Cn}selectFromRanges(e){this.onSelect.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["bs-custom-date-view"]],inputs:{ranges:"ranges",selectedRange:"selectedRange",customRangeLabel:"customRangeLabel"},outputs:{onSelect:"onSelect"},decls:2,vars:1,consts:[[1,"bs-datepicker-predefined-btns"],["type","button","class","btn",3,"selected","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"click"]],template:function(e,i){1&e&&(b(0,"div",0),O(1,KOe,2,3,"button",1),y()),2&e&&(p(1),m("ngForOf",i.ranges))},dependencies:[Oo],encapsulation:2,changeDetection:0}),n})();var $x=(()=>(function(n){n[n.UP=0]="UP",n[n.DOWN=1]="DOWN"}($x||($x={})),$x))();let UEe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"span"),L(2),y()()),2&e&&(p(2),Xe(i.title))},encapsulation:2}),n})(),zEe=(()=>{class n{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-controls"],["type","button",1,"bs-decrease"],["type","text","placeholder","00",3,"value"],["type","button",1,"bs-increase"],["type","button",1,"switch-time-format"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg==","alt",""]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"button",2),L(3,"-"),y(),be(4,"input",3),b(5,"button",4),L(6,"+"),y()(),b(7,"div",1)(8,"button",2),L(9,"-"),y(),be(10,"input",3),b(11,"button",4),L(12,"+"),y()(),b(13,"button",5),L(14),be(15,"img",6),y()()),2&e&&(p(4),m("value",i.hours),p(6),m("value",i.minutes),p(4),Be("",i.ampm," "))},encapsulation:2}),n})(),uz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["bs-calendar-layout"]],ngContentSelectors:ZOe,decls:6,vars:2,consts:[["title","hey there",4,"ngIf"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"],[4,"ngIf"],["title","hey there"]],template:function(e,i){1&e&&(Cs(JOe),O(0,qOe,1,0,"bs-current-date",0),b(1,"div",1),ha(2),y(),b(3,"div",2),ha(4,1),y(),O(5,XOe,1,0,"bs-timepicker",3)),2&e&&(m("ngIf",!1),p(5),m("ngIf",!1))},dependencies:[rr,UEe,zEe],encapsulation:2}),n})(),jEe=(()=>{class n{constructor(e,i,o){this._config=e,this._elRef=i,this._renderer=o,this.day={date:new Date,label:""}}ngOnInit(){var e,i,o;null!==(e=this.day)&&void 0!==e&&e.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),"string"==typeof(null===(i=this.day)||void 0===i?void 0:i.customClasses)&&(null===(o=this.day)||void 0===o||o.customClasses.split(" ").filter(a=>a).forEach(a=>{this._renderer.addClass(this._elRef.nativeElement,a)}))}}return n.\u0275fac=function(e){return new(e||n)(U(RA),U(gr),U(Wl))},n.\u0275cmp=wn({type:n,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(e,i){2&e&&g("disabled",i.day.isDisabled)("is-highlighted",i.day.isHovered)("is-other-month",i.day.isOtherMonth)("is-active-other-month",i.day.isOtherMonthHovered)("in-range",i.day.isInRange)("select-start",i.day.isSelectionStart)("select-end",i.day.isSelectionEnd)("selected",i.day.isSelected)},inputs:{day:"day"},attrs:eke,decls:1,vars:1,template:function(e,i){1&e&&L(0),2&e&&Xe(i.day&&i.day.label||"")},encapsulation:2,changeDetection:0}),n})(),pz=(()=>{class n{constructor(){this.onNavigate=new Cn,this.onViewMode=new Cn}navTo(e){this.onNavigate.emit(e?$x.DOWN:$x.UP)}view(e){this.onViewMode.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["bs-datepicker-navigation-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode"},decls:12,vars:8,consts:[["type","button",1,"previous",3,"disabled","click"],[4,"ngIf"],["type","button",1,"current",3,"click"],["type","button",1,"next",3,"disabled","click"]],template:function(e,i){1&e&&(b(0,"button",0),Me("click",function(){return i.navTo(!0)}),b(1,"span"),L(2,"\u2039"),y()(),O(3,tke,5,1,"ng-container",1),L(4," \u200b "),b(5,"button",2),Me("click",function(){return i.view("year")}),b(6,"span"),L(7),y()(),L(8," \u200b "),b(9,"button",3),Me("click",function(){return i.navTo(!1)}),b(10,"span"),L(11,"\u203a"),y()()),2&e&&(_("visibility",i.calendar.hideLeftArrow?"hidden":"visible"),m("disabled",i.calendar.disableLeftArrow),p(3),m("ngIf",i.calendar&&i.calendar.monthTitle),p(4),Xe(i.calendar.yearTitle),p(2),_("visibility",i.calendar.hideRightArrow?"hidden":"visible"),m("disabled",i.calendar.disableRightArrow))},dependencies:[rr],encapsulation:2,changeDetection:0}),n})(),Kne=(()=>{class n{constructor(e){this._config=e,this.onNavigate=new Cn,this.onViewMode=new Cn,this.onSelect=new Cn,this.onHover=new Cn,this.onHoverWeek=new Cn,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(e){this.onNavigate.emit({step:{month:$x.DOWN===e?-1:1}})}changeViewMode(e){this.onViewMode.emit(e)}selectDay(e){this.onSelect.emit(e)}selectWeek(e){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||0===e.days.length)return;if(this._config.selectWeek&&e.days[0]&&!e.days[0].isDisabled&&this._config.selectFromOtherMonth)return void this.onSelect.emit(e.days[0]);const i=e.days.find(o=>(this._config.selectFromOtherMonth||!o.isOtherMonth)&&!o.isDisabled);if(this.onSelect.emit(i),this._config.selectWeekDateRange){const a=e.days.slice(0).reverse().find(s=>(this._config.selectFromOtherMonth||!s.isOtherMonth)&&!s.isDisabled);this.onSelect.emit(a)}}weekHoverHandler(e,i){(this._config.selectWeek||this._config.selectWeekDateRange)&&e.days.find(a=>(this._config.selectFromOtherMonth||!a.isOtherMonth)&&!a.isDisabled)&&(e.isHovered=i,this.isWeekHovered=i,this.onHoverWeek.emit(e))}hoverDay(e,i){this._config.selectFromOtherMonth&&e.isOtherMonth&&(e.isOtherMonthHovered=i),this._config.dateTooltipTexts&&(e.tooltipText="",this._config.dateTooltipTexts.forEach(o=>{Vx(o.date,e.date)&&(e.tooltipText=o.tooltipText)})),this.onHover.emit({cell:e,isHovered:i})}}return n.\u0275fac=function(e){return new(e||n)(U(RA))},n.\u0275cmp=wn({type:n,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:9,vars:4,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"days","weeks"],[4,"ngIf"],["aria-label","weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["aria-label","weekday"],["class","week",3,"active-week",4,"ngIf"],["role","gridcell",4,"ngFor","ngForOf"],[1,"week"],[3,"click",4,"ngIf"],[3,"click","mouseenter","mouseleave",4,"ngIf"],[3,"click"],[3,"click","mouseenter","mouseleave"],["role","gridcell"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click"]],template:function(e,i){1&e&&(b(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),Me("onNavigate",function(a){return i.navigateTo(a)})("onViewMode",function(a){return i.changeViewMode(a)}),y(),b(2,"table",1)(3,"thead")(4,"tr"),O(5,nke,1,0,"th",2),O(6,ike,2,1,"th",3),y()(),b(7,"tbody"),O(8,uke,3,2,"tr",4),y()()()),2&e&&(p(1),m("calendar",i.calendar),p(4),m("ngIf",i.options&&i.options.showWeekNumbers),p(1),m("ngForOf",i.calendar.weekdays),p(2),m("ngForOf",i.calendar.weeks))},dependencies:[Oo,rr,WOe,uz,jEe,pz],encapsulation:2}),n})(),qne=(()=>{class n{constructor(){this.onNavigate=new Cn,this.onViewMode=new Cn,this.onSelect=new Cn,this.onHover=new Cn}navigateTo(e){this.onNavigate.emit({step:{year:$x.DOWN===e?-1:1}})}viewMonth(e){this.onSelect.emit(e)}hoverMonth(e,i){this.onHover.emit({cell:e,isHovered:i})}changeViewMode(e){this.onViewMode.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"months"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(e,i){1&e&&(b(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),Me("onNavigate",function(a){return i.navigateTo(a)})("onViewMode",function(a){return i.changeViewMode(a)}),y(),b(2,"table",1)(3,"tbody"),O(4,hke,2,1,"tr",2),y()()()),2&e&&(p(1),m("calendar",i.calendar),p(3),m("ngForOf",null==i.calendar?null:i.calendar.months))},dependencies:[Oo,uz,pz],encapsulation:2}),n})(),Xne=(()=>{class n{constructor(){this.onNavigate=new Cn,this.onViewMode=new Cn,this.onSelect=new Cn,this.onHover=new Cn}navigateTo(e){this.onNavigate.emit({step:{year:16*($x.DOWN===e?-1:1)}})}viewYear(e){this.onSelect.emit(e)}hoverYear(e,i){this.onHover.emit({cell:e,isHovered:i})}changeViewMode(e){this.onViewMode.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"years"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(e,i){1&e&&(b(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),Me("onNavigate",function(a){return i.navigateTo(a)})("onViewMode",function(a){return i.changeViewMode(a)}),y(),b(2,"table",1)(3,"tbody"),O(4,mke,2,1,"tr",2),y()()()),2&e&&(p(1),m("calendar",i.calendar),p(3),m("ngForOf",null==i.calendar?null:i.calendar.years))},dependencies:[Oo,uz,pz],encapsulation:2}),n})(),$Ee=(()=>{class n extends Fne{constructor(e,i,o,a,s,l,d){super(),this._config=i,this._store=o,this._element=a,this._actions=s,this._positionService=d,this.valueChange=new Cn,this.animationState="void",this.isRangePicker=!1,this._subs=[],this._effects=l,e.setStyle(a.nativeElement,"display","block"),e.setStyle(a.nativeElement,"position","absolute")}set value(e){var i;null===(i=this._effects)||void 0===i||i.setValue(e)}ngOnInit(){var e,i;let o;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),null===(e=this._positionService.event$)||void 0===e||e.pipe(Oa(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this.withTimepicker=this._config.withTimepicker,null===(i=this._effects)||void 0===i||i.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(a=>a.selectedDate).subscribe(a=>{o=a,this.valueChange.emit(a)})),this._subs.push(this._store.select(a=>a.selectedTime).subscribe(a=>{!a[0]||!(a[0]instanceof Date)||a[0]===o||this.valueChange.emit(a[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){var e,i;this.selectedTimeSub.add(null===(e=this.selectedTime)||void 0===e?void 0:e.subscribe(o=>{var a;Array.isArray(o)&&o.length>=1&&(null===(a=this.startTimepicker)||void 0===a||a.writeValue(o[0]))})),null===(i=this.startTimepicker)||void 0===i||i.registerOnChange(o=>{this.timeSelectHandler(o,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(e,i){this._store.dispatch(this._actions.selectTime(e,i))}daySelectHandler(e){!e||(this.isOtherMonthsActive?e.isDisabled:e.isOtherMonth||e.isDisabled)||this._store.dispatch(this._actions.select(e.date))}monthSelectHandler(e){!e||e.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:id(e.date),year:hh(e.date)},viewMode:"day"}))}yearSelectHandler(e){!e||e.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:hh(e.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){var e;for(const i of this._subs)i.unsubscribe();this.selectedTimeSub.unsubscribe(),null===(e=this._effects)||void 0===e||e.destroy()}}return n.\u0275fac=function(e){return new(e||n)(U(Wl),U(RA),U(H3),U(gr),U(Ef),U(B3),U(Ab))},n.\u0275cmp=wn({type:n,selectors:[["bs-datepicker-container"]],viewQuery:function(e,i){if(1&e&&jr(kne,5),2&e){let o;Ai(o=wi())&&(i.startTimepicker=o.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostBindings:function(e,i){1&e&&Me("click",function(a){return i._stopPropagation(a)})},features:[lo([H3,B3]),Nr],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],["startTP",""],[4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(e,i){1&e&&(O(0,Pke,10,11,"div",0),D(1,"async")),2&e&&m("ngIf",B(1,1,i.viewMode))},dependencies:[ra,Oo,rr,ph,Yh,bU,Qne,Kne,qne,Xne,wo],encapsulation:2,data:{animation:[Ine]}}),n})(),YEe=(()=>{class n{constructor(e,i,o,a,s){this._config=e,this._elementRef=i,this._renderer=o,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Fe,this.isDisabled=!1,this.bsValueChange=new Cn,this._subs=[],this._dateInputFormat$=new Fe,Object.assign(this,this._config),this._datepicker=s.createLoader(i,a,o),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new Yn(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(e){this.isOpen$.next(e)}set bsValue(e){var i;this._bsValue&&e&&this._bsValue.getTime()===e.getTime()||(this._bsValue||!e||this._config.withTimepicker||cz(e,new Date),e&&null!==(i=this.bsConfig)&&void 0!==i&&i.initCurrentTime&&(e=Hne(e)),this._bsValue=e,this.bsValueChange.emit(e))}get dateInputFormat$(){return this._dateInputFormat$}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig()}ngOnChanges(e){var i,o,a,s;(e.bsConfig&&(null!==(i=e.bsConfig.currentValue)&&void 0!==i&&i.initCurrentTime&&(null===(o=e.bsConfig.currentValue)||void 0===o?void 0:o.initCurrentTime)!==(null===(a=e.bsConfig.previousValue)||void 0===a?void 0:a.initCurrentTime)&&this._bsValue&&(this._bsValue=Hne(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),this._datepickerRef&&this._datepickerRef.instance)&&(e.minDate&&(this._datepickerRef.instance.minDate=this.minDate),e.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),e.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),e.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),e.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),e.isDisabled&&(null!==(s=this._elementRef)&&void 0!==s&&s.nativeElement&&this._elementRef.nativeElement.setAttribute("readonly",this.isDisabled),this._datepickerRef.instance.isDisabled=this.isDisabled),e.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),e.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(e=>{this._datepickerRef&&(this._datepickerRef.instance.value=e)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(e=>{this.bsValue=e,this.hide()}))}ngAfterViewInit(){this.isOpen$.pipe(Fo(e=>e!==this.isOpen),ma(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:RA,useValue:this._config}).attach($Ee).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(const e of this._subs)e.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){var e;this._config=Object.assign({},this._config,this.bsConfig,{value:Lne(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode,initCurrentTime:null===(e=this.bsConfig)||void 0===e?void 0:e.initCurrentTime})}unsubscribeSubscriptions(){var e;null!==(e=this._subs)&&void 0!==e&&e.length&&(this._subs.map(i=>i.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}}return n.\u0275fac=function(e){return new(e||n)(U(RA),U(gr),U(Wl),U(ac),U(s1))},n.\u0275dir=Wn({type:n,selectors:[["","bsDatepicker",""]],inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",minMode:"minMode",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled",dateCustomClasses:"dateCustomClasses",dateTooltipTexts:"dateTooltipTexts",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDatepicker"],features:[vo]}),n})(),GEe=(()=>{class n extends Fne{constructor(e,i,o,a,s,l,d){super(),this._config=i,this._store=o,this._element=a,this._actions=s,this._positionService=d,this.valueChange=new Cn,this.animationState="void",this._rangeStack=[],this.chosenRange=[],this._subs=[],this.isRangePicker=!0,this._effects=l,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,e.setStyle(a.nativeElement,"display","block"),e.setStyle(a.nativeElement,"position","absolute")}set value(e){var i;null===(i=this._effects)||void 0===i||i.setRangeValue(e)}ngOnInit(){var e,i;let o;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),null===(e=this._positionService.event$)||void 0===e||e.pipe(Oa(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.withTimepicker=this._config.withTimepicker,null===(i=this._effects)||void 0===i||i.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(a=>a.selectedRange).subscribe(a=>{o=a,this.valueChange.emit(a),this.chosenRange=a||[]})),this._subs.push(this._store.select(a=>a.selectedTime).subscribe(a=>{!a[0]||!a[1]||!(a[0]instanceof Date)||!(a[1]instanceof Date)||o&&a[0]===o[0]&&a[1]===o[1]||(this.valueChange.emit(a),this.chosenRange=a||[])}))}ngAfterViewInit(){var e,i,o;this.selectedTimeSub.add(null===(e=this.selectedTime)||void 0===e?void 0:e.subscribe(a=>{var s,l;Array.isArray(a)&&a.length>=2&&(null===(s=this.startTimepicker)||void 0===s||s.writeValue(a[0]),null===(l=this.endTimepicker)||void 0===l||l.writeValue(a[1]))})),null===(i=this.startTimepicker)||void 0===i||i.registerOnChange(a=>{this.timeSelectHandler(a,0)}),null===(o=this.endTimepicker)||void 0===o||o.registerOnChange(a=>{this.timeSelectHandler(a,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(e,i){this._store.dispatch(this._actions.selectTime(e,i))}daySelectHandler(e){!e||(this.isOtherMonthsActive?e.isDisabled:e.isOtherMonth||e.isDisabled)||this.rangesProcessing(e)}monthSelectHandler(e){if(e&&!e.isDisabled){if(e.isSelected=!0,"month"!==this._config.minMode){if(e.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{month:id(e.date),year:hh(e.date)},viewMode:"day"}))}this.rangesProcessing(e)}}yearSelectHandler(e){if(e&&!e.isDisabled){if(e.isSelected=!0,"year"!==this._config.minMode){if(e.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{year:hh(e.date)},viewMode:"month"}))}this.rangesProcessing(e)}}rangesProcessing(e){1===this._rangeStack.length&&(this._rangeStack=e.date>=this._rangeStack[0]?[this._rangeStack[0],e.date]:[e.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(e.date),0===this._rangeStack.length&&(this._rangeStack=[e.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(e.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[])}ngOnDestroy(){var e;for(const i of this._subs)i.unsubscribe();this.selectedTimeSub.unsubscribe(),null===(e=this._effects)||void 0===e||e.destroy()}setRangeOnCalendar(e){e&&(this._rangeStack=e.value instanceof Date?[e.value]:e.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(e){var i;let o=new Date(e);if(this._config.maxDate){const a=this._config.maxDate.getTime(),s=e.getTime()+864e5*(this._config.maxDateRange||0);o=s>a?new Date(this._config.maxDate):new Date(s)}else o.setDate(e.getDate()+(this._config.maxDateRange||0));null===(i=this._effects)||void 0===i||i.setMaxDate(o)}}return n.\u0275fac=function(e){return new(e||n)(U(Wl),U(RA),U(H3),U(gr),U(Ef),U(B3),U(Ab))},n.\u0275cmp=wn({type:n,selectors:[["bs-daterangepicker-container"]],viewQuery:function(e,i){if(1&e&&(jr(kne,5),jr(jke,5)),2&e){let o;Ai(o=wi())&&(i.startTimepicker=o.first),Ai(o=wi())&&(i.endTimepicker=o.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostBindings:function(e,i){1&e&&Me("click",function(a){return i._stopPropagation(a)})},features:[lo([H3,B3]),Nr],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],["startTP",""],[4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(e,i){1&e&&(O(0,iEe,10,11,"div",0),D(1,"async")),2&e&&m("ngIf",B(1,1,i.viewMode))},dependencies:[ra,Oo,rr,ph,Yh,bU,Qne,Kne,qne,Xne,wo],encapsulation:2,data:{animation:[Ine]}}),n})();const WEe={provide:Rc,useExisting:ue(()=>Jne),multi:!0},QEe={provide:Up,useExisting:ue(()=>Jne),multi:!0};let Jne=(()=>{class n{constructor(e,i,o,a,s){this._picker=e,this._localeService=i,this._renderer=o,this._elRef=a,this.changeDetection=s,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new X}ngOnInit(){const e=i=>{this._setInputValue(i),this._value!==i&&(this._value=i,this._onChange(i),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&e(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(e)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe(_v()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(e){(13===e.keyCode||"Enter"===e.code)&&this.hide()}_setInputValue(e){const i=e?c1(e,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",i)}onChange(e){this.writeValue(e.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(e){const i=e.value;if(null==i||""===i)return null;if(qB(i)){if(!Hx(i))return{bsDate:{invalid:i}};if(this._picker&&this._picker.minDate&&Ky(i,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&Mb(i,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(e){this._validatorChange=e}writeValue(e){if(e){const i=this._localeService.currentLocale;if(!am(i))throw new Error(`Locale "${i}" is not defined, please add it with "defineLocale(...)"`);this._value=I3(e,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc&&(this._value=sne(this._value))}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(e){this._picker.isDisabled=e,e?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}}return n.\u0275fac=function(e){return new(e||n)(U(YEe,1),U(hL),U(Wl),U(gr),U(Go))},n.\u0275dir=Wn({type:n,selectors:[["input","bsDatepicker",""]],hostBindings:function(e,i){1&e&&Me("change",function(a){return i.onChange(a)})("keyup.esc",function(){return i.hide()})("keydown",function(a){return i.onKeydownEvent(a)})("blur",function(){return i.onBlur()})},features:[lo([WEe,QEe])]}),n})(),KEe=(()=>{class n extends RA{constructor(){super(...arguments),this.displayMonths=2}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qEe=(()=>{class n{constructor(e,i,o,a,s){this._config=e,this._elementRef=i,this._renderer=o,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Fe,this.isDisabled=!1,this.bsValueChange=new Cn,this._subs=[],this._rangeInputFormat$=new Fe,this._datepicker=s.createLoader(i,a,o),Object.assign(this,e),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new Yn(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(e){this.isOpen$.next(e)}set bsValue(e){var i;this._bsValue!==e&&(e&&null!==(i=this.bsConfig)&&void 0!==i&&i.initCurrentTime&&(e=Vne(e)),this._bsValue=e,this.bsValueChange.emit(e))}get rangeInputFormat$(){return this._rangeInputFormat$}ngOnInit(){this.isDestroy$=new Fe,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig()}ngOnChanges(e){var i,o,a,s;(e.bsConfig&&(null!==(i=e.bsConfig.currentValue)&&void 0!==i&&i.initCurrentTime&&(null===(o=e.bsConfig.currentValue)||void 0===o?void 0:o.initCurrentTime)!==(null===(a=e.bsConfig.previousValue)||void 0===a?void 0:a.initCurrentTime)&&this._bsValue&&(this._bsValue=Vne(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(e.bsConfig.currentValue&&e.bsConfig.currentValue.rangeInputFormat)),this._datepickerRef&&this._datepickerRef.instance)&&(e.minDate&&(this._datepickerRef.instance.minDate=this.minDate),e.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),e.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),e.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),e.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),e.isDisabled&&(null!==(s=this._elementRef)&&void 0!==s&&s.nativeElement&&this._elementRef.nativeElement.setAttribute("readonly",this.isDisabled),this._datepickerRef.instance.isDisabled=this.isDisabled),e.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe(Fo(e=>e!==this.isOpen),ma(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:RA,useValue:this._config}).attach(GEe).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(e=>{this._datepickerRef&&(this._datepickerRef.instance.value=e)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe(Fo(e=>e&&e[0]&&!!e[1])).subscribe(e=>{this.bsValue=e,this.hide()}))}setConfig(){var e;this._config=Object.assign({},this._config,this.bsConfig,{value:Lne(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:AEe(this.bsConfig&&this.bsConfig.ranges,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange,initCurrentTime:null===(e=this.bsConfig)||void 0===e?void 0:e.initCurrentTime})}hide(){this.isOpen&&this._datepicker.hide();for(const e of this._subs)e.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}unsubscribeSubscriptions(){var e;null!==(e=this._subs)&&void 0!==e&&e.length&&(this._subs.map(i=>i.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}}return n.\u0275fac=function(e){return new(e||n)(U(KEe),U(gr),U(Wl),U(ac),U(s1))},n.\u0275dir=Wn({type:n,selectors:[["","bsDaterangepicker",""]],inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",dateCustomClasses:"dateCustomClasses",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDaterangepicker"],features:[vo]}),n})();const XEe={provide:Rc,useExisting:ue(()=>Zne),multi:!0},JEe={provide:Up,useExisting:ue(()=>Zne),multi:!0};let Zne=(()=>{class n{constructor(e,i,o,a,s){this._picker=e,this._localeService=i,this._renderer=o,this._elRef=a,this.changeDetection=s,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new X}ngOnInit(){this._picker._bsValue&&(i=>{this._setInputValue(i),this._value!==i&&(this._value=i,this._onChange(i),this._onTouched()),this.changeDetection.markForCheck()})(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(i=>{this._setInputValue(i),this._value!==i&&(this._value=i,this._onChange(i),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe(_v()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(e){(13===e.keyCode||"Enter"===e.code)&&this.hide()}_setInputValue(e){let i="";if(e){const o=e[0]?c1(e[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",a=e[1]?c1(e[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";i=o&&a?o+this._picker._config.rangeSeparator+a:""}this._renderer.setProperty(this._elRef.nativeElement,"value",i)}onChange(e){this.writeValue(e.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(e){let i=e.value;const o=[];if(null==i||!Yp(i))return null;i=i.slice().sort((l,d)=>l.getTime()-d.getTime());const a=Hx(i[0]),s=Hx(i[1]);return a?s?(this._picker&&this._picker.minDate&&Ky(i[0],this._picker.minDate,"date")&&(i[0]=this._picker.minDate,o.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&Mb(i[1],this._picker.maxDate,"date")&&(i[1]=this._picker.maxDate,o.push({bsDate:{maxDate:this._picker.maxDate}})),o.length>0?(this.writeValue(i),o):null):{bsDate:{invalid:i[1]}}:{bsDate:{invalid:i[0]}}}registerOnValidatorChange(e){this._validatorChange=e}writeValue(e){if(e){const i=this._localeService.currentLocale;if(!am(i))throw new Error(`Locale "${i}" is not defined, please add it with "defineLocale(...)"`);let a=[];if("string"==typeof e){const s=this._picker._config.rangeSeparator.trim();a=e.replace(/[^-]/g,"").length>1?e.split(this._picker._config.rangeSeparator):e.split(s.length>0?s:this._picker._config.rangeSeparator).map(l=>l.trim())}Array.isArray(e)&&(a=e),this._value=a.map(s=>this._picker._config.useUtc?sne(I3(s,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):I3(s,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(s=>isNaN(s.valueOf())?void 0:s)}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(e){this._picker.isDisabled=e,e?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}}return n.\u0275fac=function(e){return new(e||n)(U(qEe,1),U(hL),U(Wl),U(gr),U(Go))},n.\u0275dir=Wn({type:n,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(e,i){1&e&&Me("change",function(a){return i.onChange(a)})("keyup.esc",function(){return i.hide()})("keydown",function(a){return i.onKeydownEvent(a)})("blur",function(){return i.onBlur()})},features:[lo([XEe,JEe])]}),n})(),eie=(()=>{class n{static forRoot(){return{ngModule:n,providers:[s1,Ab,H3,Ef,B3,hL,DA]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs,QOe,yU]}),n})();const ZEe=function(n,r){return[n,r]};function eIe(n,r){if(1&n){const e=xt();b(0,"div",2),Me("click",function(){const a=Oe(e).$implicit;return Re(w().click(a))})("clickEvent",function(o){return Oe(e),Re(w().childClick(o))})("removeToastEvent",function(o){return Oe(e),Re(w().removeToast(o))}),y()}if(2&n){const e=r.$implicit,i=w();m("toast",e)("toasterconfig",i.toasterconfig)("@toastState",i.toasterconfig.animation)("titleClass",i.toasterconfig.titleClass)("messageClass",i.toasterconfig.messageClass)("ngClass",eo(6,ZEe,i.toasterconfig.iconClasses[e.type],i.toasterconfig.typeClasses[e.type]))}}const tIe=function(n){return[n]},nIe=["componentBody"],iIe=["toastComp",""];function rIe(n,r){1&n&&be(0,"div",null,7)}function oIe(n,r){1&n&&(be(0,"div",8),D(1,"trustHtml")),2&n&&m("innerHTML",B(1,1,w().toast.body),st)}function aIe(n,r){if(1&n&&(b(0,"div"),L(1),y()),2&n){const e=w();p(1),Xe(e.toast.body)}}function sIe(n,r){if(1&n){const e=xt();b(0,"button",9),Me("click",function(o){Oe(e);const a=w();return Re(a.click(o,a.toast))}),D(1,"trustHtml"),y()}2&n&&m("innerHTML",B(1,1,w().toast.closeHtml),st)}function lIe(n,r){if(1&n&&(b(0,"div"),be(1,"div",10),y()),2&n){const e=w();p(1),_("width",e.progressBarWidth+"%")}}const cIe=[Ku("toastState",[Al("flyRight, flyLeft, slideDown, slideDown, slideUp, slideUp, fade",uo({opacity:1,transform:"translate(0,0)"})),Xs("void => flyRight",[uo({opacity:0,transform:"translateX(100%)",height:0}),qa("0.15s ease-in",uo({opacity:1,height:"*"})),qa("0.25s 15ms ease-in")]),Xs("flyRight => void",[qa("0.25s ease-out",uo({opacity:0,transform:"translateX(100%)"})),qa("0.15s ease-out",uo({height:0}))]),Xs("void => flyLeft",[uo({opacity:0,transform:"translateX(-100%)",height:0}),qa("0.15s ease-in",uo({opacity:1,height:"*"})),qa("0.25s 15ms ease-in")]),Xs("flyLeft => void",[qa("0.25s 10ms ease-out",uo({opacity:0,transform:"translateX(-100%)"})),qa("0.15s ease-out",uo({height:0}))]),Xs("void => slideDown",[uo({opacity:0,transform:"translateY(-500%)",height:0}),TA([qa("0.2s ease-in",uo({height:"*"})),qa("0.4s ease-in",uo({transform:"translate(0,0)"})),qa("0.3s 0.1s ease-in",uo({opacity:1}))])]),Xs("slideDown => void",TA([qa("0.3s ease-out",uo({opacity:0})),qa("0.4s ease-out",uo({transform:"translateY(-500%)"})),qa("0.2s 0.2s ease-out",uo({height:0}))])),Xs("void => slideUp",[uo({opacity:0,transform:"translateY(1000%)",height:0}),TA([qa("0.2s ease-in",uo({height:"*"})),qa("0.5s ease-in",uo({transform:"translate(0,0)"})),qa("0.3s 0.1s ease-in",uo({opacity:1}))])]),Xs("slideUp => void",TA([qa("0.3s ease-out",uo({opacity:0})),qa("0.5s ease-out",uo({transform:"translateY(1000%)"})),qa("0.3s 0.15s ease-out",uo({height:0}))])),Xs("void => fade",[uo({opacity:0,height:0}),qa("0.20s ease-in",uo({height:"*"})),qa("0.15s ease-in",uo({opacity:1}))]),Xs("fade => void",[TA([qa("0.0s ease-out",uo({"background-position":"-99999px"})),qa("0.15s ease-out",uo({opacity:0,"background-image":""})),qa("0.3s 20ms ease-out",uo({height:0}))])])])];var V3=(()=>(function(n){n[n.Default=0]="Default",n[n.TrustedHtml=1]="TrustedHtml",n[n.Component=2]="Component"}(V3||(V3={})),V3))();const dIe={error:"toast-error",info:"toast-info",wait:"toast-wait",success:"toast-success",warning:"toast-warning"},uIe={error:"icon-error",info:"icon-info",wait:"icon-wait",success:"icon-success",warning:"icon-warning"};let tie=(()=>{class n{constructor(e){this.limit=(e=e||{}).limit||null,this.tapToDismiss=null==e.tapToDismiss||e.tapToDismiss,this.showCloseButton=null!=e.showCloseButton&&e.showCloseButton,this.closeHtml=e.closeHtml||"×",this.newestOnTop=null==e.newestOnTop||e.newestOnTop,this.timeout=null!=e.timeout?e.timeout:5e3,this.typeClasses=e.typeClasses||dIe,this.iconClasses=e.iconClasses||uIe,this.bodyOutputType=e.bodyOutputType||V3.Default,this.bodyTemplate=e.bodyTemplate||"toasterBodyTmpl.html",this.defaultToastType=e.defaultToastType||"info",this.positionClass=e.positionClass||"toast-top-right",this.titleClass=e.titleClass||"toast-title",this.messageClass=e.messageClass||"toast-message",this.animation=e.animation||"",this.preventDuplicates=null!=e.preventDuplicates&&e.preventDuplicates,this.mouseoverTimerStop=null!=e.mouseoverTimerStop&&e.mouseoverTimerStop,this.toastContainerId=null!=e.toastContainerId?e.toastContainerId:null}}return n.\u0275fac=function(e){return new(e||n)(en(void 0))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),Fm=(()=>{class n{constructor(){this.addToast=new ze(e=>this._addToast=e).pipe(Xn()),this.clearToasts=new ze(e=>this._clearToasts=e).pipe(Xn()),this._removeToastSubject=new Fe,this.removeToast=this._removeToastSubject.pipe(Xn())}pop(e,i,o){const a="string"==typeof e?{type:e,title:i,body:o}:e;if(a.toastId||(a.toastId=class pIe{static newGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const e=16*Math.random()|0;return("x"===r?e:3&e|8).toString(16)})}}.newGuid()),!this._addToast)throw new Error("No Toaster Containers have been initialized to receive toasts.");return this._addToast.next(a),a}popAsync(e,i,o){return setTimeout(()=>{this.pop(e,i,o)},0),this.addToast}clear(e,i){this._clearToasts.next({toastId:e,toastContainerId:i})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({factory:function(){return new n},token:n,providedIn:"root"}),n})(),hz=(()=>{class n{constructor(e){this.toasts=[],this.toasterService=e}ngOnInit(){this.registerSubscribers(),this.isNullOrUndefined(this.toasterconfig)&&(this.toasterconfig=new tie)}click(e,i){e.onClickCallback&&e.onClickCallback(e),((this.isNullOrUndefined(e.tapToDismiss)?this.toasterconfig.tapToDismiss:e.tapToDismiss)||e.showCloseButton&&i)&&this.removeToast(e)}childClick(e){this.click(e.value.toast,e.value.isCloseButton)}removeToast(e){const i=this.toasts.indexOf(e);if(i<0)return;const o=this.toastIdOrDefault(e);this.toasts.splice(i,1),e.onHideCallback&&e.onHideCallback(e),this.toasterService._removeToastSubject.next({toastId:o,toastContainerId:e.toastContainerId})}registerSubscribers(){this.addToastSubscriber=this.toasterService.addToast.subscribe(e=>{this.addToast(e)}),this.clearToastsSubscriber=this.toasterService.clearToasts.subscribe(e=>{this.clearToasts(e)})}addToast(e){if(!e.toastContainerId||!this.toasterconfig.toastContainerId||e.toastContainerId===this.toasterconfig.toastContainerId){if((!e.type||!this.toasterconfig.typeClasses[e.type]||!this.toasterconfig.iconClasses[e.type])&&(e.type=this.toasterconfig.defaultToastType),this.toasterconfig.preventDuplicates&&this.toasts.length>0){if(e.toastId&&this.toasts.some(i=>i.toastId===e.toastId))return;if(this.toasts.some(i=>i.body===e.body))return}this.isNullOrUndefined(e.showCloseButton)&&("object"==typeof this.toasterconfig.showCloseButton?e.showCloseButton=this.toasterconfig.showCloseButton[e.type]:"boolean"==typeof this.toasterconfig.showCloseButton&&(e.showCloseButton=this.toasterconfig.showCloseButton)),e.showCloseButton&&(e.closeHtml=e.closeHtml||this.toasterconfig.closeHtml),e.bodyOutputType=e.bodyOutputType||this.toasterconfig.bodyOutputType,this.toasterconfig.newestOnTop?(this.toasts.unshift(e),this.isLimitExceeded()&&this.toasts.pop()):(this.toasts.push(e),this.isLimitExceeded()&&this.toasts.shift()),e.onShowCallback&&e.onShowCallback(e)}}isLimitExceeded(){return this.toasterconfig.limit&&this.toasts.length>this.toasterconfig.limit}removeAllToasts(){for(let e=this.toasts.length-1;e>=0;e--)this.removeToast(this.toasts[e])}clearToasts(e){const i=e.toastId,o=e.toastContainerId;(this.isNullOrUndefined(o)||o===this.toasterconfig.toastContainerId)&&this.clearToastsAction(i)}clearToastsAction(e){e?this.removeToast(this.toasts.filter(i=>i.toastId===e)[0]):this.removeAllToasts()}toastIdOrDefault(e){return e.toastId||""}isNullOrUndefined(e){return null===e||typeof e>"u"}ngOnDestroy(){this.addToastSubscriber&&this.addToastSubscriber.unsubscribe(),this.clearToastsSubscriber&&this.clearToastsSubscriber.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(U(Fm))},n.\u0275cmp=wn({type:n,selectors:[["toaster-container"]],inputs:{toasterconfig:"toasterconfig"},decls:2,vars:4,consts:[[1,"toast-container",3,"ngClass"],["toastComp","","class","toast",3,"toast","toasterconfig","titleClass","messageClass","ngClass","click","clickEvent","removeToastEvent",4,"ngFor","ngForOf"],["toastComp","",1,"toast",3,"toast","toasterconfig","titleClass","messageClass","ngClass","click","clickEvent","removeToastEvent"]],template:function(e,i){1&e&&(b(0,"div",0),O(1,eIe,1,9,"div",1),y()),2&e&&(m("ngClass",ri(2,tIe,i.toasterconfig.positionClass)),p(1),m("ngForOf",i.toasts))},dependencies:function(){return[ra,Oo,hIe]},encapsulation:2,data:{animation:cIe}}),n})(),hIe=(()=>{class n{constructor(e,i,o,a,s){this.componentFactoryResolver=e,this.changeDetectorRef=i,this.ngZone=o,this.element=a,this.renderer2=s,this.progressBarWidth=-1,this.bodyOutputType=V3,this.clickEvent=new Cn,this.removeToastEvent=new Cn,this.timeoutId=null,this.timeout=0,this.progressBarIntervalId=null}ngOnInit(){this.toast.progressBar&&(this.toast.progressBarDirection=this.toast.progressBarDirection||"decreasing");let e="number"==typeof this.toast.timeout?this.toast.timeout:this.toasterconfig.timeout;"object"==typeof e&&(e=e[this.toast.type]),this.timeout=e}ngAfterViewInit(){if(this.toast.bodyOutputType===this.bodyOutputType.Component){const e=this.componentFactoryResolver.resolveComponentFactory(this.toast.body);this.componentBody.createComponent(e,void 0,this.componentBody.injector).instance.toast=this.toast,this.changeDetectorRef.detectChanges()}this.toasterconfig.mouseoverTimerStop&&(this.removeMouseOverListener=this.renderer2.listen(this.element.nativeElement,"mouseenter",()=>this.stopTimer())),this.configureTimer()}click(e,i){e.stopPropagation(),this.clickEvent.emit({value:{toast:i,isCloseButton:!0}})}stopTimer(){this.progressBarWidth=0,this.clearTimers()}restartTimer(){this.toasterconfig.mouseoverTimerStop?this.timeoutId||this.configureTimer():this.timeout&&!this.timeoutId&&this.removeToast()}ngOnDestroy(){this.removeMouseOverListener&&this.removeMouseOverListener(),this.clearTimers()}configureTimer(){!this.timeout||this.timeout<1||(this.toast.progressBar&&(this.removeToastTick=(new Date).getTime()+this.timeout,this.progressBarWidth=-1),this.ngZone.runOutsideAngular(()=>{this.timeoutId=window.setTimeout(()=>{this.ngZone.run(()=>{this.changeDetectorRef.markForCheck(),this.removeToast()})},this.timeout),this.toast.progressBar&&(this.progressBarIntervalId=window.setInterval(()=>{this.ngZone.run(()=>{this.updateProgressBar()})},10))}))}updateProgressBar(){0===this.progressBarWidth||100===this.progressBarWidth||(this.progressBarWidth=(this.removeToastTick-(new Date).getTime())/this.timeout*100,"increasing"===this.toast.progressBarDirection&&(this.progressBarWidth=100-this.progressBarWidth),this.progressBarWidth<0&&(this.progressBarWidth=0),this.progressBarWidth>100&&(this.progressBarWidth=100))}clearTimers(){this.timeoutId&&window.clearTimeout(this.timeoutId),this.progressBarIntervalId&&window.clearInterval(this.progressBarIntervalId),this.timeoutId=null,this.progressBarIntervalId=null}removeToast(){this.removeToastEvent.emit(this.toast)}}return n.\u0275fac=function(e){return new(e||n)(U($h),U(Go),U(Zo),U(gr),U(Wl))},n.\u0275cmp=wn({type:n,selectors:[["","toastComp",""]],viewQuery:function(e,i){if(1&e&&jr(nIe,5,ac),2&e){let o;Ai(o=wi())&&(i.componentBody=o.first)}},hostBindings:function(e,i){1&e&&Me("mouseleave",function(){return i.restartTimer()})},inputs:{toasterconfig:"toasterconfig",toast:"toast",titleClass:"titleClass",messageClass:"messageClass"},outputs:{clickEvent:"clickEvent",removeToastEvent:"removeToastEvent"},attrs:iIe,decls:9,vars:9,consts:[[1,"toast-content"],[3,"ngClass"],[3,"ngClass","ngSwitch"],[4,"ngSwitchCase"],[3,"innerHTML",4,"ngSwitchCase"],["class","toast-close-button",3,"innerHTML","click",4,"ngIf"],[4,"ngIf"],["componentBody",""],[3,"innerHTML"],[1,"toast-close-button",3,"innerHTML","click"],[1,"toast-progress-bar"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1),L(2),y(),b(3,"div",2),O(4,rIe,2,0,"div",3),O(5,oIe,2,3,"div",4),O(6,aIe,2,1,"div",3),y()(),O(7,sIe,2,3,"button",5),O(8,lIe,2,2,"div",6)),2&e&&(p(1),m("ngClass",i.titleClass),p(1),Xe(i.toast.title),p(1),m("ngClass",i.messageClass)("ngSwitch",i.toast.bodyOutputType),p(1),m("ngSwitchCase",i.bodyOutputType.Component),p(1),m("ngSwitchCase",i.bodyOutputType.TrustedHtml),p(1),m("ngSwitchCase",i.bodyOutputType.Default),p(1),m("ngIf",i.toast.showCloseButton),p(1),m("ngIf",i.toast.progressBar))},dependencies:function(){return[ra,rr,ph,Yh,fIe]},encapsulation:2}),n})(),fIe=(()=>{class n{constructor(e){this.sanitizer=e}transform(e){return this.sanitizer.bypassSecurityTrustHtml(e)}}return n.\u0275fac=function(e){return new(e||n)(U(mA,16))},n.\u0275pipe=Js({name:"trustHtml",type:n,pure:!0}),n})(),nie=(()=>{class n{static forRoot(){return{ngModule:n,providers:[Fm,hz]}}static forChild(){return{ngModule:n,providers:[hz]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})(),fz=(()=>{class n{static forRoot(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs,Vy,rS,t1,iU.forRoot(),Oee.forRoot(),Iee.forRoot(),IB.forRoot(),eie.forRoot(),Kee.forRoot(),ote.forRoot(),ste.forRoot(),mU.forRoot(),lte.forRoot(),cte.forRoot(),yU.forRoot(),Dte.forRoot(),nie.forRoot(),xs,Vy,rS,t1,DB,iU,Oee,Iee,IB,eie,Kee,ote,ste,mU,lte,cte,yU,Dte,nie]}),n})();function iie(n){return new ht(3e3,!1)}function KIe(){return typeof window<"u"&&typeof window.document<"u"}function mz(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Yx(n){switch(n.length){case 0:return new w3;case 1:return n[0];default:return new Aee(n)}}function rie(n,r,e,i,o=new Map,a=new Map){const s=[],l=[];let d=-1,f=null;if(i.forEach(C=>{const M=C.get("offset"),T=M==d,F=T&&f||new Map;C.forEach((pe,ce)=>{let fe=ce,Pe=pe;if("offset"!==ce)switch(fe=r.normalizePropertyName(fe,s),Pe){case"!":Pe=o.get(ce);break;case SA:Pe=a.get(ce);break;default:Pe=r.normalizeStyleValue(ce,fe,Pe,s)}F.set(fe,Pe)}),T||l.push(F),f=F,d=M}),s.length)throw function LIe(n){return new ht(3502,!1)}();return l}function gz(n,r,e,i){switch(r){case"start":n.onStart(()=>i(e&&_z(e,"start",n)));break;case"done":n.onDone(()=>i(e&&_z(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&_z(e,"destroy",n)))}}function _z(n,r,e){const a=vz(n.element,n.triggerName,n.fromState,n.toState,r||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(a._data=s),a}function vz(n,r,e,i,o="",a=0,s){return{element:n,triggerName:r,fromState:e,toState:i,phaseName:o,totalTime:a,disabled:!!s}}function bv(n,r,e){let i=n.get(r);return i||n.set(r,i=e),i}function oie(n){const r=n.indexOf(":");return[n.substring(1,r),n.slice(r+1)]}let bz=(n,r)=>!1,aie=(n,r,e)=>[],sie=null;function yz(n){const r=n.parentNode||n.host;return r===sie?null:r}(mz()||typeof Element<"u")&&(KIe()?(sie=(()=>document.documentElement)(),bz=(n,r)=>{for(;r;){if(r===n)return!0;r=yz(r)}return!1}):bz=(n,r)=>n.contains(r),aie=(n,r,e)=>{if(e)return Array.from(n.querySelectorAll(r));const i=n.querySelector(r);return i?[i]:[]});let FS=null,lie=!1;const cie=bz,die=aie;let uie=(()=>{class n{validateStyleProperty(e){return function XIe(n){FS||(FS=function JIe(){return typeof document<"u"?document.body:null}()||{},lie=!!FS.style&&"WebkitAppearance"in FS.style);let r=!0;return FS.style&&!function qIe(n){return"ebkit"==n.substring(1,6)}(n)&&(r=n in FS.style,!r&&lie&&(r="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in FS.style)),r}(e)}matchesElement(e,i){return!1}containsElement(e,i){return cie(e,i)}getParentElement(e){return yz(e)}query(e,i,o){return die(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,a,s,l=[],d){return new w3(o,a)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),Cz=(()=>{class n{}return n.NOOP=new uie,n})();const Az="ng-enter",mL="ng-leave",gL="ng-trigger",_L=".ng-trigger",hie="ng-animating",wz=".ng-animating";function BA(n){if("number"==typeof n)return n;const r=n.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:xz(parseFloat(r[1]),r[2])}function xz(n,r){return"s"===r?1e3*n:n}function vL(n,r,e){return n.hasOwnProperty("duration")?n:function t3e(n,r,e){let o,a=0,s="";if("string"==typeof n){const l=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return r.push(iie()),{duration:0,delay:0,easing:""};o=xz(parseFloat(l[1]),l[2]);const d=l[3];null!=d&&(a=xz(parseFloat(d),l[4]));const f=l[5];f&&(s=f)}else o=n;if(!e){let l=!1,d=r.length;o<0&&(r.push(function mIe(){return new ht(3100,!1)}()),l=!0),a<0&&(r.push(function gIe(){return new ht(3101,!1)}()),l=!0),l&&r.splice(d,0,iie())}return{duration:o,delay:a,easing:s}}(n,r,e)}function U3(n,r={}){return Object.keys(n).forEach(e=>{r[e]=n[e]}),r}function fie(n){const r=new Map;return Object.keys(n).forEach(e=>{r.set(e,n[e])}),r}function Gx(n,r=new Map,e){if(e)for(let[i,o]of e)r.set(i,o);for(let[i,o]of n)r.set(i,o);return r}function gie(n,r,e){return e?r+":"+e+";":""}function _ie(n){let r="";for(let e=0;e{const a=Sz(o);e&&!e.has(o)&&e.set(o,n.style[a]),n.style[a]=i}),mz()&&_ie(n))}function RS(n,r){n.style&&(r.forEach((e,i)=>{const o=Sz(i);n.style[o]=""}),mz()&&_ie(n))}function z3(n){return Array.isArray(n)?1==n.length?n[0]:yee(n):n}const Mz=new RegExp("{{\\s*(.+?)\\s*}}","g");function vie(n){let r=[];if("string"==typeof n){let e;for(;e=Mz.exec(n);)r.push(e[1]);Mz.lastIndex=0}return r}function j3(n,r,e){const i=n.toString(),o=i.replace(Mz,(a,s)=>{let l=r[s];return null==l&&(e.push(function vIe(n){return new ht(3003,!1)}()),l=""),l.toString()});return o==i?n:o}function bL(n){const r=[];let e=n.next();for(;!e.done;)r.push(e.value),e=n.next();return r}const r3e=/-+([a-z0-9])/g;function Sz(n){return n.replace(r3e,(...r)=>r[1].toUpperCase())}function o3e(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function yv(n,r,e){switch(r.type){case 7:return n.visitTrigger(r,e);case 0:return n.visitState(r,e);case 1:return n.visitTransition(r,e);case 2:return n.visitSequence(r,e);case 3:return n.visitGroup(r,e);case 4:return n.visitAnimate(r,e);case 5:return n.visitKeyframes(r,e);case 6:return n.visitStyle(r,e);case 8:return n.visitReference(r,e);case 9:return n.visitAnimateChild(r,e);case 10:return n.visitAnimateRef(r,e);case 11:return n.visitQuery(r,e);case 12:return n.visitStagger(r,e);default:throw function bIe(n){return new ht(3004,!1)}()}}function bie(n,r){return window.getComputedStyle(n)[r]}function u3e(n,r){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function p3e(n,r,e){if(":"==n[0]){const d=function h3e(n,r){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 d)return void r.push(d);n=d}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function EIe(n){return new ht(3015,!1)}()),r;const o=i[1],a=i[2],s=i[3];r.push(yie(o,s));"<"==a[0]&&!("*"==o&&"*"==s)&&r.push(yie(s,o))}(i,e,r)):e.push(n),e}const wL=new Set(["true","1"]),xL=new Set(["false","0"]);function yie(n,r){const e=wL.has(n)||xL.has(n),i=wL.has(r)||xL.has(r);return(o,a)=>{let s="*"==n||n==o,l="*"==r||r==a;return!s&&e&&"boolean"==typeof o&&(s=o?wL.has(n):xL.has(n)),!l&&i&&"boolean"==typeof a&&(l=a?wL.has(r):xL.has(r)),s&&l}}const f3e=new RegExp("s*:selfs*,?","g");function Tz(n,r,e,i){return new m3e(n).build(r,e,i)}class m3e{constructor(r){this._driver=r}build(r,e,i){const o=new v3e(e);return this._resetContextStyleTimingState(o),yv(this,z3(r),o)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let i=e.queryCount=0,o=e.depCount=0;const a=[],s=[];return"@"==r.name.charAt(0)&&e.errors.push(function CIe(){return new ht(3006,!1)}()),r.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),0==l.type){const d=l,f=d.name;f.toString().split(/\s*,\s*/).forEach(C=>{d.name=C,a.push(this.visitState(d,e))}),d.name=f}else if(1==l.type){const d=this.visitTransition(l,e);i+=d.queryCount,o+=d.depCount,s.push(d)}else e.errors.push(function AIe(){return new ht(3007,!1)}())}),{type:7,name:r.name,states:a,transitions:s,queryCount:i,depCount:o,options:null}}visitState(r,e){const i=this.visitStyle(r.styles,e),o=r.options&&r.options.params||null;if(i.containsDynamicStyles){const a=new Set,s=o||{};i.styles.forEach(l=>{l instanceof Map&&l.forEach(d=>{vie(d).forEach(f=>{s.hasOwnProperty(f)||a.add(f)})})}),a.size&&(bL(a.values()),e.errors.push(function wIe(n,r){return new ht(3008,!1)}()))}return{type:0,name:r.name,style:i,options:o?{params:o}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const i=yv(this,z3(r.animation),e);return{type:1,matchers:u3e(r.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:BS(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(i=>yv(this,i,e)),options:BS(r.options)}}visitGroup(r,e){const i=e.currentTime;let o=0;const a=r.steps.map(s=>{e.currentTime=i;const l=yv(this,s,e);return o=Math.max(o,e.currentTime),l});return e.currentTime=o,{type:3,steps:a,options:BS(r.options)}}visitAnimate(r,e){const i=function y3e(n,r){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Dz(vL(n,r).duration,0,"");const e=n;if(e.split(/\s+/).some(a=>"{"==a.charAt(0)&&"{"==a.charAt(1))){const a=Dz(0,0,"");return a.dynamic=!0,a.strValue=e,a}const o=vL(e,r);return Dz(o.duration,o.delay,o.easing)}(r.timings,e.errors);e.currentAnimateTimings=i;let o,a=r.styles?r.styles:uo({});if(5==a.type)o=this.visitKeyframes(a,e);else{let s=r.styles,l=!1;if(!s){l=!0;const f={};i.easing&&(f.easing=i.easing),s=uo(f)}e.currentTime+=i.duration+i.delay;const d=this.visitStyle(s,e);d.isEmptyStep=l,o=d}return e.currentAnimateTimings=null,{type:4,timings:i,style:o,options:null}}visitStyle(r,e){const i=this._makeStyleAst(r,e);return this._validateStyleAst(i,e),i}_makeStyleAst(r,e){const i=[],o=Array.isArray(r.styles)?r.styles:[r.styles];for(let l of o)"string"==typeof l?l===SA?i.push(l):e.errors.push(new ht(3002,!1)):i.push(fie(l));let a=!1,s=null;return i.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(s=l.get("easing"),l.delete("easing")),!a))for(let d of l.values())if(d.toString().indexOf("{{")>=0){a=!0;break}}),{type:6,styles:i,easing:s,offset:r.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(r,e){const i=e.currentAnimateTimings;let o=e.currentTime,a=e.currentTime;i&&a>0&&(a-=i.duration+i.delay),r.styles.forEach(s=>{"string"!=typeof s&&s.forEach((l,d)=>{const f=e.collectedStyles.get(e.currentQuerySelector),C=f.get(d);let M=!0;C&&(a!=o&&a>=C.startTime&&o<=C.endTime&&(e.errors.push(function MIe(n,r,e,i,o){return new ht(3010,!1)}()),M=!1),a=C.startTime),M&&f.set(d,{startTime:a,endTime:o}),e.options&&function i3e(n,r,e){const i=r.params||{},o=vie(n);o.length&&o.forEach(a=>{i.hasOwnProperty(a)||e.push(function _Ie(n){return new ht(3001,!1)}())})}(l,e.options,e.errors)})})}visitKeyframes(r,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function SIe(){return new ht(3011,!1)}()),i;let a=0;const s=[];let l=!1,d=!1,f=0;const C=r.steps.map(Pe=>{const Ne=this._makeStyleAst(Pe,e);let Ge=null!=Ne.offset?Ne.offset:function b3e(n){if("string"==typeof n)return null;let r=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;r=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(Ne.styles),lt=0;return null!=Ge&&(a++,lt=Ne.offset=Ge),d=d||lt<0||lt>1,l=l||lt0&&a{const Ge=T>0?Ne==F?1:T*Ne:s[Ne],lt=Ge*fe;e.currentTime=pe+ce.delay+lt,ce.duration=lt,this._validateStyleAst(Pe,e),Pe.offset=Ge,i.styles.push(Pe)}),i}visitReference(r,e){return{type:8,animation:yv(this,z3(r.animation),e),options:BS(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:BS(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:BS(r.options)}}visitQuery(r,e){const i=e.currentQuerySelector,o=r.options||{};e.queryCount++,e.currentQuery=r;const[a,s]=function g3e(n){const r=!!n.split(/\s*,\s*/).find(e=>":self"==e);return r&&(n=n.replace(f3e,"")),n=n.replace(/@\*/g,_L).replace(/@\w+/g,e=>_L+"-"+e.slice(1)).replace(/:animating/g,wz),[n,r]}(r.selector);e.currentQuerySelector=i.length?i+" "+a:a,bv(e.collectedStyles,e.currentQuerySelector,new Map);const l=yv(this,z3(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:a,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:l,originalSelector:r.selector,options:BS(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function OIe(){return new ht(3013,!1)}());const i="full"===r.timings?{duration:0,delay:0,easing:"full"}:vL(r.timings,e.errors,!0);return{type:12,animation:yv(this,z3(r.animation),e),timings:i,options:null}}}class v3e{constructor(r){this.errors=r,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 BS(n){return n?(n=U3(n)).params&&(n.params=function _3e(n){return n?U3(n):null}(n.params)):n={},n}function Dz(n,r,e){return{duration:n,delay:r,easing:e}}function Pz(n,r,e,i,o,a,s=null,l=!1){return{type:1,element:n,keyframes:r,preStyleProps:e,postStyleProps:i,duration:o,delay:a,totalTime:o+a,easing:s,subTimeline:l}}class ML{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let i=this._map.get(r);i||this._map.set(r,i=[]),i.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const w3e=new RegExp(":enter","g"),M3e=new RegExp(":leave","g");function Oz(n,r,e,i,o,a=new Map,s=new Map,l,d,f=[]){return(new S3e).buildKeyframes(n,r,e,i,o,a,s,l,d,f)}class S3e{buildKeyframes(r,e,i,o,a,s,l,d,f,C=[]){f=f||new ML;const M=new kz(r,e,f,o,a,C,[]);M.options=d;const T=d.delay?BA(d.delay):0;M.currentTimeline.delayNextStep(T),M.currentTimeline.setStyles([s],null,M.errors,d),yv(this,i,M);const F=M.timelines.filter(pe=>pe.containsAnimation());if(F.length&&l.size){let pe;for(let ce=F.length-1;ce>=0;ce--){const fe=F[ce];if(fe.element===e){pe=fe;break}}pe&&!pe.allowOnlyTimelineStyles()&&pe.setStyles([l],null,M.errors,d)}return F.length?F.map(pe=>pe.buildKeyframes()):[Pz(e,[],[],[],0,T,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(r.options),a=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,o,o.options);a!=s&&e.transformIntoNewTimeline(s)}e.previousNode=r}visitAnimateRef(r,e){const i=e.createSubContext(r.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([r.options,r.animation.options],e,i),this.visitReference(r.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=r}_applyAnimationRefDelays(r,e,i){for(const a of r){const s=a?.delay;if(s){var o;const l="number"==typeof s?s:BA(j3(s,null!==(o=a?.params)&&void 0!==o?o:{},e.errors));i.delayNextStep(l)}}}_visitSubInstructions(r,e,i){let a=e.currentTimeline.currentTime;const s=null!=i.duration?BA(i.duration):null,l=null!=i.delay?BA(i.delay):null;return 0!==s&&r.forEach(d=>{const f=e.appendInstructionToTimeline(d,s,l);a=Math.max(a,f.duration+f.delay)}),a}visitReference(r,e){e.updateOptions(r.options,!0),yv(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const i=e.subContextCount;let o=e;const a=r.options;if(a&&(a.params||a.delay)&&(o=e.createSubContext(a),o.transformIntoNewTimeline(),null!=a.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=SL);const s=BA(a.delay);o.delayNextStep(s)}r.steps.length&&(r.steps.forEach(s=>yv(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const i=[];let o=e.currentTimeline.currentTime;const a=r.options&&r.options.delay?BA(r.options.delay):0;r.steps.forEach(s=>{const l=e.createSubContext(r.options);a&&l.delayNextStep(a),yv(this,s,l),o=Math.max(o,l.currentTimeline.currentTime),i.push(l.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(o),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const i=r.strValue;return vL(e.params?j3(i,e.params,e.errors):i,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const i=e.currentAnimateTimings=this._visitTiming(r.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const a=r.style;5==a.type?this.visitKeyframes(a,e):(e.incrementTime(i.duration),this.visitStyle(a,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const a=o&&o.easing||r.easing;r.isEmptyStep?i.applyEmptyStep(a):i.setStyles(r.styles,a,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,a=i.duration,l=e.createSubContext().currentTimeline;l.easing=i.easing,r.styles.forEach(d=>{l.forwardTime((d.offset||0)*a),l.setStyles(d.styles,d.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(o+a),e.previousNode=r}visitQuery(r,e){const i=e.currentTimeline.currentTime,o=r.options||{},a=o.delay?BA(o.delay):0;a&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=SL);let s=i;const l=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=l.length;let d=null;l.forEach((f,C)=>{e.currentQueryIndex=C;const M=e.createSubContext(r.options,f);a&&M.delayNextStep(a),f===e.element&&(d=M.currentTimeline),yv(this,r.animation,M),M.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,M.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),d&&(e.currentTimeline.mergeTimelineCollectedStyles(d),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const i=e.parentContext,o=e.currentTimeline,a=r.timings,s=Math.abs(a.duration),l=s*(e.currentQueryTotal-1);let d=s*e.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":d=l-d;break;case"full":d=i.currentStaggerTime}const C=e.currentTimeline;d&&C.delayNextStep(d);const M=C.currentTime;yv(this,r.animation,e),e.previousNode=r,i.currentStaggerTime=o.currentTime-M+(o.startTime-i.currentTimeline.startTime)}}const SL={};class kz{constructor(r,e,i,o,a,s,l,d){this._driver=r,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=a,this.errors=s,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=SL,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=d||new TL(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const i=r;let o=this.options;null!=i.duration&&(o.duration=BA(i.duration)),null!=i.delay&&(o.delay=BA(i.delay));const a=i.params;if(a){let s=o.params;s||(s=this.options.params={}),Object.keys(a).forEach(l=>{(!e||!s.hasOwnProperty(l))&&(s[l]=j3(a[l],s,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const i=r.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return r}createSubContext(r=null,e,i){const o=e||this.element,a=new kz(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(r),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}transformIntoNewTimeline(r){return this.previousNode=SL,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,i){const o={duration:e??r.duration,delay:this.currentTimeline.currentTime+(i??0)+r.delay,easing:""},a=new T3e(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,o,r.stretchStartingKeyframe);return this.timelines.push(a),o}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,i,o,a,s){let l=[];if(o&&l.push(this.element),r.length>0){r=(r=r.replace(w3e,"."+this._enterClassName)).replace(M3e,"."+this._leaveClassName);let f=this._driver.query(this.element,r,1!=i);0!==i&&(f=i<0?f.slice(f.length+i,f.length):f.slice(0,i)),l.push(...f)}return!a&&0==l.length&&s.push(function kIe(n){return new ht(3014,!1)}()),l}}class TL{constructor(r,e,i,o){this._driver=r,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,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(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new TL(this._driver,r,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(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||SA),this._currentKeyframe.set(e,SA);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,i,o){e&&this._previousKeyframe.set("easing",e);const a=o&&o.params||{},s=function D3e(n,r){const e=new Map;let i;return n.forEach(o=>{if("*"===o){i=i||r.keys();for(let a of i)e.set(a,SA)}else Gx(o,e)}),e}(r,this._globalTimelineStyles);for(let[d,f]of s){const C=j3(f,a,i);var l;this._pendingStyles.set(d,C),this._localTimelineStyles.has(d)||this._backFill.set(d,null!==(l=this._globalTimelineStyles.get(d))&&void 0!==l?l:SA),this._updateStyle(d,C)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((l,d)=>{const f=Gx(l,new Map,this._backFill);f.forEach((C,M)=>{"!"===C?r.add(M):C===SA&&e.add(M)}),i||f.set("offset",d/this.duration),o.push(f)});const a=r.size?bL(r.values()):[],s=e.size?bL(e.values()):[];if(i){const l=o[0],d=new Map(l);l.set("offset",0),d.set("offset",1),o=[l,d]}return Pz(this.element,o,a,s,this.duration,this.startTime,this.easing,!1)}}class T3e extends TL{constructor(r,e,i,o,a,s,l=!1){super(r,e,s.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=a,this._stretchStartingKeyframe=l,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const a=[],s=i+e,l=e/s,d=Gx(r[0]);d.set("offset",0),a.push(d);const f=Gx(r[0]);f.set("offset",wie(l)),a.push(f);const C=r.length-1;for(let M=1;M<=C;M++){let T=Gx(r[M]);const F=T.get("offset");T.set("offset",wie((e+F*i)/s)),a.push(T)}i=s,e=0,o="",r=a}return Pz(this.element,r,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function wie(n,r=3){const e=Math.pow(10,r-1);return Math.round(n*e)/e}class Ez{}const P3e=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 O3e extends Ez{normalizePropertyName(r,e){return Sz(r)}normalizeStyleValue(r,e,i,o){let a="";const s=i.toString().trim();if(P3e.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)a="px";else{const l=i.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&o.push(function yIe(n,r){return new ht(3005,!1)}())}return s+a}}function xie(n,r,e,i,o,a,s,l,d,f,C,M,T){return{type:0,element:n,triggerName:r,isRemovalTransition:o,fromState:e,fromStyles:a,toState:i,toStyles:s,timelines:l,queriedElements:d,preStyleProps:f,postStyleProps:C,totalTime:M,errors:T}}const Iz={};class Mie{constructor(r,e,i){this._triggerName=r,this.ast=e,this._stateStyles=i}match(r,e,i,o){return function k3e(n,r,e,i,o){return n.some(a=>a(r,e,i,o))}(this.ast.matchers,r,e,i,o)}buildStyles(r,e,i){let o=this._stateStyles.get("*");return void 0!==r&&(o=this._stateStyles.get(r?.toString())||o),o?o.buildStyles(e,i):new Map}build(r,e,i,o,a,s,l,d,f,C){var M;const T=[],F=this.ast.options&&this.ast.options.params||Iz,ce=this.buildStyles(i,l&&l.params||Iz,T),fe=d&&d.params||Iz,Pe=this.buildStyles(o,fe,T),Ne=new Set,Ge=new Map,lt=new Map,Pt="void"===o,Qt={params:E3e(fe,F),delay:null===(M=this.ast.options)||void 0===M?void 0:M.delay},Ot=C?[]:Oz(r,e,this.ast.animation,a,s,ce,Pe,Qt,f,T);let tn=0;if(Ot.forEach(ii=>{tn=Math.max(ii.duration+ii.delay,tn)}),T.length)return xie(e,this._triggerName,i,o,Pt,ce,Pe,[],[],Ge,lt,tn,T);Ot.forEach(ii=>{const Ht=ii.element,nn=bv(Ge,Ht,new Set);ii.preStyleProps.forEach(At=>nn.add(At));const Fn=bv(lt,Ht,new Set);ii.postStyleProps.forEach(At=>Fn.add(At)),Ht!==e&&Ne.add(Ht)});const Nn=bL(Ne.values());return xie(e,this._triggerName,i,o,Pt,ce,Pe,Ot,Nn,Ge,lt,tn)}}function E3e(n,r){const e=U3(r);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class I3e{constructor(r,e,i){this.styles=r,this.defaultParams=e,this.normalizer=i}buildStyles(r,e){const i=new Map,o=U3(this.defaultParams);return Object.keys(r).forEach(a=>{const s=r[a];null!==s&&(o[a]=s)}),this.styles.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,l)=>{s&&(s=j3(s,o,e));const d=this.normalizer.normalizePropertyName(l,e);s=this.normalizer.normalizeStyleValue(l,d,s,e),i.set(d,s)})}),i}}class R3e{constructor(r,e,i){this.name=r,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new I3e(o.style,o.options&&o.options.params||{},i))}),Sie(this.states,"true","1"),Sie(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Mie(r,o,this.states))}),this.fallbackTransition=function B3e(n,r,e){return new Mie(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,l)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,i,o){return this.transitionFactories.find(s=>s.match(r,e,i,o))||null}matchStyles(r,e,i){return this.fallbackTransition.buildStyles(r,e,i)}}function Sie(n,r,e){n.has(r)?n.has(e)||n.set(e,n.get(r)):n.has(e)&&n.set(r,n.get(e))}const L3e=new ML;class N3e{constructor(r,e,i){this.bodyNode=r,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const i=[],a=Tz(this._driver,e,i,[]);if(i.length)throw function NIe(n){return new ht(3503,!1)}();this._animations.set(r,a)}_buildPlayer(r,e,i){const o=r.element,a=rie(0,this._normalizer,0,r.keyframes,e,i);return this._driver.animate(o,a,r.duration,r.delay,r.easing,[],!0)}create(r,e,i={}){const o=[],a=this._animations.get(r);let s;const l=new Map;if(a?(s=Oz(this._driver,e,a,Az,mL,new Map,new Map,i,L3e,o),s.forEach(C=>{const M=bv(l,C.element,new Map);C.postStyleProps.forEach(T=>M.set(T,null))})):(o.push(function HIe(){return new ht(3300,!1)}()),s=[]),o.length)throw function VIe(n){return new ht(3504,!1)}();l.forEach((C,M)=>{C.forEach((T,F)=>{C.set(F,this._driver.computeStyle(M,F,SA))})});const f=Yx(s.map(C=>{const M=l.get(C.element);return this._buildPlayer(C,new Map,M)}));return this._playersById.set(r,f),f.onDestroy(()=>this.destroy(r)),this.players.push(f),f}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function UIe(n){return new ht(3301,!1)}();return e}listen(r,e,i,o){const a=vz(e,"","","");return gz(this._getPlayer(r),i,a,o),()=>{}}command(r,e,i,o){if("register"==i)return void this.register(r,o[0]);if("create"==i)return void this.create(r,e,o[0]||{});const a=this._getPlayer(r);switch(i){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(r)}}}const Tie="ng-animate-queued",Fz="ng-animate-disabled",j3e=[],Die={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$3e={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_1="__ng_removed";class Rz{constructor(r,e=""){this.namespaceId=e;const i=r&&r.hasOwnProperty("value");if(this.value=function Q3e(n){return n??null}(i?r.value:r),i){const a=U3(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const $3="void",Bz=new Rz($3);class Y3e{constructor(r,e,i){this.id=r,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,v1(e,this._hostClassName)}listen(r,e,i,o){if(!this._triggers.has(e))throw function zIe(n,r){return new ht(3302,!1)}();if(null==i||0==i.length)throw function jIe(n){return new ht(3303,!1)}();if(!function K3e(n){return"start"==n||"done"==n}(i))throw function $Ie(n,r){return new ht(3400,!1)}();const a=bv(this._elementListeners,r,[]),s={name:e,phase:i,callback:o};a.push(s);const l=bv(this._engine.statesByElement,r,new Map);return l.has(e)||(v1(r,gL),v1(r,gL+"-"+e),l.set(e,Bz)),()=>{this._engine.afterFlush(()=>{const d=a.indexOf(s);d>=0&&a.splice(d,1),this._triggers.has(e)||l.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function YIe(n){return new ht(3401,!1)}();return e}trigger(r,e,i,o=!0){const a=this._getTrigger(e),s=new Lz(this.id,e,r);let l=this._engine.statesByElement.get(r);l||(v1(r,gL),v1(r,gL+"-"+e),this._engine.statesByElement.set(r,l=new Map));let d=l.get(e);const f=new Rz(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&d&&f.absorbOptions(d.options),l.set(e,f),d||(d=Bz),f.value!==$3&&d.value===f.value){if(!function J3e(n,r){const e=Object.keys(n),i=Object.keys(r);if(e.length!=i.length)return!1;for(let o=0;o{RS(r,fe),Xy(r,Pe)})}return}const T=bv(this._engine.playersByElement,r,[]);T.forEach(ce=>{ce.namespaceId==this.id&&ce.triggerName==e&&ce.queued&&ce.destroy()});let F=a.matchTransition(d.value,f.value,r,f.params),pe=!1;if(!F){if(!o)return;F=a.fallbackTransition,pe=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:F,fromState:d,toState:f,player:s,isFallbackTransition:pe}),pe||(v1(r,Tie),s.onStart(()=>{qP(r,Tie)})),s.onDone(()=>{let ce=this.players.indexOf(s);ce>=0&&this.players.splice(ce,1);const fe=this._engine.playersByElement.get(r);if(fe){let Pe=fe.indexOf(s);Pe>=0&&fe.splice(Pe,1)}}),this.players.push(s),T.push(s),s}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const i=this._engine.driver.query(r,_L,!0);i.forEach(o=>{if(o[_1])return;const a=this._engine.fetchNamespacesByElement(o);a.size?a.forEach(s=>s.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(r,e,i,o){const a=this._engine.statesByElement.get(r),s=new Map;if(a){const l=[];if(a.forEach((d,f)=>{if(s.set(f,d.value),this._triggers.has(f)){const C=this.trigger(r,f,$3,o);C&&l.push(C)}}),l.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,s),i&&Yx(l).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),i=this._engine.statesByElement.get(r);if(e&&i){const o=new Set;e.forEach(a=>{const s=a.name;if(o.has(s))return;o.add(s);const d=this._triggers.get(s).fallbackTransition,f=i.get(s)||Bz,C=new Rz($3),M=new Lz(this.id,s,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:s,transition:d,fromState:f,toState:C,player:M,isFallbackTransition:!0})})}}removeNode(r,e){const i=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let o=!1;if(i.totalAnimations){const a=i.players.length?i.playersByQueriedElement.get(r):[];if(a&&a.length)o=!0;else{let s=r;for(;s=s.parentNode;)if(i.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(r),o)i.markElementAsRemoved(this.id,r,!1,e);else{const a=r[_1];(!a||a===Die)&&(i.afterFlush(()=>this.clearElementCache(r)),i.destroyInnerAnimations(r),i._onRemovalComplete(r,e))}}insertNode(r,e){v1(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const a=i.element,s=this._elementListeners.get(a);s&&s.forEach(l=>{if(l.name==i.triggerName){const d=vz(a,i.triggerName,i.fromState.value,i.toState.value);d._data=r,gz(i.player,l.phase,d,l.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const a=i.transition.ast.depCount,s=o.transition.ast.depCount;return 0==a||0==s?a-s:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(i=>i.element===r)||e,e}}class G3e{constructor(r,e,i){this.bodyNode=r,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=(o,a)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&r.push(i)})}),r}createNamespace(r,e){const i=new Y3e(r,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[r]=i}_balanceNamespaceList(r,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,l=this.driver.getParentElement(e);for(;l;){const d=o.get(l);if(d){const f=i.indexOf(d);i.splice(f+1,0,r),s=!0;break}l=this.driver.getParentElement(l)}s||i.unshift(r)}else i.push(r);return o.set(e,r),r}register(r,e){let i=this._namespaceLookup[r];return i||(i=this.createNamespace(r,e)),i}registerTrigger(r,e,i){let o=this._namespaceLookup[r];o&&o.register(e,i)&&this.totalAnimations++}destroy(r,e){if(!r)return;const i=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[r];const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,i=this.statesByElement.get(r);if(i)for(let o of i.values())if(o.namespaceId){const a=this._fetchNamespace(o.namespaceId);a&&e.add(a)}return e}trigger(r,e,i,o){if(DL(e)){const a=this._fetchNamespace(r);if(a)return a.trigger(e,i,o),!0}return!1}insertNode(r,e,i,o){if(!DL(e))return;const a=e[_1];if(a&&a.setForRemoval){a.setForRemoval=!1,a.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(r){const s=this._fetchNamespace(r);s&&s.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),v1(r,Fz)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),qP(r,Fz))}removeNode(r,e,i,o){if(DL(e)){const a=r?this._fetchNamespace(r):null;if(a?a.removeNode(e,o):this.markElementAsRemoved(r,e,!1,o),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==r&&s.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(r,e,i,o,a){this.collectedLeaveElements.push(e),e[_1]={namespaceId:r,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:a}}listen(r,e,i,o,a){return DL(e)?this._fetchNamespace(r).listen(e,i,o,a):()=>{}}_buildInstruction(r,e,i,o,a){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,i,o,r.fromState.options,r.toState.options,e,a)}destroyInnerAnimations(r){let e=this.driver.query(r,_L,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,wz,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return Yx(this.players).onDone(()=>r());r()})}processLeaveNode(r){var e;const i=r[_1];if(i&&i.setForRemoval){if(r[_1]=Die,i.namespaceId){this.destroyInnerAnimations(r);const o=this._fetchNamespace(i.namespaceId);o&&o.clearElementCache(r)}this._onRemovalComplete(r,i.setForRemoval)}null!==(e=r.classList)&&void 0!==e&&e.contains(Fz)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(o=>{this.markElementAsDisabled(o,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),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?Yx(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(r){throw function GIe(n){return new ht(3402,!1)}()}_flushAnimations(r,e){const i=new ML,o=[],a=new Map,s=[],l=new Map,d=new Map,f=new Map,C=new Set;this.disabledNodes.forEach(Lt=>{C.add(Lt);const pn=this.driver.query(Lt,".ng-animate-queued",!0);for(let hn=0;hn{const hn=Az+ce++;pe.set(pn,hn),Lt.forEach(ct=>v1(ct,hn))});const fe=[],Pe=new Set,Ne=new Set;for(let Lt=0;LtPe.add(ct)):Ne.add(pn))}const Ge=new Map,lt=kie(T,Array.from(Pe));lt.forEach((Lt,pn)=>{const hn=mL+ce++;Ge.set(pn,hn),Lt.forEach(ct=>v1(ct,hn))}),r.push(()=>{F.forEach((Lt,pn)=>{const hn=pe.get(pn);Lt.forEach(ct=>qP(ct,hn))}),lt.forEach((Lt,pn)=>{const hn=Ge.get(pn);Lt.forEach(ct=>qP(ct,hn))}),fe.forEach(Lt=>{this.processLeaveNode(Lt)})});const Pt=[],Qt=[];for(let Lt=this._namespaceList.length-1;Lt>=0;Lt--)this._namespaceList[Lt].drainQueuedTransitions(e).forEach(hn=>{const ct=hn.player,rn=hn.element;if(Pt.push(ct),this.collectedEnterElements.length){const qi=rn[_1];if(qi&&qi.setForMove){if(qi.previousTriggersValues&&qi.previousTriggersValues.has(hn.triggerName)){const yr=qi.previousTriggersValues.get(hn.triggerName),Mo=this.statesByElement.get(hn.element);if(Mo&&Mo.has(hn.triggerName)){const ka=Mo.get(hn.triggerName);ka.value=yr,Mo.set(hn.triggerName,ka)}}return void ct.destroy()}}const An=!M||!this.driver.containsElement(M,rn),Mn=Ge.get(rn),ai=pe.get(rn),si=this._buildInstruction(hn,i,ai,Mn,An);if(si.errors&&si.errors.length)return void Qt.push(si);if(An)return ct.onStart(()=>RS(rn,si.fromStyles)),ct.onDestroy(()=>Xy(rn,si.toStyles)),void o.push(ct);if(hn.isFallbackTransition)return ct.onStart(()=>RS(rn,si.fromStyles)),ct.onDestroy(()=>Xy(rn,si.toStyles)),void o.push(ct);const er=[];si.timelines.forEach(qi=>{qi.stretchStartingKeyframe=!0,this.disabledNodes.has(qi.element)||er.push(qi)}),si.timelines=er,i.append(rn,si.timelines),s.push({instruction:si,player:ct,element:rn}),si.queriedElements.forEach(qi=>bv(l,qi,[]).push(ct)),si.preStyleProps.forEach((qi,yr)=>{if(qi.size){let Mo=d.get(yr);Mo||d.set(yr,Mo=new Set),qi.forEach((ka,$o)=>Mo.add($o))}}),si.postStyleProps.forEach((qi,yr)=>{let Mo=f.get(yr);Mo||f.set(yr,Mo=new Set),qi.forEach((ka,$o)=>Mo.add($o))})});if(Qt.length){const Lt=[];Qt.forEach(pn=>{Lt.push(function WIe(n,r){return new ht(3505,!1)}())}),Pt.forEach(pn=>pn.destroy()),this.reportError(Lt)}const Ot=new Map,tn=new Map;s.forEach(Lt=>{const pn=Lt.element;i.has(pn)&&(tn.set(pn,pn),this._beforeAnimationBuild(Lt.player.namespaceId,Lt.instruction,Ot))}),o.forEach(Lt=>{const pn=Lt.element;this._getPreviousPlayers(pn,!1,Lt.namespaceId,Lt.triggerName,null).forEach(ct=>{bv(Ot,pn,[]).push(ct),ct.destroy()})});const Nn=fe.filter(Lt=>Iie(Lt,d,f)),ii=new Map;Oie(ii,this.driver,Ne,f,SA).forEach(Lt=>{Iie(Lt,d,f)&&Nn.push(Lt)});const nn=new Map;F.forEach((Lt,pn)=>{Oie(nn,this.driver,new Set(Lt),d,"!")}),Nn.forEach(Lt=>{var pn,hn;const ct=ii.get(Lt),rn=nn.get(Lt);ii.set(Lt,new Map([...Array.from(null!==(pn=ct?.entries())&&void 0!==pn?pn:[]),...Array.from(null!==(hn=rn?.entries())&&void 0!==hn?hn:[])]))});const Fn=[],At=[],yn={};s.forEach(Lt=>{const{element:pn,player:hn,instruction:ct}=Lt;if(i.has(pn)){if(C.has(pn))return hn.onDestroy(()=>Xy(pn,ct.toStyles)),hn.disabled=!0,hn.overrideTotalTime(ct.totalTime),void o.push(hn);let rn=yn;if(tn.size>1){let Mn=pn;const ai=[];for(;Mn=Mn.parentNode;){const si=tn.get(Mn);if(si){rn=si;break}ai.push(Mn)}ai.forEach(si=>tn.set(si,rn))}const An=this._buildAnimation(hn.namespaceId,ct,Ot,a,nn,ii);if(hn.setRealPlayer(An),rn===yn)Fn.push(hn);else{const Mn=this.playersByElement.get(rn);Mn&&Mn.length&&(hn.parentPlayer=Yx(Mn)),o.push(hn)}}else RS(pn,ct.fromStyles),hn.onDestroy(()=>Xy(pn,ct.toStyles)),At.push(hn),C.has(pn)&&o.push(hn)}),At.forEach(Lt=>{const pn=a.get(Lt.element);if(pn&&pn.length){const hn=Yx(pn);Lt.setRealPlayer(hn)}}),o.forEach(Lt=>{Lt.parentPlayer?Lt.syncPlayerEvents(Lt.parentPlayer):Lt.destroy()});for(let Lt=0;Lt!An.destroyed);rn.length?q3e(this,pn,rn):this.processLeaveNode(pn)}return fe.length=0,Fn.forEach(Lt=>{this.players.push(Lt),Lt.onDone(()=>{Lt.destroy();const pn=this.players.indexOf(Lt);this.players.splice(pn,1)}),Lt.play()}),Fn}elementContainsData(r,e){let i=!1;const o=e[_1];return o&&o.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(r).elementContainsData(e)||i}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,i,o,a){let s=[];if(e){const l=this.playersByQueriedElement.get(r);l&&(s=l)}else{const l=this.playersByElement.get(r);if(l){const d=!a||a==$3;l.forEach(f=>{f.queued||!d&&f.triggerName!=o||s.push(f)})}}return(i||o)&&(s=s.filter(l=>!(i&&i!=l.namespaceId||o&&o!=l.triggerName))),s}_beforeAnimationBuild(r,e,i){const a=e.element,s=e.isRemovalTransition?void 0:r,l=e.isRemovalTransition?void 0:e.triggerName;for(const d of e.timelines){const f=d.element,C=f!==a,M=bv(i,f,[]);this._getPreviousPlayers(f,C,s,l,e.toState).forEach(F=>{const pe=F.getRealPlayer();pe.beforeDestroy&&pe.beforeDestroy(),F.destroy(),M.push(F)})}RS(a,e.fromStyles)}_buildAnimation(r,e,i,o,a,s){const l=e.triggerName,d=e.element,f=[],C=new Set,M=new Set,T=e.timelines.map(pe=>{const ce=pe.element;C.add(ce);const fe=ce[_1];if(fe&&fe.removedBeforeQueried)return new w3(pe.duration,pe.delay);const Pe=ce!==d,Ne=function X3e(n){const r=[];return Eie(n,r),r}((i.get(ce)||j3e).map(Ot=>Ot.getRealPlayer())).filter(Ot=>!!Ot.element&&Ot.element===ce),Ge=a.get(ce),lt=s.get(ce),Pt=rie(0,this._normalizer,0,pe.keyframes,Ge,lt),Qt=this._buildPlayer(pe,Pt,Ne);if(pe.subTimeline&&o&&M.add(ce),Pe){const Ot=new Lz(r,l,ce);Ot.setRealPlayer(Qt),f.push(Ot)}return Qt});f.forEach(pe=>{bv(this.playersByQueriedElement,pe.element,[]).push(pe),pe.onDone(()=>function W3e(n,r,e){let i=n.get(r);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&n.delete(r)}return i}(this.playersByQueriedElement,pe.element,pe))}),C.forEach(pe=>v1(pe,hie));const F=Yx(T);return F.onDestroy(()=>{C.forEach(pe=>qP(pe,hie)),Xy(d,e.toStyles)}),M.forEach(pe=>{bv(o,pe,[]).push(F)}),F}_buildPlayer(r,e,i){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,i):new w3(r.duration,r.delay)}}class Lz{constructor(r,e,i){this.namespaceId=r,this.triggerName=e,this.element=i,this._player=new w3,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>gz(r,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){bv(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}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(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function DL(n){return n&&1===n.nodeType}function Pie(n,r){const e=n.style.display;return n.style.display=r??"none",e}function Oie(n,r,e,i,o){const a=[];e.forEach(d=>a.push(Pie(d)));const s=[];i.forEach((d,f)=>{const C=new Map;d.forEach(M=>{const T=r.computeStyle(f,M,o);C.set(M,T),(!T||0==T.length)&&(f[_1]=$3e,s.push(f))}),n.set(f,C)});let l=0;return e.forEach(d=>Pie(d,a[l++])),s}function kie(n,r){const e=new Map;if(n.forEach(l=>e.set(l,[])),0==r.length)return e;const o=new Set(r),a=new Map;function s(l){if(!l)return 1;let d=a.get(l);if(d)return d;const f=l.parentNode;return d=e.has(f)?f:o.has(f)?1:s(f),a.set(l,d),d}return r.forEach(l=>{const d=s(l);1!==d&&e.get(d).push(l)}),e}function v1(n,r){var e;null===(e=n.classList)||void 0===e||e.add(r)}function qP(n,r){var e;null===(e=n.classList)||void 0===e||e.remove(r)}function q3e(n,r,e){Yx(e).onDone(()=>n.processLeaveNode(r))}function Eie(n,r){for(let e=0;eo.add(a)):r.set(n,i),e.delete(n),!0}class PL{constructor(r,e,i){this.bodyNode=r,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,a)=>{},this._transitionEngine=new G3e(r,e,i),this._timelineEngine=new N3e(r,e,i),this._transitionEngine.onRemovalComplete=(o,a)=>this.onRemovalComplete(o,a)}registerTrigger(r,e,i,o,a){const s=r+"-"+o;let l=this._triggerCache[s];if(!l){const d=[],C=Tz(this._driver,a,d,[]);if(d.length)throw function BIe(n,r){return new ht(3404,!1)}();l=function F3e(n,r,e){return new R3e(n,r,e)}(o,C,this._normalizer),this._triggerCache[s]=l}this._transitionEngine.registerTrigger(e,o,l)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,i,o){this._transitionEngine.insertNode(r,e,i,o)}onRemove(r,e,i,o){this._transitionEngine.removeNode(r,e,o||!1,i)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,i,o){if("@"==i.charAt(0)){const[a,s]=oie(i);this._timelineEngine.command(a,e,s,o)}else this._transitionEngine.trigger(r,e,i,o)}listen(r,e,i,o,a){if("@"==i.charAt(0)){const[s,l]=oie(i);return this._timelineEngine.listen(s,e,l,a)}return this._transitionEngine.listen(r,e,i,o,a)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let eFe=(()=>{class n{constructor(e,i,o){this._element=e,this._startStyles=i,this._endStyles=o,this._state=0;let a=n.initialStylesByElement.get(e);a||n.initialStylesByElement.set(e,a=new Map),this._initialStyles=a}start(){this._state<1&&(this._startStyles&&Xy(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Xy(this._element,this._initialStyles),this._endStyles&&(Xy(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(RS(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(RS(this._element,this._endStyles),this._endStyles=null),Xy(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Nz(n){let r=null;return n.forEach((e,i)=>{(function tFe(n){return"display"===n||"position"===n})(i)&&(r=r||new Map,r.set(i,e))}),r}class Fie{constructor(r,e,i,o){this.element=r,this.keyframes=e,this.options=i,this._specialStyles=o,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(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(r,e,i){return r.animate(this._convertKeyframesToObject(e),i)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),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(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&r.set(o,this._finished?i:bie(this.element,o))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class nFe{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return cie(r,e)}getParentElement(r){return yz(r)}query(r,e,i){return die(r,e,i)}computeStyle(r,e,i){return window.getComputedStyle(r)[e]}animate(r,e,i,o,a,s=[]){const d={duration:i,delay:o,fill:0==o?"both":"forwards"};a&&(d.easing=a);const f=new Map,C=s.filter(F=>F instanceof Fie);(function a3e(n,r){return 0===n||0===r})(i,o)&&C.forEach(F=>{F.currentSnapshot.forEach((pe,ce)=>f.set(ce,pe))});let M=function n3e(n){return n.length?n[0]instanceof Map?n:n.map(r=>fie(r)):[]}(e).map(F=>Gx(F));M=function s3e(n,r,e){if(e.size&&r.length){let i=r[0],o=[];if(e.forEach((a,s)=>{i.has(s)||o.push(s),i.set(s,a)}),o.length)for(let a=1;as.set(l,bie(n,l)))}}return r}(r,M,f);const T=function Z3e(n,r){let e=null,i=null;return Array.isArray(r)&&r.length?(e=Nz(r[0]),r.length>1&&(i=Nz(r[r.length-1]))):r instanceof Map&&(e=Nz(r)),e||i?new eFe(n,e,i):null}(r,M);return new Fie(r,M,d,T)}}let iFe=(()=>{class n extends A3{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Sc.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?yee(e):e;return Rie(this._renderer,null,i,"register",[o]),new rFe(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(en(iv),en(Fa))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();class rFe extends class KMe{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new oFe(this._id,r,e||{},this._renderer)}}class oFe{constructor(r,e,i,o){this.id=r,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return Rie(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}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(r){this._command("setPosition",r)}getPosition(){var r,e;return null!==(r=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==r?r:0}}function Rie(n,r,e,i,o){return n.setProperty(r,`@@${e}:${i}`,o)}const Bie="@.disabled";let aFe=(()=>{class n{constructor(e,i,o){this.delegate=e,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(a,s)=>{const l=s?.parentNode(a);l&&s.removeChild(l,a)}}createRenderer(e,i){const a=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let C=this._rendererCache.get(a);return C||(C=new Lie("",a,this.engine),this._rendererCache.set(a,C)),C}const s=i.id,l=i.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const d=C=>{Array.isArray(C)?C.forEach(d):this.engine.registerTrigger(s,l,e,C.name,C)};return i.data.animation.forEach(d),new sFe(this,l,a,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,o){e>=0&&ei(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(a=>{const[s,l]=a;s(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}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)(en(iv),en(PL),en(Zo))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();class Lie{constructor(r,e,i){this.namespaceId=r,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,i,o=!0){this.delegate.insertBefore(r,e,i),this.engine.onInsert(this.namespaceId,e,r,o)}removeChild(r,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,i,o){this.delegate.setAttribute(r,e,i,o)}removeAttribute(r,e,i){this.delegate.removeAttribute(r,e,i)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,i,o){this.delegate.setStyle(r,e,i,o)}removeStyle(r,e,i){this.delegate.removeStyle(r,e,i)}setProperty(r,e,i){"@"==e.charAt(0)&&e==Bie?this.disableAnimations(r,!!i):this.delegate.setProperty(r,e,i)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,i){return this.delegate.listen(r,e,i)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class sFe extends Lie{constructor(r,e,i,o){super(e,i,o),this.factory=r,this.namespaceId=e}setProperty(r,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Bie?this.disableAnimations(r,i=void 0===i||!!i):this.engine.process(this.namespaceId,r,e.slice(1),i):this.delegate.setProperty(r,e,i)}listen(r,e,i){if("@"==e.charAt(0)){const o=function lFe(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(r);let a=e.slice(1),s="";return"@"!=a.charAt(0)&&([a,s]=function cFe(n){const r=n.indexOf(".");return[n.substring(0,r),n.slice(r+1)]}(a)),this.engine.listen(this.namespaceId,o,a,s,l=>{this.factory.scheduleListenerCallback(l._data||-1,i,l)})}return this.delegate.listen(r,e,i)}}let dFe=(()=>{class n extends PL{constructor(e,i,o,a){super(e.body,i,o)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(en(Fa),en(Cz),en(Ez),en(pv))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const Nie=[{provide:A3,useClass:iFe},{provide:Ez,useFactory:function uFe(){return new O3e}},{provide:PL,useClass:dFe},{provide:iv,useFactory:function pFe(n,r,e){return new aFe(n,r,e)},deps:[FR,PL,Zo]}],Hz=[{provide:Cz,useFactory:()=>new nFe},{provide:Cu,useValue:"BrowserAnimations"},...Nie],Hie=[{provide:Cz,useClass:uie},{provide:Cu,useValue:"NoopAnimations"},...Nie];let hFe=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Hie:Hz}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:Hz,imports:[R9]}),n})();const LA=new ze(bA);function Vz(...n){return r=>{let e;return"function"==typeof n[n.length-1]&&(e=n.pop()),r.lift(new fFe(n,e))}}class fFe{constructor(r,e){this.observables=r,this.project=e}call(r,e){return e.subscribe(new mFe(r,this.observables,this.project))}}class mFe extends AV{constructor(r,e,i){super(r),this.observables=e,this.project=i,this.toRespond=[];const o=e.length;this.values=new Array(o);for(let a=0;a0){const a=o.indexOf(i);-1!==a&&o.splice(a,1)}}notifyComplete(){}_next(r){if(0===this.toRespond.length){const e=[r,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(r){let e;try{e=this.project.apply(this,r)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function XP(n,r=dS){const i=function gFe(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-r.now():Math.abs(n);return o=>o.lift(new _Fe(i,r))}class _Fe{constructor(r,e){this.delay=r,this.scheduler=e}call(r,e){return e.subscribe(new Uz(r,this.delay,this.scheduler))}}class Uz extends te{constructor(r,e,i){super(r),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(r){const e=r.source,i=e.queue,o=r.scheduler,a=r.destination;for(;i.length>0&&i[0].time-o.now()<=0;)i.shift().notification.observe(a);if(i.length>0){const s=Math.max(0,i[0].time-o.now());this.schedule(r,s)}else this.unsubscribe(),e.active=!1}_schedule(r){this.active=!0,this.destination.add(r.schedule(Uz.dispatch,this.delay,{source:this,destination:this.destination,scheduler:r}))}scheduleNotification(r){if(!0===this.errored)return;const e=this.scheduler,i=new vFe(e.now()+this.delay,r);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(r){this.scheduleNotification(C0.createNext(r))}_error(r){this.errored=!0,this.queue=[],this.destination.error(r),this.unsubscribe()}_complete(){this.scheduleNotification(C0.createComplete()),this.unsubscribe()}}class vFe{constructor(r,e){this.time=r,this.notification=e}}const JP=["*"],IFe=["months"];function FFe(n,r){if(1&n&&be(0,"div",7),2&n){const i=r.currentMonth,o=r.selected,a=r.disabled,s=r.focused;m("date",r.date)("currentMonth",i)("selected",o)("disabled",a)("focused",s)}}function RFe(n,r){if(1&n){const e=xt();b(0,"ngb-datepicker-navigation",8),Me("navigate",function(o){return Oe(e),Re(w().onNavigateEvent(o))})("select",function(o){return Oe(e),Re(w().onNavigateDateSelect(o))}),y()}if(2&n){const e=w();m("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect","select"===e.model.navigation)("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function BFe(n,r){if(1&n&&(b(0,"div",12),L(1),y()),2&n){const e=w().$implicit,i=w();p(1),Sr(" ",i.i18n.getMonthFullName(e.number,e.year)," ",i.i18n.getYearNumerals(e.year)," ")}}function LFe(n,r){if(1&n){const e=xt();b(0,"div",9),O(1,BFe,2,2,"div",10),b(2,"ngb-datepicker-month-view",11),Me("select",function(o){return Oe(e),Re(w().onDateSelect(o))}),y()()}if(2&n){const e=r.$implicit,i=w(),o=yi(1);p(1),m("ngIf","none"===i.navigation||i.displayMonths>1&&"select"===i.navigation),p(1),m("month",e)("dayTemplate",i.dayTemplate||o)("showWeekdays",i.showWeekdays)("showWeekNumbers",i.showWeekNumbers)}}function NFe(n,r){}function HFe(n,r){1&n&&be(0,"div",5)}function VFe(n,r){if(1&n&&(b(0,"div",6),L(1),y()),2&n){const e=r.$implicit,i=w(2);p(1),Be(" ",i.i18n.getWeekdayShortName(e)," ")}}function UFe(n,r){if(1&n&&(b(0,"div",2),O(1,HFe,1,0,"div",3),O(2,VFe,2,1,"div",4),y()),2&n){const e=w();p(1),m("ngIf",e.showWeekNumbers),p(1),m("ngForOf",e.month.weekdays)}}function zFe(n,r){if(1&n&&(b(0,"div",11),L(1),y()),2&n){const e=w(2).$implicit,i=w();p(1),Xe(i.i18n.getWeekNumerals(e.number))}}function jFe(n,r){}function $Fe(n,r){if(1&n&&O(0,jFe,0,0,"ng-template",14),2&n){const e=w().$implicit;m("ngTemplateOutlet",w(3).dayTemplate)("ngTemplateOutletContext",e.context)}}function YFe(n,r){if(1&n){const e=xt();b(0,"div",12),Me("click",function(){const a=Oe(e).$implicit;return Re(w(3).doSelect(a))}),O(1,$Fe,1,2,"ng-template",13),y()}if(2&n){const e=r.$implicit;g("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),m("tabindex",e.tabindex),Tr("aria-label",e.ariaLabel),p(1),m("ngIf",!e.hidden)}}function GFe(n,r){if(1&n&&(b(0,"div",8),O(1,zFe,2,1,"div",9),O(2,YFe,2,9,"div",10),y()),2&n){const e=w().$implicit,i=w();p(1),m("ngIf",i.showWeekNumbers),p(1),m("ngForOf",e.days)}}function WFe(n,r){1&n&&O(0,GFe,3,2,"div",7),2&n&&m("ngIf",!r.$implicit.collapsed)}function QFe(n,r){if(1&n){const e=xt();b(0,"ngb-datepicker-navigation-select",7),Me("select",function(o){return Oe(e),Re(w().select.emit(o))}),y()}if(2&n){const e=w();m("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function KFe(n,r){1&n&&be(0,"div",0)}function qFe(n,r){1&n&&be(0,"div",0)}function XFe(n,r){if(1&n&&(O(0,KFe,1,0,"div",9),b(1,"div",10),L(2),y(),O(3,qFe,1,0,"div",9)),2&n){const e=r.$implicit,i=r.index,o=w(2);m("ngIf",i>0),p(2),Sr(" ",o.i18n.getMonthFullName(e.number,e.year)," ",o.i18n.getYearNumerals(e.year)," "),p(1),m("ngIf",i!==o.months.length-1)}}function JFe(n,r){1&n&&O(0,XFe,4,4,"ng-template",8),2&n&&m("ngForOf",w().months)}const ZFe=["ngbDatepickerDayView",""],e4e=["month"],t4e=["year"];function n4e(n,r){if(1&n&&(b(0,"option",5),L(1),y()),2&n){const e=r.$implicit,i=w();m("value",e),Tr("aria-label",i.i18n.getMonthFullName(e,null==i.date?null:i.date.year)),p(1),Xe(i.i18n.getMonthShortName(e,null==i.date?null:i.date.year))}}function i4e(n,r){if(1&n&&(b(0,"option",5),L(1),y()),2&n){const e=r.$implicit,i=w();m("value",e),p(1),Xe(i.i18n.getYearNumerals(e))}}const r4e=["dialog"];function E4e(n,r){1&n&&L(0),2&n&&Xe(100===r.fill?"\u2605":"\u2606")}function I4e(n,r){}function F4e(n,r){if(1&n){const e=xt();b(0,"span",2),L(1),y(),b(2,"span",3),Me("mouseenter",function(){const a=Oe(e).index;return Re(w().enter(a+1))})("click",function(){const a=Oe(e).index;return Re(w().handleClick(a+1))}),O(3,I4e,0,0,"ng-template",4),y()}if(2&n){const e=r.index,i=w(),o=yi(1);p(1),Be("(",e=12)("ngIfElse",e)}}function t5e(n,r){if(1&n&&(b(0,"span"),L(1),y()),2&n){const e=w().$implicit;J(w().highlightClass),p(1),Xe(e)}}function n5e(n,r){1&n&&L(0),2&n&&Xe(w().$implicit)}function i5e(n,r){if(1&n&&(O(0,t5e,2,3,"span",1),O(1,n5e,1,1,"ng-template",null,2,aa)),2&n){const e=r.odd,i=yi(2);m("ngIf",e)("ngIfElse",i)}}function r5e(n,r){if(1&n&&be(0,"ngb-highlight",2),2&n){const i=r.term;m("result",(0,r.formatter)(r.result))("term",i)}}function o5e(n,r){}const a5e=function(n,r,e){return{result:n,term:r,formatter:e}};function s5e(n,r){if(1&n){const e=xt();b(0,"button",3),Me("mouseenter",function(){const a=Oe(e).index;return Re(w().markActive(a))})("click",function(){const a=Oe(e).$implicit;return Re(w().select(a))}),O(1,o5e,0,0,"ng-template",4),y()}if(2&n){const e=r.$implicit,i=r.index,o=w(),a=yi(1);g("active",i===o.activeIdx),m("id",o.id+"-"+i),p(1),m("ngTemplateOutlet",o.resultTemplate||a)("ngTemplateOutletContext",_l(5,a5e,e,o.term,o.formatter))}}function yg(n){return parseInt(`${n}`,10)}function Y3(n){return null!=n?`${n}`:""}function Wh(n){return!isNaN(yg(n))}function fh(n){return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}function G3(n){return null!=n}function ZP(n){return Wh(n)?`0${n}`.slice(-2):""}function Uie(n,r){return n&&n.className&&n.className.split&&n.className.split(/\s+/).indexOf(r)>=0}typeof Element<"u"&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(n){let r=this;if(!document.documentElement.contains(r))return null;do{if(r.matches(n))return r;r=r.parentElement||r.parentNode}while(null!==r&&1===r.nodeType);return null});class NA{constructor(){this.closeOthers=!1}}NA.\u0275fac=function(r){return new(r||NA)},NA.\u0275prov=Dn({token:NA,factory:NA.\u0275fac,providedIn:"root"}),NA.ngInjectableDef=Dn({factory:function(){return new NA},token:NA,providedIn:"root"});let Gie=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();class HA{constructor(){this.dismissible=!0,this.type="warning"}}HA.\u0275fac=function(r){return new(r||HA)},HA.\u0275prov=Dn({token:HA,factory:HA.\u0275fac,providedIn:"root"}),HA.ngInjectableDef=Dn({factory:function(){return new HA},token:HA,providedIn:"root"});let Wie=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})(),Gz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(e,i){2&e&&g("btn",!0)("active",i.active)("disabled",i.disabled)("focus",i.focused)}}),n})();const u5e={provide:Rc,useExisting:ue(()=>Qie),multi:!0};let Qie=(()=>{class n{constructor(e,i){this._label=e,this._cd=i,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=o=>{},this.onTouched=()=>{}}set focused(e){this._label.focused=e,e||this.onTouched()}onInputChange(e){const i=e.target.checked?this.valueChecked:this.valueUnChecked;this.onChange(i),this.onTouched(),this.writeValue(i)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._label.disabled=e}writeValue(e){this.checked=e===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(U(Gz),U(Go))},n.\u0275dir=Wn({type:n,selectors:[["","ngbButton","","type","checkbox"]],hostVars:2,hostBindings:function(e,i){1&e&&Me("change",function(a){return i.onInputChange(a)})("focus",function(){return i.focused=!0})("blur",function(){return i.focused=!1}),2&e&&so("checked",i.checked)("disabled",i.disabled)},inputs:{disabled:"disabled",valueChecked:"valueChecked",valueUnChecked:"valueUnChecked"},features:[lo([u5e])]}),n})();const p5e={provide:Rc,useExisting:ue(()=>Wz),multi:!0};let h5e=0,Wz=(()=>{class n{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+h5e++,this.onChange=e=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this.setDisabledState(e)}onRadioChange(e){this.writeValue(e.value),this.onChange(e.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(e){this._radios.add(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._disabled=e,this._updateRadiosDisabled()}unregister(e){this._radios.delete(e)}writeValue(e){this._value=e,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(e=>e.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(e=>e.updateDisabled())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[lo([p5e])]}),n})(),Kie=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})();class VA{constructor(){this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}}VA.\u0275fac=function(r){return new(r||VA)},VA.\u0275prov=Dn({token:VA,factory:VA.\u0275fac,providedIn:"root"}),VA.ngInjectableDef=Dn({factory:function(){return new VA},token:VA,providedIn:"root"});let Jie=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})(),Zie=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})();class Cg{static from(r){return r instanceof Cg?r:r?new Cg(r.year,r.month,r.day):null}constructor(r,e,i){this.year=fh(r)?r:null,this.month=fh(e)?e:null,this.day=fh(i)?i:null}equals(r){return r&&this.year===r.year&&this.month===r.month&&this.day===r.day}before(r){return!!r&&(this.year===r.year?this.month===r.month?this.day!==r.day&&this.dayr.day:this.month>r.month:this.year>r.year)}}function ere(n){return new Cg(n.getFullYear(),n.getMonth()+1,n.getDate())}function EL(n){const r=new Date(n.year,n.month-1,n.day,12);return isNaN(r.getTime())||r.setFullYear(n.year),r}function tre(){return new g5e}class Tb{}Tb.\u0275fac=function(r){return new(r||Tb)},Tb.\u0275prov=Dn({token:Tb,factory:function(){return tre()},providedIn:"root"}),Tb.ngInjectableDef=Dn({factory:tre,token:Tb,providedIn:"root"});let g5e=(()=>{class n extends Tb{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,i="d",o=1){let a=EL(e),s=!0,l=a.getMonth();switch(i){case"y":a.setFullYear(a.getFullYear()+o);break;case"m":l+=o,a.setMonth(l),l%=12,l<0&&(l+=12);break;case"d":a.setDate(a.getDate()+o),s=!1;break;default:return e}return s&&a.getMonth()!==l&&a.setDate(0),ere(a)}getPrev(e,i="d",o=1){return this.getNext(e,i,-o)}getWeekday(e){let o=EL(e).getDay();return 0===o?7:o}getWeekNumber(e,i){7===i&&(i=0);const s=EL(e[(11-i)%7]);s.setDate(s.getDate()+4-(s.getDay()||7));const l=s.getTime();return s.setMonth(0),s.setDate(1),Math.floor(Math.round((l-s.getTime())/864e5)/7)+1}getToday(){return ere(new Date)}isValid(e){if(!(e&&fh(e.year)&&fh(e.month)&&fh(e.day)&&0!==e.year))return!1;const i=EL(e);return!isNaN(i.getTime())&&i.getFullYear()===e.year&&i.getMonth()+1===e.month&&i.getDate()===e.day}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();function eO(n,r){return!function _5e(n,r){return!n&&!r||!!n&&!!r&&n.equals(r)}(n,r)}function nre(n,r){return!(!n&&!r||n&&r&&n.year===r.year&&n.month===r.month)}function IL(n,r,e){return n&&r&&n.before(r)?r:n&&e&&n.after(e)?e:n}function Qz(n,r){const{minDate:e,maxDate:i,disabled:o,markDisabled:a}=r;return!(!G3(n)||o||a&&a(n,{year:n.year,month:n.month})||e&&n.before(e)||i&&n.after(i))}function ire(n){return new S5e(n)}class Cv{getDayNumerals(r){return`${r.day}`}getWeekNumerals(r){return`${r}`}getYearNumerals(r){return`${r}`}}Cv.\u0275fac=function(r){return new(r||Cv)},Cv.\u0275prov=Dn({token:Cv,factory:function(r){let e=null;return e=r?new r:ire(en(mg)),e},providedIn:"root"}),Cv.ngInjectableDef=Dn({factory:function(){return ire(en(mg))},token:Cv,providedIn:"root"});let S5e=(()=>{class n extends Cv{constructor(e){super(),this._locale=e;const i=Aq(e,Mp.Standalone,Ac.Short);this._weekdaysShort=i.map((o,a)=>i[(a+1)%7]),this._monthsShort=f9(e,Mp.Standalone,Ac.Abbreviated),this._monthsFull=f9(e,Mp.Standalone,Ac.Wide)}getWeekdayShortName(e){return this._weekdaysShort[e-1]}getMonthShortName(e){return this._monthsShort[e-1]}getMonthFullName(e){return this._monthsFull[e-1]}getDayAriaLabel(e){return xq(new Date(e.year,e.month-1,e.day),"fullDate",this._locale)}}return n.\u0275fac=function(e){return new(e||n)(en(mg))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),W3=(()=>{class n{constructor(e,i){this._calendar=e,this._i18n=i,this._model$=new Fe,this._select$=new Fe,this._state={disabled:!1,displayMonths:1,firstDayOfWeek:1,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectBoxes:{years:[],months:[]},selectedDate:null}}get model$(){return this._model$.pipe(Fo(e=>e.months.length>0))}get select$(){return this._select$.pipe(Fo(e=>null!==e))}set dayTemplateData(e){this._state.dayTemplateData!==e&&this._nextState({dayTemplateData:e})}set disabled(e){this._state.disabled!==e&&this._nextState({disabled:e})}set displayMonths(e){fh(e=yg(e))&&e>0&&this._state.displayMonths!==e&&this._nextState({displayMonths:e})}set firstDayOfWeek(e){fh(e=yg(e))&&e>=0&&this._state.firstDayOfWeek!==e&&this._nextState({firstDayOfWeek:e})}set focusVisible(e){this._state.focusVisible!==e&&!this._state.disabled&&this._nextState({focusVisible:e})}set maxDate(e){const i=this.toValidDate(e,null);eO(this._state.maxDate,i)&&this._nextState({maxDate:i})}set markDisabled(e){this._state.markDisabled!==e&&this._nextState({markDisabled:e})}set minDate(e){const i=this.toValidDate(e,null);eO(this._state.minDate,i)&&this._nextState({minDate:i})}set navigation(e){this._state.navigation!==e&&this._nextState({navigation:e})}set outsideDays(e){this._state.outsideDays!==e&&this._nextState({outsideDays:e})}focus(e){!this._state.disabled&&this._calendar.isValid(e)&&eO(this._state.focusDate,e)&&this._nextState({focusDate:e})}focusMove(e,i){this.focus(this._calendar.getNext(this._state.focusDate,e,i))}focusSelect(){Qz(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const i=this.toValidDate(e,this._calendar.getToday());!this._state.disabled&&(!this._state.firstDate||nre(this._state.firstDate,e))&&this._nextState({firstDate:i})}select(e,i={}){const o=this.toValidDate(e,null);this._state.disabled||(eO(this._state.selectedDate,o)&&this._nextState({selectedDate:o}),i.emitEvent&&Qz(o,this._state)&&this._select$.next(o))}toValidDate(e,i){const o=Cg.from(e);return void 0===i&&(i=this._calendar.getToday()),this._calendar.isValid(o)?o:i}_nextState(e){const i=this._updateState(e);this._patchContexts(i),this._state=i,this._model$.next(this._state)}_patchContexts(e){const{months:i,displayMonths:o,selectedDate:a,focusDate:s,focusVisible:l,disabled:d,outsideDays:f}=e;e.months.forEach(C=>{C.weeks.forEach(M=>{M.days.forEach(T=>{s&&(T.context.focused=s.equals(T.date)&&l),T.tabindex=!d&&T.date.equals(s)&&s.month===C.number?0:-1,!0===d&&(T.context.disabled=!0),void 0!==a&&(T.context.selected=null!==a&&a.equals(T.date)),C.number!==T.date.month&&(T.hidden="hidden"===f||"collapsed"===f||o>1&&T.date.after(i[0].firstDate)&&T.date.before(i[o-1].lastDate))})})})}_updateState(e){const i=Object.assign({},this._state,e);let o=i.firstDate;if(("minDate"in e||"maxDate"in e)&&(function v5e(n,r){if(r&&n&&r.before(n))throw new Error(`'maxDate' ${r} should be greater than 'minDate' ${n}`)}(i.minDate,i.maxDate),i.focusDate=IL(i.focusDate,i.minDate,i.maxDate),i.firstDate=IL(i.firstDate,i.minDate,i.maxDate),o=i.focusDate),"disabled"in e&&(i.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(o=i.selectedDate),"focusVisible"in e||"focusDate"in e&&(i.focusDate=IL(i.focusDate,i.minDate,i.maxDate),o=i.focusDate,0!==i.months.length&&!i.focusDate.before(i.firstDate)&&!i.focusDate.after(i.lastDate)))return i;if("firstDate"in e&&(i.firstDate=IL(i.firstDate,i.minDate,i.maxDate),o=i.firstDate),o){const s=function w5e(n,r,e,i,o){const{displayMonths:a,months:s}=e,l=s.splice(0,s.length);return Array.from({length:a},(f,C)=>{const M=Object.assign(n.getNext(r,"m",C),{day:1});if(s[C]=null,!o){const T=l.findIndex(F=>F.firstDate.equals(M));-1!==T&&(s[C]=l.splice(T,1)[0])}return M}).forEach((f,C)=>{null===s[C]&&(s[C]=function x5e(n,r,e,i,o={}){const{dayTemplateData:a,minDate:s,maxDate:l,firstDayOfWeek:d,markDisabled:f,outsideDays:C}=e,M=n.getToday();o.firstDate=null,o.lastDate=null,o.number=r.month,o.year=r.year,o.weeks=o.weeks||[],o.weekdays=o.weekdays||[],r=function M5e(n,r,e){const i=n.getDaysPerWeek(),o=new Cg(r.year,r.month,1),a=n.getWeekday(o)%i;return n.getPrev(o,"d",(i+a-e)%i)}(n,r,d);for(let T=0;Tce.date),d),F.collapsed="collapsed"===C&&pe[0].date.month!==o.number&&pe[pe.length-1].date.month!==o.number}return o}(n,f,e,i,l.shift()||{}))}),s}(this._calendar,o,i,this._i18n,"dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e);i.months=s,i.firstDate=s.length>0?s[0].firstDate:void 0,i.lastDate=s.length>0?s[s.length-1].lastDate:void 0,"selectedDate"in e&&!Qz(i.selectedDate,i)&&(i.selectedDate=null),"firstDate"in e&&(void 0===i.focusDate||i.focusDate.before(i.firstDate)||i.focusDate.after(i.lastDate))&&(i.focusDate=o);const l=!this._state.firstDate||this._state.firstDate.year!==i.firstDate.year,d=!this._state.firstDate||this._state.firstDate.month!==i.firstDate.month;"select"===i.navigation?(("minDate"in e||"maxDate"in e||0===i.selectBoxes.years.length||l)&&(i.selectBoxes.years=function y5e(n,r,e){if(!n)return[];const i=r?Math.max(r.year,n.year-500):n.year-10,a=(e?Math.min(e.year,n.year+500):n.year+10)-i+1,s=Array(a);for(let l=0;ls===e.month);o=o.slice(a)}if(i&&r.year===i.year){const a=o.findIndex(s=>s===i.month);o=o.slice(0,a+1)}return o}(this._calendar,i.firstDate,i.minDate,i.maxDate))):i.selectBoxes={years:[],months:[]},("arrows"===i.navigation||"select"===i.navigation)&&(d||l||"minDate"in e||"maxDate"in e||"disabled"in e)&&(i.prevDisabled=i.disabled||function A5e(n,r,e){const i=Object.assign(n.getPrev(r,"m"),{day:1});return e&&(i.year===e.year&&i.month{class n{constructor(e,i){this._service=e,this._calendar=i,e.model$.subscribe(o=>{this._minDate=o.minDate,this._maxDate=o.maxDate,this._firstViewDate=o.firstDate,this._lastViewDate=o.lastDate})}processKey(e){switch(e.which){case sl.PageUp:this._service.focusMove(e.shiftKey?"y":"m",-1);break;case sl.PageDown:this._service.focusMove(e.shiftKey?"y":"m",1);break;case sl.End:this._service.focus(e.shiftKey?this._maxDate:this._lastViewDate);break;case sl.Home:this._service.focus(e.shiftKey?this._minDate:this._firstViewDate);break;case sl.ArrowLeft:this._service.focusMove("d",-1);break;case sl.ArrowUp:this._service.focusMove("d",-this._calendar.getDaysPerWeek());break;case sl.ArrowRight:this._service.focusMove("d",1);break;case sl.ArrowDown:this._service.focusMove("d",this._calendar.getDaysPerWeek());break;case sl.Enter:case sl.Space:this._service.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(en(W3),en(Tb))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const LS={PREV:0,NEXT:1};LS[LS.PREV]="PREV",LS[LS.NEXT]="NEXT";class UA{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}}function ore(){return new T5e}UA.\u0275fac=function(r){return new(r||UA)},UA.\u0275prov=Dn({token:UA,factory:UA.\u0275fac,providedIn:"root"}),UA.ngInjectableDef=Dn({factory:function(){return new UA},token:UA,providedIn:"root"});class zA{}zA.\u0275fac=function(r){return new(r||zA)},zA.\u0275prov=Dn({token:zA,factory:function(){return ore()},providedIn:"root"}),zA.ngInjectableDef=Dn({factory:ore,token:zA,providedIn:"root"});let T5e=(()=>{class n extends zA{fromModel(e){return e&&fh(e.year)&&fh(e.month)&&fh(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&fh(e.year)&&fh(e.month)&&fh(e.day)?{year:e.year,month:e.month,day:e.day}:null}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const D5e={provide:Rc,useExisting:ue(()=>are),multi:!0};let are=(()=>{class n{constructor(e,i,o,a,s,l,d,f,C){this._keyMapService=e,this._service=i,this._calendar=o,this.i18n=a,this._cd=l,this._elementRef=d,this._ngbDateAdapter=f,this._ngZone=C,this._destroyed$=new Fe,this.navigate=new Cn,this.select=new Cn,this.onChange=M=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate"].forEach(M=>this[M]=s[M]),i.select$.pipe(ma(this._destroyed$)).subscribe(M=>{this.select.emit(M)}),i.model$.pipe(ma(this._destroyed$)).subscribe(M=>{const T=M.firstDate,F=this.model?this.model.firstDate:null;let pe=!1;if(!T.equals(F)&&(this.navigate.emit({current:F?{year:F.year,month:F.month}:null,next:{year:T.year,month:T.month},preventDefault:()=>pe=!0}),pe&&null!==F))return void this._service.open(F);const ce=M.selectedDate,fe=M.focusDate,Pe=this.model?this.model.focusDate:null;this.model=M,eO(ce,this._controlValue)&&(this._controlValue=ce,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(ce))),eO(fe,Pe)&&Pe&&M.focusVisible&&this.focus(),l.markForCheck()})}focus(){this._ngZone.onStable.asObservable().pipe(Oa(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(Cg.from(e?e.day?e:Object.assign({},e,{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{or(dd(this._monthsEl.nativeElement,"focusin"),dd(this._monthsEl.nativeElement,"focusout")).pipe(Fo(({target:o,relatedTarget:a})=>!(Uie(o,"ngb-dp-day")&&Uie(a,"ngb-dp-day"))),ma(this._destroyed$)).subscribe(({type:o})=>this._ngZone.run(()=>this._service.focusVisible="focusin"===o))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){void 0===this.model&&(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].forEach(e=>this._service[e]=this[e]),this.navigateTo(this.startDate))}ngOnChanges(e){if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].filter(i=>i in e).forEach(i=>this._service[i]=this[i]),"startDate"in e){const{currentValue:i,previousValue:o}=e.startDate;nre(o,i)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onKeyDown(e){this._keyMapService.processKey(e)}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case LS.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case LS.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.disabled=e}writeValue(e){this._controlValue=Cg.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}}return n.\u0275fac=function(e){return new(e||n)(U(rre),U(W3),U(Tb),U(Cv),U(UA),U(Go),U(gr),U(zA),U(Zo))},n.\u0275cmp=wn({type:n,selectors:[["ngb-datepicker"]],viewQuery:function(e,i){if(1&e&&jr(IFe,7),2&e){let o;Ai(o=wi())&&(i._monthsEl=o.first)}},inputs:{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},outputs:{navigate:"navigate",select:"select"},exportAs:["ngbDatepicker"],features:[lo([D5e,W3,rre]),vo],decls:8,vars:3,consts:[["dt",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-months",3,"keydown"],["months",""],["ngFor","",3,"ngForOf"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month","dayTemplate","showWeekdays","showWeekNumbers","select"],[1,"ngb-dp-month-name"]],template:function(e,i){1&e&&(O(0,FFe,1,5,"ng-template",null,0,aa),b(2,"div",1),O(3,RFe,1,7,"ngb-datepicker-navigation",2),y(),b(4,"div",3,4),Me("keydown",function(a){return i.onKeyDown(a)}),O(6,LFe,3,5,"ng-template",5),y(),O(7,NFe,0,0,"ng-template",6)),2&e&&(p(3),m("ngIf","none"!==i.navigation),p(3),m("ngForOf",i.model.months),p(1),m("ngTemplateOutlet",i.footerTemplate))},dependencies:function(){return[Oo,rr,nm,P5e,O5e,N5e]},styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month-view{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"],encapsulation:2,changeDetection:0}),n})(),P5e=(()=>{class n{constructor(e){this.i18n=e,this.select=new Cn}doSelect(e){!e.context.disabled&&!e.hidden&&this.select.emit(e.date)}}return n.\u0275fac=function(e){return new(e||n)(U(Cv))},n.\u0275cmp=wn({type:n,selectors:[["ngb-datepicker-month-view"]],hostAttrs:["role","grid"],inputs:{dayTemplate:"dayTemplate",month:"month",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers"},outputs:{select:"select"},decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(O(0,UFe,3,2,"div",0),O(1,WFe,1,1,"ng-template",1)),2&e&&(m("ngIf",i.showWeekdays),p(1),m("ngForOf",i.month.weeks))},dependencies:[Oo,rr,nm],styles:['ngb-datepicker-month-view{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default}.ngb-dp-day[tabindex="0"]{z-index:1}'],encapsulation:2}),n})(),O5e=(()=>{class n{constructor(e){this.i18n=e,this.navigation=LS,this.months=[],this.navigate=new Cn,this.select=new Cn}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}return n.\u0275fac=function(e){return new(e||n)(U(Cv))},n.\u0275cmp=wn({type:n,selectors:[["ngb-datepicker-navigation"]],inputs:{months:"months",date:"date",disabled:"disabled",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},decls:8,vars:4,consts:function(){let r,e,i,o;return r=$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,e=$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,i=$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,o=$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,[[1,"ngb-dp-arrow"],["type","button","aria-label",r,"title",e,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",i,"title",o,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(e,i){1&e&&(b(0,"div",0)(1,"button",1),Me("click",function(a){return i.onClickPrev(a)}),be(2,"span",2),y()(),O(3,QFe,1,4,"ngb-datepicker-navigation-select",3),O(4,JFe,1,1,null,4),b(5,"div",5)(6,"button",6),Me("click",function(a){return i.onClickNext(a)}),be(7,"span",2),y()()),2&e&&(p(1),m("disabled",i.prevDisabled),p(2),m("ngIf",i.showSelect),p(1),m("ngIf",!i.showSelect),p(2),m("disabled",i.nextDisabled))},dependencies:function(){return[Oo,rr,H5e]},styles:["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"],encapsulation:2,changeDetection:0}),n})();const FL=(n,r)=>!!r&&r.some(e=>e.contains(n)),sre=(n,r)=>!r||null!=function c5e(n,r){return r?n.closest(r):null}(n,r);let lre=!1;function Q3(n,r,e,i,o,a,s,l){e&&n.runOutsideAngular((n=>lre?()=>setTimeout(()=>n(),100):n)(()=>{const f=dd(r,"keydown").pipe(ma(o),Fo(T=>T.which===sl.Escape),Md(T=>T.preventDefault())),C=dd(r,"mousedown").pipe(Ct(T=>{const F=T.target;return 2!==T.button&&!FL(F,s)&&("inside"===e?FL(F,a)&&sre(F,l):"outside"===e?!FL(F,a):sre(F,l)||!FL(F,a))}),ma(o));WJ([f,dd(r,"mouseup").pipe(Vz(C),Fo(([T,F])=>F),XP(0),ma(o))]).subscribe(()=>n.run(i))}))}typeof navigator<"u"&&(lre=!!navigator.userAgent&&/iPad|iPhone|iPod/.test(navigator.userAgent));const E5e=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function cre(n){const r=Array.from(n.querySelectorAll(E5e)).filter(e=>-1!==e.tabIndex);return[r[0],r[r.length-1]]}const dre=(n,r,e,i=!1)=>{n.runOutsideAngular(()=>{const o=dd(r,"focusin").pipe(ma(e),Ct(a=>a.target));dd(r,"keydown").pipe(ma(e),Fo(a=>a.which===sl.Tab),Vz(o)).subscribe(([a,s])=>{const[l,d]=cre(r);(s===l||s===r)&&a.shiftKey&&(d.focus(),a.preventDefault()),s===d&&!a.shiftKey&&(l.focus(),a.preventDefault())}),i&&dd(r,"click").pipe(ma(e),Vz(o),Ct(a=>a[1])).subscribe(a=>a.focus())})},F5e=/\s+/,ure=new class I5e{getAllStyles(r){return window.getComputedStyle(r)}getStyle(r,e){return this.getAllStyles(r)[e]}isStaticPositioned(r){return"static"===(this.getStyle(r,"position")||"static")}offsetParent(r){let e=r.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(r,e=!0){let i,o={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(r,"position"))i=r.getBoundingClientRect(),i={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{const a=this.offsetParent(r);i=this.offset(r,!1),a!==document.documentElement&&(o=this.offset(a,!1)),o.top+=a.clientTop,o.left+=a.clientLeft}return i.top-=o.top,i.bottom-=o.top,i.left-=o.left,i.right-=o.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}offset(r,e=!0){const i=r.getBoundingClientRect(),o_top=window.pageYOffset-document.documentElement.clientTop,o_left=window.pageXOffset-document.documentElement.clientLeft;let a={height:i.height||r.offsetHeight,width:i.width||r.offsetWidth,top:i.top+o_top,bottom:i.bottom+o_top,left:i.left+o_left,right:i.right+o_left};return e&&(a.height=Math.round(a.height),a.width=Math.round(a.width),a.top=Math.round(a.top),a.bottom=Math.round(a.bottom),a.left=Math.round(a.left),a.right=Math.round(a.right)),a}positionElements(r,e,i,o){const[a="top",s="center"]=i.split("-"),l=o?this.offset(r,!1):this.position(r,!1),d=this.getAllStyles(e),f=parseFloat(d.marginTop),C=parseFloat(d.marginBottom),M=parseFloat(d.marginLeft),T=parseFloat(d.marginRight);let F=0,pe=0;switch(a){case"top":F=l.top-(e.offsetHeight+f+C);break;case"bottom":F=l.top+l.height;break;case"left":pe=l.left-(e.offsetWidth+M+T);break;case"right":pe=l.left+l.width}switch(s){case"top":F=l.top;break;case"bottom":F=l.top+l.height-e.offsetHeight;break;case"left":pe=l.left;break;case"right":pe=l.left+l.width-e.offsetWidth;break;case"center":"top"===a||"bottom"===a?pe=l.left+l.width/2-e.offsetWidth/2:F=l.top+l.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(pe)}px, ${Math.round(F)}px)`;const ce=e.getBoundingClientRect(),fe=document.documentElement,Pe=window.innerHeight||fe.clientHeight,Ne=window.innerWidth||fe.clientWidth;return ce.left>=0&&ce.top>=0&&ce.right<=Ne&&ce.bottom<=Pe}};function K3(n,r,e,i,o){let a=Array.isArray(e)?e:e.split(F5e);const s=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],l=r.classList,d=F=>{const[pe,ce]=F.split("-"),fe=[];return o&&(fe.push(`${o}-${pe}`),ce&&fe.push(`${o}-${pe}-${ce}`),fe.forEach(Pe=>{l.add(Pe)})),fe};o&&s.forEach(F=>{l.remove(`${o}-${F}`)});let f=a.findIndex(F=>"auto"===F);f>=0&&s.forEach(function(F){null==a.find(pe=>-1!==pe.search("^"+F))&&a.splice(f++,1,F)});const C=r.style;C.position="absolute",C.top="0",C.left="0",C["will-change"]="transform";let M,T=!1;for(M of a){let F=d(M);if(ure.positionElements(n,r,M,i)){T=!0;break}o&&F.forEach(pe=>{l.remove(pe)})}return T||(M=a[0],d(M),ure.positionElements(n,r,M,i)),M}function pre(){return new R5e}class Wx{}Wx.\u0275fac=function(r){return new(r||Wx)},Wx.\u0275prov=Dn({token:Wx,factory:function(){return pre()},providedIn:"root"}),Wx.ngInjectableDef=Dn({factory:pre,token:Wx,providedIn:"root"});let R5e=(()=>{class n extends Wx{parse(e){if(e){const i=e.trim().split("-");if(1===i.length&&Wh(i[0]))return{year:yg(i[0]),month:null,day:null};if(2===i.length&&Wh(i[0])&&Wh(i[1]))return{year:yg(i[0]),month:yg(i[1]),day:null};if(3===i.length&&Wh(i[0])&&Wh(i[1])&&Wh(i[2]))return{year:yg(i[0]),month:yg(i[1]),day:yg(i[2])}}return null}format(e){return e?`${e.year}-${Wh(e.month)?ZP(e.month):""}-${Wh(e.day)?ZP(e.day):""}`:""}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const B5e={provide:Rc,useExisting:ue(()=>hre),multi:!0},L5e={provide:Up,useExisting:ue(()=>hre),multi:!0};let hre=(()=>{class n{constructor(e,i,o,a,s,l,d,f,C,M,T){this._parserFormatter=e,this._elRef=i,this._vcRef=o,this._renderer=a,this._cfr=s,this._ngZone=l,this._service=d,this._calendar=f,this._dateAdapter=C,this._document=M,this._changeDetector=T,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"],this.dateSelect=new Cn,this.navigate=new Cn,this.closed=new Cn,this._onChange=F=>{},this._onTouched=()=>{},this._validatorChange=()=>{},this._zoneSubscription=l.onStable.subscribe(()=>this._updatePopupPosition())}get disabled(){return this._disabled}set disabled(e){this._disabled=""===e||e&&"false"!==e,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}registerOnValidatorChange(e){this._validatorChange=e}setDisabledState(e){this.disabled=e}validate(e){const i=e.value;if(null==i)return null;const o=this._fromDateStruct(this._dateAdapter.fromModel(i));return this._calendar.isValid(o)?this.minDate&&o.before(Cg.from(this.minDate))?{ngbDate:{requiredBefore:this.minDate}}:this.maxDate&&o.after(Cg.from(this.maxDate))?{ngbDate:{requiredAfter:this.maxDate}}:void 0:{ngbDate:{invalid:e.value}}}writeValue(e){this._model=this._fromDateStruct(this._dateAdapter.fromModel(e)),this._writeModelValue(this._model)}manualDateChange(e,i=!1){const o=e!==this._inputValue;o&&(this._inputValue=e,this._model=this._fromDateStruct(this._parserFormatter.parse(e))),(o||!i)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):""===e?null:e),i&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){const e=this._cfr.resolveComponentFactory(are);this._cRef=this._vcRef.createComponent(e),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(i=>{this.writeValue(i),this._onChange(i),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&window.document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,dre(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),Q3(this._ngZone,this._document,this.autoClose,()=>this.close(),this.closed,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}}close(){this.isOpen()&&(this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this.closed.emit(),this._changeDetector.markForCheck(),(this._elWithFocus&&this._elWithFocus.focus?this._elWithFocus:this._document.body).focus())}toggle(){this.isOpen()?this.close():this.open()}navigateTo(e){this.isOpen()&&this._cRef.instance.navigateTo(e)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(e){(e.minDate||e.maxDate)&&this._validatorChange()}ngOnDestroy(){this.close(),this._zoneSubscription.unsubscribe()}_applyDatepickerInputs(e){["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekdays","showWeekNumbers"].forEach(i=>{void 0!==this[i]&&(e[i]=this[i])}),e.startDate=this.startDate||this._model}_applyPopupStyling(e){this._renderer.addClass(e,"dropdown-menu"),this._renderer.addClass(e,"show"),"body"===this.container&&this._renderer.addClass(e,"ngb-dp-body")}_subscribeForDatepickerOutputs(e){e.navigate.subscribe(i=>this.navigate.emit(i)),e.select.subscribe(i=>{this.dateSelect.emit(i),(!0===this.autoClose||"inside"===this.autoClose)&&this.close()})}_writeModelValue(e){const i=this._parserFormatter.format(e);this._inputValue=i,this._renderer.setProperty(this._elRef.nativeElement,"value",i),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(e)),this._onTouched())}_fromDateStruct(e){const i=e?new Cg(e.year,e.month,e.day):null;return this._calendar.isValid(i)?i:null}_updatePopupPosition(){if(!this._cRef)return;let e;if(e="string"==typeof this.positionTarget?window.document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!e)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");K3(e,this._cRef.location.nativeElement,this.placement,"body"===this.container)}}return n.\u0275fac=function(e){return new(e||n)(U(Wx),U(gr),U(ac),U(Wl),U($h),U(Zo),U(W3),U(Tb),U(zA),U(Fa),U(Go))},n.\u0275dir=Wn({type:n,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(e,i){1&e&&Me("input",function(a){return i.manualDateChange(a.target.value)})("change",function(a){return i.manualDateChange(a.target.value,!0)})("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()}),2&e&&so("disabled",i.disabled)},inputs:{autoClose:"autoClose",placement:"placement",disabled:"disabled",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[lo([B5e,L5e,W3]),vo]}),n})(),N5e=(()=>{class n{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}return n.\u0275fac=function(e){return new(e||n)(U(Cv))},n.\u0275cmp=wn({type:n,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,i){2&e&&g("bg-primary",i.selected)("text-white",i.selected)("text-muted",i.isMuted())("outside",i.isMuted())("active",i.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:ZFe,decls:1,vars:1,template:function(e,i){1&e&&L(0),2&e&&Xe(i.i18n.getDayNumerals(i.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"],encapsulation:2,changeDetection:0}),n})(),H5e=(()=>{class n{constructor(e,i){this.i18n=e,this._renderer=i,this.select=new Cn,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new Cg(this.date.year,yg(e),1))}changeYear(e){this.select.emit(new Cg(yg(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}return n.\u0275fac=function(e){return new(e||n)(U(Cv),U(Wl))},n.\u0275cmp=wn({type:n,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,i){if(1&e&&(jr(e4e,7,gr),jr(t4e,7,gr)),2&e){let o;Ai(o=wi())&&(i.monthSelect=o.first),Ai(o=wi())&&(i.yearSelect=o.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:6,vars:4,consts:function(){let r,e,i,o;return r=$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,e=$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,i=$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`,o=$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`,[["aria-label",r,"title",e,1,"custom-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",i,"title",o,1,"custom-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(e,i){1&e&&(b(0,"select",0,1),Me("change",function(a){return i.changeMonth(a.target.value)}),O(2,n4e,2,3,"option",2),y(),b(3,"select",3,4),Me("change",function(a){return i.changeYear(a.target.value)}),O(5,i4e,2,2,"option",2),y()),2&e&&(m("disabled",i.disabled),p(2),m("ngForOf",i.months),p(1),m("disabled",i.disabled),p(2),m("ngForOf",i.years))},dependencies:[Oo,fP,mP],styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"],encapsulation:2,changeDetection:0}),n})();new Date(1882,10,12),new Date(2174,10,25);let bre=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs,Vy]}),n})();class jA{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}jA.\u0275fac=function(r){return new(r||jA)},jA.\u0275prov=Dn({token:jA,factory:jA.\u0275fac,providedIn:"root"}),jA.ngInjectableDef=Dn({factory:function(){return new jA},token:jA,providedIn:"root"});let Are=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})();class Jy{constructor(){this.backdrop=!0,this.keyboard=!0}}Jy.\u0275fac=function(r){return new(r||Jy)},Jy.\u0275prov=Dn({token:Jy,factory:Jy.\u0275fac,providedIn:"root"}),Jy.ngInjectableDef=Dn({factory:function(){return new Jy},token:Jy,providedIn:"root"});class VS{constructor(r,e,i){this.nodes=r,this.viewRef=e,this.componentRef=i}}class Zz{constructor(r,e,i,o,a,s){this._type=r,this._injector=e,this._viewContainerRef=i,this._renderer=o,this._componentFactoryResolver=a,this._applicationRef=s}open(r,e){return this._windowRef||(this._contentRef=this._getContentRef(r,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),0,this._injector,this._contentRef.nodes)),this._windowRef}close(){this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,this._contentRef.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null))}_getContentRef(r,e){if(r){if(r instanceof Na){const i=r.createEmbeddedView(e);return this._applicationRef.attachView(i),new VS([i.rootNodes],i)}return new VS([[this._renderer.createText(`${r}`)]])}return new VS([])}}const Q5e=()=>{};class Zy{constructor(r){this._document=r}compensate(){const r=this._getWidth();return this._isPresent(r)?this._adjustBody(r):Q5e}_adjustBody(r){const e=this._document.body,i=e.style.paddingRight,o=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=`${o+r}px`,()=>e.style["padding-right"]=i}_isPresent(r){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=r-.1*r}_getWidth(){const r=this._document.createElement("div");r.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(r);const i=r.getBoundingClientRect().width-r.clientWidth;return e.removeChild(r),i}}Zy.\u0275fac=function(r){return new(r||Zy)(en(Fa))},Zy.\u0275prov=Dn({token:Zy,factory:Zy.\u0275fac,providedIn:"root"}),Zy.ngInjectableDef=Dn({factory:function(){return new Zy(en(Fa))},token:Zy,providedIn:"root"});let K5e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:2,hostBindings:function(e,i){2&e&&J("modal-backdrop fade show"+(i.backdropClass?" "+i.backdropClass:""))},inputs:{backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();class wre{close(r){}dismiss(r){}}class q5e{constructor(r,e,i,o){this._windowCmptRef=r,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=o,r.instance.dismissEvent.subscribe(a=>{this.dismiss(a)}),this.result=new Promise((a,s)=>{this._resolve=a,this._reject=s}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}close(r){this._windowCmptRef&&(this._resolve(r),this._removeModalElements())}_dismiss(r){this._reject(r),this._removeModalElements()}dismiss(r){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(i=>{!1!==i&&this._dismiss(r)},()=>{}):!1!==e&&this._dismiss(r)}else this._dismiss(r)}_removeModalElements(){const r=this._windowCmptRef.location.nativeElement;if(r.parentNode.removeChild(r),this._windowCmptRef.destroy(),this._backdropCmptRef){const e=this._backdropCmptRef.location.nativeElement;e.parentNode.removeChild(e),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null}}const nO={BACKDROP_CLICK:0,ESC:1};nO[nO.BACKDROP_CLICK]="BACKDROP_CLICK",nO[nO.ESC]="ESC";let X5e=(()=>{class n{constructor(e,i,o){this._document=e,this._elRef=i,this._zone=o,this._closed$=new Fe,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Cn}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){const{nativeElement:e}=this._elRef;if(this._zone.runOutsideAngular(()=>{dd(e,"keydown").pipe(ma(this._closed$),Fo(o=>o.which===sl.Escape&&this.keyboard)).subscribe(o=>requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(nO.ESC))}));let i=!1;dd(this._dialogEl.nativeElement,"mousedown").pipe(ma(this._closed$),Md(()=>i=!1),xc(()=>dd(e,"mouseup").pipe(ma(this._closed$),Oa(1))),Fo(({target:o})=>e===o)).subscribe(()=>{i=!0}),dd(e,"click").pipe(ma(this._closed$)).subscribe(({target:o})=>{!0===this.backdrop&&e===o&&!i&&this._zone.run(()=>this.dismiss(nO.BACKDROP_CLICK)),i=!1})}),!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),o=cre(e)[0];(i||o||e).focus()}}ngOnDestroy(){const e=this._document.body,i=this._elWithFocus;let o;o=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>o.focus()),this._elWithFocus=null}),this._closed$.next()}}return n.\u0275fac=function(e){return new(e||n)(U(Fa),U(gr),U(Zo))},n.\u0275cmp=wn({type:n,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&jr(r4e,7),2&e){let o;Ai(o=wi())&&(i._dialogEl=o.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:4,hostBindings:function(e,i){2&e&&(Tr("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy),J("modal fade show d-block"+(i.windowClass?" "+i.windowClass:"")))},inputs:{backdrop:"backdrop",keyboard:"keyboard",ariaLabelledBy:"ariaLabelledBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:JP,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Cs(),b(0,"div",0,1)(2,"div",2),ha(3),y()()),2&e&&J("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+(i.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"],encapsulation:2}),n})();class eC{constructor(r,e,i,o,a,s){this._applicationRef=r,this._injector=e,this._document=i,this._scrollBar=o,this._rendererFactory=a,this._ngZone=s,this._activeWindowCmptHasChanged=new Fe,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];dre(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}open(r,e,i,o){const a=G3(o.container)?this._document.querySelector(o.container):this._document.body,s=this._rendererFactory.createRenderer(null,null),l=this._scrollBar.compensate(),d=()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!a)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);const f=new wre,C=this._getContentRef(r,o.injector||e,i,f,o);let M=!1!==o.backdrop?this._attachBackdrop(r,a):null,T=this._attachWindowComponent(r,a,C),F=new q5e(T,C,M,o.beforeDismiss);return this._registerModalRef(F),this._registerWindowCmpt(T),F.result.then(l,l),F.result.then(d,d),f.close=pe=>{F.close(pe)},f.dismiss=pe=>{F.dismiss(pe)},this._applyWindowOptions(T.instance,o),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),M&&M.instance&&this._applyBackdropOptions(M.instance,o),F}dismissAll(r){this._modalRefs.forEach(e=>e.dismiss(r))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(r,e){let o=r.resolveComponentFactory(K5e).create(this._injector);return this._applicationRef.attachView(o.hostView),e.appendChild(o.location.nativeElement),o}_attachWindowComponent(r,e,i){let a=r.resolveComponentFactory(X5e).create(this._injector,i.nodes);return this._applicationRef.attachView(a.hostView),e.appendChild(a.location.nativeElement),a}_applyWindowOptions(r,e){this._windowAttributes.forEach(i=>{G3(e[i])&&(r[i]=e[i])})}_applyBackdropOptions(r,e){this._backdropAttributes.forEach(i=>{G3(e[i])&&(r[i]=e[i])})}_getContentRef(r,e,i,o,a){return i?i instanceof Na?this._createFromTemplateRef(i,o):function Vie(n){return"string"==typeof n}(i)?this._createFromString(i):this._createFromComponent(r,e,i,o,a):new VS([])}_createFromTemplateRef(r,e){const o=r.createEmbeddedView({$implicit:e,close(a){e.close(a)},dismiss(a){e.dismiss(a)}});return this._applicationRef.attachView(o),new VS([o.rootNodes],o)}_createFromString(r){const e=this._document.createTextNode(`${r}`);return new VS([[e]])}_createFromComponent(r,e,i,o,a){const s=r.resolveComponentFactory(i),l=ql.create({providers:[{provide:wre,useValue:o}],parent:e}),d=s.create(l),f=d.location.nativeElement;return a.scrollable&&f.classList.add("component-host-scrollable"),this._applicationRef.attachView(d.hostView),new VS([[f]],d.hostView,d)}_setAriaHidden(r){const e=r.parentElement;e&&r!==this._document.body&&(Array.from(e.children).forEach(i=>{i!==r&&"SCRIPT"!==i.nodeName&&(this._ariaHiddenValues.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((r,e)=>{r?e.setAttribute("aria-hidden",r):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(r){const e=()=>{const i=this._modalRefs.indexOf(r);i>-1&&this._modalRefs.splice(i,1)};this._modalRefs.push(r),r.result.then(e,e)}_registerWindowCmpt(r){this._windowCmpts.push(r),this._activeWindowCmptHasChanged.next(),r.onDestroy(()=>{const e=this._windowCmpts.indexOf(r);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}}eC.\u0275fac=function(r){return new(r||eC)(en(pv),en(ql),en(Fa),en(Zy),en(iv),en(Zo))},eC.\u0275prov=Dn({token:eC,factory:eC.\u0275fac,providedIn:"root"}),eC.ngInjectableDef=Dn({factory:function(){return new eC(en(pv),en(gd),en(Fa),en(Zy),en(iv),en(Zo))},token:eC,providedIn:"root"});class $A{constructor(r,e,i,o){this._moduleCFR=r,this._injector=e,this._modalStack=i,this._config=o}open(r,e={}){const i=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,r,i)}dismissAll(r){this._modalStack.dismissAll(r)}hasOpenModals(){return this._modalStack.hasOpenModals()}}$A.\u0275fac=function(r){return new(r||$A)(en($h),en(ql),en(eC),en(Jy))},$A.\u0275prov=Dn({token:$A,factory:$A.\u0275fac,providedIn:"root"}),$A.ngInjectableDef=Dn({factory:function(){return new $A(en($h),en(gd),en(eC),en(Jy))},token:$A,providedIn:"root"});let xre=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[$A]}),n})();class YA{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}YA.\u0275fac=function(r){return new(r||YA)},YA.\u0275prov=Dn({token:YA,factory:YA.\u0275fac,providedIn:"root"}),YA.ngInjectableDef=Dn({factory:function(){return new YA},token:YA,providedIn:"root"});let kre=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();class GA{constructor(){this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}}GA.\u0275fac=function(r){return new(r||GA)},GA.\u0275prov=Dn({token:GA,factory:GA.\u0275fac,providedIn:"root"}),GA.ngInjectableDef=Dn({factory:function(){return new GA},token:GA,providedIn:"root"});let Fre=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();class WA{constructor(){this.max=100,this.animated=!1,this.striped=!1,this.showValue=!1}}WA.\u0275fac=function(r){return new(r||WA)},WA.\u0275prov=Dn({token:WA,factory:WA.\u0275fac,providedIn:"root"}),WA.ngInjectableDef=Dn({factory:function(){return new WA},token:WA,providedIn:"root"});let Rre=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();class QA{constructor(){this.max=10,this.readonly=!1,this.resettable=!1}}QA.\u0275fac=function(r){return new(r||QA)},QA.\u0275prov=Dn({token:QA,factory:QA.\u0275fac,providedIn:"root"}),QA.ngInjectableDef=Dn({factory:function(){return new QA},token:QA,providedIn:"root"});const oRe={provide:Rc,useExisting:ue(()=>aRe),multi:!0};let aRe=(()=>{class n{constructor(e,i){this._changeDetectorRef=i,this.contexts=[],this.disabled=!1,this.hover=new Cn,this.leave=new Cn,this.rateChange=new Cn(!0),this.onChange=o=>{},this.onTouched=()=>{},this.max=e.max,this.readonly=e.readonly}ariaValueText(){return`${this.nextRate} out of ${this.max}`}enter(e){!this.readonly&&!this.disabled&&this._updateState(e),this.hover.emit(e)}handleBlur(){this.onTouched()}handleClick(e){this.update(this.resettable&&this.rate===e?0:e)}handleKeyDown(e){switch(e.which){case sl.ArrowDown:case sl.ArrowLeft:this.update(this.rate-1);break;case sl.ArrowUp:case sl.ArrowRight:this.update(this.rate+1);break;case sl.Home:this.update(0);break;case sl.End:this.update(this.max);break;default:return}e.preventDefault()}ngOnChanges(e){e.rate&&this.update(this.rate)}ngOnInit(){this.contexts=Array.from({length:this.max},(e,i)=>({fill:0,index:i})),this._updateState(this.rate)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(e){this.disabled=e}update(e,i=!0){const o=function jz(n,r,e=0){return Math.max(Math.min(n,r),e)}(e,this.max,0);!this.readonly&&!this.disabled&&this.rate!==o&&(this.rate=o,this.rateChange.emit(this.rate)),i&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(e){this.update(e,!1),this._changeDetectorRef.markForCheck()}_getFillValue(e){const i=this.nextRate-e;return i>=1?100:i<1&&i>0?parseInt((100*i).toFixed(2),10):0}_updateState(e){this.nextRate=e,this.contexts.forEach((i,o)=>i.fill=this._getFillValue(o))}}return n.\u0275fac=function(e){return new(e||n)(U(QA),U(Go))},n.\u0275cmp=wn({type:n,selectors:[["ngb-rating"]],contentQueries:function(e,i,o){if(1&e&&Jo(o,Na,5),2&e){let a;Ai(a=wi())&&(i.starTemplateFromContent=a.first)}},hostAttrs:["tabindex","0","role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:4,hostBindings:function(e,i){1&e&&Me("blur",function(){return i.handleBlur()})("keydown",function(a){return i.handleKeyDown(a)})("mouseleave",function(){return i.reset()}),2&e&&Tr("aria-valuemax",i.max)("aria-valuenow",i.nextRate)("aria-valuetext",i.ariaValueText())("aria-disabled",!!i.readonly||null)},inputs:{max:"max",readonly:"readonly",rate:"rate",resettable:"resettable",starTemplate:"starTemplate"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},features:[lo([oRe]),vo],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"sr-only"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(O(0,E4e,1,1,"ng-template",null,0,aa),O(2,F4e,4,5,"ng-template",1)),2&e&&(p(2),m("ngForOf",i.contexts))},dependencies:[Oo,nm],encapsulation:2,changeDetection:0}),n})(),Bre=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();class KA{constructor(){this.justify="start",this.orientation="horizontal",this.type="tabs"}}KA.\u0275fac=function(r){return new(r||KA)},KA.\u0275prov=Dn({token:KA,factory:KA.\u0275fac,providedIn:"root"}),KA.ngInjectableDef=Dn({factory:function(){return new KA},token:KA,providedIn:"root"});let Vre=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();class Ure{constructor(r,e,i){this.hour=yg(r),this.minute=yg(e),this.second=yg(i)}changeHour(r=1){this.updateHour((isNaN(this.hour)?0:this.hour)+r)}updateHour(r){this.hour=Wh(r)?(r<0?24+r:r)%24:NaN}changeMinute(r=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+r)}updateMinute(r){Wh(r)?(this.minute=r%60<0?60+r%60:r%60,this.changeHour(Math.floor(r/60))):this.minute=NaN}changeSecond(r=1){this.updateSecond((isNaN(this.second)?0:this.second)+r)}updateSecond(r){Wh(r)?(this.second=r<0?60+r%60:r%60,this.changeMinute(Math.floor(r/60))):this.second=NaN}isValid(r=!0){return Wh(this.hour)&&Wh(this.minute)&&(!r||Wh(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}class qA{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}}function zre(){return new lRe}qA.\u0275fac=function(r){return new(r||qA)},qA.\u0275prov=Dn({token:qA,factory:qA.\u0275fac,providedIn:"root"}),qA.ngInjectableDef=Dn({factory:function(){return new qA},token:qA,providedIn:"root"});class Qx{}Qx.\u0275fac=function(r){return new(r||Qx)},Qx.\u0275prov=Dn({token:Qx,factory:function(){return zre()},providedIn:"root"}),Qx.ngInjectableDef=Dn({factory:zre,token:Qx,providedIn:"root"});let lRe=(()=>{class n extends Qx{fromModel(e){return e&&fh(e.hour)&&fh(e.minute)?{hour:e.hour,minute:e.minute,second:fh(e.second)?e.second:null}:null}toModel(e){return e&&fh(e.hour)&&fh(e.minute)?{hour:e.hour,minute:e.minute,second:fh(e.second)?e.second:null}:null}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();function jre(n){return new cRe(n)}class Kx{}Kx.\u0275fac=function(r){return new(r||Kx)},Kx.\u0275prov=Dn({token:Kx,factory:function(r){let e=null;return e=r?new r:jre(en(mg)),e},providedIn:"root"}),Kx.ngInjectableDef=Dn({factory:function(){return jre(en(mg))},token:Kx,providedIn:"root"});let cRe=(()=>{class n extends Kx{constructor(e){super(),this._periods=Cq(e,Mp.Standalone,Ac.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}}return n.\u0275fac=function(e){return new(e||n)(en(mg))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const dRe={provide:Rc,useExisting:ue(()=>uRe),multi:!0};let uRe=(()=>{class n{constructor(e,i,o,a){this._config=e,this._ngbTimeAdapter=i,this._cd=o,this.i18n=a,this.onChange=s=>{},this.onTouched=()=>{},this.meridian=e.meridian,this.spinners=e.spinners,this.seconds=e.seconds,this.hourStep=e.hourStep,this.minuteStep=e.minuteStep,this.secondStep=e.secondStep,this.disabled=e.disabled,this.readonlyInputs=e.readonlyInputs,this.size=e.size}set hourStep(e){this._hourStep=fh(e)?e:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(e){this._minuteStep=fh(e)?e:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(e){this._secondStep=fh(e)?e:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(e){const i=this._ngbTimeAdapter.fromModel(e);this.model=i?new Ure(i.hour,i.minute,i.second):new Ure,!this.seconds&&(!i||!Wh(i.second))&&(this.model.second=0),this._cd.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}changeHour(e){this.model.changeHour(e),this.propagateModelChange()}changeMinute(e){this.model.changeMinute(e),this.propagateModelChange()}changeSecond(e){this.model.changeSecond(e),this.propagateModelChange()}updateHour(e){const i=this.model.hour>=12,o=yg(e);this.model.updateHour(this.meridian&&(i&&o<12||!i&&12===o)?o+12:o),this.propagateModelChange()}updateMinute(e){this.model.updateMinute(yg(e)),this.propagateModelChange()}updateSecond(e){this.model.updateSecond(yg(e)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatHour(e){return Wh(e)?ZP(this.meridian?e%12==0?12:e%12:e%24):ZP(NaN)}formatMinSec(e){return ZP(e)}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(e){e.seconds&&!this.seconds&&this.model&&!Wh(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(e=!0){e&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}return n.\u0275fac=function(e){return new(e||n)(U(qA),U(Qx),U(Go),U(Kx))},n.\u0275cmp=wn({type:n,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},features:[lo([dRe]),vo],decls:16,vars:25,consts:function(){let r,e,i,o,a,s,l,d,f,C,M,T,F,pe;return r=$localize`:@@ngb.timepicker.HH␟ce676ab1d6d98f85c836381cf100a4a91ef95a1f␟4043638465245303811:HH`,e=$localize`:@@ngb.timepicker.hours␟3bbce5fef7e1151da052a4e529453edb340e3912␟8070396816726827304:Hours`,i=$localize`:@@ngb.timepicker.MM␟72c8edf6a50068a05bde70991e36b1e881f4ca54␟1647282246509919852:MM`,o=$localize`:@@ngb.timepicker.minutes␟41e62daa962947c0d23ded0981975d1bddf0bf38␟5531237363767747080:Minutes`,a=$localize`:@@ngb.timepicker.increment-hours␟cb74bc1d625a6c1742f0d7d47306cf495780c218␟5939278348542933629:Increment hours`,s=$localize`:@@ngb.timepicker.decrement-hours␟147c7a19429da7d999e247d22e33fee370b1691b␟3651829882940481818:Decrement hours`,l=$localize`:@@ngb.timepicker.increment-minutes␟f5a4a3bc05e053f6732475d0e74875ec01c3a348␟180147720391025024:Increment minutes`,d=$localize`:@@ngb.timepicker.decrement-minutes␟c1a6899e529c096da5b660385d4e77fe1f7ad271␟7447789825403243588:Decrement minutes`,f=$localize`:@@ngb.timepicker.SS␟ebe38d36a40a2383c5fefa9b4608ffbda08bd4a3␟3628127143071124194:SS`,C=$localize`:@@ngb.timepicker.seconds␟4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c␟8874012390997067175:Seconds`,M=$localize`:@@ngb.timepicker.increment-seconds␟912322ecee7d659d04dcf494a70e22e49d334b26␟5364772110539092174:Increment seconds`,T=$localize`:@@ngb.timepicker.decrement-seconds␟5db47ac104294243a70eb9124fbea9d0004ddf69␟753633511487974857:Decrement seconds`,F=$localize`:@@ngb.timepicker.PM␟8d6e691e10306c1b34c6b26805151aaea320ef7f␟3564199131264287502:${"\ufffd0\ufffd"}:INTERPOLATION:`,pe=$localize`:@@ngb.timepicker.AM␟69a1f176a93998876952adac57c3bc3863b6105e␟4592818992509942761:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","placeholder",r,"aria-label",e,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","placeholder",i,"aria-label",o,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"sr-only"],a,[1,"chevron","ngb-tp-chevron","bottom"],s,l,d,[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","placeholder",f,"aria-label",C,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","keydown.ArrowUp","keydown.ArrowDown"],M,T,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],F,pe]},template:function(e,i){1&e&&(b(0,"fieldset",0)(1,"div",1)(2,"div",2),O(3,V4e,4,7,"button",3),b(4,"input",4),Me("change",function(a){return i.updateHour(a.target.value)})("keydown.ArrowUp",function(a){return i.changeHour(i.hourStep),a.preventDefault()})("keydown.ArrowDown",function(a){return i.changeHour(-i.hourStep),a.preventDefault()}),y(),O(5,U4e,4,7,"button",3),y(),b(6,"div",5),L(7,":"),y(),b(8,"div",6),O(9,z4e,4,7,"button",3),b(10,"input",7),Me("change",function(a){return i.updateMinute(a.target.value)})("keydown.ArrowUp",function(a){return i.changeMinute(i.minuteStep),a.preventDefault()})("keydown.ArrowDown",function(a){return i.changeMinute(-i.minuteStep),a.preventDefault()}),y(),O(11,j4e,4,7,"button",3),y(),O(12,$4e,2,0,"div",8),O(13,W4e,4,9,"div",9),O(14,Q4e,1,0,"div",8),O(15,X4e,5,9,"div",10),y()()),2&e&&(g("disabled",i.disabled),m("disabled",i.disabled),p(3),m("ngIf",i.spinners),p(1),g("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),m("value",i.formatHour(null==i.model?null:i.model.hour))("readOnly",i.readonlyInputs)("disabled",i.disabled),p(1),m("ngIf",i.spinners),p(4),m("ngIf",i.spinners),p(1),g("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),m("value",i.formatMinSec(null==i.model?null:i.model.minute))("readOnly",i.readonlyInputs)("disabled",i.disabled),p(1),m("ngIf",i.spinners),p(1),m("ngIf",i.seconds),p(1),m("ngIf",i.seconds),p(1),m("ngIf",i.meridian),p(1),m("ngIf",i.meridian))},dependencies:[rr],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron::before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}'],encapsulation:2}),n})(),$re=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();class XA{constructor(){this.autohide=!0,this.delay=500,this.ariaLive="polite"}}XA.\u0275fac=function(r){return new(r||XA)},XA.\u0275prov=Dn({token:XA,factory:XA.\u0275fac,providedIn:"root"}),XA.ngInjectableDef=Dn({factory:function(){return new XA},token:XA,providedIn:"root"});let Yre=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();class JA{constructor(){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}}JA.\u0275fac=function(r){return new(r||JA)},JA.\u0275prov=Dn({token:JA,factory:JA.\u0275fac,providedIn:"root"}),JA.ngInjectableDef=Dn({factory:function(){return new JA},token:JA,providedIn:"root"});let Gre=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})(),mRe=(()=>{class n{constructor(){this.highlightClass="ngb-highlight"}ngOnChanges(e){const i=Y3(this.result),a=(Array.isArray(this.term)?this.term:[this.term]).map(s=>function l5e(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(Y3(s))).filter(s=>s);this.parts=a.length?i.split(new RegExp(`(${a.join("|")})`,"gmi")):[i]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term"},features:[vo],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(e,i){1&e&&O(0,i5e,3,2,"ng-template",0),2&e&&m("ngForOf",i.parts)},dependencies:[Oo,rr],styles:[".ngb-highlight{font-weight:700}"],encapsulation:2,changeDetection:0}),n})(),gRe=(()=>{class n{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Y3,this.selectEvent=new Cn,this.activeChangeEvent=new Cn}hasActive(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox",1,"dropdown-menu","show"],hostVars:1,hostBindings:function(e,i){1&e&&Me("mousedown",function(a){return a.preventDefault()}),2&e&&so("id",i.id)},inputs:{focusFirst:"focusFirst",formatter:"formatter",id:"id",results:"results",term:"term",resultTemplate:"resultTemplate"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(O(0,r5e,1,2,"ng-template",null,0,aa),O(2,s5e,2,9,"ng-template",1)),2&e&&(p(2),m("ngForOf",i.results))},dependencies:[Oo,nm,mRe],encapsulation:2}),n})();const Wre=new Pi("live announcer delay",{providedIn:"root",factory:function _Re(){return 100}});function Qre(n,r=!1){let e=n.body.querySelector("#ngb-live");return null==e&&r&&(e=n.createElement("div"),e.setAttribute("id","ngb-live"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.classList.add("sr-only"),n.body.appendChild(e)),e}class ZA{constructor(r,e){this._document=r,this._delay=e}ngOnDestroy(){const r=Qre(this._document);r&&r.parentElement.removeChild(r)}say(r){const e=Qre(this._document,!0),i=this._delay;e.textContent="";const o=()=>e.textContent=r;null===i?o():setTimeout(o,i)}}ZA.\u0275fac=function(r){return new(r||ZA)(en(Fa),en(Wre))},ZA.\u0275prov=Dn({token:ZA,factory:ZA.\u0275fac,providedIn:"root"}),ZA.ngInjectableDef=Dn({factory:function(){return new ZA(en(Fa),en(Wre))},token:ZA,providedIn:"root"});class ew{constructor(){this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}ew.\u0275fac=function(r){return new(r||ew)},ew.\u0275prov=Dn({token:ew,factory:ew.\u0275fac,providedIn:"root"}),ew.ngInjectableDef=Dn({factory:function(){return new ew},token:ew,providedIn:"root"});const vRe={provide:Rc,useExisting:ue(()=>yRe),multi:!0};let bRe=0,yRe=(()=>{class n{constructor(e,i,o,a,s,l,d,f,C,M,T,F){this._elementRef=e,this._viewContainerRef=i,this._renderer=o,this._injector=a,this._live=f,this._document=C,this._ngZone=M,this._changeDetector=T,this._applicationRef=F,this._closed$=new Fe,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new Cn,this.popupId="ngb-typeahead-"+bRe++,this._onTouched=()=>{},this._onChange=pe=>{},this.container=l.container,this.editable=l.editable,this.focusFirst=l.focusFirst,this.showHint=l.showHint,this.placement=l.placement,this._valueChanges=dd(e.nativeElement,"input").pipe(Ct(pe=>pe.target.value)),this._resubscribeTypeahead=new Yn(null),this._popupService=new Zz(gRe,a,i,o,s,F),this._zoneSubscription=d.onStable.subscribe(()=>{this.isPopupOpen()&&K3(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)})}ngOnInit(){const i=this._valueChanges.pipe(Md(a=>{this._inputValueBackup=this.showHint?a:null,this._onChange(this.editable?a:void 0)})).pipe(this.ngbTypeahead),o=this._resubscribeTypeahead.pipe(xc(()=>i));this._subscription=this._subscribeToUserInput(o)}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}writeValue(e){this._writeInputValue(this._formatItemForInput(e)),this.showHint&&(this._inputValueBackup=e)}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(e){if(this.isPopupOpen())switch(e.which){case sl.ArrowDown:e.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case sl.ArrowUp:e.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case sl.Enter:case sl.Tab:const i=this._windowRef.instance.getActive();G3(i)&&(e.preventDefault(),e.stopPropagation(),this._selectResult(i)),this._closePopup()}}_openPopup(){this.isPopupOpen()||(this._inputValueBackup=this._elementRef.nativeElement.value,this._windowRef=this._popupService.open(),this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(e=>this._selectResultClosePopup(e)),this._windowRef.instance.activeChangeEvent.subscribe(e=>this.activeDescendant=e),"body"===this.container&&window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),Q3(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement]))}_closePopup(){this._closed$.next(),this._popupService.close(),this._windowRef=null,this.activeDescendant=void 0}_selectResult(e){let i=!1;this.selectItem.emit({item:e,preventDefault:()=>{i=!0}}),this._resubscribeTypeahead.next(null),i||(this.writeValue(e),this._onChange(e))}_selectResultClosePopup(e){this._selectResult(e),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef.instance.hasActive()&&null!=this._inputValueBackup){const e=this._inputValueBackup.toLowerCase(),i=this._formatItemForInput(this._windowRef.instance.getActive());e===i.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+i.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,i.length])):this._writeInputValue(i)}}_formatItemForInput(e){return null!=e&&this.inputFormatter?this.inputFormatter(e):Y3(e)}_writeInputValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",Y3(e))}_subscribeToUserInput(e){return e.subscribe(i=>{i&&0!==i.length?(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=i,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const o=i?i.length:0;this._live.say(0===o?"No results available":`${o} result${1===o?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(ac),U(Wl),U(ql),U($h),U(ew),U(Zo),U(ZA),U(Fa),U(Zo),U(Go),U(pv))},n.\u0275dir=Wn({type:n,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(e,i){1&e&&Me("blur",function(){return i.handleBlur()})("keydown",function(a){return i.handleKeyDown(a)}),2&e&&(so("autocomplete",i.autocomplete),Tr("aria-autocomplete",i.showHint?"both":"list")("aria-activedescendant",i.activeDescendant)("aria-owns",i.isPopupOpen()?i.popupId:null)("aria-expanded",i.isPopupOpen()),g("open",i.isPopupOpen()))},inputs:{autocomplete:"autocomplete",placement:"placement",container:"container",editable:"editable",focusFirst:"focusFirst",showHint:"showHint",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[lo([vRe])]}),n})(),Kre=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();const CRe=[Gie,Wie,Kie,Jie,Zie,bre,Are,xre,kre,Fre,Rre,Bre,Vre,$re,Yre,Gre,Kre];let ARe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[CRe,Gie,Wie,Kie,Jie,Zie,bre,Are,xre,kre,Fre,Rre,Bre,Vre,$re,Yre,Gre,Kre]}),n})();var ej=K(68332),r_=K(17489);const qre=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]];function o_(n,r){return"rgba("+n.concat(r).join(",")+")"}function tj(n,r){return Math.floor(Math.random()*(r-n+1))+n}function nj(n){return{backgroundColor:n.map(r=>o_(r,.6)),borderColor:n.map(()=>"#fff"),pointBackgroundColor:n.map(r=>o_(r,1)),pointBorderColor:n.map(()=>"#fff"),pointHoverBackgroundColor:n.map(r=>o_(r,1)),pointHoverBorderColor:n.map(r=>o_(r,1))}}function Xre(){return[tj(0,255),tj(0,255),tj(0,255)]}function Jre(n){return qre[n]||Xre()}function VL(n){const r=new Array(n);for(let e=0;e{class n{constructor(e,i){this.element=e,this.themeService=i,this.options={},this.chartClick=new Cn,this.chartHover=new Cn,this.old={dataExists:!1,dataLength:0,datasetsExists:!1,datasetsLength:0,datasetsDataObjects:[],datasetsDataLengths:[],colorsExists:!1,colors:[],labelsExist:!1,labels:[],legendExists:!1,legend:{}},this.subs=[]}static registerPlugin(e){ej.Chart.plugins.register(e)}static unregisterPlugin(e){ej.Chart.plugins.unregister(e)}ngOnInit(){this.ctx=this.element.nativeElement.getContext("2d"),this.refresh(),this.subs.push(this.themeService.colorschemesOptions.subscribe(e=>this.themeChanged(e)))}themeChanged(e){this.refresh()}ngDoCheck(){if(!this.chart)return;let e=Jd.Default;const i=o=>{e=o>e?o:e};switch(!!this.data!==this.old.dataExists&&(this.propagateDataToDatasets(this.data),this.old.dataExists=!!this.data,i(Jd.Update)),this.data&&this.data.length!==this.old.dataLength&&(this.old.dataLength=this.data&&this.data.length||0,i(Jd.Update)),!!this.datasets!==this.old.datasetsExists&&(this.old.datasetsExists=!!this.datasets,i(Jd.Update)),this.datasets&&this.datasets.length!==this.old.datasetsLength&&(this.old.datasetsLength=this.datasets&&this.datasets.length||0,i(Jd.Update)),this.datasets&&this.datasets.filter((o,a)=>o.data!==this.old.datasetsDataObjects[a]).length&&(this.old.datasetsDataObjects=this.datasets.map(o=>o.data),i(Jd.Update)),this.datasets&&this.datasets.filter((o,a)=>o.data.length!==this.old.datasetsDataLengths[a]).length&&(this.old.datasetsDataLengths=this.datasets.map(o=>o.data.length),i(Jd.Update)),!!this.colors!==this.old.colorsExists&&(this.old.colorsExists=!!this.colors,this.updateColors(),i(Jd.Update)),this.colors&&this.colors.filter((o,a)=>!this.colorsEqual(o,this.old.colors[a])).length&&(this.old.colors=this.colors.map(o=>this.copyColor(o)),this.updateColors(),i(Jd.Update)),!!this.labels!==this.old.labelsExist&&(this.old.labelsExist=!!this.labels,i(Jd.Update)),this.labels&&this.labels.filter((o,a)=>!this.labelsEqual(o,this.old.labels[a])).length&&(this.old.labels=this.labels.map(o=>this.copyLabel(o)),i(Jd.Update)),!!this.options.legend!==this.old.legendExists&&(this.old.legendExists=!!this.options.legend,i(Jd.Refresh)),this.options.legend&&this.options.legend.position!==this.old.legend.position&&(this.old.legend.position=this.options.legend.position,i(Jd.Refresh)),e){case Jd.Default:break;case Jd.Update:this.update();break;case Jd.Refresh:this.refresh()}}copyLabel(e){return Array.isArray(e)?[...e]:e}labelsEqual(e,i){return Array.isArray(e)===Array.isArray(i)&&(Array.isArray(e)||e===i)&&(!Array.isArray(e)||e.length===i.length)&&(!Array.isArray(e)||0===e.filter((o,a)=>o!==i[a]).length)}copyColor(e){return{backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderColor:e.borderColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,pointBorderColor:e.pointBorderColor,pointBackgroundColor:e.pointBackgroundColor,pointBorderWidth:e.pointBorderWidth,pointRadius:e.pointRadius,pointHoverRadius:e.pointHoverRadius,pointHitRadius:e.pointHitRadius,pointHoverBackgroundColor:e.pointHoverBackgroundColor,pointHoverBorderColor:e.pointHoverBorderColor,pointHoverBorderWidth:e.pointHoverBorderWidth,pointStyle:e.pointStyle,hoverBackgroundColor:e.hoverBackgroundColor,hoverBorderColor:e.hoverBorderColor,hoverBorderWidth:e.hoverBorderWidth}}colorsEqual(e,i){return!e==!i&&(!e||e.backgroundColor===i.backgroundColor&&e.borderWidth===i.borderWidth&&e.borderColor===i.borderColor&&e.borderCapStyle===i.borderCapStyle&&e.borderDash===i.borderDash&&e.borderDashOffset===i.borderDashOffset&&e.borderJoinStyle===i.borderJoinStyle&&e.pointBorderColor===i.pointBorderColor&&e.pointBackgroundColor===i.pointBackgroundColor&&e.pointBorderWidth===i.pointBorderWidth&&e.pointRadius===i.pointRadius&&e.pointHoverRadius===i.pointHoverRadius&&e.pointHitRadius===i.pointHitRadius&&e.pointHoverBackgroundColor===i.pointHoverBackgroundColor&&e.pointHoverBorderColor===i.pointHoverBorderColor&&e.pointHoverBorderWidth===i.pointHoverBorderWidth&&e.pointStyle===i.pointStyle&&e.hoverBackgroundColor===i.hoverBackgroundColor&&e.hoverBorderColor===i.hoverBorderColor&&e.hoverBorderWidth===i.hoverBorderWidth)}updateColors(){this.datasets.forEach((e,i)=>{this.colors&&this.colors[i]?Object.assign(e,this.colors[i]):Object.assign(e,function wRe(n,r,e){if("pie"===n||"doughnut"===n)return nj(VL(e));if("polarArea"===n)return function SRe(n){return{backgroundColor:n.map(r=>o_(r,.6)),borderColor:n.map(r=>o_(r,1)),hoverBackgroundColor:n.map(r=>o_(r,.8)),hoverBorderColor:n.map(r=>o_(r,1))}}(VL(e));if("line"===n||"radar"===n)return function xRe(n){return{backgroundColor:o_(n,.4),borderColor:o_(n,1),pointBackgroundColor:o_(n,1),pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:o_(n,.8)}}(Jre(r));if("bar"===n||"horizontalBar"===n)return function MRe(n){return{backgroundColor:o_(n,.6),borderColor:o_(n,1),hoverBackgroundColor:o_(n,.8),hoverBorderColor:o_(n,1)}}(Jre(r));if("bubble"===n||"scatter"===n)return nj(VL(e));throw new Error(`getColors - Unsupported chart type ${n}`)}(this.chartType,i,e.data.length),Object.assign({},e))})}ngOnChanges(e){let i=Jd.Default;const o=a=>{i=a>i?a:i};switch(e.hasOwnProperty("data")&&e.data.currentValue&&(this.propagateDataToDatasets(e.data.currentValue),o(Jd.Update)),e.hasOwnProperty("datasets")&&e.datasets.currentValue&&(this.propagateDatasetsToData(e.datasets.currentValue),o(Jd.Update)),e.hasOwnProperty("labels")&&(this.chart&&(this.chart.data.labels=e.labels.currentValue),o(Jd.Update)),e.hasOwnProperty("legend")&&(this.chart&&(this.chart.config.options.legend.display=e.legend.currentValue,this.chart.generateLegend()),o(Jd.Update)),e.hasOwnProperty("options")&&o(Jd.Refresh),i){case Jd.Update:this.update();break;case Jd.Refresh:case Jd.Default:this.refresh()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(e=>e.unsubscribe())}update(e,i){if(this.chart)return this.chart.update(e,i)}hideDataset(e,i){this.chart.getDatasetMeta(e).hidden=i,this.chart.update()}isDatasetHidden(e){return this.chart.getDatasetMeta(e).hidden}toBase64Image(){return this.chart.toBase64Image()}getChartConfiguration(){const e=this.getDatasets(),i=Object.assign({},this.options);!1===this.legend&&(i.legend={display:!1}),i.hover=i.hover||{},i.hover.onHover||(i.hover.onHover=(s,l)=>{l&&!l.length||this.chartHover.emit({event:s,active:l})}),i.onClick||(i.onClick=(s,l)=>{this.chartClick.emit({event:s,active:l})});const o=this.smartMerge(i,this.themeService.getColorschemesOptions());return{type:this.chartType,data:{labels:this.labels||[],datasets:e},plugins:this.plugins,options:o}}getChartBuilder(e){const i=this.getChartConfiguration();return new ej.Chart(e,i)}smartMerge(e,i,o=0){if(0===o&&(e=(0,r_.cloneDeep)(e)),Object.keys(i).forEach(s=>{if(Array.isArray(i[s])){const l=e[s];l&&l.forEach(d=>{this.smartMerge(d,i[s][0],o+1)})}else"object"==typeof i[s]?(s in e||(e[s]={}),this.smartMerge(e[s],i[s],o+1)):e[s]=i[s]}),0===o)return e}isMultiLineLabel(e){return Array.isArray(e)}joinLabel(e){return e?this.isMultiLineLabel(e)?e.join(" "):e:null}propagateDatasetsToData(e){this.data=this.datasets.map(i=>i.data),this.chart&&(this.chart.data.datasets=e),this.updateColors()}propagateDataToDatasets(e){this.isMultiDataSet(e)?this.datasets&&e.length===this.datasets.length?this.datasets.forEach((i,o)=>{i.data=e[o]}):(this.datasets=e.map((i,o)=>({data:i,label:this.joinLabel(this.labels[o])||`Label ${o}`})),this.chart&&(this.chart.data.datasets=this.datasets)):this.datasets?(this.datasets[0].data=e,this.datasets.splice(1)):(this.datasets=[{data:e}],this.chart&&(this.chart.data.datasets=this.datasets)),this.updateColors()}isMultiDataSet(e){return Array.isArray(e[0])}getDatasets(){if(!this.datasets&&!this.data)throw new Error(`ng-charts configuration error, data or datasets field are required to render chart ${this.chartType}`);return this.datasets?(this.propagateDatasetsToData(this.datasets),this.datasets):this.data?(this.propagateDataToDatasets(this.data),this.datasets):void 0}refresh(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.ctx&&(this.chart=this.getChartBuilder(this.ctx))}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(tw))},n.\u0275dir=Wn({type:n,selectors:[["canvas","baseChart",""]],inputs:{options:"options",data:"data",datasets:"datasets",labels:"labels",chartType:"chartType",colors:"colors",legend:"legend",plugins:"plugins"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[vo]}),n})(),TRe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})(),Zre=(()=>{class n{static forRoot(){return{ngModule:n,providers:[s1,Ab]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs]}),n})();function Eo(n){return null!=n&&"false"!=`${n}`}function Ed(n,r=0){return eoe(n)?Number(n):r}function eoe(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Z3(n){return Array.isArray(n)?n:[n]}function If(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Th(n){return n instanceof gr?n.nativeElement:n}function toe(n,r=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(r);for(const o of i){const a=`${o}`.trim();a&&e.push(a)}}return e}let DRe=1;const PRe=Promise.resolve(),UL={};function noe(n){return n in UL&&(delete UL[n],!0)}const ioe={setImmediate(n){const r=DRe++;return UL[r]=!0,PRe.then(()=>noe(r)&&n()),r},clearImmediate(n){noe(n)}},zL=new class kRe extends yb{flush(r){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,o=-1,a=e.length;r=r||e.shift();do{if(i=r.execute(r.state,r.delay))break}while(++o0?super.requestAsyncId(r,e,i):(r.actions.push(this),r.scheduled||(r.scheduled=ioe.setImmediate(r.flush.bind(r,null))))}recycleAsyncId(r,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(r,e,i);0===r.actions.length&&(ioe.clearImmediate(e),r.scheduled=void 0)}});function ij(n){return!!n&&(n instanceof ze||"function"==typeof n.lift&&"function"==typeof n.subscribe)}class IRe{constructor(r){this.durationSelector=r}call(r,e){return e.subscribe(new FRe(r,this.durationSelector))}}class FRe extends ln{constructor(r,e){super(r),this.durationSelector=e,this.hasValue=!1}_next(r){if(this.value=r,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:o}=this;e=o(r)}catch(o){return this.destination.error(o)}const i=Qi(e,new Tt(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:r,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(r))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function eF(n,r=dS){return function ERe(n){return function(e){return e.lift(new IRe(n))}}(()=>Rx(n,r))}class BRe{call(r,e){return e.subscribe(new LRe(r))}}class LRe extends te{constructor(r){super(r),this.hasPrev=!1}_next(r){let e;this.hasPrev?e=[this.prev,r]:this.hasPrev=!0,this.prev=r,e&&this.destination.next(e)}}let rj;try{rj=typeof Intl<"u"&&Intl.v8BreakIterator}catch{rj=!1}let iO,Au=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Ny(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&&!rj)&&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)(en(v0))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const roe=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ooe(){if(iO)return iO;if("object"!=typeof document||!document)return iO=new Set(roe),iO;let n=document.createElement("input");return iO=new Set(roe.filter(r=>(n.setAttribute("type",r),n.type===r))),iO}let tF,jL,US,oj;function Pb(n){return function NRe(){if(null==tF&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>tF=!0}))}finally{tF=tF||!1}return tF}()?n:!!n.capture}function aoe(){if(null==US){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return US=!1,US;if("scrollBehavior"in document.documentElement.style)US=!0;else{const n=Element.prototype.scrollTo;US=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return US}function nF(){if("object"!=typeof document||!document)return 0;if(null==jL){const n=document.createElement("div"),r=n.style;n.dir="rtl",r.width="1px",r.overflow="auto",r.visibility="hidden",r.pointerEvents="none",r.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),jL=0,0===n.scrollLeft&&(n.scrollLeft=1,jL=0===n.scrollLeft?1:2),n.remove()}return jL}function $L(n){if(function HRe(){if(null==oj){const n=typeof document<"u"?document.head:null;oj=!(!n||!n.createShadowRoot&&!n.attachShadow)}return oj}()){const r=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function rO(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const r=n.shadowRoot.activeElement;if(r===n)break;n=r}return n}function b1(n){return n.composedPath?n.composedPath()[0]:n.target}function aj(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const VRe=new Pi("cdk-dir-doc",{providedIn:"root",factory:function URe(){return cc(Fa)}}),zRe=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let cu=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new Cn,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function jRe(n){var r;const e=n?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&null!==(r=navigator)&&void 0!==r&&r.language?zRe.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(en(VRe,8))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})();class soe{}function YL(n){return n&&"function"==typeof n.connect&&!(n instanceof ur)}class $Re extends soe{constructor(r){super(),this._data=r}connect(){return ij(this._data)?this._data:Wo(this._data)}disconnect(){}}class loe{applyChanges(r,e,i,o,a){r.forEachOperation((s,l,d)=>{let f,C;if(null==s.previousIndex){const T=i(s,l,d);f=e.createEmbeddedView(T.templateRef,T.context,T.index),C=1}else null==d?(e.remove(l),C=3):(f=e.get(l),e.move(f,d),C=2);var M;a&&a({context:null===(M=f)||void 0===M?void 0:M.context,operation:C,record:s})})}detach(){}}class sj{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(r,e,i,o,a){r.forEachOperation((s,l,d)=>{let f,C;var M;null==s.previousIndex?(f=this._insertView(()=>i(s,l,d),d,e,o(s)),C=f?1:0):null==d?(this._detachAndCacheView(l,e),C=3):(f=this._moveView(l,d,e,o(s)),C=2),a&&a({context:null===(M=f)||void 0===M?void 0:M.context,operation:C,record:s})})}detach(){for(const r of this._viewCache)r.destroy();this._viewCache=[]}_insertView(r,e,i,o){const a=this._insertViewFromCache(e,i);if(a)return void(a.context.$implicit=o);const s=r();return i.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(r,e){const i=e.detach(r);this._maybeCacheView(i,e)}_moveView(r,e,i,o){const a=i.get(r);return i.move(a,e),a.context.$implicit=o,a}_maybeCacheView(r,e){if(this._viewCache.lengththis._markSelected(a)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...r){this._verifyValueAssignment(r),r.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...r){this._verifyValueAssignment(r),r.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...r){this._verifyValueAssignment(r);const e=this.selected,i=new Set(r);r.forEach(a=>this._markSelected(a)),e.filter(a=>!i.has(a)).forEach(a=>this._unmarkSelected(a));const o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(r){return this.isSelected(r)?this.deselect(r):this.select(r)}clear(r=!0){this._unmarkAll();const e=this._hasQueuedChanges();return r&&this._emitChangeEvent(),e}isSelected(r){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,r))return!0;return!1}return this._selection.has(r)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(r){this._multiple&&this.selected&&this._selected.sort(r)}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(r){this.isSelected(r)||(this._multiple||this._unmarkAll(),this.isSelected(r)||this._selection.add(r),this._emitChanges&&this._selectedToEmit.push(r))}_unmarkSelected(r){this.isSelected(r)&&(this._selection.delete(r),this._emitChanges&&this._deselectedToEmit.push(r))}_unmarkAll(){this.isEmpty()||this._selection.forEach(r=>this._unmarkSelected(r))}_verifyValueAssignment(r){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let lj=(()=>{class n{constructor(){this._listeners=[]}notify(e,i){for(let o of this._listeners)o(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=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const zS=new Pi("_ViewRepeater"),YRe=["contentWrapper"],GRe=["*"],coe=new Pi("VIRTUAL_SCROLL_STRATEGY");class WRe{constructor(r,e,i){this._scrolledIndexChange=new Fe,this.scrolledIndexChange=this._scrolledIndexChange.pipe(_v()),this._viewport=null,this._itemSize=r,this._minBufferPx=e,this._maxBufferPx=i}attach(r){this._viewport=r,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(r,e,i){this._itemSize=r,this._minBufferPx=e,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(r,e){this._viewport&&this._viewport.scrollToOffset(r*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const r=this._viewport.getRenderedRange(),e={start:r.start,end:r.end},i=this._viewport.getViewportSize(),o=this._viewport.getDataLength();let a=this._viewport.measureScrollOffset(),s=this._itemSize>0?a/this._itemSize:0;if(e.end>o){const d=Math.ceil(i/this._itemSize),f=Math.max(0,Math.min(s,o-d));s!=f&&(s=f,a=f*this._itemSize,e.start=Math.floor(s)),e.end=Math.max(0,Math.min(o,e.start+d))}const l=a-e.start*this._itemSize;if(l0&&(e.end=Math.min(o,e.end+f),e.start=Math.max(0,Math.floor(s-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(s))}}function QRe(n){return n._scrollStrategy}let cj=(()=>{class n{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new WRe(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=Ed(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=Ed(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=Ed(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[lo([{provide:coe,useFactory:QRe,deps:[ue(()=>n)]}]),vo]}),n})(),qx=(()=>{class n{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new Fe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}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 ze(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(eF(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Wo()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Fo(a=>!a||o.indexOf(a)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,a)=>{this._scrollableContainsElement(a,e)&&i.push(a)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=Th(i),a=e.getElementRef().nativeElement;do{if(o==a)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>dd(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)(en(Zo),en(Au),en(Fa,8))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jS=(()=>{class n{constructor(e,i,o,a){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=a,this._destroyed=new Fe,this._elementScrolled=new ze(s=>this.ngZone.runOutsideAngular(()=>dd(this.elementRef.nativeElement,"scroll").pipe(ma(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),o&&0!=nF()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==nF()?e.left=e.right:1==nF()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;aoe()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",o="right",a=this.elementRef.nativeElement;if("top"==e)return a.scrollTop;if("bottom"==e)return a.scrollHeight-a.clientHeight-a.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==e?e=s?o:i:"end"==e&&(e=s?i:o),s&&2==nF()?e==i?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft:s&&1==nF()?e==i?a.scrollLeft+a.scrollWidth-a.clientWidth:-a.scrollLeft:e==i?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(qx),U(Zo),U(cu,8))},n.\u0275dir=Wn({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),y1=(()=>{class n{constructor(e,i,o){this._platform=e,this._change=new Fe,this._changeListener=a=>{this._change.next(a)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const a=this._getWindow();a.addEventListener("resize",this._changeListener),a.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:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,a=o.getBoundingClientRect();return{top:-a.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-a.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(eF(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)(en(Au),en(Zo),en(Fa,8))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const XRe=new Pi("VIRTUAL_SCROLLABLE");let doe=(()=>{class n extends jS{constructor(e,i,o,a){super(e,i,o,a)}measureViewportSize(e){const i=this.elementRef.nativeElement;return"horizontal"===e?i.clientWidth:i.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(qx),U(Zo),U(cu,8))},n.\u0275dir=Wn({type:n,features:[Nr]}),n})();const ZRe=typeof requestAnimationFrame<"u"?RB:zL;let $S=(()=>{class n extends doe{constructor(e,i,o,a,s,l,d,f){super(e,l,o,s),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=a,this.scrollable=f,this._platform=cc(Au),this._detachedSubject=new Fe,this._renderedRangeSubject=new Fe,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ze(C=>this._scrollStrategy.scrolledIndexChange.subscribe(M=>Promise.resolve().then(()=>this.ngZone.run(()=>C.next(M))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=X.EMPTY,this._viewportChanges=d.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Eo(e)}ngOnInit(){!this._platform.isBrowser||(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Zl(null),eF(0,ZRe)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(ma(this._detachedSubject)).subscribe(i=>{const o=i.length;o!==this._dataLength&&(this._dataLength=o,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function JRe(n,r){return n.start==r.start&&n.end==r.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){e=this.appendOnly&&"to-start"===i?0:e;const a="horizontal"==this.orientation,s=a?"X":"Y";let d=`translate${s}(${Number((a&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===i&&(d+=` translate${s}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=d&&(this._renderedContentTransform=d,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,i="auto"){const o={behavior:i};"horizontal"===this.orientation?o.start=e:o.top=e,this.scrollable.scrollTo(o)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){let i;return i=this.scrollable==this?o=>super.measureScrollOffset(o):o=>this.scrollable.measureScrollOffset(o),Math.max(0,i(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){var i;let o;const a="left",s="right",l="rtl"==(null===(i=this.dir)||void 0===i?void 0:i.value);o="start"==e?l?s:a:"end"==e?l?a:s:e||("horizontal"===this.orientation?"left":"top");const d=this.scrollable.measureBoundingClientRectWithScrollOffset(o);return this.elementRef.nativeElement.getBoundingClientRect()[o]-d}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(Go),U(Zo),U(coe,8),U(cu,8),U(qx),U(y1),U(XRe,8))},n.\u0275cmp=wn({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&jr(YRe,7),2&e){let o;Ai(o=wi())&&(i._contentWrapper=o.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&g("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[lo([{provide:jS,useFactory:(r,e)=>r||e,deps:[doe,n]}]),Nr],ngContentSelectors:GRe,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(Cs(),b(0,"div",0,1),ha(2),y(),be(3,"div",2)),2&e&&(p(3),_("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),n})();function uoe(n,r,e){if(!e.getBoundingClientRect)return 0;const o=e.getBoundingClientRect();return"horizontal"===n?"start"===r?o.left:o.right:"start"===r?o.top:o.bottom}let dj=(()=>{class n{constructor(e,i,o,a,s,l){this._viewContainerRef=e,this._template=i,this._differs=o,this._viewRepeater=a,this._viewport=s,this.viewChange=new Fe,this._dataSourceChanges=new Fe,this.dataStream=this._dataSourceChanges.pipe(Zl(null),function RRe(){return n=>n.lift(new BRe)}(),xc(([d,f])=>this._changeDataSource(d,f)),QJ(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Fe,this.dataStream.subscribe(d=>{this._data=d,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(ma(this._destroyed)).subscribe(d=>{this._renderedRange=d,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,YL(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new $Re(ij(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(i,o)=>e(i+(this._renderedRange?this._renderedRange.start:0),o):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Ed(e)}measureRangeSize(e,i){if(e.start>=e.end)return 0;const o=e.start-this._renderedRange.start,a=e.end-e.start;let s,l;for(let d=0;d-1;d--){const f=this._viewContainerRef.get(d+o);if(f&&f.rootNodes.length){l=f.rootNodes[f.rootNodes.length-1];break}}return s&&l?uoe(i,"end",l)-uoe(i,"start",s):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,i)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,i):i)),this._needsUpdate=!0)}_changeDataSource(e,i){return e&&e.disconnect(this),this._needsUpdate=!0,i?i.connect(this):Wo()}_updateContext(){const e=this._data.length;let i=this._viewContainerRef.length;for(;i--;){const o=this._viewContainerRef.get(i);o.context.index=this._renderedRange.start+i,o.context.count=e,this._updateComputedContextProperties(o.context),o.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(a,s,l)=>this._getEmbeddedViewArgs(a,l),a=>a.item),e.forEachIdentityChange(a=>{this._viewContainerRef.get(a.currentIndex).context.$implicit=a.item});const i=this._data.length;let o=this._viewContainerRef.length;for(;o--;){const a=this._viewContainerRef.get(o);a.context.index=this._renderedRange.start+o,a.context.count=i,this._updateComputedContextProperties(a.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,i){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:i}}}return n.\u0275fac=function(e){return new(e||n)(U(ac),U(Na),U(By),U(zS),U($S,4),U(Zo))},n.\u0275dir=Wn({type:n,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[lo([{provide:zS,useClass:sj}])]}),n})(),tC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})(),rF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[oO,tC,oO,tC]}),n})();class uj{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class nw extends uj{constructor(r,e,i,o){super(),this.component=r,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o}}class nC extends uj{constructor(r,e,i,o){super(),this.templateRef=r,this.viewContainerRef=e,this.context=i,this.injector=o}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class eBe extends uj{constructor(r){super(),this.element=r instanceof gr?r.nativeElement:r}}class GL{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof nw?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof nC?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof eBe?(this._attachedPortal=r,this.attachDomPortal(r)):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(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class tBe extends GL{constructor(r,e,i,o,a){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=s=>{const l=s.element,d=this._document.createComment("dom-portal");l.parentNode.insertBefore(d,l),this.outletElement.appendChild(l),this._attachedPortal=s,super.setDisposeFn(()=>{d.parentNode&&d.parentNode.replaceChild(l,d)})},this._document=a}attachComponentPortal(r){const i=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let o;return r.viewContainerRef?(o=r.viewContainerRef.createComponent(i,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=i.create(r.injector||this._defaultInjector||ql.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=r,o}attachTemplatePortal(r){let e=r.viewContainerRef,i=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=r,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let nBe=(()=>{class n extends nC{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(U(Na),U(ac))},n.\u0275dir=Wn({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Nr]}),n})(),Av=(()=>{class n extends GL{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Cn,this.attachDomPortal=a=>{const s=a.element,l=this._document.createComment("dom-portal");a.setAttachedHost(this),s.parentNode.insertBefore(l,s),this._getRootNode().appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(s,l)})},this._document=o}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,a=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(a,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)(U($h),U(ac),U(Fa))},n.\u0275dir=Wn({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Nr]}),n})(),iC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})();function Dp(n,...r){return r.length?r.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}const poe=aoe();class hBe{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=If(-this._previousScrollPosition.left),r.style.top=If(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,i=r.style,o=this._document.body.style,a=i.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),poe&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),poe&&(i.scrollBehavior=a,o.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 fBe{constructor(r,e,i,o){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class hoe{enable(){}disable(){}attach(){}}function fj(n,r){return r.some(e=>n.bottome.bottom||n.righte.right)}function foe(n,r){return r.some(e=>n.tope.bottom||n.lefte.right)}class mBe{constructor(r,e,i,o){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(r){this._overlayRef=r}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:o}=this._viewportRuler.getViewportSize();fj(e,[{width:i,height:o,bottom:o,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 moe=(()=>{class n{constructor(e,i,o,a){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new hoe,this.close=s=>new fBe(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new hBe(this._viewportRuler,this._document),this.reposition=s=>new mBe(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=a}}return n.\u0275fac=function(e){return new(e||n)(en(qx),en(y1),en(Zo),en(Fa))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class YS{constructor(r){if(this.scrollStrategy=new hoe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const i of e)void 0!==r[i]&&(this[i]=r[i])}}}class gBe{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let goe=(()=>{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)(en(Fa))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_Be=(()=>{class n extends goe{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const a=this._attachedOverlays;for(let s=a.length-1;s>-1;s--)if(a[s]._keydownEvents.observers.length>0){const l=a[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(o)):l.next(o);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)(en(Fa),en(Zo,8))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vBe=(()=>{class n extends goe{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=b1(a)},this._clickListener=a=>{const s=b1(a),l="click"===a.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const d=this._attachedOverlays.slice();for(let f=d.length-1;f>-1;f--){const C=d[f];if(C._outsidePointerEvents.observers.length<1||!C.hasAttached())continue;if(C.overlayElement.contains(s)||C.overlayElement.contains(l))break;const M=C._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>M.next(a)):M.next(a)}}}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)(en(Fa),en(Au),en(Zo,8))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aO=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||aj()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let a=0;athis._backdropClick.next(M),this._backdropTransitionendHandler=M=>{this._disposeBackdrop(M.target)},this._keydownEvents=new Fe,this._outsidePointerEvents=new Fe,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Oa(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 r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){var r;const e=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),null===(r=this._host)||void 0===r||r.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=If(this._config.width),r.height=If(this._config.height),r.minWidth=If(this._config.minWidth),r.minHeight=If(this._config.minHeight),r.maxWidth=If(this._config.maxWidth),r.maxHeight=If(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="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(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,i){const o=Z3(e||[]).filter(a=>!!a);o.length&&(i?r.classList.add(...o):r.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(ma(or(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()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const _oe="cdk-overlay-connected-position-bounding-box",bBe=/([A-Za-z%]+)$/;class voe{constructor(r,e,i,o,a){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=a,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 Fe,this._resizeSubscription=X.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(_oe),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.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 r=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,a=[];let s;for(let l of this._preferredPositions){let d=this._getOriginPoint(r,o,l),f=this._getOverlayPoint(d,e,l),C=this._getOverlayFit(f,e,i,l);if(C.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,d);this._canFitWithFlexibleDimensions(C,f,i)?a.push({position:l,origin:d,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(d,l)}):(!s||s.overlayFit.visibleAread&&(d=C,l=f)}return this._isPushed=!1,void this._applyPosition(l.position,l.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&&GS(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(_oe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){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,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,i){let o,a;if("center"==i.originX)o=r.left+r.width/2;else{const s=this._isRtl()?r.right:r.left,l=this._isRtl()?r.left:r.right;o="start"==i.originX?s:l}return e.left<0&&(o-=e.left),a="center"==i.originY?r.top+r.height/2:"top"==i.originY?r.top:r.bottom,e.top<0&&(a-=e.top),{x:o,y:a}}_getOverlayPoint(r,e,i){let o,a;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,a="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:r.x+o,y:r.y+a}}_getOverlayFit(r,e,i,o){const a=yoe(e);let{x:s,y:l}=r,d=this._getOffset(o,"x"),f=this._getOffset(o,"y");d&&(s+=d),f&&(l+=f);let T=0-l,F=l+a.height-i.height,pe=this._subtractOverflows(a.width,0-s,s+a.width-i.width),ce=this._subtractOverflows(a.height,T,F),fe=pe*ce;return{visibleArea:fe,isCompletelyWithinViewport:a.width*a.height===fe,fitsInViewportVertically:ce===a.height,fitsInViewportHorizontally:pe==a.width}}_canFitWithFlexibleDimensions(r,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,a=i.right-e.x,s=boe(this._overlayRef.getConfig().minHeight),l=boe(this._overlayRef.getConfig().minWidth),f=r.fitsInViewportHorizontally||null!=l&&l<=a;return(r.fitsInViewportVertically||null!=s&&s<=o)&&f}return!1}_pushOverlayOnScreen(r,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const o=yoe(e),a=this._viewportRect,s=Math.max(r.x+o.width-a.width,0),l=Math.max(r.y+o.height-a.height,0),d=Math.max(a.top-i.top-r.y,0),f=Math.max(a.left-i.left-r.x,0);let C=0,M=0;return C=o.width<=a.width?f||-s:r.xpe&&!this._isInitialRender&&!this._growAfterOpen&&(s=r.y-pe/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)T=i.width-r.x+this._viewportMargin,C=r.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)M=r.x,C=i.right-r.x;else{const F=Math.min(i.right-r.x+i.left,r.x),pe=this._lastBoundingBoxSize.width;C=2*F,M=r.x-F,C>pe&&!this._isInitialRender&&!this._growAfterOpen&&(M=r.x-pe/2)}return{top:s,left:M,bottom:l,right:T,width:C,height:a}}_setBoundingBoxStyles(r,e){const i=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const a=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.height=If(i.height),o.top=If(i.top),o.bottom=If(i.bottom),o.width=If(i.width),o.left=If(i.left),o.right=If(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",a&&(o.maxHeight=If(a)),s&&(o.maxWidth=If(s))}this._lastBoundingBoxSize=i,GS(this._boundingBox.style,o)}_resetBoundingBoxStyles(){GS(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){GS(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const i={},o=this._hasExactPosition(),a=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){const C=this._viewportRuler.getViewportScrollPosition();GS(i,this._getExactOverlayY(e,r,C)),GS(i,this._getExactOverlayX(e,r,C))}else i.position="static";let l="",d=this._getOffset(e,"x"),f=this._getOffset(e,"y");d&&(l+=`translateX(${d}px) `),f&&(l+=`translateY(${f}px)`),i.transform=l.trim(),s.maxHeight&&(o?i.maxHeight=If(s.maxHeight):a&&(i.maxHeight="")),s.maxWidth&&(o?i.maxWidth=If(s.maxWidth):a&&(i.maxWidth="")),GS(this._pane.style,i)}_getExactOverlayY(r,e,i){let o={top:"",bottom:""},a=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i)),"bottom"===r.overlayY?o.bottom=this._document.documentElement.clientHeight-(a.y+this._overlayRect.height)+"px":o.top=If(a.y),o}_getExactOverlayX(r,e,i){let s,o={left:"",right:""},a=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i)),s=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===s?o.right=this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)+"px":o.left=If(a.x),o}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:foe(r,i),isOriginOutsideView:fj(r,i),isOverlayClipped:foe(e,i),isOverlayOutsideView:fj(e,i)}}_subtractOverflows(r,...e){return e.reduce((i,o)=>i-Math.max(o,0),r)}_getNarrowedViewportRect(){const r=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+r-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Z3(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof gr)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,i=r.height||0;return{top:r.y,bottom:r.y+i,left:r.x,right:r.x+e,height:i,width:e}}}function GS(n,r){for(let e in r)r.hasOwnProperty(e)&&(n[e]=r[e]);return n}function boe(n){if("number"!=typeof n&&null!=n){const[r,e]=n.split(bBe);return e&&"px"!==e?null:parseFloat(r)}return n||null}function yoe(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 Coe="cdk-global-overlay-wrapper";class yBe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(Coe),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:a,maxWidth:s,maxHeight:l}=i,d=!("100%"!==o&&"100vw"!==o||s&&"100%"!==s&&"100vw"!==s),f=!("100%"!==a&&"100vh"!==a||l&&"100%"!==l&&"100vh"!==l),C=this._xPosition,M=this._xOffset,T="rtl"===this._overlayRef.getConfig().direction;let F="",pe="",ce="";d?ce="flex-start":"center"===C?(ce="center",T?pe=M:F=M):T?"left"===C||"end"===C?(ce="flex-end",F=M):("right"===C||"start"===C)&&(ce="flex-start",pe=M):"left"===C||"start"===C?(ce="flex-start",F=M):("right"===C||"end"===C)&&(ce="flex-end",pe=M),r.position=this._cssPosition,r.marginLeft=d?"0":F,r.marginTop=f?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=d?"0":pe,e.justifyContent=ce,e.alignItems=f?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(Coe),i.justifyContent=i.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let CBe=(()=>{class n{constructor(e,i,o,a){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=a}global(){return new yBe}flexibleConnectedTo(e){return new voe(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(en(y1),en(Fa),en(Au),en(aO))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ABe=0,Ff=(()=>{class n{constructor(e,i,o,a,s,l,d,f,C,M,T,F){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=a,this._keyboardDispatcher=s,this._injector=l,this._ngZone=d,this._document=f,this._directionality=C,this._location=M,this._outsideClickDispatcher=T,this._animationsModuleType=F}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),a=this._createPortalOutlet(o),s=new YS(e);return s.direction=s.direction||this._directionality.value,new sO(a,i,o,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-"+ABe++,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(pv)),new tBe(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(en(moe),en(aO),en($h),en(CBe),en(_Be),en(ql),en(Zo),en(Fa),en(cu),en(hA),en(vBe),en(Cu,8))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const wBe=[{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"}],Aoe=new Pi("cdk-connected-overlay-scroll-strategy");let woe=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(U(gr))},n.\u0275dir=Wn({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),xoe=(()=>{class n{constructor(e,i,o,a,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=X.EMPTY,this._attachSubscription=X.EMPTY,this._detachSubscription=X.EMPTY,this._positionSubscription=X.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Cn,this.positionChange=new Cn,this.attach=new Cn,this.detach=new Cn,this.overlayKeydown=new Cn,this.overlayOutsideClick=new Cn,this._templatePortal=new nC(i,o),this._scrollStrategyFactory=a,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=Eo(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Eo(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Eo(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Eo(e)}get push(){return this._push}set push(e){this._push=Eo(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=wBe);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&&!Dp(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 YS({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(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.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 woe?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(ZJ(()=>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)(U(Ff),U(Na),U(ac),U(Aoe),U(cu,8))},n.\u0275dir=Wn({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:[vo]}),n})();const MBe={provide:Aoe,deps:[Ff],useFactory:function xBe(n){return()=>n.scrollStrategies.reposition()}};let iw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[Ff,MBe],imports:[oO,iC,rF,rF]}),n})(),SBe=(()=>{class n extends aO{constructor(e,i){super(e,i)}ngOnDestroy(){super.ngOnDestroy(),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}_createContainer(){super._createContainer(),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(()=>this._adjustParentForFullscreenChange())}_adjustParentForFullscreenChange(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}_addFullscreenChangeListener(e){const i=this._getEventName();i&&(this._fullScreenListener&&this._document.removeEventListener(i,this._fullScreenListener),this._document.addEventListener(i,e),this._fullScreenListener=e)}_getEventName(){if(!this._fullScreenEventName){const e=this._document;e.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":e.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":e.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":e.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}getFullscreenElement(){const e=this._document;return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||null}}return n.\u0275fac=function(e){return new(e||n)(en(Fa),en(Au))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Xx(n,r=dS){return e=>e.lift(new TBe(n,r))}class TBe{constructor(r,e){this.dueTime=r,this.scheduler=e}call(r,e){return e.subscribe(new DBe(r,this.dueTime,this.scheduler))}}class DBe extends te{constructor(r,e,i){super(r),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(r){this.clearDebounce(),this.lastValue=r,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(PBe,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:r}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(r)}}clearDebounce(){const r=this.debouncedSubscription;null!==r&&(this.remove(r),r.unsubscribe(),this.debouncedSubscription=null)}}function PBe(n){n.debouncedNext()}function mj(n){return r=>r.lift(new OBe(n))}class OBe{constructor(r){this.total=r}call(r,e){return e.subscribe(new kBe(r,this.total))}}class kBe extends te{constructor(r,e){super(r),this.total=e,this.count=0}_next(r){++this.count>this.total&&this.destination.next(r)}}let Moe=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),EBe=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Th(e);return new ze(o=>{const s=this._observeElement(i).subscribe(o);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new Fe,o=this._mutationObserverFactory.create(a=>i.next(a));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,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:o}=this._observedElements.get(e);i&&i.disconnect(),o.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(en(Moe))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QL=(()=>{class n{constructor(e,i,o){this._contentObserver=e,this._elementRef=i,this._ngZone=o,this.event=new Cn,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Eo(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Ed(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(Xx(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(U(EBe),U(gr),U(Zo))},n.\u0275dir=Wn({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),cF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[Moe]}),n})();const Soe=new Set;let lO,IBe=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):RBe}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function FBe(n){if(!Soe.has(n))try{lO||(lO=document.createElement("style"),lO.setAttribute("type","text/css"),document.head.appendChild(lO)),lO.sheet&&(lO.sheet.insertRule(`@media ${n} {body{ }}`,0),Soe.add(n))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(en(Au))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function RBe(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let WS=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new Fe}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Toe(Z3(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let a=o1(Toe(Z3(e)).map(s=>this._registerQuery(s).observable));return a=_P(a.pipe(Oa(1)),a.pipe(mj(1),Xx(0))),a.pipe(Ct(s=>{const l={matches:!1,breakpoints:{}};return s.forEach(({matches:d,query:f})=>{l.matches=l.matches||d,l.breakpoints[f]=d}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),a={observable:new ze(s=>{const l=d=>this._zone.run(()=>s.next(d));return i.addListener(l),()=>{i.removeListener(l)}}).pipe(Zl(i),Ct(({matches:s})=>({query:e,matches:s})),ma(this._destroySubject)),mql:i};return this._queries.set(e,a),a}}return n.\u0275fac=function(e){return new(e||n)(en(IBe),en(Zo))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Toe(n){return n.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}const rC_Medium="(min-width: 960px) and (max-width: 1279.98px)",rC_Large="(min-width: 1280px) and (max-width: 1919.98px)",rC_Handset="(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)";function KL(n,r){return(n.getAttribute(r)||"").match(/\S+/g)||[]}const Poe="cdk-describedby-message",qL="cdk-describedby-host";let gj=0,_j=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+gj++,this._document=e,this._id=cc(dP)+"-"+gj++}describe(e,i,o){if(!this._canBeDescribed(e,i))return;const a=vj(i,o);"string"!=typeof i?(Ooe(i,this._id),this._messageRegistry.set(a,{messageElement:i,referenceCount:0})):this._messageRegistry.has(a)||this._createMessageElement(i,o),this._isElementDescribedByMessage(e,a)||this._addMessageReference(e,a)}removeDescription(e,i,o){var a;if(!i||!this._isElementNode(e))return;const s=vj(i,o);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof i){const l=this._messageRegistry.get(s);l&&0===l.referenceCount&&this._deleteMessageElement(s)}0===(null===(a=this._messagesContainer)||void 0===a?void 0:a.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${qL}="${this._id}"]`);for(let o=0;o0!=o.indexOf(Poe));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const o=this._messageRegistry.get(i);(function BBe(n,r,e){const i=KL(n,r);i.some(o=>o.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(r,i.join(" ")))})(e,"aria-describedby",o.messageElement.id),e.setAttribute(qL,this._id),o.referenceCount++}_removeMessageReference(e,i){const o=this._messageRegistry.get(i);o.referenceCount--,function LBe(n,r,e){const o=KL(n,r).filter(a=>a!=e.trim());o.length?n.setAttribute(r,o.join(" ")):n.removeAttribute(r)}(e,"aria-describedby",o.messageElement.id),e.removeAttribute(qL)}_isElementDescribedByMessage(e,i){const o=KL(e,"aria-describedby"),a=this._messageRegistry.get(i),s=a&&a.messageElement.id;return!!s&&-1!=o.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const o=null==i?"":`${i}`.trim(),a=e.getAttribute("aria-label");return!(!o||a&&a.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(en(Fa),en(Au))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function vj(n,r){return"string"==typeof n?`${r||""}/${n}`:n}function Ooe(n,r){n.id||(n.id=`${Poe}-${r}-${gj++}`)}class koe{constructor(r){this._items=r,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Fe,this._typeaheadSubscription=X.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Fe,this.change=new Fe,r instanceof uv&&r.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}})}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Md(e=>this._pressedLetters.push(e)),Xx(r),Fo(()=>this._pressedLetters.length>0),Ct(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!r[a]||this._allowedModifierKeys.indexOf(a)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;default:return void((o||Dp(r,"shiftKey"))&&(r.key&&1===r.key.length?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],r.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(r){const e=this._getItemsArray(),i="number"==typeof r?r:e.indexOf(r);this._activeItem=e[i]??null,this._activeItemIndex=i}_setActiveItemByDelta(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}_setActiveInWrapMode(r){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+r*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}_setActiveItemByIndex(r,e){const i=this._getItemsArray();if(i[r]){for(;this._skipPredicateFn(i[r]);)if(!i[r+=e])return;this.setActiveItem(r)}}_getItemsArray(){return this._items instanceof uv?this._items.toArray():this._items}}class bj extends koe{setActiveItem(r){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(r),this.activeItem&&this.activeItem.setActiveStyles()}}class cO extends koe{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}}let dO=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function HBe(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 NBe(n){try{return n.frameElement}catch{return null}}(function WBe(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===Ioe(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),a=Ioe(e);return e.hasAttribute("contenteditable")?-1!==a:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function YBe(n){let r=n.nodeName.toLowerCase(),e="input"===r&&n.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==a:"video"===o?-1!==a&&(null!==a||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function GBe(n){return!function UBe(n){return function jBe(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function VBe(n){let r=n.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(n)||function zBe(n){return function $Be(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||Eoe(n))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(en(Au))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Eoe(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let r=n.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Ioe(n){if(!Eoe(n))return null;const r=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class QBe{constructor(r,e,i,o,a=!1){this._element=r,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,a||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.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(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(r),!!i}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe(Oa(1)).subscribe(r)}}let uO=(()=>{class n{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new QBe(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(en(dO),en(Zo),en(Fa))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),KBe=(()=>{class n{constructor(e,i,o){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Eo(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Eo(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=rO(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(uO),U(Fa))},n.\u0275dir=Wn({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[vo]}),n})();function XL(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function JL(n){const r=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const qBe=new Pi("cdk-input-modality-detector-options"),XBe={ignoreKeys:[18,17,224,91,16]},pO=Pb({passive:!0,capture:!0});let JBe=(()=>{class n{constructor(e,i,o,a){this._platform=e,this._mostRecentTarget=null,this._modality=new Yn(null),this._lastTouchMs=0,this._onKeydown=s=>{var l,d;null!==(l=this._options)&&void 0!==l&&null!==(d=l.ignoreKeys)&&void 0!==d&&d.some(f=>f===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=b1(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(XL(s)?"keyboard":"mouse"),this._mostRecentTarget=b1(s))},this._onTouchstart=s=>{JL(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=b1(s))},this._options={...XBe,...a},this.modalityDetected=this._modality.pipe(mj(1)),this.modalityChanged=this.modalityDetected.pipe(_v()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,pO),o.addEventListener("mousedown",this._onMousedown,pO),o.addEventListener("touchstart",this._onTouchstart,pO)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,pO),document.removeEventListener("mousedown",this._onMousedown,pO),document.removeEventListener("touchstart",this._onTouchstart,pO))}}return n.\u0275fac=function(e){return new(e||n)(en(Au),en(Zo),en(Fa),en(qBe,8))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ZBe=new Pi("liveAnnouncerElement",{providedIn:"root",factory:function eLe(){return null}}),tLe=new Pi("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let yj=(()=>{class n{constructor(e,i,o,a){this._ngZone=i,this._defaultOptions=a,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let a,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[a,s]=i,this.clear(),clearTimeout(this._previousTimeout),a||(a=o&&o.politeness?o.politeness:"polite"),null==s&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",a),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),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(){var e,i;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(i=this._currentResolve)||void 0===i||i.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let a=0;a{class n{constructor(e,i,o,a,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,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 Fe,this._rootNodeFocusAndBlurListener=l=>{for(let f=b1(l);f;f=f.parentElement)"focus"===l.type?this._onFocus(l,f):this._onBlur(l,f)},this._document=a,this._detectionMode=s?.detectionMode||0}monitor(e,i=!1){const o=Th(e);if(!this._platform.isBrowser||1!==o.nodeType)return Wo(null);const a=$L(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return i&&(s.checkChildren=!0),s.subject;const l={checkChildren:i,subject:new Fe,rootNode:a};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const i=Th(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const a=Th(e);a===this._getDocument().activeElement?this._getClosestElementsInfo(a).forEach(([l,d])=>this._originChanged(l,i,d)):(this._setOrigin(i),"function"==typeof a.focus&&a.focus(o))}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||!(null==e||!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 o=this._elementInfo.get(i),a=b1(e);!o||!o.checkChildren&&i!==a||this._originChanged(i,this._getFocusOrigin(a),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,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,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,ZL),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,ZL)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ma(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ZL),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ZL),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,a)=>{(a===e||o.checkChildren&&a.contains(e))&&i.push([a,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const a=e.labels;if(a)for(let s=0;s{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Cn}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)(U(gr),U(Rf))},n.\u0275dir=Wn({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const Roe="cdk-high-contrast-black-on-white",Boe="cdk-high-contrast-white-on-black",Aj="cdk-high-contrast-active";let Loe=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=cc(WS).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,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,a=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),a){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(Aj,Roe,Boe),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(Aj,Roe):2===i&&e.add(Aj,Boe)}}}return n.\u0275fac=function(e){return new(e||n)(en(Au),en(Fa))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dF=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(en(Loe))},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[cF]}),n})();const Noe=["menu"],iLe=["li"];function rLe(n,r){}const Hoe=function(n){return{$implicit:n}};function oLe(n,r){if(1&n){const e=xt();b(0,"a",7),Me("click",function(o){Oe(e);const a=w().$implicit;return Re(w().onMenuItemSelect(a,o))})("mouseenter",function(o){Oe(e);const a=w().$implicit;return Re(w().onOpenSubMenu(a,o))}),O(1,rLe,0,0,"ng-template",8),y()}if(2&n){const e=w().$implicit,i=w();g("dropdown-item",i.useBootstrap4)("active",e.isActive&&i.isMenuItemEnabled(e))("disabled",i.useBootstrap4&&!i.isMenuItemEnabled(e))("hasSubMenu",!!e.subMenu),p(1),m("ngTemplateOutlet",e.template)("ngTemplateOutletContext",ri(10,Hoe,i.item))}}function aLe(n,r){}function sLe(n,r){if(1&n){const e=xt();b(0,"span",9),Me("click",function(o){return Oe(e),Re(w(2).stopEvent(o))})("contextmenu",function(o){return Oe(e),Re(w(2).stopEvent(o))}),O(1,aLe,0,0,"ng-template",8),y()}if(2&n){const e=w().$implicit,i=w();g("dropdown-item",i.useBootstrap4)("disabled",i.useBootstrap4&&!i.isMenuItemEnabled(e)),p(1),m("ngTemplateOutlet",e.template)("ngTemplateOutletContext",ri(6,Hoe,i.item))}}function lLe(n,r){if(1&n&&(b(0,"li",null,4),O(2,oLe,2,12,"a",5),O(3,sLe,2,8,"span",6),y()),2&n){const e=r.$implicit,i=w();g("disabled",!i.isMenuItemEnabled(e))("divider",e.divider)("dropdown-divider",i.useBootstrap4&&e.divider)("active",e.isActive&&i.isMenuItemEnabled(e)),Tr("role",e.divider?"separator":void 0),p(2),m("ngIf",!e.divider&&!e.passive),p(1),m("ngIf",!e.divider&&e.passive)}}const wj=new Pi("CONTEXT_MENU_OPTIONS");let dLe=(()=>{class n{constructor(e){this.options=e,this.menuItems=[],this.isLeaf=!1,this.execute=new Cn,this.openSubMenu=new Cn,this.closeLeafMenu=new Cn,this.closeAllMenus=new Cn,this.autoFocus=!1,this.useBootstrap4=!1,this.subscription=new X,e&&(this.autoFocus=e.autoFocus,this.useBootstrap4=e.useBootstrap4)}ngOnInit(){this.menuItems.forEach(i=>{i.currentItem=this.item,this.subscription.add(i.execute.subscribe(o=>this.execute.emit({...o,menuItem:i})))});const e=new uv;e.reset(this.menuItems),this._keyManager=new bj(e).withWrap()}ngAfterViewInit(){this.autoFocus&&setTimeout(()=>this.focus()),this.overlay.updatePosition()}ngOnDestroy(){this.subscription.unsubscribe()}focus(){this.autoFocus&&this.menuElement.nativeElement.focus()}stopEvent(e){e.stopPropagation()}isMenuItemEnabled(e){return this.evaluateIfFunction(e&&e.enabled)}isMenuItemVisible(e){return this.evaluateIfFunction(e&&e.visible)}evaluateIfFunction(e){return e instanceof Function?e(this.item):e}isDisabled(e){return!!e.enabled&&!e.enabled(this.item)}onKeyEvent(e){!this.isLeaf||this._keyManager.onKeydown(e)}keyboardOpenSubMenu(e){if(!this.isLeaf||null===this._keyManager.activeItemIndex)return;this.cancelEvent(e);const i=this.menuItems[this._keyManager.activeItemIndex];i&&this.onOpenSubMenu(i,e)}keyboardMenuItemSelect(e){if(!this.isLeaf||null===this._keyManager.activeItemIndex)return;this.cancelEvent(e);const i=this.menuItems[this._keyManager.activeItemIndex];i&&this.onMenuItemSelect(i,e)}onCloseLeafMenu(e){!this.isLeaf||(this.cancelEvent(e),this.closeLeafMenu.emit({exceptRootMenu:37===e.keyCode,event:e}))}closeMenu(e){"click"===e.type&&2===e.button||this.closeAllMenus.emit({event:e})}onOpenSubMenu(e,i){if(null===this._keyManager.activeItemIndex)return;const o=this.menuItemElements.toArray()[this._keyManager.activeItemIndex];this.openSubMenu.emit({anchorElement:o&&o.nativeElement,contextMenu:e.subMenu,event:i,item:this.item,parentContextMenu:this})}onMenuItemSelect(e,i){i.preventDefault(),i.stopPropagation(),this.onOpenSubMenu(e,i),e.subMenu||e.triggerExecute(this.item,i)}cancelEvent(e){if(!e||!e.target)return;const i=e.target;["INPUT","TEXTAREA","SELECT"].indexOf(i.tagName)>-1||i.isContentEditable||(e.preventDefault(),e.stopPropagation())}}return n.\u0275fac=function(e){return new(e||n)(U(wj,8))},n.\u0275cmp=wn({type:n,selectors:[["context-menu-content"]],viewQuery:function(e,i){if(1&e&&(jr(Noe,7),jr(iLe,5)),2&e){let o;Ai(o=wi())&&(i.menuElement=o.first),Ai(o=wi())&&(i.menuItemElements=o)}},hostBindings:function(e,i){1&e&&Me("keydown.ArrowDown",function(a){return i.onKeyEvent(a)},0,op)("keydown.ArrowUp",function(a){return i.onKeyEvent(a)},!1,op)("keydown.ArrowRight",function(a){return i.keyboardOpenSubMenu(a)},!1,op)("keydown.Enter",function(a){return i.keyboardMenuItemSelect(a)},!1,op)("keydown.Space",function(a){return i.keyboardMenuItemSelect(a)},!1,op)("keydown.Escape",function(a){return i.onCloseLeafMenu(a)},!1,op)("keydown.ArrowLeft",function(a){return i.onCloseLeafMenu(a)},!1,op)("click",function(a){return i.closeMenu(a)},!1,Jw)("contextmenu",function(a){return i.closeMenu(a)},!1,Jw)},inputs:{menuItems:"menuItems",item:"item",event:"event",parentContextMenu:"parentContextMenu",menuClass:"menuClass",overlay:"overlay",isLeaf:"isLeaf"},outputs:{execute:"execute",openSubMenu:"openSubMenu",closeLeafMenu:"closeLeafMenu",closeAllMenus:"closeAllMenus"},decls:4,vars:2,consts:[["tabindex","0",1,"dropdown","open","show","ngx-contextmenu",3,"ngClass"],["tabindex","0",1,"dropdown-menu","show",2,"position","static","float","none"],["menu",""],[3,"disabled","divider","dropdown-divider","active",4,"ngFor","ngForOf"],["li",""],["href","",3,"dropdown-item","active","disabled","hasSubMenu","click","mouseenter",4,"ngIf"],["class","passive",3,"dropdown-item","disabled","click","contextmenu",4,"ngIf"],["href","",3,"click","mouseenter"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"passive",3,"click","contextmenu"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"ul",1,2),O(3,lLe,4,11,"li",3),y()()),2&e&&(m("ngClass",i.menuClass),p(3),m("ngForOf",i.menuItems))},dependencies:[ra,Oo,rr,nm],styles:['.passive[_ngcontent-%COMP%]{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:@line-height-base;white-space:nowrap}.hasSubMenu[_ngcontent-%COMP%]:before{content:"\\25b6";float:right}']}),n})(),Voe=(()=>{class n{constructor(e,i){this.template=e,this.elementRef=i,this.divider=!1,this.enabled=!0,this.passive=!1,this.visible=!0,this.execute=new Cn,this.isActive=!1}get disabled(){return this.passive||this.divider||!this.evaluateIfFunction(this.enabled,this.currentItem)}evaluateIfFunction(e,i){return e instanceof Function?e(i):e}setActiveStyles(){this.isActive=!0}setInactiveStyles(){this.isActive=!1}triggerExecute(e,i){!this.evaluateIfFunction(this.enabled,e)||this.execute.emit({event:i,item:e})}}return n.\u0275fac=function(e){return new(e||n)(U(Na,8),U(gr))},n.\u0275dir=Wn({type:n,selectors:[["","contextMenuItem",""]],inputs:{subMenu:"subMenu",divider:"divider",enabled:"enabled",passive:"passive",visible:"visible"},outputs:{execute:"execute"}}),n})(),uF=(()=>{class n{constructor(e,i){this.overlay=e,this.scrollStrategy=i,this.isDestroyingLeafMenu=!1,this.show=new Fe,this.triggerClose=new Fe,this.close=new Fe,this.overlays=[],this.fakeElement={height:0,width:0,x:0,y:0}}openContextMenu(e){const{anchorElement:i,event:o,parentContextMenu:a}=e;if(a){const s=this.overlay.position().flexibleConnectedTo(new gr(o?o.target:i)).withPositions([{originX:"end",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom"},{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom"}]),l=this.overlay.create({positionStrategy:s,panelClass:"ngx-contextmenu",scrollStrategy:this.scrollStrategy.close()});this.destroySubMenus(a),this.overlays=this.overlays.concat(l),this.attachContextMenu(l,e)}else{this.fakeElement={height:0,width:0,x:o.clientX,y:o.clientY},this.closeAllContextMenus({eventType:"cancel",event:o});const l=this.overlay.position().flexibleConnectedTo(i?new gr(i):this.fakeElement).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"end",originY:"center",overlayX:"start",overlayY:"center"},{originX:"start",originY:"center",overlayX:"end",overlayY:"center"}]);this.overlays=[this.overlay.create({positionStrategy:l,panelClass:"ngx-contextmenu",scrollStrategy:this.scrollStrategy.close()})],this.attachContextMenu(this.overlays[0],e)}}attachContextMenu(e,i){const{event:o,item:a,menuItems:s,menuClass:l}=i,d=e.attach(new nw(dLe));d.instance.event=o,d.instance.item=a,d.instance.menuItems=s,d.instance.overlay=e,d.instance.isLeaf=!0,d.instance.menuClass=l,e.contextMenu=d.instance;const f=new X;f.add(d.instance.execute.asObservable().subscribe(C=>this.closeAllContextMenus({eventType:"execute",...C}))),f.add(d.instance.closeAllMenus.asObservable().subscribe(C=>this.closeAllContextMenus({eventType:"cancel",...C}))),f.add(d.instance.closeLeafMenu.asObservable().subscribe(C=>this.destroyLeafMenu(C))),f.add(d.instance.openSubMenu.asObservable().subscribe(C=>{this.destroySubMenus(d.instance),C.contextMenu?(d.instance.isLeaf=!1,this.show.next(C)):d.instance.isLeaf=!0})),d.onDestroy(()=>{s.forEach(C=>C.isActive=!1),f.unsubscribe()}),d.changeDetectorRef.detectChanges()}closeAllContextMenus(e){this.overlays&&(this.close.next(e),this.overlays.forEach((i,o)=>{i.detach(),i.dispose()})),this.overlays=[]}getLastAttachedOverlay(){let e=this.overlays[this.overlays.length-1];for(;this.overlays.length>1&&e&&!e.hasAttached();)e.detach(),e.dispose(),this.overlays=this.overlays.slice(0,-1),e=this.overlays[this.overlays.length-1];return e}destroyLeafMenu({exceptRootMenu:e,event:i}={}){this.isDestroyingLeafMenu||(this.isDestroyingLeafMenu=!0,setTimeout(()=>{const o=this.getLastAttachedOverlay();this.overlays.length>1&&o&&(o.detach(),o.dispose()),!e&&this.overlays.length>0&&o&&(this.close.next({eventType:"cancel",event:i}),o.detach(),o.dispose());const a=this.getLastAttachedOverlay();a&&a.contextMenu&&(a.contextMenu.isLeaf=!0),this.isDestroyingLeafMenu=!1}))}destroySubMenus(e){const o=this.overlays.indexOf(e.overlay);this.overlays.slice(o+1).forEach(a=>{a.detach(),a.dispose()})}isLeafMenu(e){const i=this.getLastAttachedOverlay();return e.overlay===i}}return n.\u0275fac=function(e){return new(e||n)(en(Ff),en(moe))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),Uoe=(()=>{class n{constructor(e,i){this.contextMenuService=e,this.options=i,this.menuClass="",this.autoFocus=!1,this.useBootstrap4=!1,this.disabled=!1,this.close=new Cn,this.open=new Cn,this.visibleMenuItems=[],this.links=[],this.subscription=new X,this.options&&(this.autoFocus=this.options.autoFocus||!1,this.useBootstrap4=this.options.useBootstrap4||!1),this.subscription.add(e.show.subscribe(o=>{this.onMenuEvent(o)}))}ngOnDestroy(){this.subscription.unsubscribe()}onMenuEvent(e){if(this.disabled)return;const{contextMenu:i,event:o,item:a}=e;i&&i!==this||(this.event=o,this.item=a,this.setVisibleMenuItems(),this.contextMenuService.openContextMenu({...e,menuItems:this.visibleMenuItems,menuClass:this.menuClass}),this.contextMenuService.close.asObservable().pipe(Of()).subscribe(s=>this.close.emit(s)),this.open.next(e))}isMenuItemVisible(e){return this.evaluateIfFunction(e.visible)}setVisibleMenuItems(){this.visibleMenuItems=this.menuItems.filter(e=>this.isMenuItemVisible(e))}evaluateIfFunction(e){return e instanceof Function?e(this.item):e}}return n.\u0275fac=function(e){return new(e||n)(U(uF),U(wj,8))},n.\u0275cmp=wn({type:n,selectors:[["context-menu"]],contentQueries:function(e,i,o){if(1&e&&Jo(o,Voe,4),2&e){let a;Ai(a=wi())&&(i.menuItems=a)}},viewQuery:function(e,i){if(1&e&&jr(Noe,5),2&e){let o;Ai(o=wi())&&(i.menuElement=o.first)}},inputs:{menuClass:"menuClass",autoFocus:"autoFocus",useBootstrap4:"useBootstrap4",disabled:"disabled"},outputs:{close:"close",open:"open"},decls:0,vars:0,template:function(e,i){},styles:[".cdk-overlay-container{position:fixed;z-index:1000;pointer-events:none;top:0;left:0;width:100%;height:100%}.ngx-contextmenu.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box}\n"],encapsulation:2}),n})(),uLe=(()=>{class n{constructor(e){this.contextMenuService=e}onContextMenu(e){this.contextMenu&&!this.contextMenu.disabled&&(this.contextMenuService.show.next({contextMenu:this.contextMenu,event:e,item:this.contextMenuSubject}),e.preventDefault(),e.stopPropagation())}}return n.\u0275fac=function(e){return new(e||n)(U(uF))},n.\u0275dir=Wn({type:n,selectors:[["","contextMenu",""]],hostBindings:function(e,i){1&e&&Me("contextmenu",function(a){return i.onContextMenu(a)})},inputs:{contextMenuSubject:"contextMenuSubject",contextMenu:"contextMenu"}}),n})(),zoe=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[uF,{provide:wj,useValue:e},{provide:aO,useClass:SBe}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[[xs,iw]]}),n})();class hLe{constructor(r,e){this.period=r,this.scheduler=e}call(r,e){return e.subscribe(new fLe(r,this.period,this.scheduler))}}class fLe extends te{constructor(r,e,i){super(r),this.period=e,this.scheduler=i,this.hasValue=!1,this.add(i.schedule(mLe,e,{subscriber:this,period:e}))}_next(r){this.lastValue=r,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function mLe(n){let{subscriber:r,period:e}=n;r.notifyNext(),this.schedule(n,e)}function gLe(n,r,e,i){const o=window&&!!window.document&&window.document.documentElement;let a=o&&r?window:e;if(n&&(a=n&&o&&"string"==typeof n?function _Le(n,r,e){return(e?window.document:r).querySelector(n)}(n,e.nativeElement,i):n,!a))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return a}function xj(n){return n&&!n.firstChange}const bLe={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},yLe={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class CLe{constructor(r=!0){this.vertical=r,this.propsMap=r?bLe:yLe}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function MLe(n){return["Window","global"].some(e=>Object.prototype.toString.call(n).includes(e))}function Mj(n,r){return n?r.document.documentElement:null}function joe(n,r){const e=function DLe({container:n,isWindow:r,axis:e}){const{offsetHeightKey:i,clientHeightKey:o}=$oe(e);return Yoe(n,r,i,o)}(r);return r.isWindow?function SLe(n,r,e){const{axis:i,container:o,isWindow:a}=e,{offsetHeightKey:s,clientHeightKey:l}=$oe(i),d=n+Goe(Mj(a,o),i,a),f=Yoe(r.nativeElement,a,s,l),C=function PLe(n,r,e){const i=r.topKey();if(n.getBoundingClientRect)return n.getBoundingClientRect()[i]+Goe(n,r,e)}(r.nativeElement,i,a)+f;return{height:n,scrolled:d,totalToScroll:C,isWindow:a}}(e,n,r):function TLe(n,r,e){const{axis:i,container:o}=e;return{height:n,scrolled:o[i.scrollTopKey()],totalToScroll:o[i.scrollHeightKey()],isWindow:!1}}(e,0,r)}function $oe(n){return{offsetHeightKey:n.offsetHeightKey(),clientHeightKey:n.clientHeightKey()}}function Yoe(n,r,e,i){if(isNaN(n[e])){const o=Mj(r,n);return o?o[i]:0}return n[e]}function Goe(n,r,e){const i=r.pageYOffsetKey(),o=r.scrollTopKey(),a=r.offsetTopKey();return isNaN(window[i])?Mj(e,n)[o]:n.ownerDocument?n.ownerDocument.defaultView[i]:n[a]}function OLe(n,r,e){let i,o;if(n.totalToScroll<=0)return!1;const a=n.isWindow?n.scrolled:n.height+n.scrolled;return e?(i=(n.totalToScroll-a)/n.totalToScroll,o=r.down/10):(i=n.scrolled/(n.scrolled+(n.totalToScroll-a)),o=r.up/10),i<=o}class ILe{constructor({totalToScroll:r}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=r}updateScrollPosition(r){return this.lastScrollPosition=r}updateTotalToScroll(r){this.lastTotalToScroll!==r&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=r)}updateScroll(r,e){this.updateScrollPosition(r),this.updateTotalToScroll(e)}updateTriggeredFlag(r,e){e?this.triggered.down=r:this.triggered.up=r}isTriggeredScroll(r,e){return e?this.triggered.down===r:this.triggered.up===r}}function FLe(n){const{scrollContainer:r,scrollWindow:e,element:i,fromRoot:o}=n,a=function wLe({windowElement:n,axis:r}){return function xLe(n,r){return Object.assign({},n,{container:n.isWindow||r&&!r.nativeElement?r:r.nativeElement})}({axis:r,isWindow:MLe(n)},n)}({axis:new CLe(!n.horizontal),windowElement:gLe(r,e,i,o)}),s=new ILe({totalToScroll:joe(i,a)}),d={up:n.upDistance,down:n.downDistance};return function RLe(n){let r=dd(n.container,"scroll");return n.throttle&&(r=r.pipe(function pLe(n,r=dS){return e=>e.lift(new hLe(n,r))}(n.throttle))),r}({container:a.container,throttle:n.throttle}).pipe(Kt(()=>Wo(joe(i,a))),Ct(f=>function BLe(n,r,e){const{scrollDown:i,fire:o}=function ELe(n,r,e){const i=function kLe(n,r){return ns.updateScroll(f.scrolled,f.totalToScroll)),Fo(({fire:f,scrollDown:C,stats:{totalToScroll:M}})=>function ALe(n,r,e){return!!(n&&r||!e&&r)}(n.alwaysCallback,f,s.isTriggeredScroll(M,C))),Md(({scrollDown:f,stats:{totalToScroll:C}})=>{s.updateTriggeredFlag(C,f)}),Ct(LLe))}function LLe(n){const{scrollDown:r,stats:{scrolled:e}}=n;return{type:r?"[NGX_ISE] DOWN":"[NGX_ISE] UP",payload:{currentScrollPosition:e}}}let Woe=(()=>{class n{constructor(e,i){this.element=e,this.zone=i,this.scrolled=new Cn,this.scrolledUp=new Cn,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:e,infiniteScrollDisabled:i,infiniteScrollDistance:o}){const a=xj(e),s=xj(i),l=xj(o),d=!s&&!this.infiniteScrollDisabled||s&&!i.currentValue||l;(a||s||l)&&(this.destroyScroller(),d&&this.setup())}setup(){(function vLe(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=FLe({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(e=>this.zone.run(()=>this.handleOnScroll(e)))})}handleOnScroll({type:e,payload:i}){switch(e){case"[NGX_ISE] DOWN":return this.scrolled.emit(i);case"[NGX_ISE] UP":return this.scrolledUp.emit(i);default:return}}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(Zo))},n.\u0275dir=Wn({type:n,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[vo]}),n})(),NLe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({}),n})();var yd=(()=>(function(n){n.step="STEP",n.currency="CURRENCY",n.conditional="CONDITIONAL",n.text="TEXT",n.date="DATE",n.number="NUMBER",n.multiple="MULTIPLE"}(yd||(yd={})),yd))();class Jx{constructor(r){this.value=r}}class Qoe{}class Ib{get name(){return this.alias||this.key}static newItemPropertyDefinition(r){const e=new Ib;return e.alias=r.alias,e.choices=r.choices,e.default=r.default,e.groupId=r.groupId,e.id=r.id,e.key=r.key,e.type=r.type,e.position=r.position,e}static newItemsPropertyDefinition(r){const e=[];return r.map(i=>{e.push(Ib.newItemPropertyDefinition(i))}),e}}function Koe(n,r,e,i,o,a,s){try{var l=n[a](s),d=l.value}catch(f){return void e(f)}l.done?r(d):Promise.resolve(d).then(i,o)}function dt(n){return function(){var r=this,e=arguments;return new Promise(function(i,o){var a=n.apply(r,e);function s(d){Koe(a,i,o,s,l,"next",d)}function l(d){Koe(a,i,o,s,l,"throw",d)}s(void 0)})}}var ba=(()=>(function(n){n.admin="ADMIN",n.default="DEFAULT",n.viewer="VIEWER",n.provider="PROVIDER"}(ba||(ba={})),ba))();class hO{constructor(r="",e="",i=null,o="",a=!1,s=null){this.id=r,this.name=e,this.role=i,this.email=o,this.blocked=a,this.company=s}canAccessCollection(r){switch(this.role){case ba.provider:return r.allItems().some(e=>this.itemHasStepsAssignedToUser(e,this));case ba.admin:case ba.default:case ba.viewer:return!0;default:return!1}}canAccessItem(r){switch(this.role){case ba.provider:return this.itemHasStepsAssignedToUser(r,this);case ba.admin:case ba.default:case ba.viewer:return!0;default:return!1}}itemHasStepsAssignedToUser(r,e){return r.steps.some(i=>!!i.assignee&&i.assignee.id===e.id)}getRoleDescription(r){switch(r){case ba.admin:return"applicationSettingsInviteUserFormRoleAdminOption";case ba.default:return"applicationSettingsInviteUserFormRoleDefaultOption";case ba.provider:return"applicationSettingsInviteUserFormRoleProviderOption";case ba.viewer:return"applicationSettingsInviteUserFormRoleViewerOption";default:return""}}}var Sj=function(n,r){return Sj=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])},Sj(n,r)};function Tj(n,r){function e(){this.constructor=n}Sj(n,r),n.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var Ps=function(){return Ps=Object.assign||function(r){for(var e,i=1,o=arguments.length;i0&&a[a.length-1])&&(6===f[0]||2===f[0])){e=0;continue}if(3===f[0]&&(!a||f[1]>a[0]&&f[1]0){var i=e.connection.filter?e.connection.filter:[];i.sort();var o=r,a={};return i.forEach(function(d){a[d]=o[d]}),e.connection.key+"("+JSON.stringify(a)+")"}return e.connection.key}var s=n;if(r){var l=YLe()(r);s+="("+l+")"}return e&&Object.keys(e).forEach(function(d){-1===iNe.indexOf(d)&&(e[d]&&Object.keys(e[d]).length?s+="@"+d+"("+JSON.stringify(e[d])+")":s+="@"+d)}),s}function Fj(n,r){if(n.arguments&&n.arguments.length){var e={};return n.arguments.forEach(function(i){return fO(e,i.name,i.value,r)}),e}return null}function pF(n){return n.alias?n.alias.value:n.name.value}function t2(n){return"Field"===n.kind}function rN(n){return"InlineFragment"===n.kind}function oN(n){return n&&"id"===n.type&&"boolean"==typeof n.generated}function aN(n,r){return void 0===r&&(r=!1),A1({type:"id",generated:r},"string"==typeof n?{id:n,typename:void 0}:n)}function aNe(n,r){if(n.directives&&n.directives.length){var e={};return n.directives.forEach(function(i){e[i.name.value]=Fj(i,r)}),e}return null}function Rj(n,r){return void 0===r&&(r={}),function dNe(n){return n?n.filter(cNe).map(function(r){var e=r.arguments;Sd(e&&1===e.length,2);var o=e[0];Sd(o.name&&"if"===o.name.value,3);var a=o.value;return Sd(a&&("Variable"===a.kind||"BooleanValue"===a.kind),4),{directive:r,ifArgument:o}}):[]}(n.directives).every(function(e){var i=e.directive,o=e.ifArgument,a=!1;return"Variable"===o.value.kind?Sd(void 0!==(a=r[o.value.name.value]),1):a=o.value.value,"skip"===i.name.value?!a:a})}function sN(n,r){return function sNe(n){var r=[];return(0,rw.Vn)(n,{Directive:function(e){r.push(e.name.value)}}),r}(r).some(function(e){return n.indexOf(e)>-1})}function lNe(n){return n&&sN(["client"],n)&&sN(["export"],n)}function cNe(n){var r=n.name.value;return"skip"===r||"include"===r}function lae(n,r){var e=r,i=[];return n.definitions.forEach(function(a){if("OperationDefinition"===a.kind)throw new Ag(5);"FragmentDefinition"===a.kind&&i.push(a)}),typeof e>"u"&&(Sd(1===i.length,6),e=i[0].name.value),A1(A1({},n),{definitions:kj([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}}],n.definitions)})}function Bj(n){for(var r=[],e=1;e"u"||null===i||Object.keys(i).forEach(function(o){n[o]=i[o]})}),n}function QS(n){Sd(n&&"Document"===n.kind,8);var r=n.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw new Ag(9);return e});return Sd(r.length<=1,10),n}function mO(n){return QS(n),n.definitions.filter(function(r){return"OperationDefinition"===r.kind})[0]}function Lj(n){return n.definitions.filter(function(r){return"OperationDefinition"===r.kind&&r.name}).map(function(r){return r.name.value})[0]||null}function lN(n){return n.definitions.filter(function(r){return"FragmentDefinition"===r.kind})}function cN(n){QS(n);for(var r,e=0,i=n.definitions;e1){var i=[];r=Gj(r,i);for(var o=1;o(function(n){n[n.loading=1]="loading",n[n.setVariables=2]="setVariables",n[n.fetchMore=3]="fetchMore",n[n.refetch=4]="refetch",n[n.poll=6]="poll",n[n.ready=7]="ready",n[n.error=8]="error"}(Qh||(Qh={})),Qh))();function Mae(n){return n<7}var fF=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return Tj(r,n),r.prototype[NNe.default]=function(){return this},r.prototype["@@observable"]=function(){return this},r}(sm);function _O(n){return Array.isArray(n)&&n.length>0}var oC=function(n){function r(e){var i=e.graphQLErrors,o=e.networkError,a=e.errorMessage,s=e.extraInfo,l=n.call(this,a)||this;return l.graphQLErrors=i||[],l.networkError=o||null,l.message=a||function(n){var r="";return _O(n.graphQLErrors)&&n.graphQLErrors.forEach(function(e){r+="GraphQL error: "+(e?e.message:"Error message not found.")+"\n"}),n.networkError&&(r+="Network error: "+n.networkError.message+"\n"),r=r.replace(/\n$/,"")}(l),l.extraInfo=s,l.__proto__=r.prototype,l}return Tj(r,n),r}(Error),n2=(()=>(function(n){n[n.normal=1]="normal",n[n.refetch=2]="refetch",n[n.poll=3]="poll"}(n2||(n2={})),n2))(),zNe=function(n){function r(e){var i=e.queryManager,o=e.options,a=e.shouldSubscribe,s=void 0===a||a,l=n.call(this,function(f){return l.onSubscribe(f)})||this;l.observers=new Set,l.subscriptions=new Set,l.isTornDown=!1,l.options=o,l.variables=o.variables||{},l.queryId=i.generateQueryId(),l.shouldSubscribe=s;var d=mO(o.query);return l.queryName=d&&d.name&&d.name.value,l.queryManager=i,l}return Tj(r,n),r.prototype.result=function(){var e=this;return new Promise(function(i,o){var a={next:function(l){i(l),e.observers.delete(a),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){s.unsubscribe()},0)},error:o},s=e.subscribe(a)})},r.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},r.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:Qh.error}}var l,i=this.queryManager.getCurrentQueryResult(this),o=i.data,a=i.partial,s=this.queryManager.queryStore.get(this.queryId),d=this.options.fetchPolicy,f="network-only"===d||"no-cache"===d;if(s){var C=s.networkStatus;if(function(n,r){return void 0===r&&(r="none"),n&&(n.networkError||"none"===r&&_O(n.graphQLErrors))}(s,this.options.errorPolicy))return{data:void 0,loading:!1,networkStatus:C,error:new oC({graphQLErrors:s.graphQLErrors,networkError:s.networkError})};s.variables&&(this.options.variables=Ps(Ps({},this.options.variables),s.variables),this.variables=this.options.variables),l={data:o,loading:Mae(C),networkStatus:C},s.graphQLErrors&&"all"===this.options.errorPolicy&&(l.errors=s.graphQLErrors)}else{var M=f||a&&"cache-only"!==d;l={data:o,loading:M,networkStatus:M?Qh.loading:Qh.ready}}return a||this.updateLastResult(Ps(Ps({},l),{stale:!1})),Ps(Ps({},l),{partial:a})},r.prototype.isDifferentFromLastResult=function(e){var i=this.lastResultSnapshot;return!(i&&e&&i.networkStatus===e.networkStatus&&i.stale===e.stale&&Fb(i.data,e.data))},r.prototype.getLastResult=function(){return this.lastResult},r.prototype.getLastError=function(){return this.lastError},r.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},r.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},r.prototype.refetch=function(e){var i=this.options.fetchPolicy;return"cache-only"===i?Promise.reject(new Ag(3)):("no-cache"!==i&&"cache-and-network"!==i&&(i="network-only"),Fb(this.variables,e)||(this.variables=Ps(Ps({},this.variables),e)),Fb(this.options.variables,this.variables)||(this.options.variables=Ps(Ps({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Ps(Ps({},this.options),{fetchPolicy:i}),n2.refetch))},r.prototype.fetchMore=function(e){var i=this;Sd(e.updateQuery,4);var o=Ps(Ps({},e.query?e:Ps(Ps(Ps({},this.options),e),{variables:Ps(Ps({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),a=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(a,o,n2.normal,this.queryId).then(function(s){return i.updateQuery(function(l){return e.updateQuery(l,{fetchMoreResult:s.data,variables:o.variables})}),i.queryManager.stopQuery(a),s},function(s){throw i.queryManager.stopQuery(a),s})},r.prototype.subscribeToMore=function(e){var i=this,o=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(a){var s=e.updateQuery;s&&i.updateQuery(function(l,d){return s(l,{subscriptionData:a,variables:d.variables})})},error:function(a){e.onError&&e.onError(a)}});return this.subscriptions.add(o),function(){i.subscriptions.delete(o)&&o.unsubscribe()}},r.prototype.setOptions=function(e){var i=this.options.fetchPolicy;this.options=Ps(Ps({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var o=e.fetchPolicy;return this.setVariables(this.options.variables,i!==o&&("cache-only"===i||"standby"===i||"network-only"===o),e.fetchResults)},r.prototype.setVariables=function(e,i,o){return void 0===i&&(i=!1),void 0===o&&(o=!0),this.isTornDown=!1,e=e||this.variables,!i&&Fb(e,this.variables)?this.observers.size&&o?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},r.prototype.updateQuery=function(e){var i=this.queryManager,o=i.getQueryWithPreviousResult(this.queryId),a=o.previousResult,s=o.variables,l=o.document,d=$j(function(){return e(a,{variables:s})});d&&(i.dataStore.markUpdateQueryResult(l,s,d),i.broadcastQueries())},r.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},r.prototype.startPolling=function(e){Sae(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},r.prototype.updateLastResult=function(e){var i=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:wNe(e),i},r.prototype.onSubscribe=function(e){var i=this;try{var o=e._subscription._observer;o&&!o.error&&(o.error=jNe)}catch{}var a=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),a&&this.setUpQuery(),function(){i.observers.delete(e)&&!i.observers.size&&i.tearDownQuery()}},r.prototype.setUpQuery=function(){var e=this,o=this.queryManager,a=this.queryId;this.shouldSubscribe&&o.addObservableQuery(a,this),this.options.pollInterval&&(Sae(this),o.startPollingQuery(this.options,a));var s=function(l){e.updateLastResult(Ps(Ps({},e.lastResult),{errors:l.graphQLErrors,networkStatus:Qh.error,loading:!1})),Kj(e.observers,"error",e.lastError=l)};o.observeQuery(a,this.options,{next:function(l){if(e.lastError||e.isDifferentFromLastResult(l)){var d=e.updateLastResult(l),f=e.options,C=f.query,M=f.variables,T=f.fetchPolicy;o.transform(C).hasClientExports?o.getLocalState().addExportedVariables(C,M).then(function(F){var pe=e.variables;e.variables=e.options.variables=F,!l.loading&&d&&"cache-only"!==T&&o.transform(C).serverQuery&&!Fb(pe,F)?e.refetch():Kj(e.observers,"next",l)}):Kj(e.observers,"next",l)}},error:s}).catch(s)},r.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach(function(i){return i.unsubscribe()}),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},r}(fF);function jNe(n){}function Kj(n,r,e){var i=[];n.forEach(function(o){return o[r]&&i.push(o)}),i.forEach(function(o){return o[r](e)})}function Sae(n){var r=n.options.fetchPolicy;Sd("cache-first"!==r&&"cache-only"!==r,5)}var $Ne=function(){function n(){this.store={}}return n.prototype.getStore=function(){return this.store},n.prototype.get=function(r){return this.store[r]},n.prototype.initMutation=function(r,e,i){this.store[r]={mutation:e,variables:i||{},loading:!0,error:null}},n.prototype.markMutationError=function(r,e){var i=this.store[r];i&&(i.loading=!1,i.error=e)},n.prototype.markMutationResult=function(r){var e=this.store[r];e&&(e.loading=!1,e.error=null)},n.prototype.reset=function(){this.store={}},n}(),YNe=function(){function n(){this.store={}}return n.prototype.getStore=function(){return this.store},n.prototype.get=function(r){return this.store[r]},n.prototype.initQuery=function(r){var e=this.store[r.queryId];Sd(!e||e.document===r.document||Fb(e.document,r.document),19);var i=!1,o=null;r.storePreviousVariables&&e&&e.networkStatus!==Qh.loading&&(Fb(e.variables,r.variables)||(i=!0,o=e.variables));var s=[];e&&e.graphQLErrors&&(s=e.graphQLErrors),this.store[r.queryId]={document:r.document,variables:r.variables,previousVariables:o,networkError:null,graphQLErrors:s,networkStatus:i?Qh.setVariables:r.isPoll?Qh.poll:r.isRefetch?Qh.refetch:Qh.loading,metadata:r.metadata},"string"==typeof r.fetchMoreForQueryId&&this.store[r.fetchMoreForQueryId]&&(this.store[r.fetchMoreForQueryId].networkStatus=Qh.fetchMore)},n.prototype.markQueryResult=function(r,e,i){!this.store||!this.store[r]||(this.store[r].networkError=null,this.store[r].graphQLErrors=_O(e.errors)?e.errors:[],this.store[r].previousVariables=null,this.store[r].networkStatus=Qh.ready,"string"==typeof i&&this.store[i]&&(this.store[i].networkStatus=Qh.ready))},n.prototype.markQueryError=function(r,e,i){!this.store||!this.store[r]||(this.store[r].networkError=e,this.store[r].networkStatus=Qh.error,"string"==typeof i&&this.markQueryResultClient(i,!0))},n.prototype.markQueryResultClient=function(r,e){var i=this.store&&this.store[r];i&&(i.networkError=null,i.previousVariables=null,e&&(i.networkStatus=Qh.ready))},n.prototype.stopQuery=function(r){delete this.store[r]},n.prototype.reset=function(r){var e=this;Object.keys(this.store).forEach(function(i){r.indexOf(i)<0?e.stopQuery(i):e.store[i].networkStatus=Qh.loading})},n}(),Tae=function(){function n(r){var i=r.client,o=r.resolvers,a=r.fragmentMatcher;this.cache=r.cache,i&&(this.client=i),o&&this.addResolvers(o),a&&this.setFragmentMatcher(a)}return n.prototype.addResolvers=function(r){var e=this;this.resolvers=this.resolvers||{},Array.isArray(r)?r.forEach(function(i){e.resolvers=_ae(e.resolvers,i)}):this.resolvers=_ae(this.resolvers,r)},n.prototype.setResolvers=function(r){this.resolvers={},this.addResolvers(r)},n.prototype.getResolvers=function(){return this.resolvers||{}},n.prototype.runResolvers=function(r){var e=r.document,i=r.remoteResult,o=r.context,a=r.variables,s=r.onlyRunForcedResolvers,l=void 0!==s&&s;return Zx(this,void 0,void 0,function(){return e2(this,function(d){return e?[2,this.resolveDocument(e,i.data,o,a,this.fragmentMatcher,l).then(function(f){return Ps(Ps({},i),{data:f.result})})]:[2,i]})})},n.prototype.setFragmentMatcher=function(r){this.fragmentMatcher=r},n.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},n.prototype.clientQuery=function(r){return sN(["client"],r)&&this.resolvers?r:null},n.prototype.serverQuery=function(r){return this.resolvers?function CNe(n){QS(n);var r=uae([{test:function(e){return"client"===e.name.value},remove:!0}],n);return r&&(r=(0,rw.Vn)(r,{FragmentDefinition:{enter:function(e){if(e.selectionSet){var i=e.selectionSet.selections.every(function(o){return t2(o)&&"__typename"===o.name.value});if(i)return null}}}})),r}(r):r},n.prototype.prepareContext=function(r){void 0===r&&(r={});var e=this.cache,i=Ps(Ps({},r),{cache:e,getCacheKey:function(o){if(e.config)return e.config.dataIdFromObject(o);Sd(!1,6)}});return i},n.prototype.addExportedVariables=function(r,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),Zx(this,void 0,void 0,function(){return e2(this,function(o){return r?[2,this.resolveDocument(r,this.buildRootValueFromCache(r,e)||{},this.prepareContext(i),e).then(function(a){return Ps(Ps({},e),a.exportedVariables)})]:[2,Ps({},e)]})})},n.prototype.shouldForceResolvers=function(r){var e=!1;return(0,rw.Vn)(r,{Directive:{enter:function(i){if("client"===i.name.value&&i.arguments&&(e=i.arguments.some(function(o){return"always"===o.name.value&&"BooleanValue"===o.value.kind&&!0===o.value.value}),e))return rw.$_}}}),e},n.prototype.buildRootValueFromCache=function(r,e){return this.cache.diff({query:yNe(r),variables:e,returnPartialData:!0,optimistic:!1}).result},n.prototype.resolveDocument=function(r,e,i,o,a,s){return void 0===i&&(i={}),void 0===o&&(o={}),void 0===a&&(a=function(){return!0}),void 0===s&&(s=!1),Zx(this,void 0,void 0,function(){var l,d,f,C,M,T,F,pe,ce;return e2(this,function(fe){return l=cN(r),d=lN(r),f=dN(d),M=(C=l.operation)?function GNe(n){return n.charAt(0).toUpperCase()+n.slice(1)}(C):"Query",F=(T=this).cache,pe=T.client,ce={fragmentMap:f,context:Ps(Ps({},i),{cache:F,client:pe}),variables:o,fragmentMatcher:a,defaultOperationType:M,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(l.selectionSet,e,ce).then(function(Pe){return{result:Pe,exportedVariables:ce.exportedVariables}})]})})},n.prototype.resolveSelectionSet=function(r,e,i){return Zx(this,void 0,void 0,function(){var o,a,s,l,f=this;return e2(this,function(C){return o=i.fragmentMap,a=i.context,s=i.variables,l=[e],[2,Promise.all(r.selections.map(function(M){return Zx(f,void 0,void 0,function(){var T;return e2(this,function(pe){return Rj(M,s)?t2(M)?[2,this.resolveField(M,e,i).then(function(ce){var fe;typeof ce<"u"&&l.push(((fe={})[pF(M)]=ce,fe))})]:(rN(M)?T=M:Sd(T=o[M.name.value],7),T&&T.typeCondition&&i.fragmentMatcher(e,T.typeCondition.name.value,a)?[2,this.resolveSelectionSet(T.selectionSet,e,i).then(function(ce){l.push(ce)})]:[2]):[2]})})})).then(function(){return Yj(l)})]})})},n.prototype.resolveField=function(r,e,i){return Zx(this,void 0,void 0,function(){var o,a,s,l,d,f,C,M,T,F=this;return e2(this,function(pe){return o=i.variables,a=r.name.value,s=pF(r),l=a!==s,d=e[s]||e[a],f=Promise.resolve(d),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(r))&&(C=e.__typename||i.defaultOperationType,(M=this.resolvers&&this.resolvers[C])&&(T=M[l?a:s])&&(f=Promise.resolve(T(e,Fj(r,o),i.context,{field:r,fragmentMap:i.fragmentMap})))),[2,f.then(function(ce){return void 0===ce&&(ce=d),r.directives&&r.directives.forEach(function(fe){"export"===fe.name.value&&fe.arguments&&fe.arguments.forEach(function(Pe){"as"===Pe.name.value&&"StringValue"===Pe.value.kind&&(i.exportedVariables[Pe.value.value]=ce)})}),r.selectionSet&&null!=ce?Array.isArray(ce)?F.resolveSubSelectedArray(r,ce,i):r.selectionSet?F.resolveSelectionSet(r.selectionSet,ce,i):void 0:ce})]})})},n.prototype.resolveSubSelectedArray=function(r,e,i){var o=this;return Promise.all(e.map(function(a){return null===a?null:Array.isArray(a)?o.resolveSubSelectedArray(r,a,i):r.selectionSet?o.resolveSelectionSet(r.selectionSet,a,i):void 0}))},n}();function Dae(n){var r=new Set,e=null;return new fF(function(i){return r.add(i),e=e||n.subscribe({next:function(o){r.forEach(function(a){return a.next&&a.next(o)})},error:function(o){r.forEach(function(a){return a.error&&a.error(o)})},complete:function(){r.forEach(function(o){return o.complete&&o.complete()})}}),function(){r.delete(i)&&!r.size&&e&&(e.unsubscribe(),e=null)}})}var QNe=Object.prototype.hasOwnProperty,KNe=function(){function n(r){var e=r.link,i=r.queryDeduplication,o=void 0!==i&&i,a=r.store,s=r.onBroadcast,l=void 0===s?function(){}:s,d=r.ssrMode,f=void 0!==d&&d,C=r.clientAwareness,M=void 0===C?{}:C,T=r.localState,F=r.assumeImmutableResults;this.mutationStore=new $Ne,this.queryStore=new YNe,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(Vj?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=e,this.queryDeduplication=o,this.dataStore=a,this.onBroadcast=l,this.clientAwareness=M,this.localState=T||new Tae({cache:a.getCache()}),this.ssrMode=f,this.assumeImmutableResults=!!F}return n.prototype.stop=function(){var r=this;this.queries.forEach(function(e,i){r.stopQueryNoBroadcast(i)}),this.fetchQueryRejectFns.forEach(function(e){e(new Ag(8))})},n.prototype.mutate=function(r){var e=r.mutation,i=r.variables,o=r.optimisticResponse,a=r.updateQueries,s=r.refetchQueries,l=void 0===s?[]:s,d=r.awaitRefetchQueries,f=void 0!==d&&d,C=r.update,M=r.errorPolicy,T=void 0===M?"none":M,F=r.fetchPolicy,pe=r.context,ce=void 0===pe?{}:pe;return Zx(this,void 0,void 0,function(){var fe,Pe,Ne,Ge=this;return e2(this,function(lt){switch(lt.label){case 0:return Sd(e,9),Sd(!F||"no-cache"===F,10),fe=this.generateQueryId(),e=this.transform(e).document,this.setQuery(fe,function(){return{document:e}}),i=this.getVariables(e,i),this.transform(e).hasClientExports?[4,this.localState.addExportedVariables(e,i,ce)]:[3,2];case 1:i=lt.sent(),lt.label=2;case 2:return Pe=function(){var Pt={};return a&&Ge.queries.forEach(function(Qt,Ot){var tn=Qt.observableQuery;if(tn){var Nn=tn.queryName;Nn&&QNe.call(a,Nn)&&(Pt[Ot]={updater:a[Nn],query:Ge.queryStore.get(Ot)})}}),Pt},this.mutationStore.initMutation(fe,e,i),this.dataStore.markMutationInit({mutationId:fe,document:e,variables:i,updateQueries:Pe(),update:C,optimisticResponse:o}),this.broadcastQueries(),Ne=this,[2,new Promise(function(Pt,Qt){var Ot,tn;Ne.getObservableFromLink(e,Ps(Ps({},ce),{optimisticResponse:o}),i,!1).subscribe({next:function(Nn){KS(Nn)&&"none"===T?tn=new oC({graphQLErrors:Nn.errors}):(Ne.mutationStore.markMutationResult(fe),"no-cache"!==F&&Ne.dataStore.markMutationResult({mutationId:fe,result:Nn,document:e,variables:i,updateQueries:Pe(),update:C}),Ot=Nn)},error:function(Nn){Ne.mutationStore.markMutationError(fe,Nn),Ne.dataStore.markMutationComplete({mutationId:fe,optimisticResponse:o}),Ne.broadcastQueries(),Ne.setQuery(fe,function(){return{document:null}}),Qt(new oC({networkError:Nn}))},complete:function(){if(tn&&Ne.mutationStore.markMutationError(fe,tn),Ne.dataStore.markMutationComplete({mutationId:fe,optimisticResponse:o}),Ne.broadcastQueries(),tn)Qt(tn);else{"function"==typeof l&&(l=l(Ot));var Nn=[];_O(l)&&l.forEach(function(ii){if("string"==typeof ii)Ne.queries.forEach(function(nn){var Fn=nn.observableQuery;Fn&&Fn.queryName===ii&&Nn.push(Fn.refetch())});else{var Ht={query:ii.query,variables:ii.variables,fetchPolicy:"network-only"};ii.context&&(Ht.context=ii.context),Nn.push(Ne.query(Ht))}}),Promise.all(f?Nn:[]).then(function(){Ne.setQuery(fe,function(){return{document:null}}),"ignore"===T&&Ot&&KS(Ot)&&delete Ot.errors,Pt(Ot)})}}})})]}})})},n.prototype.fetchQuery=function(r,e,i,o){return Zx(this,void 0,void 0,function(){var a,s,l,d,f,C,M,T,F,pe,ce,fe,Ge,lt,Pt,Qt,Ot=this;return e2(this,function(tn){switch(tn.label){case 0:return s=void 0===(a=e.metadata)?null:a,d=void 0===(l=e.fetchPolicy)?"cache-first":l,C=void 0===(f=e.context)?{}:f,M=this.transform(e.query).document,T=this.getVariables(M,e.variables),this.transform(M).hasClientExports?[4,this.localState.addExportedVariables(M,T,C)]:[3,2];case 1:T=tn.sent(),tn.label=2;case 2:if(e=Ps(Ps({},e),{variables:T}),ce=pe="network-only"===d||"no-cache"===d,pe||(fe=this.dataStore.getCache().diff({query:M,variables:T,returnPartialData:!0,optimistic:!1}),ce=!fe.complete||"cache-and-network"===d,F=fe.result),Ge=ce&&"cache-only"!==d&&"standby"!==d,sN(["live"],M)&&(Ge=!0),lt=this.idCounter++,Pt="no-cache"!==d?this.updateQueryWatch(r,M,e):void 0,this.setQuery(r,function(){return{document:M,lastRequestId:lt,invalidated:!0,cancel:Pt}}),this.invalidate(o),this.queryStore.initQuery({queryId:r,document:M,storePreviousVariables:Ge,variables:T,isPoll:i===n2.poll,isRefetch:i===n2.refetch,metadata:s,fetchMoreForQueryId:o}),this.broadcastQueries(),Ge){if(Qt=this.fetchRequest({requestId:lt,queryId:r,document:M,options:e,fetchMoreForQueryId:o}).catch(function(Nn){throw function HNe(n){return n.hasOwnProperty("graphQLErrors")}(Nn)?Nn:(lt>=Ot.getQuery(r).lastRequestId&&(Ot.queryStore.markQueryError(r,Nn,o),Ot.invalidate(r),Ot.invalidate(o),Ot.broadcastQueries()),new oC({networkError:Nn}))}),"cache-and-network"!==d)return[2,Qt];Qt.catch(function(){})}return this.queryStore.markQueryResultClient(r,!Ge),this.invalidate(r),this.invalidate(o),this.transform(M).hasForcedResolvers?[2,this.localState.runResolvers({document:M,remoteResult:{data:F},context:C,variables:T,onlyRunForcedResolvers:!0}).then(function(Nn){return Ot.markQueryResult(r,Nn,e,o),Ot.broadcastQueries(),Nn})]:(this.broadcastQueries(),[2,{data:F}])}})})},n.prototype.markQueryResult=function(r,e,i,o){var s=i.variables,l=i.errorPolicy;"no-cache"===i.fetchPolicy?this.setQuery(r,function(){return{newData:{result:e.data,complete:!0}}}):this.dataStore.markQueryResult(e,this.getQuery(r).document,s,o,"ignore"===l||"all"===l)},n.prototype.queryListenerForObserver=function(r,e,i){var o=this;function a(s,l){if(i[s])try{i[s](l)}catch{}}return function(s,l){if(o.invalidate(r,!1),s){var d=o.getQuery(r),f=d.observableQuery,C=d.document,M=f?f.options.fetchPolicy:e.fetchPolicy;if("standby"!==M){var T=Mae(s.networkStatus),F=f&&f.getLastResult();if(!T||e.returnPartialData||!l&&s.previousVariables||F&&F.networkStatus!==s.networkStatus&&e.notifyOnNetworkStatusChange||"cache-only"===M||"cache-and-network"===M){var fe=_O(s.graphQLErrors),Pe=f&&f.options.errorPolicy||e.errorPolicy||"none";if("none"===Pe&&fe||s.networkError)return a("error",new oC({graphQLErrors:s.graphQLErrors,networkError:s.networkError}));try{var Ne=void 0,Ge=void 0;if(l)"no-cache"!==M&&"network-only"!==M&&o.setQuery(r,function(){return{newData:null}}),Ne=l.result,Ge=!l.complete;else{var lt=f&&f.getLastError();if(F&&F.data&&("none"===Pe||(lt&<.graphQLErrors)===s.graphQLErrors))Ne=F.data,Ge=!1;else{var Qt=o.dataStore.getCache().diff({query:C,variables:s.previousVariables||s.variables,returnPartialData:!0,optimistic:!0});Ne=Qt.result,Ge=!Qt.complete}}var Ot=Ge&&!(e.returnPartialData||"cache-only"===M),tn={data:Ot?F&&F.data:Ne,loading:T,networkStatus:s.networkStatus,stale:Ot};"all"===Pe&&fe&&(tn.errors=s.graphQLErrors),a("next",tn)}catch(Nn){a("error",new oC({networkError:Nn}))}}}}}},n.prototype.transform=function(r){var e=this.transformCache;if(!e.has(r)){var i=this.dataStore.getCache(),o=i.transformDocument(r),a=function gNe(n){return uae([mNe],QS(n))}(i.transformForLink(o)),s=this.localState.clientQuery(o),l=this.localState.serverQuery(a),d={document:o,hasClientExports:lNe(o),hasForcedResolvers:this.localState.shouldForceResolvers(o),clientQuery:s,serverQuery:l,defaultVars:Nj(mO(o))},f=function(C){C&&!e.has(C)&&e.set(C,d)};f(r),f(o),f(s),f(l)}return e.get(r)},n.prototype.getVariables=function(r,e){return Ps(Ps({},this.transform(r).defaultVars),e)},n.prototype.watchQuery=function(r,e){void 0===e&&(e=!0),Sd("standby"!==r.fetchPolicy,11),r.variables=this.getVariables(r.query,r.variables),typeof r.notifyOnNetworkStatusChange>"u"&&(r.notifyOnNetworkStatusChange=!1);var i=Ps({},r);return new zNe({queryManager:this,options:i,shouldSubscribe:e})},n.prototype.query=function(r){var e=this;return Sd(r.query,12),Sd("Document"===r.query.kind,13),Sd(!r.returnPartialData,14),Sd(!r.pollInterval,15),new Promise(function(i,o){var a=e.watchQuery(r,!1);e.fetchQueryRejectFns.set("query:"+a.queryId,o),a.result().then(i,o).then(function(){return e.fetchQueryRejectFns.delete("query:"+a.queryId)})})},n.prototype.generateQueryId=function(){return String(this.idCounter++)},n.prototype.stopQueryInStore=function(r){this.stopQueryInStoreNoBroadcast(r),this.broadcastQueries()},n.prototype.stopQueryInStoreNoBroadcast=function(r){this.stopPollingQuery(r),this.queryStore.stopQuery(r),this.invalidate(r)},n.prototype.addQueryListener=function(r,e){this.setQuery(r,function(i){return i.listeners.add(e),{invalidated:!1}})},n.prototype.updateQueryWatch=function(r,e,i){var o=this,a=this.getQuery(r).cancel;return a&&a(),this.dataStore.getCache().watch({query:e,variables:i.variables,optimistic:!0,previousResult:function(){var l=null,d=o.getQuery(r).observableQuery;if(d){var f=d.getLastResult();f&&(l=f.data)}return l},callback:function(l){o.setQuery(r,function(){return{invalidated:!0,newData:l}})}})},n.prototype.addObservableQuery=function(r,e){this.setQuery(r,function(){return{observableQuery:e}})},n.prototype.removeObservableQuery=function(r){var e=this.getQuery(r).cancel;this.setQuery(r,function(){return{observableQuery:null}}),e&&e()},n.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach(function(e){e(new Ag(16))});var r=[];return this.queries.forEach(function(e,i){e.observableQuery&&r.push(i)}),this.queryStore.reset(r),this.mutationStore.reset(),this.dataStore.reset()},n.prototype.resetStore=function(){var r=this;return this.clearStore().then(function(){return r.reFetchObservableQueries()})},n.prototype.reFetchObservableQueries=function(r){var e=this;void 0===r&&(r=!1);var i=[];return this.queries.forEach(function(o,a){var s=o.observableQuery;if(s){var l=s.options.fetchPolicy;s.resetLastResults(),"cache-only"!==l&&(r||"standby"!==l)&&i.push(s.refetch()),e.setQuery(a,function(){return{newData:null}}),e.invalidate(a)}}),this.broadcastQueries(),Promise.all(i)},n.prototype.observeQuery=function(r,e,i){return this.addQueryListener(r,this.queryListenerForObserver(r,e,i)),this.fetchQuery(r,e)},n.prototype.startQuery=function(r,e,i){return this.addQueryListener(r,i),this.fetchQuery(r,e).catch(function(){}),r},n.prototype.startGraphQLSubscription=function(r){var e=this,i=r.query,o=r.fetchPolicy,a=r.variables;i=this.transform(i).document,a=this.getVariables(i,a);var s=function(d){return e.getObservableFromLink(i,{},d,!1).map(function(f){if((!o||"no-cache"!==o)&&(e.dataStore.markSubscriptionResult(f,i,d),e.broadcastQueries()),KS(f))throw new oC({graphQLErrors:f.errors});return f})};if(this.transform(i).hasClientExports){var l=this.localState.addExportedVariables(i,a).then(s);return new fF(function(d){var f=null;return l.then(function(C){return f=C.subscribe(d)},d.error),function(){return f&&f.unsubscribe()}})}return s(a)},n.prototype.stopQuery=function(r){this.stopQueryNoBroadcast(r),this.broadcastQueries()},n.prototype.stopQueryNoBroadcast=function(r){this.stopQueryInStoreNoBroadcast(r),this.removeQuery(r)},n.prototype.removeQuery=function(r){this.fetchQueryRejectFns.delete("query:"+r),this.fetchQueryRejectFns.delete("fetchRequest:"+r),this.getQuery(r).subscriptions.forEach(function(e){return e.unsubscribe()}),this.queries.delete(r)},n.prototype.getCurrentQueryResult=function(r,e){void 0===e&&(e=!0);var i=r.options,o=i.variables,a=i.query,s=i.fetchPolicy,l=i.returnPartialData,d=r.getLastResult(),f=this.getQuery(r.queryId).newData;if(f&&f.complete)return{data:f.result,partial:!1};if("no-cache"===s||"network-only"===s)return{data:void 0,partial:!1};var C=this.dataStore.getCache().diff({query:a,variables:o,previousResult:d?d.data:void 0,returnPartialData:!0,optimistic:e}),T=C.complete;return{data:T||l?C.result:void 0,partial:!T}},n.prototype.getQueryWithPreviousResult=function(r){var e;if("string"==typeof r){var i=this.getQuery(r).observableQuery;Sd(i,17),e=i}else e=r;var o=e.options,a=o.variables,s=o.query;return{previousResult:this.getCurrentQueryResult(e,!1).data,variables:a,document:s}},n.prototype.broadcastQueries=function(){var r=this;this.onBroadcast(),this.queries.forEach(function(e,i){e.invalidated&&e.listeners.forEach(function(o){o&&o(r.queryStore.get(i),e.newData)})})},n.prototype.getLocalState=function(){return this.localState},n.prototype.getObservableFromLink=function(r,e,i,o){var a=this;void 0===o&&(o=this.queryDeduplication);var s,l=this.transform(r).serverQuery;if(l){var f=this.inFlightLinkObservables,C=this.link,M={query:l,variables:i,operationName:Lj(l)||void 0,context:this.prepareContext(Ps(Ps({},e),{forceFetch:!o}))};if(e=M.context,o){var T=f.get(l)||new Map;f.set(l,T);var F=JSON.stringify(i);if(!(s=T.get(F))){T.set(F,s=Dae(fN(C,M)));var pe=function(){T.delete(F),T.size||f.delete(l),ce.unsubscribe()},ce=s.subscribe({next:pe,error:pe,complete:pe})}}else s=Dae(fN(C,M))}else s=fF.of({data:{}}),e=this.prepareContext(e);var fe=this.transform(r).clientQuery;return fe&&(s=function WNe(n,r){return new fF(function(e){var i=e.next,o=e.error,a=e.complete,s=0,l=!1,d={next:function(C){++s,new Promise(function(M){M(r(C))}).then(function(M){--s,i&&i.call(e,M),l&&d.complete()},function(M){--s,o&&o.call(e,M)})},error:function(C){o&&o.call(e,C)},complete:function(){l=!0,s||a&&a.call(e)}},f=n.subscribe(d);return function(){return f.unsubscribe()}})}(s,function(Pe){return a.localState.runResolvers({document:fe,remoteResult:Pe,context:e,variables:i})})),s},n.prototype.fetchRequest=function(r){var T,F,e=this,i=r.requestId,o=r.queryId,a=r.document,s=r.options,l=r.fetchMoreForQueryId,d=s.variables,f=s.errorPolicy,C=void 0===f?"none":f,M=s.fetchPolicy;return new Promise(function(pe,ce){var fe=e.getObservableFromLink(a,s.context,d),Pe="fetchRequest:"+o;e.fetchQueryRejectFns.set(Pe,ce);var Ne=function(){e.fetchQueryRejectFns.delete(Pe),e.setQuery(o,function(lt){lt.subscriptions.delete(Ge)})},Ge=fe.map(function(lt){if(i>=e.getQuery(o).lastRequestId&&(e.markQueryResult(o,lt,s,l),e.queryStore.markQueryResult(o,lt,l),e.invalidate(o),e.invalidate(l),e.broadcastQueries()),"none"===C&&_O(lt.errors))return ce(new oC({graphQLErrors:lt.errors}));if("all"===C&&(F=lt.errors),l||"no-cache"===M)T=lt.data;else{var Pt=e.dataStore.getCache().diff({variables:d,query:a,optimistic:!1,returnPartialData:!0});(Pt.complete||s.returnPartialData)&&(T=Pt.result)}}).subscribe({error:function(lt){Ne(),ce(lt)},complete:function(){Ne(),pe({data:T,errors:F,loading:!1,networkStatus:Qh.ready,stale:!1})}});e.setQuery(o,function(lt){lt.subscriptions.add(Ge)})})},n.prototype.getQuery=function(r){return this.queries.get(r)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},n.prototype.setQuery=function(r,e){var i=this.getQuery(r),o=Ps(Ps({},i),e(i));this.queries.set(r,o)},n.prototype.invalidate=function(r,e){void 0===e&&(e=!0),r&&this.setQuery(r,function(){return{invalidated:e}})},n.prototype.prepareContext=function(r){void 0===r&&(r={});var e=this.localState.prepareContext(r);return Ps(Ps({},e),{clientAwareness:this.clientAwareness})},n.prototype.checkInFlight=function(r){var e=this.queryStore.get(r);return e&&e.networkStatus!==Qh.ready&&e.networkStatus!==Qh.error},n.prototype.startPollingQuery=function(r,e,i){var o=this,a=r.pollInterval;if(Sd(a,18),!this.ssrMode){var s=this.pollingInfoByQueryId.get(e);s||this.pollingInfoByQueryId.set(e,s={}),s.interval=a,s.options=Ps(Ps({},r),{fetchPolicy:"network-only"});var l=function(){var f=o.pollingInfoByQueryId.get(e);f&&(o.checkInFlight(e)?d():o.fetchQuery(e,f.options,n2.poll).then(d,d))},d=function(){var f=o.pollingInfoByQueryId.get(e);f&&(clearTimeout(f.timeout),f.timeout=setTimeout(l,f.interval))};i&&this.addQueryListener(e,i),d()}return e},n.prototype.stopPollingQuery=function(r){this.pollingInfoByQueryId.delete(r)},n}(),qNe=function(){function n(r){this.cache=r}return n.prototype.getCache=function(){return this.cache},n.prototype.markQueryResult=function(r,e,i,o,a){void 0===a&&(a=!1);var s=!KS(r);a&&KS(r)&&r.data&&(s=!0),!o&&s&&this.cache.write({result:r.data,dataId:"ROOT_QUERY",query:e,variables:i})},n.prototype.markSubscriptionResult=function(r,e,i){KS(r)||this.cache.write({result:r.data,dataId:"ROOT_SUBSCRIPTION",query:e,variables:i})},n.prototype.markMutationInit=function(r){var i,e=this;r.optimisticResponse&&(i="function"==typeof r.optimisticResponse?r.optimisticResponse(r.variables):r.optimisticResponse,this.cache.recordOptimisticTransaction(function(o){var a=e.cache;e.cache=o;try{e.markMutationResult({mutationId:r.mutationId,result:{data:i},document:r.document,variables:r.variables,updateQueries:r.updateQueries,update:r.update})}finally{e.cache=a}},r.mutationId))},n.prototype.markMutationResult=function(r){var e=this;if(!KS(r.result)){var i=[{result:r.result.data,dataId:"ROOT_MUTATION",query:r.document,variables:r.variables}],o=r.updateQueries;o&&Object.keys(o).forEach(function(a){var s=o[a],l=s.query,d=s.updater,f=e.cache.diff({query:l.document,variables:l.variables,returnPartialData:!0,optimistic:!1}),C=f.result;if(f.complete){var T=$j(function(){return d(C,{mutationResult:r.result,queryName:Lj(l.document)||void 0,queryVariables:l.variables})});T&&i.push({result:T,dataId:"ROOT_QUERY",query:l.document,variables:l.variables})}}),this.cache.performTransaction(function(a){i.forEach(function(l){return a.write(l)});var s=r.update;s&&$j(function(){return s(a,r.result)})})}},n.prototype.markMutationComplete=function(r){r.optimisticResponse&&this.cache.removeOptimistic(r.mutationId)},n.prototype.markUpdateQueryResult=function(r,e,i){this.cache.write({result:i,dataId:"ROOT_QUERY",variables:e,query:r})},n.prototype.reset=function(){return this.cache.reset()},n}(),Pae=function(){function n(r){var e=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var i=r.cache,o=r.ssrMode,a=void 0!==o&&o,s=r.ssrForceFetchDelay,l=void 0===s?0:s,d=r.connectToDevTools,f=r.queryDeduplication,C=void 0===f||f,M=r.defaultOptions,T=r.assumeImmutableResults,F=void 0!==T&&T,pe=r.resolvers,ce=r.typeDefs,fe=r.fragmentMatcher,Pe=r.name,Ne=r.version,Ge=r.link;if(!Ge&&pe&&(Ge=s_.empty()),!Ge||!i)throw new Ag(1);this.link=Ge,this.cache=i,this.store=new qNe(i),this.disableNetworkFetches=a||l>0,this.queryDeduplication=C,this.defaultOptions=M||{},this.typeDefs=ce,l&&setTimeout(function(){return e.disableNetworkFetches=!1},l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),!(typeof d>"u")&&d&&typeof window<"u"&&(window.__APOLLO_CLIENT__=this),this.version="2.6.8",this.localState=new Tae({cache:i,client:this,resolvers:pe,fragmentMatcher:fe}),this.queryManager=new KNe({link:this.link,store:this.store,queryDeduplication:C,ssrMode:a,clientAwareness:{name:Pe,version:Ne},localState:this.localState,assumeImmutableResults:F,onBroadcast:function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.queryStore.getStore(),mutations:e.queryManager.mutationStore.getStore()},dataWithOptimisticResults:e.cache.extract(!0)})}})}return n.prototype.stop=function(){this.queryManager.stop()},n.prototype.watchQuery=function(r){return this.defaultOptions.watchQuery&&(r=Ps(Ps({},this.defaultOptions.watchQuery),r)),this.disableNetworkFetches&&("network-only"===r.fetchPolicy||"cache-and-network"===r.fetchPolicy)&&(r=Ps(Ps({},r),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(r)},n.prototype.query=function(r){return this.defaultOptions.query&&(r=Ps(Ps({},this.defaultOptions.query),r)),Sd("cache-and-network"!==r.fetchPolicy,2),this.disableNetworkFetches&&"network-only"===r.fetchPolicy&&(r=Ps(Ps({},r),{fetchPolicy:"cache-first"})),this.queryManager.query(r)},n.prototype.mutate=function(r){return this.defaultOptions.mutate&&(r=Ps(Ps({},this.defaultOptions.mutate),r)),this.queryManager.mutate(r)},n.prototype.subscribe=function(r){return this.queryManager.startGraphQLSubscription(r)},n.prototype.readQuery=function(r,e){return void 0===e&&(e=!1),this.cache.readQuery(r,e)},n.prototype.readFragment=function(r,e){return void 0===e&&(e=!1),this.cache.readFragment(r,e)},n.prototype.writeQuery=function(r){var e=this.cache.writeQuery(r);return this.queryManager.broadcastQueries(),e},n.prototype.writeFragment=function(r){var e=this.cache.writeFragment(r);return this.queryManager.broadcastQueries(),e},n.prototype.writeData=function(r){var e=this.cache.writeData(r);return this.queryManager.broadcastQueries(),e},n.prototype.__actionHookForDevTools=function(r){this.devToolsHookCb=r},n.prototype.__requestRaw=function(r){return fN(this.link,r)},n.prototype.initQueryManager=function(){return this.queryManager},n.prototype.resetStore=function(){var r=this;return Promise.resolve().then(function(){return r.queryManager.clearStore()}).then(function(){return Promise.all(r.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return r.reFetchObservableQueries()})},n.prototype.clearStore=function(){var r=this;return Promise.resolve().then(function(){return r.queryManager.clearStore()}).then(function(){return Promise.all(r.clearStoreCallbacks.map(function(e){return e()}))})},n.prototype.onResetStore=function(r){var e=this;return this.resetStoreCallbacks.push(r),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter(function(i){return i!==r})}},n.prototype.onClearStore=function(r){var e=this;return this.clearStoreCallbacks.push(r),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter(function(i){return i!==r})}},n.prototype.reFetchObservableQueries=function(r){return this.queryManager.reFetchObservableQueries(r)},n.prototype.extract=function(r){return this.cache.extract(r)},n.prototype.restore=function(r){return this.cache.restore(r)},n.prototype.addResolvers=function(r){this.localState.addResolvers(r)},n.prototype.setResolvers=function(r){this.localState.setResolvers(r)},n.prototype.getResolvers=function(){return this.localState.getResolvers()},n.prototype.setLocalStateFragmentMatcher=function(r){this.localState.setFragmentMatcher(r)},n}();const mF=new Pi("ItemsService"),qj=new Pi("FilterService"),mN=new Pi("companyService"),gN=new Pi("LocalStorage"),Xj=new Pi("SessionStorage");let hs=(()=>{class n{constructor(e,i,o,a,s){this._itemsService=e,this._companyService=i,this._filterService=o,this._localStorage=a,this._sessionStorage=s,this._steps=new Yn([]),this._stepTemplates=new Yn([]),this._itemPropertyDefinitions=new Yn([]),this._groupPropertyDefinitions=new Yn([]),this._categoryTemplates=new Yn([]),this._groupTemplates=new Yn([]),this._companyUsers=new Yn([]),this._itemRejectionReasons=new Yn([]),this._stepPendencyReasons=new Yn([]),this._stepReviewReasons=new Yn([]),this._savedItemFilters=new Yn([]),this._companySettings=new Yn(null),this.companyUsers$=this._companyUsers.asObservable(),this.mixTemplates$=this._categoryTemplates.asObservable(),this.mixGroups$=this._groupTemplates.asObservable(),this.itemPropertyDefinitions$=this._itemPropertyDefinitions.asObservable(),this.groupPropertyDefinitions$=this._groupPropertyDefinitions.asObservable(),this.allItemRejectionReasons$=this._itemRejectionReasons.asObservable(),this.allStepPendencyReasons$=this._stepPendencyReasons.asObservable(),this.allStepReviewReasons$=this._stepReviewReasons.asObservable(),this.allSavedItemFilters$=this._savedItemFilters.asObservable(),this.companySettings$=this._companySettings.asObservable(),this.itemRejectionReasons$=this.allItemRejectionReasons$.pipe(Ct(l=>l.filter(d=>!d.isInactive))),this.stepPendencyReasons$=this.allStepPendencyReasons$.pipe(Ct(l=>l.filter(d=>!d.isInactive))),this.stepReviewReasons$=this.allStepReviewReasons$.pipe(Ct(l=>l.filter(d=>!d.isInactive))),this.properties$=this.itemPropertyDefinitions$.pipe(Ct(l=>l.filter(d=>d.type!==yd.step))),this.propertiesGroup$=this.groupPropertyDefinitions$.pipe(Ct(l=>l.filter(d=>d.itemsPropertyDefinition.filter(f=>null!==f&&f.type!==yd.step)))),this.stepTemplates$=this._stepTemplates.asObservable(),this.defaultTemplate$=this.stepTemplates$.pipe(Ct(l=>l.filter(d=>null===d.id).firstOrDefault(null))),this.loading$=new Yn(!1)}load(){var e=this;return dt(function*(){try{e.loading$.next(!0),yield Promise.all([e._prepareCompanyUsers(),e._prepareCompanySettings(),e._prepareGroupPropertyDefinitions(),e._prepareItemPropertyDefinitions(),e._prepareCategoryTemplates(),e._prepareGroupTemplates(),e._prepareItemRejectionReasons(),e._prepareStepPendencyReasons(),e._prepareStepReviewReasons(),e._prepareStepTemplates(),e._prepareSteps()]),e.loading$.next(!1)}catch(i){throw i instanceof oC&&i.networkError.hasOwnProperty("result")?i.networkError.result:i}})()}_prepareStepTemplates(){var e=this;return dt(function*(){const i=yield e._itemsService.getStepTemplates();e._stepTemplates.next(i)})()}_prepareSteps(){var e=this;return dt(function*(){const i=yield e._itemsService.getSteps();e._steps.next(i)})()}_prepareItemPropertyDefinitions(){var e=this;return dt(function*(){const i=yield e._itemsService.getItemPropertiesDefinition();e._itemPropertyDefinitions.next(i)})()}_prepareGroupPropertyDefinitions(){var e=this;return dt(function*(){const i=yield e._itemsService.getGroupPropertiesDefinition();e._groupPropertyDefinitions.next(i)})()}_prepareCategoryTemplates(){var e=this;return dt(function*(){const i=yield e._itemsService.getCategoryTemplates();e._categoryTemplates.next(i)})()}_prepareGroupTemplates(){var e=this;return dt(function*(){const i=yield e._itemsService.getGroupTemplates();e._groupTemplates.next(i)})()}_prepareCompanyUsers(){var e=this;return dt(function*(){const o=(yield e._companyService.getAllUsers()).slice().sort((a,s)=>a.name&&s.name?a.name.localeCompare(s.name):-1);e._companyUsers.next(o)})()}getStepTemplates(){var e=this;return dt(function*(){return yield e._itemsService.getStepTemplates()})()}addStep(e){var i=this;return dt(function*(){const o=yield i._itemsService.addStep(e);return i._prepareStepTemplates(),o})()}createCollectionSteps(e,i){var o=this;return dt(function*(){return yield o._itemsService.createCollectionSteps(e,i)})()}renameCollectionStep(e,i){var o=this;return dt(function*(){return yield o._itemsService.renameCollectionStep(e,i)})()}updateCollectionSteps(e){var i=this;return dt(function*(){return yield i._itemsService.updateCollectionSteps(e)})()}addCollectionStep(e){var i=this;return dt(function*(){return yield i._itemsService.addCollectionStep(e)})()}addStepTemplate(e){var i=this;return dt(function*(){yield i._itemsService.addStepTemplate(e),i._prepareStepTemplates()})()}getUserPositions(){var e=this;return dt(function*(){return e._companyService.getUserPositions()})()}updateUserCompany(e){var i=this;return dt(function*(){return i._companyService.updateUserCompany(e)})()}_prepareItemRejectionReasons(){var e=this;return dt(function*(){const i=yield e._companyService.getItemRejectionReasons();e._itemRejectionReasons.next(i)})()}_prepareStepPendencyReasons(){var e=this;return dt(function*(){const i=yield e._companyService.getStepPendencyReasons();e._stepPendencyReasons.next(i)})()}_prepareStepReviewReasons(){var e=this;return dt(function*(){const i=yield e._companyService.getStepReviewReasons();e._stepReviewReasons.next(i)})()}_prepareCompanySettings(){var e=this;return dt(function*(){const i=yield e._companyService.getCompanySettings();e._companySettings.next(i)})()}updateCompanySettings(e){var i=this;return dt(function*(){const o=yield i._companyService.updateCompanySettings(e);return i._prepareCompanySettings(),o})()}addGroupPropertyDefinition(e){var i=this;return dt(function*(){const o=yield i._itemsService.addGroupPropertyDefinition(e),a=i._groupPropertyDefinitions.getValue().concat(o);return i._groupPropertyDefinitions.next(a),i._prepareGroupTemplates(),o})()}renameGroup(e,i){var o=this;return dt(function*(){const a=yield o._itemsService.updateGroup(e,i);return o._prepareGroupTemplates(),a})()}deleteGroupPropertyDefinition(e){var i=this;return dt(function*(){const o=yield i._itemsService.deleteGroupPropertyDefinition(e);return i._groupPropertyDefinitions.next(i._groupPropertyDefinitions.getValue().filter(a=>a.id!==o.id)),i._prepareGroupTemplates(),o})()}addItemPropertyDefinition(e,i){var o=this;return dt(function*(){const a=yield o._itemsService.addItemPropertyDefinition(e,i);return o._groupPropertyDefinitions.getValue().find(s=>s.id===a.groupId).itemsPropertyDefinition.push(a),o._groupPropertyDefinitions.next(o._groupPropertyDefinitions.getValue()),o._prepareItemPropertyDefinitions(),a})()}updateItemPropertyDefinition(e,i){var o=this;return dt(function*(){const a=yield o._itemsService.updateItemPropertyDefinition(e,i),s=o._groupPropertyDefinitions.getValue().find(l=>l.id===a.groupId).itemsPropertyDefinition.findIndex(l=>l.key===e.key);o._groupPropertyDefinitions.getValue().find(l=>l.id===a.groupId).itemsPropertyDefinition[s]=a,o._groupPropertyDefinitions.next(o._groupPropertyDefinitions.getValue()),o._prepareItemPropertyDefinitions()})()}updateStep(e,i){var o=this;return dt(function*(){yield o._itemsService.updateStep(e,i),yield o._prepareStepTemplates()})()}updateStepTemplate(e,i){var o=this;return dt(function*(){yield o._itemsService.updateStepTemplate(e,i),yield o._prepareStepTemplates()})()}addTemplate(e){var i=this;return dt(function*(){const o=yield i._itemsService.addCategoryTemplate(e);return i._categoryTemplates.next(i._categoryTemplates.getValue().concat(o)),o})()}deleteTemplate(e){var i=this;return dt(function*(){const o=yield i._itemsService.deleteCategoryTemplate(e),a=i._categoryTemplates.getValue().findIndex(s=>s.id===o.id&&s.name===o.name);return i._categoryTemplates.getValue().splice(a,1),i._categoryTemplates.next(i._categoryTemplates.getValue()),o})()}addTemplateSubCategory(e,i){var o=this;return dt(function*(){const a=yield o._itemsService.addCategoryTemplateSubCategory(e.id,i),s=o._categoryTemplates.getValue();return s.find(l=>l.id===e.id).subCategories.push(a),o._categoryTemplates.next(s),a})()}addCompanyUser(e,i){var o=this;return dt(function*(){const a=e;let s=new hO;const l=[];a.forEach(f=>{s=new hO("","",i,f),l.push(s)});const d=yield o._companyService.addNewUserToCompany(l);return o._companyUsers.next(o._companyUsers.getValue().concat(d)),l})()}updateCompanyUser(e){var i=this;return dt(function*(){const o=yield i._companyService.updateUser(e),a=i._companyUsers.getValue().findIndex(s=>s.id===o.id);return i._companyUsers.getValue().splice(a,1,o),i._companyUsers.next(i._companyUsers.getValue()),o})()}deleteCompanyUserInvite(e){var i=this;return dt(function*(){const o=yield i._companyService.deleteUserInvite(e),a=i._companyUsers.getValue().findIndex(s=>s.id===o.id);return i._companyUsers.getValue().splice(a,1),i._companyUsers.next(i._companyUsers.getValue()),o})()}deleteItemPropertyDefinition(e){var i=this;return dt(function*(){const o=yield i._itemsService.deleteItemPropertyDefinition(e);return i._groupPropertyDefinitions.getValue().find(a=>a.id===e.groupId).itemsPropertyDefinition=o,i._groupPropertyDefinitions.next(i._groupPropertyDefinitions.getValue()),i._prepareItemPropertyDefinitions(),e})()}deleteStep(e){var i=this;return dt(function*(){const o=yield i._itemsService.deleteStep(e);return i._prepareStepTemplates(),o})()}deleteStepTemplate(e){var i=this;return dt(function*(){yield i._itemsService.deleteStepTemplate(e),yield i._prepareStepTemplates()})()}addItemRejectionReason(e){var i=this;return dt(function*(){const[o]=yield Promise.all([yield i._companyService.addItemRejectionReason(e),i._prepareItemRejectionReasons()]);return o})()}updateItemRejectionReason(e,i){var o=this;return dt(function*(){const[a]=yield Promise.all([yield o._companyService.updateItemRejectionReason(e.id,e,i),o._prepareItemRejectionReasons()]);return a})()}updateItemsRejectionsReasons(e){var i=this;return dt(function*(){const[o]=yield Promise.all([yield i._companyService.updateItemsRejectionsReasons(e),i._prepareItemRejectionReasons()]);return o})()}addStepPendencyReason(e){var i=this;return dt(function*(){const[o]=yield Promise.all([yield i._companyService.addStepPendencyReason(e),i._prepareStepPendencyReasons()]);return o})()}updateStepPendencyReason(e,i){var o=this;return dt(function*(){const[a]=yield Promise.all([yield o._companyService.updateStepPendencyReason(e.id,e,i),o._prepareStepPendencyReasons()]);return a})()}updateStepsPendencyReasons(e){var i=this;return dt(function*(){const[o]=yield Promise.all([yield i._companyService.updateStepsPendencyReasons(e),i._prepareStepPendencyReasons()]);return o})()}addStepReviewReason(e){var i=this;return dt(function*(){const[o]=yield Promise.all([yield i._companyService.addStepReviewReason(e),i._prepareStepReviewReasons()]);return o})()}updateStepReviewReason(e,i){var o=this;return dt(function*(){const[a]=yield Promise.all([yield o._companyService.updateStepReviewReason(e.id,e,i),o._prepareStepReviewReasons()]);return a})()}updateStepsReviewsReasons(e){var i=this;return dt(function*(){const[o]=yield Promise.all([yield i._companyService.updateStepsReviewsReasons(e),i._prepareStepReviewReasons()]);return o})()}saveFilter(e,i){var o=this;return dt(function*(){const a=yield o._filterService.saveFilter(e,i),s=o._savedItemFilters.getValue();return s.unshift(a),o._savedItemFilters.next(s),a})()}getAllSavedItemFilters(){var e=this;return dt(function*(){const i=yield e._filterService.getAllSavedItemFilters();return e._savedItemFilters.next(i),i})()}deleteSavedItemFilter(e){var i=this;return dt(function*(){const o=i._savedItemFilters.getValue().filter(s=>s.id!==e);return i._savedItemFilters.next(o),yield i._filterService.deleteSavedItemFilter(e)})()}getUsersEmailFromLM(){var e=this;return dt(function*(){return yield e._companyService.getUsersEmailFromLM()})()}getCollapseState(){return this._getBooleanFromLocalStorage("collapseState")}setCollapseState(e){this._setToLocalStorage("collapseState",e)}getLastCollectionListFilter(){return this._getFromLocalStorage("collectionListFilter")}setLastCollectionListFilter(e){this._setToLocalStorage("collectionListFilter",e)}getShowRejectedItemsState(){return this._getBooleanFromLocalStorage("showRejectedItems")}setShowRejectedItemsState(e){this._setToLocalStorage("showRejectedItems",e)}getShowItemVariantsState(){return this._getBooleanFromLocalStorage("showItemVariants")}getShowParentItemState(){return this._getBooleanFromLocalStorage("showParentItem")}setShowItemVariantsState(e){this._setToLocalStorage("showItemVariants",e)}setShowParentItemState(e){this._setToLocalStorage("showParentItem",e)}getLastCycleIdAccessedByCollectionId(e){return this._getFromSessionStorage(`lastCycleAccessed${e}`)}setCycleIdAccessedByCollectionId(e,i){this._setToSessionStorage(`lastCycleAccessed${i}`,e)}getShowItemShape(){return this._getBooleanFromLocalStorage("showItemShape")}setShowItemShape(e){this._setToLocalStorage("showItemShape",e)}getShowBlockedItemRejectionReasonsState(){return this._getBooleanFromLocalStorage("showBlockedItemRejectionReasons")}setShowBlockedItemRejectionReasonsState(e){this._setToLocalStorage("showBlockedItemRejectionReasons",e)}getShowBlockedStepPendencyReasonsState(){return this._getBooleanFromLocalStorage("showBlockedStepPendencyReasons")}setShowBlockedStepPendencyReasonsState(e){this._setToLocalStorage("showBlockedStepPendencyReasons",e)}getShowBlockedStepReviewReasonsState(){return this._getBooleanFromLocalStorage("showBlockedStepReviewReasons")}setShowBlockedStepReviewReasonsState(e){this._setToLocalStorage("showBlockedStepReviewReasons",e)}getSeeStackedViewInStepsReportState(){return this._getBooleanFromLocalStorage("seeStackedViewInStepsReport")}setSeeStackedViewInStepsReportState(e){this._setToLocalStorage("seeStackedViewInStepsReport",e)}getIdOfFavoritesSavedItemFilters(){return this._transformToArrayOfStrings(this._getArrayFromLocalStorage("favoritesSavedItemFilters"))}setIdOfFavoritesSavedItemFilters(e){return this._setToLocalStorage("favoritesSavedItemFilters",e)}getChartViewModeOfCollectionReviewsReport(){return this._getFromLocalStorage("collectionReportReviewsItemChartViewOption")}setChartViewModeOfCollectionReviewsReport(e){return this._setToLocalStorage("collectionReportReviewsItemChartViewOption",e)}getChartViewModeOfCollectionWorkReport(){return this._getFromLocalStorage("collectionReportWorkItemChartViewOption")}setChartViewModeOfCollectionWorkReport(e){return this._setToLocalStorage("collectionReportWorkItemChartViewOption",e)}getChartViewModeOfCollectionStepsReport(){return this._getFromLocalStorage("collectionReportStepsItemChartViewOption")}setChartViewModeOfCollectionStepsReport(e){return this._setToLocalStorage("collectionReportStepsItemChartViewOption",e)}getChartViewModeOfCollectionPendencyReport(){return this._getFromLocalStorage("collectionReportPendencyItemChartViewOption")}setChartViewModeOfCollectionPendencyReport(e){return this._setToLocalStorage("collectionReportPendencyItemChartViewOption",e)}getChartViewModeOfCollectionRejectionReport(){return this._getFromLocalStorage("collectionReportRejectionItemChartViewOption")}setChartViewModeOfCollectionRejectionReport(e){return this._setToLocalStorage("collectionReportRejectionItemChartViewOption",e)}getTipsAndTricksDialogDisplayed(){return this._getBooleanFromLocalStorage("TipsAndTricksDialogDisplayed")}setTipsAndTricksDialogDisplayed(e){return this._setToLocalStorage("TipsAndTricksDialogDisplayed",e)}getitemCardMixWidthContainer(){return this._getFromLocalStorage("itemCardMixWidthContainer")}setitemCardMixWidthContainer(e){return this._setToLocalStorage("itemCardMixWidthContainer",e)}getOrderComments(){return this._getFromLocalStorage("orderComments")}setOrderComments(e){this._setToLocalStorage("orderComments",e)}getCollectionOverviewClassifyBy(){return this._getFromLocalStorage("collectionOverviewClassifyBy")}setCollectionOverviewClassifyBy(e){this._setToLocalStorage("collectionOverviewClassifyBy",e)}getCollectionOverviewOrderBy(){return this._getFromLocalStorage("collectionOverviewOrderBy")}setCollectionOverviewOrderBy(e){this._setToLocalStorage("collectionOverviewOrderBy",e)}getCollectionCurrency(){return this._getFromLocalStorage("collectionCurrency")}setCollectionCurrency(e){this._setToLocalStorage("collectionCurrency",e)}GetHideAlertMandatoryFlow(){return this._getBooleanFromLocalStorage("hideFlowAlert")}SetHideAlertMandatoryFlow(e){return this._setToLocalStorage("hideFlowAlert",e)}getBotHidden(){return this._getBooleanFromLocalStorage("botHidden")}setBotHidden(e){return this._setToLocalStorage("botHidden",e)}getViewCatalog(){return this._getBooleanFromLocalStorage("viewCatalog")}setViewCatalog(e){return this._setToLocalStorage("viewCatalog",e)}getTagCollapse(){return this._getBooleanFromLocalStorage("tagCollapse")}setTagCollapse(e){return this._setToLocalStorage("tagCollapse",e)}setMixOpen(e){return this._setToLocalStorage("mixOpen",e)}getMixOpen(){return this._getFromLocalStorage("mixOpen")}setZoomCatalogItemsAmount(e){return this._setToLocalStorage("zoomCatalog",e)}getZoomCatalogItemsAmount(){return this._getFromLocalStorage("zoomCatalog")}setBannerPwaHideEver(e){return this._setToLocalStorage("bannerPwaHideEver",e)}getBannerPwaHideEver(){return this._getFromLocalStorage("bannerPwaHideEver")}setRecordData(e){return this._setToLocalStorage("recordData",e)}getRecordData(){return this._getFromLocalStorage("recordData")}clearBannerPwaShowTurnOneDay(e){return this._clearFromSessionStorage(e)}deleteMixOpen(e){return this._clearFromSessionStorage(e)}getItemsPropertyDefinitionByGroupId(e){return this.properties$.pipe(Ct(i=>i.filter(o=>o.groupId===e).sort((o,a)=>o.position`${i}`):[]}_getBooleanFromLocalStorage(e){return this._getBooleanFromStorage(this._getFromLocalStorage(e))}_getArrayFromLocalStorage(e){return this._getArrayFromStorage(this._getFromLocalStorage(e))}_getFromLocalStorage(e){return this._localStorage.get(e)}_setToLocalStorage(e,i){const o=this._getValueStringfied(i);return this._localStorage.set(e,o)}_getBooleanFromSessionStorage(e){return this._getBooleanFromStorage(this._getFromSessionStorage(e))}_clearFromSessionStorage(e){return this._localStorage.remove(e)}_getArrayFromSessionStorage(e){return this._getArrayFromStorage(this._getFromSessionStorage(e))}_getFromSessionStorage(e){return this._sessionStorage.get(e)}_setToSessionStorage(e,i){const o=this._getValueStringfied(i);return this._sessionStorage.set(e,o)}_getArrayFromStorage(e){return JSON.parse(e)}_getBooleanFromStorage(e){return"true"===e}_getValueStringfied(e){try{const i=e.toString();return Array.isArray(e)?`[${i}]`:i}catch(i){console.log(i)}}}return n.\u0275fac=function(e){return new(e||n)(en(mF),en(mN),en(qj),en(gN),en(Xj))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),_N=(()=>{class n{constructor(e,i){this._currencyPipe=e,this._translateService=i}transform(e,i){return this._currencyPipe.transform(e,i&&null!==i?i:this.languageCode,"symbol")}transformCurrency(e){const i=parseFloat(e.replace(/(.*){1}/,"0$1").replace(/[^\d]/g,"").replace(/(\d\d?)$/,".$1")).toFixed(2);return this._currencyPipe.transform(i,this.languageCode,"symbol")}}return n.\u0275fac=function(e){return new(e||n)(U(M9,16),U(Ja,16))},n.\u0275pipe=Js({name:"translatedCurrency",type:n,pure:!0}),n})(),Rb=(()=>{class n{constructor(e,i,o,a){this._configStore=e,this._currencyPipe=i,this._datePipe=o,this._translate=a,this._configStore.itemPropertyDefinitions$.subscribe(s=>{this._itemPropertyDefinitions=s})}transform(e,i){const[o,a]=e;let s=[];s=this._itemPropertyDefinitions.filter(d=>d.name===o),(!s||0===s.length)&&(s=this._itemPropertyDefinitions.filter(d=>d.key===o));let l="";return s&&s.length>0&&s.forEach(d=>{if(d&&(!l||0===l.length))switch(d.type){case yd.currency:l=this._currencyPipe.transform(this.getValue(a),i);break;case yd.date:l=this._datePipe.transform(this.getValue(a));break;case yd.conditional:l=this._parseConditional(this.getValue(a));break;default:l=this.getValue(a)}}),l&&l.length>0?l:this._translate.instant("itemFieldInputConditionalIndifferentOption")}getDefinition(e){let i=this._itemPropertyDefinitions.filter(o=>o.name===e).firstOrDefault();return i||(i=this._itemPropertyDefinitions.find(o=>o.key===e)),i}getValue(e){return e instanceof Jx?Array.isArray(e.value)?e.value.join(this._translate.instant("elementsSeparator")):e.value:e}_parseConditional(e){switch(e){case"false":return this._translate.instant("itemFieldInputConditionalFalseOption");case"true":return this._translate.instant("itemFieldInputConditionalTrueOption")}}}return n.\u0275fac=function(e){return new(e||n)(U(hs,16),U(_N,16),U(lu,16),U(Ja,16))},n.\u0275pipe=Js({name:"itemPropertyType",type:n,pure:!0}),n})(),Oae=(()=>{class n{constructor(e){this._configStore=e,this._configStore.itemPropertyDefinitions$.subscribe(i=>{this._itemPropertyDefinitions=i})}transform(e){const i=this._itemPropertyDefinitions.filter(o=>o.key===e[0]).firstOrDefault();return i?i.name:e[0]}}return n.\u0275fac=function(e){return new(e||n)(U(hs,16))},n.\u0275pipe=Js({name:"itemPropertyTypeName",type:n,pure:!0}),n})(),kae=(()=>{class n{transform(e){switch(e){case yd.currency:return"fas fa-dollar-sign";case yd.conditional:return"fas fa-check";case yd.date:return"fas fa-calendar-alt";case yd.text:return"fas fa-font";case yd.number:return"fas fa-calculator";case yd.multiple:return"fas fa-list";default:return""}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Js({name:"itemPropertyTypeIcon",type:n,pure:!0}),n})(),ZNe=(()=>{class n{constructor(e,i,o){this.changeDetectorRef=e,this.ngZone=i,this._translate=o}transform(e){this.removeTimer();const i=new Date(e),o=new Date,a=Math.round(Math.abs((o.getTime()-i.getTime())/1e3)),s=Number.isNaN(a)?1e3:1e3*this.getSecondsUntilUpdate(a);this.timer=this.ngZone.runOutsideAngular(()=>typeof window<"u"?window.setTimeout(()=>{this.ngZone.run(()=>this.changeDetectorRef.markForCheck())},s):null);const l=Math.round(Math.abs(a/60)),d=Math.round(Math.abs(l/60)),f=Math.round(Math.abs(d/24)),C=Math.round(Math.abs(f/30.416)),M=Math.round(Math.abs(f/365));return Number.isNaN(a)?"":a<=45?this._translate.instant("TimeAgoPipeAFewSecondsAgo"):a<=90?this._translate.instant("TimeAgoPipeAMinuteAgo"):l<=45?l+" "+this._translate.instant("TimeAgoPipAMinutesAgo"):l<=90?this._translate.instant("TimeAgoPipeAnHourAgo"):d<=22?d+" "+this._translate.instant("TimeAgoPipeHoursAgo"):d<=36?this._translate.instant("TimeAgoPipeADayAgo"):f<=25?f+" "+this._translate.instant("TimeAgoPipeDaysAgo"):f<=45?this._translate.instant("TimeAgoPipeAMonthAgo"):f<=345?C+" "+this._translate.instant("TimeAgoPipeMonthsAgo"):f<=545?this._translate.instant("TimeAgoPipeAYearsAgo"):M+" "+this._translate.instant("TimeAgoPipeYearsAgo")}ngOnDestroy(){this.removeTimer()}removeTimer(){this.timer&&(window.clearTimeout(this.timer),this.timer=null)}getSecondsUntilUpdate(e){return e<60?2:e<3600?30:e<86400?300:3600}}return n.\u0275fac=function(e){return new(e||n)(U(Go,16),U(Zo,16),U(Ja,16))},n.\u0275pipe=Js({name:"timeAgo",type:n,pure:!1}),n})();class Jj{}let Bm=(()=>{class n{constructor(e){this._translate=e}transform(e){const i=e instanceof Jj?e.name:e;return this._translate.instant("shapeName",{shapeName:i})||i}}return n.\u0275fac=function(e){return new(e||n)(U(Ja,16))},n.\u0275pipe=Js({name:"displayShapeName",type:n,pure:!0}),n})(),e6e=(()=>{class n{constructor(e,i){this.http=e,this.sanitizer=i}transform(e){const i=new dp({"Cache-Control":"public, max-age=604.800"});return this.http.get(e,{headers:i,responseType:"blob"}).pipe(Ct(o=>URL.createObjectURL(o)))}}return n.\u0275fac=function(e){return new(e||n)(U(_g,16),U(mA,16))},n.\u0275pipe=Js({name:"cacheResource",type:n,pure:!0}),n})(),vN=(()=>{class n{constructor(e,i){this.el=e,this.renderer=i,this.isMaximizedSubject=new Yn(!1),this.wrapper=document.querySelector(".wrapper > .aside"),this.topWrapper=document.querySelector(".topnavbar-wrapper"),this.sidebarControl=document.querySelector(".sidebar-control")}submitMaximizeInput(e){this.isMaximizedSubject.next(e)}getMaximizeInput(){return this.isMaximizedSubject}ngOnInit(){document.addEventListener("keydown",function(e){"Escape"===e.key&&document.querySelector(".min-button").click()})}maximize(){this.submitMaximizeInput(!0),this.el&&this.renderer.addClass(this.el.nativeElement,"fullscreen"),this.wrapper.classList.add("hidden"),this.topWrapper.classList.add("hidden"),this.sidebarControl.classList.add("hidden"),document.querySelector(".max-button").classList.add("hidden"),document.querySelector(".min-button").classList.remove("hidden"),document.querySelector(".step-item-list")&&document.querySelector(".step-item-list").classList.add("full-height"),document.querySelector(".overview-table")&&document.querySelector(".overview-table").classList.add("full-height")}minimize(){this.el&&(this.isMaximizedSubject.next(!1),this.renderer.removeClass(this.el.nativeElement,"fullscreen")),this.wrapper.classList.remove("hidden"),this.topWrapper.classList.remove("hidden"),this.sidebarControl.classList.remove("hidden"),document.querySelector(".max-button").classList.remove("hidden"),document.querySelector(".min-button").classList.add("hidden"),document.querySelector(".step-item-list")&&document.querySelector(".step-item-list").classList.remove("full-height"),document.querySelector(".overview-table")&&document.querySelector(".overview-table").classList.remove("full-height")}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(Wl))},n.\u0275dir=Wn({type:n,selectors:[["","maximize",""]],exportAs:["maximize"]}),n})(),gF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[M9,_N,Rb,Oae,kae,lu,Bm,ZNe,e6e,vN],imports:[xs]}),n})();const vO=new Pi("FileHandler");class t6e{shouldHandle(r){return Promise.resolve(!0)}canBeUsedAsCover(){return dt(function*(){return!1})()}getThumbnail(r){return Promise.resolve(null)}getVariant(r){return Promise.resolve(null)}}let Zj=(()=>{class n{constructor(e){this._handlers=e}getHandlerForFile(e){var i=this;return dt(function*(){const a=(yield Promise.all(i._handlers.map(s=>s.shouldHandle(e)))).indexOf(!0);return-1!==a?i._handlers[a]:new t6e})()}}return n.\u0275fac=function(e){return new(e||n)(en(vO))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();var n6e=K(80207),Ur=K.n(n6e);class lm{constructor(r=null,e=null,i=null,o=null,a=null,s=null,l=null,d=null){this.reference=r,this.previewReference=e,this.pdfReference=i,this.filename=o,this.rawFilename=a,this.version=s,this.latest=l,this.thumbReference=d}static from(r){return new lm(r.reference,r.previewReference,r.pdfReference,r.filename,r.rawFilename,r.version,r.latest,r.thumbReference)}}class bO extends class i6e{constructor(r,e){this.name=r,this.collection=e,this.items=[],this.subCategories=[]}allItems(){let r=new Array;return r=r.concat(this.items),this.subCategories&&this.subCategories.forEach(e=>r=r.concat(e.allItems())),r}allItemsOrderedByPosition(){let r=new Array;return r=r.concat(this.items.sort((e,i)=>e.position-i.position)),this.subCategories.forEach(e=>r=r.concat(e.allItemsOrderedByPosition())),r}allSubCategories(){let r=new Array;return r=r.concat(this.subCategories),this.subCategories.forEach(e=>r=r.concat(e.allSubCategories())),r}itemsByMix(r){let e=new Array;r.findIndex(i=>i===this.id)>-1&&(e=e.concat(this.items.sort((i,o)=>i.position-o.position)));for(const i of this.subCategories)r.findIndex(o=>o===i.id)>-1&&(e=e.concat(i.allItemsOrderedByPosition()));return e}countItems(){let r=this.items.length;return this.subCategories.forEach(e=>r+=e.countItems()),r}isEmpty(){return 0===this.items.length&&0===this.subCategories.length}}{searchItemParent(r){return this.items?void 0!==this.items.find(e=>e.id===r)?this:this.subCategories.find(e=>null!==e.searchItemParent(r))||null:null}}var jd=(()=>(function(n){n.active="ACTIVE",n.future="FUTURE",n.archive="ARCHIVE"}(jd||(jd={})),jd))();class e${constructor(r,e,i){this.active=r,this.archive=e,this.future=i}get totalStatus(){return this.active+this.archive+this.future}}class _F{}class Eae{constructor(r,e,i){this.id=r,this.subCollectionSrcId=e,this.collectionStepId=i}}class Iae{}class vF extends bO{constructor(){super(...arguments),this.startDate=null,this.endDate=null}getStepSchedule(r){return this.stepSchedule.find(e=>e.stepName===r)}}class r6e{}class ow{constructor(){this.description=null,this.end=null}}class aC{constructor(){this.description=null}}class o6e{update(r){this.collections=this.collections.concat(r.collections),this.currentPage=r.currentPage,this.offset=r.offset}}class a6e{}class qS{constructor(){this.coverImage=null,this.season=null,this.releaseYear=null,this.subCollections=new Array,this.steps=new Array,this.budget=null,this.currency=null,this.targetPrice=null,this.sequential=!1,this.colors=[],this.prints=[]}countItems(){return this.subCollections.sum(r=>r.countItems())}allItems(){const r=new Array;return this.subCollections&&this.subCollections.forEach(e=>r.push(...e.allItems())),r}get firstItemCreation(){return 0===this.allItems().length?null:new Date(Math.min(...this.allItems().map(r=>{try{return r.createdAt.valueOf()}catch{return null}})))}get startDate(){if(0===this.subCollections.length)return null;const r=Math.min(...this.subCollections.map(e=>e.startDate.valueOf()));return new Date(r)}get endDate(){if(0===this.subCollections.length)return null;const r=Math.max(...this.subCollections.map(e=>e.endDate?e.endDate.valueOf():0));return new Date(r)}get orderedSteps(){return this.steps.sort((r,e)=>r.position-e.position)}stepsAsObservable(){return this.steps?Wo(this.steps):null}static _areCollectionStepsEquivalent(r,e){if(r.length!==e.length)return!1;const i=r.sort((a,s)=>a.position-s.position),o=e.sort((a,s)=>a.position-s.position);for(let a=0;ar=r.concat(e.allSubCategories())),r}isEmpty(){return null===this.subCategories||0===this.subCategories.length}}class bN{}class t${}class yO{static any(r,e){return-1!==r.findIndex(e)}static mapMany(r,e){return r.reduce((i,o)=>i.concat(e(o)),[])}static contains(r,e){return yO.any(r,i=>i===e)}static*range(r=0,e=1/0,i=1){let o=0;for(let a=r;a(function(n){n.incomplete="INCOMPLETE",n.complete="COMPLETE",n.review="REVIEW",n.redo="REDO",n.skip="SKIP",n.fullReview="FULLREVIEW"}(wl||(wl={})),wl))();class n${get isResponse(){return null!=this.parent}}class xv{}class bF{}class sC{constructor(r,e=null){this.id=e,this.name=r,this._properties=new Map,this.steps=[]}get creationDate(){return this.createdAt}setProperty(r,e){if(r!==aw_idea_materials||e&&e.value){if(r===aw_idea_materials){let i=this._properties.get(r);return i||(i=new Jx([])),i.value.push(e.value),void this._properties.set(r,i)}this._properties.set(r,e)}}getProperty(r){const e=r.default;return this._properties.get(r.key)||e}getAllProperties(){return Array.from(this._properties.entries())}getProperties(){return this._properties}getStep(r,e){return e=e||this._createDefaultStep(r),this.steps.filter(i=>i.name===r).firstOrDefault(e)}firstOpenStep(r){return this.getFirstStepWithSpecifiedStatus(["INCOMPLETE","REVIEW","REDO","FULLREVIEW"],r)}get displayImage(){if(this.coverThumbUrl&&"null"!==this.coverThumbUrl){const r=new URL(this.coverUrl);return this.pathUrl=decodeURIComponent(r.pathname),this.coverThumbUrl}if(this.coverUrl&&"null"!==this.coverUrl){const r=new URL(this.coverUrl);return this.pathUrl=r.pathname,this.coverUrl}if(this.coverReferences&&this.coverReferences.length>0){const r=this.coverReferences.filter(e=>null!==e.coverReference&&""!==e.coverReference)[0];if(r)return r.coverReference}return this.shape?this.shape.coverReference:""}get displayPreview(){return this.coverUrl&&"null"!==this.coverUrl?this.coverUrl:this.coverThumbUrl&&"null"!==this.coverThumbUrl?this.coverThumbUrl:this.shape?this.shape.coverReference:""}getFirstStepWithSpecifiedStatus(r,e){return e.map(i=>({step:i,status:this.getStep(i.name).pendency&&this.getStep(i.name).pendency.length>0?"REVIEW":this.getStep(i.name).status})).filter(({status:i})=>yO.contains(r,i)).map(({step:i})=>i).firstOrDefault()}get isRejected(){return Boolean(this.rejectionReason)}get isVariantItem(){return Boolean(this.variantParent)}_createDefaultStep(r){const e=new xv;return e.files=[],e.name=r,e.status=wl.incomplete,e}}class Fae{}class XS{static contains(r,e,i){return(i=i||!1)&&(e=e.toLocaleLowerCase(),r=r.toLocaleLowerCase()),r.indexOf(e)>-1}static slugify(r){return r.toString().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}}var JS=(()=>(function(n){n[n.MentionedInComment=0]="MentionedInComment",n[n.ReminderCalendar=1]="ReminderCalendar",n[n.ResponsibleForItem=2]="ResponsibleForItem",n[n.ResponsibleForItemStep=3]="ResponsibleForItemStep"}(JS||(JS={})),JS))();class yN{}class yF{}class CN{}class CF extends CN{constructor(){super(...arguments),this.item$=new Yn(null)}}class AF extends CN{constructor(){super(...arguments),this.reminder$=new Yn(null)}}class AN extends CN{constructor(){super(...arguments),this.item$=new Yn(null),this.collection$=new Yn(null)}}class wN extends CN{constructor(){super(...arguments),this.item$=new Yn(null),this.itemStep$=new Yn(null)}}class d6e{}class i${constructor(r){this.filters=r}}class u6e{constructor(r,e){this.name=r,this.type=e}}class U_{constructor(r,e,i,o,a,s){this.name=r,this.value=e,this.filterTitle=i,this.relatedItemsIds=o,this.collectionId=s,a&&(this.type=a)}}class jc{constructor(r,e,i){this.name=r,this.type=e,this.options=i||[]}}class p6e{constructor(r="",e=""){this.id=r,this.name=e}}class h6e{}class f6e{}class sw{constructor(r,e){this.name=r,this.hexadecimalCode=e,this.position=0,this.name=r,this.hexadecimalCode=e}}class m6e{constructor(r="",e=!1){this.email=r,this.blocked=e}}class lw{constructor(){this.position=0}}class xN{}class r2{constructor(r,e,i,o,a,s,l=null){this.id=r,this.coverReference=e,this.thumbReference=i,this.position=o,this.itemSrcId=a,this.coverReferenceSize=s,this.selectedImage=l}get nameCover(){return this.id&&this.coverReference&&""!==this.coverReference&&!this.selectedImage||!this.selectedImage&&this.coverReference?this.coverReference.split("/").pop():this.selectedImage?this.selectedImage.name:""}get coverReferenceSizeMb(){return this.coverReferenceSize?(this.coverReferenceSize/1048576).toFixed(2).concat("MB"):""}get hasFile(){return""!==this.coverReference&&null!==this.coverReference}}class MN{}class r${}class g6e{}class _6e{}class v6e{}class Rae{}class b6e{}class Bae{constructor(){this.reviewsId=[],this.stepsReviewCreate=[],this.newStatusReviewFullReview=[],this.usersWorkedCollection=[],this.stepsChangeUpdate=[]}}class y6e{}class C6e{}class A6e{}class w6e{}function o$(n){return new Date(`${n}T00:00:00`)}function Bb(n){return XS.contains(n,"T")?XS.contains(n,"Z")?new Date(n):new Date(`${n}Z`):o$(n)}function SN(n){const r=n.type,e=new Ib;return e.id=n.id,e.key=n.key,e.alias=n.alias,e.type=r,e.default=new Jx(n.defaultValue),e.groupId=n.groupId,e.position=n.position,n.choices&&(e.choices=function x6e(n){return n.map(r=>{const e=new Qoe;return e.id=r.id,e.name=r.name,e})}(n.choices)),e}function wF(n){const r=new xN;return r.id=n.id,r.name=n.name,r.itemsPropertyDefinition=n.itemsPropertyDefinition?n.itemsPropertyDefinition:[],r.isDefaultGroup=n.isDefaultGroup,r}function TN(n){return{id:n.id,name:n.name,template:n.template,position:n.position}}function Lae(n){return n&&n.length?n.map(a$):[]}function a$(n){const r=new _F;return r.id=n.id,r.name=n.name,r.position=n.position,r.collectionId=n.collectionId,r.periods=n.periods?n.periods.map(S6e):[],r}function S6e(n){const r=new Eae;return r.collectionStepId=n.collectionStepId,r.endDate=n.endDate,r.id=n.id,r.startDate=n.startDate,r.subCollectionSrcId=n.subCollectionSrcId,r}function DN(n){return{id:n.id,name:n.name,steps:n.steps}}function S0(n){return n?new hO(n.id,n.name,n.role,n.email,n.blocked,function T6e(n){if(!n)return null;const r=new p6e;return r.id=n.id,r.name=n.name,r.daysRemaining=n.daysRemaining,r}(n.company)):null}function Hae(n){if(!n)return null;const r=new h6e;return r.fileVersioning=n.fileVersioning,r.mandatoryFlowSteps=n.mandatoryFlowSteps,r}function I6e(n){const r=new r6e;return r.id=n.id,r.type=n.type,r.status=n.status,r.message=n.message,r.progress=n.progress,r.totalWorkload=n.totalWorkLoad,r}function PN(n,r){const e=new vF(n.name,r);return e.id=n.id,e.startDate=Bb(n.startDate),e.endDate=null,n.endDate&&(e.endDate=Bb(n.endDate)),e.itemsNumber=n.itemsNumber,e.pendingJobs=(n.pendingJobs||[]).map(I6e),e.items=n.items?n.items.map(wg):null,e.subCategories=qae(n.id,n.allCategories,r),e.stepSchedule=function E6e(n){return null==n?null:n.map(r=>{const e=new Iae;return e.stepName=r.stepName,e.deadline=Bb(r.deadline),e})}(n.stepSchedule),e}function xF(n){const r=new ow;return r.id=n.id,r.collectionId=n.collectionId,r.title=n.title,r.color=n.color,r.description=n.description,r.start=o$(n.start),r.end=n.end?o$(n.end):null,r}function MF(n){const r=new aC;return r.id=n.id,r.collectionId=n.collectionId,r.collectionName=n.collectionName,r.title=n.title,r.description=n.description,r.date=Bb(n.date),r}function Vae(n){return n.map(r=>SF(r))}function SF(n){const r=new qS;return r.status=n.status,r.name=n.name,r.season=n.season,r.releaseYear=n.releaseYear,r.id=n.id,r.sequential=n.sequential,r.brand=function D6e(n){if(!n)return null;const r=new bN;return r.id=n.id,r.name=n.name,r}(n.brand),r.responsible=S0(n.responsible),r.budget=n.budget/100,r.targetPrice=n.targetPrice/100,r.coverImage=n.coverImage?DF(n.coverImage):null,r.subCollections=function B6e(n,r){return null==n?null:n.map(e=>PN(e,r))}(n.subCollections,r),r.steps=typeof n.steps<"u"?n.steps.map(a$):void 0,r.startedAt=n.startedAt,r.archivedDate=n.archivedDate,r.colors=Xae(n.colors),r.prints=Jae(n.prints),r.currency=n.currency,r.itemsCount=n.itemsCount,r.itemsCompletedPercentage=n.itemsCompletedPercentage,r.itemsAllStepsCompletedCount=n.itemsAllStepsCompletedCount,r.group=function P6e(n){if(!n)return null;const r=new xN;return r.id=n.id,r.name=n.name,r.itemsPropertyDefinition=n.itemsPropertyDefinition,r}(n.group),r.tags=n.tags?function $6e(n){return n.map(r=>{const e=new MN;return e.id=r.id,e.color=r.color,e.collectionId=r.collectionId,e.name=r.name,e})}(n.tags):[],r.catalog=n.catalog,r.report=jae(n.report),r}function wg(n){const r=new sC(n.name);return r.id=n.id,r.position=n.position,r.coverUrl=n.coverImageReference,r.coverThumbUrl=n.coverThumbReference,r.collectionId=n.collectionId,r.description=n.description,r.colors=Xae(n.colors),r.sourceItemId=n.sourceItemId,r.variantParent=n.variantParentId?new sC(null,n.variantParentId):null,r.variants=(n.variants||[]).map(e=>new sC(null,e.id)),(n.properties||[]).forEach(e=>r.setProperty(e.key,new Jx(e.choices.length?e.choices:e.value))),r.steps=(n.steps||[]).map(PF),r.comments=(n.comments||[]).map(CO),r.assignee=S0(n.assignee),r.history=function G6e(n){if(n)return n.map(r=>zae(r))}(n.history),r.rejectionReason=ON(n.rejectionReason),r.approvedIn=n.approvedIn?Bb(n.approvedIn):null,r.shapeId=n.shapeId,r.files=(n.files||[]).map(i8e),r.prints=Jae(n.prints),r.coverReferenceSize=n.coverReferenceSize,r.coverReferences=n.coverReferences?function Y6e(n){return n.map(r=>new r2(r.id,r.coverReference,r.thumbReference,r.position,r.itemSrcId,r.coverReferenceSize))}(n.coverReferences):[],r.tags=n.tags?function j6e(n){return n.map(r=>{const e=new r$;return e.id=r.id,e.display=r.display,e.itemId=r.itemId,e.tagId=r.tagId,e})}(n.tags):[],r.createdAt=n.createdAt?new Date(n.createdAt):new Date,r}function Uae(n){const r=new r$;return r.id=n.id,r.display=n.display,r.itemId=n.itemId,r.tagId=n.tagId,r}function s$(n){const r=new MN;return r.id=n.id,r.color=n.color,r.collectionId=n.collectionId,r.name=n.name,r}function ON(n){if(!n)return null;const r=new bF;return r.id=n.id,r.title=n.title,r.description=n.description,r.isInactive=n.isInactive,r.position=n.position,r}function kN(n){if(!n)return null;const r=new t$;return r.id=n.id,r.title=n.title,r.isInactive=n.isInactive,r.position=n.position,r}function EN(n){if(!n)return null;const r=new yN;return r.id=n.id,r.title=n.title,r.isInactive=n.isInactive,r.position=n.position,r}function zae(n){const r=new b6e;return r.id=n.id,r.collectionId=n.collectionId,r.itemId=n.itemId,r.companyId=n.companyId,r.time=new Date(n.time),r.createdAt=n.createdAt,r.lastUpdate=n.lastUpdate,r.colorOrPrintName=n.colorOrPrintName,r.stepId=n.stepId,r.newValue=n.newValue,r.oldValue=n.oldValue,r.propertyName=n.propertyName,r.filename=n.filename,r.oldFilename=n.oldFilename,r.uploadedFileId=n.uploadedFileId,r.uploadedFileVersionId=n.uploadedFileVersionId,r.oldUploadedFileVersionId=n.oldUploadedFileVersionId,r.newStepStatus=n.newStepStatus,r.oldStepStatus=n.oldStepStatus,r.stepName=n.stepName,r.stepStatus=n.stepStatus,r.oldAssignee=S0(n.oldAssignee),r.newAssignee=S0(n.newAssignee),r.oldShapeName=n.oldShapeName,r.newShapeName=n.newShapeName,r.reason=n.reason,r.pendencyId=n.pendencyId,r.reviewId=n.reviewId,r.rejectId=n.rejectId,r.sourceItemId=n.sourceItemId,r.sourceName=n.sourceName,r.destinyName=n.destinyName,r.variantId=n.variantId,r.type=n.type,r.subType=n.subType,r.action=n.action,r.moveTo=n.moveTo?.toUpperCase(),r.oldAction=n.oldAction,r.user=S0(n.user),r.item=new sC(n?.item?.name),r.item.sourceItemId=n?.item?.sourceItemId,r.item.shapeId=n?.item?.shapeId,r.tagId=n.tagId,r.tagName=n.tagName,r.tagDisplay=n.tagDisplay,r.commentParentId=n.commentParentId,r.categoryId=n.categoryId,r.name=n.name,r.subCollectionId=n.subCollectionId,r.subCollectionName=n.subCollectionName,r.periodId=n.periodId,r.brandId=n.brandId,r.groupId=n.groupId,r.colorId=n.colorId,r.printId=n.printId,r.shapeId=n.shapeId,r}function jae(n){if(!n)return null;const r=new Bae;return r.collectionId=n.collectionId,r.reviewsId=n.reviewsId,r.pendencies=n.pendencies,r.reviews=n.reviews,r.stepStatusChangedReview=n.stepStatusChangedReview,r.stepsReviewCreate=function Q6e(n){return n.map(K6e)}(n.stepsReviewCreate),r.newStatusReviewFullReview=function q6e(n){return n.map(X6e)}(n.newStatusReviewFullReview),r.usersWorkedCollection=function J6e(n){return n.map(Z6e)}(n.usersWorkedCollection),r.stepsChangeUpdate=function e8e(n){return n.map(t8e)}(n.stepsChangeUpdate),r.lastUpdate=n.lastUpdate?new Date(n.lastUpdate):new Date,r}function K6e(n){if(!n)return null;const r=new y6e;return r.itemId=n.itemId,r.stepId=n.stepId,r.stepName=n.stepName,r.reviewId=n.reviewId,r}function X6e(n){if(!n)return null;const r=new C6e;return r.stepId=n.stepId,r.status=n.status,r}function Z6e(n){if(!n)return null;const r=new A6e;return r.historyId=n.historyId,r.responsible=S0(n.responsible),r.stepId=n.stepId,r.time=new Date(n.time),r.oldStepStatus=n.oldStepStatus,r}function t8e(n){if(!n)return null;const r=new w6e;return r.historyId=n.historyId,r.itemId=n.itemId,r.stepId=n.stepId,r.stepName=n.stepName,r.time=new Date(n.time),r.oldStepStatus=n.oldStepStatus,r.newStepStatus=n.newStepStatus,r}function l$(n){switch(n.message.__typename){case"MentionedInComment":return Gae(n);case"ReminderCalendarMessage":return Yae(n);case"ResponsibleForItemMessage":return Wae(n);case"ResponsibleForItemStepMessage":return Qae(n);default:return Kae(n)}}function $ae(n){switch(n.message.type){case JS.MentionedInComment:return Gae(n);case JS.ReminderCalendar:return Yae(n);case JS.ResponsibleForItem:return Wae(n);case JS.ResponsibleForItemStep:return Qae(n);default:return Kae(n)}}function Yae(n){const r=new yF,e=new AF;return e.reminderId=n.message.reminderId,r.message=e,TF(r,n),r}function Gae(n){const r=new yF,e=new CF;return e.itemId=n.message.itemId,r.message=e,TF(r,n),r}function Wae(n){const r=new yF,e=new AN;return e.itemId=n.message.itemId,r.message=e,TF(r,n),r}function Qae(n){const r=new yF,e=new wN;return e.itemStepId=n.message.itemStepId,r.message=e,TF(r,n),r}function Kae(n){const r=new yF;return TF(r,n),r}function TF(n,r){n.id=r.id,n.time=Bb(r.time),n.message.text=r.message.text,n.read=r.read}function DF(n){const r=new lm;return r.filename=n.filename,r.reference=n.reference,r.previewReference=n.previewReference,r.thumbReference=n.thumbReference,r.pdfReference=n.pdfReference,r.id=n.id,r.rawFilename=n.rawFilename,r.version=n.version,r.latest=n.latest,r}function i8e(n){const r=new f6e;return r.blockedByUser=n.blockedByUser,r.blocked=n.blocked,r.file=DF(n.file),r}function PF(n){const r=new xv;return r.id=n.id,r.name=n.name,r.status=n.status,r.files=(n.files||[]).map(e=>DF(e)),r.lastUpdate=Bb(n.lastUpdate),r.lastUpdateBy=S0(n.lastUpdateBy),r.reviews=(n.reviews||[]).map(e=>EN(e)),r.pendency=(n.pendency||[]).map(e=>kN(e)),r.assignee=S0(n.assignee),r.itemId=n.itemId,r.position=n.position,r.numberFiles=n.numberFiles,r}function CO(n){const r=new n$;return r.id=n.id,r.user=S0(n.user),r.parent=n.parent,r.text=n.text,r.creationDate=Bb(n.creationDate),r.lastUpdate=n.lastUpdate?Bb(n.lastUpdate):null,r.deleted=n.deleted?Bb(n.deleted):null,r.resolved=n.resolved?Bb(n.resolved):null,r.resolvedBy=S0(n.resolvedBy),r.usersMentioned=n.usersMentioned?n.usersMentioned.map(e=>S0(e)):null,r}function c$(n,r,e){const i=new bO(r.name,e);return i.id=r.id,i.subCollectionReference=n,i.items=function U6e(n){return null==n?new Array:n.map(wg)}(r.items),i}function qae(n,r,e){if(!r)return null;const i="_ROOT_",o=r.toMap(s=>s.id,s=>c$(n,s,e));return o.set(i,new bO(i,null)),r.forEach(s=>{const d=o.get(s.parent?s.parent.id:i),f=o.get(s.id);d.subCategories.push(f)}),o.get(i).subCategories}function Xae(n){return n.map(r=>{const e=new sw(r.name,r.hexadecimalCode);return e.id=r.id,e.position=r.position,e})}function Jae(n){return n?n.map(r=>{const e=new lw;return e.id=r.id,e.position=r.position,e.name=r.name,e.printImage=DF(r.printImage),e}):[]}function d$(n){const r=new c6e;return r.id=n.id,r.name=n.name,r.subCategories=qae(null,n.allCategories,null),r}function u$(n){const r=new d6e;return r.id=n.id,r.name=n.name,r.filters=function s8e(n){return n.map(l8e)}(n.filters),r.favorite=n.favorite,r}function l8e(n){try{if(n.value){const r=JSON.parse(n.value);r instanceof Array&&(n.value=r)}return n}catch{return n}}function u8e(n){const r=new _6e;return r.id=n.id,r.itemId=n.itemId,r.rawFileName=n.rawFileName,r.lastFileModification=n.lastFileModification,r.lastUpdate=n.lastUpdate,r.createdAt=n.createdAt,r.hasVersioning=n.hasVersioning,r.isLegacy=n.isLegacy,n.fileVersions&&(r.versions=function p8e(n){return n.map(h8e)}(n.fileVersions)),r}function h8e(n){const r=new v6e;return r.id=n.id,r.uploadedFileId=n.uploadedFileId,r.userId=n.userId,r.itemStepId=n.itemStepId,r.reference=n.reference,r.previewReference=n.previewReference,r.pdfReference=n.pdfReference,r.thumbReference=n.thumbReference,r.filename=n.filename,r.version=n.version,r.latest=n.latest,r.deleted=n.deleted,r.lastFileModification=n.lastFileModification,r.lastUpdate=n.lastUpdate,r.createdAt=n.createdAt,r.versionUser=S0(n.versionUser),r.versionItemStep=PF(n.versionItemStep),n.versionBlock&&(r.versionBlock=function f8e(n){const r=new Rae;return r.id=n.id,r.uploadedFileId=n.uploadedFileId,r.userId=n.userId,r.blockedIn=n.blockedIn,r.lastUpdate=n.lastUpdate,r.createdAt=n.createdAt,r}(n.versionBlock)),r}const OF=new Pi("RequestsService");let Zae=(()=>{class n{constructor(e,i){this._httpClient=e,this._oidcService=i}_objectBodyToFormData(e){const i=new FormData;for(const o of Object.keys(e))e[o]&&i.append(o,e[o]);return i}post_json(e,i){var o=this;return dt(function*(){const a=o._oidcService.getToken();let s=new dp({Authorization:`Bearer ${a}`});return yield o._httpClient.post(e,i,{headers:s}).toPromise()})()}post(e,i){var o=this;return dt(function*(){const a=o._objectBodyToFormData(i),s=o._oidcService.getToken();let l=new dp({Authorization:`Bearer ${s}`});return yield o._httpClient.post(e,a,{headers:l}).toPromise()})()}get(e){var i=this;return dt(function*(){const o=i._oidcService.getToken();let a=new dp({Authorization:`Bearer ${o}`});return yield i._httpClient.get(e,{headers:a}).toPromise()})()}upload_file_to_s3(e,i){var o=this;return dt(function*(){const a=new dp({"Content-Type":e.content_type});return yield o._httpClient.put(e.pre_signed_url,i,{headers:a}).toPromise()})()}}return n.\u0275fac=function(e){return new(e||n)(en(_g),en(H_))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();function IN(n,r){return function(e,i){r(e,i,n)}}function nse(n){return new ze(r=>(n().then(e=>{r.closed||(r.next(e),r.complete())},e=>{r.closed||r.error(e)}),()=>r.unsubscribe()))}class _8e{constructor(r){this.zone=r,this.now=Date.now?Date.now:()=>+new Date}schedule(r,e=0,i){return this.zone.run(()=>yV.schedule(r,e,i))}}function ise(n){return n[Q]=()=>n,n}function rse(n,r){return n.pipe(GJ(new _8e(r)))}class v8e{constructor(r,e,i){this.obsQuery=r;const o=rse(vt(ise(this.obsQuery)),e);this.valueChanges=i.useInitialLoading?o.pipe(Zl(Object.assign({},this.obsQuery.getCurrentResult(),{error:void 0,partial:void 0,stale:!0}))):o,this.queryId=this.obsQuery.queryId}result(){return this.obsQuery.result()}currentResult(){return this.obsQuery.currentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(r){return this.obsQuery.refetch(r)}fetchMore(r){return this.obsQuery.fetchMore(r)}subscribeToMore(r){return this.obsQuery.subscribeToMore(r)}updateQuery(r){return this.obsQuery.updateQuery(r)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(r){return this.obsQuery.startPolling(r)}setOptions(r){return this.obsQuery.setOptions(r)}setVariables(r,e=!1,i=!0){return this.obsQuery.setVariables(r,e,i)}}const h$=new Pi("[apollo-angular] options"),ose=new Pi("[apollo-angular] named options");class ase{constructor(r,e){this.ngZone=r,this._client=e}watchQuery(r){return new v8e(this.client.watchQuery(Object.assign({},r)),this.ngZone,r)}query(r){return nse(()=>this.client.query(Object.assign({},r)))}mutate(r){return nse(()=>this.client.mutate(Object.assign({},r)))}subscribe(r,e){const i=vt(ise(this.client.subscribe(Object.assign({},r))));return e&&!0!==e.useZone?i:rse(i,this.ngZone)}getClient(){return this._client}setClient(r){if(this._client)throw new Error("Client has been already defined");this._client=r}get client(){return this.beforeEach(),this._client}beforeEach(){this.checkInstance()}checkInstance(){if(!this._client)throw new Error("Client has not been defined yet")}}let sse=(()=>{let n=class extends ase{constructor(e,i,o){if(super(e),this._ngZone=e,this.map=new Map,i&&this.createDefault(i),o&&"object"==typeof o)for(const a in o)o.hasOwnProperty(a)&&this.createNamed(a,o[a])}create(e,i){f$(i)?this.createDefault(e):this.createNamed(i,e)}default(){return this}use(e){return f$(e)?this.default():this.map.get(e)}createDefault(e){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new Pae(e))}createNamed(e,i){if(this.map.has(e))throw new Error(`Client ${e} has been already created`);this.map.set(e,new ase(this._ngZone,new Pae(i)))}removeClient(e){f$(e)?this._client=void 0:this.map.delete(e)}};return n.\u0275fac=function(e){return new(e||n)(en(Zo),en(h$,8),en(ose,8))},n.\u0275prov=Dn({token:n,factory:function(r){return n.\u0275fac(r)}}),n=function m8e(n,r,e,i){var s,o=arguments.length,a=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,r,e,i);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(a=(o<3?s(a):o>3?s(r,e,a):s(r,e))||a);return o>3&&a&&Object.defineProperty(r,e,a),a}([IN(1,rh()),IN(1,_f(h$)),IN(2,rh()),IN(2,_f(ose))],n),n})();function f$(n){return!n||"default"===n}const y8e=[sse];let C8e=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:y8e}),n})();var A8e=K(19444);let m$=(()=>{class n{constructor(){this._generateNewId()}getNextRequestId(){return`${this._nextRequestId}`}makeRequest(e){const i=e(`${this._nextRequestId}`);return this._generateNewId(),i}_generateNewId(){this._nextRequestId=(0,A8e.v4)()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const kF=new Pi("GraphqlService");let w8e=(()=>{class n{constructor(e,i){this._apollo=e,this._requestController=i}mutate(e,i){var o=this;return dt(function*(){return o._requestController.makeRequest(function(){var a=dt(function*(s){return(yield o._apollo.mutate({mutation:e,variables:i,context:{headers:{"Request-Id":s}}}).toPromise()).data});return function(s){return a.apply(this,arguments)}}())})()}query(e,i){var o=this;return this._requestController.makeRequest(function(){var a=dt(function*(s){return(yield o._apollo.query({query:e,variables:i,context:{headers:{"Request-Id":s}}}).toPromise()).data});return function(s){return a.apply(this,arguments)}}())}queryNetwork(e,i){var o=this;return dt(function*(){return o._requestController.makeRequest(function(){var a=dt(function*(s){return(yield o._apollo.query({fetchPolicy:"network-only",query:e,variables:i,context:{headers:{"Request-Id":s}}}).toPromise()).data});return function(s){return a.apply(this,arguments)}}())})()}subscribe(e,i){return Wo()}}return n.\u0275fac=function(e){return new(e||n)(en(sse),en(m$))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();class RN{static getIndex(r,e){return e?Object.values(r).indexOf(e):null}}var Lb=(()=>(function(n){n.Item="Item",n.Collection="Collection",n.Mix="Mix",n.Cycle="Cycle",n.Step="Step",n.Property="Property"}(Lb||(Lb={})),Lb))(),Dr=(()=>(function(n){n.None="None",n.Colors="Colors",n.Prints="Prints",n.Shapes="Shapes",n.Comments="Comments",n.Description="Description",n.Files="Files",n.ReplaceFile="ReplaceFile",n.Cover="Cover",n.References="References",n.Property="Property",n.BlockFile="BlockFile",n.UnblockFile="UnblockFile",n.Pendency="Pendency",n.Review="Review",n.Change="Change",n.Assigned="Assigned",n.Approved="Approved",n.Reject="Reject",n.Comment="Comment",n.Copying="Copying",n.Duplicating="Duplicating",n.Variant="Variant",n.Moved="Moved",n.PropertyCurrency="PropertyCurrency",n.PropertyMultiple="PropertyMultiple",n.ColorOfCoordinate="ColorOfCoordinate",n.Tag="Tag",n.TagColor="TagColor",n.TagName="TagName",n.Name="Name",n.AddedItem="AddedItem",n.EndDate="EndDate",n.StartDate="StartDate",n.ItemsNumber="ItemsNumber",n.Season="Season",n.ReleaseYear="ReleaseYear",n.Brand="Brand",n.Budget="Budget",n.Currency="Currency",n.Responsible="Responsible",n.Group="Group",n.ColorName="ColorName",n.ColorHexadecimal="ColorHexadecimal",n.PrintName="PrintName",n.PrintReference="PrintReference",n.Steps="Steps",n.Download="Download",n.Choice="Choice",n.Sequential="Sequential"}(Dr||(Dr={})),Dr))(),Or=(()=>(function(n){n.Delete="Delete",n.Update="Update",n.Create="Create",n.Move="Move",n.Resolved="Resolved",n.Reopened="Reopened",n.Mentioned="Mentioned",n.Added="Added",n.Switch="Switch",n.Download="Download"}(Or||(Or={})),Or))(),BN=(()=>(function(n){n.Collection="Collection",n.SubCollection="SubCollection",n.Coordinate="Coordinate",n.Container="Container"}(BN||(BN={})),BN))();let x8e=(()=>{class n{constructor(e,i,o){this._graphqlService=e,this._requestsService=i,this._fileService=o}getDestinyPickerCollectionCompleteById(e){var i=this;return dt(function*(){const o=Ur()` query collections ($collectionsIDs: [ID]!) { collections (ids: $collectionsIDs) { ...collectionFields } } ${ga.uploadedResource} ${ga.collection} ${ga.subCollection} ${ga.itemWithoutHistory}`,a={collectionsIDs:e};let s=(yield i._graphqlService.query(o,a)).collections[0];return s.subCollections.forEach(l=>l.allCategories.forEach(d=>{d.subCollectionReference=l.id,d.collection=s})),s})()}getDestinyPickerCollections(e,i,o,a){var s=this;return dt(function*(){const l=Ur()` query paginatedCollections($where: CollectionFilter, $offset: Int!, $limit: Int!, $ordenation: CollectionOrdenation!, $currentCollectionId: Int) { paginatedCollections(where: $where, offset: $offset, limit: $limit, ordenation: $ordenation, currentCollectionId: $currentCollectionId) { collections { id status name coverImage { previewReference } } offset limit currentPage pageCount } } `,d={where:{name:a},limit:i,offset:e,ordenation:"Status",currentCollectionId:o};return(yield s._graphqlService.query(l,d)).paginatedCollections})()}createCollection(e){var i=this;return dt(function*(){if(!e.cover)return yield i._createCollection(e);if(e.cover instanceof File){const o=e.cover.name,a=yield i._fileService.uploadFile(e.cover);return a.filename=o,yield i._createCollection(e,a)}return yield i._createCollection(e,e.cover)})()}changeCollection(e){var i=this;return dt(function*(){if(e.cover&&e.cover instanceof File){const o=yield i._fileService.uploadFile(e.cover);return e.cover=o,yield i._updateCollection(e)}return yield i._updateCollection(e)})()}_createCollectionCoverInput(e){if(!(e instanceof lm))throw new Error("collection cover must be a remote file");return{filename:e.filename,reference:e.reference,previewReference:e.previewReference,thumbReference:e.thumbReference}}_updateCollection(e){var i=this;return dt(function*(){const o=Ur()` mutation updateCollection ($collection: CollectionInput!) { collection: updateCollection(collection: $collection) { id } }`,a={collection:{id:e.id,name:e.name,season:e.season,releaseYear:e.releaseYear,coverImage:e.cover?i._createCollectionCoverInput(e.cover):null,responsibleId:e.responsible?e.responsible.id:null,sequential:e.sequential,categoryTemplateId:e.categoryTemplateId,stepTemplateId:e.stepTemplateId,brand:e.brand,colors:e.colors,prints:e.prints,group:e.group}},l=(yield i._graphqlService.mutate(o,a),Ur()` query queryUpdatedCollection ($id: ID!) { collection (id: $id) { ...collectionFields } } ${ga.uploadedResource} ${ga.collection} ${ga.subCollection} ${ga.itemWithoutHistory}`);return SF((yield i._graphqlService.queryNetwork(l,{id:e.id})).collection)})()}_createCollection(e,i=null){var o=this;return dt(function*(){const a=Ur()` mutation createCollection ($collection: CollectionInput!) { collection: createCollection(collection: $collection) { ...collectionFields } } ${ga.uploadedResource} ${ga.collection} ${ga.subCollection} ${ga.itemWithoutHistory}`,s={collection:{name:e.name,season:e.season,releaseYear:e.releaseYear,coverImage:i,responsibleId:e.responsible?e.responsible.id:null,categoryTemplateId:e.categoryTemplateId,stepTemplateId:e.stepTemplateId,brand:e.brand,colors:e.colors,prints:e.prints,group:e.group}};return SF((yield o._graphqlService.mutate(a,s)).collection)})()}createSubCollection(e){var i=this;return dt(function*(){const o=Ur()` mutation createSubCollection ($collectionId: ID!, $subCollection: SubCollectionInput!) { subCollection: createSubCollection(collectionId: $collectionId, subCollection: $subCollection) { ...subCollectionFields } } ${ga.subCollection} ${ga.itemWithoutHistory}`,a={collectionId:e.collection.id,subCollection:{name:e.name,startDate:e.startDate,endDate:e.endDate}};return PN((yield i._graphqlService.mutate(o,a)).subCollection,e.collection)})()}deleteSubCollection(e){var i=this;return dt(function*(){const o=Ur()` mutation deleteSubCollection ($subCollectionId: ID!) { subCollection: deleteSubCollection(subCollectionId: $subCollectionId) { id } }`,a={subCollectionId:e};yield i._graphqlService.mutate(o,a)})()}populateSubCollectionFromFile(e,i){var o=this;return dt(function*(){return o._requestsService.post(`${Qu.serverUrl}/populate/subcollection/${e}/xlsx`,{file:i})})()}createCategory(e,i){var o=this;return dt(function*(){const a=Ur()` mutation createCategory ($subCollectionId : ID!, $category: CategoryInput!) { category: createCategory(subCollectionId: $subCollectionId, category: $category) { id name } }`,s=o._getSubCollectionId(e),l={subCollectionId:s,category:{name:i.name,parentId:e instanceof vF?null:e.id}};return c$(s,(yield o._graphqlService.mutate(a,l)).category,e.collection)})()}createItem(e,i){var o=this;return dt(function*(){const a=o._getSubCollectionId(e),s=[{name:i.name,description:i.description,categoryId:e.id,shapeId:i.shapeId,properties:i.properties.map(d=>({name:d.definition.name,value:String(d.value)}))}];return(yield o._createItems(a,s))[0]})()}createBulkItems(e,i,o){var a=this;return dt(function*(){const s=a._getSubCollectionId(e),l=[{name:i.name,description:i.description,categoryId:e.id,shapeId:i.shapeId,properties:i.properties.map(f=>({name:f.definition.name,value:String(f.value)}))}];return yield a._createBulkItems(s,l,o)})()}setItemProperties(e,i){var o=this;return dt(function*(){const a=Ur()` mutation setItemProperties ($itemId: ID!, $properties: [ItemPropertyInput]!) { item: setItemProperties(itemId: $itemId, properties: $properties) { id properties { key value choices } } }`,s={itemId:e,properties:i.map(([d,f])=>({key:d,value:f,choices:f}))};return wg((yield o._graphqlService.mutate(a,s)).item)})()}setSubCollectionsItemsNumbers(e){var i=this;return dt(function*(){const o=Ur()` mutation setSubCollectionItemsNumber ($subCollectionsItemsNumber: [SubCollectionsItemsNumberInput]!) { setSubCollectionsItemsNumber(subCollectionsItemsNumber: $subCollectionsItemsNumber) { id } }`,a={subCollectionsItemsNumber:e.map(([s,l])=>({subCollectionId:s,itemsNumber:l}))};yield i._graphqlService.mutate(o,a)})()}setCollectionBudgetAndTargetValue(e,i,o,a){var s=this;return dt(function*(){const l=Ur()` mutation setCollectionBudgetAndTargetValue ($collectionId: ID!, $budget: Int!, $targetPrice: Int!, $currency:String) { collection: setCollectionBudgetAndTargetPrice( collectionId: $collectionId, budget: $budget, targetPrice: $targetPrice, currency: $currency,) { id } }`,d={collectionId:e,budget:100*i,currency:a,targetPrice:100*o};yield s._graphqlService.mutate(l,d)})()}updateItemStep(e,i,o,a,s,l,d,f,C=0,M=null){var T=this;return dt(function*(){if(null===a)return yield T._updateItemStep(e.itemId,e.name,e.status,C,i,o,l,null,!1,"");const F=a.name,pe=yield T._fileService.getVariantName(a),ce=a.name.endsWith(".ideax")?yield T._fileService.uploadIdeaxFile(a,e.itemId):yield T._fileService.uploadFile(a);ce.filename=F;const fe={itemId:e.itemId,lastFileModification:f,userId:d,itemStepId:e.id,reference:ce.reference,previewReference:ce.previewReference,pdfReference:ce.pdfReference,thumbReference:ce.thumbReference,filename:ce.filename,coverReferenceSize:a.size,replaceVersion:M?M.replace:null,versionIdToReplace:M?M.versionIdToReplace:null},Pe=yield T._updateItemStep(e.itemId,e.name,e.status,C,i,o,l,fe,s,pe);Pe.files=[];const Ne=new lm;return Ne.previewReference=fe.previewReference,Ne.reference=fe.reference,Ne.thumbReference=fe.thumbReference,Pe.files.push(Ne),Pe})()}updateItemsStep(e,i,o,a,s,l,d=0){var f=this;return dt(function*(){return yield f._updateItemsStep(e,i,o,d,a,s,l,null,!1,"")})()}_updateItemsStep(e,i,o,a=0,s,l,d,f=null,C=!1,M){var T=this;return dt(function*(){const F=Ur()` mutation updateItemsStep ($itemsId: [ID]!, $steps: [ItemStepInput]!, $pendency: [StepPendencyReasonInput], $reviews: [StepReviewReasonInput], $file: RawFileInput, $useAsCover: Boolean, $assignee: UserInput, $variant: String) { steps: setItemsStep(itemsId: $itemsId, itemsStep: $steps, file: $file, useAsCover: $useAsCover, pendency: $pendency, reviews: $reviews, assignee: $assignee, variant: $variant) { id name status lastUpdate position lastUpdateBy { id name } pendency { id title } reviews { id title } assignee { id name } itemId } }`,pe=null!==d?{id:d.id,name:d.name,email:d.email}:null,ce={itemsId:e,steps:i.map(Pe=>({name:Pe,status:o,position:a})),pendency:s,reviews:l,file:f,useAsCover:C,assignee:pe,variant:M};return function r8e(n){return n.map(r=>PF(r))}((yield T._graphqlService.mutate(F,ce)).steps)})()}updateItem(e,i){var o=this;return dt(function*(){const a=Ur()` mutation updateItem ($groupId: ID!, $item: ItemInput!) { item: updateItem(groupId: $groupId, item: $item) { ...itemFields } } ${ga.item}`,s={groupId:i,item:{id:e.id.toString(),name:e.name,description:e.description,coverImageReference:e.coverUrl,coverThumbReference:e.coverThumbUrl,colors:e.colors,coverReferenceSize:e.coverReferenceSize,coverReferences:e.coverReferences.map(d=>({id:d.id?d.id:"0",coverReference:d.coverReference,thumbReference:d.thumbReference,position:d.position,itemSrcId:d.itemSrcId,coverReferenceSize:d.coverReferenceSize})),prints:e.prints,shapeId:e.shapeId,properties:e.getAllProperties().map(([d,f])=>{const C={key:d};return Array.isArray(f.value)?C.choices=f.value:C.value=f.value?String(f.value):null,C})}};return s.item.properties=o.separateMaterialPropertyListIntoIndependentRecords(s.item.properties),wg((yield o._graphqlService.mutate(a,s)).item)})()}separateMaterialPropertyListIntoIndependentRecords(e){const i=e.findIndex(a=>a.key===aw_idea_materials);if(i<0)return e;const o=e.filter(a=>a.key===aw_idea_materials).map(a=>a.choices.map(s=>s instanceof Array?s.map(l=>({key:a.key,value:l,choices:[]})):{key:a.key,value:s,choices:[]}));if(e.splice(i,1),o[0].constructor===Array){const a=o.firstOrDefault();a[0].constructor===Array?e.push(...a.firstOrDefault()):e.push(...a)}else e.push(...o.firstOrDefault());return e}updateSubCollection(e){var i=this;return dt(function*(){const o=Ur()` mutation updateSubCollection ($subCollectionId: ID!, $subCollection: SubCollectionInput!) { subCollection: updateSubCollection(id: $subCollectionId, subCollection: $subCollection) { id name startDate endDate itemsNumber } } `,a={subCollectionId:e.id,subCollection:{name:e.name.toString(),startDate:e.startDate,endDate:e.endDate,itemsNumber:e.itemsNumber}};return PN((yield i._graphqlService.mutate(o,a)).subCollection,e.collection)})()}_updateItemStep(e,i,o,a=0,s,l,d,f=null,C=!1,M){var T=this;return dt(function*(){const F=Ur()` mutation updateItemStep ($itemId: ID!, $step: ItemStepInput!, $pendency: [StepPendencyReasonInput], $reviews: [StepReviewReasonInput], $file: RawFileInput, $useAsCover: Boolean, $assignee: UserInput, $variant: String) { step: setItemStep(itemId: $itemId, itemStep: $step, file: $file, useAsCover: $useAsCover, pendency: $pendency, reviews: $reviews, assignee: $assignee, variant: $variant) { id name status lastUpdate position lastUpdateBy { id name } pendency { id title } reviews { id title } assignee { id name } } }`,ce={itemId:e,step:{name:i,status:o,position:a},pendency:s,reviews:l,file:f,useAsCover:C,assignee:null!==d?{id:d.id,name:d.name,email:d.email}:null,variant:M};return PF((yield T._graphqlService.mutate(F,ce)).step)})()}updateItemStepGridPosition(e,i){var o=this;return dt(function*(){const a=Ur()` mutation updateItemStepGridPosition ($itemStepMoved: ItemStepInput!, $itemThatWasInPosition: ItemStepInput!) { itemStepMoved: updateItemStepGridPosition(itemStepMoved: $itemStepMoved, itemThatWasInPosition: $itemThatWasInPosition) { id itemId position name } }`,s={itemStepMoved:{id:e.id,itemId:e.itemId,position:e.position,name:e.name},itemThatWasInPosition:{id:i.id,itemId:i.itemId,position:i.position,name:i.name}};return(yield o._graphqlService.mutate(a,s)).steps.map(PF)})()}updateDefaultPositionOfItem(e){var i=this;return dt(function*(){const o=Ur()` mutation updatePositionDefaultItemStep ($collectionId: ID!) { itemsHaveBeenUpdated: updatePositionDefaultItemStep(collectionId: $collectionId) }`,a={collectionId:e};return(yield i._graphqlService.mutate(o,a)).itemsHaveBeenUpdated})()}addGroupPropertyDefinition(e){var i=this;return dt(function*(){const o=Ur()` mutation addGroupPropertyDefinition ($groupPropertyDefinition: GroupPropertyDefinitionInput!) { groupPropertyDefinition: addGroupPropertyDefinition(groupPropertyDefinition: $groupPropertyDefinition) { id name } }`,a={groupPropertyDefinition:{id:e.id,name:e.name}};return wF((yield i._graphqlService.mutate(o,a)).groupPropertyDefinition)})()}deleteGroupPropertyDefinition(e){var i=this;return dt(function*(){const o=Ur()` mutation deleteGroupPropertyDefinition ($groupPropertyDefinition: GroupPropertyDefinitionInput!) { groupPropertyDefinition: deleteGroupPropertyDefinition(groupPropertyDefinition: $groupPropertyDefinition) { id } }`,a={groupPropertyDefinition:{id:e.id}};return wF((yield i._graphqlService.mutate(o,a)).groupPropertyDefinition)})()}updateGroup(e,i){var o=this;return dt(function*(){const a=Ur()` mutation updateGroupPropertyDefinition ($groupPropertyDefinition: GroupPropertyDefinitionInput!) { groupPropertyDefinition: updateGroupPropertyDefinition(groupPropertyDefinition: $groupPropertyDefinition) { id name } }`,s={groupPropertyDefinition:{id:i,name:e}};return wF((yield o._graphqlService.mutate(a,s)).groupPropertyDefinition)})()}getGroupPropertiesDefinition(){var e=this;return dt(function*(){const i=Ur()` query getItemPropertiesDefinitions { getAllGroupPropertyDefinitions { id name isDefaultGroup itemsPropertyDefinition { id key alias type defaultValue groupId choices { id name } position } } }`;return(yield e._graphqlService.query(i)).getAllGroupPropertyDefinitions.map(wF)})()}getGroupTemplates(){var e=this;return dt(function*(){const i=Ur()` query getItemPropertiesDefinitions { getAllGroupPropertyDefinitions { id name isDefaultGroup } }`;return(yield e._graphqlService.query(i)).getAllGroupPropertyDefinitions.map(wF)})()}addItemPropertyDefinition(e,i){var o=this;return dt(function*(){const a=Ur()` mutation addItemPropertyDefinition ($itemPropertyDefinition: ItemPropertyDefinitionInput!) { itemPropertyDefinition: addItemPropertyDefinition(itemPropertyDefinition: $itemPropertyDefinition) { id key alias type defaultValue groupId position } }`,s={itemPropertyDefinition:{key:e.key,alias:e.alias,defaultValue:e.default.value,type:e.type,choices:e.choices,groupId:i,position:e.position}};return SN((yield o._graphqlService.mutate(a,s)).itemPropertyDefinition)})()}addStep(e){var i=this;return dt(function*(){const o=Ur()` mutation addStep ($step: StepInput!) { step: addStep(step: $step) { id name template position } }`,a={step:{id:e.id,name:e.name,template:e.template}};return TN((yield i._graphqlService.mutate(o,a)).step)})()}createCollectionSteps(e,i){var o=this;return dt(function*(){const a=Ur()` mutation createCollectionSteps ($collectionSteps: [CollectionStepInput]!, $stepTemplateId: ID!) { collectionSteps: createCollectionSteps(collectionSteps: $collectionSteps, stepTemplateId: $stepTemplateId) { id collectionId name position periods { id subCollectionSrcId collectionStepId startDate endDate } } }`,s={collectionSteps:e.map(d=>({collectionId:d.collectionId,name:d.name,position:d.position,periods:d.periods})),stepTemplateId:i};return Lae((yield o._graphqlService.mutate(a,s)).collectionSteps)})()}renameCollectionStep(e,i){var o=this;return dt(function*(){const a=Ur()` mutation renameCollectionStep ($collectionStep: CollectionStepInput!, $newStepName: String!) { collectionStep: renameCollectionStep(collectionStep: $collectionStep, newStepName: $newStepName) { id collectionId name position } }`,s={collectionStep:{id:e.id,collectionId:e.collectionId,name:e.name,position:e.position},newStepName:i};return(yield o._graphqlService.mutate(a,s)).collectionStep})()}updateCollectionSteps(e){var i=this;return dt(function*(){const o=Ur()` mutation updateCollectionSteps ($collectionSteps: [CollectionStepInput]!) { collectionSteps: updateCollectionSteps(collectionSteps: $collectionSteps) { id collectionId name position periods { id subCollectionSrcId collectionStepId startDate endDate } } }`,a={collectionSteps:e.map(l=>({id:l.id?l.id:"0",collectionId:l.collectionId,name:l.name,position:l.position,periods:l.periods}))};return Lae((yield i._graphqlService.mutate(o,a)).collectionSteps)})()}addCollectionStep(e){var i=this;return dt(function*(){const o=Ur()` mutation addCollectionStep ($collectionStep: CollectionStepInput!) { collectionStep: addCollectionStep(collectionStep: $collectionStep) { collectionId, name, position } }`,a={collectionStep:{collectionId:e.collectionId,name:e.name,position:e.position}};return a$((yield i._graphqlService.mutate(o,a)).step)})()}addComment(e,i){var o=this;return dt(function*(){const a=Ur()` mutation addComment ($comment: CommentInput!, $usersMentionedId: [ID]!) { comment: addComment(comment: $comment, usersMentionedId: $usersMentionedId) { id parent text creationDate lastUpdate deleted user { id name } usersMentioned { id name } } } `,s={comment:{parent:i.parent,itemId:e,text:i.text},usersMentionedId:i.usersMentioned.map(d=>d.id)};return CO((yield o._graphqlService.mutate(a,s)).comment)})()}updateComment(e,i){var o=this;return dt(function*(){const a=Ur()` mutation updateComment ($comment: CommentInput!) { comment: updateComment(comment: $comment) { id parent text creationDate lastUpdate deleted user { id name email } resolved resolvedBy { id name email } } } `,s={comment:{id:i.id,parent:i.parent,itemId:e,text:i.text,resolved:i.resolved}};return CO((yield o._graphqlService.mutate(a,s)).comment)})()}resolveComment(e,i){var o=this;return dt(function*(){const a=Ur()` mutation resolveComment ($comment: CommentInput!) { comment: resolveComment(comment: $comment) { id parent text creationDate lastUpdate deleted user { id name email } resolved resolvedBy { id name email } } } `,s={comment:{id:i.id,parent:i.parent,itemId:e,text:i.text}};return CO((yield o._graphqlService.mutate(a,s)).comment)})()}reopenComment(e,i){var o=this;return dt(function*(){const a=Ur()` mutation reopenComment ($comment: CommentInput!) { comment: reopenComment(comment: $comment) { id parent text creationDate lastUpdate deleted user { id name email } resolved resolvedBy { id name email } } } `,s={comment:{id:i.id,parent:i.parent,itemId:e,text:i.text}};return CO((yield o._graphqlService.mutate(a,s)).comment)})()}deleteComment(e,i){var o=this;return dt(function*(){const a=Ur()` mutation deleteComment($comment: CommentInput!) { comment: deleteComment(comment: $comment) { id } } `,s={comment:{id:i.id,parent:i.parent,itemId:e,text:i.text}};yield o._graphqlService.mutate(a,s)})()}addStepTemplate(e){var i=this;return dt(function*(){const o=Ur()` mutation addStepTemplate ($stepTemplateName: String!) { stepTemplate: addStepTemplate(stepTemplateName: $stepTemplateName) { name } }`,a={stepTemplateName:e};return DN((yield i._graphqlService.mutate(o,a)).stepTemplate)})()}updateItemPropertyDefinition(e,i){var o=this;return dt(function*(){const a=Ur()` mutation ($itemPropertyDefinition: ItemPropertyDefinitionInput!, $oldPropertyName: String) { itemPropertyDefinition: updateItemPropertyDefinition(itemPropertyDefinition: $itemPropertyDefinition,\ oldPropertyName: $oldPropertyName) { id key type groupId alias choices { id name } position } }`,s={itemPropertyDefinition:{id:e.id,key:e.key,alias:e.alias,type:e.type,choices:e.choices&&e.choices.length>0?e.choices.map(d=>({id:d.id,name:d.name})):[],groupId:e.groupId,position:e.position},oldPropertyName:i};return SN((yield o._graphqlService.mutate(a,s)).itemPropertyDefinition)})()}updateStep(e,i){var o=this;return dt(function*(){const a=Ur()` mutation ($step: StepInput!, $oldName: String) { step: updateStep(step: $step, oldName: $oldName) { id name } }`,s={step:{id:e.id,name:e.name,template:e.template,position:e.position},oldName:i};return TN((yield o._graphqlService.mutate(a,s)).step)})()}updateStepTemplate(e,i){var o=this;return dt(function*(){const a=Ur()` mutation ($newStepTemplateName: String!, $oldStepTemplateName: String!) { stepTemplate: updateStepTemplate(newStepTemplateName: $newStepTemplateName, oldStepTemplateName: $oldStepTemplateName) { id name } }`,s={newStepTemplateName:e,oldStepTemplateName:i};return DN((yield o._graphqlService.mutate(a,s)).stepTemplate)})()}deleteItemPropertyDefinition(e){var i=this;return dt(function*(){const o=Ur()` mutation deleteItemPropertyDefinition ($itemPropertyDefinition: ItemPropertyDefinitionInput!) { itemPropertyDefinition: deleteItemPropertyDefinition(itemPropertyDefinition: $itemPropertyDefinition) { id key alias type groupId position } }`,a={itemPropertyDefinition:{id:e.id,key:e.key,alias:e.alias,type:e.type,groupId:e.groupId,position:e.position}};return function M6e(n){return n.map(r=>SN(r))}((yield i._graphqlService.mutate(o,a)).itemPropertyDefinition)})()}deleteStep(e){var i=this;return dt(function*(){const o=Ur()` mutation deleteStep ($step: StepInput!) { step: deleteStep(step: $step) { id name } }`,a={step:{id:e.id,name:e.name,position:e.position,template:e.template}};return TN((yield i._graphqlService.mutate(o,a)).step)})()}deleteStepTemplate(e){var i=this;return dt(function*(){const o=Ur()` mutation deleteStepTemplate ($stepTemplateName: String!) { stepTemplate: deleteStepTemplate(stepTemplateName: $stepTemplateName) { name } }`,a={stepTemplateName:e};return DN((yield i._graphqlService.mutate(o,a)).stepTemplate)})()}deleteCategory(e,i){var o=this;return dt(function*(){const a=Ur()` mutation deleteCategory ($subCollectionId : ID!, $category: CategoryInput!) { category: deleteCategory(subCollectionId: $subCollectionId, category: $category) { id name } }`,s=o._getSubCollectionId(e),l={subCollectionId:s,category:{id:i.id,name:i.name,parentId:s}};return(yield o._graphqlService.mutate(a,l)).category})()}renameCategory(e){var i=this;return dt(function*(){const o=Ur()` mutation updateCategory ($subCollectionId : ID!, $category: CategoryInput!) { category: updateCategory(subCollectionId: $subCollectionId, category: $category) { id name } }`,a={subCollectionId:e.subCollectionReference,category:{id:e.id,name:e.name}};return(yield i._graphqlService.mutate(o,a)).category})()}addCategoryTemplate(e){var i=this;return dt(function*(){const o=Ur()` mutation addCategoryTemplate ($templateName: String!) { template: createEmptyCategoryTemplate(name: $templateName) { id name allCategories { id name parent { id } } } }`,a={templateName:e};return d$((yield i._graphqlService.mutate(o,a)).template)})()}deleteCategoryTemplate(e){var i=this;return dt(function*(){const o=Ur()` mutation deleteCategoryTemplate ($categoryTemplate: CategoryTemplateInput!) { categoryTemplate: deleteCategoryTemplate(categoryTemplate: $categoryTemplate) { id name } }`,a={categoryTemplate:{id:e.id,name:e.name}};return d$((yield i._graphqlService.mutate(o,a)).categoryTemplate)})()}addCategoryTemplateSubCategory(e,i){var o=this;return dt(function*(){const a=Ur()` mutation addCategoryTemplateSubCategory ($templateId: ID!, $category: CategoryInput!) { category: createCategoryTemplateSubCategory(categoryTemplateId: $templateId, category: $category) { id name } }`,s={templateId:e,category:{name:i.name}},l=yield o._graphqlService.mutate(a,s);return c$(e,l.category,null)})()}setCollectionStatus(e,i){var o=this;return dt(function*(){const a=Ur()` mutation setCollectionStatus ($id: ID!, $status: CollectionStatus!) { collection: setCollectionStatus(collectionId: $id, collectionStatus: $status) { id } }`,s={id:e,status:i};yield o._graphqlService.mutate(a,s);const l=Ur()` query queryUpdatedCollection ($id: ID!) { collection (id: $id) { ...collectionFields } } ${ga.uploadedResource} ${ga.collection} ${ga.subCollection} ${ga.itemWithoutHistory}`;return SF((yield o._graphqlService.queryNetwork(l,{id:e})).collection)})()}assignItemToCurrentUser(e){var i=this;return dt(function*(){const o=Ur()` mutation assignItemToCurrentUser ($itemId: ID!) { item: assignItemToSelf(itemId: $itemId) { ...itemFields } } ${ga.uploadedResource} ${ga.item}`,a={itemId:e};return wg((yield i._graphqlService.mutate(o,a)).item)})()}assignItem(e,i){var o=this;return dt(function*(){const a=Ur()` mutation assignItem($item: ItemInput!, $user: UserInput!) { item: assignItem(item: $item, assignee: $user) { ...itemFields } } ${ga.item}`,s={item:{id:e.id,name:e.name,properties:{},shapeId:e.shapeId},user:{id:i.id,name:i.name,email:i.email}};return wg((yield o._graphqlService.mutate(a,s)).item)})()}unassignItem(e){var i=this;return dt(function*(){const o=Ur()` mutation unassignItem($item: ItemInput!) { item: unassignItem(item: $item) { ...itemFields } } ${ga.item}`,a={item:{id:e.id,name:e.name,properties:{},shapeId:e.shapeId}};return wg((yield i._graphqlService.mutate(o,a)).item)})()}deleteItem(e){var i=this;return dt(function*(){const o=Ur()` mutation deleteItem ($itemId: ID!) { item: deleteItem(itemId: $itemId) { id } }`,a={itemId:e};return(yield i._graphqlService.mutate(o,a)).item})()}setSubCollectionStepSchedule(e,i){var o=this;return dt(function*(){const a=Ur()` mutation setSubCollectionStepSchedule ($id: ID!, $schedule: StepScheduleInput!) { stepSchedule: changeSubCollectionStepSchedule(subCollectionId: $id, stepSchedule: $schedule) { stepName deadline } }`,s={id:e,schedule:{stepName:i.stepName,deadline:i.deadline}};yield o._graphqlService.mutate(a,s)})()}itemFileLockLegacy(e,i){var o=this;return dt(function*(){const a=Ur()` mutation getWritableItemFile($input: GetWritableFileInput!) { writableItemFile: getWritableItemFile(input: $input) { ...uploadedResourcesFields } } ${ga.uploadedResource}`,s={input:{itemId:e,resource:{reference:i.reference,previewReference:i.previewReference,pdfReference:i.pdfReference,filename:i.filename,rawFilename:i.rawFilename,version:parseFloat(i.version),latest:!!i.latest}}};return DF((yield o._graphqlService.query(a,s)).writableItemFile)})()}itemFileUnlockLegacy(e,i){var o=this;return dt(function*(){const a=Ur()` mutation unblockItemFile($input: UnblockItemFileInput!) { unblockItemFile(input: $input) { id } }`,s={input:{itemId:e,resource:{reference:i.reference,previewReference:i.previewReference,pdfReference:i.pdfReference,filename:i.filename,rawFilename:i.rawFilename,version:parseFloat(i.version),latest:!!i.latest}}};yield o._graphqlService.query(a,s)})()}itemFileBlockStatus(e,i,o){var a=this;return dt(function*(){const s=Ur()` mutation($fileVersionsId: [ID]!, $block: Boolean!, $download: Boolean!) { manageFileVersionsBlock(fileVersionsId: $fileVersionsId, block: $block, download: $download) }`,l={fileVersionsId:[e.id],block:i,download:o};yield a._graphqlService.query(s,l)})()}getItemComments(e){var i=this;return dt(function*(){const o=Ur()` query getItemComments($itemId: ID!) { itemComments(itemId: $itemId) { ...itemCommentsFields } } ${ga.itemComments}`,a={itemId:e};return(yield i._graphqlService.query(o,a)).itemComments.map(CO)})()}getCollectionIdByNotificationId(e){var i=this;return dt(function*(){const o=Ur()` query CollectionIdByNotificationId($notificationId: ID!) { collectionIdByNotificationId(notificationId: $notificationId) }`,a={notificationId:e},s=yield i._graphqlService.query(o,a);return parseInt(s.collectionIdByNotificationId,10)})()}getItemStatement(){var e=this;return dt(function*(){const i=Ur()` query ItemStatement { itemStatement { ...itemStatementFields } } ${ga.itemStatement}`;return function o8e(n){const r=new Fae;return r.approvedItems=parseInt(n.approvedItems,10),r.percentApprovedItems=parseFloat(n.percentApprovedItems),r.disapprovedItems=parseInt(n.disapprovedItems,10),r.percentDisapprovedItems=parseFloat(n.percentDisapprovedItems),r.itemsReview=parseInt(n.itemsReview,10),r.itemsPercentRevision=parseFloat(n.itemsPercentRevision),r.pendingItems=parseInt(n.pendingItems,10),r.pendingItemsPercent=parseFloat(n.pendingItemsPercent),r}((yield e._graphqlService.query(i)).itemStatement)})()}getItemPropertiesDefinition(){var e=this;return dt(function*(){const i=Ur()` query getItemPropertiesDefinitions { itemPropertyDefinitions { id key alias type defaultValue groupId choices { id name } position } }`;return(yield e._graphqlService.query(i)).itemPropertyDefinitions.map(SN)})()}getSteps(){var e=this;return dt(function*(){const i=Ur()` query getSteps { steps { id name template position } }`;return(yield e._graphqlService.query(i)).steps.map(TN)})()}getStepTemplates(){var e=this;return dt(function*(){const i=Ur()` query getStepTemplates { stepTemplates { id name steps { id name template position } } }`;return(yield e._graphqlService.query(i)).stepTemplates.map(DN)})()}getCategoryTemplates(){var e=this;return dt(function*(){const i=Ur()` query getCategoryTemplates { categoryTemplates { id name allCategories { id name parent { id } } } }`;return(yield e._graphqlService.query(i)).categoryTemplates.map(a=>d$(a))})()}getItems(e){var i=this;return dt(function*(){const o=Ur()` query collections ($collectionsIDs: [ID]!) { collections (ids: $collectionsIDs) { ...collectionFields } } ${ga.uploadedResource} ${ga.collection} ${ga.subCollection} ${ga.itemWithoutHistory}`;return Vae((yield i._graphqlService.query(o,{collectionsIDs:e})).collections)})()}getItemsWithReport(e){var i=this;return dt(function*(){const o=Ur()` query collections ($collectionsIDs: [ID]!) { collections (ids: $collectionsIDs) { ...collectionFieldsWithReport } } ${ga.uploadedResource} ${ga.collectionWithReport} ${ga.subCollection} ${ga.itemWithoutHistory} ${ga.report}`;return Vae((yield i._graphqlService.query(o,{collectionsIDs:e})).collections)})()}getCollectionsSummary(e=[]){var i=this;return dt(function*(){const o=Ur()` query collections ($collectionsIDs: [ID]!) { collections (ids: $collectionsIDs) { id name status } }`,a={collectionsIDs:e};return function L6e(n){return!n||typeof n>"u"?null:n.map(r=>{const e=new qS;return e.id=r.id,e.name=r.name,e.status=r.status,e})}((yield i._graphqlService.query(o,a)).collections)})()}getPaginatedCollections(e,i,o,a,s){var l=this;return dt(function*(){const d=Ur()` query paginatedCollections($where: CollectionFilter, $offset: Int!, $limit: Int!, $ordenation: CollectionOrdenation!, $isDescending: Boolean) { paginatedCollections (where: $where, offset: $offset, limit: $limit, ordenation: $ordenation, isDescending: $isDescending) { collections { ...basicCollectionFields } offset limit currentPage pageCount } } ${ga.uploadedResource} ${ga.basicSubCollection} ${ga.basicCollection}`;e&&(e.status="ALL"===e.status?null:e.status);const f={where:e,offset:i,limit:o,ordenation:a,isDescending:s||!1};return function V6e(n){const r=new o6e;return r.currentPage=n.currentPage,r.limit=n.limit,r.offset=n.offset,r.pageCount=n.pageCount,r.collections=function R6e(n){return!n||typeof n>"u"?null:n.map(r=>SF(r))}(n.collections),r}((yield l._graphqlService.query(d,f)).paginatedCollections)})()}getTotalCollectionStatus(){var e=this;return dt(function*(){const i=Ur()` query totalCollectionStatus { totalCollectionStatus { future, active, archive } } `;return(yield e._graphqlService.query(i)).totalCollectionStatus})()}getPaginatedHistory(e,i,o,a,s){var l=this;return dt(function*(){const d=Ur()` query paginatedHistory($collectionId: ID!, $limit: Int!, $skip: Int!, $startDate: Date, $endDate: Date) { paginatedHistory(collectionId: $collectionId, limit: $limit, skip: $skip, startDate: $startDate, endDate: $endDate) { pageSize page totalCountRecords results{ ...HistoryFields } } } ${ga.history}`,f={collectionId:e,limit:i,skip:o,startDate:a,endDate:s};return function z6e(n){const r=new a6e;return r.pageSize=n.pageSize,r.page=n.page,r.totalCountRecords=n.totalCountRecords,r.results=function F6e(n){return!n||typeof n>"u"?null:n.map(r=>zae(r))}(n.results),r}((yield l._graphqlService.query(d,f)).paginatedHistory)})()}getCollectionByItemName(e){var i=this;return dt(function*(){const o=Ur()` query getCollectionsIdForItemName($itemName: String!) { collectionsIds: getCollectionsIdForItemName(itemName: $itemName) }`,a={itemName:e};return(yield i._graphqlService.query(o,a)).collectionsIds})()}onItemChanged(e){const i=Ur()` subscription onItemChanged($itemId: ID!) { item: itemChanged(itemId: $itemId) { ...itemFields } } ${ga.uploadedResource} ${ga.item}`;return this._graphqlService.subscribe(i,{itemId:e}).pipe(Ct(s=>wg(s.item)))}onNotification(){const e=Ur()` subscription onNotification { notification: notification { ...notificationFields } } ${ga.notification}`;return this._graphqlService.subscribe(e).pipe(Ct(o=>l$(o.notification)))}getUnreadNotifications(){var e=this;return dt(function*(){const i=Ur()` query getUnreadNotifications { unreadNotifications { ...unreadNotificationsFields } } ${ga.unreadNotifications}`;return(yield e._graphqlService.query(i)).unreadNotifications.count})()}getAllNotifications(e,i){var o=this;return dt(function*(){const a=Ur()` query getAllNotifications($offset: Int!, $limit: Int!) { notifications(offset: $offset, limit: $limit) { ...notificationFields } } ${ga.notification}`,s={offset:e,limit:i};return function n8e(n){return n.map(r=>l$(r))}((yield o._graphqlService.query(a,s)).notifications)})()}updateNotificationsAsRead(){var e=this;return dt(function*(){const i=Ur()` mutation updateNotificationsAsRead { notificationsAsRead: updateNotificationsAsRead { ...unreadNotificationsFields } } ${ga.unreadNotifications}`;yield e._graphqlService.mutate(i)})()}updateNotificationAsRead(e){var i=this;return dt(function*(){const o=Ur()` mutation updateNotificationAsRead($notificationId: ID!) { notification: updateNotificationAsRead(notificationId: $notificationId) { ...notificationFields } } ${ga.notification}`,a={notificationId:e};return l$((yield i._graphqlService.mutate(o,a)).notification)})()}getBrands(){var e=this;return dt(function*(){const i=Ur()` query getBrands { brands { id name } }`;return function a8e(n){return n.map(r=>{const e=new bN;return e.id=r.id,e.name=r.name,e})}((yield e._graphqlService.query(i)).brands)})()}getCurrentUser(){var e=this;return dt(function*(){const i=Ur()` query getCurrentUser { user { ...userFields } } ${ga.user}`;return S0((yield e._graphqlService.query(i)).user)})()}getItem(e){var i=this;return dt(function*(){const o=Ur()` query getItem ($itemId: ID!) { item(itemId: $itemId) { ...itemFields } } ${ga.item}`,a={itemId:e};return wg((yield i._graphqlService.query(o,a)).item)})()}getItemOfItemStep(e){var i=this;return dt(function*(){const o=Ur()` query getItem ($itemStepId: ID!) { itemOfStep(itemStepId: $itemStepId) { ...itemFields } } ${ga.item}`,a={itemStepId:e};return wg((yield i._graphqlService.query(o,a)).itemOfStep)})()}setItemApproval(e,i){var o=this;return dt(function*(){const a=Ur()` mutation ($itemId: ID!, $approval: Boolean!) { item: setItemApproval(itemId: $itemId, approval: $approval) { ...itemFields } } ${ga.item}`,s={itemId:e,approval:i};return wg((yield o._graphqlService.mutate(a,s)).item)})()}rejectItem(e,i){var o=this;return dt(function*(){const a=Ur()` mutation($itemId: ID!, $reasonId: ID) { item: rejectItem(itemId: $itemId, itemRejectionReasonId: $reasonId) { ...itemFields } } ${ga.item}`,s={itemId:e,reasonId:i};return wg((yield o._graphqlService.mutate(a,s)).item)})()}_getSubCollectionId(e){return e instanceof vF?e.id:e.subCollectionReference}_createItems(e,i){var o=this;return dt(function*(){const a=Ur()` mutation createItems ($items: [ItemInput]!, $subCollectionId: ID!) { items: createItems(subCollectionId: $subCollectionId, items: $items) { ...itemFields } } ${ga.uploadedResource} ${ga.item}`,s={subCollectionId:e,items:i};return(yield o._graphqlService.mutate(a,s)).items.map(wg)})()}_createBulkItems(e,i,o){var a=this;return dt(function*(){const s=Ur()` mutation createBulkItems ($items: [ItemInput]!, $subCollectionId: ID!, $qtyItems: Int!) { items: createBulkItems(subCollectionId: $subCollectionId, items: $items, qtyItems: $qtyItems) { ...itemFieldsWithoutHistory } } ${ga.itemWithoutHistory}`,l={subCollectionId:e,items:i,qtyItems:o};return(yield a._graphqlService.mutate(s,l)).items.map(wg)})()}getCollectionCalendarEvent(e){var i=this;return dt(function*(){const o=Ur()` query collectionCalendarEvent($calendarEventId: ID!) { collectionCalendarEvent(calendarEventId: $calendarEventId) { id title collectionId description ... on Event { color start end } ... on Reminder { date collection { name } } } }`,a={calendarEventId:e};return function N6e(n){switch(n.__typename){case"Event":return xF(n);case"Reminder":return MF(n);default:return null}}((yield i._graphqlService.query(o,a)).collectionCalendarEvent)})()}getCollectionCalendar(e){var i=this;return dt(function*(){const o=Ur()` query collectionCalendar($collectionId: ID!) { collectionCalendar(collectionId: $collectionId) { id title collectionId description ... on Event { color start end } ... on Reminder { date } } }`,a={collectionId:e};return function H6e(n){return n.map(r=>{switch(r.__typename){case"Event":return xF(r);case"Reminder":return MF(r);default:return null}})}((yield i._graphqlService.query(o,a)).collectionCalendar)})()}deleteReminder(e){var i=this;return dt(function*(){const o=Ur()` mutation deleteCalendarReminder($reminder: ReminderInput!) { reminder: deleteCalendarReminder(reminder: $reminder) { id title collectionId description date } }`,a={reminder:{id:e.id,collectionId:e.collectionId,title:e.title,description:e.description,date:e.date}};return MF((yield i._graphqlService.mutate(o,a)).reminder)})()}deleteEvent(e){var i=this;return dt(function*(){const o=Ur()` mutation deleteCalendarEvent($event: EventInput!) { event: deleteCalendarEvent(event: $event) { id title collectionId description color start end } }`,a={event:e};return xF((yield i._graphqlService.mutate(o,a)).event)})()}addEvent(e){var i=this;return dt(function*(){const o=Ur()` mutation addCalendarEvent($event: EventInput!) { event: addCalendarEvent(event: $event) { id title collectionId description color start end } }`,a={event:e};return xF((yield i._graphqlService.mutate(o,a)).event)})()}addReminder(e){var i=this;return dt(function*(){const o=Ur()` mutation addCalendarReminder($reminder: ReminderInput!) { reminder: addCalendarReminder(reminder: $reminder) { id title collectionId description date } }`,a={reminder:e};return MF((yield i._graphqlService.mutate(o,a)).reminder)})()}updateEvent(e){var i=this;return dt(function*(){const o=Ur()` mutation updateCalendarEvent($event: EventInput!) { event: updateCalendarEvent(event: $event) { id title collectionId description color start end } }`,a={event:e};return xF((yield i._graphqlService.mutate(o,a)).event)})()}updateCatalog(e){var i=this;return dt(function*(){const o=Ur()` mutation($catalog:CatalogInput!){ catalog:updateCatalog(catalog:$catalog){ id properties{ id itemPropertyDefinitionId } information{ id item description responsible step colors prints } } }`,a=Number(e.information.id),s={catalog:{id:e.id,properties:e.properties,information:{id:a,item:e.information.item,description:e.information.description,responsible:e.information.responsible,step:e.information.step,colors:e.information.colors,prints:e.information.prints}}};return(yield i._graphqlService.mutate(o,s)).catalog})()}updateReminder(e){var i=this;return dt(function*(){const o=Ur()` mutation updateCalendarReminder($reminder: ReminderInput!) { reminder: updateCalendarReminder(reminder: $reminder) { id title collectionId description date } }`,a={reminder:e};return MF((yield i._graphqlService.mutate(o,a)).reminder)})()}updateItemGrid(e,i,o){var a=this;return dt(function*(){const s=Ur()` mutation updateItemGridPosition($item: ItemInput!) { subCollection: updateItemGridPosition(updatedItem: $item) { ...basicSubCollectionFields } } ${ga.basicSubCollection}`,l={item:{categoryId:i,id:e.id,name:e.name,position:e.position,shapeId:e.shapeId,properties:[]}};return PN((yield a._graphqlService.mutate(s,l)).subCollection,o)})()}getShapes(){var e=this;return dt(function*(){const i=Ur()` query getAllCompanyShapes { shapes { ...shapeFields } } ${ga.shape}`;return function O6e(n){return n.map(r=>function k6e(n){if(typeof n>"u")return null;const r=new Jj;return r.id=n.id,r.name=n.name,r.coverReference=n.coverReference,r.fit=n.fit,r}(r))}((yield e._graphqlService.query(i)).shapes)})()}createItemVariant(e,i,o){var a=this;return dt(function*(){const s=Ur()` mutation createItemVariant($input: CreateItemVariantInput!) { item: createItemVariant(input: $input) { ...itemFields } } ${ga.item}`,l={input:{itemId:e,name:i,copyStepStatus:o}};return wg((yield a._graphqlService.mutate(s,l)).item)})()}copyItem(e,i,o,a,s){var l=this;return dt(function*(){const d=Ur()` mutation copyItem( $itemName: String!, $sourceItemId: ID!, $destinySubCollectionId: ID!, $destinyMixId: ID!, $copyConfig: CopyConfigInput ) { item: copyItem( itemName: $itemName, sourceItemId: $sourceItemId, destinySubCollectionId: $destinySubCollectionId, destinyMixId: $destinyMixId, copyConfig: $copyConfig ) { ...itemFields } } ${ga.item}`,f={itemName:e,sourceItemId:i,destinySubCollectionId:o,destinyMixId:a,copyConfig:s};return wg((yield l._graphqlService.mutate(d,f)).item)})()}moveItem(e,i){var o=this;return dt(function*(){const a=Ur()` mutation moveItem($input: MoveItemInput!) { item: moveItem(input: $input) { ...itemFields } } ${ga.item}`,s={input:{itemId:e,destinyCategoryId:i}};return wg((yield o._graphqlService.mutate(a,s)).item)})()}checkFileHasAlreadyBeenVersioned(e,i,o){var a=this;return dt(function*(){const s=Ur()` mutation checkFileHasAlreadyBeenVersioned($fileContent: String!, $fileName: String!, $itemId: ID!) { summary: checkFileHasAlreadyBeenVersioned(fileContent: $fileContent, fileName: $fileName, itemId: $itemId) { userId username fileVersionId fileName reference lastFileModification attachedLastFileModification uploadDate attachedFileHasLatestVersion } }`,l={fileContent:e,fileName:i,itemId:o};return function c8e(n){if(!n)return null;const r=new g6e;return r.attachedFileHasLatestVersion=n.attachedFileHasLatestVersion,r.attachedLastFileModification=n.attachedLastFileModification,r.fileName=n.fileName,r.fileVersionId=n.fileVersionId,r.lastFileModification=n.lastFileModification,r.uploadDate=n.uploadDate,r.userId=n.userId,r.username=n.username,r.reference=n.reference,r}((yield a._graphqlService.mutate(s,l)).summary)})()}getFilesByItemId(e){var i=this;return dt(function*(){const o=Ur()` query uploadedFiles($itemId: ID!) { uploadedFiles(itemId: $itemId) { id itemId rawFileName lastFileModification lastUpdate createdAt hasVersioning isLegacy fileVersions { id uploadedFileId userId itemStepId reference previewReference pdfReference thumbReference filename version latest deleted lastFileModification lastUpdate createdAt versionBlock { id uploadedFileId userId blockedIn lastUpdate createdAt } versionUser { id name } versionItemStep { id name lastUpdate } } } }`,a={itemId:e};return function d8e(n){return n.map(u8e)}((yield i._graphqlService.mutate(o,a)).uploadedFiles)})()}createHistory(e){var i=this;return dt(function*(){const o=Ur()` mutation createHistory($history: HistoryInput!) { createHistory(history: $history) }`,a={collectionId:e.collectionId,userId:e.user.id,time:e.time,companyId:e.companyId,itemId:e.itemId?e.itemId:null,colorOrPrintName:e.colorOrPrintName?e.colorOrPrintName:null,stepId:e.stepId?e.stepId:null,newValue:e.newValue?e.newValue:null,oldValue:e.oldValue?e.oldValue:null,propertyName:e.propertyName?e.propertyName:null,filename:e.filename?e.filename:null,oldFilename:e.oldFilename?e.oldFilename:null,uploadedFileId:e.uploadedFileId?e.uploadedFileId:null,uploadedFileVersionId:e.uploadedFileVersionId?e.uploadedFileVersionId:null,oldUploadedFileVersionId:e.oldUploadedFileVersionId?e.oldUploadedFileVersionId:null,newStepStatus:e.newStepStatus?e.newStepStatus:null,oldStepStatus:e.oldStepStatus?e.oldStepStatus:null,stepName:e.stepName?e.stepName:null,stepStatus:e.stepStatus?e.stepStatus:null,oldAssigneeId:e.oldAssignee?.id?e.oldAssignee?.id:null,newAssigneeId:e.newAssignee?.id?e.newAssignee?.id:null,oldShapeName:e.oldShapeName?e.oldShapeName:null,newShapeName:e.newShapeName?e.newShapeName:null,reason:e.reason?e.reason:null,pendencyId:e.pendencyId?e.pendencyId:null,reviewId:e.reviewId?e.reviewId:null,rejectId:e.rejectId?e.rejectId:null,sourceName:e.sourceName?e.sourceName:null,sourceItemId:e.sourceItemId?e.sourceItemId:null,destinyName:e.destinyName?e.destinyName:null,variantId:e.variantId?e.variantId:null,type:RN.getIndex(Lb,e.type),subType:RN.getIndex(Dr,e.subType),action:RN.getIndex(Or,e.action),moveTo:RN.getIndex(BN,e.moveTo)};return yield i._graphqlService.query(o,a)})()}getCheckCollectionsExistsInCompany(){var e=this;return dt(function*(){const i=Ur()` query checkCollectionsExistsInCompany { checkCollectionsExistsInCompany { hasCollections hasActiveCollections } } `;return yield e._graphqlService.query(i)})()}getReport(e){var i=this;return dt(function*(){const o=Ur()` query report($collectionId: ID!) { report(collectionId: $collectionId) { ...reportFields } } ${ga.report}`,a={collectionId:e};return jae((yield i._graphqlService.query(o,a)).report)})()}clearCacheReport(e){var i=this;return dt(function*(){const o=Ur()` mutation clearCacheReport($collectionId: ID!) { clearCacheReport(collectionId: $collectionId) } `,a={collectionId:e};return(yield i._graphqlService.mutate(o,a)).clearCacheReport})()}}return n.\u0275fac=function(e){return new(e||n)(en(kF),en(OF),en(w1))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),M8e=(()=>{class n{constructor(e){this._graphqlService=e}getAllUsers(){var e=this;return dt(function*(){const i=Ur()` query getAllUsers { users { ...userFields } } ${ga.user} `,{users:o}=yield e._graphqlService.query(i);return o})()}addNewUserToCompany(e){var i=this;return dt(function*(){const o=Ur()` mutation createCompanyUser ($users: [UserInput]!) { users: createCompanyUser(users: $users) { ...userFields } } ${ga.user} `,a={users:[]};for(const l of e)a.users.push({name:l.name,email:l.email,role:Object.keys(ba).indexOf(l.role.toLowerCase()),blocked:l.blocked});const{users:s}=yield i._graphqlService.mutate(o,a);return s})()}getUsersEmailFromLM(){var e=this;return dt(function*(){const i=Ur()` query emailsFromLM { companyEmailsFromLM { email blocked } }`,{companyEmailsFromLM:o}=yield e._graphqlService.query(i);return o.map(a=>function Nae(n){const r=new m6e;return r.email=n.email,r.blocked=n.blocked,r}(a))})()}updateUser(e){var i=this;return dt(function*(){const o=Ur()` mutation updateUser ($user: UserInput!) { user: updateCompanyUser(user: $user) { ...userFields } } ${ga.user} `,a={user:{id:e.id,name:e.name,email:e.email,role:Object.keys(ba).indexOf(e.role.toLowerCase()),blocked:e.blocked}},{user:s}=yield i._graphqlService.mutate(o,a);return s})()}deleteUserInvite(e){var i=this;return dt(function*(){const o=Ur()` mutation ($user: UserInput!) { user: deleteCompanyUserInvite(user: $user) { id } } `,a={user:{id:e.id,name:e.name,email:e.email,role:Object.keys(ba).indexOf(e.role.toLowerCase()),blocked:e.blocked}},{user:s}=yield i._graphqlService.mutate(o,a);return s})()}getCollectionDashboard(e){var i=this;return dt(function*(){const o=Ur()` query CollectionDashboard($clearCache: Boolean!) { collectionDashboard(clearCache: $clearCache) { ...collectionDashboardFields } } ${ga.collectionDashboard}`,a={clearCache:e};return(yield i._graphqlService.query(o,a)).collectionDashboard})()}getItemRejectionReasons(){var e=this;return dt(function*(){const i=Ur()` query { itemRejectionReasons { id title description isInactive position } }`,{itemRejectionReasons:o}=yield e._graphqlService.query(i);return o.map(a=>ON(a))})()}addItemRejectionReason(e){var i=this;return dt(function*(){const o=Ur()` mutation($reason: ItemRejectionReasonInput!) { reason: addItemRejectionReason(itemRejectionReason: $reason) { id title description position } }`,a={reason:{title:e.title,description:e.description}},{itemRejectionReason:s}=yield i._graphqlService.mutate(o,a);return ON(s)})()}updateItemRejectionReason(e,i,o){var a=this;return dt(function*(){const s=Ur()` mutation($id: ID!, $reason: ItemRejectionReasonInput!, $block: Boolean) { reason: updateItemRejectionReason(itemRejectionReasonId: $id, itemRejectionReason: $reason, block: $block) { id title description isInactive position } }`,l={id:e,reason:{title:i.title,description:i.description,position:i.position},block:o},{reason:d}=yield a._graphqlService.mutate(s,l);return ON(d)})()}updateItemsRejectionsReasons(e){var i=this;return dt(function*(){const o=Ur()` mutation($reason: [ItemRejectionReasonInput]!) { reason: updateItemRejectionReasons(itemRejectionReasons: $reason) { id title description isInactive position } }`,a={reason:e.map(l=>({id:l.id,title:l.title,description:l.description,isInactive:l.isInactive,position:l.position}))};return(yield i._graphqlService.mutate(o,a)).itemReject})()}getStepPendencyReasons(){var e=this;return dt(function*(){const i=Ur()` query { stepPendencyReasons { id title isInactive position } }`,{stepPendencyReasons:o}=yield e._graphqlService.query(i);return o.map(a=>kN(a))})()}addStepPendencyReason(e){var i=this;return dt(function*(){const o=Ur()` mutation($reason: StepPendencyReasonInput!) { reason: addStepPendencyReason(stepPendencyReason: $reason) { id title position } }`,a={reason:{title:e.title}},{reason:s}=yield i._graphqlService.mutate(o,a);return kN(s)})()}updateStepPendencyReason(e,i,o){var a=this;return dt(function*(){const s=Ur()` mutation($id: ID!, $reason: StepPendencyReasonInput!, $block: Boolean) { reason: updateStepPendencyReason(stepPendencyReasonId: $id, stepPendencyReason: $reason, block: $block) { id title isInactive position } }`,l={id:e,reason:{title:i.title,position:i.position},block:o},{reason:d}=yield a._graphqlService.mutate(s,l);return kN(d)})()}updateStepsPendencyReasons(e){var i=this;return dt(function*(){const o=Ur()` mutation($reason: [StepPendencyReasonInput]!) { reason: updateStepPendencyReasons(stepPendencyReasons: $reason) { id title isInactive position } }`,a={reason:e.map(l=>({id:l.id,title:l.title,isInactive:l.isInactive,position:l.position}))};return(yield i._graphqlService.mutate(o,a)).pendency})()}getStepReviewReasons(){var e=this;return dt(function*(){const i=Ur()` query { stepReviewReasons { id title isInactive position } }`,{stepReviewReasons:o}=yield e._graphqlService.query(i);return o.map(a=>EN(a))})()}addStepReviewReason(e){var i=this;return dt(function*(){const o=Ur()` mutation($reason: StepReviewReasonInput!) { reason: addStepReviewReason(stepReviewReason: $reason) { id title position } }`,a={reason:{title:e.title}},{reason:s}=yield i._graphqlService.mutate(o,a);return EN(s)})()}updateStepReviewReason(e,i,o){var a=this;return dt(function*(){const s=Ur()` mutation($id: ID!, $reason: StepReviewReasonInput!, $block: Boolean) { reason: updateStepReviewReason(stepReviewReasonId: $id, stepReviewReason: $reason, block: $block) { id title isInactive position } }`,l={id:e,reason:{title:i.title,position:i.position},block:o},{reason:d}=yield a._graphqlService.mutate(s,l);return EN(d)})()}updateStepsReviewsReasons(e){var i=this;return dt(function*(){const o=Ur()` mutation($reason: [StepReviewReasonInput]!) { reason: updateStepReviewReasons(stepReviewReasons: $reason) { id title isInactive position } }`,a={reason:e.map(l=>({id:l.id,title:l.title,isInactive:l.isInactive,position:l.position}))};return(yield i._graphqlService.mutate(o,a)).reviews})()}getUserPositions(){var e=this;return dt(function*(){const i=Ur()` query { positions { role company { id name } } }`,{positions:o}=yield e._graphqlService.query(i);return o.map(a=>function W6e(n){return n?{companyId:n.company.id,companyName:n.company.name,role:n.role}:null}(a))})()}updateUserCompany(e){var i=this;return dt(function*(){const o=Ur()` mutation($companyId: ID!) { user: updateUserCompany(companyId: $companyId) { ...userFields } } ${ga.user}`,a={companyId:e},{user:s}=yield i._graphqlService.mutate(o,a);return S0(s)})()}getCompanySettings(){var e=this;return dt(function*(){const i=Ur()` query { companySettings { fileVersioning mandatoryFlowSteps } }`,{companySettings:o}=yield e._graphqlService.query(i);return Hae(o)})()}updateCompanySettings(e){var i=this;return dt(function*(){const o=Ur()` mutation($input: CompanySettingsInput!) { companySettings: updateCompanySettings(input: $input) { fileVersioning mandatoryFlowSteps } } `,a={input:{fileVersioning:e.fileVersioning,mandatoryFlowSteps:e.mandatoryFlowSteps}},{companySettings:s}=yield i._graphqlService.mutate(o,a);return Hae(s)})()}}return n.\u0275fac=function(e){return new(e||n)(en(kF))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();var g$=K(96277);class T0{static openAudacesXFile(r){return dt(function*(){const e=yield g$.loadAsync(r);return{zip:e,descriptor:yield T0.getFile(e,"index.json")}})()}static getFile(r,e){return dt(function*(){const i=yield r.file(e).async("text");return JSON.parse(i)})()}static getJson(r,e){return dt(function*(){return yield r.file(e).async("text")})()}static getIdeaxJson(r){return dt(function*(){const e=yield g$.loadAsync(r),i=yield T0.getJson(e,"sheet.json");return i&&""!==i&&i.contains("last_modification_date")?i:yield T0.getJson(e,"index.json")})()}static getPDF(r){return dt(function*(){const i=yield(yield g$.loadAsync(r)).file("file.pdf"),o=i?yield i.async("blob"):null;return o?new File([o],"file.pdf",{type:"application/pdf"}):null})()}shouldHandle(r){return Promise.resolve(r&&this.fileContainsAnyOfExtensions(r))}canBeUsedAsCover(){var r=this;return dt(function*(){return r.canBeCover})()}getThumbnail(r){var e=this;return dt(function*(){const i=yield T0.openAudacesXFile(r),o=yield e.getThumbnailPath(i);if(!o)return null;const a=yield i.zip.file(o).async("blob");return"png"===o.substring(o.lastIndexOf(".")+1)?new File([a],"thumbnail.png",{type:"image/png"}):new File([a],"thumbnail.jpg",{type:"image/jpeg"})})()}fileContainsAnyOfExtensions(r){return yO.any(this.extensions,e=>r.name.endsWith(e))}}let ZS=(()=>{class n extends T0{constructor(e){super(),this._translate=e,this.extensions=[".ideax"],this.canBeCover=!0}static _readVariants(e){return dt(function*(){const i=yield T0.openAudacesXFile(e),o=i.descriptor.files.sheet,a=yield i.zip.file(o).async("text");return JSON.parse(a).variants})()}static getPreview(e){return dt(function*(){const i=yield T0.openAudacesXFile(e),o=i.zip.file("preview.jpg")||i.zip.file("preview.png");if(!o)return null;const a=yield o.async("blob");return"png"===o.name.substring(o.name.lastIndexOf(".")+1)?new File([a],"preview.png",{type:"image/png"}):new File([a],"preview.jpg",{type:"image/jpeg"})})()}_promptForVariant(e){return dt(function*(){return Promise.resolve(e[0])})()}getVariant(e){var i=this;return dt(function*(){const o=yield n._readVariants(e);return i._promptForVariant(o)})()}getThumbnailPath(e){return Promise.resolve(e.descriptor.files.thumb)}}return n.\u0275fac=function(e){return new(e||n)(en(Ja))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),lse=(()=>{class n{constructor(e,i,o,a){this._httpClient=e,this._toaster=i,this._oidcService=o,this._translate=a}createSignedTokens(){var e=this;return dt(function*(){const i=e._oidcService.getToken();try{const o=yield e._httpClient.get(Qu.imageTokenUri,{headers:{Authorization:`Bearer ${i}`}}).toPromise();return yield e._requestSignedCookies(o.token)}catch{e._translate.get(["defaultErrorToasterTitle","amazonSignedCookieErrorToasterMessage"]).subscribe(a=>e._toaster.pop("error",a.defaultErrorToasterTitle,a.amazonSignedCookieErrorToasterMessage))}})()}_requestSignedCookies(e){var i=this;return dt(function*(){const o={token:e,"isa-hostname":window.location.origin};return(yield i._httpClient.get(Qu.signedCookieUri,{headers:o,withCredentials:!0}).toPromise()).resources})()}}return n.\u0275fac=function(e){return new(e||n)(en(_g),en(Fm),en(H_),en(Ja))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),S8e=(()=>{class n{constructor(e,i,o){this._signedCookieService=e,this._requestService=i,this._fileHandlerProxy=o,this.signed=!1}init(e){var i=this;return dt(function*(){const o=[0,2e3,5e3,1e4,6e4],a=new RegExp(`/${e.company.id}/`);for(const s of o)if(a.test(yield i.makeRequestToSignTokenOn(s)))return void(i.signed=!0)})()}makeRequestToSignTokenOn(e){return new Promise(i=>setTimeout(o=>this._signedCookieService.createSignedTokens().then(a=>i(a)),e))}isAvailable(){return this.signed}createFileThumbnail(e){var i=this;return dt(function*(){return(yield i._fileHandlerProxy.getHandlerForFile(e)).getThumbnail(e)})()}createFilePreview(e){var i=this;return dt(function*(){return(yield i._fileHandlerProxy.getHandlerForFile(e))instanceof ZS?ZS.getPreview(e):null})()}getVariantName(e){var i=this;return dt(function*(){const a=yield(yield i._fileHandlerProxy.getHandlerForFile(e)).getVariant(e);return a?a.name:null})()}canBeUsedAsCover(e){var i=this;return dt(function*(){return(yield i._fileHandlerProxy.getHandlerForFile(e)).canBeUsedAsCover()})()}uploadFile(e){var i=this;return dt(function*(){let o=yield i.createFilePreview(e),a=null;null==o?o=yield i.createFileThumbnail(e):a=yield i.createFileThumbnail(e);const s=yield i._uploadFile(e,o,a);return s.filename=e.name,lm.from(s)})()}_uploadFile(e,i,o){var a=this;return dt(function*(){const s={file:e,preview:i,thumb:o};return(yield a._requestService.post(Qu.imageUploadUri,s)).resource})()}uploadIdeaxFile(e,i){var o=this;return dt(function*(){const a=yield o.createFileThumbnail(e),s=yield ZS.getPreview(e),l=yield T0.getPDF(e);return yield o._uploadIdeaxFile(e,s,l,i,a)})()}_createRequestBody(e,i,o,a){return{file:{name:e.name,content_type:"application/zip","Content-Length":e.size},preview:this.createInfo(i),thumb:this.createInfo(a),pdf:this.createInfo(o)}}createInfo(e){return e?{name:e.name,content_type:e.type,"Content-Length":e.size}:{name:"",content_type:"","Content-Length":""}}_uploadImageFile(e){var i=this;return dt(function*(){const o=i.createInfo(e),a=yield i._requestService.post_json(Qu.imageUploadUri,o);yield i._requestService.upload_file_to_s3(a.image,e);const s={prefix:a.imageKey},l=yield i._requestService.post_json(Qu.imageUploadThumbUri,s),d=new lm;return d.filename=a.image.name,d.reference=`${Qu.awsFileServerUri}/${a.imageKey}`,d.previewReference=l.thumbUrl,d.thumbReference=l.thumbUrl,d})()}_uploadIdeaxFile(e,i,o,a,s){var l=this;return dt(function*(){const d=l._createRequestBody(e,i,o,s),C=(yield l._requestService.post_json(Qu.ideaxUploadUri,d)).ideax;return yield l._requestService.upload_file_to_s3(C.file,e),yield l._requestService.upload_file_to_s3(C.preview,i),yield l._requestService.upload_file_to_s3(C.thumb,s),null!=o&&(yield l._requestService.upload_file_to_s3(C.pdf,o)),new lm(C.file.url,C.preview.url,C.pdf.url,C.file.name,null,null,null,C.thumb.url)})()}}return n.\u0275fac=function(e){return new(e||n)(en(lse),en(OF),en(Zj))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();class eT{static readFileContents(r,e){return new Promise(i=>{const o=new FileReader;switch(o.onload=a=>{i(a.target.result)},e){case"dataUrl":return void o.readAsDataURL(r);case"text":return void o.readAsText(r);case"binary":return void o.readAsBinaryString(r)}})}static toLowerExtension(r){const e=r.name.replace(r.name.split(".").pop(),r.name.split(".").pop().toLowerCase());return new File([r],e,{type:r.type,lastModified:r.lastModified})}}let T8e=(()=>{class n{constructor(e){this.fileHandlerSwitcher=e}init(e){return Promise.resolve()}isAvailable(){return!0}uploadFile(e){const i=[eT.readFileContents(e,"dataUrl"),this.createFileThumbnail(e).then(o=>o?eT.readFileContents(o,"dataUrl"):null),e.name,this.createFilePreview(e).then(o=>o?eT.readFileContents(o,"dataUrl"):null)];return Promise.all(i).then(o=>lm.from({id:o[0],reference:o[1],previewReference:o[2],pdfReference:o[3],filename:o[4],rawFilename:o[5],version:o[6],latest:o[7],thumbReference:o[8]}))}uploadIdeaxFile(e,i){var o=this;return dt(function*(){return o.uploadFile(e)})()}createFileThumbnail(e){return this.fileHandlerSwitcher.getHandlerForFile(e).then(i=>i.getThumbnail(e))}createFilePreview(e){var i=this;return dt(function*(){return(yield i.fileHandlerSwitcher.getHandlerForFile(e))instanceof ZS?ZS.getPreview(e):null})()}canBeUsedAsCover(e){var i=this;return dt(function*(){return yield(yield i.fileHandlerSwitcher.getHandlerForFile(e)).canBeUsedAsCover()})()}getVariantName(e){return dt(function*(){return""})()}}return n.\u0275fac=function(e){return new(e||n)(en(Zj))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),D8e=(()=>{class n{constructor(){this.gtag=window.gtag,this._trackingId=Qu.gtagTrackingId,this.config()}sendEvent(e,i){this.gtag("event",e,i=i||{})}config(e,i){this.gtag("config",i=i||this._trackingId,e=e||{})}setUser(e){this.gtag("set",{user_id:e})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const _$=new Pi("analyticsService"),P8e=new Pi("UserLicenseService");NE();let cse=(()=>{class n{constructor(e){this._requestsService=e}getLicenseDetails(){var e=this;return dt(function*(){return e._requestsService.get(`${Qu.userLicenseApiUri}`)})()}}return n.\u0275fac=function(e){return new(e||n)(en(OF))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),O8e=(()=>{class n{constructor(e){this._graphqlService=e}getAllSavedItemFilters(){var e=this;return dt(function*(){const i=Ur()` query savedItemFilters { savedItemFilters { ...savedItemFilterFields } } ${ga.savedItemFilter}`;return(yield e._graphqlService.query(i)).savedItemFilters.map(u$)})()}deleteSavedItemFilter(e){var i=this;return dt(function*(){const o=Ur()` mutation deleteSavedItemFilter($savedItemFilterId: ID!) { deleteSavedItemFilter(savedItemFilterId: $savedItemFilterId) { ...savedItemFilterFields } } ${ga.savedItemFilter}`;return u$((yield i._graphqlService.mutate(o,{savedItemFilterId:e})).deleteSavedItemFilter)})()}saveFilter(e,i,o=!1){var a=this;return dt(function*(){const s=Ur()` mutation saveItemFilter($name: String!, $filters: [ItemFilterOptionInput]!, $favorite: Boolean!) { saveItemFilter(name: $name, filters: $filters, favorite: $favorite) { ...savedItemFilterFields } } ${ga.savedItemFilter}`;i?.forEach(f=>{f.value instanceof Date?f.value=a._dateToString(f.value):f.value instanceof Array&&(f.value=JSON.stringify(f.value))});const l={name:e,filters:i,favorite:o};return u$((yield a._graphqlService.mutate(s,l)).saveItemFilter)})()}_dateToString(e){return e?.toISOString()?.split("T")[0]}}return n.\u0275fac=function(e){return new(e||n)(en(kF))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();function k8e(n,r){}class EF{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 v$=(()=>{class n extends GL{constructor(e,i,o,a,s,l,d,f){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=a,this._interactivityChecker=s,this._ngZone=l,this._overlayRef=d,this._focusMonitor=f,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=C=>{this._portalOutlet.hasAttached();const M=this._portalOutlet.attachDomPortal(C);return this._contentAttached(),M},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=o}_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 o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,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 o=rO(),a=this._elementRef.nativeElement;(!o||o===this._document.body||o===a||a.contains(o))&&(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=rO();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=rO())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(uO),U(Fa,8),U(EF),U(dO),U(Zo),U(sO),U(Rf))},n.\u0275cmp=wn({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&jr(Av,7),2&e){let o;Ai(o=wi())&&(i._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,i){2&e&&Tr("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:[Nr],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&O(0,k8e,0,0,"ng-template",0)},dependencies:[Av],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class b${constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new Fe,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!Dp(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),i.next(r),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const dse=new Pi("DialogScrollStrategy"),E8e=new Pi("DialogData"),I8e=new Pi("DefaultDialogConfig"),R8e={provide:dse,deps:[Ff],useFactory:function F8e(n){return()=>n.scrollStrategies.block()}};let B8e=0,y$=(()=>{class n{constructor(e,i,o,a,s,l){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=a,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Fe,this._afterOpenedAtThisLevel=new Fe,this._ariaHiddenElements=new Map,this.afterAllClosed=Bx(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zl(void 0))),this._scrollStrategy=l}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 EF,...i}).id=i.id||"cdk-dialog-"+B8e++,i.id&&this.getDialogById(i.id);const a=this._getOverlayConfig(i),s=this._overlay.create(a),l=new b$(s,i),d=this._attachContainer(s,l,i);return l.containerInstance=d,this._attachDialogContent(e,l,d,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){C$(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){C$(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),C$(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new YS({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,o){var a;const s=o.injector||(null===(a=o.viewContainerRef)||void 0===a?void 0:a.injector),l=[{provide:EF,useValue:o},{provide:b$,useValue:i},{provide:sO,useValue:e}];let d;o.container?"function"==typeof o.container?d=o.container:(d=o.container.type,l.push(...o.container.providers(o))):d=v$;const f=new nw(d,o.viewContainerRef,ql.create({parent:s||this._injector,providers:l}),o.componentFactoryResolver);return e.attach(f).instance}_attachDialogContent(e,i,o,a){if(e instanceof Na){const s=this._createInjector(a,i,o,void 0);let l={$implicit:a.data,dialogRef:i};a.templateContext&&(l={...l,..."function"==typeof a.templateContext?a.templateContext():a.templateContext}),o.attachTemplatePortal(new nC(e,null,l,s))}else{const s=this._createInjector(a,i,o,this._injector),l=o.attachComponentPortal(new nw(e,a.viewContainerRef,s,a.componentFactoryResolver));i.componentInstance=l.instance}}_createInjector(e,i,o,a){var s;const l=e.injector||(null===(s=e.viewContainerRef)||void 0===s?void 0:s.injector),d=[{provide:E8e,useValue:e.data},{provide:b$,useValue:i}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(i,e,o)):d.push(...e.providers)),e.direction&&(!l||!l.get(cu,null,na.Optional))&&d.push({provide:cu,useValue:{value:e.direction,change:Wo()}}),ql.create({parent:l||a,providers:d})}_removeOpenDialog(e,i){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,s)=>{a?s.setAttribute("aria-hidden",a):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 o=i.length-1;o>-1;o--){const a=i[o];a!==e&&"SCRIPT"!==a.nodeName&&"STYLE"!==a.nodeName&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(en(Ff),en(ql),en(I8e,8),en(n,12),en(aO),en(dse))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();function C$(n,r){let e=n.length;for(;e--;)r(n[e])}let use=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[y$,R8e],imports:[iw,iC,dF,iC]}),n})();const L8e=["*",[["mat-option"],["ng-container"]]],N8e=["*","mat-option, ng-container"];function H8e(n,r){if(1&n&&be(0,"mat-pseudo-checkbox",4),2&n){const e=w();m("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function V8e(n,r){if(1&n&&(b(0,"span",5),L(1),y()),2&n){const e=w();p(1),Be("(",e.group.label,")")}}const U8e=["*"];let A$=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),w$=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const j8e=new Pi("mat-sanity-checks",{providedIn:"root",factory:function z8e(){return!0}});let as=(()=>{class n{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!aj()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(en(Loe),en(j8e,8),en(Fa))},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[oO,oO]}),n})();function D0(n){return class extends n{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=Eo(r)}}}function x1(n,r){return class extends n{constructor(...e){super(...e),this.defaultColor=r,this.color=r}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 P0(n){return class extends n{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=Eo(r)}}}function tT(n,r=0){return class extends n{constructor(...e){super(...e),this._tabIndex=r,this.defaultTabIndex=r}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Ed(e):this.defaultTabIndex}}}function LN(n){return class extends n{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,a=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);a!==r&&(this.errorState=a,this.stateChanges.next())}}}function fse(n){return class extends n{constructor(...r){super(...r),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ze(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(r){r.next(),r.complete()}}}const NN=new Pi("MAT_DATE_LOCALE",{providedIn:"root",factory:function $8e(){return cc(mg)}});class Wp{constructor(){this._localeChanges=new Fe,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let i=this.isValid(r),o=this.isValid(e);return i&&o?!this.compareDate(r,e):i==o}return r==e}clampDate(r,e,i){return e&&this.compareDate(r,e)<0?e:i&&this.compareDate(r,i)>0?i:r}}const M1=new Pi("mat-date-formats"),Y8e=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function x$(n,r){const e=Array(n);for(let i=0;i{class n extends Wp{constructor(e,i){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return x$(12,o=>this._format(i,new Date(2017,o,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return x$(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){const i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return x$(7,o=>this._format(i,new Date(2017,0,o+1)))}getYearName(e){const i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,o){let a=this._createDateWithOverflow(e,i,o);return a.getMonth(),a}today(){return new Date}parse(e,i){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const o=new Intl.DateTimeFormat(this.locale,{...i,timeZone:"utc"});return this._format(o,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,12*i)}addCalendarMonths(e,i){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+i)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Y8e.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,i,o){const a=new Date;return a.setFullYear(e,i,o),a.setHours(0,0,0,0),a}_2digit(e){return("00"+e).slice(-2)}_format(e,i){const o=new Date;return o.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),o.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(o)}}return n.\u0275fac=function(e){return new(e||n)(en(NN,8),en(Au))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const W8e={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Q8e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[{provide:Wp,useClass:G8e}]}),n})(),mse=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[{provide:M1,useValue:W8e}],imports:[Q8e]}),n})(),Nb=(()=>{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=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gse=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function _se(n,r,e="mat"){n.changes.pipe(Zl(n)).subscribe(({length:i})=>{IF(r,`${e}-2-line`,!1),IF(r,`${e}-3-line`,!1),IF(r,`${e}-multi-line`,!1),2===i||3===i?IF(r,`${e}-${i}-line`,!0):i>3&&IF(r,`${e}-multi-line`,!0)})}function IF(n,r,e){n.nativeElement.classList.toggle(r,e)}let vse=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[as,as]}),n})();class K8e{constructor(r,e,i,o=!1){this._renderer=r,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const bse={enterDuration:225,exitDuration:150},M$=Pb({passive:!0}),yse=["mousedown","touchstart"],Cse=["mouseup","mouseleave","touchend","touchcancel"];class Ase{constructor(r,e,i,o){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Th(i))}fadeInRipple(r,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a={...bse,...i.animation};i.centered&&(r=o.left+o.width/2,e=o.top+o.height/2);const s=i.radius||function X8e(n,r,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),o=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(i*i+o*o)}(r,e,o),l=r-o.left,d=e-o.top,f=a.enterDuration,C=document.createElement("div");C.classList.add("mat-ripple-element"),C.style.left=l-s+"px",C.style.top=d-s+"px",C.style.height=2*s+"px",C.style.width=2*s+"px",null!=i.color&&(C.style.backgroundColor=i.color),C.style.transitionDuration=`${f}ms`,this._containerElement.appendChild(C);const M=window.getComputedStyle(C),F=M.transitionDuration,pe="none"===M.transitionProperty||"0s"===F||"0s, 0s"===F,ce=new K8e(this,C,i,pe);C.style.transform="scale3d(1, 1, 1)",ce.state=0,i.persistent||(this._mostRecentTransientRipple=ce);let fe=null;return!pe&&(f||a.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Pe=()=>this._finishRippleTransition(ce),Ne=()=>this._destroyRipple(ce);C.addEventListener("transitionend",Pe),C.addEventListener("transitioncancel",Ne),fe={onTransitionEnd:Pe,onTransitionCancel:Ne}}),this._activeRipples.set(ce,fe),(pe||!f)&&this._finishRippleTransition(ce),ce}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,i={...bse,...r.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=Th(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(yse))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Cse),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:i}=r.config;r.state=1,!i&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){var e;const i=null!==(e=this._activeRipples.get(r))&&void 0!==e?e:null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==i&&(r.element.removeEventListener("transitionend",i.onTransitionEnd),r.element.removeEventListener("transitioncancel",i.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=XL(r),i=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,M$)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(yse.forEach(r=>{this._triggerElement.removeEventListener(r,this,M$)}),this._pointerUpEventsRegistered&&Cse.forEach(r=>{this._triggerElement.removeEventListener(r,this,M$)}))}}const wse=new Pi("mat-ripple-global-options");let z_=(()=>{class n{constructor(e,i,o,a,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new Ase(this,i,e,o)}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,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(Zo),U(Au),U(wse,8),U(Cu,8))},n.\u0275dir=Wn({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&g("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})(),lC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[as,as]}),n})(),xse=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(U(Cu,8))},n.\u0275cmp=wn({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&g("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})(),S$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[as]}),n})();const HN=new Pi("MAT_OPTION_PARENT_COMPONENT"),J8e=D0(class{});let Z8e=0,eHe=(()=>{class n extends J8e{constructor(e){var i;super(),this._labelId="mat-optgroup-label-"+Z8e++,this._inert=null!==(i=e?.inertGroups)&&void 0!==i&&i}}return n.\u0275fac=function(e){return new(e||n)(U(HN,8))},n.\u0275dir=Wn({type:n,inputs:{label:"label"},features:[Nr]}),n})();const VN=new Pi("MatOptgroup");let tHe=(()=>{class n extends eHe{}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275cmp=wn({type:n,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(e,i){2&e&&(Tr("role",i._inert?null:"group")("aria-disabled",i._inert?null:i.disabled.toString())("aria-labelledby",i._inert?null:i._labelId),g("mat-optgroup-disabled",i.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[lo([{provide:VN,useExisting:n}]),Nr],ngContentSelectors:N8e,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(e,i){1&e&&(Cs(L8e),b(0,"span",0),L(1),ha(2),y(),ha(3,1)),2&e&&(m("id",i._labelId),p(1),Be("",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})(),nHe=0;class Mse{constructor(r,e=!1){this.source=r,this.isUserInput=e}}let iHe=(()=>{class n{constructor(e,i,o,a){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=a,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+nHe++,this.onSelectionChange=new Cn,this._stateChanges=new Fe}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=Eo(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 o=this._getHostElement();"function"==typeof o.focus&&o.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)&&!Dp(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 Mse(this,e))}}return n.\u0275fac=function(e){P_()},n.\u0275dir=Wn({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),mh=(()=>{class n extends iHe{constructor(e,i,o,a){super(e,i,o,a)}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(Go),U(HN,8),U(VN,8))},n.\u0275cmp=wn({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&Me("click",function(){return i._selectViaInteraction()})("keydown",function(a){return i._handleKeydown(a)}),2&e&&(so("id",i.id),Tr("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),g("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[Nr],ngContentSelectors:U8e,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&&(Cs(),O(0,H8e,1,2,"mat-pseudo-checkbox",0),b(1,"span",1),ha(2),y(),O(3,V8e,2,1,"span",2),be(4,"div",3)),2&e&&(m("ngIf",i.multiple),p(3),m("ngIf",i.group&&i.group._inert),p(1),m("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[z_,rr,xse],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 T$(n,r,e){if(e.length){let i=r.toArray(),o=e.toArray(),a=0;for(let s=0;se+i?Math.max(0,n-i+r):e}let UN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[lC,xs,as,S$]}),n})();function rHe(n,r){}const AO={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},oHe={dialogContainer:Ku("dialogContainer",[Al("void, exit",uo({opacity:0,transform:"scale(0.7)"})),Al("enter",uo({transform:"none"})),Xs("* => enter",TA([qa("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",uo({transform:"none",opacity:1})),FP("@*",IP(),{optional:!0})]),AO),Xs("* => void, * => exit",TA([qa("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",uo({opacity:0})),FP("@*",IP(),{optional:!0})]),AO)])};class FF{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=AO.params.enterAnimationDuration,this.exitAnimationDuration=AO.params.exitAnimationDuration}}let aHe=(()=>{class n extends v${constructor(e,i,o,a,s,l,d,f){super(e,i,o,a,s,l,d,f),this._animationStateChanged=new Cn}_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)(U(gr),U(uO),U(Fa,8),U(FF),U(dO),U(Zo),U(sO),U(Rf))},n.\u0275cmp=wn({type:n,selectors:[["ng-component"]],features:[Nr],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),sHe=(()=>{class n extends aHe{constructor(e,i,o,a,s,l,d,f,C){super(e,i,o,a,s,l,d,C),this._changeDetectorRef=f,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||AO.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||AO.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(uO),U(Fa,8),U(FF),U(dO),U(Zo),U(sO),U(Go),U(Rf))},n.\u0275cmp=wn({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&Fy("@dialogContainer.start",function(a){return i._onAnimationStart(a)})("@dialogContainer.done",function(a){return i._onAnimationDone(a)}),2&e&&(so("id",i._config.id),Tr("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),ir("@dialogContainer",i._getAnimationState()))},features:[Nr],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&O(0,rHe,0,0,"ng-template",0)},dependencies:[Av],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:[oHe.dialogContainer]}}),n})();class Lc{constructor(r,e,i){this._ref=r,this._containerInstance=i,this._afterOpened=new Fe,this._beforeClosed=new Fe,this._state=0,this.disableClose=e.disableClose,this.id=r.id,i._animationStateChanged.pipe(Fo(o=>"opened"===o.state),Oa(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Fo(o=>"closed"===o.state),Oa(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),or(this.backdropClick(),this.keydownEvents().pipe(Fo(o=>27===o.keyCode&&!this.disableClose&&!Dp(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),Tse(this,"keydown"===o.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe(Fo(e=>"closing"===e.state),Oa(1)).subscribe(e=>{this._beforeClosed.next(r),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(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function Tse(n,r,e){return n._closeInteractionType=r,n.close(e)}const Td=new Pi("MatDialogData"),lHe=new Pi("mat-dialog-default-options"),Dse=new Pi("mat-dialog-scroll-strategy"),dHe={provide:Dse,deps:[Ff],useFactory:function cHe(n){return()=>n.scrollStrategies.block()}};let uHe=0,pHe=(()=>{class n{constructor(e,i,o,a,s,l,d,f,C,M){this._overlay=e,this._defaultOptions=o,this._parentDialog=a,this._dialogRefConstructor=d,this._dialogContainerType=f,this._dialogDataToken=C,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Fe,this._afterOpenedAtThisLevel=new Fe,this._idPrefix="mat-dialog-",this.afterAllClosed=Bx(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zl(void 0))),this._scrollStrategy=l,this._dialog=i.get(y$)}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 o;(i={...this._defaultOptions||new FF,...i}).id=i.id||`${this._idPrefix}${uHe++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const a=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:FF,useValue:i},{provide:EF,useValue:i}]},templateContext:()=>({dialogRef:o}),providers:(s,l,d)=>{var f;return o=new this._dialogRefConstructor(s,i,d),o.updatePosition(null===(f=i)||void 0===f?void 0:f.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:o}]}});return o.componentInstance=a.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(o);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}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){P_()},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),cC=(()=>{class n extends pHe{constructor(e,i,o,a,s,l,d,f){super(e,i,a,l,d,s,Lc,sHe,Td,f)}}return n.\u0275fac=function(e){return new(e||n)(en(Ff),en(ql),en(hA,8),en(lHe,8),en(Dse),en(n,12),en(aO),en(Cu,8))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),hHe=0,Mc=(()=>{class n{constructor(e,i,o){this.dialogRef=e,this._elementRef=i,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Pse(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){Tse(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return n.\u0275fac=function(e){return new(e||n)(U(Lc,8),U(gr),U(cC))},n.\u0275dir=Wn({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,i){1&e&&Me("click",function(a){return i._onButtonClick(a)}),2&e&&Tr("aria-label",i.ariaLabel||null)("type",i.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[vo]}),n})(),Qp=(()=>{class n{constructor(e,i,o){this._dialogRef=e,this._elementRef=i,this._dialog=o,this.id="mat-dialog-title-"+hHe++}ngOnInit(){this._dialogRef||(this._dialogRef=Pse(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)(U(Lc,8),U(gr),U(cC))},n.\u0275dir=Wn({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&so("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),Pp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),xg=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,i){2&e&&g("mat-dialog-actions-align-center","center"===i.align)("mat-dialog-actions-align-end","end"===i.align)},inputs:{align:"align"}}),n})();function Pse(n,r){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(i=>i.id===e.id):null}let Ose=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[cC,dHe],imports:[use,iw,iC,as,as]}),n})();const kse=["mat-button",""],Ese=["*"],gHe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],_He=x1(D0(P0(class{constructor(n){this._elementRef=n}})));let Aa=(()=>{class n extends _He{constructor(e,i,o){super(e),this._focusMonitor=i,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const a of gHe)this._hasHostAttributes(a)&&this._getHostElement().classList.add(a);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)(U(gr),U(Rf),U(Cu,8))},n.\u0275cmp=wn({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&&jr(z_,5),2&e){let o;Ai(o=wi())&&(i.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Tr("disabled",i.disabled||null),g("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Nr],attrs:kse,ngContentSelectors:Ese,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&&(Cs(),b(0,"span",0),ha(1),y(),be(2,"span",1)(3,"span",2)),2&e&&(p(2),g("mat-button-ripple-round",i.isRoundButton||i.isIconButton),m("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[z_],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})(),vHe=(()=>{class n extends Aa{constructor(e,i,o,a){super(i,e,o),this._ngZone=a,this._haltDisabledEvents=s=>{this.disabled&&(s.preventDefault(),s.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return n.\u0275fac=function(e){return new(e||n)(U(Rf),U(gr),U(Cu,8),U(Zo,8))},n.\u0275cmp=wn({type:n,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,i){2&e&&(Tr("tabindex",i.disabled?-1:i.tabIndex)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString()),g("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Nr],attrs:kse,ngContentSelectors:Ese,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&&(Cs(),b(0,"span",0),ha(1),y(),be(2,"span",1)(3,"span",2)),2&e&&(p(2),g("mat-button-ripple-round",i.isRoundButton||i.isIconButton),m("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[z_],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})(),wO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[lC,as,as]}),n})();const bHe=["*"];let zN;function RF(n){var r;return(null===(r=function yHe(){if(void 0===zN&&(zN=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(zN=n.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return zN}())||void 0===r?void 0:r.createHTML(n))||n}function Ise(n){return Error(`Unable to find icon with the name "${n}"`)}function Fse(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Rse(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class nT{constructor(r,e,i){this.url=r,this.svgText=e,this.options=i}}let BF=(()=>{class n{constructor(e,i,o,a){this._httpClient=e,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}addSvgIconLiteral(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}addSvgIconInNamespace(e,i,o,a){return this._addSvgIconConfig(e,i,new nT(o,null,a))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,o,a){const s=this._sanitizer.sanitize(yt.HTML,o);if(!s)throw Rse(o);const l=RF(s);return this._addSvgIconConfig(e,i,new nT("",l,a))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,o){return this._addSvgIconSetConfig(e,new nT(i,null,o))}addSvgIconSetLiteralInNamespace(e,i,o){const a=this._sanitizer.sanitize(yt.HTML,i);if(!a)throw Rse(i);const s=RF(a);return this._addSvgIconSetConfig(e,new nT("",s,o))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(yt.RESOURCE_URL,e);if(!i)throw Fse(e);const o=this._cachedIconsByUrl.get(i);return o?Wo(jN(o)):this._loadSvgIconFromConfig(new nT(e,null)).pipe(Md(a=>this._cachedIconsByUrl.set(i,a)),Ct(a=>jN(a)))}getNamedSvgIcon(e,i=""){const o=Bse(i,e);let a=this._svgIconConfigs.get(o);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(i,e),a)return this._svgIconConfigs.set(o,a),this._getSvgFromConfig(a);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Cb(Ise(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Wo(jN(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ct(i=>jN(i)))}_getSvgFromIconSetConfigs(e,i){const o=this._extractIconWithNameFromAnySet(e,i);return o?Wo(o):AX(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(N_(l=>{const f=`Loading icon set URL: ${this._sanitizer.sanitize(yt.RESOURCE_URL,s.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(f)),Wo(null)})))).pipe(Ct(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw Ise(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let o=i.length-1;o>=0;o--){const a=i[o];if(a.svgText&&a.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(a),l=this._extractSvgIconFromSet(s,e,a.options);if(l)return l}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Md(i=>e.svgText=i),Ct(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Wo(null):this._fetchIcon(e).pipe(Md(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,o){const a=e.querySelector(`[id="${i}"]`);if(!a)return null;const s=a.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,o);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),o);const l=this._svgElementFromString(RF(""));return l.appendChild(s),this._setSvgAttributes(l,o)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const i=this._svgElementFromString(RF("")),o=e.attributes;for(let a=0;aRF(C)),sB(()=>this._inProgressUrlFetches.delete(l)),Xn());return this._inProgressUrlFetches.set(l,f),f}_addSvgIconConfig(e,i,o){return this._svgIconConfigs.set(Bse(e,i),o),this}_addSvgIconSetConfig(e,i){const o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let o=0;or?r.pathname+r.search:""}}}),Lse=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],DHe=Lse.map(n=>`[${n}]`).join(", "),PHe=/^url\(['"]?#(.*?)['"]?\)$/;let wa=(()=>{class n extends xHe{constructor(e,i,o,a,s,l){super(e),this._iconRegistry=i,this._location=a,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=X.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Eo(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const o=e.childNodes[i];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),i.forEach(o=>e.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((o,a)=>{o.forEach(s=>{a.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(DHe),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a{const l=i[a],d=l.getAttribute(s),f=d?d.match(PHe):null;if(f){let C=o.get(l);C||(C=[],o.set(l,C)),C.push({name:s,value:f[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,o]=this._splitIconName(e);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(Oa(1)).subscribe(a=>this._setSvgElement(a),a=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${o}! ${a.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(U(gr),U(BF),ge("aria-hidden"),U(SHe),U(p0),U(MHe,8))},n.\u0275cmp=wn({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(Tr("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),g("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Nr],ngContentSelectors:bHe,decls:1,vars:0,template:function(e,i){1&e&&(Cs(),ha(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),n})(),D$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[as,as]}),n})(),Nse=(()=>{class n{constructor(e){this.version=e.message.replace(e.serverErrorMessage,"")}}return n.\u0275fac=function(e){return new(e||n)(U(Td))},n.\u0275cmp=wn({type:n,selectors:[["app-update-step-dialog-version-dialog"]],decls:23,vars:17,consts:[[1,"dialog"],["mat-button","",1,"dialog-fake-button"],[1,"dialog-warning-icon",3,"inline"],[1,"dialog-text"],[1,"dialog-warning-uppercase"],[1,"dialog-actions"],[1,"dialog-actions-center"],["mat-button","","color","disabled","mat-dialog-close",""]],template:function(e,i){1&e&&(b(0,"div",0),be(1,"button",1),b(2,"mat-icon",2),L(3," error_outline "),y(),b(4,"div",3)(5,"p",4)(6,"strong"),L(7),D(8,"translate"),y()(),b(9,"p"),L(10),D(11,"translate"),y(),b(12,"p")(13,"span"),L(14),D(15,"translate"),y(),L(16),D(17,"translate"),y()(),b(18,"div",5)(19,"div",6)(20,"button",7),L(21),D(22,"translate"),y()()()()),2&e&&(p(2),m("inline",!0),p(5),Xe(B(8,7,"updateStepDialogVersionDialogAttention")),p(3),Sr("",B(11,9,"updateStepDialogVersionDialogOutOfDate"),' "V',i.version,'"'),p(4),Xe(B(15,11,"updateStepDialogVersionDialogTip")),p(2),Be(" ",B(17,13,"updateStepDialogVersionDialogTipMessage")," "),p(5),Xe(B(22,15,"updateStepDialogVersionDialogCancel")))},dependencies:[Aa,wa,Mc,kr],styles:[".dialog[_ngcontent-%COMP%]{text-align:center;width:516px;max-width:100%;position:relative}.dialog.read-dialog[_ngcontent-%COMP%]{width:406px}.dialog-warning-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.dialog-radio-option[_ngcontent-%COMP%]{display:block}.dialog-fake-button[_ngcontent-%COMP%]{position:fixed;top:-9999px;left:-9999px}.dialog-close[_ngcontent-%COMP%]{position:absolute;right:-20px;top:-20px}.dialog-text[_ngcontent-%COMP%]{color:#444;font-size:16px;margin:0 auto}.dialog-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]:not(.small-strong){font-size:20px;font-weight:500;color:#616161}.dialog-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#324fbe}.dialog-actions[_ngcontent-%COMP%]{display:flex;margin:24px 0 -10px}.dialog-actions-right[_ngcontent-%COMP%]{margin-left:auto}.dialog-actions-center[_ngcontent-%COMP%]{margin:0 auto}.dialog-warning-icon[_ngcontent-%COMP%]{color:#324fbe;font-size:56px;margin:-19px 0 0}[_ngcontent-%COMP%]:ng-deep .mat-dialog-container[_ngcontent-%COMP%]{padding:16px}[_ngcontent-%COMP%]:ng-deep .cdk-overlay-backdrop[_ngcontent-%COMP%]{pointer-events:none}"]}),n})();function OHe(n,r){if(1&n){const e=xt();b(0,"div",9)(1,"button",10),Me("click",function(){return Oe(e),Re(w().unlock())}),L(2),D(3,"translate"),y()()}2&n&&(p(2),Xe(B(3,1,"stepFileUploadBlockedDialogUnblock")))}const kHe=function(n,r){return{"dialog-actions-left":n,"dialog-actions-center":r}};let EHe=(()=>{class n{constructor(e,i){this._dialogRef=e,this.itemFile=i.itemFile,this.isUserAuthorized=i.isUserAuthorized,this.fileType=/(?:\.([^.]+))?$/.exec(i.itemFile.file.filename)[0]}isAudacesFile(){return".amkx"===this.fileType||".4dx"===this.fileType||".ideax"===this.fileType||".adsx"===this.fileType}unlock(){this._dialogRef.close({unlock:!0})}}return n.\u0275fac=function(e){return new(e||n)(U(Lc),U(Td))},n.\u0275cmp=wn({type:n,selectors:[["app-step-file-upload-blocked-dialog"]],decls:27,vars:31,consts:[[1,"dialog"],["mat-button","",1,"dialog-fake-button"],[1,"dialog-warning-icon",3,"inline"],[1,"dialog-text"],[2,"margin-top","30px"],[1,"dialog-actions"],[3,"ngClass"],["mat-button","","color","disabled","mat-dialog-close",""],["class","dialog-actions-right",4,"ngIf"],[1,"dialog-actions-right"],["mat-button","","color","primary",3,"click"]],template:function(e,i){1&e&&(b(0,"div",0),be(1,"button",1),b(2,"mat-icon",2),L(3," error_outline "),y(),b(4,"div",3)(5,"p")(6,"strong"),L(7),D(8,"translate"),D(9,"translate"),y()(),b(10,"p"),L(11),D(12,"translate"),y(),b(13,"p",4)(14,"span"),L(15),D(16,"translate"),y(),L(17),D(18,"translate"),D(19,"translate"),D(20,"translate"),y()(),b(21,"div",5)(22,"div",6)(23,"button",7),L(24),D(25,"translate"),y()(),O(26,OHe,4,3,"div",8),y()()),2&e&&(p(2),m("inline",!0),p(5),Ar(" ",B(8,12,".ideax"===i.fileType?"stepFileUploadBlockedDialogTechPackBlocked":".4dx"===i.fileType?"stepFileUploadBlockedDialog4DBlocked":".adsx"===i.fileType?"stepFileUploadBlockedDialogPatternBlocked":".amkx"===i.fileType?"stepFileUploadBlockedDialogNestingBlocked":"stepFileUploadBlockedDialogFileBlocked")," ",B(9,14,"stepFileUploadBlockedDialogBlockedBy")," ",i.itemFile.blockedByUser.name," "),p(4),Xe(B(12,16,"stepFileUploadBlockedDialogAvailableForEditing")),p(4),Xe(B(16,18,"stepFileUploadBlockedDialogTip")),p(2),Ar(" ",B(18,20,"stepFileUploadBlockedDialogCommentInModel")," ",B(19,22,".ideax"===i.fileType?"stepFileUploadBlockedDialogTheTechPack":".4dx"===i.fileType?"stepFileUploadBlockedDialogThe4DBlocked":".adsx"===i.fileType?"stepFileUploadBlockedDialogThePattern":".amkx"===i.fileType?"stepFileUploadBlockedDialogTheNesting":"stepFileUploadBlockedDialogTheFile")," ",B(20,24,"stepFileUploadBlockedDialogThisModel")," "),p(5),m("ngClass",eo(28,kHe,i.isUserAuthorized,!i.isUserAuthorized)),p(2),Xe(B(25,26,"stepFileUploadBlockedDialogCancel")),p(2),m("ngIf",i.isUserAuthorized))},dependencies:[ra,rr,Aa,wa,Mc,kr],styles:[".dialog[_ngcontent-%COMP%]{text-align:center;width:516px;max-width:100%;position:relative}.dialog.read-dialog[_ngcontent-%COMP%]{width:406px}.dialog-warning-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.dialog-radio-option[_ngcontent-%COMP%]{display:block}.dialog-fake-button[_ngcontent-%COMP%]{position:fixed;top:-9999px;left:-9999px}.dialog-close[_ngcontent-%COMP%]{position:absolute;right:-20px;top:-20px}.dialog-text[_ngcontent-%COMP%]{color:#444;font-size:16px;margin:0 auto}.dialog-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]:not(.small-strong){font-size:20px;font-weight:500;color:#616161}.dialog-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#324fbe}.dialog-actions[_ngcontent-%COMP%]{display:flex;margin:24px 0 -10px}.dialog-actions-right[_ngcontent-%COMP%]{margin-left:auto}.dialog-actions-center[_ngcontent-%COMP%]{margin:0 auto}.dialog-warning-icon[_ngcontent-%COMP%]{color:#324fbe;font-size:56px;margin:-19px 0 0}[_ngcontent-%COMP%]:ng-deep .mat-dialog-container[_ngcontent-%COMP%]{padding:16px}[_ngcontent-%COMP%]:ng-deep .cdk-overlay-backdrop[_ngcontent-%COMP%]{pointer-events:none}"]}),n})(),IHe=(()=>{class n{constructor(e,i){this._oidcService=e,this._dialogRef=i,i.disableClose=!0}backToLogin(){this._oidcService.logoff()}}return n.\u0275fac=function(e){return new(e||n)(U(H_),U(Lc))},n.\u0275cmp=wn({type:n,selectors:[["app-invalid-license-dialog"]],decls:18,vars:10,consts:[[1,"dialog"],[1,"dialog-warning-icon",3,"inline"],[1,"dialog-text"],["href","https://audaces.com/contato/","target","_blank"],["mat-button","","color","primary"],["mat-icon-button","",1,"dialog-close",3,"click"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"mat-icon",1),L(2," error_outline "),y(),b(3,"div",2)(4,"p")(5,"strong"),L(6),D(7,"translate"),y()(),b(8,"p"),L(9),D(10,"translate"),y(),b(11,"a",3)(12,"button",4),L(13),D(14,"translate"),y()()(),b(15,"button",5),Me("click",function(){return i.backToLogin()}),b(16,"mat-icon"),L(17,"close"),y()()()),2&e&&(p(1),m("inline",!0),p(5),Xe(B(7,4,"invalidLicenceDialogAttention")),p(3),Xe(B(10,6,"invalidLicenceDialogLicenseNotActive")),p(4),Xe(B(14,8,"invalidLicenceAudacesSupport")))},dependencies:[Aa,wa,kr],styles:[".dialog[_ngcontent-%COMP%]{text-align:center;width:500px;max-width:600px;position:relative}.dialog-close[_ngcontent-%COMP%]{position:absolute;right:-20px;top:-20px}.dialog-text[_ngcontent-%COMP%]{color:#444;width:363px;max-width:100%;font-size:15px;margin:0 auto}.dialog-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px;font-weight:500;text-transform:uppercase}.dialog-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#324fbe}.dialog-warning-icon[_ngcontent-%COMP%]{color:#324fbe;font-size:52px;margin-bottom:12px}[_ngcontent-%COMP%]:ng-deep .mat-dialog-container[_ngcontent-%COMP%]{padding:16px}[_ngcontent-%COMP%]:ng-deep .cdk-overlay-backdrop[_ngcontent-%COMP%]{pointer-events:none}"]}),n})(),FHe=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["app-step-file-upload-readable-dialog"]],decls:26,vars:19,consts:[[1,"dialog"],["mat-button","",1,"dialog-fake-button"],[1,"dialog-warning-icon",3,"inline"],[1,"dialog-text"],[1,"dialog-warning-uppercase"],[1,"small-strong"],[1,"dialog-actions"],[1,"dialog-actions-center"],["mat-button","","color","disabled","mat-dialog-close",""]],template:function(e,i){1&e&&(b(0,"div",0),be(1,"button",1),b(2,"mat-icon",2),L(3," error_outline "),y(),b(4,"div",3)(5,"p",4)(6,"strong"),L(7),D(8,"translate"),y()(),b(9,"p"),L(10),D(11,"translate"),b(12,"strong",5),L(13),D(14,"translate"),y()(),b(15,"p")(16,"span"),L(17),D(18,"translate"),y(),L(19),D(20,"translate"),y()(),b(21,"div",6)(22,"div",7)(23,"button",8),L(24),D(25,"translate"),y()()()()),2&e&&(p(2),m("inline",!0),p(5),Xe(B(8,7,"stepFileUploadReadableDialogAttention")),p(3),Be(" ",B(11,9,"stepFileUploadReadableDialogAttachFile")," "),p(3),Xe(B(14,11,"stepFileUploadReadableDialogViewMode")),p(4),Xe(B(18,13,"stepFileUploadReadableDialogTip")),p(2),Be(" ",B(20,15,"stepFileUploadReadableDialogTipText")," "),p(5),Xe(B(25,17,"stepFileUploadReadableDialogCancel")))},dependencies:[Aa,wa,Mc,kr],styles:[".dialog[_ngcontent-%COMP%]{text-align:center;width:516px;max-width:100%;position:relative}.dialog.read-dialog[_ngcontent-%COMP%]{width:406px}.dialog-warning-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.dialog-radio-option[_ngcontent-%COMP%]{display:block}.dialog-fake-button[_ngcontent-%COMP%]{position:fixed;top:-9999px;left:-9999px}.dialog-close[_ngcontent-%COMP%]{position:absolute;right:-20px;top:-20px}.dialog-text[_ngcontent-%COMP%]{color:#444;font-size:16px;margin:0 auto}.dialog-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]:not(.small-strong){font-size:20px;font-weight:500;color:#616161}.dialog-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#324fbe}.dialog-actions[_ngcontent-%COMP%]{display:flex;margin:24px 0 -10px}.dialog-actions-right[_ngcontent-%COMP%]{margin-left:auto}.dialog-actions-center[_ngcontent-%COMP%]{margin:0 auto}.dialog-warning-icon[_ngcontent-%COMP%]{color:#324fbe;font-size:56px;margin:-19px 0 0}[_ngcontent-%COMP%]:ng-deep .mat-dialog-container[_ngcontent-%COMP%]{padding:16px}[_ngcontent-%COMP%]:ng-deep .cdk-overlay-backdrop[_ngcontent-%COMP%]{pointer-events:none}"]}),n})(),RHe=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["app-step-file-upload-invalid-dialog"]],decls:25,vars:16,consts:[[1,"dialog"],["mat-button","",1,"dialog-fake-button"],[1,"dialog-warning-icon",3,"inline"],[1,"dialog-text"],[1,"dialog-warning-uppercase"],[1,"small-strong"],[1,"dialog-actions"],[1,"dialog-actions-center"],["mat-button","","color","disabled","mat-dialog-close",""]],template:function(e,i){1&e&&(b(0,"div",0),be(1,"button",1),b(2,"mat-icon",2),L(3," error_outline "),y(),b(4,"div",3)(5,"p",4)(6,"strong"),L(7),D(8,"translate"),y()(),b(9,"p"),L(10),D(11,"translate"),b(12,"strong",5),L(13),D(14,"translate"),y()(),b(15,"p")(16,"span"),L(17,"Dica!"),y(),L(18),D(19,"translate"),y()(),b(20,"div",6)(21,"div",7)(22,"button",8),L(23),D(24,"translate"),y()()()()),2&e&&(p(2),m("inline",!0),p(5),Xe(B(8,6,"stepFileUploadInvalidDialogAttention")),p(3),Be("",B(11,8,"stepFileUploadInvalidDialogVersionText")," "),p(3),Xe(B(14,10,"stepFileUploadInvalidDialogInvalid")),p(5),Be(" ",B(19,12,"stepFileUploadInvalidDialogTipText")," "),p(5),Xe(B(24,14,"stepFileUploadInvalidDialogCancel")))},dependencies:[Aa,wa,Mc,kr],styles:[".dialog[_ngcontent-%COMP%]{text-align:center;width:516px;max-width:100%;position:relative}.dialog.read-dialog[_ngcontent-%COMP%]{width:406px}.dialog-warning-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.dialog-radio-option[_ngcontent-%COMP%]{display:block}.dialog-fake-button[_ngcontent-%COMP%]{position:fixed;top:-9999px;left:-9999px}.dialog-close[_ngcontent-%COMP%]{position:absolute;right:-20px;top:-20px}.dialog-text[_ngcontent-%COMP%]{color:#444;font-size:16px;margin:0 auto}.dialog-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]:not(.small-strong){font-size:20px;font-weight:500;color:#616161}.dialog-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#324fbe}.dialog-actions[_ngcontent-%COMP%]{display:flex;margin:24px 0 -10px}.dialog-actions-right[_ngcontent-%COMP%]{margin-left:auto}.dialog-actions-center[_ngcontent-%COMP%]{margin:0 auto}.dialog-warning-icon[_ngcontent-%COMP%]{color:#324fbe;font-size:56px;margin:-19px 0 0}[_ngcontent-%COMP%]:ng-deep .mat-dialog-container[_ngcontent-%COMP%]{padding:16px}[_ngcontent-%COMP%]:ng-deep .cdk-overlay-backdrop[_ngcontent-%COMP%]{pointer-events:none}"]}),n})(),BHe=(()=>{class n{constructor(e,i){this._oidcService=e,this._dialogRef=i,i.disableClose=!0}backToLogin(){this._oidcService.logoff()}}return n.\u0275fac=function(e){return new(e||n)(U(H_),U(Lc))},n.\u0275cmp=wn({type:n,selectors:[["app-company-already-exists-dialog"]],decls:24,vars:16,consts:[[1,"dialog"],[1,"dialog-warning-icon",3,"inline"],[1,"dialog-text"],[1,"attention-dialog"],[1,"info-dialog"],[3,"innerHTML"],[1,"dialog-actions"],[1,"dialog-actions-center"],["mat-button","","color","disabled","mat-dialog-close","",3,"click"],["mat-icon-button","",1,"dialog-close",3,"click"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"mat-icon",1),L(2," error_outline "),y(),b(3,"div",2)(4,"p",3)(5,"strong"),L(6),D(7,"translate"),y()(),b(8,"p",4),L(9),D(10,"translate"),y(),b(11,"p"),L(12),D(13,"translate"),y(),be(14,"p",5),D(15,"translate"),y(),b(16,"div",6)(17,"div",7)(18,"button",8),Me("click",function(){return i.backToLogin()}),L(19),D(20,"translate"),y()()(),b(21,"button",9),Me("click",function(){return i.backToLogin()}),b(22,"mat-icon"),L(23,"close"),y()()()),2&e&&(p(1),m("inline",!0),p(5),Xe(B(7,6,"companyAlreadyExistsDialogAttention")),p(3),Xe(B(10,8,"companyAlreadyExistsDialogInfo")),p(3),Xe(B(13,10,"companyAlreadyExistsDialogWelcome")),p(2),m("innerHTML",B(15,12,"companyAlreadyExistsDialogTip"),st),p(5),Xe(B(20,14,"companyAlreadyExistsDialogCancel")))},dependencies:[Aa,wa,Mc,kr],styles:[".dialog[_ngcontent-%COMP%]{text-align:center;width:100%;max-width:560px;position:relative}.dialog-close[_ngcontent-%COMP%]{position:absolute;right:-20px;top:-20px}.dialog-text[_ngcontent-%COMP%]{color:#444;max-width:429px;font-size:16px;margin:0 60px}.dialog-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:20px;font-weight:500;text-transform:uppercase}.dialog-text[_ngcontent-%COMP%] .attention-dialog[_ngcontent-%COMP%]{margin-bottom:8px}.dialog-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:16px}.dialog-text[_ngcontent-%COMP%] .info-dialog[_ngcontent-%COMP%]{margin-bottom:32px}.dialog-text[_ngcontent-%COMP%] span{color:#324fbe}.dialog-text[_ngcontent-%COMP%] a{color:#444;text-decoration:underline}.dialog-text[_ngcontent-%COMP%] a:hover{text-decoration:none}.dialog-warning-icon[_ngcontent-%COMP%]{color:#324fbe;font-size:52px;max-width:none;max-height:none}.dialog-actions[_ngcontent-%COMP%]{color:#616161}@media only screen and (max-width: 480px){.dialog-text[_ngcontent-%COMP%]{margin:0 auto}}"]}),n})();class fs extends Yn{constructor(r=!1){super(r),this._state=r}set(r){this._state=r,this.next(this._state)}toggle(){this.set(!this._state)}}const Hse="routeCallback";let $N=(()=>{class n{constructor(e){this._sessionStorage=e}getRouteBeforeRedirect(){return this._sessionStorage.get(Hse)}getCurrentRoute(){return window.location.pathname+window.location.search}saveCurrentUrlPath(){this._sessionStorage.set(Hse,this.getCurrentRoute())}}return n.\u0275fac=function(e){return new(e||n)(en(Xj))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),Zd=(()=>{class n{constructor(e){this._dialogService=e}show(e,i=null,o=!1,a=!0){const s=new cS(1),l=new FF;return l.data=i,l.disableClose=o,l.restoreFocus=a,this._dialogService.open(e,l).afterClosed().subscribe(f=>{f&&s.next(f)}),s.asObservable().pipe(Of())}}return n.\u0275fac=function(e){return new(e||n)(en(cC))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();const Vse=new Pi("ErrorDialogService");var Op=(()=>(function(n){n.ITEM_NOT_FOUND="Item not found",n.FILE_ITEM_ALREADY_BLOCKED="File item already blocked",n.FILE_ITEM_OLDER_VERSION="Unable to upload an older version of file. Last version: ",n.FILE_ITEM_UPLOADING_READABLE="Unable to upload an readable file",n.FILE_ITEM_INVALID_VERSION="Unable to upload an invalid version of file",n.FILE_ITEM_UNABLE_UPLOAD_NEW_VERSION_DIFFERENT_USER="The blocked file can just be unblocked by the same user",n.FILE_ITEM_UNABLE_UPLOAD_OLDER_VERSION="Unable to upload an older version of file",n.COLLECTION_CANNOT_ACCESS="Cannot update collection with current user",n.MISSING_OIDC_TOKEN="OpenID token was not sent",n.MISSING_OR_INVALID_OIDC_TOKEN="Missing or OpenID token",n.SUBCOLLECTION_CANNOT_ACCESS="Cannot update subcollection with current user",n.USER_ALREADY_REGISTERED="User already registered",n.USER_DOES_NOT_HAVE_NECESSARY_ROLE="The user role isn't allowed to do this",n.USER_ONLY_ADMIN_CANT_CHANGE_ROLE="Cannot update this admin user to other role because his is the only admin in company",n.INVALID_LICENSE="License doesn't have Audaces 360 package",n.COMPANY_ALREADY_EXISTS="A company was already created for this client",n.CONFIGURING_NEW_USER="Configuring new user",n.ITEM_PROPERTY_SAVED_CATALOG="Property saved in catalog"}(Op||(Op={})),Op))(),YN=(()=>(function(n){n.NETWORK_ERROR="Network error"}(YN||(YN={})),YN))();let o2=(()=>{class n{constructor(e,i,o,a,s,l){this._router=e,this._translate=i,this._oidcService=o,this._routeCallbackStorage=a,this._dialogService=s,this._iErrorDialogService=l,this.subscribedErrors=new Map([]),this.showDefaultError=new fs(!1)}isServerError(e){return!!e}showCompanyAlreadyExists(){this.singleDialogControl||(this._dialogService.show(BHe),this.singleDialogControl=!0)}showUserAlreadyRegisteredError(){this.showToaster("defaultErrorAlertTitle","userAlreadyRegisteredErrorMessage")}showFileAlreadyBlockedErrorMessage(){this.showToaster("roleUserErrorAlertTitle","fileAlreadyBlockedErrorMessage")}showUserDoesNotHaveNecessaryRole(){this.showToaster("roleUserErrorAlertTitle","userDoesNotHaveNecessaryRole")}showUserIsOnlyAdmin(){this.showToaster("defaultErrorAlertTitle","userIsOnlyAdminErrorMessage")}showDeletePropertyErrorByCatalog(){this.showToaster("accordionItemPropertiesSettingsDeletePropertyErrorTitle","accordionItemPropertiesSettingsDeletePropertyErrorMessage")}showToaster(e,i){this._translate.get([e,i]).subscribe(o=>this._iErrorDialogService.showError(o[e],o[i]))}showInvalidLicenseDialog(){this.singleDialogControl||(this._dialogService.show(IHe),this.singleDialogControl=!0)}showDefaultErrorComponent(){this.showDefaultError.set(!0)}renewAudacesIDToken(){this._routeCallbackStorage.saveCurrentUrlPath(),this._oidcService.authorize()}isFirstAcces(e){return Op.CONFIGURING_NEW_USER===e}subscribeErrorHandler(e,i,o){this.subscribedErrors.set(this._formatToCatchErrorIdentifier(o,e),i)}unsubscribeErrorHandler(e,i){this.subscribedErrors.delete(this._formatToCatchErrorIdentifier(i,e))}analyzeServerError(e,i=""){let o="";e&&e.errors&&e.errors.firstOrDefault()&&(o=e.errors.firstOrDefault().message),e&&e.message&&(o=e.message),console.error(o);const a=this.subscribedErrors.get(this._formatToCatchErrorIdentifier(i,o));if(a)return this.unsubscribeErrorHandler(o,i),a();this.analyzeErrorByMessage(o)}_formatToCatchErrorIdentifier(e,i){return`${e}-${i}`}showFileReadableVersionDialog(){this._dialogService.show(FHe)}showInvalidItemVersionDialog(){this._dialogService.show(RHe)}analyzeErrorByMessage(e){if(e.indexOf(Op.FILE_ITEM_OLDER_VERSION)>-1)this._dialogService.show(Nse,{message:e,serverErrorMessage:Op.FILE_ITEM_OLDER_VERSION});else{if(e.indexOf(Op.FILE_ITEM_UNABLE_UPLOAD_NEW_VERSION_DIFFERENT_USER)>-1)return this._dialogService.show(EHe,{itemFile:this.itemFile,message:e,serverErrorMessage:Op.FILE_ITEM_UNABLE_UPLOAD_NEW_VERSION_DIFFERENT_USER}),void(this.itemFile=null);if(e.indexOf(Op.FILE_ITEM_UNABLE_UPLOAD_OLDER_VERSION)>-1)this._dialogService.show(Nse,{message:e,serverErrorMessage:Op.FILE_ITEM_UNABLE_UPLOAD_OLDER_VERSION});else switch(e){case Op.MISSING_OIDC_TOKEN:case Op.MISSING_OR_INVALID_OIDC_TOKEN:this.renewAudacesIDToken();break;case Op.COLLECTION_CANNOT_ACCESS:case Op.SUBCOLLECTION_CANNOT_ACCESS:this.showDefaultErrorComponent();break;case Op.USER_ALREADY_REGISTERED:this.showUserAlreadyRegisteredError();break;case Op.USER_DOES_NOT_HAVE_NECESSARY_ROLE:this.showUserDoesNotHaveNecessaryRole();break;case Op.USER_ONLY_ADMIN_CANT_CHANGE_ROLE:this.showUserIsOnlyAdmin();break;case Op.FILE_ITEM_ALREADY_BLOCKED:this.showFileAlreadyBlockedErrorMessage();break;case Op.FILE_ITEM_UPLOADING_READABLE:this.showFileReadableVersionDialog();break;case Op.FILE_ITEM_INVALID_VERSION:this.showInvalidItemVersionDialog();break;case Op.COMPANY_ALREADY_EXISTS:this.showCompanyAlreadyExists();break;case YN.NETWORK_ERROR:this.showDefaultErrorComponent()}}}analyzeNetworkError(e){if(this.isServerError(e)){const i=e.result;return e.result.message===Op.INVALID_LICENSE?void this.showInvalidLicenseDialog():void(Array.isArray(i)?i.forEach(o=>this.analyzeServerError(o,e.result.extensions?e.result.extensions["Request-Id"]:"")):this.analyzeServerError(i,e.result.extensions?e.result.extensions["Request-Id"]:""))}console.error(e)}}return n.\u0275fac=function(e){return new(e||n)(en(ed),en(Ja),en(H_),en($N),en(Zd),en(Vse))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),LHe=(()=>{class n{constructor(e,i){this._toasterService=e,this.zone=i}showError(e,i){this.zone.run(()=>this._toasterService.pop("error",e,i))}}return n.\u0275fac=function(e){return new(e||n)(en(Fm),en(Zo))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),NHe=(()=>{class n{constructor(){if(this._isStorageAvailable())return this._storage=window.localStorage,void(this.storageAvailability=!0);this._storage=null,this.storageAvailability=!1}get(e){return this._execute(()=>this._storage.getItem(e))}set(e,i){this._storage.setItem(e,i)}remove(e){this._storage.removeItem(e)}_execute(e){try{return e()}catch{console.log("Quota exceed")}}_isStorageAvailable(){let e;try{e=window.localStorage;const i="__storage_test__";return e.setItem(i,i),e.removeItem(i),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&e&&0!==e.length}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),HHe=(()=>{class n{constructor(){if(this._isStorageAvailable())return this._storage=window.sessionStorage,void(this.storageAvailability=!0);this._storage=null,this.storageAvailability=!1}get(e){return this._execute(()=>this._storage.getItem(e))}set(e,i){this._storage.setItem(e,i)}remove(e){this._storage.removeItem(e)}_execute(e){try{return e()}catch{console.log("Quota exceed")}}_isStorageAvailable(){let e;try{e=window.sessionStorage;const i="__storage_test__";return e.setItem(i,i),e.removeItem(i),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&e&&0!==e.length}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),GN=(()=>{class n{constructor(e,i){this._errorService=e,this._requestController=i,n._errorService=e,n._requestController=i}static getErrorService(){return n._errorService}static getRequestController(){return n._requestController}}return n.\u0275fac=function(e){return new(e||n)(en(o2),en(m$))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();function VHe(n,r){if(1&n){const e=xt();b(0,"div",2)(1,"button",3),Me("click",function(){return Oe(e),Re(w().action())}),L(2),y()()}if(2&n){const e=w();p(2),Xe(e.data.action)}}function UHe(n,r){}const Use=new Pi("MatSnackBarData");class WN{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const zHe=Math.pow(2,31)-1;class P${constructor(r,e){this._overlayRef=e,this._afterDismissed=new Fe,this._afterOpened=new Fe,this._onAction=new Fe,this._dismissedByAction=!1,this.containerInstance=r,r._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(r){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(r,zHe))}_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 jHe=(()=>{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)(U(P$),U(Use))},n.\u0275cmp=wn({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&&(b(0,"span",0),L(1),y(),O(2,VHe,3,1,"div",1)),2&e&&(p(1),Xe(i.data.message),p(1),m("ngIf",i.hasAction))},dependencies:[rr,Aa],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 $He={snackBarState:Ku("state",[Al("void, hidden",uo({transform:"scale(0.8)",opacity:0})),Al("visible",uo({transform:"scale(1)",opacity:1})),Xs("* => visible",qa("150ms cubic-bezier(0, 0, 0.2, 1)")),Xs("* => void, * => hidden",qa("75ms cubic-bezier(0.4, 0.0, 1, 1)",uo({opacity:0})))])};let YHe=(()=>{class n extends GL{constructor(e,i,o,a,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=o,this._platform=a,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Fe,this._onExit=new Fe,this._onEnter=new Fe,this._animationState="void",this.attachDomPortal=l=>{this._assertNotAttached();const d=this._portalOutlet.attachDomPortal(l);return this._afterPortalAttached(),d},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:o}=e;if(("void"===o&&"void"!==i||"hidden"===o)&&this._completeExit(),"visible"===o){const a=this._onEnter;this._ngZone.run(()=>{a.next(),a.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(Oa(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(o=>e.classList.add(o)):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){var o;let a=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(a=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null===(o=a)||void 0===o||o.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(U(Zo),U(gr),U(Go),U(Au),U(WN))},n.\u0275dir=Wn({type:n,viewQuery:function(e,i){if(1&e&&jr(Av,7),2&e){let o;Ai(o=wi())&&(i._portalOutlet=o.first)}},features:[Nr]}),n})(),GHe=(()=>{class n extends YHe{_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 r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275cmp=wn({type:n,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&Fy("@state.done",function(a){return i.onAnimationEnd(a)}),2&e&&ir("@state",i._animationState)},features:[Nr],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(b(0,"div",0),O(1,UHe,0,0,"ng-template",1),y(),be(2,"div")),2&e&&(p(2),Tr("aria-live",i._live)("role",i._role))},dependencies:[Av],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:[$He.snackBarState]}}),n})(),zse=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[iw,iC,xs,wO,as,as]}),n})();const jse=new Pi("mat-snack-bar-default-options",{providedIn:"root",factory:function WHe(){return new WN}});let QHe=(()=>{class n{constructor(e,i,o,a,s,l){this._overlay=e,this._live=i,this._injector=o,this._breakpointObserver=a,this._parentSnackBar=s,this._defaultConfig=l,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="",o){const a={...this._defaultConfig,...o};return a.data={message:e,action:i},a.announcementMessage===e&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const a=ql.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:WN,useValue:i}]}),s=new nw(this.snackBarContainerComponent,i.viewContainerRef,a),l=e.attach(s);return l.instance.snackBarConfig=i,l.instance}_attach(e,i){const o={...new WN,...this._defaultConfig,...i},a=this._createOverlay(o),s=this._attachSnackBarContainer(a,o),l=new P$(s,a);if(e instanceof Na){const d=new nC(e,null,{$implicit:o.data,snackBarRef:l});l.instance=s.attachTemplatePortal(d)}else{const d=this._createInjector(o,l),f=new nw(e,void 0,d),C=s.attachComponentPortal(f);l.instance=C.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(ma(a.detachments())).subscribe(d=>{a.overlayElement.classList.toggle(this.handsetCssClass,d.matches)}),o.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(l,o),this._openedSnackBarRef=l,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 YS;i.direction=e.direction;let o=this._overlay.position().global();const a="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!a||"end"===e.horizontalPosition&&a,l=!s&&"center"!==e.horizontalPosition;return s?o.left("0"):l?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}_createInjector(e,i){return ql.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:P$,useValue:i},{provide:Use,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(en(Ff),en(yj),en(ql),en(WS),en(n,12),en(jse))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),O$=(()=>{class n extends QHe{constructor(e,i,o,a,s,l){super(e,i,o,a,s,l),this.simpleSnackBarComponent=jHe,this.snackBarContainerComponent=GHe,this.handsetCssClass="mat-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(en(Ff),en(yj),en(ql),en(WS),en(n,12),en(jse))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:zse}),n})();const k$=new Pi("MessageService");var a2=(()=>(function(n){n.OK="OK",n.RETRY="RETRY",n.DISMISS="DISMISS",n.DETAILS="DETAILS"}(a2||(a2={})),a2))();let KHe=(()=>{class n{constructor(e,i){this._snackBar=e,this._translate=i}getActionMessage(e){switch(e){case a2.RETRY:return this._translate.instant("messageActionRetry");case a2.DISMISS:return this._translate.instant("messageActionDismiss");case a2.DETAILS:return this._translate.instant("messageActionDeails");default:return this._translate.instant("messageActionOk")}}showMessage(e,i=a2.OK,o=1e4){const a=this.getActionMessage(i),s=this._snackBar.open(e,a,{duration:o}),l=new cS(1);return s.onAction().subscribe(()=>l.next()),l.asObservable().pipe(Of())}}return n.\u0275fac=function(e){return new(e||n)(en(O$),en(Ja))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),QN=(()=>{class n{constructor(e,i){this.sanitizer=e,this._httpClient=i,this.imagesBase64$=new Yn([]),this.fetchedImages=[]}generateBase64Image(e,i){var o=this;return dt(function*(){const a=new dp({Accept:"image/*","Cache-Control":"no-cache, no-store, max-age=0"});if(i){let s=yield o._httpClient.get(e,{headers:a,responseType:"text",withCredentials:!0}).toPromise();(new DOMParser).parseFromString(s,"image/svg+xml").querySelector("svg").hasAttribute("width")||(s=s.replace("{const d=o.imagesBase64$.value;return d[e]=o.sanitizer.bypassSecurityTrustUrl(l.result.toString()),o.imagesBase64$.next(d),o.sanitizer.bypassSecurityTrustUrl(l.result.toString())}}})()}getBase64(e,i){var o=this;return dt(function*(){const a=new dp({Accept:"image/*","Cache-Control":"no-cache, no-store, max-age=0"}),s=yield o._httpClient.get(e,{headers:a,responseType:"blob",withCredentials:!0}).toPromise(),l=new FileReader;l.readAsDataURL(s),l.onloadend=()=>{i(o.sanitizer.bypassSecurityTrustUrl(l.result.toString()))}})()}getBase64Image(e,i){return this.fetchedImages.find(o=>o===e)||(this.fetchedImages.push(e),this.generateBase64Image(e,i)),this.imagesBase64$}}return n.\u0275fac=function(e){return new(e||n)(en(mA),en(_g))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),s2=(()=>{class n{constructor(){this.reportRoute=new Yn(!1),this.currentRoute=this.reportRoute.asObservable(),this.routeTitle=""}changeRoute(e){this.reportRoute.next(e)}changeTitle(e){this.routeTitle=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),iT=(()=>{class n{constructor(){this.filterStatus=new Yn(!1),this.currentFilterStatus=this.filterStatus.asObservable(),this.userFilterMap=new Map}clearFilter(){this.userFilterMap.clear(),this.filterStatus.next(!0)}updateFilter(){this.filterStatus.next(!1)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),Gs=(()=>{class n{static toLocalDate(e){const o=new Date(e).getTimezoneOffset(),a=Date.parse(e);return new Date(a+60*o*1e3)}static dateToTimeInputFormat(e){return e.toISOString().split("T")[1].split(".")[0]}static dateToDateInputFormat(e){return e.toISOString().split("T")[0]}static dateToDatetimeInputFormat(e){return e.toISOString().slice(0,-1)}static dateIsBetweenInterval(e,i,o){return e>=i&&e<=o}static getDaysBetweenDates(e,i){const o=[],a=n.copyDateWithoutTime(e);for(;a.getTime()<=i.getTime();a.setDate(a.getDate()+1))o.push(a.toLocaleDateString());return o.push(a.toLocaleDateString()),o}static getNumberOfDaysBetweenDates(e,i){let o=0;for(const a=new Date(e.getTime());a<=i;a.setDate(a.getDate()+1))o++;return o}static copyDateWithoutTime(e){const i=new Date(e.getTime());return this.resetDateTime(i),i}static resetDateTime(e){e.setUTCHours(0,0,0,0)}static getDaysFromMilliseconds(e){return Math.round(e/864e5)}static getCurrentYear(){return(new Date).getFullYear()}static getCurrentDayOfTheMonth(){return(new Date).getDate()}static createUTCDateByGMTDate(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))}static now(){return n.createUTCDateByGMTDate(new Date)}static checkIfDateIsCurrentDay(e){return this.getCurrentDayOfTheMonth()===e.getUTCDate()}static setUTCDateToLocale(e){return e.setMonth(e.getUTCMonth(),e.getUTCDate()),e.setFullYear(e.getUTCFullYear()),e.setHours(e.getUTCHours(),e.getUTCMinutes()),e}static setLocaleDateToUTC(e){return e.setUTCMonth(e.getMonth(),e.getDate()),e.setUTCFullYear(e.getFullYear()),e.setUTCHours(e.getHours(),e.getMinutes()),e}static getCurrentDateTimestamp(){const e=new Date;return`${this.getCurrentYear()}-${`${e.getMonth()+1}`.padStart(2,"0")}-${`${e.getDate()}`.padStart(2,"0")} ${`${e.getHours()}`.padStart(2,"0")}.${`${e.getMinutes()}`.padStart(2,"0")}.${`${e.getSeconds()}`.padStart(2,"0")}`}static formatStringToDate(e){return`${e.substr(0,4)}-${e.substr(4,2)}-${e.substr(6,2)}T${e.substr(9,2)}:${e.substr(11,2)}:${e.substr(13,2)}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})();class Ra{constructor(r,e,i,o,a){this._itemsService=r,this._filterService=e,this._companyService=i,this._gtag=o,this._configurationStore=a,this._collections=new Yn([]),this._totalCollections=new Yn(new e$(0,0,0)),this._collectionsFilter=new Yn([]),this._brands=new Yn([]),this._users=new Yn([]),this._currentUser=new Yn(null),this._notifications$=new Yn([]),this._notificationsCount$=new Yn(0),this._shapes=new Yn([]),this._newCollection=new Yn(null),this._itemPickerCollection=new Yn(void 0),this.paginatedCollections$=new Yn(null),this.collectionPagination={offset:0,limit:20,pageCount:0},this.notificationPagination={limit:30,page:0},this.offsetStatus=0,this.loadingMore$=new fs(!1),this.orderCollectionsDesc=!0,this.currentUser=this._currentUser.pipe(Fo(s=>!!s)),this.collections=[],this.collectionOrdenation=this._configurationStore.getCollectionOverviewClassifyBy()||"Name"}getPickerCollectionComplete(r){return this._itemsService.getDestinyPickerCollectionCompleteById(r)}updateCollections(r){this._collections.next(r)}load(){var r=this;return dt(function*(){try{r._currentUser.next(yield r._itemsService.getCurrentUser()),r._itemsService.getShapes().then(e=>r._shapes.next(e)),r._itemsService.getBrands().then(e=>r._brands.next(e))}catch(e){throw e instanceof oC&&e.networkError.hasOwnProperty("result")?e.networkError.result:e}})()}getCollectionById(r){return this._collections.getValue().find(i=>i.id===r)}getBrandsObservable(){return this._brands.value.length||this._itemsService.getBrands().then(r=>this._brands.next(r)),this._brands.asObservable()}getShapesObservable(){return this._shapes.value.length||this._itemsService.getShapes().then(r=>this._shapes.next(r)),this._shapes.asObservable()}getNotifications(r,e=!1){r&&this.notificationPagination.page>0||(e?this._sincNotification():this._initAllNotifications(this.notificationPagination.limit*this.notificationPagination.page,this.notificationPagination.limit),this.notificationPagination.page++)}getNotificationsObservable(){return this._notifications$.asObservable()}getUnreadNotificationCount(){this._itemsService.getUnreadNotifications().then(r=>{this._notificationsCount$.next(r)})}getUnreadNotificationCountObservable(){return this._notificationsCount$.asObservable()}getUsersObservable(){return this._users.value.length||this._companyService.getAllUsers().then(r=>this._users.next(r)),this._users.asObservable()}getCollectionDashboard(r){return this._companyService.getCollectionDashboard(r)}getCheckCollectionsExistsInCompany(){var r=this;return dt(function*(){let e,i;const o=yield r._itemsService.getCheckCollectionsExistsInCompany();return e=o.hasCollections,i=o.hasActiveCollections,o})()}getCollectionsObservable(){return this._collections.value.length||this.getCollectionsAsync(),this._collections.asObservable()}getTotalCollectionObservable(){return this.getTotalCollectionAsync(),this._totalCollections.asObservable()}getPageCollectionsObservable(r){return this._collections.value.length||this.getPageCollectionsAsync(r),this._collections.asObservable()}getTotalCollectionAsync(){var r=this;return dt(function*(){const e=yield r.getTotalCollectionStatus();return r._totalCollections.next(e)})()}getPageCollectionsAsync(r){var e=this;return dt(function*(){const i=yield e.getInitialPageCollections(r);return e.collections.push(...i),e._collections.next(e.collections),e._collections.value})()}getSimpleCollectionsObservable(){return this._collections.asObservable()}getCurrentUserObservable(){return this._currentUser.pipe(Fo(r=>!!r))}_replaceCollection(r,e){const i=this._collections.getValue();let o=i.findIndex(s=>s.id===r);-1===o&&(o=i.length,i.push(null));const a=e(r_.cloneDeep(i[o]));i[o]&&(a.group=i[o].group),i[o]=a,this._collections.next(i)}_replaceCollectionFilter(r,e){const i=this._collectionsFilter.getValue();let o=i.findIndex(s=>s.id===r);-1===o&&(o=i.length,i.push(null));const a=e(r_.cloneDeep(i[o]));i[o]&&(a.group=i[o].group),i[o]=a,this._collectionsFilter.next(i)}_changeCollection(r,e){this._replaceCollection(r,i=>(e(i),i))}getCollectionObservable(r){return this.getCollectionsObservable().pipe(Ct(e=>e.find(i=>i.id===r)))}getSimpleCollectionObservable(r){return this.getSimpleCollectionsObservable().pipe(Ct(e=>e.find(i=>i.id===r)))}getCollection(r){var e=this;return dt(function*(){e._shapes.value.length||e._shapes.next(yield e._itemsService.getShapes());const o=(yield e._itemsService.getItems([r]))[0],a=e._fillCollectionItems(o);return e.addCollection(a),o})()}getCollections(r){var e=this;return dt(function*(){return e._shapes.value.length||e._shapes.next(yield e._itemsService.getShapes()),(yield e._itemsService.getItems(r)).map(o=>{const a=e._fillCollectionItems(o);return e._replaceCollection(o.id,s=>a),a})})()}getCollectionsWithReport(r){var e=this;return dt(function*(){return e._shapes.value.length||e._shapes.next(yield e._itemsService.getShapes()),(yield e._itemsService.getItemsWithReport(r)).map(o=>{const a=e._fillCollectionItems(o);return e._replaceCollection(o.id,s=>a),a})})()}getCollectionsFilter(r){var e=this;return dt(function*(){return e._shapes.value.length||e._shapes.next(yield e._itemsService.getShapes()),(yield e._itemsService.getItems(r)).map(o=>{const a=e._fillCollectionItems(o);return e._replaceCollectionFilter(o.id,s=>a),a})})()}_fillCollectionItems(r){const e=r;return e.subCollections=r.subCollections.map(i=>(i.subCategories.forEach(o=>{o.items.forEach(a=>this.fillItemShape(a))}),i)),e}fillItem(r){var e=this;return dt(function*(){const i=e.fillItemShape(r),o=yield e.fillItemVariants(i),a=yield e.fillVariantParentItem(o);try{return yield e.fillItemSource(a)}catch(s){if(s.message===Op.ITEM_NOT_FOUND)return a;throw s}})()}fillItemShape(r){const e=r;return e.shape=this._shapes.getValue().find(i=>i.id===e.shapeId),e}fillItemSource(r){var e=this;return dt(function*(){const i=r;return i.sourceItemId&&typeof r.sourceItem>"u"&&(i.sourceItem=yield e.getItem(i.sourceItemId)),i})()}fillVariantParentItem(r){var e=this;return dt(function*(){const i=r;return i.variantParent&&!i.variantParent.name&&(i.variantParent=yield e.getItem(i.variantParent.id)),i})()}fillItemVariants(r){var e=this;return dt(function*(){const i=r;return i.variants=yield Promise.all(i.variants.map(function(){var o=dt(function*(a){return a.name?a:yield e.getItem(a.id)});return function(a){return o.apply(this,arguments)}}())),i})()}getCategoryCollection(r){var e=this;return dt(function*(){return e.getCategoryCollectionById(r.id)})()}getCategoryCollectionById(r){var e=this;return dt(function*(){return e._collections.getValue().find(o=>o.subCollections&&-1!==o.subCollections.findIndex(a=>a.subCategories&&-1!==a.subCategories.findIndex(s=>s.id===r)))})()}_getCategoryById(r,e=null){var i=this;return dt(function*(){return e||(e=yield i.getCategoryCollectionById(r)),e.subCollections.map(o=>o.allSubCategories().find(a=>a.id===r)).filter(o=>!!o).firstOrDefault()})()}getItemCollection(r){return this.getCollectionByItemid(r.id)}getCollectionByItemid(r){const e=new cS(1);return this.getSimpleCollectionsObservable().subscribe(i=>{const o=i.find(a=>a.allItems().find(s=>s&&s.id===r));typeof o<"u"&&e.next(o)}),e.asObservable()}getCurrentCollection(){return this.getSimpleCollectionsObservable().pipe(Ct(r=>r.firstOrDefault()))}getCollectionByItemName(r){var e=this;return dt(function*(){return yield e._itemsService.getCollectionByItemName(r)})()}getCollectionsAsync(r){var e=this;return dt(function*(){e.getInitialCollections(r).then(i=>e._collections.next(i)),e.getMoreCollectionsAsync(r)})()}getInitialPageCollections(r){var e=this;return dt(function*(){const i=yield e._itemsService.getPaginatedCollections(r,e.offsetStatus,e.collectionPagination.limit,e.collectionOrdenation,e.orderCollectionsDesc);return e._updateCollectionPagination(e.offsetStatus,i.limit,i.pageCount),e.paginatedCollections$.next(i),e.loadingMore$.next(!1),i.collections})()}updatePaginatedCollectionIfStepModificated(r){"Lastmodified"===this.collectionOrdenation&&this.addCollectionIfStepModificatedFirst(r)}addCollection(r){let e=[];if(e=this._collections.value.filter(i=>i.id!==r.id),e.length>0){const i=[r,...e];return this._collections.next(i)}return this._collections.next([r])}addCollectionIfStepModificatedFirst(r){let e=[];if(this._collections.value[0].id!==r.id){e=this._collections.value.filter(o=>o.id!==r.id);const i=[r,...e];return this._collections.next(i)}return this._collections}getInitialCollections(r){var e=this;return dt(function*(){const i=yield e._itemsService.getPaginatedCollections(r,e.collectionPagination.offset,e.collectionPagination.limit,e.collectionOrdenation);return e._updateCollectionPagination(i.offset,i.limit,i.pageCount),e.paginatedCollections$.next(i),i.collections})()}getTotalCollectionStatus(){var r=this;return dt(function*(){const e=yield r._itemsService.getTotalCollectionStatus();return new e$(e.active,e.archive,e.future)})()}getHomeCollectionsByLastMoficated(r,e){var i=this;return dt(function*(){return yield i._itemsService.getPaginatedCollections(e,r,10,"Lastmodified")})()}getAllCollectionsOnPage(r){var e=this;return dt(function*(){yield e._itemsService.getShapes().then(o=>e._shapes.next(o));const i=yield e._itemsService.getPaginatedCollections(r,0,9999,e.collectionOrdenation);return e._updateCollectionPagination(i.offset,i.limit,i.pageCount),i.collections.forEach(o=>e._replaceCollection(o.id,a=>e._fillCollectionItems(o))),e.paginatedCollections$.next(i),i.collections})()}setOrdenation(r){var e=this;return dt(function*(){e.collectionOrdenation=r})()}resetCollections(){this._collections.next([]),this.resetCollectionPagination()}resetCollectionPagination(){this.offsetStatus=0,this.collections=[],this.collectionPagination.offset=0,this.collectionPagination.limit=this.collectionPagination.limit,this.collectionPagination.pageCount=0,this.paginatedCollections$.next(null)}_updateCollectionPagination(r,e,i){this.collectionPagination.offset=r+e,this.collectionPagination.limit=e,this.collectionPagination.pageCount=i||this.collectionPagination.pageCount}getMoreCollectionsAsync(r){this._itemsService.getPaginatedCollections(r,this.collectionPagination.offset,this.collectionPagination.limit,this.collectionOrdenation).then(e=>{this._updateCollectionPagination(e.offset,e.limit,e.pageCount);const i=this._collections.value;for(const o of e.collections)i.find(a=>a.id===o.id)||i.push(o);this._collections.next(i),this._isLastPage(this.collectionPagination)||this.getMoreCollectionsAsync(r),this.paginatedCollections$.next(e)})}_isLastPage(r){return r.offset>=r.pageCount*r.limit}getCollectionsSummary(){var r=this;return dt(function*(){return yield r._itemsService.getCollectionsSummary()})()}populateSubCollectionFromFile(r,e){var i=this;return dt(function*(){yield i._itemsService.populateSubCollectionFromFile(r.id,e),yield i.getCollection(r.collection.id)})()}updateCollection(r){var e=this;return dt(function*(){const i=yield e._itemsService.changeCollection(r);return e._replaceCollection(r.id,o=>i),e._gtag.sendEvent("collection_changed"),i})()}createCollection(r){var e=this;return dt(function*(){const i=yield e._itemsService.createCollection(r);return e._collections.next(e._collections.getValue().concat(i)),e._gtag.sendEvent("collection_created"),i})()}createItems(r,e,i){var o=this;return dt(function*(){const a=yield o._itemsService.createBulkItems(r,e[0],i);return o._changeCollection(r.collection.id,s=>{const d=s.subCollections.find(f=>f.id===r.subCollectionReference).allSubCategories().find(f=>f.id===r.id);d.items=d.items.concat(...a)}),new Promise(s=>{s(a)})})()}createSubCollection(r){var e=this;return dt(function*(){const i=yield e._itemsService.createSubCollection(r);return e._changeCollection(r.collection.id,o=>o.subCollections=o.subCollections.concat(i)),e._gtag.sendEvent("sub_collection_created"),i})()}updateMultipleItemSteps(r,e,i,o,a,s,l=0){var d=this;return dt(function*(){yield d.updateItemsStep(r,e.map(f=>f.name),i,o,a,s,l)})()}updateItemsStep(r,e,i,o,a,s,l=0){var d=this;return dt(function*(){const f=yield d._itemsService.updateItemsStep(r,e,i,o,a,s,l),C=d._collections.getValue();return r.forEach(M=>{const T=C.map(F=>F.allItems().find(pe=>pe&&pe.id===M)).find(F=>void 0!==F);f.filter(F=>F.itemId===T.id).forEach(F=>{d._insertOrUpdateItemStep(T,F),d._updateItemInCollection(T)})}),d._gtag.sendEvent("item_step_updated"),f})()}updateItemStep(r,e,i,o,a,s,l,d,f=0,C=null){var M=this;return dt(function*(){const T=yield M._itemsService.updateItemStep(r,e,i,o,a,s,l,d,f,C),pe=M._collections.getValue().map(ce=>ce.allItems().find(fe=>fe&&fe.id===r.itemId)).find(ce=>void 0!==ce);if(M._insertOrUpdateItemStep(pe,T),o&&a){const ce=T.files[T.files.length-1];pe.coverUrl=ce.previewReference?ce.previewReference:ce.reference,pe.coverThumbUrl=ce.thumbReference}return M._updateItemInCollection(pe),M._gtag.sendEvent("item_step_updated"),T})()}updateItemStepGridPosition(r,e,i){var o=this;return dt(function*(){const a=o._collections.getValue().find(s=>s.id===e);a.subCollections.map(s=>{s.collection.id===e&&s.subCategories.map(l=>l.items.map(d=>d.steps.filter(f=>f.status===wl.review||f.status===wl.incomplete).map(f=>{f.id===r.id&&(f.position=r.position),f.id===i.id&&(f.position=i.position)})))}),o._collections.next([a]),yield o._itemsService.updateItemStepGridPosition(r,i)})()}updateDefaultPositionOfItems(r){var e=this;return dt(function*(){(yield e._itemsService.updateDefaultPositionOfItem(r))&&(yield e.getCollection(r))})()}deleteSubCollection(r){var e=this;return dt(function*(){yield e._itemsService.deleteSubCollection(r.id),e._changeCollection(r.collection.id,i=>{const o=i.subCollections.findIndex(a=>a.id===r.id);i.subCollections.splice(o,1)})})()}updateSubCollection(r){var e=this;return dt(function*(){return yield e._itemsService.updateSubCollection(r)})()}setSubCollectionsItemsNumbers(r){var e=this;return dt(function*(){yield e._itemsService.setSubCollectionsItemsNumbers(r)})()}setCollectionBudgetAndTargetValue(r,e,i,o){var a=this;return dt(function*(){yield a._itemsService.setCollectionBudgetAndTargetValue(r,e,i,o),a._changeCollection(r,s=>{s.budget=e,s.targetPrice=i,s.currency=o}),a._gtag.sendEvent("collection_budget_and_target_changed")})()}setCollectionStatus(r,e){var i=this;return dt(function*(){const o=yield i._itemsService.setCollectionStatus(r,e);i._replaceCollection(r,a=>o),i._gtag.sendEvent("collection_status_changed",{new_status:e}),i.getTotalCollectionObservable()})()}setSubCollectionStepSchedule(r,e){var i=this;return dt(function*(){yield i._itemsService.setSubCollectionStepSchedule(r,e);const o=i._collections.getValue(),a=o.map(l=>l.subCollections).reduce((l,d)=>l.concat(d),[]).find(l=>l.id===r);let s=a.stepSchedule.find(l=>l.stepName===e.stepName);void 0===s&&(s=e,a.stepSchedule=a.stepSchedule.concat(e)),s.deadline=Gs.setUTCDateToLocale(e.deadline),i._collections.next(o),i._gtag.sendEvent("sub_collection_step_schedule_changed")})()}setItemProperties(r,e){var i=this;return dt(function*(){const o=yield i._itemsService.setItemProperties(r,e),a=i._collections.getValue(),s=a.map(l=>l.allItems().find(d=>d.id===r)).find(l=>void 0!==l);o.getAllProperties().forEach(l=>s.setProperty(l[0],l[1])),i._collections.next(a)})()}_insertOrUpdateItemStep(r,e){const i=r.steps.findIndex(o=>o.id===e.id);i<0?r.steps=r.steps.concat(e):r.steps[i]=e}assignItem(r,e){var i=this;return dt(function*(){const o=yield i._itemsService.assignItem(r,e),a=yield i.fillItemShape(o);return i._updateItemInCollection(a),a})()}unassignItem(r){var e=this;return dt(function*(){const i=yield e._itemsService.unassignItem(r),o=yield e.fillItemShape(i);return e._updateItemInCollection(o),o})()}createMix(r,e){var i=this;return dt(function*(){const o=yield i._itemsService.createCategory(r,e);i._changeCollection(r.collection.id,a=>{const s=a.subCollections.find(l=>l.id===r.id);s.subCategories=s.subCategories.concat(o)})})()}renameMix(r,e){var i=this;return dt(function*(){yield i._itemsService.renameCategory(e);const o=r.subCategories.findIndex(a=>a.id===e.id);return r.subCategories.splice(o,1,e),i._changeCollection(r.collection.id,a=>{const s=a.subCollections.findIndex(l=>l.id===r.id);a.subCollections.splice(s,1,r)}),e})()}deleteItem(r){var e=this;return dt(function*(){yield e._itemsService.deleteItem(r.id);const i=e._collections.getValue().find(o=>void 0!==o.allItems().find(a=>a&&a.id===r.id));e._changeCollection(i.id,o=>{const a=o.subCollections.map(l=>l.searchItemParent(r.id)).find(l=>null!==l),s=a.allItems().filter(l=>(r.variants||[]).find(d=>d.id===l.id));a.items=a.items.filter(l=>l.id!==r.id&&-1===s.findIndex(d=>l.id===d.id)),e._changeItemGridToBiggerPosition(r,a,999999999),s.forEach(l=>e._changeItemGridToBiggerPosition(l,a,999999999))})})()}deleteCategory(r,e){var i=this;return dt(function*(){yield i._itemsService.deleteCategory(r,e),i._changeCollection(r.collection.id,o=>{const a=o.subCollections.find(l=>l.id===r.id),s=a.subCategories.findIndex(l=>l.id===e.id);a.subCategories.splice(s,1)})})()}updateItem(r,e){var i=this;return dt(function*(){const o=i.fillItemShape(yield i._itemsService.updateItem(r,e));return i._updateItemInCollection(o),o})()}_changeCategoryItemToPosition(r,e,i,o){e.allItems().filter(a=>a.position>=r.position).forEach(a=>a.position-=1),i.allItems().filter(a=>a.position>=o).forEach(a=>a.position+=1),e.items.splice(e.items.findIndex(a=>a.id===r.id),1),i.items.push(r),Array.isArray(r.variants)&&r.variants.forEach((a,s)=>{const l=o+s+1,d=e.allItems().find(f=>f.id===a.id);this._changeCategoryItemToPosition(d,e,i,l),d.position=l})}_changeItemGridToSmallerPosition(r,e,i){e.allItems().filter(o=>o.position<=r.position&&o.position>=i).forEach(o=>o.position+=1)}_changeItemGridToBiggerPosition(r,e,i){e.allItems().filter(o=>o.position>=r.position&&o.position<=i).forEach(o=>o.position-=1)}_findCategoryForItemByIdInCollection(r,e){return e.subCollections.map(i=>i.subCategories.find(o=>o.items.find(a=>a.id===r))).filter(i=>!!i).firstOrDefault()}currentUserAsPromise(){return new Promise(r=>{this.getCurrentUserObservable().subscribe(e=>r(e))})}updateItemGrid(r,e,i,o=null){var a=this;return dt(function*(){a._collections.pipe(Ct(s=>s.find(l=>l.id===r)),Oa(1)).subscribe(s=>{a._changeCollection(s.id,function(){var l=dt(function*(d){const f=a._findCategoryForItemByIdInCollection(e,d),C=f.allItems().find(T=>T.id===e);if(null!==o){const T=yield a._getCategoryById(o,d);a._changeCategoryItemToPosition(C,f,T,i)}if(C.position===i)return;C.position>i?a._changeItemGridToSmallerPosition(C,f,i):a._changeItemGridToBiggerPosition(C,f,i),C.position=i;const M=o||f.id;yield a._itemsService.updateItemGrid(C,M,s)});return function(d){return l.apply(this,arguments)}}())})})()}setItemApproval(r,e){var i=this;return dt(function*(){const o=yield i._itemsService.setItemApproval(r.id,e),a=i.fillItemShape(o);return i._updateItemInCollection(a),a})()}rejectItem(r,e){var i=this;return dt(function*(){const o=e?e.id:null,a=yield i._itemsService.rejectItem(r.id,o),s=i.fillItemShape(a);return i._updateItemInCollection(s),s})()}onItemChanged(r){var e=this;const i=this._itemsService.onItemChanged(r);return i.subscribe(function(){var o=dt(function*(a){const s=e.fillItemShape(a);e._updateItemInCollection(s)});return function(a){return o.apply(this,arguments)}}()),i}_populateNotificationMessage(r){const e=r.message;e instanceof CF&&(e.item$.getValue()||this._getItemForMentionedInCommentNotification(e)),e instanceof AF&&(e.reminder$.getValue()||this._getReminderForReminderCalendarMessageNotification(r)),e instanceof AN&&(e.item$.getValue()||this._getItemForResponsibleForItemMessageNotification(e)),e instanceof wN&&(e.itemStep$.getValue()||this._getItemForResponsibleForItemStepMessageNotification(e))}_getItemForMentionedInCommentNotification(r){this._itemsService.getItem(`${r.itemId}`).then(e=>r.item$.next(this.fillItemShape(e)))}_getReminderForReminderCalendarMessageNotification(r){const e=r.message;this._itemsService.getCollectionCalendarEvent(`${e.reminderId}`).then(i=>{const o=i;r.time=o.date,e.reminder$.next(o)})}_getItemForResponsibleForItemMessageNotification(r){this._itemsService.getItem(`${r.itemId}`).then(e=>r.item$.next(this.fillItemShape(e)))}_getItemForResponsibleForItemStepMessageNotification(r){const e=`${r.itemStepId}`;this._itemsService.getItemOfItemStep(e).then(i=>{r.item$.next(this.fillItemShape(i)),r.itemStep$.next(i.steps.find(o=>o.id===e))})}_removeNotification(r,e){this._notifications$.next(this._notifications$.value.filter(i=>!(i.message instanceof r&&e(i.message))))}addNotificationOnList(r){if(this._getCanAccess(r)){const e=[...this._notifications$.value];e.unshift(r),this._notifications$.next(e);let i=this._notificationsCount$.value;i++,this._notificationsCount$.next(i)}}removeNotificationOnList(r){if(this._getCanAccess(r)){let e=[...this._notifications$.value];e=e.filter(o=>Number(o.id.toString())!==r.id),this._notifications$.next(e);let i=this._notificationsCount$.value;i--,this._notificationsCount$.next(i)}}_userCanAccessNotification(r){const e=this._currentUser.value;if(e.role!==ba.provider)return Wo(!0);if(r.message instanceof CF){const i=`${r.message.itemId}`;return this.getCollectionByItemid(i).pipe(Of(),Ct(o=>{const a=o.allItems().find(s=>s.id===i);return e.canAccessItem(a)}))}return Wo(!1)}_getCanAccess(r){var e=this;return dt(function*(){return yield e._userCanAccessNotification(r).toPromise()})()}_sincNotification(){this._notifications$.subscribe(r=>r.forEach(e=>this._populateNotificationMessage(e))),this._itemsService.getAllNotifications(0,this.notificationPagination.limit).then(r=>{this._notifications$.next(r.filter(e=>this._getCanAccess(e)))})}_initAllNotifications(r,e){this._notifications$.subscribe(i=>i.forEach(o=>this._populateNotificationMessage(o))),this._itemsService.getAllNotifications(r,e).then(i=>{this._notifications$.next(this._notifications$.value.concat(i.filter(o=>this._getCanAccess(o))))})}updateNotificationAsRead(r){var e=this;return dt(function*(){const i=yield e._itemsService.updateNotificationAsRead(r),o=e._notifications$.value;return o.forEach(a=>{a.id===i.id&&!1===a.read&&(a.read=!0)}),e._notifications$.next(o),e.getUnreadNotificationCount(),i})()}updateNotificationsAsRead(){var r=this;return dt(function*(){yield r._itemsService.updateNotificationsAsRead();const e=r._notifications$.value;e.forEach(i=>{i.read=!0}),r._notifications$.next(e),r._notificationsCount$.next(0)})()}getItem(r){var e=this;return dt(function*(){const i=e.fillItemShape(yield e.fetchItem(r));return e._updateItemInCollection(i),i})()}fetchItem(r){var e=this;return dt(function*(){return yield e._itemsService.getItem(r)})()}_updateItemInCollection(r){const e=this._collections.getValue().find(i=>void 0!==i.allItems().find(o=>o&&o.id===r.id));e&&this._changeCollection(e.id,i=>{const o=i.allItems().find(a=>a.id===r.id);Object.assign(o,r)})}createItemVariant(r,e,i=!1){var o=this;return dt(function*(){const a=yield o._itemsService.createItemVariant(r.id,e,i),s=o.fillItemShape(a);return r.variants.push(a),o.getItemCollection(r).pipe(Oa(1)).subscribe(l=>{o._changeCollection(l.id,d=>{d.subCollections.find(M=>M.allItems().find(T=>T.id===r.id)).allSubCategories().find(M=>M.allItems().find(T=>T.id===r.id)).items.push(s)})}),s})()}copyItem(r,e,i,o){var a=this;return dt(function*(){const s=yield a._itemsService.copyItem(r,e.id,i.subCollectionReference,i.id,o),l=a.fillItemShape(s),d=(yield Promise.all(l.variants.map(f=>a.getItem(f.id)))).map(f=>a.fillItemShape(f));return a._changeCollection(i.collection.id,f=>{null!==f.subCollections&&f.subCollections.find(T=>T.id===i.subCollectionReference).allSubCategories().find(T=>T.id===i.id).items.push(l,...d)}),l})()}moveItem(r,e){var i=this;return dt(function*(){const o=yield i.getItemCollection(r).pipe(Oa(1)).toPromise(),a=i._findCategoryForItemByIdInCollection(r.id,o);if(a.id===e.id)return r;const s=yield i.getCategoryCollection(e),l=a.allItems().filter(C=>(r.variants||[]).find(M=>M.id===C.id));i._changeCollection(o.id,function(){var C=dt(function*(M){const T=i._findCategoryForItemByIdInCollection(r.id,M);i._changeItemGridToBiggerPosition(r,T,T.allItems().length+1),l.forEach(F=>{const pe=T.allItems().find(ce=>ce.id===F.id);i._changeItemGridToBiggerPosition(pe,T,T.allItems().length+1)}),T.items=T.items.filter(F=>F.id!==r.id&&-1===l.findIndex(pe=>pe.id===F.id))});return function(M){return C.apply(this,arguments)}}());const d=yield i._itemsService.moveItem(r.id,e.id),f=i.fillItemShape(d);return s&&i._changeCollection(s.id,function(){var C=dt(function*(M){const T=yield i._getCategoryById(e.id,M);l.forEach((F,pe)=>F.position=f.position+pe+1),T.items.push(f,...l)});return function(M){return C.apply(this,arguments)}}()),f})()}addItemComment(r,e){var i=this;return dt(function*(){const o=yield i._itemsService.addComment(r.id,e);return r.comments.push(o),i._updateItemInCollection(r),o})()}updateItemComment(r,e){var i=this;return dt(function*(){const o=yield i._itemsService.updateComment(r.id,e),a=r.comments.findIndex(s=>s.id===e.id);r.comments.splice(a,1,o),i._updateItemInCollection(r)})()}resolveItemComment(r,e){var i=this;return dt(function*(){const o=yield i._itemsService.resolveComment(r.id,e),a=r.comments.findIndex(s=>s.id===e.id);r.comments.splice(a,1,o),i._updateItemInCollection(r)})()}reopenItemComment(r,e){var i=this;return dt(function*(){const o=yield i._itemsService.reopenComment(r.id,e),a=r.comments.findIndex(s=>s.id===e.id);r.comments.splice(a,1,o),i._updateItemInCollection(r)})()}deleteItemComment(r,e){var i=this;return dt(function*(){yield i._itemsService.deleteComment(r.id,e);const o=r.comments.findIndex(a=>a.id===e.id);r.comments.splice(o,1),i._updateItemInCollection(r)})()}getCollectionCalendar(r){var e=this;return dt(function*(){const i=yield e._itemsService.getCollectionCalendar(r.id);return i.forEach(o=>{o instanceof aC&&Gs.setLocaleDateToUTC(o.date),o instanceof ow&&(Gs.setLocaleDateToUTC(o.start),o.end&&Gs.setLocaleDateToUTC(o.end))}),i})()}getCollectionCalendarEvent(r){var e=this;return dt(function*(){const i=yield e._itemsService.getCollectionCalendarEvent(r);return i instanceof aC&&Gs.setLocaleDateToUTC(i.date),i})()}deleteEvent(r){var e=this;return dt(function*(){return yield e._itemsService.deleteEvent(r)})()}deleteReminder(r){var e=this;return dt(function*(){const i=yield e._itemsService.deleteReminder(r);return e._removeNotification(AF,o=>`${o.reminderId}`===i.id),i})()}addReminder(r){var e=this;return dt(function*(){Gs.setUTCDateToLocale(r.date);const i=yield e._itemsService.addReminder(r);return Gs.setLocaleDateToUTC(i.date),i})()}addEvent(r){var e=this;return dt(function*(){Gs.setUTCDateToLocale(r.start),r.end&&Gs.setUTCDateToLocale(r.end);const i=yield e._itemsService.addEvent(r);return Gs.setLocaleDateToUTC(i.start),i.end&&Gs.setLocaleDateToUTC(i.end),i})()}updateReminder(r){var e=this;return dt(function*(){Gs.setUTCDateToLocale(r.date);const i=yield e._itemsService.updateReminder(r);return i&&Gs.setLocaleDateToUTC(i.date),i})()}updateEvent(r){var e=this;return dt(function*(){const i=yield e._itemsService.updateEvent(r);return Gs.setLocaleDateToUTC(i.start),i.end&&Gs.setLocaleDateToUTC(i.end),i})()}updateCatalog(r){var e=this;return dt(function*(){yield e._itemsService.updateCatalog(r)})()}createItem(r,e){var i=this;return dt(function*(){return yield i._itemsService.createItem(r,e)})()}getItemComments(r){var e=this;return dt(function*(){return yield e._itemsService.getItemComments(r)})()}itemFileLockLegacy(r,e){var i=this;return dt(function*(){return yield i._itemsService.itemFileLockLegacy(r,e)})()}getItemStatement(){var r=this;return dt(function*(){return yield r._itemsService.getItemStatement()})()}getCollectionIdByNotificationId(r){var e=this;return dt(function*(){return yield e._itemsService.getCollectionIdByNotificationId(r)})()}itemFileUnlockLegacy(r,e){var i=this;return dt(function*(){return yield i._itemsService.itemFileUnlockLegacy(r,e)})()}itemFileBlockStatus(r,e,i){var o=this;return dt(function*(){return yield o._itemsService.itemFileBlockStatus(r,e,i)})()}get activeUsers(){return this.getUsersObservable().pipe(Ct(r=>r.filter(e=>e.name&&!e.blocked)))}setNewCollection(r){this._newCollection.next(r)}getNewCollection(){return this._newCollection.asObservable()}clearNewCollection(){this._newCollection.next(null)}checkFileHasAlreadyBeenVersioned(r,e,i){var o=this;return dt(function*(){return yield o._itemsService.checkFileHasAlreadyBeenVersioned(r,e,i)})()}getFilesByItemId(r){var e=this;return dt(function*(){return yield e._itemsService.getFilesByItemId(r)})()}getHistories(r,e,i,o,a){var s=this;return dt(function*(){return yield s._itemsService.getPaginatedHistory(r,e,i,o,a)})()}createHistory(r){var e=this;return dt(function*(){return yield e._itemsService.createHistory(r)})()}getReport(r){var e=this;return dt(function*(){return yield e._itemsService.getReport(r)})()}clearCacheReport(r){var e=this;return dt(function*(){return yield e._itemsService.clearCacheReport(r)})()}}Ra.\u0275fac=function(r){return new(r||Ra)(en(mF),en(qj),en(mN),en(_$),en(hs))},Ra.\u0275prov=Dn({token:Ra,factory:Ra.\u0275fac}),oU([function qHe(n){return function(r,e,i){const o=i.value;return i.value=dt(function*(...a){let s=!1;const l=GN.getErrorService(),d=GN.getRequestController().getNextRequestId();l.subscribeErrorHandler(n,()=>s=!0,d);try{const f=yield o.apply(this,a);return l.unsubscribeErrorHandler(n,d),f}catch(f){throw s?new Error(n):f}}),i}}(Op.ITEM_NOT_FOUND)],Ra.prototype,"fillItemSource",null);let $se=(()=>{class n{constructor(e,i){this._configStore=e,this._itemsStore=i,this._currentUser=new Yn(null),this._currentCollection=null,this.collectionItems=[],this.translate="",this._configStore.allStepReviewReasons$.subscribe(o=>this.companyReviewReasons=o),this._configStore.allStepPendencyReasons$.subscribe(o=>this.companyPendencyReasons=o),this._configStore.allItemRejectionReasons$.subscribe(o=>this.companyRejectionReasons=o),this._itemsStore.getCurrentUserObservable().subscribe(o=>this._currentUser.next(o))}setCollectionId(e){this._currentCollection=this._itemsStore.getCollectionById(e),this._currentCollection.subCollections.forEach(i=>i.subCategories.forEach(o=>this.collectionItems.push(...o.items)))}getTranslationKey(e){if(this.setCollectionId(e.collectionId),e.type===Lb.Item){if(e.subType===Dr.None&&e.action===Or.Create)return"historyCreateItemMix";if(e.subType===Dr.Comments&&e.action===Or.Create)return"historyCollectionCommentAddedEventText";if(e.subType===Dr.Comments&&e.action===Or.Update)return"historyCollectionCommentUpdatedEventText";if(e.subType===Dr.Comments&&e.action===Or.Delete)return"historyCollectionCommentDeletedEventText";if(e.subType===Dr.Comment&&e.action===Or.Resolved)return"historyCollectionCommentResolvedEventText";if(e.subType===Dr.Comment&&e.action===Or.Reopened)return"historyCollectionCommentReopenedEventText";if(e.subType===Dr.Reject&&e.action===Or.Delete)return"historyCollectionItemRemoveRejectionEventText";if(e.subType===Dr.Reject&&e.action===Or.Create)return"historyCollectionItemRejectionAddedEventText";if(e.subType===Dr.Approved&&e.action===Or.Create)return"historyCollectionItemApprovedEventText";if(e.subType===Dr.Approved&&e.action===Or.Delete)return"historyCollectionItemRemoveApprovalEventText";if(e.subType===Dr.Files&&e.action===Or.Create&&e.oldAction)return"FileUploadEventText";if(e.subType===Dr.Files&&e.action===Or.Create&&!e.oldAction)return"historyCollectionFirstUploadedFileEventText";if(e.subType===Dr.Files&&e.action===Or.Update&&!e.oldAction)return"historyCollectionUpdateUploadedFileEventText";if(e.subType===Dr.ReplaceFile&&e.action===Or.Create)return"historyCollectionReplaceUploadedFileEventText";if(e.subType===Dr.Download&&e.action===Or.Create)return"historyCollectionDownloadUploadedFileEventText";if(e.subType===Dr.Shapes&&e.action===Or.Update)return"historyCollectionItemShapeUpdatedEventText";if(e.subType===Dr.Assigned&&e.action===Or.Create)return this.getItemAssignmentType(e);if(e.subType===Dr.Copying&&e.action===Or.Create)return this.getCopiedCreatedTextKey(e.sourceItemId);if(e.subType===Dr.Duplicating&&e.action===Or.Create)return this.getDuplicatedCreatedTextKey(e.sourceItemId);if(e.subType===Dr.Variant&&e.action===Or.Added)return this.getVariantCreatedTextKey(e.variantId);if(e.subType===Dr.Variant&&e.action===Or.Create)return this.getCreatedAsVariantTextKey(e.sourceItemId);if(e.subType===Dr.Moved&&e.action===Or.Move)return"historyCollectionItemMovedEventText";if(e.subType===Dr.BlockFile&&e.action===Or.Create&&e.oldAction)return"itemFileBlockedEventText";if(e.subType===Dr.UnblockFile&&e.action===Or.Create&&e.oldAction)return"itemFileUnblockedEventText";if(e.subType===Dr.BlockFile&&e.action===Or.Create&&!e.oldAction)return"historyCollectionBlockUploadedFileVersionEventText";if(e.subType===Dr.BlockFile&&e.action===Or.Delete&&!e.oldAction)return"historyCollectionUnblockUploadedFileVersionEventText";if(e.subType===Dr.PropertyMultiple&&e.action===Or.Delete)return"historyCollectionItemPropertyMultipleRemovedEventText";if(e.subType===Dr.PropertyMultiple&&e.action===Or.Create)return"historyCollectionItemPropertyMultipleAddedEventText";if(e.subType===Dr.Property&&e.action===Or.Update)return this.getPropertyChanged(e);if(e.subType===Dr.PropertyCurrency&&e.action===Or.Update)return this.getPropertyChanged(e);if(e.subType===Dr.Colors&&e.action===Or.Create)return"historycolorAddedEventText";if(e.subType===Dr.Colors&&e.action===Or.Delete)return"historycolorRemovedEventText";if(e.subType===Dr.Prints&&e.action===Or.Create)return"historyprintAddedEventText";if(e.subType===Dr.Prints&&e.action===Or.Delete)return"historyprintRemovedEventText";if(e.subType===Dr.Cover&&e.action===Or.Update)return this.getCoverChanged(e);if(e.subType===Dr.Cover&&e.action===Or.Create)return"historyCollectionItemCoverCreatedEventText";if(e.subType===Dr.Description&&e.action===Or.Update)return this.getDescriptionChanged(e);if(e.subType===Dr.References&&e.action===Or.Create)return this.getItemCoverReferenceChanged(e);if(e.subType===Dr.References&&e.action===Or.Delete)return this.getItemCoverReferenceChanged(e);if(e.subType===Dr.Tag&&e.action===Or.Switch&&e.tagDisplay)return"historytagSwitch";if(e.subType===Dr.Tag&&e.action===Or.Switch&&!e.tagDisplay)return"historytagSwitchRemoved";if(e.subType===Dr.Name&&e.action===Or.Update)return"historyItemNameUpdate";if(e.subType===Dr.Files&&e.action===Or.Download)return"historyItemFilesDowloads";if(e.subType===Dr.Comments&&e.action===Or.Create)return"historyItemCommentsCreate";if(e.subType===Dr.None&&e.action===Or.Delete)return"historyCollectionItemDelete"}if(e.type===Lb.Cycle){if(e.subType===Dr.Name&&e.action===Or.Update)return"historyCycleNameUpdate";if(e.subType===Dr.EndDate&&e.action===Or.Update)return"historyCycleEndDateUpdate";if(e.subType===Dr.StartDate&&e.action===Or.Update)return"historyCycleStartDateUpdate";if(e.subType===Dr.None&&e.action===Or.Delete)return"historyCycleDelete";if(e.subType===Dr.ItemsNumber&&e.action===Or.Update)return"historyCycleItemsNumberUpdate";if(e.subType===Dr.None&&e.action===Or.Create)return"historyCycleCreate"}if(e.type===Lb.Mix){if(e.subType===Dr.None&&e.action===Or.Create)return"historyCreateMix";if(e.subType===Dr.None&&e.action===Or.Delete)return"historyDeleteMix";if(e.subType===Dr.Name&&e.action===Or.Update)return"historyUpdateNameMix";if(e.subType===Dr.AddedItem&&e.action===Or.Added)return"historyAddedItemMix"}if(e.type===Lb.Collection){if(e.subType===Dr.Name&&e.action===Or.Update)return"historyCollectionUpdateName";if(e.subType===Dr.Season&&e.action===Or.Update)return"historyCollectionUpdateSeason";if(e.subType===Dr.Season&&e.action===Or.Create)return"historyCollectionCreateSeason";if(e.subType===Dr.ReleaseYear&&e.action===Or.Update)return"historyCollectionUpdateReleaseYear";if(e.subType===Dr.ReleaseYear&&e.action===Or.Create)return"historyCollectionCreateReleaseYear";if(e.subType===Dr.Brand&&e.action===Or.Create)return"historyCollectionCreateBrand";if(e.subType===Dr.Brand&&e.action===Or.Update)return"historyCollectionUpdateBrand";if(e.subType===Dr.Brand&&e.action===Or.Delete)return"historyCollectionRemovedBrand";if(e.subType===Dr.Budget&&e.action===Or.Update)return"historyCollectionUpdateBudget";if(e.subType===Dr.Currency&&e.action===Or.Update)return"historyCollectionUpdateCurrency";if(e.subType===Dr.Group&&e.action===Or.Update)return"historyCollectionUpdateGroup";if(e.subType===Dr.Colors&&e.action===Or.Create)return"historyCollectionCreateColors";if(e.subType===Dr.ColorName&&e.action===Or.Update)return"historyCollectionUpdateColors";if(e.subType===Dr.Colors&&e.action===Or.Delete)return"historyCollectionDeleteColors";if(e.subType===Dr.ColorHexadecimal&&e.action===Or.Update)return"historyCollectionUpdateColorHexadecimal";if(e.subType===Dr.Prints&&e.action===Or.Create)return"historyCollectionCreatePrints";if(e.subType===Dr.Prints&&e.action===Or.Delete)return"historyCollectionDeletePrints";if(e.subType===Dr.PrintName&&e.action===Or.Update)return"historyCollectionUpdatePrintName";if(e.subType===Dr.PrintReference&&e.action===Or.Update)return"historyCollectionUpdatePrintReference";if(e.subType===Dr.None&&e.action===Or.Create)return"historyCollectionCreate";if(e.subType===Dr.Steps&&e.action===Or.Create)return"historyCollectionStepsCreate";if(e.subType===Dr.Tag&&e.action===Or.Create)return"historytagCreate";if(e.subType===Dr.Tag&&e.action===Or.Delete)return"historytagDelete";if(e.subType===Dr.TagColor&&e.action===Or.Update)return"historytagColorUpdate";if(e.subType===Dr.TagName&&e.action===Or.Update)return"historytagNameUpdate";if(e.subType===Dr.Responsible&&e.action===Or.Update)return e.newAssignee?"historyCollectionResponsibleUpdate":"historyCollectionResponsibleRemoved";if(e.subType===Dr.Responsible&&e.action===Or.Create)return"historyCollectionResponsibleCreate";if(e.subType===Dr.Cover&&e.action===Or.Update)return this.getCoverCollectionChanged(e);if(e.subType===Dr.Sequential&&e.action===Or.Create)return"historyCollectionSequentialEventText"}if(e.type===Lb.Step){if(e.subType===Dr.Change&&e.action===Or.Update)return"historyCollectionItemStepChangedEventText";if(e.subType===Dr.Pendency&&e.action===Or.Create)return"historyCollectionStepPendencyAddedText";if(e.subType===Dr.Pendency&&e.action===Or.Delete)return"historyCollectionStepPendencyRemovedText";if(e.subType===Dr.Review&&e.action===Or.Create)return"historyCollectionStepReviewAddedText";if(e.subType===Dr.Review&&e.action===Or.Delete)return"historyCollectionStepReviewRemovedText";if(e.subType===Dr.Assigned&&e.action===Or.Create)return this.getItemStepAssignmentType(e);if(e.subType===Dr.None&&e.action===Or.Create)return"historyStepCreate";if(e.subType===Dr.Name&&e.action===Or.Update)return"historyStepUpdateName";if(e.subType===Dr.None&&e.action===Or.Delete)return"historyStepDelete";if(e.subType===Dr.StartDate&&e.action===Or.Create)return"historyStepCreateStartDate";if(e.subType===Dr.EndDate&&e.action===Or.Create)return"historyStepCreateEndDate";if(e.subType===Dr.StartDate&&e.action===Or.Update)return"historyStepUpdateStartDate";if(e.subType===Dr.EndDate&&e.action===Or.Update)return"historyStepUpdateEndDate"}return this.translate}getItemAssignmentType(e){return e.oldAssignee?e.newAssignee?"ItemReassignedEventText":"ItemUnassignedEventText":"ItemAssignedEventText"}getCopiedCreatedTextKey(e){if(null!==this._currentUser.value){const i=this.collectionItems.find(o=>o.id===e);return i&&this._currentUser.value.canAccessItem(i)?"itemCreatedByCopyingEventWithLinkText":"itemCreatedByCopyingEventWithoutLinkText"}}getDuplicatedCreatedTextKey(e){if(null!==this._currentUser.value){const i=this.collectionItems.find(o=>o.id===e);return i&&this._currentUser.value.canAccessItem(i)?"itemCreatedByDuplicatingEventWithLinkText":"itemCreatedByDuplicatingEventWithoutLinkText"}}getVariantCreatedTextKey(e){if(null!==this._currentUser.value){const i=this.collectionItems.find(o=>o.id===e);if(typeof i>"u")return"itemVariantAddedEventDeletedVariantText";if(this._currentUser.value.canAccessItem(i))return"historyCollectionItemVariantAddedEventWithLinkText"}return"itemVariantAddedEventWithoutLinkText"}getCreatedAsVariantTextKey(e){if(null!==this._currentUser.value){const i=this.collectionItems.find(o=>o.id===e);if(this._currentUser.value.canAccessItem(i))return"historyCollectionItemCreatedAsVariantEventWithLinkText"}return"historyCollectionItemCreatedAsVariantEventWithoutLinkText"}getRejectionTitleForEntry(e){const i=this.companyRejectionReasons.find(o=>o.id===e.rejectId);return typeof i<"u"?i.title:""}getReviewTitleForEntry(e){const i=this.companyReviewReasons.find(o=>o.id===e.reviewId);return typeof i<"u"?i.title:""}getPendencyTitleForEntry(e){const i=this.companyPendencyReasons.find(o=>o.id===e.pendencyId);return typeof i<"u"?i.title:""}getPropertyChanged(e){return"true"===e.newValue||"false"===e.newValue?"itemPropertyConditionalChangedEventText":null==e.newValue||""===e.newValue||null===e?"itemPropertyEmptyChangedEventText":"historyCollectionItemPropertyChangedEventText"}getCoverChanged(e){return null==e.newValue||""===e.newValue||null===e?"historyCollectionItemCoverRemovedEventText":"historyCollectionItemCoverChangedEventText"}getCoverCollectionChanged(e){return null==e.newValue||""===e.newValue||null===e?"historyCollectionCoverRemovedEventText":"historyCollectionCoverUpdatedEventText"}getDescriptionChanged(e){return"historyCollectionItemDescriptionChangedEventText"}getItemCoverReferenceChanged(e){return null==e.newValue||""===e.newValue||null===e.newValue?"historyCollectionItemReferenceRemovedEventText":null==e.oldValue||""===e.oldValue||null===e.oldValue?"historyCollectionItemReferenceAddedEventText":"historyCollectionItemHistoryListViewItemCoverReferenceDefaultTextEventText"}fileName(e){return e.toString().split("/").pop().split("#")[0].split("?")[0]}getItemVariantForHistory(e){return this.collectionItems.find(o=>o.id===e.itemId).variants.find(o=>`${o.id}`==`${e.variantId}`)}getItemStepAssignmentType(e){return e.oldAssignee?e.newAssignee?"ItemStepReassignedEventText":"ItemStepUnassignedEventText":"ItemStepAssignedEventText"}}return n.\u0275fac=function(e){return new(e||n)(en(hs),en(Ra))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),Lm=(()=>{class n{constructor(){this.minWidthTablet=768,this.maxWidthTabletVertically=992,this._setDevices(),this.nativeScreenWidth=window.screen.width,this.userAgent=window.navigator.userAgent.toLowerCase()}get isResponsiveDesignRequired(){const e=/android|iphone/.test(window.navigator.userAgent.toLowerCase());return this.isTablet||e||this.nativeScreenWidth<=this.maxWidthTabletVertically}get isDesktop(){return this._setDevices(),this._isDesktop}get isTablet(){return this._setDevices(),this._isTablet}get isMobile(){return this._setDevices(),this._isMobile}get isIphone(){return/iphone/.test(this.userAgent)}get isIpad(){const e=/ipad/.test(this.userAgent),i=/macintosh/i.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1;return e||i}get isPortrait(){const e=screen.orientation.type;return"portrait-primary"===e||"portrait-secondary"===e}get isScreenUp(){const e=screen.orientation.type;return"portrait-primary"===e||"landscape-primary"===e}_setDevices(){this._isDesktop=!1,this._isTablet=!1,this._isMobile=!1;const e=window.innerWidth,i=window.navigator.userAgent.toLowerCase(),o=/ipad|android/.test(window.navigator.userAgent.toLowerCase())||i.indexOf("macintosh")>-1&&"ontouchend"in document;this._isDesktop=e>this.maxWidthTabletVertically&&!o,this._isTablet=e<=this.maxWidthTabletVertically||o,this._isMobile=e{class n{constructor(){this._dataSubject=new Yn(null),this._data$=this._dataSubject.asObservable()}setData(e){this._dataSubject.next(e)}getData(){return this._data$}clearData(){this._dataSubject.next(null)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),E$=(()=>{class n{constructor(e){this._=e}}return n.\u0275fac=function(e){return new(e||n)(en(GN))},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[o2,Zj,GN,lse,$N,cse,m$,QN,s2,iT,$se,{provide:_$,useClass:D8e},{provide:kF,useClass:w8e},{provide:OF,useClass:Zae},{provide:mF,useClass:x8e},{provide:qj,useClass:O8e},{provide:P8e,useClass:Zae},{provide:mN,useClass:M8e},{provide:Vse,useClass:LHe},{provide:gN,useClass:NHe},{provide:Xj,useClass:HHe},{provide:k$,useClass:KHe},{provide:w1,useClass:Qu.useAwsFileService?S8e:T8e},Lm,xO],imports:[t1,zse]}),n})();function I$(n=0,r=dS){return(!CV(n)||n<0)&&(n=0),(!r||"function"!=typeof r.schedule)&&(r=dS),new ze(e=>(e.add(r.schedule(XHe,n,{subscriber:e,counter:0,period:n})),e))}function XHe(n){const{subscriber:r,counter:e,period:i}=n;r.next(e),this.schedule({subscriber:r,counter:e+1,period:i},i)}let LF=(()=>{class n{constructor(){this.defaultRefreshIntervalMilliseconds=1e4,this._now=new Yn(new Date),this.now$=this._now.asObservable(),I$(this.defaultRefreshIntervalMilliseconds).subscribe(e=>this._now.next(new Date))}interval(e=this.defaultRefreshIntervalMilliseconds){return I$(e)}timeout(e=this.defaultRefreshIntervalMilliseconds){return new Promise(i=>{setTimeout(i,e)})}createDate(e,i,o,a,s,l){return new Date(e,i,o,a,s,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),JHe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[LF,Gs]}),n})();const ZHe=["connectionContainer"],e7e=["inputContainer"],t7e=["label"];function n7e(n,r){1&n&&(ti(0),b(1,"div",14),be(2,"div",15)(3,"div",16)(4,"div",17),y(),b(5,"div",18),be(6,"div",15)(7,"div",16)(8,"div",17),y(),ni())}function i7e(n,r){if(1&n){const e=xt();b(0,"div",19),Me("cdkObserveContent",function(){return Oe(e),Re(w().updateOutlineGap())}),ha(1,1),y()}2&n&&m("cdkObserveContentDisabled","outline"!=w().appearance)}function r7e(n,r){if(1&n&&(ti(0),ha(1,2),b(2,"span"),L(3),y(),ni()),2&n){const e=w(2);p(3),Xe(e._control.placeholder)}}function o7e(n,r){1&n&&ha(0,3,["*ngSwitchCase","true"])}function a7e(n,r){1&n&&(b(0,"span",23),L(1," *"),y())}function s7e(n,r){if(1&n){const e=xt();b(0,"label",20,21),Me("cdkObserveContent",function(){return Oe(e),Re(w().updateOutlineGap())}),O(2,r7e,4,1,"ng-container",12),O(3,o7e,1,0,"ng-content",12),O(4,a7e,2,0,"span",22),y()}if(2&n){const e=w();g("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),m("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Tr("for",e._control.id)("aria-owns",e._control.id),p(2),m("ngSwitchCase",!1),p(1),m("ngSwitchCase",!0),p(1),m("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function l7e(n,r){1&n&&(b(0,"div",24),ha(1,4),y())}function c7e(n,r){if(1&n&&(b(0,"div",25),be(1,"span",26),y()),2&n){const e=w();p(1),g("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function d7e(n,r){1&n&&(b(0,"div"),ha(1,5),y()),2&n&&m("@transitionMessages",w()._subscriptAnimationState)}function u7e(n,r){if(1&n&&(b(0,"div",30),L(1),y()),2&n){const e=w(2);m("id",e._hintLabelId),p(1),Xe(e.hintLabel)}}function p7e(n,r){if(1&n&&(b(0,"div",27),O(1,u7e,2,2,"div",28),ha(2,6),be(3,"div",29),ha(4,7),y()),2&n){const e=w();m("@transitionMessages",e._subscriptAnimationState),p(1),m("ngIf",e.hintLabel)}}const h7e=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],f7e=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let m7e=0;const Yse=new Pi("MatError");let KN=(()=>{class n{constructor(e,i){this.id="mat-error-"+m7e++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(ge("aria-live"),U(gr))},n.\u0275dir=Wn({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,i){2&e&&Tr("id",i.id)},inputs:{id:"id"},features:[lo([{provide:Yse,useExisting:n}])]}),n})();const g7e={transitionMessages:Ku("transitionMessages",[Al("enter",uo({opacity:1,transform:"translateY(0%)"})),Xs("void => enter",[uo({opacity:0,transform:"translateY(-5px)"}),qa("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let MO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n}),n})(),_7e=0;const Gse=new Pi("MatHint");let Wse=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+_7e++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,i){2&e&&(Tr("id",i.id)("align",null),g("mat-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"},features:[lo([{provide:Gse,useExisting:n}])]}),n})(),$d=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,selectors:[["mat-label"]]}),n})(),v7e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,selectors:[["mat-placeholder"]]}),n})();const Qse=new Pi("MatPrefix");let NF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,selectors:[["","matPrefix",""]],features:[lo([{provide:Qse,useExisting:n}])]}),n})();const Kse=new Pi("MatSuffix");let S1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Wn({type:n,selectors:[["","matSuffix",""]],features:[lo([{provide:Kse,useExisting:n}])]}),n})(),qse=0;const y7e=x1(class{constructor(n){this._elementRef=n}},"primary"),C7e=new Pi("MAT_FORM_FIELD_DEFAULT_OPTIONS"),SO=new Pi("MatFormField");let Ic=(()=>{class n extends y7e{constructor(e,i,o,a,s,l,d){super(e),this._changeDetectorRef=i,this._dir=o,this._defaults=a,this._platform=s,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Fe,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+qse++,this._labelId="mat-form-field-label-"+qse++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==d,this.appearance=a?.appearance||"legacy",a&&(this._hideRequiredMarker=Boolean(a.hideRequiredMarker),a.color&&(this.color=this.defaultColor=a.color))}get appearance(){return this._appearance}set appearance(e){var i;const o=this._appearance;this._appearance=e||(null===(i=this._defaults)||void 0===i?void 0:i.appearance)||"legacy","outline"===this._appearance&&o!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Eo(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(Zl(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ma(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ma(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),or(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Zl(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Zl(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ma(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,dd(this._label.nativeElement,"transitionend").pipe(Oa(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(a=>"start"===a.align):null,o=this._hintChildren?this._hintChildren.find(a=>"end"===a.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.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,o=".mat-form-field-outline-start",a=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const C=i.querySelectorAll(`${o}, ${a}`);for(let M=0;M0?.75*pe+10:0}for(let C=0;C{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[xs,as,cF,as]}),n})();const A7e=["trigger"],w7e=["panel"];function x7e(n,r){if(1&n&&(b(0,"span",8),L(1),y()),2&n){const e=w();p(1),Xe(e.placeholder)}}function M7e(n,r){if(1&n&&(b(0,"span",12),L(1),y()),2&n){const e=w(2);p(1),Xe(e.triggerValue)}}function S7e(n,r){1&n&&ha(0,0,["*ngSwitchCase","true"])}function T7e(n,r){1&n&&(b(0,"span",9),O(1,M7e,2,1,"span",10),O(2,S7e,1,0,"ng-content",11),y()),2&n&&(m("ngSwitch",!!w().customTrigger),p(2),m("ngSwitchCase",!0))}function D7e(n,r){if(1&n){const e=xt();b(0,"div",13)(1,"div",14,15),Me("@transformPanel.done",function(o){return Oe(e),Re(w()._panelDoneAnimatingStream.next(o.toState))})("keydown",function(o){return Oe(e),Re(w()._handleKeydown(o))}),ha(3,1),y()()}if(2&n){const e=w();m("@transformPanelWrap",void 0),p(1),Hs("mat-select-panel ",e._getPanelTheme(),""),_("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),m("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Tr("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const P7e=[[["mat-select-trigger"]],"*"],O7e=["mat-select-trigger","*"],Jse={transformPanelWrap:Ku("transformPanelWrap",[Xs("* => void",FP("@transformPanel",[IP()],{optional:!0}))]),transformPanel:Ku("transformPanel",[Al("void",uo({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Al("showing",uo({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Al("showing-multiple",uo({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Xs("void => *",qa("120ms cubic-bezier(0, 0, 0.2, 1)")),Xs("* => void",qa("100ms 25ms linear",uo({opacity:0})))])};let Zse=0;const tle=new Pi("mat-select-scroll-strategy"),F7e=new Pi("MAT_SELECT_CONFIG"),R7e={provide:tle,deps:[Ff],useFactory:function I7e(n){return()=>n.scrollStrategies.reposition()}};class B7e{constructor(r,e){this.source=r,this.value=e}}const L7e=P0(tT(D0(LN(class{constructor(n,r,e,i,o){this._elementRef=n,this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new Fe}})))),N7e=new Pi("MatSelectTrigger");let H7e=(()=>{class n extends L7e{constructor(e,i,o,a,s,l,d,f,C,M,T,F,pe,ce){var fe,Pe,Ne;super(s,a,d,f,M),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=l,this._parentFormField=C,this._liveAnnouncer=pe,this._defaultOptions=ce,this._panelOpen=!1,this._compareWith=(Ge,lt)=>Ge===lt,this._uid="mat-select-"+Zse++,this._triggerAriaLabelledBy=null,this._destroy=new Fe,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Zse++,this._panelDoneAnimatingStream=new Fe,this._overlayPanelClass=(null===(fe=this._defaultOptions)||void 0===fe?void 0:fe.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Pe=null===(Ne=this._defaultOptions)||void 0===Ne?void 0:Ne.disableOptionCentering)&&void 0!==Pe&&Pe,this.ariaLabel="",this.optionSelectionChanges=Bx(()=>{const Ge=this.options;return Ge?Ge.changes.pipe(Zl(Ge),xc(()=>or(...Ge.map(lt=>lt.onSelectionChange)))):this._ngZone.onStable.pipe(Oa(1),xc(()=>this.optionSelectionChanges))}),this.openedChange=new Cn,this._openedStream=this.openedChange.pipe(Fo(Ge=>Ge),Ct(()=>{})),this._closedStream=this.openedChange.pipe(Fo(Ge=>!Ge),Ct(()=>{})),this.selectionChange=new Cn,this.valueChange=new Cn,this.ngControl&&(this.ngControl.valueAccessor=this),null!=ce?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=ce.typeaheadDebounceInterval),this._scrollStrategyFactory=F,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(T)||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(){var e,i,o,a;return null!==(e=null!==(i=this._required)&&void 0!==i?i:null===(o=this.ngControl)||void 0===o||null===(a=o.control)||void 0===a?void 0:a.hasValidator(Vs.required))&&void 0!==e&&e}set required(e){this._required=Eo(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Eo(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Eo(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=Ed(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new iF(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(_v(),ma(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(ma(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Zl(null),ma(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.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(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.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,o=40===i||38===i||37===i||39===i,a=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&a&&!Dp(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const l=this.selected;s.onKeydown(e);const d=this.selected;d&&l!==d&&this._liveAnnouncer.announce(d.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,o=e.keyCode,a=40===o||38===o,s=i.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(s||13!==o&&32!==o||!i.activeItem||Dp(e))if(!s&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const l=this.options.some(d=>!d.disabled&&!d.selected);this.options.forEach(d=>{d.disabled||(l?d.select():d.deselect())})}else{const l=i.activeItemIndex;i.onKeydown(e),this._multiple&&a&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==l&&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(Oa(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(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.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 bj(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(ma(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(ma(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=or(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ma(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),or(...this.options.map(i=>i._stateChanges)).pipe(ma(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==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)),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,o)=>this.sortComparator?this.sortComparator(i,o,e):e.indexOf(i)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(o=>o.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(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let o=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(o+=" "+this.ariaLabelledby),o}_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)(U(y1),U(Go),U(Zo),U(Nb),U(gr),U(cu,8),U(Gh,8),U(uc,8),U(SO,8),U(e1,10),ge("tabindex"),U(tle),U(yj),U(F7e,8))},n.\u0275dir=Wn({type:n,viewQuery:function(e,i){if(1&e&&(jr(A7e,5),jr(w7e,5),jr(xoe,5)),2&e){let o;Ai(o=wi())&&(i.trigger=o.first),Ai(o=wi())&&(i.panel=o.first),Ai(o=wi())&&(i._overlayDir=o.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:[Nr,vo]}),n})(),T1=(()=>{class n extends H7e{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,o){const a=this._getItemHeight();return Math.min(Math.max(0,a*e-i+a/2),o)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(ma(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(Oa(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=T$(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:Sse((e+i)*o,o,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 B7e(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),o=this._isRtl(),a=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let f=this._selectionModel.selected[0]||this.options.first;s=f&&f.group?32:16}o||(s*=-1);const l=0-(e.left+s-(o?a:0)),d=e.right+s-i.width+(o?0:a);l>0?s+=l+8:d>0&&(s-=d+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,o){const a=this._getItemHeight(),s=(a-this._triggerRect.height)/2,l=Math.floor(256/a);let d;return this.disableOptionCentering?0:(d=0===this._scrollTop?e*a:this._scrollTop===o?(e-(this._getItemCount()-l))*a+(a-(this._getItemCount()*a-256)%a):i-a/2,Math.round(-1*d-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),o=this._viewportRuler.getViewportSize(),a=this._triggerRect.top-8,s=o.height-this._triggerRect.bottom-8,l=Math.abs(this._offsetY),f=Math.min(this._getItemCount()*i,256)-l-this._triggerRect.height;f>s?this._adjustPanelUp(f,s):l>a?this._adjustPanelDown(l,a,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const o=Math.round(e-i);this._scrollTop-=o,this._offsetY-=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,o){const a=Math.round(e-i);if(this._scrollTop+=a,this._offsetY+=a,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=o)return this._scrollTop=o,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),o=Math.min(i*e,256),s=i*e-o;let l;l=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),l+=T$(l,this.options,this.optionGroups);const d=o/2;this._scrollTop=this._calculateOverlayScroll(l,d,s),this._offsetY=this._calculateOverlayOffsetY(l,d,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 r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275cmp=wn({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,o){if(1&e&&(Jo(o,N7e,5),Jo(o,mh,5),Jo(o,VN,5)),2&e){let a;Ai(a=wi())&&(i.customTrigger=a.first),Ai(a=wi())&&(i.options=a),Ai(a=wi())&&(i.optionGroups=a)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,i){1&e&&Me("keydown",function(a){return i._handleKeydown(a)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(Tr("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()),g("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:[lo([{provide:MO,useExisting:n},{provide:HN,useExisting:n}]),Nr],ngContentSelectors:O7e,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&&(Cs(P7e),b(0,"div",0,1),Me("click",function(){return i.toggle()}),b(3,"div",2),O(4,x7e,2,1,"span",3),O(5,T7e,3,2,"span",4),y(),b(6,"div",5),be(7,"div",6),y()(),O(8,D7e,4,14,"ng-template",7),Me("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const o=yi(1);Tr("aria-owns",i.panelOpen?i.id+"-panel":null),p(3),m("ngSwitch",i.empty),Tr("id",i._valueId),p(1),m("ngSwitchCase",!0),p(1),m("ngSwitchCase",!1),p(3),m("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[ra,ph,Yh,DR,xoe,woe],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:[Jse.transformPanelWrap,Jse.transformPanel]},changeDetection:0}),n})(),F$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[R7e],imports:[xs,iw,UN,as,tC,HF,UN,as]}),n})();const V7e=["tooltip"],nle="tooltip-panel",ile=Pb({passive:!0}),rle=new Pi("mat-tooltip-scroll-strategy"),$7e={provide:rle,deps:[Ff],useFactory:function j7e(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},Y7e=new Pi("mat-tooltip-default-options",{providedIn:"root",factory:function G7e(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let W7e=(()=>{class n{constructor(e,i,o,a,s,l,d,f,C,M,T,F){this._overlay=e,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=a,this._ngZone=s,this._platform=l,this._ariaDescriber=d,this._focusMonitor=f,this._dir=M,this._defaultOptions=T,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Fe,this._scrollStrategy=C,this._document=F,T&&(T.position&&(this.position=T.position),T.touchGestures&&(this.touchGestures=T.touchGestures)),M.change.pipe(ma(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(e){this._disabled=Eo(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ed(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ed(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ma(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,o])=>{e.removeEventListener(i,o,ile)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){var i;if(this.disabled||!this.message||this._isTooltipVisible())return void(null===(i=this._tooltipInstance)||void 0===i||i._cancelPendingAnimations());const o=this._createOverlay();this._detach(),this._portal=this._portal||new nw(this._tooltipComponent,this._viewContainerRef);const a=this._tooltipInstance=o.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(ma(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(ma(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${nle}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ma(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ma(this._destroyed)).subscribe(()=>{var a;return null===(a=this._tooltipInstance)||void 0===a?void 0:a._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(ma(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&27===a.keyCode&&!Dp(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(e=this._defaultOptions)&&void 0!==e&&e.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,o=this._getOrigin(),a=this._getOverlayPosition();i.withPositions([this._addOffset({...o.main,...a.main}),this._addOffset({...o.fallback,...a.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});const{x:a,y:s}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:a,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:a,y:s}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:a,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Oa(1),ma(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:o,originY:a}=e;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===a?"above":"below",s!==this._currentPosition){const l=this._overlayRef;if(l){const d=`${this._cssClassPrefix}-${nle}-`;l.removePanelClass(d+this._currentPosition),l.addPanelClass(d+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{var o;const a=i.relatedTarget;(!a||null===(o=this._overlayRef)||void 0===o||!o.overlayElement.contains(a))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,ile)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){P_()},n.\u0275dir=Wn({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),sc=(()=>{class n extends W7e{constructor(e,i,o,a,s,l,d,f,C,M,T,F){super(e,i,o,a,s,l,d,f,C,M,T,F),this._tooltipComponent=K7e}}return n.\u0275fac=function(e){return new(e||n)(U(Ff),U(gr),U(qx),U(ac),U(Zo),U(Au),U(_j),U(Rf),U(rle),U(cu,8),U(Y7e,8),U(Fa))},n.\u0275dir=Wn({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Nr]}),n})(),Q7e=(()=>{class n{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Fe,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,o=this._showAnimation,a=this._hideAnimation;if(i.classList.remove(e?a:o),i.classList.add(e?o:a),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(U(Go),U(Cu,8))},n.\u0275dir=Wn({type:n}),n})(),K7e=(()=>{class n extends Q7e{constructor(e,i,o){super(e,o),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe(rC_Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(U(Go),U(WS),U(Cu,8))},n.\u0275cmp=wn({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&jr(V7e,7),2&e){let o;Ai(o=wi())&&(i._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&Me("mouseleave",function(a){return i._handleMouseLeave(a)}),2&e&&_("zoom",i.isVisible()?1:null)},features:[Nr],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(b(0,"div",0,1),Me("animationend",function(a){return i._handleAnimationEnd(a)}),D(2,"async"),L(3),y()),2&e){let o;g("mat-tooltip-handset",null==(o=B(2,4,i._isHandset))?null:o.matches),m("ngClass",i.tooltipClass),p(3),Xe(i.message)}},dependencies:[ra,wo],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),n})(),R$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[$7e],imports:[dF,xs,iw,as,as,tC]}),n})();function q7e(n,r){if(1&n&&(b(0,"mat-option",19),L(1),y()),2&n){const e=r.$implicit;m("value",e),p(1),Be(" ",e," ")}}function X7e(n,r){if(1&n){const e=xt();b(0,"mat-form-field",16)(1,"mat-select",17),Me("selectionChange",function(o){return Oe(e),Re(w(2)._changePageSize(o.value))}),O(2,q7e,2,2,"mat-option",18),y()()}if(2&n){const e=w(2);m("appearance",e._formFieldAppearance)("color",e.color),p(1),m("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),p(1),m("ngForOf",e._displayedPageSizeOptions)}}function J7e(n,r){if(1&n&&(b(0,"div",20),L(1),y()),2&n){const e=w(2);p(1),Xe(e.pageSize)}}function Z7e(n,r){if(1&n&&(b(0,"div",12)(1,"div",13),L(2),y(),O(3,X7e,3,8,"mat-form-field",14),O(4,J7e,2,1,"div",15),y()),2&n){const e=w();p(2),Be(" ",e._intl.itemsPerPageLabel," "),p(1),m("ngIf",e._displayedPageSizeOptions.length>1),p(1),m("ngIf",e._displayedPageSizeOptions.length<=1)}}function e9e(n,r){if(1&n){const e=xt();b(0,"button",21),Me("click",function(){return Oe(e),Re(w().firstPage())}),Pu(),b(1,"svg",7),be(2,"path",22),y()()}if(2&n){const e=w();m("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Tr("aria-label",e._intl.firstPageLabel)}}function t9e(n,r){if(1&n){const e=xt();Pu(),Rp(),b(0,"button",23),Me("click",function(){return Oe(e),Re(w().lastPage())}),Pu(),b(1,"svg",7),be(2,"path",24),y()()}if(2&n){const e=w();m("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Tr("aria-label",e._intl.lastPageLabel)}}let DO=(()=>{class n{constructor(){this.changes=new Fe,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,o)=>{if(0==o||0==i)return`0 of ${o}`;const a=e*i;return`${a+1} \u2013 ${a<(o=Math.max(o,0))?Math.min(a+i,o):a+i} of ${o}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const i9e={provide:DO,deps:[[new rh,new bf,DO]],useFactory:function n9e(n){return n||new DO}},o9e=new Pi("MAT_PAGINATOR_DEFAULT_OPTIONS"),a9e=D0(fse(class{}));let s9e=(()=>{class n extends a9e{constructor(e,i,o){if(super(),this._intl=e,this._changeDetectorRef=i,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new Cn,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){const{pageSize:a,pageSizeOptions:s,hidePageSize:l,showFirstLastButtons:d}=o;null!=a&&(this._pageSize=a),null!=s&&(this._pageSizeOptions=s),null!=l&&(this._hidePageSize=l),null!=d&&(this._showFirstLastButtons=d)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Ed(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Ed(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Ed(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>Ed(i)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Eo(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Eo(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return n.\u0275fac=function(e){P_()},n.\u0275dir=Wn({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[Nr]}),n})(),dC=(()=>{class n extends s9e{constructor(e,i,o){super(e,i,o),o&&null!=o.formFieldAppearance&&(this._formFieldAppearance=o.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(U(DO),U(Go),U(o9e,8))},n.\u0275cmp=wn({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[Nr],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1),O(2,Z7e,5,3,"div",2),b(3,"div",3)(4,"div",4),L(5),y(),O(6,e9e,3,5,"button",5),b(7,"button",6),Me("click",function(){return i.previousPage()}),Pu(),b(8,"svg",7),be(9,"path",8),y()(),Rp(),b(10,"button",9),Me("click",function(){return i.nextPage()}),Pu(),b(11,"svg",7),be(12,"path",10),y()(),O(13,t9e,3,5,"button",11),y()()()),2&e&&(p(2),m("ngIf",!i.hidePageSize),p(3),Be(" ",i._intl.getRangeLabel(i.pageIndex,i.pageSize,i.length)," "),p(1),m("ngIf",i.showFirstLastButtons),p(1),m("matTooltip",i._intl.previousPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),Tr("aria-label",i._intl.previousPageLabel),p(3),m("matTooltip",i._intl.nextPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),Tr("aria-label",i._intl.nextPageLabel),p(3),m("ngIf",i.showFirstLastButtons))},dependencies:[Oo,rr,Aa,Ic,T1,mh,sc],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),ole=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[i9e],imports:[xs,wO,F$,R$,as]}),n})();const l9e=["mat-sort-header",""];function c9e(n,r){if(1&n){const e=xt();b(0,"div",3),Me("@arrowPosition.start",function(){return Oe(e),Re(w()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return Oe(e),Re(w()._disableViewStateAnimation=!1)}),be(1,"div",4),b(2,"div",5),be(3,"div",6)(4,"div",7)(5,"div",8),y()()}if(2&n){const e=w();m("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),p(2),m("@indicator",e._getArrowDirectionState()),p(1),m("@leftPointer",e._getArrowDirectionState()),p(1),m("@rightPointer",e._getArrowDirectionState())}}const d9e=["*"],ale=new Pi("MAT_SORT_DEFAULT_OPTIONS"),u9e=fse(D0(class{}));let O0=(()=>{class n extends u9e{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Fe,this.start="asc",this._direction="",this.sortChange=new Cn}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Eo(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var i,o,a;if(!e)return"";const s=null!==(i=null!==(o=e?.disableClear)&&void 0!==o?o:this.disableClear)&&void 0!==i?i:!(null===(a=this._defaultOptions)||void 0===a||!a.disableClear);let l=function p9e(n,r){let e=["asc","desc"];return"desc"==n&&e.reverse(),r||e.push(""),e}(e.start||this.start,s),d=l.indexOf(this.direction)+1;return d>=l.length&&(d=0),l[d]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(U(ale,8))},n.\u0275dir=Wn({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Nr,vo]}),n})();const l2=w$.ENTERING+" "+A$.STANDARD_CURVE,PO={indicator:Ku("indicator",[Al("active-asc, asc",uo({transform:"translateY(0px)"})),Al("active-desc, desc",uo({transform:"translateY(10px)"})),Xs("active-asc <=> active-desc",qa(l2))]),leftPointer:Ku("leftPointer",[Al("active-asc, asc",uo({transform:"rotate(-45deg)"})),Al("active-desc, desc",uo({transform:"rotate(45deg)"})),Xs("active-asc <=> active-desc",qa(l2))]),rightPointer:Ku("rightPointer",[Al("active-asc, asc",uo({transform:"rotate(45deg)"})),Al("active-desc, desc",uo({transform:"rotate(-45deg)"})),Xs("active-asc <=> active-desc",qa(l2))]),arrowOpacity:Ku("arrowOpacity",[Al("desc-to-active, asc-to-active, active",uo({opacity:1})),Al("desc-to-hint, asc-to-hint, hint",uo({opacity:.54})),Al("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",uo({opacity:0})),Xs("* => asc, * => desc, * => active, * => hint, * => void",qa("0ms")),Xs("* <=> *",qa(l2))]),arrowPosition:Ku("arrowPosition",[Xs("* => desc-to-hint, * => desc-to-active",qa(l2,fS([uo({transform:"translateY(-25%)"}),uo({transform:"translateY(0)"})]))),Xs("* => hint-to-desc, * => active-to-desc",qa(l2,fS([uo({transform:"translateY(0)"}),uo({transform:"translateY(25%)"})]))),Xs("* => asc-to-hint, * => asc-to-active",qa(l2,fS([uo({transform:"translateY(25%)"}),uo({transform:"translateY(0)"})]))),Xs("* => hint-to-asc, * => active-to-asc",qa(l2,fS([uo({transform:"translateY(0)"}),uo({transform:"translateY(-25%)"})]))),Al("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",uo({transform:"translateY(0)"})),Al("hint-to-desc, active-to-desc, desc",uo({transform:"translateY(-25%)"})),Al("hint-to-asc, active-to-asc, asc",uo({transform:"translateY(25%)"}))]),allowChildren:Ku("allowChildren",[Xs("* <=> *",[FP("@*",IP(),{optional:!0})])])};let XN=(()=>{class n{constructor(){this.changes=new Fe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Dn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const f9e={provide:XN,deps:[[new rh,new bf,XN]],useFactory:function h9e(n){return n||new XN}},m9e=D0(class{});let UF=(()=>{class n extends m9e{constructor(e,i,o,a,s,l,d,f){super(),this._intl=e,this._changeDetectorRef=i,this._sort=o,this._columnDef=a,this._focusMonitor=s,this._elementRef=l,this._ariaDescriber=d,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=f&&f.arrowPosition&&(this.arrowPosition=f?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Eo(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=!!e;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var i,o;this._sortButton&&(null===(i=this._ariaDescriber)||void 0===i||i.removeDescription(this._sortButton,this._sortActionDescription),null===(o=this._ariaDescriber)||void 0===o||o.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=or(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(U(XN),U(Go),U(O0,8),U("MAT_SORT_HEADER_COLUMN_DEF",8),U(Rf),U(gr),U(_j,8),U(ale,8))},n.\u0275cmp=wn({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,i){1&e&&Me("click",function(){return i._handleClick()})("keydown",function(a){return i._handleKeydown(a)})("mouseenter",function(){return i._setIndicatorHintVisible(!0)})("mouseleave",function(){return i._setIndicatorHintVisible(!1)}),2&e&&(Tr("aria-sort",i._getAriaSortAttribute()),g("mat-sort-header-disabled",i._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[Nr],attrs:l9e,ngContentSelectors:d9e,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,i){1&e&&(Cs(),b(0,"div",0)(1,"div",1),ha(2),y(),O(3,c9e,6,6,"div",2),y()),2&e&&(g("mat-sort-header-sorted",i._isSorted())("mat-sort-header-position-before","before"===i.arrowPosition),Tr("tabindex",i._isDisabled()?null:0)("role",i._isDisabled()?null:"button"),p(3),m("ngIf",i._renderArrow()))},dependencies:[rr],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[PO.indicator,PO.leftPointer,PO.rightPointer,PO.arrowOpacity,PO.arrowPosition,PO.allowChildren]},changeDetection:0}),n})(),sle=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({providers:[f9e],imports:[xs,as]}),n})();const g9e=[[["caption"]],[["colgroup"],["col"]]],_9e=["caption","colgroup, col"];function B$(n){return class extends n{constructor(...r){super(...r),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(r){const e=this._sticky;this._sticky=Eo(r),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const r=this._hasStickyChanged;return this._hasStickyChanged=!1,r}resetStickyChanged(){this._hasStickyChanged=!1}}}const OO=new Pi("CDK_TABLE");let kO=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(U(Na))},n.\u0275dir=Wn({type:n,selectors:[["","cdkCellDef",""]]}),n})(),EO=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(U(Na))},n.\u0275dir=Wn({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),JN=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(U(Na))},n.\u0275dir=Wn({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class C9e{}const A9e=B$(C9e);let cw=(()=>{class n extends A9e{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=Eo(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)(U(OO,8))},n.\u0275dir=Wn({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,o){if(1&e&&(Jo(o,kO,5),Jo(o,EO,5),Jo(o,JN,5)),2&e){let a;Ai(a=wi())&&(i.cell=a.first),Ai(a=wi())&&(i.headerCell=a.first),Ai(a=wi())&&(i.footerCell=a.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[lo([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),Nr]}),n})();class L${constructor(r,e){e.nativeElement.classList.add(...r._columnCssClassName)}}let N$=(()=>{class n extends L${constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(U(cw),U(gr))},n.\u0275dir=Wn({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Nr]}),n})(),lle=(()=>{class n extends L${constructor(e,i){var o;if(super(e,i),1===(null===(o=e._table)||void 0===o?void 0:o._elementRef.nativeElement.nodeType)){const a=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===a||"treegrid"===a?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(U(cw),U(gr))},n.\u0275dir=Wn({type:n,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[Nr]}),n})(),H$=(()=>{class n extends L${constructor(e,i){var o;if(super(e,i),1===(null===(o=e._table)||void 0===o?void 0:o._elementRef.nativeElement.nodeType)){const a=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===a||"treegrid"===a?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(U(cw),U(gr))},n.\u0275dir=Wn({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Nr]}),n})();class cle{constructor(){this.tasks=[],this.endTasks=[]}}const V$=new Pi("_COALESCED_STYLE_SCHEDULER");let dle=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Fe}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 cle,this._getScheduleObservable().pipe(ma(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new cle;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?vt(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Oa(1))}}return n.\u0275fac=function(e){return new(e||n)(en(Zo))},n.\u0275prov=Dn({token:n,factory:n.\u0275fac}),n})(),U$=(()=>{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 zF?e.headerCell.template:this instanceof jF?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(U(Na),U(By))},n.\u0275dir=Wn({type:n,features:[vo]}),n})();class w9e extends U${}const x9e=B$(w9e);let zF=(()=>{class n extends x9e{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(U(Na),U(By),U(OO,8))},n.\u0275dir=Wn({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Nr,vo]}),n})();class M9e extends U${}const S9e=B$(M9e);let jF=(()=>{class n extends S9e{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(U(Na),U(By),U(OO,8))},n.\u0275dir=Wn({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Nr,vo]}),n})(),ZN=(()=>{class n extends U${constructor(e,i,o){super(e,i),this._table=o}}return n.\u0275fac=function(e){return new(e||n)(U(Na),U(By),U(OO,8))},n.\u0275dir=Wn({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Nr]}),n})(),dw=(()=>{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)(U(ac))},n.\u0275dir=Wn({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),z$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&lp(0,0)},dependencies:[dw],encapsulation:2}),n})(),j$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({type:n,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&lp(0,0)},dependencies:[dw],encapsulation:2}),n})(),$$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=wn({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&&lp(0,0)},dependencies:[dw],encapsulation:2}),n})(),e6=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(U(Na))},n.\u0275dir=Wn({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const ule=["top","bottom","left","right"];class T9e{constructor(r,e,i,o,a=!0,s=!0,l){this._isNativeHtmlTable=r,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=a,this._needsPositionStickyOnElement=s,this._positionListener=l,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(r,e){const i=[];for(const o of r)if(o.nodeType===o.ELEMENT_NODE){i.push(o);for(let a=0;a{for(const o of i)this._removeStickyStyle(o,e)})}updateStickyColumns(r,e,i,o=!0){if(!r.length||!this._isBrowser||!e.some(T=>T)&&!i.some(T=>T))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const a=r[0],s=a.children.length,l=this._getCellWidths(a,o),d=this._getStickyStartColumnPositions(l,e),f=this._getStickyEndColumnPositions(l,i),C=e.lastIndexOf(!0),M=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const T="rtl"===this.direction,F=T?"right":"left",pe=T?"left":"right";for(const ce of r)for(let fe=0;fee[fe]?ce:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===M?[]:l.slice(M).map((ce,fe)=>i[fe+M]?ce:null).reverse()}))})}stickRows(r,e,i){if(!this._isBrowser)return;const o="bottom"===i?r.slice().reverse():r,a="bottom"===i?e.slice().reverse():e,s=[],l=[],d=[];for(let C=0,M=0;C{for(let T=0;T{e.some(o=>!o)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(r,e){for(const o of e)r.style[o]="",r.classList.remove(this._borderCellCss[o]);ule.some(o=>-1===e.indexOf(o)&&r.style[o])?r.style.zIndex=this._getCalculatedZIndex(r):(r.style.zIndex="",this._needsPositionStickyOnElement&&(r.style.position=""),r.classList.remove(this._stickCellCss))}_addStickyStyle(r,e,i,o){r.classList.add(this._stickCellCss),o&&r.classList.add(this._borderCellCss[e]),r.style[e]=`${i}px`,r.style.zIndex=this._getCalculatedZIndex(r),this._needsPositionStickyOnElement&&(r.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(r){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const o of ule)r.style[o]&&(i+=e[o]);return i?`${i}`:""}_getCellWidths(r,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],o=r.children;for(let a=0;a0;a--)e[a]&&(i[a]=o,o+=r[a]);return i}}const Y$=new Pi("CDK_SPL");let t6=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(U(ac),U(gr))},n.\u0275dir=Wn({type:n,selectors:[["","rowOutlet",""]]}),n})(),n6=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(U(ac),U(gr))},n.\u0275dir=Wn({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),r6=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(U(ac),U(gr))},n.\u0275dir=Wn({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),o6=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(U(ac),U(gr))},n.\u0275dir=Wn({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),a6=(()=>{class n{constructor(e,i,o,a,s,l,d,f,C,M,T,F){this._differs=e,this._changeDetectorRef=i,this._elementRef=o,this._dir=s,this._platform=d,this._viewRepeater=f,this._coalescedStyleScheduler=C,this._viewportRuler=M,this._stickyPositioningListener=T,this._ngZone=F,this._onDestroy=new Fe,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 Cn,this.viewChange=new Yn({start:0,end:Number.MAX_VALUE}),a||this._elementRef.nativeElement.setAttribute("role","table"),this._document=l,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=Eo(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Eo(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(ma(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(),YL(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,(o,a,s)=>this._getEmbeddedViewArgs(o.item,s),o=>o.item.data,o=>{1===o.operation&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{i.get(o.currentIndex).context.$implicit=o.item.data}),this._updateNoDataRow(),this._ngZone&&Zo.isInAngularZone()?this._ngZone.onStable.pipe(Oa(1),ma(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),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=e.length?"":"none");const a=this._headerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,a,"top"),this._headerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=e.length?"":"none");const a=this._footerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,a,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,a),this._footerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((a,s)=>{this._addStickyColumnStyles([a],this._headerRowDefs[s])}),this._rowDefs.forEach(a=>{const s=[];for(let l=0;l{this._addStickyColumnStyles([a],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(a=>a.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{const l=o&&o.has(s)?o.get(s):[];if(l.length){const d=l.shift();return d.dataIndex=i,d}return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),s6(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=s6(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=s6(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=s6(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(s,l)=>s||!!l.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();const a=this._footerRowDefs.reduce(e,!1);return a&&this._forceRenderFooterRows(),i||o||a}_switchDataSource(e){this._data=[],YL(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;YL(this.dataSource)?e=this.dataSource.connect(this):ij(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Wo(this.dataSource)),this._renderChangeSubscription=e.pipe(ma(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 o=Array.from(i.columns||[]).map(l=>this._columnDefsByName.get(l)),a=o.map(l=>l.sticky),s=o.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(e,a,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let o=0;o!a.when||a.when(i,e));else{let a=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;a&&o.push(a)}return o}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,o,a={}){const s=e.viewContainer.createEmbeddedView(i.template,a,o);return this._renderCellTemplateForItem(i,a),s}_renderCellTemplateForItem(e,i){for(let o of this._getCellTemplates(e))dw.mostRecentCellOutlet&&dw.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,o=e.length;i{const o=this._columnDefsByName.get(i);return e.extractCellTemplate(o)}):[]}_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 o of i){const a=this._document.createElement(o.tag);a.setAttribute("role","rowgroup");for(const s of o.outlets)a.appendChild(s.elementRef.nativeElement);e.appendChild(a)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,o)=>i||o.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 T9e(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Wo()).pipe(ma(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 o=this._noDataRowOutlet.viewContainer;if(i){const a=o.createEmbeddedView(e.templateRef),s=a.rootNodes[0];1===a.rootNodes.length&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=i}}return n.\u0275fac=function(e){return new(e||n)(U(By),U(Go),U(gr),ge("role"),U(cu,8),U(Fa),U(Au),U(zS),U(V$),U(y1),U(Y$,12),U(Zo,8))},n.\u0275cmp=wn({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,o){if(1&e&&(Jo(o,e6,5),Jo(o,cw,5),Jo(o,ZN,5),Jo(o,zF,5),Jo(o,jF,5)),2&e){let a;Ai(a=wi())&&(i._noDataRow=a.first),Ai(a=wi())&&(i._contentColumnDefs=a),Ai(a=wi())&&(i._contentRowDefs=a),Ai(a=wi())&&(i._contentHeaderRowDefs=a),Ai(a=wi())&&(i._contentFooterRowDefs=a)}},viewQuery:function(e,i){if(1&e&&(jr(t6,7),jr(n6,7),jr(r6,7),jr(o6,7)),2&e){let o;Ai(o=wi())&&(i._rowOutlet=o.first),Ai(o=wi())&&(i._headerRowOutlet=o.first),Ai(o=wi())&&(i._footerRowOutlet=o.first),Ai(o=wi())&&(i._noDataRowOutlet=o.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&g("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[lo([{provide:OO,useExisting:n},{provide:zS,useClass:loe},{provide:V$,useClass:dle},{provide:Y$,useValue:null}])],ngContentSelectors:_9e,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Cs(g9e),ha(0),ha(1,1),lp(2,0)(3,1)(4,2)(5,3))},dependencies:[t6,n6,r6,o6],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function s6(n,r){return n.concat(Array.from(r))}let P9e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[rF]}),n})();const O9e=[[["caption"]],[["colgroup"],["col"]]],k9e=["caption","colgroup, col"];let rT=(()=>{class n extends a6{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275cmp=wn({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&g("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[lo([{provide:zS,useClass:loe},{provide:a6,useExisting:n},{provide:OO,useExisting:n},{provide:V$,useClass:dle},{provide:Y$,useValue:null}]),Nr],ngContentSelectors:k9e,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Cs(O9e),ha(0),ha(1,1),lp(2,0)(3,1)(4,2)(5,3))},dependencies:[t6,n6,r6,o6],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})(),c2=(()=>{class n extends kO{}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["","matCellDef",""]],features:[lo([{provide:kO,useExisting:n}]),Nr]}),n})(),d2=(()=>{class n extends EO{}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["","matHeaderCellDef",""]],features:[lo([{provide:EO,useExisting:n}]),Nr]}),n})(),G$=(()=>{class n extends JN{}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["","matFooterCellDef",""]],features:[lo([{provide:JN,useExisting:n}]),Nr]}),n})(),u2=(()=>{class n extends cw{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 r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[lo([{provide:cw,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),Nr]}),n})(),p2=(()=>{class n extends N${}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Nr]}),n})(),W$=(()=>{class n extends lle{}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[Nr]}),n})(),h2=(()=>{class n extends H${}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Nr]}),n})(),oT=(()=>{class n extends zF{}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[lo([{provide:zF,useExisting:n}]),Nr]}),n})(),Q$=(()=>{class n extends jF{}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[lo([{provide:jF,useExisting:n}]),Nr]}),n})(),aT=(()=>{class n extends ZN{}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275dir=Wn({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[lo([{provide:ZN,useExisting:n}]),Nr]}),n})(),sT=(()=>{class n extends z${}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275cmp=wn({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[lo([{provide:z$,useExisting:n}]),Nr],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&lp(0,0)},dependencies:[dw],encapsulation:2}),n})(),K$=(()=>{class n extends j${}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275cmp=wn({type:n,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[lo([{provide:j$,useExisting:n}]),Nr],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&lp(0,0)},dependencies:[dw],encapsulation:2}),n})(),lT=(()=>{class n extends $${}return n.\u0275fac=function(){let r;return function(i){return(r||(r=qe(n)))(i||n)}}(),n.\u0275cmp=wn({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[lo([{provide:$$,useExisting:n}]),Nr],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&lp(0,0)},dependencies:[dw],encapsulation:2}),n})(),hle=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=br({type:n}),n.\u0275inj=vr({imports:[P9e,as,as]}),n})();class N9e extends soe{constructor(r=[]){super(),this._renderData=new Yn([]),this._filter=new Yn(""),this._internalPageChanges=new Fe,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const o=e[i];if(eoe(o)){const a=Number(o);return a<9007199254740991?a:o}return o},this.sortData=(e,i)=>{const o=i.active,a=i.direction;return o&&""!=a?e.sort((s,l)=>{let d=this.sortingDataAccessor(s,o),f=this.sortingDataAccessor(l,o);const C=typeof d,M=typeof f;C!==M&&("number"===C&&(d+=""),"number"===M&&(f+=""));let T=0;return null!=d&&null!=f?d>f?T=1:d{const o=Object.keys(e).reduce((s,l)=>s+e[l]+"\u25ec","").toLowerCase(),a=i.trim().toLowerCase();return-1!=o.indexOf(a)},this._data=new Yn(r),this._updateChangeSubscription()}get data(){return this._data.value}set data(r){r=Array.isArray(r)?r:[],this._data.next(r),this._renderChangesSubscription||this._filterData(r)}get filter(){return this._filter.value}set filter(r){this._filter.next(r),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(r){this._sort=r,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(r){this._paginator=r,this._updateChangeSubscription()}_updateChangeSubscription(){var r;const e=this._sort?or(this._sort.sortChange,this._sort.initialized):Wo(null),i=this._paginator?or(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Wo(null),a=o1([this._data,this._filter]).pipe(Ct(([d])=>this._filterData(d))),s=o1([a,e]).pipe(Ct(([d])=>this._orderData(d))),l=o1([s,i]).pipe(Ct(([d])=>this._pageData(d)));null===(r=this._renderChangesSubscription)||void 0===r||r.unsubscribe(),this._renderChangesSubscription=l.subscribe(d=>this._renderData.next(d))}_filterData(r){return this.filteredData=null==this.filter||""===this.filter?r:r.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(r){return this.sort?this.sortData(r.slice(),this.sort):r}_pageData(r){if(!this.paginator)return r;const e=this.paginator.pageIndex*this.paginator.pageSize;return r.slice(e,e+this.paginator.pageSize)}_updatePaginator(r){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=r,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,i);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var r;null===(r=this._renderChangesSubscription)||void 0===r||r.unsubscribe(),this._renderChangesSubscription=null}}class uw extends N9e{}var Fu=Uint8Array,Nm=Uint16Array,f2=Uint32Array,IO=new Fu([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),FO=new Fu([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),$F=new Fu([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),mle=function(n,r){for(var e=new Nm(31),i=0;i<31;++i)e[i]=r+=1<>>1|(21845&kp)<<1;YF[kp]=((65280&(m2=(61680&(m2=(52428&m2)>>>2|(13107&m2)<<2))>>>4|(3855&m2)<<4))>>>8|(255&m2)<<8)>>>1}var D1=function(n,r,e){for(var i=n.length,o=0,a=new Nm(r);o>>d]=f}else for(l=new Nm(i),o=0;o>>15-n[o];return l},pw=new Fu(288);for(kp=0;kp<144;++kp)pw[kp]=8;for(kp=144;kp<256;++kp)pw[kp]=9;for(kp=256;kp<280;++kp)pw[kp]=7;for(kp=280;kp<288;++kp)pw[kp]=8;var RO=new Fu(32);for(kp=0;kp<32;++kp)RO[kp]=5;var ble=D1(pw,9,0),yle=D1(pw,9,1),Cle=D1(RO,5,0),Ale=D1(RO,5,1),c6=function(n){for(var r=n[0],e=1;er&&(r=n[e]);return r},P1=function(n,r,e){var i=r/8>>0;return(n[i]|n[i+1]<<8)>>>(7&r)&e},d6=function(n,r){var e=r/8>>0;return(n[e]|n[e+1]<<8|n[e+2]<<16)>>>(7&r)},GF=function(n){return(n/8>>0)+(7&n&&1)},cT=function(n,r,e){(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length);var i=new(n instanceof Nm?Nm:n instanceof f2?f2:Fu)(e-r);return i.set(n.subarray(r,e)),i},uC=function(n,r,e){var i=r/8>>0;n[i]|=e<<=7&r,n[i+1]|=e>>>8},BO=function(n,r,e){var i=r/8>>0;n[i]|=e<<=7&r,n[i+1]|=e>>>8,n[i+2]|=e>>>16},p6=function(n,r){for(var e=[],i=0;iT&&(T=a[i].s);var F=new Nm(T+1),pe=h6(e[C-1],F,0);if(pe>r){i=0;var ce=0,fe=pe-r,Pe=1<r))break;ce+=Pe-(1<>>=fe;ce>0;){var Ge=a[i].s;F[Ge]=0&&ce;--i){var lt=a[i].s;F[lt]==r&&(--F[lt],++ce)}pe=r}return[new Fu(F),pe]},h6=function(n,r,e){return-1==n.s?Math.max(h6(n.l,r,e+1),h6(n.r,r,e+1)):r[n.s]=e},J$=function(n){for(var r=n.length;r&&!n[--r];);for(var e=new Nm(++r),i=0,o=n[0],a=1,s=function(d){e[i++]=d},l=1;l<=r;++l)if(n[l]==o&&l!=r)++a;else{if(!o&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(o),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(o);a=1,o=n[l]}return[e.subarray(0,i),r]},LO=function(n,r){for(var e=0,i=0;i>>8,n[o+2]=255^n[o],n[o+3]=255^n[o+1];for(var a=0;a4&&!ii[$F[nn-1]];--nn);var Lt,pn,hn,ct,Fn=f+5<<3,At=LO(o,pw)+LO(a,RO)+s,yn=LO(o,T)+LO(a,ce)+s+14+3*nn+LO(Ot,ii)+(2*Ot[16]+3*Ot[17]+7*Ot[18]);if(Fn<=At&&Fn<=yn)return WF(r,C,n.subarray(d,d+f));if(uC(r,C,1+(yn15&&(uC(r,C,ai[tn]>>>5&127),C+=ai[tn]>>>12)}}else Lt=ble,pn=pw,hn=Cle,ct=RO;for(tn=0;tn255){var si;BO(r,C,Lt[257+(si=i[tn]>>>18&31)]),C+=pn[si+257],si>7&&(uC(r,C,i[tn]>>>23&31),C+=IO[si]);var er=31&i[tn];BO(r,C,hn[er]),C+=ct[er],er>3&&(BO(r,C,i[tn]>>>5&8191),C+=FO[er])}else BO(r,C,Lt[i[tn]]),C+=pn[i[tn]];return BO(r,C,Lt[256]),C+pn[256]},wle=new f2([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),xle=new Fu(0),m6=function(n,r,e,i,o){return function(n,r,e,i,o,a){var s=n.length,l=new Fu(i+s+5*(1+Math.floor(s/7e3))+o),d=l.subarray(i,l.length-o),f=0;if(!r||s<8)for(var C=0;C<=s;C+=65535){var M=C+65535;M>>13,pe=8191&T,ce=(1<7e3||ii>24576)&&Lt>423){f=Z$(n,d,0,Pt,Qt,Ot,Nn,ii,nn,C-nn,f),ii=tn=Nn=0,nn=C;for(var pn=0;pn<286;++pn)Qt[pn]=0;for(pn=0;pn<30;++pn)Ot[pn]=0}var hn=2,ct=0,rn=pe,An=At-yn&32767;if(Lt>2&&Fn==lt(C-An))for(var Mn=Math.min(F,Lt)-1,ai=Math.min(32767,C),si=Math.min(258,Lt);An<=ai&&--rn&&At!=yn;){if(n[C+hn]==n[C+hn-An]){for(var er=0;erhn){if(hn=er,ct=An,er>Mn)break;var dr=Math.min(An,er-2),qi=0;for(pn=0;pnqi&&(qi=ka,yn=yr)}}}An+=(At=yn)-(yn=fe[At])+32768&32767}if(ct){Pt[ii++]=268435456|l6[hn]<<18|X$[ct];var $o=31&l6[hn],$r=31&X$[ct];Nn+=IO[$o]+FO[$r],++Qt[257+$o],++Ot[$r],Ht=C+hn,++tn}else Pt[ii++]=n[C],++Qt[n[C]]}}f=Z$(n,d,a,Pt,Qt,Ot,Nn,ii,nn,C-nn,f),a||(f=WF(d,f,xle))}return cT(l,0,i+GF(f)+o)}(n,r.level??6,null==r.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(n.length)))):12+r.mem,e,i,!o)};function KF(n,r){void 0===r&&(r={});var e=function(){var n=1,r=0;return{p:function(e){for(var i=n,o=r,a=e.length,s=0;s!=a;){for(var l=Math.min(s+5552,a);s>>8<<16|(255&r)<<8|r>>>8)+2*((255&n)<<23)}}}();e.p(n);var i=m6(n,r,2,4);return function(n,r){var e=r.level,i=0==e?0:e<6?1:9==e?3:2;n[0]=120,n[1]=i<<6|(i?32-2*i:1)}(i,r),function(n,r,e){for(;e;++r)n[r]=e,e>>>=8}(i,i.length-4,e.d()),i}function v6(n,r){return function(n,r,e){var i=n.length,o=!r||e,a=!e||e.i;e||(e={}),r||(r=new Fu(3*i));var s=function(dr){var qi=r.length;if(dr>qi){var yr=new Fu(Math.max(2*qi,dr));yr.set(r),r=yr}},l=e.f||0,d=e.p||0,f=e.b||0,C=e.l,M=e.d,T=e.m,F=e.n,pe=8*i;do{if(!C){e.f=l=P1(n,d,1);var ce=P1(n,d+1,3);if(d+=3,!ce){var Pe=n[(fe=GF(d)+4)-4]|n[fe-3]<<8,Ne=fe+Pe;if(Ne>i){if(a)throw"unexpected EOF";break}o&&s(f+Pe),r.set(n.subarray(fe,Ne),f),e.b=f+=Pe,e.p=d=8*Ne;continue}if(1==ce)C=yle,M=Ale,T=9,F=5;else{if(2!=ce)throw"invalid block type";var Ge=P1(n,d,31)+257,lt=P1(n,d+10,15)+4,Pt=Ge+P1(n,d+5,31)+1;d+=14;for(var Qt=new Fu(Pt),Ot=new Fu(19),tn=0;tnpe)break;var Ht=D1(Ot,Nn,1);for(tn=0;tn>>4)<16)Qt[tn++]=fe;else{var Fn=0,At=0;for(16==fe?(At=3+P1(n,d,3),d+=2,Fn=Qt[tn-1]):17==fe?(At=3+P1(n,d,7),d+=3):18==fe&&(At=11+P1(n,d,127),d+=7);At--;)Qt[tn++]=Fn}}var yn=Qt.subarray(0,Ge),Lt=Qt.subarray(Ge);T=c6(yn),F=c6(Lt),C=D1(yn,T,1),M=D1(Lt,F,1)}if(d>pe)throw"unexpected EOF"}o&&s(f+131072);for(var pn=(1<>>4;if((d+=15&Fn)>pe)throw"unexpected EOF";if(!Fn)throw"invalid length/literal";if(rn<256)r[f++]=rn;else{if(256==rn){C=null;break}var An=rn-254;rn>264&&(An=P1(n,d,(1<<(Mn=IO[tn=rn-257]))-1)+q$[tn],d+=Mn);var ai=M[d6(n,d)&hn],si=ai>>>4;if(!ai)throw"invalid distance";if(d+=15&ai,Lt=vle[si],si>3){var Mn=FO[si];Lt+=d6(n,d)&(1<pe)throw"unexpected EOF";o&&s(f+131072);for(var er=f+An;f>>4>7||(n[0]<<8|n[1])%31)throw"invalid zlib data";if(32&n[1])throw"invalid zlib data: preset dictionaries not supported"}(n),n.subarray(2,-4)),r)}var Dl=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function oY(){Dl.console&&"function"==typeof Dl.console.log&&Dl.console.log.apply(Dl.console,arguments)}var qu={log:oY,warn:function(n){Dl.console&&("function"==typeof Dl.console.warn?Dl.console.warn.apply(Dl.console,arguments):oY.call(null,arguments))},error:function(n){Dl.console&&("function"==typeof Dl.console.error?Dl.console.error.apply(Dl.console,arguments):oY(n))}};function aY(n,r,e){var i=new XMLHttpRequest;i.open("GET",n),i.responseType="blob",i.onload=function(){dT(i.response,r,e)},i.onerror=function(){qu.error("could not download file")},i.send()}function jle(n){var r=new XMLHttpRequest;r.open("HEAD",n,!1);try{r.send()}catch{}return r.status>=200&&r.status<=299}function y6(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(r)}}var HO,C6,dT=Dl.saveAs||("object"!=typeof window||window!==Dl?function(){}:"download"in HTMLAnchorElement.prototype?function(n,r,e){var i=Dl.URL||Dl.webkitURL,o=document.createElement("a");o.download=r=r||n.name||"download",o.rel="noopener","string"==typeof n?(o.href=n,o.origin!==location.origin?jle(o.href)?aY(n,r,e):y6(o,o.target="_blank"):y6(o)):(o.href=i.createObjectURL(n),setTimeout(function(){i.revokeObjectURL(o.href)},4e4),setTimeout(function(){y6(o)},0))}:"msSaveOrOpenBlob"in navigator?function(n,r,e){if(r=r||n.name||"download","string"==typeof n)if(jle(n))aY(n,r,e);else{var i=document.createElement("a");i.href=n,i.target="_blank",setTimeout(function(){y6(i)})}else navigator.msSaveOrOpenBlob(function(o,a){return void 0===a?a={autoBom:!1}:"object"!=typeof a&&(qu.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob([String.fromCharCode(65279),o],{type:o.type}):o}(n,e),r)}:function(n,r,e,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof n)return aY(n,r,e);var o="application/octet-stream"===n.type,a=/constructor/i.test(Dl.HTMLElement)||Dl.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&a)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var C=l.result;C=s?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=C:location=C,i=null},l.readAsDataURL(n)}else{var d=Dl.URL||Dl.webkitURL,f=d.createObjectURL(n);i?i.location=f:location.href=f,i=null,setTimeout(function(){d.revokeObjectURL(f)},4e4)}});function $le(n){var r;n=n||"",this.ok=!1,"#"==n.charAt(0)&&(n=n.substr(1,6)),n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],i=0;i255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),d=this.g.toString(16),f=this.b.toString(16);return 1==l.length&&(l="0"+l),1==d.length&&(d="0"+d),1==f.length&&(f="0"+f),"#"+l+d+f}}function sY(n,r){var e=n[0],i=n[1],o=n[2],a=n[3];e=l_(e,i,o,a,r[0],7,-680876936),a=l_(a,e,i,o,r[1],12,-389564586),o=l_(o,a,e,i,r[2],17,606105819),i=l_(i,o,a,e,r[3],22,-1044525330),e=l_(e,i,o,a,r[4],7,-176418897),a=l_(a,e,i,o,r[5],12,1200080426),o=l_(o,a,e,i,r[6],17,-1473231341),i=l_(i,o,a,e,r[7],22,-45705983),e=l_(e,i,o,a,r[8],7,1770035416),a=l_(a,e,i,o,r[9],12,-1958414417),o=l_(o,a,e,i,r[10],17,-42063),i=l_(i,o,a,e,r[11],22,-1990404162),e=l_(e,i,o,a,r[12],7,1804603682),a=l_(a,e,i,o,r[13],12,-40341101),o=l_(o,a,e,i,r[14],17,-1502002290),e=c_(e,i=l_(i,o,a,e,r[15],22,1236535329),o,a,r[1],5,-165796510),a=c_(a,e,i,o,r[6],9,-1069501632),o=c_(o,a,e,i,r[11],14,643717713),i=c_(i,o,a,e,r[0],20,-373897302),e=c_(e,i,o,a,r[5],5,-701558691),a=c_(a,e,i,o,r[10],9,38016083),o=c_(o,a,e,i,r[15],14,-660478335),i=c_(i,o,a,e,r[4],20,-405537848),e=c_(e,i,o,a,r[9],5,568446438),a=c_(a,e,i,o,r[14],9,-1019803690),o=c_(o,a,e,i,r[3],14,-187363961),i=c_(i,o,a,e,r[8],20,1163531501),e=c_(e,i,o,a,r[13],5,-1444681467),a=c_(a,e,i,o,r[2],9,-51403784),o=c_(o,a,e,i,r[7],14,1735328473),e=d_(e,i=c_(i,o,a,e,r[12],20,-1926607734),o,a,r[5],4,-378558),a=d_(a,e,i,o,r[8],11,-2022574463),o=d_(o,a,e,i,r[11],16,1839030562),i=d_(i,o,a,e,r[14],23,-35309556),e=d_(e,i,o,a,r[1],4,-1530992060),a=d_(a,e,i,o,r[4],11,1272893353),o=d_(o,a,e,i,r[7],16,-155497632),i=d_(i,o,a,e,r[10],23,-1094730640),e=d_(e,i,o,a,r[13],4,681279174),a=d_(a,e,i,o,r[0],11,-358537222),o=d_(o,a,e,i,r[3],16,-722521979),i=d_(i,o,a,e,r[6],23,76029189),e=d_(e,i,o,a,r[9],4,-640364487),a=d_(a,e,i,o,r[12],11,-421815835),o=d_(o,a,e,i,r[15],16,530742520),e=u_(e,i=d_(i,o,a,e,r[2],23,-995338651),o,a,r[0],6,-198630844),a=u_(a,e,i,o,r[7],10,1126891415),o=u_(o,a,e,i,r[14],15,-1416354905),i=u_(i,o,a,e,r[5],21,-57434055),e=u_(e,i,o,a,r[12],6,1700485571),a=u_(a,e,i,o,r[3],10,-1894986606),o=u_(o,a,e,i,r[10],15,-1051523),i=u_(i,o,a,e,r[1],21,-2054922799),e=u_(e,i,o,a,r[8],6,1873313359),a=u_(a,e,i,o,r[15],10,-30611744),o=u_(o,a,e,i,r[6],15,-1560198380),i=u_(i,o,a,e,r[13],21,1309151649),e=u_(e,i,o,a,r[4],6,-145523070),a=u_(a,e,i,o,r[11],10,-1120210379),o=u_(o,a,e,i,r[2],15,718787259),i=u_(i,o,a,e,r[9],21,-343485551),n[0]=_2(e,n[0]),n[1]=_2(i,n[1]),n[2]=_2(o,n[2]),n[3]=_2(a,n[3])}function A6(n,r,e,i,o,a){return r=_2(_2(r,n),_2(i,a)),_2(r<>>32-o,e)}function l_(n,r,e,i,o,a,s){return A6(r&e|~r&i,n,r,o,a,s)}function c_(n,r,e,i,o,a,s){return A6(r&i|e&~i,n,r,o,a,s)}function d_(n,r,e,i,o,a,s){return A6(r^e^i,n,r,o,a,s)}function u_(n,r,e,i,o,a,s){return A6(e^(r|~i),n,r,o,a,s)}function Yle(n){var r,e=n.length,i=[1732584193,-271733879,-1732584194,271733878];for(r=64;r<=n.length;r+=64)sY(i,q9e(n.substring(r-64,r)));n=n.substring(r-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(r=0;r>2]|=n.charCodeAt(r)<<(r%4<<3);if(o[r>>2]|=128<<(r%4<<3),r>55)for(sY(i,o),r=0;r<16;r++)o[r]=0;return o[14]=8*e,sY(i,o),i}function q9e(n){var r,e=[];for(r=0;r<64;r+=4)e[r>>2]=n.charCodeAt(r)+(n.charCodeAt(r+1)<<8)+(n.charCodeAt(r+2)<<16)+(n.charCodeAt(r+3)<<24);return e}HO=Dl.atob.bind(Dl),C6=Dl.btoa.bind(Dl);var Gle="0123456789abcdef".split("");function X9e(n){for(var r="",e=0;e<4;e++)r+=Gle[n>>8*e+4&15]+Gle[n>>8*e&15];return r}function J9e(n){return String.fromCharCode((255&n)>>0,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function lY(n){return Yle(n).map(J9e).join("")}function _2(n,r){return n+r&4294967295}function cY(n,r){var e,i,o;if(n!==e){for(var s=(o=n,new Array(1+(256/n.length>>0)+1).join(o)),l=[],d=0;d<256;d++)l[d]=d;var f=0;for(d=0;d<256;d++){var C=l[d];f=(f+C+s.charCodeAt(d))%256,l[d]=l[f],l[f]=C}e=n,i=l}else l=i;var M=r.length,T=0,F=0,pe="";for(d=0;d\x80/\f\xa9\xfedSiz";let a=(r+this.padding).substr(0,32),s=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,s),this.P=-(1+(255^o)),this.encryptionKey=lY(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=cY(this.encryptionKey,this.padding)}function Qle(n){if("object"!=typeof n)throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var r={};this.subscribe=function(e,i,o){if(o=o||!1,"string"!=typeof e||"function"!=typeof i||"boolean"!=typeof o)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");r.hasOwnProperty(e)||(r[e]={});var a=Math.random().toString(35);return r[e][a]=[i,!!o],a},this.unsubscribe=function(e){for(var i in r)if(r[i][e])return delete r[i][e],0===Object.keys(r[i]).length&&delete r[i],!0;return!1},this.publish=function(e){if(r.hasOwnProperty(e)){var i=Array.prototype.slice.call(arguments,1),o=[];for(var a in r[e]){var s=r[e][a];try{s[0].apply(n,i)}catch(l){Dl.console&&qu.error("jsPDF PubSub Error",l.message,l)}s[1]&&o.push(a)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return r}}function w6(n){if(!(this instanceof w6))return new w6(n);var r="opacity,stroke-opacity".split(",");for(var e in n)n.hasOwnProperty(e)&&r.indexOf(e)>=0&&(this[e]=n[e]);this.id="",this.objectNumber=-1}function Kle(n,r){this.gState=n,this.matrix=r,this.id="",this.objectNumber=-1}function uT(n,r,e,i,o){if(!(this instanceof uT))return new uT(n,r,e,i,o);this.type="axial"===n?2:3,this.coords=r,this.colors=e,Kle.call(this,i,o)}function UO(n,r,e,i,o){if(!(this instanceof UO))return new UO(n,r,e,i,o);this.boundingBox=n,this.xStep=r,this.yStep=e,this.stream="",this.cloneIndex=0,Kle.call(this,i,o)}function Pl(n){var r,e="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],o=arguments[2],a=arguments[3],s=[],l=1,d=16,f="S",C=null;"object"==typeof(n=n||{})&&(e=n.orientation,i=n.unit||i,o=n.format||o,a=n.compress||n.compressPdf||a,null!==(C=n.encryption||null)&&(C.userPassword=C.userPassword||"",C.ownerPassword=C.ownerPassword||"",C.userPermissions=C.userPermissions||[]),l="number"==typeof n.userUnit?Math.abs(n.userUnit):1,void 0!==n.precision&&(r=n.precision),void 0!==n.floatPrecision&&(d=n.floatPrecision),f=n.defaultPathOperation||"S"),s=n.filters||(!0===a?["FlateEncode"]:s),i=i||"mm",e=(""+(e||"P")).toLowerCase();var M=n.putOnlyUsedFonts||!1,T={},F={internal:{},__private__:{}};F.__private__.PubSub=Qle;var pe="1.3",ce=F.__private__.getPdfVersion=function(){return pe};F.__private__.setPdfVersion=function(Ie){pe=Ie};var fe={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};F.__private__.getPageFormats=function(){return fe};var Pe=F.__private__.getPageFormat=function(Ie){return fe[Ie]};o=o||"a4";var Ne={COMPAT:"compat",ADVANCED:"advanced"},Ge=Ne.COMPAT;function lt(){this.saveGraphicsState(),xi(new rl(ks,0,0,-ks,0,H2()*ks).toString()+" cm"),this.setFontSize(this.getFontSize()/ks),f="n",Ge=Ne.ADVANCED}function Pt(){this.restoreGraphicsState(),f="S",Ge=Ne.COMPAT}var Qt=function(Ie,zt){if("bold"==Ie&&"normal"==zt||"bold"==Ie&&400==zt||"normal"==Ie&&"italic"==zt||"bold"==Ie&&"italic"==zt)throw new Error("Invalid Combination of fontweight and fontstyle");return zt&&Ie!==zt&&(Ie=400==zt?"italic"==Ie?"italic":"normal":700==zt&&"italic"!==Ie?"bold":Ie+""+zt),Ie};F.advancedAPI=function(Ie){var zt=Ge===Ne.COMPAT;return zt&<.call(this),"function"!=typeof Ie||(Ie(this),zt&&Pt.call(this)),this},F.compatAPI=function(Ie){var zt=Ge===Ne.ADVANCED;return zt&&Pt.call(this),"function"!=typeof Ie||(Ie(this),zt&<.call(this)),this},F.isAdvancedAPI=function(){return Ge===Ne.ADVANCED};var Ot,tn=function(Ie){if(Ge!==Ne.ADVANCED)throw new Error(Ie+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Nn=F.roundToPrecision=F.__private__.roundToPrecision=function(Ie,zt){var li=r||zt;if(isNaN(Ie)||isNaN(li))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ie.toFixed(li).replace(/0+$/,"")};Ot=F.hpf=F.__private__.hpf="number"==typeof d?function(Ie){if(isNaN(Ie))throw new Error("Invalid argument passed to jsPDF.hpf");return Nn(Ie,d)}:"smart"===d?function(Ie){if(isNaN(Ie))throw new Error("Invalid argument passed to jsPDF.hpf");return Nn(Ie,Ie>-1&&Ie<1?16:5)}:function(Ie){if(isNaN(Ie))throw new Error("Invalid argument passed to jsPDF.hpf");return Nn(Ie,16)};var ii=F.f2=F.__private__.f2=function(Ie){if(isNaN(Ie))throw new Error("Invalid argument passed to jsPDF.f2");return Nn(Ie,2)},Ht=F.__private__.f3=function(Ie){if(isNaN(Ie))throw new Error("Invalid argument passed to jsPDF.f3");return Nn(Ie,3)},nn=F.scale=F.__private__.scale=function(Ie){if(isNaN(Ie))throw new Error("Invalid argument passed to jsPDF.scale");return Ge===Ne.COMPAT?Ie*ks:Ge===Ne.ADVANCED?Ie:void 0},Fn=function(Ie){return Ge===Ne.COMPAT?H2()-Ie:Ge===Ne.ADVANCED?Ie:void 0},At=function(Ie){return nn(Fn(Ie))};F.__private__.setPrecision=F.setPrecision=function(Ie){"number"==typeof parseInt(Ie,10)&&(r=parseInt(Ie,10))};var yn,Lt="00000000000000000000000000000000",pn=F.__private__.getFileId=function(){return Lt},hn=F.__private__.setFileId=function(Ie){return Lt=void 0!==Ie&&/^[a-fA-F0-9]{32}$/.test(Ie)?Ie.toUpperCase():Lt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==C&&(b_=new VO(C.userPermissions,C.userPassword,C.ownerPassword,Lt)),Lt};F.setFileId=function(Ie){return hn(Ie),this},F.getFileId=function(){return pn()};var ct=F.__private__.convertDateToPDFDate=function(Ie){var zt=Ie.getTimezoneOffset(),li=zt<0?"+":"-",Ri=Math.floor(Math.abs(zt/60)),_r=Math.abs(zt%60),Qr=[li,si(Ri),"'",si(_r),"'"].join("");return["D:",Ie.getFullYear(),si(Ie.getMonth()+1),si(Ie.getDate()),si(Ie.getHours()),si(Ie.getMinutes()),si(Ie.getSeconds()),Qr].join("")},rn=F.__private__.convertPDFDateToDate=function(Ie){var zt=parseInt(Ie.substr(2,4),10),li=parseInt(Ie.substr(6,2),10)-1,Ri=parseInt(Ie.substr(8,2),10),_r=parseInt(Ie.substr(10,2),10),Qr=parseInt(Ie.substr(12,2),10),pa=parseInt(Ie.substr(14,2),10);return new Date(zt,li,Ri,_r,Qr,pa,0)},An=F.__private__.setCreationDate=function(Ie){var zt;if(void 0===Ie&&(Ie=new Date),Ie instanceof Date)zt=ct(Ie);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(Ie))throw new Error("Invalid argument passed to jsPDF.setCreationDate");zt=Ie}return yn=zt},Mn=F.__private__.getCreationDate=function(Ie){var zt=yn;return"jsDate"===Ie&&(zt=rn(yn)),zt};F.setCreationDate=function(Ie){return An(Ie),this},F.getCreationDate=function(Ie){return Mn(Ie)};var ai,si=F.__private__.padd2=function(Ie){return("0"+parseInt(Ie)).slice(-2)},er=F.__private__.padd2Hex=function(Ie){return("00"+(Ie=Ie.toString())).substr(Ie.length)},dr=0,qi=[],yr=[],Mo=0,ka=[],$o=[],$r=!1,oa=yr,vs=function(){dr=0,Mo=0,yr=[],qi=[],ka=[],Dw=v_(),B1=v_()};F.__private__.setCustomOutputDestination=function(Ie){$r=!0,oa=Ie};var Ha=function(Ie){$r||(oa=Ie)};F.__private__.resetCustomOutputDestination=function(){$r=!1,oa=yr};var xi=F.__private__.out=function(Ie){return Ie=Ie.toString(),Mo+=Ie.length+1,oa.push(Ie),oa},Yo=F.__private__.write=function(Ie){return xi(1===arguments.length?Ie.toString():Array.prototype.join.call(arguments," "))},Ga=F.__private__.getArrayBuffer=function(Ie){for(var zt=Ie.length,li=new ArrayBuffer(zt),Ri=new Uint8Array(li);zt--;)Ri[zt]=Ie.charCodeAt(zt);return li},Do=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];F.__private__.getStandardFonts=function(){return Do};var ls=n.fontSize||16;F.__private__.setFontSize=F.setFontSize=function(Ie){return ls=Ge===Ne.ADVANCED?Ie/ks:Ie,this};var Ss,pc=F.__private__.getFontSize=F.getFontSize=function(){return Ge===Ne.COMPAT?ls:ls*ks},Nc=n.R2L||!1;F.__private__.setR2L=F.setR2L=function(Ie){return Nc=Ie,this},F.__private__.getR2L=F.getR2L=function(){return Nc};var Os,Fc=F.__private__.setZoomMode=function(Ie){if(/^\d*\.?\d*%$/.test(Ie))Ss=Ie;else if(isNaN(Ie)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(Ie))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ie+'" is not recognized.');Ss=Ie}else Ss=parseInt(Ie,10)};F.__private__.getZoomMode=function(){return Ss};var Ws,Ju=F.__private__.setPageMode=function(Ie){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ie))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ie+'" is not recognized.');Os=Ie};F.__private__.getPageMode=function(){return Os};var hm=F.__private__.setLayoutMode=function(Ie){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ie))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ie+'" is not recognized.');Ws=Ie};F.__private__.getLayoutMode=function(){return Ws},F.__private__.setDisplayMode=F.setDisplayMode=function(Ie,zt,li){return Fc(Ie),hm(zt),Ju(li),this};var Cd={title:"",subject:"",author:"",keywords:"",creator:""};F.__private__.getDocumentProperty=function(Ie){if(-1===Object.keys(Cd).indexOf(Ie))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Cd[Ie]},F.__private__.getDocumentProperties=function(){return Cd},F.__private__.setDocumentProperties=F.setProperties=F.setDocumentProperties=function(Ie){for(var zt in Cd)Cd.hasOwnProperty(zt)&&Ie[zt]&&(Cd[zt]=Ie[zt]);return this},F.__private__.setDocumentProperty=function(Ie,zt){if(-1===Object.keys(Cd).indexOf(Ie))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Cd[Ie]=zt};var $c,ks,O2,ww,k2,du={},qp={},MC=[],Zu={},ST={},Xp={},xw={},Mw=null,Ph=0,tc=[],uu=new Qle(F),E2=n.hotfixes||[],Pg={},SC={},Sw=[],rl=function(Ie,zt,li,Ri,_r,Qr){if(!(this instanceof rl))return new rl(Ie,zt,li,Ri,_r,Qr);isNaN(Ie)&&(Ie=1),isNaN(zt)&&(zt=0),isNaN(li)&&(li=0),isNaN(Ri)&&(Ri=1),isNaN(_r)&&(_r=0),isNaN(Qr)&&(Qr=0),this._matrix=[Ie,zt,li,Ri,_r,Qr]};Object.defineProperty(rl.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Ie){this._matrix[0]=Ie}}),Object.defineProperty(rl.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Ie){this._matrix[1]=Ie}}),Object.defineProperty(rl.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Ie){this._matrix[2]=Ie}}),Object.defineProperty(rl.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Ie){this._matrix[3]=Ie}}),Object.defineProperty(rl.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Ie){this._matrix[4]=Ie}}),Object.defineProperty(rl.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Ie){this._matrix[5]=Ie}}),Object.defineProperty(rl.prototype,"a",{get:function(){return this._matrix[0]},set:function(Ie){this._matrix[0]=Ie}}),Object.defineProperty(rl.prototype,"b",{get:function(){return this._matrix[1]},set:function(Ie){this._matrix[1]=Ie}}),Object.defineProperty(rl.prototype,"c",{get:function(){return this._matrix[2]},set:function(Ie){this._matrix[2]=Ie}}),Object.defineProperty(rl.prototype,"d",{get:function(){return this._matrix[3]},set:function(Ie){this._matrix[3]=Ie}}),Object.defineProperty(rl.prototype,"e",{get:function(){return this._matrix[4]},set:function(Ie){this._matrix[4]=Ie}}),Object.defineProperty(rl.prototype,"f",{get:function(){return this._matrix[5]},set:function(Ie){this._matrix[5]=Ie}}),Object.defineProperty(rl.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(rl.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(rl.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(rl.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),rl.prototype.join=function(Ie){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Ot).join(Ie)},rl.prototype.multiply=function(Ie){return new rl(Ie.sx*this.sx+Ie.shy*this.shx,Ie.sx*this.shy+Ie.shy*this.sy,Ie.shx*this.sx+Ie.sy*this.shx,Ie.shx*this.shy+Ie.sy*this.sy,Ie.tx*this.sx+Ie.ty*this.shx+this.tx,Ie.tx*this.shy+Ie.ty*this.sy+this.ty)},rl.prototype.decompose=function(){var Ie=this.sx,zt=this.shy,li=this.shx,Ri=this.sy,_r=this.tx,Qr=this.ty,pa=Math.sqrt(Ie*Ie+zt*zt),ja=(Ie/=pa)*li+(zt/=pa)*Ri;li-=Ie*ja,Ri-=zt*ja;var ol=Math.sqrt(li*li+Ri*Ri);return ja/=ol,Ie*(Ri/=ol)>16&255,Ri=ol>>8&255,_r=255&ol}if(void 0===Ri||void 0===Qr&&li===Ri&&Ri===_r)zt="string"==typeof li?li+" "+pa[0]:2===Ie.precision?ii(li/255)+" "+pa[0]:Ht(li/255)+" "+pa[0];else if(void 0===Qr||"object"==typeof Qr){if(Qr&&!isNaN(Qr.a)&&0===Qr.a)return["1.","1.","1.",pa[1]].join(" ");zt="string"==typeof li?[li,Ri,_r,pa[1]].join(" "):2===Ie.precision?[ii(li/255),ii(Ri/255),ii(_r/255),pa[1]].join(" "):[Ht(li/255),Ht(Ri/255),Ht(_r/255),pa[1]].join(" ")}else zt="string"==typeof li?[li,Ri,_r,Qr,pa[2]].join(" "):2===Ie.precision?[ii(li),ii(Ri),ii(_r),ii(Qr),pa[2]].join(" "):[Ht(li),Ht(Ri),Ht(_r),Ht(Qr),pa[2]].join(" ");return zt},DC=F.__private__.getFilters=function(){return s},q_=F.__private__.putStream=function(Ie){var zt=(Ie=Ie||{}).data||"",li=Ie.filters||DC(),Ri=Ie.alreadyAppliedFilters||[],_r=Ie.addLength1||!1,Qr=zt.length,pa=Ie.objectId,ja=function(fm){return fm};if(null!==C&&void 0===pa)throw new Error("ObjectId must be passed to putStream for file encryption");null!==C&&(ja=b_.encryptor(pa,0));var ol={};!0===li&&(li=["FlateEncode"]);var Yc=Ie.additionalKeyValues||[],nc=(ol=void 0!==Pl.API.processDataByFilters?Pl.API.processDataByFilters(zt,li):{data:zt,reverseChain:[]}).reverseChain+(Array.isArray(Ri)?Ri.join(" "):Ri.toString());if(0!==ol.data.length&&(Yc.push({key:"Length",value:ol.data.length}),!0===_r&&Yc.push({key:"Length1",value:Qr})),0!=nc.length)if(nc.split("/").length-1==1)Yc.push({key:"Filter",value:nc});else{Yc.push({key:"Filter",value:"["+nc+"]"});for(var Fd=0;Fd>"),0!==ol.data.length&&(xi("stream"),xi(ja(ol.data)),xi("endstream"))},DT=F.__private__.putPage=function(Ie){var zt=Ie.number,li=Ie.data,Ri=Ie.objId,_r=Ie.contentsObjId;R1(Ri,!0),xi("<>"),xi("endobj");var Qr=li.join("\n");return Ge===Ne.ADVANCED&&(Qr+="\nQ"),R1(_r,!0),q_({data:Qr,filters:DC(),objectId:_r}),xi("endobj"),Ri},Pk=F.__private__.putPages=function(){var Ie,zt,li=[];for(Ie=1;Ie<=Ph;Ie++)tc[Ie].objId=v_(),tc[Ie].contentsObjId=v_();for(Ie=1;Ie<=Ph;Ie++)li.push(DT({number:Ie,data:$o[Ie],objId:tc[Ie].objId,contentsObjId:tc[Ie].contentsObjId,mediaBox:tc[Ie].mediaBox,cropBox:tc[Ie].cropBox,bleedBox:tc[Ie].bleedBox,trimBox:tc[Ie].trimBox,artBox:tc[Ie].artBox,userUnit:tc[Ie].userUnit,rootDictionaryObjId:Dw,resourceDictionaryObjId:B1}));R1(Dw,!0),xi("<>"),xi("endobj"),uu.publish("postPutPages")},Ok=function(Ie){var zt=function(li,Ri){return-1!==li.indexOf(" ")?"("+L1(li,Ri)+")":L1(li,Ri)};uu.publish("putFont",{font:Ie,out:xi,newObject:Zh,putStream:q_,pdfEscapeWithNeededParanthesis:zt}),!0!==Ie.isAlreadyPutted&&(Ie.objectNumber=Zh(),xi("<<"),xi("/Type /Font"),xi("/BaseFont /"+zt(Ie.postScriptName)),xi("/Subtype /Type1"),"string"==typeof Ie.encoding&&xi("/Encoding /"+Ie.encoding),xi("/FirstChar 32"),xi("/LastChar 255"),xi(">>"),xi("endobj"))},kk=function(){for(var Ie in du)du.hasOwnProperty(Ie)&&(!1===M||!0===M&&T.hasOwnProperty(Ie))&&Ok(du[Ie])},Ek=function(Ie){Ie.objectNumber=Zh();var zt=[];zt.push({key:"Type",value:"/XObject"}),zt.push({key:"Subtype",value:"/Form"}),zt.push({key:"BBox",value:"["+[Ot(Ie.x),Ot(Ie.y),Ot(Ie.x+Ie.width),Ot(Ie.y+Ie.height)].join(" ")+"]"}),zt.push({key:"Matrix",value:"["+Ie.matrix.toString()+"]"});var li=Ie.pages[1].join("\n");q_({data:li,additionalKeyValues:zt,objectId:Ie.objectNumber}),xi("endobj")},PT=function(){for(var Ie in Pg)Pg.hasOwnProperty(Ie)&&Ek(Pg[Ie])},RW=function(Ie,zt){var li,Ri=[],_r=1/(zt-1);for(li=0;li<1;li+=_r)Ri.push(li);Ri.push(1),0!=Ie[0].offset&&Ie.unshift({offset:0,color:Ie[0].color}),1!=Ie[Ie.length-1].offset&&Ie.push({offset:1,color:Ie[Ie.length-1].color});for(var ja="",ol=0,Yc=0;YcIe[ol+1].offset;)ol++;var nc=Ie[ol].offset,Fd=(li-nc)/(Ie[ol+1].offset-nc),gh=Ie[ol].color,Oh=Ie[ol+1].color;ja+=er(Math.round((1-Fd)*gh[0]+Fd*Oh[0]).toString(16))+er(Math.round((1-Fd)*gh[1]+Fd*Oh[1]).toString(16))+er(Math.round((1-Fd)*gh[2]+Fd*Oh[2]).toString(16))}return ja.trim()},BW=function(Ie,zt){zt||(zt=21);var li=Zh(),Ri=RW(Ie.colors,zt),_r=[];_r.push({key:"FunctionType",value:"0"}),_r.push({key:"Domain",value:"[0.0 1.0]"}),_r.push({key:"Size",value:"["+zt+"]"}),_r.push({key:"BitsPerSample",value:"8"}),_r.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),_r.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),q_({data:Ri,additionalKeyValues:_r,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:li}),xi("endobj"),Ie.objectNumber=Zh(),xi("<< /ShadingType "+Ie.type),xi("/ColorSpace /DeviceRGB");var Qr="/Coords ["+Ot(parseFloat(Ie.coords[0]))+" "+Ot(parseFloat(Ie.coords[1]))+" ";Qr+=2===Ie.type?Ot(parseFloat(Ie.coords[2]))+" "+Ot(parseFloat(Ie.coords[3])):Ot(parseFloat(Ie.coords[2]))+" "+Ot(parseFloat(Ie.coords[3]))+" "+Ot(parseFloat(Ie.coords[4]))+" "+Ot(parseFloat(Ie.coords[5])),xi(Qr+="]"),Ie.matrix&&xi("/Matrix ["+Ie.matrix.toString()+"]"),xi("/Function "+li+" 0 R"),xi("/Extend [true true]"),xi(">>"),xi("endobj")},Ik=function(Ie,zt){var li=v_(),Ri=Zh();zt.push({resourcesOid:li,objectOid:Ri}),Ie.objectNumber=Ri;var _r=[];_r.push({key:"Type",value:"/Pattern"}),_r.push({key:"PatternType",value:"1"}),_r.push({key:"PaintType",value:"1"}),_r.push({key:"TilingType",value:"1"}),_r.push({key:"BBox",value:"["+Ie.boundingBox.map(Ot).join(" ")+"]"}),_r.push({key:"XStep",value:Ot(Ie.xStep)}),_r.push({key:"YStep",value:Ot(Ie.yStep)}),_r.push({key:"Resources",value:li+" 0 R"}),Ie.matrix&&_r.push({key:"Matrix",value:"["+Ie.matrix.toString()+"]"}),q_({data:Ie.stream,additionalKeyValues:_r,objectId:Ie.objectNumber}),xi("endobj")},bH=function(Ie){var zt;for(zt in Zu)Zu.hasOwnProperty(zt)&&(Zu[zt]instanceof uT?BW(Zu[zt]):Zu[zt]instanceof UO&&Ik(Zu[zt],Ie))},LW=function(Ie){for(var zt in Ie.objectNumber=Zh(),xi("<<"),Ie)switch(zt){case"opacity":xi("/ca "+ii(Ie[zt]));break;case"stroke-opacity":xi("/CA "+ii(Ie[zt]))}xi(">>"),xi("endobj")},V4=function(){var Ie;for(Ie in Xp)Xp.hasOwnProperty(Ie)&&LW(Xp[Ie])},NW=function(){for(var Ie in xi("/XObject <<"),Pg)Pg.hasOwnProperty(Ie)&&Pg[Ie].objectNumber>=0&&xi("/"+Ie+" "+Pg[Ie].objectNumber+" 0 R");uu.publish("putXobjectDict"),xi(">>")},yH=function(){b_.oid=Zh(),xi("<<"),xi("/Filter /Standard"),xi("/V "+b_.v),xi("/R "+b_.r),xi("/U <"+b_.toHexString(b_.U)+">"),xi("/O <"+b_.toHexString(b_.O)+">"),xi("/P "+b_.P),xi(">>"),xi("endobj")},HW=function(){for(var Ie in xi("/Font <<"),du)du.hasOwnProperty(Ie)&&(!1===M||!0===M&&T.hasOwnProperty(Ie))&&xi("/"+Ie+" "+du[Ie].objectNumber+" 0 R");xi(">>")},Fk=function(){if(Object.keys(Zu).length>0){for(var Ie in xi("/Shading <<"),Zu)Zu.hasOwnProperty(Ie)&&Zu[Ie]instanceof uT&&Zu[Ie].objectNumber>=0&&xi("/"+Ie+" "+Zu[Ie].objectNumber+" 0 R");uu.publish("putShadingPatternDict"),xi(">>")}},VW=function(Ie){if(Object.keys(Zu).length>0){for(var zt in xi("/Pattern <<"),Zu)Zu.hasOwnProperty(zt)&&Zu[zt]instanceof F.TilingPattern&&Zu[zt].objectNumber>=0&&Zu[zt].objectNumber>")}},Nf=function(){if(Object.keys(Xp).length>0){var Ie;for(Ie in xi("/ExtGState <<"),Xp)Xp.hasOwnProperty(Ie)&&Xp[Ie].objectNumber>=0&&xi("/"+Ie+" "+Xp[Ie].objectNumber+" 0 R");uu.publish("putGStateDict"),xi(">>")}},U4=function(Ie){R1(Ie.resourcesOid,!0),xi("<<"),xi("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),HW(),Fk(),VW(Ie.objectOid),Nf(),NW(),xi(">>"),xi("endobj")},CH=function(){var Ie=[];kk(),V4(),PT(),bH(Ie),uu.publish("putResources"),Ie.forEach(U4),U4({resourcesOid:B1,objectOid:Number.MAX_SAFE_INTEGER}),uu.publish("postPutResources")},UW=function(){uu.publish("putAdditionalObjects");for(var Ie=0;Ie>8&&(ol=!0);Ie=ja.join("")}for(li=Ie.length;void 0===ol&&0!==li;)Ie.charCodeAt(li-1)>>8&&(ol=!0),li--;if(!ol)return Ie;for(ja=zt.noBOM?[]:[254,255],li=0,Ri=Ie.length;li>8)>>8)throw new Error("Character at position "+li+" of string '"+Ie+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ja.push(nc),ja.push(Yc-(nc<<8))}return String.fromCharCode.apply(void 0,ja)},L1=F.__private__.pdfEscape=F.pdfEscape=function(Ie,zt){return I2(Ie,zt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},wH=F.__private__.beginPage=function(Ie){$o[++Ph]=[],tc[Ph]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ie[0]),topRightY:Number(Ie[1])}},MH(Ph),Ha($o[ai])},xH=function(Ie,zt){var li,Ri,_r;switch(e=zt||e,"string"==typeof Ie&&(li=Pe(Ie.toLowerCase()),Array.isArray(li)&&(Ri=li[0],_r=li[1])),Array.isArray(Ie)&&(Ri=Ie[0]*ks,_r=Ie[1]*ks),isNaN(Ri)&&(Ri=o[0],_r=o[1]),(Ri>14400||_r>14400)&&(qu.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Ri=Math.min(14400,Ri),_r=Math.min(14400,_r)),o=[Ri,_r],e.substr(0,1)){case"l":_r>Ri&&(o=[_r,Ri]);break;case"p":Ri>_r&&(o=[_r,Ri])}wH(o),kH(Lk),xi(Kb),0!==G4&&xi(G4+" J"),0!==W4&&xi(W4+" j"),uu.publish("addPage",{pageNumber:Ph})},zW=function(Ie){Ie>0&&Ie<=Ph&&($o.splice(Ie,1),tc.splice(Ie,1),Ph--,ai>Ph&&(ai=Ph),this.setPage(ai))},MH=function(Ie){Ie>0&&Ie<=Ph&&(ai=Ie)},jW=F.__private__.getNumberOfPages=F.getNumberOfPages=function(){return $o.length-1},SH=function(Ie,zt,li){var Ri,_r=void 0;return li=li||{},zt=void 0!==zt?zt:du[$c].fontStyle,Ri=(Ie=void 0!==Ie?Ie:du[$c].fontName).toLowerCase(),void 0!==qp[Ri]&&void 0!==qp[Ri][zt]?_r=qp[Ri][zt]:void 0!==qp[Ie]&&void 0!==qp[Ie][zt]?_r=qp[Ie][zt]:!1===li.disableWarning&&qu.warn("Unable to look up font label for font '"+Ie+"', '"+zt+"'. Refer to getFontList() for available fonts."),_r||li.noFallback||null==(_r=qp.times[zt])&&(_r=qp.times.normal),_r},j4=F.__private__.putInfo=function(){var Ie=Zh(),zt=function(Ri){return Ri};for(var li in null!==C&&(zt=b_.encryptor(Ie,0)),xi("<<"),xi("/Producer ("+L1(zt("jsPDF "+Pl.version))+")"),Cd)Cd.hasOwnProperty(li)&&Cd[li]&&xi("/"+li.substr(0,1).toUpperCase()+li.substr(1)+" ("+L1(zt(Cd[li]))+")");xi("/CreationDate ("+L1(zt(yn))+")"),xi(">>"),xi("endobj")},$W=F.__private__.putCatalog=function(Ie){var zt=(Ie=Ie||{}).rootDictionaryObjId||Dw;switch(Zh(),xi("<<"),xi("/Type /Catalog"),xi("/Pages "+zt+" 0 R"),Ss||(Ss="fullwidth"),Ss){case"fullwidth":xi("/OpenAction [3 0 R /FitH null]");break;case"fullheight":xi("/OpenAction [3 0 R /FitV null]");break;case"fullpage":xi("/OpenAction [3 0 R /Fit]");break;case"original":xi("/OpenAction [3 0 R /XYZ null null 1]");break;default:var li=""+Ss;"%"===li.substr(li.length-1)&&(Ss=parseInt(Ss)/100),"number"==typeof Ss&&xi("/OpenAction [3 0 R /XYZ null null "+ii(Ss)+"]")}switch(Ws||(Ws="continuous"),Ws){case"continuous":xi("/PageLayout /OneColumn");break;case"single":xi("/PageLayout /SinglePage");break;case"two":case"twoleft":xi("/PageLayout /TwoColumnLeft");break;case"tworight":xi("/PageLayout /TwoColumnRight")}Os&&xi("/PageMode /"+Os),uu.publish("putCatalog"),xi(">>"),xi("endobj")},YW=F.__private__.putTrailer=function(){xi("trailer"),xi("<<"),xi("/Size "+(dr+1)),xi("/Root "+dr+" 0 R"),xi("/Info "+(dr-1)+" 0 R"),null!==C&&xi("/Encrypt "+b_.oid+" 0 R"),xi("/ID [ <"+Lt+"> <"+Lt+"> ]"),xi(">>")},GW=F.__private__.putHeader=function(){xi("%PDF-"+pe),xi("%\xba\xdf\xac\xe0")},WW=F.__private__.putXRef=function(){var Ie="0000000000";xi("xref"),xi("0 "+(dr+1)),xi("0000000000 65535 f ");for(var zt=1;zt<=dr;zt++)xi("function"==typeof qi[zt]?(Ie+qi[zt]()).slice(-10)+" 00000 n ":void 0!==qi[zt]?(Ie+qi[zt]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},Pw=F.__private__.buildDocument=function(){vs(),Ha(yr),uu.publish("buildDocument"),GW(),Pk(),UW(),CH(),null!==C&&yH(),j4(),$W();var Ie=Mo;return WW(),YW(),xi("startxref"),xi(""+Ie),xi("%%EOF"),Ha($o[ai]),yr.join("\n")},Ow=F.__private__.getBlob=function(Ie){return new Blob([Ga(Ie)],{type:"application/pdf"})},QW=F.output=F.__private__.output=Rk(function(Ie,zt){switch("string"==typeof(zt=zt||{})?zt={filename:zt}:zt.filename=zt.filename||"generated.pdf",Ie){case void 0:return Pw();case"save":F.save(zt.filename);break;case"arraybuffer":return Ga(Pw());case"blob":return Ow(Pw());case"bloburi":case"bloburl":if(void 0!==Dl.URL&&"function"==typeof Dl.URL.createObjectURL)return Dl.URL&&Dl.URL.createObjectURL(Ow(Pw()))||void 0;qu.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var li="",Ri=Pw();try{li=C6(Ri)}catch{li=C6(unescape(encodeURIComponent(Ri)))}return"data:application/pdf;filename="+zt.filename+";base64,"+li;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(Dl)){var _r='