diff --git a/configuration/ampathforms/HIV_Green_Card.json b/configuration/ampathforms/HIV_Green_Card.json index f54c716e..37bdb178 100644 --- a/configuration/ampathforms/HIV_Green_Card.json +++ b/configuration/ampathforms/HIV_Green_Card.json @@ -5022,14 +5022,119 @@ } }, { - "label": "Return Visit Date:", - "id": "appointmentWorkspaceLauncher", + "type": "appointment", + "questionInfo": "Location of the facility where the appointment was scheduled", + "label": "Location", + "id": "appointmentLocation", + "required": "true", "questionOptions": { - "rendering": "workspace-launcher", - "buttonLabel": "Add appointments", - "workspaceName": "appointments-form-workspace" + "rendering": "remote-select", + "appointmentKey": "location", + "dataSource": "location" } }, + { + "label": "Date appointment issued", + "id": "dateAppointmentIssued", + "questionOptions": { + "rendering": "date", + "appointmentKey": "dateAppointmentScheduled" + }, + "type": "appointment", + "validators": [] + }, + { + "label": "Service", + "id": "service", + "questionOptions": { + "rendering": "remote-select", + "appointmentKey": "service", + "dataSource": "services" + }, + "type": "appointment", + "validators": [] + }, + { + "label": "Appointment type", + "id": "appointmentType", + "questionOptions": { + "placeholder": "Select appointment status", + "rendering": "select", + "appointmentKey": "appointmentKind", + "answers": [ + { + "label": "Scheduled", + "concept": "Scheduled" + } + ] + }, + "type": "appointment", + "validators": [] + }, + { + "label": "Appointment date & time", + "id": "appointmentDatetime", + "datePickerFormat": "both", + "questionOptions": { + "placeholder": "Enter appointment date & time", + "rendering": "date", + "appointmentKey": "startDateTime", + "answers": [] + }, + "type": "appointment", + "validators": [] + }, + { + "label": "Duration", + "id": "appointmentDuration", + "questionOptions": { + "placeholder": "Enter appointment duration", + "rendering": "number", + "appointmentKey": "duration" + }, + "type": "appointment", + "validators": [] + }, + { + "label": "Appointment status", + "id": "appointmentStatus", + "questionOptions": { + "placeholder": "Select appointment status", + "rendering": "select", + "appointmentKey": "status", + "answers": [ + { + "label": "Scheduled", + "concept": "Scheduled" + } + ] + }, + "type": "appointment", + "validators": [] + }, + { + "label": "Provider", + "id": "provider", + "questionOptions": { + "rendering": "remote-select", + "appointmentKey": "providers", + "dataSource": "provider" + }, + "type": "appointment", + "validators": [] + }, + { + "label": "Notes", + "id": "appointmentNote", + "questionOptions": { + "placeholder": "Enter appointment notes", + "rendering": "textarea", + "appointmentKey": "comments", + "rows": 5 + }, + "type": "appointment", + "validators": [] + }, { "label": "Return visit Reason:", "type": "obs", diff --git a/dist-form-entry/22751.de8fd4f3ef0fb4d8.js b/dist-form-entry/22751.de8fd4f3ef0fb4d8.js deleted file mode 100644 index 276b03a1..00000000 --- a/dist-form-entry/22751.de8fd4f3ef0fb4d8.js +++ /dev/null @@ -1,129 +0,0 @@ -(self.webpackChunk_openmrs_esm_form_entry_app=self.webpackChunk_openmrs_esm_form_entry_app||[]).push([[22751,68788,64460,13574,98319,22757,35833,65711,27807,24378,8271,11644],{22751:(Ee,He,J)=>{"use strict";function P(t){return"function"==typeof t}function m(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}J.r(He),J.d(He,{bootstrap:()=>cfe,mount:()=>dfe,unmount:()=>hfe});const x=m(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function C(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class T{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(P(i))try{i()}catch(s){n=s instanceof x?s.errors:[s]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const s of r)try{re(s)}catch(o){n=n??[],o instanceof x?n=[...n,...o.errors]:n.push(o)}}if(n)throw new x(n)}}add(n){var e;if(n&&n!==this)if(this.closed)re(n);else{if(n instanceof T){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&C(e,n)}remove(n){const{_finalizers:e}=this;e&&C(e,n),n instanceof T&&n._removeParent(this)}}T.EMPTY=(()=>{const t=new T;return t.closed=!0,t})();const R=T.EMPTY;function q(t){return t instanceof T||t&&"closed"in t&&P(t.remove)&&P(t.add)&&P(t.unsubscribe)}function re(t){P(t)?t():t.unsubscribe()}const Le={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ke={setTimeout(t,n,...e){const{delegate:i}=Ke;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=Ke;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Dt(t){Ke.setTimeout(()=>{const{onUnhandledError:n}=Le;if(!n)throw t;n(t)})}function gt(){}const It=On("C",void 0,void 0);function On(t,n,e){return{kind:t,value:n,error:e}}let Yn=null;function xr(t){if(Le.useDeprecatedSynchronousErrorHandling){const n=!Yn;if(n&&(Yn={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Yn;if(Yn=null,e)throw i}}else t()}class Qr extends T{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,q(n)&&n.add(this)):this.destination=Pt}static create(n,e,i){return new Zn(n,e,i)}next(n){this.isStopped?mn(function Ct(t){return On("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?mn(function Pi(t){return On("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?mn(It,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Wr=Function.prototype.bind;function kr(t,n){return Wr.call(t,n)}class ei{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Ar(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Ar(i)}else Ar(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Ar(e)}}}class Zn extends Qr{constructor(n,e,i){let r;if(super(),P(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let s;this&&Le.useDeprecatedNextContext?(s=Object.create(n),s.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&kr(n.next,s),error:n.error&&kr(n.error,s),complete:n.complete&&kr(n.complete,s)}):r=n}this.destination=new ei(r)}}function Ar(t){Le.useDeprecatedSynchronousErrorHandling?function dr(t){Le.useDeprecatedSynchronousErrorHandling&&Yn&&(Yn.errorThrown=!0,Yn.error=t)}(t):Dt(t)}function mn(t,n){const{onStoppedNotification:e}=Le;e&&Ke.setTimeout(()=>e(t,n))}const Pt={closed:!0,next:gt,error:function bd(t){throw t},complete:gt},Nt="function"==typeof Symbol&&Symbol.observable||"@@observable";function en(t){return t}let jt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const s=function ir(t){return t&&t instanceof Qr||function Ci(t){return t&&P(t.next)&&P(t.error)&&P(t.complete)}(t)&&q(t)}(e)?e:new Zn(e,i,r);return xr(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=di(i))((r,s)=>{const o=new Zn({next:a=>{try{e(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});this.subscribe(o)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Nt](){return this}pipe(...e){return function Sn(t){return 0===t.length?en:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=di(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return t.create=n=>new t(n),t})();function di(t){var n;return null!==(n=t??Le.Promise)&&void 0!==n?n:Promise}const Ni=m(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let un=(()=>{class t extends jt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new ho(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Ni}next(e){xr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){xr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){xr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:s}=this;return i||r?R:(this.currentObservers=null,s.push(e),new T(()=>{this.currentObservers=null,C(s,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:s}=this;i?e.error(r):s&&e.complete()}asObservable(){const e=new jt;return e.source=this,e}}return t.create=(n,e)=>new ho(n,e),t})();class ho extends un{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:R}}function Hi(t){return n=>{if(function tn(t){return P(t?.lift)}(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Fi(t,n,e,i,r){return new es(t,n,e,i,r)}class es extends Qr{constructor(n,e,i,r,s,o){super(n),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function dn(t,n){return Hi((e,i)=>{let r=0;e.subscribe(Fi(i,s=>{i.next(t.call(n,s,r++))}))})}function $s(t){return this instanceof $s?(this.v=t,this):new $s(t)}function Ph(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function ls(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(s){e[s]=t[s]&&function(o){return new Promise(function(a,l){!function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}(a,l,(o=t[s](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Cc=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Du(t){return P(t?.then)}function Sd(t){return P(t[Nt])}function pp(t){return Symbol.asyncIterator&&P(t?.[Symbol.asyncIterator])}function Td(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Sc=function G1(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Cu(t){return P(t?.[Sc])}function qt(t){return function Mu(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,n||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(D){i[D]&&(r[D]=function(b){return new Promise(function(O,E){s.push([D,b,O,E])>1||a(D,b)})})}function a(D,b){try{!function l(D){D.value instanceof $s?Promise.resolve(D.value.v).then(c,p):g(s[0][2],D)}(i[D](b))}catch(O){g(s[0][3],O)}}function c(D){a("next",D)}function p(D){a("throw",D)}function g(D,b){D(b),s.shift(),s.length&&a(s[0][0],s[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:r}=yield $s(e.read());if(r)return yield $s(void 0);yield yield $s(i)}}finally{e.releaseLock()}})}function jh(t){return P(t?.getReader)}function Ks(t){if(t instanceof jt)return t;if(null!=t){if(Sd(t))return function No(t){return new jt(n=>{const e=t[Nt]();if(P(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Cc(t))return function mp(t){return new jt(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Dt)})}(t);if(pp(t))return i_(t);if(Cu(t))return function xd(t){return new jt(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(jh(t))return function Os(t){return i_(qt(t))}(t)}throw Td(t)}function i_(t){return new jt(n=>{(function _l(t,n){var e,i,r,s;return function Yr(t,n,e,i){return new(e||(e=Promise))(function(s,o){function a(p){try{c(i.next(p))}catch(g){o(g)}}function l(p){try{c(i.throw(p))}catch(g){o(g)}}function c(p){p.done?s(p.value):function r(s){return s instanceof e?s:new e(function(o){o(s)})}(p.value).then(a,l)}c((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Ph(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(o){r={error:o}}finally{try{i&&!i.done&&(s=e.return)&&(yield s.call(e))}finally{if(r)throw r.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function ts(t,n,e,i=0,r=!1){const s=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(s),!r)return s}function $r(t,n,e=1/0){return P(n)?$r((i,r)=>dn((s,o)=>n(i,s,r,o))(Ks(t(i,r))),e):("number"==typeof n&&(e=n),Hi((i,r)=>function ns(t,n,e,i,r,s,o,a){const l=[];let c=0,p=0,g=!1;const D=()=>{g&&!l.length&&!c&&n.complete()},b=E=>c{s&&n.next(E),c++;let Y=!1;Ks(e(E,p++)).subscribe(Fi(n,N=>{r?.(N),s?b(N):n.next(N)},()=>{Y=!0},void 0,()=>{if(Y)try{for(c--;l.length&&cO(N)):O(N)}D()}catch(N){n.error(N)}}))};return t.subscribe(Fi(n,b,()=>{g=!0,D()})),()=>{a?.()}}(i,r,t,e)))}function Ua(t=1/0){return $r(en,t)}const gl=new jt(t=>t.complete());function kd(t){return t&&P(t.schedule)}function _r(t){return t[t.length-1]}function jl(t){return P(_r(t))?t.pop():void 0}function Ad(t){return kd(_r(t))?t.pop():void 0}function _p(t,n=0){return Hi((e,i)=>{e.subscribe(Fi(i,r=>ts(i,t,()=>i.next(r),n),()=>ts(i,t,()=>i.complete(),n),r=>ts(i,t,()=>i.error(r),n)))})}function gp(t,n=0){return Hi((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function a_(t,n){if(!t)throw new Error("Iterable cannot be null");return new jt(e=>{ts(e,n,()=>{const i=t[Symbol.asyncIterator]();ts(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Zs(t,n){return n?function yp(t,n){if(null!=t){if(Sd(t))return function s_(t,n){return Ks(t).pipe(gp(n),_p(n))}(t,n);if(Cc(t))return function Z1(t,n){return new jt(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(Du(t))return function o_(t,n){return Ks(t).pipe(gp(n),_p(n))}(t,n);if(pp(t))return a_(t,n);if(Cu(t))return function J1(t,n){return new jt(e=>{let i;return ts(e,n,()=>{i=t[Sc](),ts(e,n,()=>{let r,s;try{({value:r,done:s}=i.next())}catch(o){return void e.error(o)}s?e.complete():e.next(r)},0,!0)}),()=>P(i?.return)&&i.return()})}(t,n);if(jh(t))return function l_(t,n){return a_(qt(t),n)}(t,n)}throw Td(t)}(t,n):Ks(t)}function Yl(...t){const n=Ad(t),e=function r_(t,n){return"number"==typeof _r(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?Ks(i[0]):Ua(e)(Zs(i,n)):gl}class Fo extends un{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Si(...t){return Zs(t,Ad(t))}function Hl(t={}){const{connector:n=(()=>new un),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return s=>{let o,a,l,c=0,p=!1,g=!1;const D=()=>{a?.unsubscribe(),a=void 0},b=()=>{D(),o=l=void 0,p=g=!1},O=()=>{const E=o;b(),E?.unsubscribe()};return Hi((E,Y)=>{c++,!g&&!p&&D();const N=l=l??n();Y.add(()=>{c--,0===c&&!g&&!p&&(a=Su(O,r))}),N.subscribe(Y),!o&&c>0&&(o=new Zn({next:H=>N.next(H),error:H=>{g=!0,D(),a=Su(b,e,H),N.error(H)},complete:()=>{p=!0,D(),a=Su(b,i),N.complete()}}),Ks(E).subscribe(o))})(s)}}function Su(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new Zn({next:()=>{i.unsubscribe(),t()}});return Ks(n(...e)).subscribe(i)}function Ro(t,n){return Hi((e,i)=>{let r=null,s=0,o=!1;const a=()=>o&&!r&&i.complete();e.subscribe(Fi(i,l=>{r?.unsubscribe();let c=0;const p=s++;Ks(t(l,p)).subscribe(r=Fi(i,g=>i.next(n?n(l,g,p,c++):g),()=>{r=null,a()}))},()=>{o=!0,a()}))})}function Yh(t,n=en){return t=t??Tc,Hi((e,i)=>{let r,s=!0;e.subscribe(Fi(i,o=>{const a=n(o);(s||!t(r,a))&&(s=!1,r=a,i.next(o))}))})}function Tc(t,n){return t===n}function _i(t){for(let n in t)if(t[n]===_i)return n;throw Error("Could not find renamed property on target object.")}function Tu(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function gr(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(gr).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Jo(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const vp=_i({__forward_ref__:_i});function Un(t){return t.__forward_ref__=Un,t.toString=function(){return gr(this())},t}function cn(t){return Hh(t)?t():t}function Hh(t){return"function"==typeof t&&t.hasOwnProperty(vp)&&t.__forward_ref__===Un}function Vh(t){return t&&!!t.\u0275providers}const bp="https://g.co/ng/security#xss";class at extends Error{constructor(n,e){super(function xu(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function Tn(t){return"string"==typeof t?t:null==t?"":String(t)}function wp(t,n){throw new at(-201,!1)}function Xo(t,n){null==t&&function _n(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function it(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Dn(t){return{providers:t.providers||[],imports:t.imports||[]}}function Oi(t){return Vl(t,Ed)||Vl(t,kc)}function Vl(t,n){return t.hasOwnProperty(n)?t[n]:null}function xc(t){return t&&(t.hasOwnProperty(Bh)||t.hasOwnProperty(yl))?t[Bh]:null}const Ed=_i({\u0275prov:_i}),Bh=_i({\u0275inj:_i}),kc=_i({ngInjectableDef:_i}),yl=_i({ngInjectorDef:_i});var ti=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(ti||{});let Js;function ar(t){const n=Js;return Js=t,n}function Uh(t,n,e){const i=Oi(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ti.Optional?null:void 0!==n?n:void wp(gr(t))}const gi=globalThis;class ht{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=it({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const wa={},qh="__NG_DI_FLAG__",Bl="ngTempTokenPath",zh=/\n/gm,Wh="__source";let Ul;function Wa(t){const n=Ul;return Ul=t,n}function Yo(t,n=ti.Default){if(void 0===Ul)throw new at(-203,!1);return null===Ul?Uh(t,void 0,n):Ul.get(t,n&ti.Optional?null:void 0,n)}function ve(t,n=ti.Default){return(function qa(){return Js}()||Yo)(cn(t),n)}function an(t,n=ti.Default){return ve(t,Pd(n))}function Pd(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function $h(t){const n=[];for(let e=0;en){o=s-1;break}}}for(;ss?"":r[g+1].toLowerCase();const b=8&i?D:null;if(b&&-1!==xp(b,c,0)||2&i&&c!==D){if(ln(i))return!1;o=!0}}}}else{if(!o&&!ln(i)&&!ln(l))return!1;if(o&&ln(l))continue;o=!1,i=l|1&i}}return ln(i)||o}function ln(t){return 0==(1&t)}function Ii(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let s=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!ln(o)&&(n+=Oc(s,r),r=""),i=o,s=s||!ln(i);e++}return""!==r&&(n+=Oc(s,r)),n}function ni(t){return fo(()=>{const n=Pc(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Gh.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ea.Emulated,styles:t.styles||hi,_:null,schemas:t.schemas||null,tView:null,id:""};Hd(e);const i=t.dependencies;return e.directiveDefs=Vd(i,!1),e.pipeDefs=Vd(i,!0),e.id=function Au(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const r of e)n=Math.imul(31,n)+r.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function h0(t){return Hn(t)||Gr(t)}function g_(t){return null!==t}function Cn(t){return fo(()=>({type:t.type,bootstrap:t.bootstrap||hi,declarations:t.declarations||hi,imports:t.imports||hi,exports:t.exports||hi,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function y_(t,n){if(null==t)return Xs;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,n&&(n[r]=s)}return e}function Kt(t){return fo(()=>{const n=Pc(t);return Hd(n),n})}function Hr(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Hn(t){return t[Ho]||null}function Gr(t){return t[Ec]||null}function Ps(t){return t[Kh]||null}function Pc(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||Xs,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||hi,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:y_(t.inputs,n),outputs:y_(t.outputs)}}function Hd(t){t.features?.forEach(n=>n(t))}function Vd(t,n){if(!t)return null;const e=n?Ps:h0;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(g_)}const lr=0,Ht=1,Nn=2,hr=3,Qs=4,vl=5,is=6,bl=7,Gi=8,Da=9,Lu=10,Wt=11,Vr=12,Ap=13,Nc=14,Er=15,Ud=16,zl=17,_o=18,Eu=19,Ou=20,na=21,Bo=22,Wl=23,$a=24,li=25,Lp=1,v_=2,Ga=7,Ka=9,K=11;function Ms(t){return Array.isArray(t)&&"object"==typeof t[Lp]}function Wi(t){return Array.isArray(t)&&!0===t[Lp]}function ii(t){return 0!=(4&t.flags)}function Pu(t){return t.componentOffset>-1}function Jh(t){return 1==(1&t.flags)}function Uo(t){return!!t.template}function ia(t){return 0!=(512&t[Nn])}function ri(t,n){return t.hasOwnProperty(Ma)?t[Ma]:null}let us=null,zd=!1;function ra(t){const n=us;return us=t,n}const w_={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function go(t){if(!Rc(t)||t.dirty){if(!t.producerMustRecompute(t)&&!ef(t))return void(t.dirty=!1);t.producerRecomputeValue(t),t.dirty=!1}}function Ep(t){t.dirty=!0,function Wd(t){if(void 0===t.liveConsumerNode)return;const n=zd;zd=!0;try{for(const e of t.liveConsumerNode)e.dirty||Ep(e)}finally{zd=n}}(t),t.consumerMarkedDirty?.(t)}function Op(t){return t&&(t.nextProducerIndex=0),ra(t)}function sa(t,n){if(ra(n),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(Rc(t))for(let e=t.nextProducerIndex;et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ef(t){to(t);for(let n=0;n0}function to(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let cs=null;function D_(t){const n=ra(null);try{return t()}finally{ra(n)}}const ju=()=>{},Gd=(()=>({...w_,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:ju}))();class A0{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function rs(){return Yc}function Yc(t){return t.type.prototype.ngOnChanges&&(t.setInput=Hc),Fp}function Fp(){const t=fi(this),n=t?.current;if(n){const e=t.previous;if(e===Xs)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Hc(t,n,e,i){const r=this.declaredInputs[e],s=fi(t)||function f(t,n){return t[Yu]=n}(t,{previous:Xs,current:null}),o=s.current||(s.current={}),a=s.previous,l=a[r];o[r]=new A0(l&&l.currentValue,n,a===Xs),t[i]=n}rs.ngInherit=!0;const Yu="__ngSimpleChanges__";function fi(t){return t[Yu]||null}const F=function(t,n,e){},G="svg";function Ue(t){for(;Array.isArray(t);)t=t[lr];return t}function In(t,n){return Ue(n[t])}function jn(t,n){return Ue(n[t.index])}function Ja(t,n){return t.data[n]}function yo(t,n){return t[n]}function aa(t,n){const e=n[t];return Ms(e)?e:e[lr]}function Jl(t,n){return null==n?null:t[n]}function L0(t){t[zl]=0}function E0(t){1024&t[Nn]||(t[Nn]|=1024,C_(t,1))}function a2(t){1024&t[Nn]&&(t[Nn]&=-1025,C_(t,-1))}function C_(t,n){let e=t[hr];if(null===e)return;e[vl]+=n;let i=e;for(e=e[hr];null!==e&&(1===n&&1===i[vl]||-1===n&&0===i[vl]);)e[vl]+=n,i=e,e=e[hr]}const xn={lFrame:g2(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function l2(){return xn.bindingsEnabled}function Hu(){return null!==xn.skipHydrationRootTNode}function ft(){return xn.lFrame.lView}function vi(){return xn.lFrame.tView}function xt(t){return xn.lFrame.contextLView=t,t[Gi]}function At(t){return xn.lFrame.contextLView=null,t}function Ds(){let t=I0();for(;null!==t&&64===t.type;)t=t.parent;return t}function I0(){return xn.lFrame.currentTNode}function Qa(t,n){const e=xn.lFrame;e.currentTNode=t,e.isParent=n}function Xl(){return xn.lFrame.isParent}function P0(){xn.lFrame.isParent=!1}function no(){const t=xn.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Vu(){return xn.lFrame.bindingIndex}function sf(){return xn.lFrame.bindingIndex++}function Ql(t){const n=xn.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function p2(t,n){const e=xn.lFrame;e.bindingIndex=e.bindingRootIndex=t,vo(n)}function vo(t){xn.lFrame.currentDirectiveIndex=t}function el(t){const n=xn.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function _2(){return xn.lFrame.currentQueryIndex}function F0(t){xn.lFrame.currentQueryIndex=t}function S_(t){const n=t[Ht];return 2===n.type?n.declTNode:1===n.type?t[is]:null}function Zd(t,n,e){if(e&ti.SkipSelf){let r=n,s=t;for(;!(r=r.parent,null!==r||e&ti.Host||(r=S_(s),null===r||(s=s[Nc],10&r.type))););if(null===r)return!1;n=r,t=s}const i=xn.lFrame=R0();return i.currentTNode=n,i.lView=t,!0}function T_(t){const n=R0(),e=t[Ht];xn.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function R0(){const t=xn.lFrame,n=null===t?null:t.child;return null===n?g2(t):n}function g2(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function j0(){const t=xn.lFrame;return xn.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Jd=j0;function Xd(){const t=j0();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function bo(){return xn.lFrame.selectedIndex}function eu(t){xn.lFrame.selectedIndex=t}function Or(){const t=xn.lFrame;return Ja(t.tView,t.selectedIndex)}function Ki(){xn.lFrame.currentNamespace=G}function Fs(){!function n5(){xn.lFrame.currentNamespace=null}()}let Rp=!0;function jp(){return Rp}function tu(t){Rp=t}function Yp(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[zl]+=65536),(a>13>16&&(3&t[Nn])===n&&(t[Nn]+=8192,V0(a,s)):V0(a,s)}const af=-1;class xa{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Bu(t){return t!==af}function Bp(t){return 32767&t}function uf(t,n){let e=function z0(t){return t>>16}(t),i=n;for(;e>0;)i=i[Nc],e--;return i}let Rs=!0;function k_(t){const n=Rs;return Rs=t,n}const W0=255,M2=5;let D2=0;const nu={};function A_(t,n){const e=wo(t,n);if(-1!==e)return e;const i=n[Ht];i.firstCreatePass&&(t.injectorIndex=n.length,Ml(i.data,t),Ml(n,null),Ml(i.blueprint,null));const r=cf(t,n),s=t.injectorIndex;if(Bu(r)){const o=Bp(r),a=uf(r,n),l=a[Ht].data;for(let c=0;c<8;c++)n[s+c]=a[o+c]|l[o+c]}return n[s+8]=r,s}function Ml(t,n){t.push(0,0,0,0,0,0,0,0,n)}function wo(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function cf(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=J0(r),null===i)return af;if(e++,r=r[Nc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return af}function $0(t,n,e){!function o5(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ta)&&(i=e[ta]),null==i&&(i=e[ta]=D2++);const r=i&W0;n.data[t+(r>>M2)]|=1<=0?n&W0:k2:n}(e);if("function"==typeof s){if(!Zd(n,t,i))return i&ti.Host?C2(r,0,i):S2(n,e,i,r);try{let o;if(o=s(i),null!=o||i&ti.Optional)return o;wp()}finally{Jd()}}else if("number"==typeof s){let o=null,a=wo(t,n),l=af,c=i&ti.Host?n[Er][is]:null;for((-1===a||i&ti.SkipSelf)&&(l=-1===a?cf(t,n):n[a+8],l!==af&&Z0(i,!1)?(o=n[Ht],a=Bp(l),n=uf(l,n)):a=-1);-1!==a;){const p=n[Ht];if(x2(s,a,p.data)){const g=T2(a,n,e,o,i,c);if(g!==nu)return g}l=n[a+8],l!==af&&Z0(i,n[Ht].data[a+8]===c)&&x2(s,a,n)?(o=p,a=Bp(l),n=uf(l,n)):a=-1}}return r}function T2(t,n,e,i,r,s){const o=n[Ht],a=o.data[t+8],p=L_(a,o,e,null==i?Pu(a)&&Rs:i!=o&&0!=(3&a.type),r&ti.Host&&s===a);return null!==p?Qd(n,o,p,a):nu}function L_(t,n,e,i,r){const s=t.providerIndexes,o=n.data,a=1048575&s,l=t.directiveStart,p=s>>20,D=r?a+p:t.directiveEnd;for(let b=i?a:a+p;b=l&&O.type===e)return b}if(r){const b=o[l];if(b&&Uo(b)&&b.type===e)return l}return null}function Qd(t,n,e,i){let r=t[e];const s=n.data;if(function B0(t){return t instanceof xa}(r)){const o=r;o.resolving&&function X1(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new at(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Ei(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Tn(t)}(s[e]));const a=k_(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?ar(o.injectImpl):null;Zd(t,i,ti.Default);try{r=t[e]=o.factory(void 0,s,t,i),n.firstCreatePass&&e>=i.directiveStart&&function r5(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=n.type.prototype;if(i){const o=Yc(n);(e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o)}r&&(e.preOrderHooks??=[]).push(0-t,r),s&&((e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s))}(e,s[e],n)}finally{null!==c&&ar(c),k_(a),o.resolving=!1,Jd()}}return r}function x2(t,n,e){return!!(e[n+(t>>M2)]&1<{const n=t.prototype.constructor,e=n[Ma]||Up(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const s=r[Ma]||Up(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Up(t){return Hh(t)?()=>{const n=Up(cn(t));return n&&n()}:ri(t)}function J0(t){const n=t[Ht],e=n.type;return 2===e?n.declTNode:1===e?t[is]:null}function Uc(t){return function G0(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function E_(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,p){const g=l.hasOwnProperty(qo)?l[qo]:Object.defineProperty(l,qo,{value:[]})[qo];for(;g.length<=p;)g.push(null);return(g[p]=g[p]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}function th(t,n){t.forEach(e=>Array.isArray(e)?th(e,n):n(e))}function I2(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function O_(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function zp(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function f5(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function X0(t,n){const e=mf(t,n);if(e>=0)return t[1|e]}function mf(t,n){return function P2(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=t[s<n?r=s:i=s+1}return~(r<({token:t})),-1),P_=Nd(ff("Optional"),8),N_=Nd(ff("SkipSelf"),4);function V_(t){return 128==(128&t.flags)}var qc=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(qc||{});const U_=/^>|^->||--!>|)/g,I5="\u200b$1\u200b";const ay=new Map;let P5=0;const q_="__ngContext__";function ro(t,n){Ms(n)?(t[q_]=n[Eu],function F5(t){ay.set(t[Eu],t)}(n)):t[q_]=n}let dy;function Gp(t,n){return dy(t,n)}function Kp(t){const n=t[hr];return Wi(n)?n[hr]:n}function J2(t){return Q2(t[Vr])}function X2(t){return Q2(t[Qs])}function Q2(t){for(;null!==t&&!Wi(t);)t=t[Qs];return t}function yf(t,n,e,i,r){if(null!=i){let s,o=!1;Wi(i)?s=i:Ms(i)&&(o=!0,i=i[lr]);const a=Ue(i);0===t&&null!==e?null==r?iw(n,e,a):sh(n,e,a,r||null,!0):1===t&&null!==e?sh(n,e,a,r||null,!0):2===t?function Xp(t,n,e){const i=Zp(t,n);i&&function G5(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,o):3===t&&n.destroyNode(a),null!=s&&function Aa(t,n,e,i,r){const s=e[Ga];s!==Ue(e)&&yf(n,t,i,s,r);for(let a=K;an.replace(O5,I5))}(n))}function $_(t,n,e){return t.createElement(n,e)}function tw(t,n){const e=t[Ka],i=e.indexOf(n);a2(n),e.splice(i,1)}function so(t,n){if(t.length<=K)return;const e=K+n,i=t[e];if(i){const r=i[Ud];null!==r&&r!==t&&tw(r,i),n>0&&(t[e-1][Qs]=i[Qs]);const s=O_(t,K+n);!function q5(t,n){em(t,n,n[Wt],2,null,null),n[lr]=null,n[is]=null}(i[Ht],i);const o=s[_o];null!==o&&o.detachView(s[Ht]),i[hr]=null,i[Qs]=null,i[Nn]&=-129}return i}function Br(t,n){if(!(256&n[Nn])){const e=n[Wt];n[Wl]&&wl(n[Wl]),n[$a]&&wl(n[$a]),e.destroyNode&&em(t,n,e,3,null,null),function W5(t){let n=t[Vr];if(!n)return fy(t[Ht],t);for(;n;){let e=null;if(Ms(n))e=n[Vr];else{const i=n[K];i&&(e=i)}if(!e){for(;n&&!n[Qs]&&n!==t;)Ms(n)&&fy(n[Ht],n),n=n[hr];null===n&&(n=t),Ms(n)&&fy(n[Ht],n),e=n&&n[Qs]}n=e}}(n)}}function fy(t,n){if(!(256&n[Nn])){n[Nn]&=-129,n[Nn]|=256,function $5(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[o]():i[-o].unsubscribe(),s+=2}else e[s].call(i[e[s+1]]);null!==i&&(n[bl]=null);const r=n[na];if(null!==r){n[na]=null;for(let s=0;s-1){const{encapsulation:s}=t.data[i.directiveStart+r];if(s===ea.None||s===ea.Emulated)return null}return jn(i,e)}}(t,n.parent,e)}function sh(t,n,e,i,r){t.insertBefore(n,e,i,r)}function iw(t,n,e){t.appendChild(n,e)}function G_(t,n,e,i,r){null!==i?sh(t,n,e,i,r):iw(t,n,e)}function Zp(t,n){return t.parentNode(n)}function Ir(t,n,e){return my(t,n,e)}let _y,J_,X_,my=function Ur(t,n,e){return 40&t.type?jn(t,e):null};function Z_(t,n,e,i){const r=py(t,i,n),s=n[Wt],a=Ir(i.parent||n[is],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return J_}()?.createHTML(t)||t}class ah{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${bp})`}}class X5 extends ah{getTypeName(){return"HTML"}}class Q5 extends ah{getTypeName(){return"Style"}}class eS extends ah{getTypeName(){return"Script"}}class tS extends ah{getTypeName(){return"URL"}}class nS extends ah{getTypeName(){return"ResourceURL"}}function La(t){return t instanceof ah?t.changingThisBreaksApplicationSecurity:t}function iu(t,n){const e=function iS(t){return t instanceof ah&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${bp})`)}return e===n}class aS{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(oh(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class lS{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=oh(n),e}}const ua=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function tg(t){return(t=String(t)).match(ua)?t:"unsafe:"+t}function qu(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function im(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const wy=qu("area,br,col,hr,img,wbr"),hw=qu("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),fw=qu("rp,rt"),My=im(wy,im(hw,qu("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),im(fw,qu("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),im(fw,hw)),Dy=qu("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),pw=im(Dy,qu("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qu("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),hS=qu("script,style,template");class fS{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!My.hasOwnProperty(e))return this.sanitizedSomething=!0,!hS.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();My.hasOwnProperty(e)&&!wy.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(mw(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const pS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wf=/([^\#-~ |!])/g;function mw(t){return t.replace(/&/g,"&").replace(pS,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(wf,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let ng;function _w(t,n){let e=null;try{ng=ng||function dw(t){const n=new lS(t);return function js(){try{return!!(new window.DOMParser).parseFromString(oh(""),"text/html")}catch{return!1}}()?new aS(n):n}(t);let i=n?String(n):"";e=ng.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=ng.getInertBodyElement(i)}while(i!==s);return oh((new fS).sanitizeChildren(Cy(e)||e))}finally{if(e){const i=Cy(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Cy(t){return"content"in t&&function mS(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ea=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ea||{});function ig(t){const n=function rm(){const t=ft();return t&&t[Lu].sanitizer}();return n?n.sanitize(Ea.URL,t)||"":iu(t,"URL")?La(t):tg(Tn(t))}const rg=new ht("ENVIRONMENT_INITIALIZER"),vw=new ht("INJECTOR",-1),bw=new ht("INJECTOR_DEF_TYPES");class Sy{get(n,e=wa){if(e===wa){const i=new Error(`NullInjectorError: No provider for ${gr(n)}!`);throw i.name="NullInjectorError",i}return e}}function MS(...t){return{\u0275providers:ww(0,t),\u0275fromNgModule:!0}}function ww(t,...n){const e=[],i=new Set;let r;const s=o=>{e.push(o)};return th(n,o=>{const a=o;sg(a,s,[],i)&&(r||=[],r.push(a))}),void 0!==r&&Mw(r,s),e}function Mw(t,n){for(let e=0;e{n(s,i)})}}function sg(t,n,e,i){if(!(t=cn(t)))return!1;let r=null,s=xc(t);const o=!s&&Hn(t);if(s||o){if(o&&!o.standalone)return!1;r=t}else{const l=t.ngModule;if(s=xc(l),!s)return!1;r=l}const a=i.has(r);if(o){if(a)return!1;if(i.add(r),o.dependencies){const l="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const c of l)sg(c,n,e,i)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;i.add(r);try{th(s.imports,p=>{sg(p,n,e,i)&&(c||=[],c.push(p))})}finally{}void 0!==c&&Mw(c,n)}if(!a){const c=ri(r)||(()=>new r);n({provide:r,useFactory:c,deps:hi},r),n({provide:bw,useValue:r,multi:!0},r),n({provide:rg,useValue:()=>ve(r),multi:!0},r)}const l=s.providers;if(null!=l&&!a){const c=t;xy(l,p=>{n(p,c)})}}}return r!==t&&void 0!==t.providers}function xy(t,n){for(let e of t)Vh(e)&&(e=e.\u0275providers),Array.isArray(e)?xy(e,n):n(e)}const DS=_i({provide:String,useValue:_i});function ky(t){return null!==t&&"object"==typeof t&&DS in t}function $c(t){return"function"==typeof t}const Ay=new ht("Set Injector scope."),ag={},CS={};let sm;function lg(){return void 0===sm&&(sm=new Sy),sm}class ru{}class Mf extends ru{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,om(n,o=>this.processProvider(o)),this.records.set(vw,Df(void 0,this)),r.has("environment")&&this.records.set(ru,Df(void 0,this));const s=this.records.get(Ay);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(bw.multi,hi,ti.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of n)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=Wa(this),i=ar(void 0);try{return n()}finally{Wa(e),ar(i)}}get(n,e=wa,i=ti.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(po))return n[po](this);i=Pd(i);const s=Wa(this),o=ar(void 0);try{if(!(i&ti.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function xS(t){return"function"==typeof t||"object"==typeof t&&t instanceof ht}(n)&&Oi(n);l=c&&this.injectableDefInScope(c)?Df(Mo(n),ag):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&ti.Self?lg():this.parent).get(n,e=i&ti.Optional&&e===wa?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[Bl]=a[Bl]||[]).unshift(gr(n)),s)throw a;return function u0(t,n,e,i){const r=t[Bl];throw n[Wh]&&r.unshift(n[Wh]),t.message=function Fd(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=gr(n);if(Array.isArray(n))r=n.map(gr).join(" -> ");else if("object"==typeof n){let s=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):gr(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(zh,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[Bl]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{ar(o),Wa(s)}}resolveInjectorInitializers(){const n=Wa(this),e=ar(void 0);try{const r=this.get(rg.multi,hi,ti.Self);for(const s of r)s()}finally{Wa(n),ar(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(gr(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new at(205,!1)}processProvider(n){let e=$c(n=cn(n))?n:cn(n&&n.provide);const i=function SS(t){return ky(t)?Df(void 0,t.useValue):Df(Sw(t),ag)}(n);if($c(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Df(void 0,ag,!0),r.factory=()=>$h(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===ag&&(e.value=CS,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Ey(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=cn(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function Mo(t){const n=Oi(t),e=null!==n?n.factory:ri(t);if(null!==e)return e;if(t instanceof ht)throw new at(204,!1);if(t instanceof Function)return function Ly(t){const n=t.length;if(n>0)throw zp(n,"?"),new at(204,!1);const e=function Qo(t){return t&&(t[Ed]||t[kc])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new at(204,!1)}function Sw(t,n,e){let i;if($c(t)){const r=cn(t);return ri(r)||Mo(r)}if(ky(t))i=()=>cn(t.useValue);else if(function og(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...$h(t.deps||[]));else if(function Dw(t){return!(!t||!t.useExisting)}(t))i=()=>ve(cn(t.useExisting));else{const r=cn(t&&(t.useClass||t.provide));if(!function TS(t){return!!t.deps}(t))return ri(r)||Mo(r);i=()=>new r(...$h(t.deps))}return i}function Df(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function om(t,n){for(const e of t)Array.isArray(e)?om(e,n):e&&Vh(e)?om(e.\u0275providers,n):n(e)}const ug=new ht("AppId",{providedIn:"root",factory:()=>kS}),kS="ng",Tw=new ht("Platform Initializer"),zu=new ht("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Oy=new ht("AnimationModuleType"),Iy=new ht("CSP nonce",{providedIn:"root",factory:()=>function bi(){if(void 0!==X_)return X_;if(typeof document<"u")return document;throw new at(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Aw=(t,n,e)=>null;function Vy(t,n,e=!1){return Aw(t,n,e)}class yt{}class Yt{}class vn{resolveComponentFactory(n){throw function sn(t){const n=Error(`No component factory found for ${gr(t)}.`);return n.ngComponent=t,n}(n)}}let qn=(()=>{class t{static#e=this.NULL=new vn}return t})();function wi(){return Ys(Ds(),ft())}function Ys(t,n){return new Fn(jn(t,n))}let Fn=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=wi}return t})();function Oa(t){return t instanceof Fn?t.nativeElement:t}class vr{}let Kr=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function Wu(){const t=ft(),e=aa(Ds().index,t);return(Ms(e)?e:t)[Wt]}()}return t})(),Lw=(()=>{class t{static#e=this.\u0275prov=it({token:t,providedIn:"root",factory:()=>null})}return t})();class Ew{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const Aj=new Ew("16.2.12"),NS={};function UE(t,n=null,e=null,i){const r=qE(t,n,e,i);return r.resolveInjectorInitializers(),r}function qE(t,n=null,e=null,i,r=new Set){const s=[e||hi,MS(t)];return i=i||("object"==typeof t?void 0:gr(t)),new Mf(s,n||lg(),i||null,r)}let Ia=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=wa;static#t=this.NULL=new Sy;static create(e,i){if(Array.isArray(e))return UE({name:""},i,e,"");{const r=e.name??"";return UE({name:r},e.parent,e.providers,r)}}static#n=this.\u0275prov=it({token:t,providedIn:"any",factory:()=>ve(vw)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function RS(t){return t.ngOriginalError}class Gc{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&RS(n);for(;e&&RS(e);)e=RS(e);return e||null}}function YS(t){return n=>{setTimeout(t,void 0,n)}}const Et=class Fj extends un{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,s=e||(()=>null),o=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(s=YS(s),r&&(r=YS(r)),o&&(o=YS(o)));const a=super.subscribe({next:r,error:s,complete:o});return n instanceof T&&n.add(a),a}};function WE(...t){}class oi{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Et(!1),this.onMicrotaskEmpty=new Et(!1),this.onStable=new Et(!1),this.onError=new Et(!1),typeof Zone>"u")throw new at(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Rj(){const t="function"==typeof gi.requestAnimationFrame;let n=gi[t?"requestAnimationFrame":"setTimeout"],e=gi[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function Hj(t){const n=()=>{!function Yj(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(gi,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,VS(t),t.isCheckStableRunning=!0,HS(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),VS(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{if(function Bj(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(r,s,o,a);try{return $E(t),e.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&n(),GE(t)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return $E(t),e.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),GE(t)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,VS(t),HS(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!oi.isInAngularZone())throw new at(909,!1)}static assertNotInAngularZone(){if(oi.isInAngularZone())throw new at(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,n,jj,WE,WE);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const jj={};function HS(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function VS(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function $E(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function GE(t){t._nesting--,HS(t)}class Vj{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Et,this.onMicrotaskEmpty=new Et,this.onStable=new Et,this.onError=new Et}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const KE=new ht("",{providedIn:"root",factory:ZE});function ZE(){const t=an(oi);let n=!0;return Yl(new jt(r=>{n=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{r.next(n),r.complete()})}),new jt(r=>{let s;t.runOutsideAngular(()=>{s=t.onStable.subscribe(()=>{oi.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(n=!0,r.next(!0))})})});const o=t.onUnstable.subscribe(()=>{oi.assertInAngularZone(),n&&(n=!1,t.runOutsideAngular(()=>{r.next(!1)}))});return()=>{s.unsubscribe(),o.unsubscribe()}}).pipe(Hl()))}function JE(t){return t.ownerDocument.defaultView}let BS=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=it({token:t,providedIn:"root",factory:()=>new t})}return t})();function By(t){for(;t;){t[Nn]|=64;const n=Kp(t);if(ia(t)&&!n)return t;t=n}return null}const n3=new ht("",{providedIn:"root",factory:()=>!1});let Iw=null;function o3(t,n){return t[n]??u3()}function a3(t,n){const e=u3();e.producerNode?.length&&(t[n]=Iw,e.lView=t,Iw=l3())}const Jj={...w_,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{By(t.lView)},lView:null};function l3(){return Object.create(Jj)}function u3(){return Iw??=l3(),Iw}const zn={};function te(t){c3(vi(),ft(),bo()+t,!1)}function c3(t,n,e,i){if(!i)if(3==(3&n[Nn])){const s=t.preOrderCheckHooks;null!==s&&tl(n,s,e)}else{const s=t.preOrderHooks;null!==s&&Hp(n,s,0,e)}eu(e)}function Ae(t,n=ti.Default){const e=ft();return null===e?ve(t,n):df(Ds(),e,cn(t),n)}function Pw(t,n,e,i,r,s,o,a,l,c,p){const g=n.blueprint.slice();return g[lr]=r,g[Nn]=140|i,(null!==c||t&&2048&t[Nn])&&(g[Nn]|=2048),L0(g),g[hr]=g[Nc]=t,g[Gi]=e,g[Lu]=o||t&&t[Lu],g[Wt]=a||t&&t[Wt],g[Da]=l||t&&t[Da]||null,g[is]=s,g[Eu]=function N5(){return P5++}(),g[Bo]=p,g[Ou]=c,g[Er]=2==n.type?t[Er]:g,g}function mg(t,n,e,i,r){let s=t.data[n];if(null===s)s=function US(t,n,e,i,r){const s=I0(),o=Xl(),l=t.data[n]=function o9(t,n,e,i,r,s){let o=n?n.injectorIndex:-1,a=0;return Hu()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,e,n,i,r);return null===t.firstChild&&(t.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l,l.prev=s)),l}(t,n,e,i,r),function h2(){return xn.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function Kd(){const t=xn.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Qa(s,!0),s}function Uy(t,n,e,i){if(0===e)return-1;const r=n.length;for(let s=0;sli&&c3(t,n,li,!1),F(a?2:0,r);const c=a?s:null,p=Op(c);try{null!==c&&(c.dirty=!1),e(i,r)}finally{sa(c,p)}}finally{a&&null===n[Wl]&&a3(n,Wl),eu(o),F(a?3:1,r)}}function qS(t,n,e){if(ii(n)){const i=ra(null);try{const s=n.directiveEnd;for(let o=n.directiveStart;onull;function p3(t,n,e,i){for(let r in t)if(t.hasOwnProperty(r)){e=null===e?{}:e;const s=t[r];null===i?m3(e,n,r,s):i.hasOwnProperty(r)&&m3(e,n,i[r],s)}return e}function m3(t,n,e,i){t.hasOwnProperty(e)?t[e].push(n,i):t[e]=[n,i]}function Sl(t,n,e,i,r,s,o,a){const l=jn(n,e);let p,c=n.inputs;!a&&null!=c&&(p=c[i])?(XS(t,e,p,i,r),Pu(n)&&function u9(t,n){const e=aa(n,t);16&e[Nn]||(e[Nn]|=64)}(e,n.index)):3&n.type&&(i=function l9(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=o?o(r,n.value||"",i):r,s.setProperty(l,i,r))}function GS(t,n,e,i){if(l2()){const r=null===i?null:{"":-1},s=function m9(t,n){const e=t.directiveRegistry;let i=null,r=null;if(e)for(let s=0;s0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(o)!=a&&o.push(a),o.push(e,i,s)}}(t,n,i,Uy(t,e,r.hostVars,zn),r)}function Kc(t,n,e,i,r,s){const o=jn(t,n);!function ZS(t,n,e,i,r,s,o){if(null==s)t.removeAttribute(n,r,e);else{const a=null==o?Tn(s):o(s,i||"",r);t.setAttribute(n,r,a,e)}}(n[Wt],o,s,t.value,e,i,r)}function w9(t,n,e,i,r,s){const o=s[n];if(null!==o)for(let a=0;a{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,i,r){const s=typeof Zone>"u"?null:Zone.current,o=function Sa(t,n,e){const i=Object.create(Gd);e&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=n;const r=o=>{i.cleanupFn=o};return i.ref={notify:()=>Ep(i),run:()=>{if(i.dirty=!1,i.hasRun&&!ef(i))return;i.hasRun=!0;const o=Op(i);try{i.cleanupFn(),i.cleanupFn=ju,i.fn(r)}finally{sa(i,o)}},cleanup:()=>i.cleanupFn()},i.ref}(e,c=>{this.all.has(c)&&this.queue.set(c,s)},r);let a;this.all.add(o),o.notify();const l=()=>{o.cleanup(),a?.(),this.all.delete(o),this.queue.delete(o)};return a=i?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,i]of this.queue)this.queue.delete(e),i?i.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=it({token:t,providedIn:"root",factory:()=>new t})}return t})();function Fw(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,s=0;if(null!==n)for(let o=0;o0){k3(t,1);const r=e.components;null!==r&&L3(t,r,1)}}function L3(t,n,e){for(let i=0;i-1&&(so(n,i),O_(e,i))}this._attachedToViewContainer=!1}Br(this._lView[Ht],this._lView)}onDestroy(n){!function si(t,n){if(256==(256&t[Nn]))throw new at(911,!1);null===t[na]&&(t[na]=[]),t[na].push(n)}(this._lView,n)}markForCheck(){By(this._cdRefInjectingView||this._lView)}detach(){this._lView[Nn]&=-129}reattach(){this._lView[Nn]|=128}detectChanges(){Rw(this._lView[Ht],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new at(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function z5(t,n){em(t,n,n[Wt],2,null,null)}(this._lView[Ht],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new at(902,!1);this._appRef=n}}class L9 extends zy{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Rw(n[Ht],n,n[Gi],!1)}checkNoChanges(){}get context(){return null}}class E3 extends qn{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Hn(n);return new Wy(e,this.ngModule)}}function O3(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class O9{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=Pd(i);const r=this.injector.get(n,NS,i);return r!==NS||e===NS?r:this.parentInjector.get(n,e,i)}}class Wy extends Yt{get inputs(){const n=this.componentDef,e=n.inputTransforms,i=O3(n.inputs);if(null!==e)for(const r of i)e.hasOwnProperty(r.propName)&&(r.transform=e[r.propName]);return i}get outputs(){return O3(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function Ic(t){return t.map(d0).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let s=(r=r||this.ngModule)instanceof ru?r:r?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const o=s?new O9(n,s):n,a=o.get(vr,null);if(null===a)throw new at(407,!1);const g={rendererFactory:a,sanitizer:o.get(Lw,null),effectManager:o.get(S3,null),afterRenderEventManager:o.get(BS,null)},D=a.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",O=i?function t9(t,n,e,i){const s=i.get(n3,!1)||e===ea.ShadowDom,o=t.selectRootElement(n,s);return function n9(t){f3(t)}(o),o}(D,i,this.componentDef.encapsulation,o):$_(D,b,function E9(t){const n=t.toLowerCase();return"svg"===n?G:"math"===n?"math":null}(b)),N=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let H=null;null!==O&&(H=Vy(O,o,!0));const se=$S(0,null,null,1,0,null,null,null,null,null,null),me=Pw(null,se,null,N,null,null,g,D,o,null,H);let Ie,Je;T_(me);try{const Pe=this.componentDef;let fe,Qe=null;Pe.findHostDirectiveDefs?(fe=[],Qe=new Map,Pe.findHostDirectiveDefs(Pe,fe,Qe),fe.push(Pe)):fe=[Pe];const tt=function P9(t,n){const e=t[Ht],i=li;return t[i]=n,mg(e,i,2,"#host",null)}(me,O),oe=function N9(t,n,e,i,r,s,o){const a=r[Ht];!function F9(t,n,e,i){for(const r of t)n.mergedAttrs=Rd(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(Fw(n,n.mergedAttrs,!0),null!==e&&lw(i,e,n))}(i,t,n,o);let l=null;null!==n&&(l=Vy(n,r[Da]));const c=s.rendererFactory.createRenderer(n,e);let p=16;e.signals?p=4096:e.onPush&&(p=64);const g=Pw(r,h3(e),null,p,r[t.index],t,s,c,null,null,l);return a.firstCreatePass&&KS(a,t,i.length-1),Nw(r,g),r[t.index]=g}(tt,O,Pe,fe,me,g,D);Je=Ja(se,li),O&&function j9(t,n,e,i){if(i)kp(t,e,["ng-version",Aj.full]);else{const{attrs:r,classes:s}=function Yd(t){const n=[],e=[];let i=1,r=2;for(;i0&&aw(t,e,s.join(" "))}}(D,Pe,O,i),void 0!==e&&function Y9(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Rd(r.hostAttrs,e=Rd(e,r.hostAttrs))}}(i)}function jw(t){return t===Xs?{}:t===hi?[]:t}function B9(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function U9(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,s)=>{n(i,r,s),e(i,r,s)}:n}function q9(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function Yw(t){return!!eT(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function eT(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Zc(t,n,e){return t[n]=e}function $y(t,n){return t[n]}function ca(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function um(t,n,e,i){const r=ca(t,n,e);return ca(t,n+1,i)||r}function Hw(t,n,e,i,r){const s=um(t,n,e,i);return ca(t,n+2,r)||s}function su(t,n,e,i,r,s){const o=um(t,n,e,i);return um(t,n+2,r,s)||o}function Mi(t,n,e,i){const r=ft();return ca(r,sf(),n)&&(vi(),Kc(Or(),r,t,n,e,i)),Mi}function gg(t,n,e,i){return ca(t,sf(),e)?n+Tn(e)+i:zn}function ke(t,n,e,i,r,s,o,a){const l=ft(),c=vi(),p=t+li,g=c.firstCreatePass?function _Y(t,n,e,i,r,s,o,a,l){const c=n.consts,p=mg(n,t,4,o||null,Jl(c,a));GS(n,e,p,Jl(c,l)),Yp(n,p);const g=p.tView=$S(2,p,i,r,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,p),g.queries=n.queries.embeddedTView(p)),p}(p,c,l,n,e,i,r,s,o):c.data[p];Qa(g,!1);const D=K3(c,l,g,t);jp()&&Z_(c,l,D,g),ro(D,l),Nw(l,l[p]=v3(D,l,D,g)),Jh(g)&&zS(c,l,g),null!=o&&WS(l,g,a)}let K3=function Z3(t,n,e,i){return tu(!0),n[Wt].createComment("")};function fs(t){return yo(function Bc(){return xn.lFrame.contextLView}(),li+t)}function ne(t,n,e){const i=ft();return ca(i,sf(),n)&&Sl(vi(),Or(),i,t,n,i[Wt],e,!1),ne}function oT(t,n,e,i,r){const o=r?"class":"style";XS(t,e,n.inputs[o],o,i)}function le(t,n,e,i){const r=ft(),s=vi(),o=li+t,a=r[Wt],l=s.firstCreatePass?function bY(t,n,e,i,r,s){const o=n.consts,l=mg(n,t,2,i,Jl(o,r));return GS(n,e,l,Jl(o,s)),null!==l.attrs&&Fw(l,l.attrs,!1),null!==l.mergedAttrs&&Fw(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(o,s,r,n,e,i):s.data[o],c=J3(s,r,l,a,n,t);r[o]=c;const p=Jh(l);return Qa(l,!0),lw(a,c,l),32!=(32&l.flags)&&jp()&&Z_(s,r,c,l),0===function XC(){return xn.lFrame.elementDepthCount}()&&ro(c,r),function QC(){xn.lFrame.elementDepthCount++}(),p&&(zS(s,r,l),qS(s,l,r)),null!==i&&WS(r,l),le}function he(){let t=Ds();Xl()?P0():(t=t.parent,Qa(t,!1));const n=t;(function O0(t){return xn.skipHydrationRootTNode===t})(n)&&function Vc(){xn.skipHydrationRootTNode=null}(),function Xa(){xn.lFrame.elementDepthCount--}();const e=vi();return e.firstCreatePass&&(Yp(e,t),ii(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function lf(t){return 0!=(8&t.flags)}(n)&&oT(e,n,ft(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function gn(t){return 0!=(16&t.flags)}(n)&&oT(e,n,ft(),n.stylesWithoutHost,!1),he}function Lt(t,n,e,i){return le(t,n,e,i),he(),Lt}let J3=(t,n,e,i,r,s)=>(tu(!0),$_(i,r,function H0(){return xn.lFrame.currentNamespace}()));function da(t,n,e){const i=ft(),r=vi(),s=t+li,o=r.firstCreatePass?function DY(t,n,e,i,r){const s=n.consts,o=Jl(s,i),a=mg(n,t,8,"ng-container",o);return null!==o&&Fw(a,o,!0),GS(n,e,a,Jl(s,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(s,r,i,n,e):r.data[s];Qa(o,!0);const a=X3(r,i,o,t);return i[s]=a,jp()&&Z_(r,i,a,o),ro(a,i),Jh(o)&&(zS(r,i,o),qS(r,o,i)),null!=e&&WS(i,o),da}function ha(){let t=Ds();const n=vi();return Xl()?P0():(t=t.parent,Qa(t,!1)),n.firstCreatePass&&(Yp(n,t),ii(t)&&n.queries.elementEnd(t)),ha}function cm(t,n,e){return da(t,n,e),ha(),cm}let X3=(t,n,e,i)=>(tu(!0),hy(n[Wt],""));function bn(){return ft()}function qw(t){return!!t&&"function"==typeof t.then}function Q3(t){return!!t&&"function"==typeof t.subscribe}function vt(t,n,e,i){const r=ft(),s=vi(),o=Ds();return e4(s,r,r[Wt],o,t,n,i),vt}function zw(t,n){const e=Ds(),i=ft(),r=vi();return e4(r,i,D3(el(r.data),e,i),e,t,n),zw}function e4(t,n,e,i,r,s,o){const a=Jh(i),c=t.firstCreatePass&&M3(t),p=n[Gi],g=w3(n);let D=!0;if(3&i.type||o){const E=jn(i,n),Y=o?o(E):E,N=g.length,H=o?me=>o(Ue(me[i.index])):i.index;let se=null;if(!o&&a&&(se=function TY(t,n,e,i){const r=t.cleanup;if(null!=r)for(let s=0;sl?a[l]:null}"string"==typeof o&&(s+=2)}return null}(t,n,r,i.index)),null!==se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=s,se.__ngLastListenerFn__=s,D=!1;else{s=n4(i,n,p,s,!1);const me=e.listen(Y,r,s);g.push(s,me),c&&c.push(r,H,N,N+1)}}else s=n4(i,n,p,s,!1);const b=i.outputs;let O;if(D&&null!==b&&(O=b[r])){const E=O.length;if(E)for(let Y=0;Y-1?aa(t.index,n):n);let l=t4(n,e,i,o),c=s.__ngNextListenerFn__;for(;c;)l=t4(n,e,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&o.preventDefault(),l}}function _e(t=1){return function t5(t){return(xn.lFrame.contextLView=function y2(t,n){for(;t>0;)n=n[Nc],t--;return n}(t,xn.lFrame.contextLView))[Gi]}(t)}function xY(t,n){let e=null;const i=function yi(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function aT(t){return 2|t}function dm(t){return(131068&t)>>2}function lT(t,n){return-131069&t|n<<2}function uT(t){return 1|t}function d4(t,n,e,i,r){const s=t[e+1],o=null===n;let a=i?Tf(s):dm(s),l=!1;for(;0!==a&&(!1===l||o);){const p=t[a+1];IY(t[a],n)&&(l=!0,t[a+1]=i?uT(p):aT(p)),a=i?Tf(p):dm(p)}l&&(t[e+1]=i?aT(s):uT(s))}function IY(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&mf(t,n)>=0}const oo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function h4(t){return t.substring(oo.key,oo.keyEnd)}function f4(t,n){const e=oo.textEnd;return e===n?-1:(n=oo.keyEnd=function RY(t,n,e){for(;n32;)n++;return n}(t,oo.key=n,e),xg(t,n,e))}function xg(t,n,e){for(;n=0;e=f4(n,e))ka(t,h4(n),!0)}function $u(t,n,e,i){const r=ft(),s=vi(),o=Ql(2);s.firstUpdatePass&&v4(s,t,o,i),n!==zn&&ca(r,o,n)&&w4(s,s.data[bo()],r,r[Wt],t,r[o+1]=function GY(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=gr(La(t)))),t}(n,e),i,o)}function Gu(t,n,e,i){const r=vi(),s=Ql(2);r.firstUpdatePass&&v4(r,null,s,i);const o=ft();if(e!==zn&&ca(o,s,e)){const a=r.data[bo()];if(D4(a,i)&&!y4(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Jo(l,e||"")),oT(r,a,o,e,i)}else!function $Y(t,n,e,i,r,s,o,a){r===zn&&(r=hi);let l=0,c=0,p=0=t.expandoStartIndex}function v4(t,n,e,i){const r=t.data;if(null===r[e+1]){const s=r[bo()],o=y4(t,e);D4(s,i)&&null===n&&!o&&(n=!1),n=function VY(t,n,e,i){const r=el(t);let s=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=Xy(e=dT(null,t,n,e,i),n.attrs,i),s=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==r)if(e=dT(r,t,n,e,i),null===s){let l=function BY(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==dm(i))return t[Tf(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=dT(null,t,n,l[1],i),l=Xy(l,n.attrs,i),function UY(t,n,e,i){t[Tf(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else s=function qY(t,n,e){let i;const r=n.directiveEnd;for(let s=1+n.directiveStylingLast;s0)&&(c=!0)):p=e,r)if(0!==l){const D=Tf(t[a+1]);t[i+1]=Ww(D,a),0!==D&&(t[D+1]=lT(t[D+1],i)),t[a+1]=function AY(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=Ww(a,0),0!==a&&(t[a+1]=lT(t[a+1],i)),a=i;else t[i+1]=Ww(l,0),0===a?a=i:t[l+1]=lT(t[l+1],i),l=i;c&&(t[i+1]=aT(t[i+1])),d4(t,p,i,!0),d4(t,p,i,!1),function OY(t,n,e,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof n&&mf(s,n)>=0&&(e[i+1]=uT(e[i+1]))}(n,p,t,i,s),o=Ww(a,l),s?n.classBindings=o:n.styleBindings=o}(r,s,n,e,o,i)}}function dT(t,n,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),p=c?l[1]:l,g=null===p;let D=e[r+1];D===zn&&(D=g?hi:void 0);let b=g?X0(D,i):p===i?D:void 0;if(c&&!$w(b)&&(b=X0(l,i)),$w(b)&&(a=b,o))return a;const O=t[r+1];r=o?Tf(O):dm(O)}if(null!==n){let l=s?n.residualClasses:n.residualStyles;null!=l&&(a=X0(l,i))}return a}function $w(t){return void 0!==t}function D4(t,n){return 0!=(t.flags&(n?8:16))}function pt(t,n=""){const e=ft(),i=vi(),r=t+li,s=i.firstCreatePass?mg(i,r,1,n,null):i.data[r],o=C4(i,e,s,n,t);e[r]=o,jp()&&Z_(i,e,o,s),Qa(s,!1)}let C4=(t,n,e,i,r)=>(tu(!0),function W_(t,n){return t.createText(n)}(n[Wt],i));function Ti(t){return Wn("",t,""),Ti}function Wn(t,n,e){const i=ft(),r=gg(i,t,n,e);return r!==zn&&uh(i,bo(),r),Wn}function Gw(t,n,e,i,r){const s=ft(),o=function yg(t,n,e,i,r,s){const a=um(t,Vu(),e,r);return Ql(2),a?n+Tn(e)+i+Tn(r)+s:zn}(s,t,n,e,i,r);return o!==zn&&uh(s,bo(),o),Gw}function hT(t,n,e,i,r,s,o){const a=ft(),l=function vg(t,n,e,i,r,s,o,a){const c=Hw(t,Vu(),e,r,o);return Ql(3),c?n+Tn(e)+i+Tn(r)+s+Tn(o)+a:zn}(a,t,n,e,i,r,s,o);return l!==zn&&uh(a,bo(),l),hT}function fT(t,n,e){Gu(ka,Qc,gg(ft(),t,n,e),!0)}function pT(t,n,e){const i=ft();return ca(i,sf(),n)&&Sl(vi(),Or(),i,t,n,i[Wt],e,!0),pT}function Kw(t,n,e){const i=ft();if(ca(i,sf(),n)){const s=vi(),o=Or();Sl(s,o,i,t,n,D3(el(s.data),o,i),e,!0)}return Kw}const fm=void 0;var mH=["en",[["a","p"],["AM","PM"],fm],[["AM","PM"],fm,fm],[["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"]],fm,[["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"]],fm,[["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}",fm,"{1} 'at' {0}",fm],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function pH(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let kg={};function Pa(t){const n=function gH(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=V4(n);if(e)return e;const i=n.split("-")[0];if(e=V4(i),e)return e;if("en"===i)return mH;throw new at(701,!1)}function V4(t){return t in kg||(kg[t]=gi.ng&&gi.ng.common&&gi.ng.common.locales&&gi.ng.common.locales[t]),kg[t]}var Pr=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Pr||{});const Ag="en-US";let B4=Ag;function gT(t,n,e,i,r){if(t=cn(t),Array.isArray(t))for(let s=0;s>20;if($c(t)||!t.multi){const b=new xa(c,r,Ae),O=vT(l,n,r?p:p+D,g);-1===O?($0(A_(a,o),s,l),yT(s,t,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(b),o.push(b)):(e[O]=b,o[O]=b)}else{const b=vT(l,n,p+D,g),O=vT(l,n,p,p+D),Y=O>=0&&e[O];if(r&&!Y||!r&&!(b>=0&&e[b])){$0(A_(a,o),s,l);const N=function mV(t,n,e,i,r){const s=new xa(t,e,Ae);return s.multi=[],s.index=n,s.componentProviders=0,fO(s,r,i&&!e),s}(r?pV:fV,e.length,r,i,c);!r&&Y&&(e[O].providerFactory=N),yT(s,t,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(N),o.push(N)}else yT(s,t,b>-1?b:O,fO(e[r?O:b],c,!r&&i));!r&&i&&Y&&e[O].componentProviders++}}}function yT(t,n,e,i){const r=$c(n),s=function Cw(t){return!!t.useClass}(n);if(r||s){const l=(s?cn(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const p=c.indexOf(e);-1===p?c.push(e,[i,l]):c[p+1].push(i,l)}else c.push(e,l)}}}function fO(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function vT(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function hV(t,n,e){const i=vi();if(i.firstCreatePass){const r=Uo(t);gT(e,i.data,i.blueprint,r,!0),gT(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class pm{}class _V{}class wT extends pm{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new E3(this);const r=function mo(t,n){const e=t[f_]||null;if(!e&&!0===n)throw new Error(`Type ${gr(t)} does not have '\u0275mod' property.`);return e}(n);this._bootstrapComponents=function lh(t){return t instanceof Function?t():t}(r.bootstrap),this._r3Injector=qE(n,e,[{provide:pm,useValue:this},{provide:qn,useValue:this.componentFactoryResolver},...i],gr(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class MT extends _V{constructor(n){super(),this.moduleType=n}create(n){return new wT(this.moduleType,n,[])}}function Hs(t,n,e,i){return CO(ft(),no(),t,n,e,i)}function mm(t,n,e,i,r){return SO(ft(),no(),t,n,e,i,r)}function eM(t,n,e,i,r,s){return function TO(t,n,e,i,r,s,o,a){const l=n+e;return Hw(t,l,r,s,o)?Zc(t,l+3,a?i.call(a,r,s,o):i(r,s,o)):rv(t,l+3)}(ft(),no(),t,n,e,i,r,s)}function wO(t,n,e,i,r,s,o){return function xO(t,n,e,i,r,s,o,a,l){const c=n+e;return su(t,c,r,s,o,a)?Zc(t,c+4,l?i.call(l,r,s,o,a):i(r,s,o,a)):rv(t,c+4)}(ft(),no(),t,n,e,i,r,s,o)}function rv(t,n){const e=t[n];return e===zn?void 0:e}function CO(t,n,e,i,r,s){const o=n+e;return ca(t,o,r)?Zc(t,o+1,s?i.call(s,r):i(r)):rv(t,o+1)}function SO(t,n,e,i,r,s,o){const a=n+e;return um(t,a,r,s)?Zc(t,a+2,o?i.call(o,r,s):i(r,s)):rv(t,a+2)}function fn(t,n){const e=vi();let i;const r=t+li;e.firstCreatePass?(i=function PV(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=ri(i.type)),a=ar(Ae);try{const l=k_(!1),c=s();return k_(l),function vY(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,ft(),r,c),c}finally{ar(a)}}function wn(t,n,e){const i=t+li,r=ft(),s=yo(r,i);return sv(r,i)?CO(r,no(),n,s.transform,e,s):s.transform(e)}function CT(t,n,e,i){const r=t+li,s=ft(),o=yo(s,r);return sv(s,r)?SO(s,no(),n,o.transform,e,i,o):o.transform(e,i)}function sv(t,n){return t[Ht].data[n].pure}function jV(){return this._results[Symbol.iterator]()}class ST{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new Et)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=ST.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=jV)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function il(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function d5(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i0&&(e[r-1][Qs]=n),i{class t{static#e=this.__NG_ELEMENT_ID__=UV}return t})();const VV=ki,BV=class extends VV{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const r=function YV(t,n,e,i){const r=n.tView,a=Pw(t,r,e,4096&t[Nn]?4096:16,null,n,null,null,null,i?.injector??null,i?.hydrationInfo??null);a[Ud]=t[n.index];const c=t[_o];return null!==c&&(a[_o]=c.createEmbeddedView(r)),QS(r,a,e),a}(this._declarationLView,this._declarationTContainer,n,{injector:e,hydrationInfo:i});return new zy(r)}};function UV(){return tM(Ds(),ft())}function tM(t,n){return 4&t.type?new BV(n,t,Ys(t,n)):null}let Tl=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=KV}return t})();function KV(){return NO(Ds(),ft())}const ZV=Tl,IO=class extends ZV{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Ys(this._hostTNode,this._hostLView)}get injector(){return new io(this._hostTNode,this._hostLView)}get parentInjector(){const n=cf(this._hostTNode,this._hostLView);if(Bu(n)){const e=uf(n,this._hostLView),i=Bp(n);return new io(e[Ht].data[i+8],e)}return new io(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=PO(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-K}createEmbeddedView(n,e,i){let r,s;"number"==typeof i?r=i:null!=i&&(r=i.index,s=i.injector);const a=n.createEmbeddedViewImpl(e||{},s,null);return this.insertImpl(a,r,false),a}createComponent(n,e,i,r,s){const o=n&&!function qp(t){return"function"==typeof t}(n);let a;if(o)a=e;else{const E=e||{};a=E.index,i=E.injector,r=E.projectableNodes,s=E.environmentInjector||E.ngModuleRef}const l=o?n:new Wy(Hn(n)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const Y=(o?c:this.parentInjector).get(ru,null);Y&&(s=Y)}Hn(l.componentType??{});const b=l.create(c,r,null,s);return this.insertImpl(b.hostView,a,false),b}insert(n,e){return this.insertImpl(n,e,!1)}insertImpl(n,e,i){const r=n._lView;if(function KC(t){return Wi(t[hr])}(r)){const l=this.indexOf(n);if(-1!==l)this.detach(l);else{const c=r[hr],p=new IO(c,c[is],c[hr]);p.detach(p.indexOf(n))}}const o=this._adjustIndex(e),a=this._lContainer;return HV(a,r,o,!i),n.attachToViewContainerRef(),I2(TT(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=PO(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=so(this._lContainer,e);i&&(O_(TT(this._lContainer),e),Br(i[Ht],i))}detach(n){const e=this._adjustIndex(n,-1),i=so(this._lContainer,e);return i&&null!=O_(TT(this._lContainer),e)?new zy(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function PO(t){return t[8]}function TT(t){return t[8]||(t[8]=[])}function NO(t,n){let e;const i=n[t.index];return Wi(i)?e=i:(e=v3(i,n,null,t),n[t.index]=e,Nw(n,e)),FO(e,n,t,i),new IO(e,t,n)}let FO=function RO(t,n,e,i){if(t[Ga])return;let r;r=8&e.type?Ue(i):function JV(t,n){const e=t[Wt],i=e.createComment(""),r=jn(n,t);return sh(e,Zp(e,r),i,function K_(t,n){return t.nextSibling(n)}(e,r),!1),i}(n,e),t[Ga]=r};class xT{constructor(n){this.queryList=n,this.matches=null}clone(){return new xT(this.queryList)}setDirty(){this.queryList.setDirty()}}class kT{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,r=[];for(let s=0;s0)i.push(o[a/2]);else{const c=s[a+1],p=n[-l];for(let g=K;g{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=an(TB,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const r of this.appInits){const s=r();if(qw(s))e.push(s);else if(Q3(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const ou=new ht("LocaleId",{providedIn:"root",factory:()=>an(ou,ti.Optional|ti.SkipSelf)||function kB(){return typeof $localize<"u"&&$localize.locale||Ag}()});let RT=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Fo(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const uI=new ht(""),sM=new ht("");let BT,HT=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,BT||(function QB(t){BT=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{oi.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}static#e=this.\u0275fac=function(i){return new(i||t)(ve(oi),ve(VT),ve(sM))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})(),VT=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return BT?.findTestabilityInTree(this,e,i)??null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),xf=null;const cI=new ht("AllowMultipleToken"),UT=new ht("PlatformDestroyListeners"),dI=new ht("appBootstrapListener");function pI(t,n,e=[]){const i=`Platform: ${n}`,r=new ht(i);return(s=[])=>{let o=qT();if(!o||o.injector.get(cI,!1)){const a=[...e,...s,{provide:r,useValue:!0}];t?t(a):function nU(t){if(xf&&!xf.get(cI,!1))throw new at(400,!1);(function hI(){!function M_(t){cs=t}(()=>{throw new at(600,!1)})})(),xf=t;const n=t.get(_I);(function fI(t){t.get(Tw,null)?.forEach(e=>e())})(t)}(function mI(t=[],n){return Ia.create({name:n,providers:[{provide:Ay,useValue:"platform"},{provide:UT,useValue:new Set([()=>xf=null])},...t]})}(a,i))}return function rU(t){const n=qT();if(!n)throw new at(401,!1);return n}()}}function qT(){return xf?.get(_I)??null}let _I=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function sU(t="zone.js",n){return"noop"===t?new Vj:"zone.js"===t?new oi(n):t}(i?.ngZone,function gI(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{const s=function yV(t,n,e){return new wT(t,n,e)}(e.moduleType,this.injector,function MI(t){return[{provide:oi,useFactory:t},{provide:rg,multi:!0,useFactory:()=>{const n=an(aU,{optional:!0});return()=>n.initialize()}},{provide:wI,useFactory:oU},{provide:KE,useFactory:ZE}]}(()=>r)),o=s.injector.get(Gc,null);return r.runOutsideAngular(()=>{const a=r.onError.subscribe({next:l=>{o.handleError(l)}});s.onDestroy(()=>{oM(this._modules,s),a.unsubscribe()})}),function yI(t,n,e){try{const i=e();return qw(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(o,r,()=>{const a=s.injector.get(FT);return a.runInitializers(),a.donePromise.then(()=>(function U4(t){Xo(t,"Expected localeId to be defined"),"string"==typeof t&&(B4=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(ou,Ag)||Ag),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,i=[]){const r=vI({},i);return function eU(t,n,e){const i=new MT(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(_m);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new at(-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 at(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(UT,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||t)(ve(Ia))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function vI(t,n){return Array.isArray(n)?n.reduce(vI,t):{...t,...n}}let _m=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=an(wI),this.zoneIsStable=an(KE),this.componentTypes=[],this.components=[],this.isStable=an(RT).hasPendingTasks.pipe(Ro(e=>e?Si(!1):this.zoneIsStable),Yh(),Hl()),this._injector=an(ru)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof Yt;if(!this._injector.get(FT).done)throw!r&&function ql(t){const n=Hn(t)||Gr(t)||Ps(t);return null!==n&&n.standalone}(e),new at(405,!1);let o;o=r?e:this._injector.get(qn).resolveComponentFactory(e),this.componentTypes.push(o.componentType);const a=function tU(t){return t.isBoundToModule}(o)?void 0:this._injector.get(pm),c=o.create(Ia.NULL,[],i||o.selector,a),p=c.location.nativeElement,g=c.injector.get(uI,null);return g?.registerApplication(p),c.onDestroy(()=>{this.detachView(c.hostView),oM(this.components,c),g?.unregisterApplication(p)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new at(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;oM(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(dI,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>oM(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new at(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function oM(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const wI=new ht("",{providedIn:"root",factory:()=>an(Gc).handleError.bind(void 0)});function oU(){const t=an(oi),n=an(Gc);return e=>t.runOutsideAngular(()=>n.handleError(e))}let aU=(()=>{class t{constructor(){this.zone=an(oi),this.applicationRef=an(_m)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();let Wo=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=uU}return t})();function uU(t){return function cU(t,n,e){if(Pu(t)&&!e){const i=aa(t.index,n);return new zy(i,i)}return 47&t.type?new zy(n[Er],n):null}(Ds(),ft(),16==(16&t))}class TI{constructor(){}supports(n){return Yw(n)}create(n){return new _U(n)}}const mU=(t,n)=>n;class _U{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||mU}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let s;return null===n?s=this._itTail:(s=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,s,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,s,r)):n=this._addAfter(new gU(e,i),s,r),n}_verifyReinsertion(n,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?n=this._reinsertAfter(s,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,s=n._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new xI),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new xI),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class gU{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class yU{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class xI{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new yU,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function kI(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new bU(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class bU{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function LI(){return new uM([new TI])}let uM=(()=>{class t{static#e=this.\u0275prov=it({token:t,providedIn:"root",factory:LI});constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||LI()),deps:[[t,new N_,new P_]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new at(901,!1)}}return t})();function EI(){return new lv([new AI])}let lv=(()=>{class t{static#e=this.\u0275prov=it({token:t,providedIn:"root",factory:EI});constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||EI()),deps:[[t,new N_,new P_]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new at(901,!1)}}return t})();const DU=pI(null,"core",[]);let CU=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(i){return new(i||t)(ve(_m))};static#t=this.\u0275mod=Cn({type:t});static#n=this.\u0275inj=Dn({})}return t})();let JT=null;function kf(){return JT}class RU{}const Ai=new ht("DocumentToken");let XT=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:function(){return an(HI)},providedIn:"platform"})}return t})(),HI=(()=>{class t extends XT{constructor(){super(),this._doc=an(Ai),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return kf().getBaseHref(this._doc)}onPopState(e){const i=kf().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=kf().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function VI(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function BI(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function ym(t){return t&&"?"!==t[0]?"?"+t:t}let QT=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:function(){return an(YU)},providedIn:"root"})}return t})();const jU=new ht("appBaseHref");let YU=(()=>{class t extends QT{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??an(Ai).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return VI(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+ym(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+ym(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+ym(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(i){return new(i||t)(ve(XT),ve(jU,8))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ex=(()=>{class t{constructor(e){this._subject=new Et,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function BU(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(BI(UI(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+ym(i))}normalize(e){return t.stripTrailingSlash(function VU(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,UI(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ym(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ym(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}static#e=this.normalizeQueryParams=ym;static#t=this.joinWithSlash=VI;static#n=this.stripTrailingSlash=BI;static#i=this.\u0275fac=function(i){return new(i||t)(ve(QT))};static#r=this.\u0275prov=it({token:t,factory:function(){return function HU(){return new ex(ve(QT))}()},providedIn:"root"})}return t})();function UI(t){return t.replace(/\/index.html$/,"")}var ja=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(ja||{}),wr=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(wr||{}),xl=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(xl||{}),Cs=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(Cs||{});function hM(t,n){return lu(Pa(t)[Pr.DateFormat],n)}function fM(t,n){return lu(Pa(t)[Pr.TimeFormat],n)}function pM(t,n){return lu(Pa(t)[Pr.DateTimeFormat],n)}function au(t,n){const e=Pa(t),i=e[Pr.NumberSymbols][n];if(typeof i>"u"){if(n===Cs.CurrencyDecimal)return e[Pr.NumberSymbols][Cs.Decimal];if(n===Cs.CurrencyGroup)return e[Pr.NumberSymbols][Cs.Group]}return i}function zI(t){if(!t[Pr.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Pr.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function lu(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function nx(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const nq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,uv={},iq=/((?:[^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 ch=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(ch||{}),Xi=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(Xi||{}),Qi=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Qi||{});function rq(t,n,e,i){let r=function fq(t){if(GI(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,s=1,o=1]=t.split("-").map(a=>+a);return mM(r,s-1,o)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(nq))return function pq(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,s=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(n,o,a,l,c),n}(i)}const n=new Date(t);if(!GI(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=dh(e,n)||n;let a,o=[];for(;n;){if(a=iq.exec(n),!a){o.push(n);break}{o=o.concat(a.slice(1));const p=o.pop();if(!p)break;n=p}}let l=r.getTimezoneOffset();i&&(l=$I(i,l),r=function hq(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function dq(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*($I(n,r)-r))}(r,i,!0));let c="";return o.forEach(p=>{const g=function cq(t){if(rx[t])return rx[t];let n;switch(t){case"G":case"GG":case"GGG":n=Nr(Qi.Eras,wr.Abbreviated);break;case"GGGG":n=Nr(Qi.Eras,wr.Wide);break;case"GGGGG":n=Nr(Qi.Eras,wr.Narrow);break;case"y":n=Vs(Xi.FullYear,1,0,!1,!0);break;case"yy":n=Vs(Xi.FullYear,2,0,!0,!0);break;case"yyy":n=Vs(Xi.FullYear,3,0,!1,!0);break;case"yyyy":n=Vs(Xi.FullYear,4,0,!1,!0);break;case"Y":n=vM(1);break;case"YY":n=vM(2,!0);break;case"YYY":n=vM(3);break;case"YYYY":n=vM(4);break;case"M":case"L":n=Vs(Xi.Month,1,1);break;case"MM":case"LL":n=Vs(Xi.Month,2,1);break;case"MMM":n=Nr(Qi.Months,wr.Abbreviated);break;case"MMMM":n=Nr(Qi.Months,wr.Wide);break;case"MMMMM":n=Nr(Qi.Months,wr.Narrow);break;case"LLL":n=Nr(Qi.Months,wr.Abbreviated,ja.Standalone);break;case"LLLL":n=Nr(Qi.Months,wr.Wide,ja.Standalone);break;case"LLLLL":n=Nr(Qi.Months,wr.Narrow,ja.Standalone);break;case"w":n=ix(1);break;case"ww":n=ix(2);break;case"W":n=ix(1,!0);break;case"d":n=Vs(Xi.Date,1);break;case"dd":n=Vs(Xi.Date,2);break;case"c":case"cc":n=Vs(Xi.Day,1);break;case"ccc":n=Nr(Qi.Days,wr.Abbreviated,ja.Standalone);break;case"cccc":n=Nr(Qi.Days,wr.Wide,ja.Standalone);break;case"ccccc":n=Nr(Qi.Days,wr.Narrow,ja.Standalone);break;case"cccccc":n=Nr(Qi.Days,wr.Short,ja.Standalone);break;case"E":case"EE":case"EEE":n=Nr(Qi.Days,wr.Abbreviated);break;case"EEEE":n=Nr(Qi.Days,wr.Wide);break;case"EEEEE":n=Nr(Qi.Days,wr.Narrow);break;case"EEEEEE":n=Nr(Qi.Days,wr.Short);break;case"a":case"aa":case"aaa":n=Nr(Qi.DayPeriods,wr.Abbreviated);break;case"aaaa":n=Nr(Qi.DayPeriods,wr.Wide);break;case"aaaaa":n=Nr(Qi.DayPeriods,wr.Narrow);break;case"b":case"bb":case"bbb":n=Nr(Qi.DayPeriods,wr.Abbreviated,ja.Standalone,!0);break;case"bbbb":n=Nr(Qi.DayPeriods,wr.Wide,ja.Standalone,!0);break;case"bbbbb":n=Nr(Qi.DayPeriods,wr.Narrow,ja.Standalone,!0);break;case"B":case"BB":case"BBB":n=Nr(Qi.DayPeriods,wr.Abbreviated,ja.Format,!0);break;case"BBBB":n=Nr(Qi.DayPeriods,wr.Wide,ja.Format,!0);break;case"BBBBB":n=Nr(Qi.DayPeriods,wr.Narrow,ja.Format,!0);break;case"h":n=Vs(Xi.Hours,1,-12);break;case"hh":n=Vs(Xi.Hours,2,-12);break;case"H":n=Vs(Xi.Hours,1);break;case"HH":n=Vs(Xi.Hours,2);break;case"m":n=Vs(Xi.Minutes,1);break;case"mm":n=Vs(Xi.Minutes,2);break;case"s":n=Vs(Xi.Seconds,1);break;case"ss":n=Vs(Xi.Seconds,2);break;case"S":n=Vs(Xi.FractionalSeconds,1);break;case"SS":n=Vs(Xi.FractionalSeconds,2);break;case"SSS":n=Vs(Xi.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=gM(ch.Short);break;case"ZZZZZ":n=gM(ch.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=gM(ch.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=gM(ch.Long);break;default:return null}return rx[t]=n,n}(p);c+=g?g(r,e,l):"''"===p?"'":p.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function mM(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function dh(t,n){const e=function qU(t){return Pa(t)[Pr.LocaleId]}(t);if(uv[e]=uv[e]||{},uv[e][n])return uv[e][n];let i="";switch(n){case"shortDate":i=hM(t,xl.Short);break;case"mediumDate":i=hM(t,xl.Medium);break;case"longDate":i=hM(t,xl.Long);break;case"fullDate":i=hM(t,xl.Full);break;case"shortTime":i=fM(t,xl.Short);break;case"mediumTime":i=fM(t,xl.Medium);break;case"longTime":i=fM(t,xl.Long);break;case"fullTime":i=fM(t,xl.Full);break;case"short":const r=dh(t,"shortTime"),s=dh(t,"shortDate");i=_M(pM(t,xl.Short),[r,s]);break;case"medium":const o=dh(t,"mediumTime"),a=dh(t,"mediumDate");i=_M(pM(t,xl.Medium),[o,a]);break;case"long":const l=dh(t,"longTime"),c=dh(t,"longDate");i=_M(pM(t,xl.Long),[l,c]);break;case"full":const p=dh(t,"fullTime"),g=dh(t,"fullDate");i=_M(pM(t,xl.Full),[p,g])}return i&&(uv[e][n]=i),i}function _M(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Ku(t,n,e="-",i,r){let s="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,s=e));let o=String(t);for(;o.length0||a>-e)&&(a+=e),t===Xi.Hours)0===a&&-12===e&&(a=12);else if(t===Xi.FractionalSeconds)return function sq(t,n){return Ku(t,3).substring(0,n)}(a,n);const l=au(o,Cs.MinusSign);return Ku(a,n,l,i,r)}}function Nr(t,n,e=ja.Format,i=!1){return function(r,s){return function aq(t,n,e,i,r,s){switch(e){case Qi.Months:return function $U(t,n,e){const i=Pa(t),s=lu([i[Pr.MonthsFormat],i[Pr.MonthsStandalone]],n);return lu(s,e)}(n,r,i)[t.getMonth()];case Qi.Days:return function WU(t,n,e){const i=Pa(t),s=lu([i[Pr.DaysFormat],i[Pr.DaysStandalone]],n);return lu(s,e)}(n,r,i)[t.getDay()];case Qi.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(s){const c=function JU(t){const n=Pa(t);return zI(n),(n[Pr.ExtraData][2]||[]).map(i=>"string"==typeof i?nx(i):[nx(i[0]),nx(i[1])])}(n),p=function XU(t,n,e){const i=Pa(t);zI(i);const s=lu([i[Pr.ExtraData][0],i[Pr.ExtraData][1]],n)||[];return lu(s,e)||[]}(n,r,i),g=c.findIndex(D=>{if(Array.isArray(D)){const[b,O]=D,E=o>=b.hours&&a>=b.minutes,Y=o0?Math.floor(r/60):Math.ceil(r/60);switch(t){case ch.Short:return(r>=0?"+":"")+Ku(o,2,s)+Ku(Math.abs(r%60),2,s);case ch.ShortGMT:return"GMT"+(r>=0?"+":"")+Ku(o,1,s);case ch.Long:return"GMT"+(r>=0?"+":"")+Ku(o,2,s)+":"+Ku(Math.abs(r%60),2,s);case ch.Extended:return 0===i?"Z":(r>=0?"+":"")+Ku(o,2,s)+":"+Ku(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}const lq=0,yM=4;function WI(t){return mM(t.getFullYear(),t.getMonth(),t.getDate()+(yM-t.getDay()))}function ix(t,n=!1){return function(e,i){let r;if(n){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+s)/7)}else{const s=WI(e),o=function uq(t){const n=mM(t,lq,1).getDay();return mM(t,0,1+(n<=yM?yM:yM+7)-n)}(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return Ku(r,t,au(i,Cs.MinusSign))}}function vM(t,n=!1){return function(e,i){return Ku(WI(e).getFullYear(),t,au(i,Cs.MinusSign),n)}}const rx={};function $I(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function GI(t){return t instanceof Date&&!isNaN(t.valueOf())}function XI(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(s)}return null}const cx=/\s+/,QI=[];let Ya=(()=>{class t{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this.initialClasses=QI,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(cx):QI}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(cx):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(cx).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(uM),Ae(lv),Ae(Fn),Ae(Kr))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class kq{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let uu=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new kq(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),tP(a,r)}});for(let r=0,s=i.length;r{tP(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Tl),Ae(ki),Ae(uM))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function tP(t,n){t.context.$implicit=n.item}let Do=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new Aq,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){nP("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){nP("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}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Tl),Ae(ki))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class Aq{constructor(){this.$implicit=null,this.ngIf=null}}function nP(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${gr(n)}'.`)}class dx{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let dv=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),hx=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new dx(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Tl),Ae(ki),Ae(dv,9))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),iP=(()=>{class t{constructor(e,i,r){r._addDefault(new dx(e,i))}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Tl),Ae(ki),Ae(dv,9))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),vm=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:s,ngTemplateOutletInjector:o}=this;this._viewRef=i.createEmbeddedView(r,s,o?{injector:o}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Tl))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[rs]})}return t})();function Zu(t,n){return new at(2100,!1)}class Oq{createSubscription(n,e){return D_(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){D_(()=>n.unsubscribe())}}class Iq{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const Pq=new Iq,Nq=new Oq;let sP=(()=>{class t{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(qw(e))return Pq;if(Q3(e))return Nq;throw Zu()}_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())}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Wo,16))};static#t=this.\u0275pipe=Hr({name:"async",type:t,pure:!1,standalone:!0})}return t})();const Vq=new ht("DATE_PIPE_DEFAULT_TIMEZONE"),Bq=new ht("DATE_PIPE_DEFAULT_OPTIONS");let oP=(()=>{class t{constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,s){if(null==e||""===e||e!=e)return null;try{return rq(e,i??this.defaultOptions?.dateFormat??"mediumDate",s||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(o){throw Zu()}}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(ou,16),Ae(Vq,24),Ae(Bq,24))};static#t=this.\u0275pipe=Hr({name:"date",type:t,pure:!0,standalone:!0})}return t})(),aP=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=Hr({name:"json",type:t,pure:!1,standalone:!0})}return t})(),ss=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Cn({type:t});static#n=this.\u0275inj=Dn({})}return t})();const uP="browser";function mx(t){return"server"===t}class cP{}class Cz extends RU{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class yx extends Cz{static makeCurrent(){!function FU(t){JT||(JT=t)}(new yx)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function Sz(){return fv=fv||document.querySelector("base"),fv?fv.getAttribute("href"):null}();return null==e?null:function Tz(t){DM=DM||document.createElement("a"),DM.setAttribute("href",t);const n=DM.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){fv=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return XI(document.cookie,n)}}let DM,fv=null,kz=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();const vx=new ht("EventManagerPlugins");let mP=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(s=>s.supports(e)),!i)throw new at(5101,!1);return this._eventNameToPlugin.set(e,i),i}static#e=this.\u0275fac=function(i){return new(i||t)(ve(vx),ve(oi))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();class _P{constructor(n){this._doc=n}}const bx="ng-app-id";let gP=(()=>{class t{constructor(e,i,r,s={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=mx(s),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${bx}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){const r=this.styleRef;if(r.has(e)){const s=r.get(e);return s.usage+=i,s.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const r=this.styleNodesInDOM,s=r?.get(i);if(s?.parentNode===e)return r.delete(i),s.removeAttribute(bx),s;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=i,this.platformIsServer&&o.setAttribute(bx,this.appId),o}}addStyleToHost(e,i){const r=this.getStyleElement(e,i);e.appendChild(r);const s=this.styleRef,o=s.get(i)?.elements;o?o.push(r):s.set(i,{elements:[r],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||t)(ve(Ai),ve(ug),ve(Iy,8),ve(zu))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();const wx={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/"},Mx=/%COMP%/g,Oz=new ht("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function vP(t,n){return n.map(e=>e.replace(Mx,t))}let Dx=(()=>{class t{constructor(e,i,r,s,o,a,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=mx(a),this.defaultRenderer=new Cx(e,o,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ea.ShadowDom&&(i={...i,encapsulation:ea.Emulated});const r=this.getOrCreateRenderer(e,i);return r instanceof wP?r.applyToHost(e):r instanceof Sx&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let s=r.get(i.id);if(!s){const o=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(i.encapsulation){case ea.Emulated:s=new wP(l,c,i,this.appId,p,o,a,g);break;case ea.ShadowDom:return new Fz(l,c,e,i,o,a,this.nonce,g);default:s=new Sx(l,c,i,p,o,a,g)}r.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(ve(mP),ve(gP),ve(ug),ve(Oz),ve(Ai),ve(zu),ve(oi),ve(Iy))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();class Cx{constructor(n,e,i,r){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(wx[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(bP(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(bP(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new at(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const s=wx[r];s?n.setAttributeNS(s,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=wx[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(qc.DashCase|qc.Important)?n.style.setProperty(e,i,r&qc.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&qc.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=kf().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function bP(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class Fz extends Cx{constructor(n,e,i,r,s,o,a,l){super(n,s,o,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=vP(r.id,r.styles);for(const p of c){const g=document.createElement("style");a&&g.setAttribute("nonce",a),g.textContent=p,this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Sx extends Cx{constructor(n,e,i,r,s,o,a,l){super(n,s,o,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=l?vP(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class wP extends Sx{constructor(n,e,i,r,s,o,a,l){const c=r+"-"+i.id;super(n,e,i,s,o,a,l,c),this.contentAttr=function Iz(t){return"_ngcontent-%COMP%".replace(Mx,t)}(c),this.hostAttr=function Pz(t){return"_nghost-%COMP%".replace(Mx,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let Rz=(()=>{class t extends _P{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}static#e=this.\u0275fac=function(i){return new(i||t)(ve(Ai))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();const MP=["alt","control","meta","shift"],jz={"\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"},Yz={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Hz=(()=>{class t extends _P{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const s=t.parseEventName(i),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>kf().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(i.pop());let o="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),o="code."),MP.forEach(c=>{const p=i.indexOf(c);p>-1&&(i.splice(p,1),o+=c+".")}),o+=s,0!=i.length||0===s.length)return null;const l={};return l.domEventName=r,l.fullKey=o,l}static matchEventFullKeyCode(e,i){let r=jz[e.key]||e.key,s="";return i.indexOf("code.")>-1&&(r=e.code,s="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),MP.forEach(o=>{o!==r&&(0,Yz[o])(e)&&(s+=o+".")}),s+=r,s===i)}static eventCallback(e,i,r){return s=>{t.matchEventFullKeyCode(s,e)&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(i){return new(i||t)(ve(Ai))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();const CP=[{provide:zu,useValue:uP},{provide:Tw,useValue:function Vz(){yx.makeCurrent()},multi:!0},{provide:Ai,useFactory:function Uz(){return function J5(t){X_=t}(document),document},deps:[]}],qz=pI(DU,"browser",CP),zz=new ht(""),SP=[{provide:sM,useClass:class xz{addToWindow(n){gi.getAngularTestability=(i,r=!0)=>{const s=n.findTestabilityInTree(i,r);if(null==s)throw new at(5103,!1);return s},gi.getAllAngularTestabilities=()=>n.getAllTestabilities(),gi.getAllAngularRootElements=()=>n.getAllRootElements(),gi.frameworkStabilizers||(gi.frameworkStabilizers=[]),gi.frameworkStabilizers.push(i=>{const r=gi.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?kf().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:uI,useClass:HT,deps:[oi,VT,sM]},{provide:HT,useClass:HT,deps:[oi,VT,sM]}],TP=[{provide:Ay,useValue:"root"},{provide:Gc,useFactory:function Bz(){return new Gc},deps:[]},{provide:vx,useClass:Rz,multi:!0,deps:[Ai,oi,zu]},{provide:vx,useClass:Hz,multi:!0,deps:[Ai]},Dx,gP,mP,{provide:vr,useExisting:Dx},{provide:cP,useClass:kz,deps:[]},[]];let xP=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:ug,useValue:e.appId}]}}static#e=this.\u0275fac=function(i){return new(i||t)(ve(zz,12))};static#t=this.\u0275mod=Cn({type:t});static#n=this.\u0275inj=Dn({providers:[...TP,...SP],imports:[ss,CU]})}return t})();typeof window<"u"&&window;let LP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:function(i){let r=null;return r=i?new(i||t):ve(EP),r},providedIn:"root"})}return t})(),EP=(()=>{class t extends LP{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Ea.NONE:return i;case Ea.HTML:return iu(i,"HTML")?La(i):_w(this._doc,String(i)).toString();case Ea.STYLE:return iu(i,"Style")?La(i):i;case Ea.SCRIPT:if(iu(i,"Script"))return La(i);throw new at(5200,!1);case Ea.URL:return iu(i,"URL")?La(i):tg(String(i));case Ea.RESOURCE_URL:if(iu(i,"ResourceURL"))return La(i);throw new at(5201,!1);default:throw new at(5202,!1)}}bypassSecurityTrustHtml(e){return function rS(t){return new X5(t)}(e)}bypassSecurityTrustStyle(e){return function sS(t){return new Q5(t)}(e)}bypassSecurityTrustScript(e){return function vy(t){return new eS(t)}(e)}bypassSecurityTrustUrl(e){return function oS(t){return new tS(t)}(e)}bypassSecurityTrustResourceUrl(e){return function by(t){return new nS(t)}(e)}static#e=this.\u0275fac=function(i){return new(i||t)(ve(Ai))};static#t=this.\u0275prov=it({token:t,factory:function(i){let r=null;return r=i?new i:function Jz(t){return new EP(t.get(Ai))}(ve(Ia)),r},providedIn:"root"})}return t})();var Ju=J(48309);let xx=(()=>{class t extends HI{constructor(){super(...arguments),this.skipNextPopState=!1,this.source="Window.addEventListener:popstate"}pushState(e,i,r){this.skipNextPopState=!0,super.pushState(e,i,r)}replaceState(e,i,r){this.skipNextPopState=!0,super.replaceState(e,i,r)}onPopState(e){return e=Zone.current.wrap(e,this.source),super.onPopState(s=>{this.skipNextPopState&&s.singleSpa?this.skipNextPopState=!1:e(s)})}static#e=this.\u0275fac=function(){let e;return function(r){return(e||(e=yr(t)))(r||t)}}();static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();const iW={NgZone:null,bootstrapFunction:null,template:null,Router:void 0,domElementGetter:void 0,updateFunction:()=>Promise.resolve(),bootstrappedNgModuleRefOrAppRef:null},Lf=!1;function sW(t,n){return kx.apply(this,arguments)}function kx(){return(kx=(0,Ju.Z)(function*(t,n){"noop"!==t.NgZone&&(t.zoneIdentifier=`single-spa-angular:${n.name||n.appName}`,t.NgZone.isInAngularZone=()=>!0===window.Zone.current._properties[t.zoneIdentifier],t.routingEventListener=()=>{t.bootstrappedNgZone.run(()=>{})})})).apply(this,arguments)}function oW(t,n){return Ax.apply(this,arguments)}function Ax(){return(Ax=(0,Ju.Z)(function*(t,n){!function Xz(t,n){const e=function eW(t,n){return(n=n?.customProps??n).domElement?()=>n.domElement:n.domElementGetter?n.domElementGetter:t.domElementGetter?t.domElementGetter:function tW(t){return function(){const e=`single-spa-application:${t}`;let i=document.getElementById(e);return i||(i=document.createElement("div"),i.id=e,document.body.appendChild(i)),i}}(n.name)}(t,n),i=function Qz(t,n){return t(n)}(e,n);return i.innerHTML=t.template,i}(t,n);const e=t.bootstrapFunction(n);if(Lf&&!(e instanceof Promise))throw Error(`single-spa-angular: the options.bootstrapFunction must return a promise, but instead returned a '${typeof e}' that is not a Promise`);const i=yield e;if(Lf&&(!i||"function"!=typeof i.destroy))throw Error("single-spa-angular: the options.bootstrapFunction returned a promise that did not resolve with a valid Angular module or ApplicationRef. Did you call platformBrowserDynamic().bootstrapModule() correctly?");const r=i.injector.get(xx,null),s="noop"!==t.NgZone;if(Lf&&s&&t.Router&&null===r)throw new Error("\n single-spa-angular: could not retrieve extra providers from the platform injector. Did you call platformBrowserDynamic(getSingleSpaExtraProviders()).bootstrapModule()?\n ");const o=t;if(s){const a=i.injector.get(t.NgZone),l=o.zoneIdentifier;null!==r&&function lW(t,n){if(!n.NavigationStart)return;const e=t.injector.get(n.Router),i=e.events.subscribe(r=>{if(r instanceof n.NavigationStart){const s=e.getCurrentNavigation();"imperative"!==s.trigger&&(s.extras.skipLocationChange=!0,s.extras.replaceUrl=!1)}});t.onDestroy(()=>i.unsubscribe())}(i,t),o.bootstrappedNgZone=a,o.bootstrappedNgZone._inner._properties[l]=!0,window.addEventListener("single-spa:routing-event",o.routingEventListener)}return o.bootstrappedNgModuleRefOrAppRef=i,i})).apply(this,arguments)}function aW(t){return Promise.resolve().then(()=>{t.routingEventListener&&window.removeEventListener("single-spa:routing-event",t.routingEventListener),t.bootstrappedNgModuleRefOrAppRef.destroy(),t.bootstrappedNgModuleRefOrAppRef=null})}class IP{}class uW{}const hh="*";function Lx(t,n){return{type:7,name:t,definitions:n,options:{}}}function Ef(t,n=null){return{type:4,styles:n,timings:t}}function PP(t,n=null){return{type:2,steps:t,options:n}}function Co(t){return{type:6,styles:t,offset:null}}function CM(t,n,e){return{type:0,name:t,styles:n,options:e}}function dW(t){return{type:5,steps:t}}function pv(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function Ex(t=null){return{type:9,options:t}}class mv{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class NP{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function FP(t){return new at(3e3,!1)}function Of(t){switch(t.length){case 0:return new mv;case 1:return t[0];default:return new NP(t)}}function RP(t,n,e=new Map,i=new Map){const r=[],s=[];let o=-1,a=null;if(n.forEach(l=>{const c=l.get("offset"),p=c==o,g=p&&a||new Map;l.forEach((D,b)=>{let O=b,E=D;if("offset"!==b)switch(O=t.normalizePropertyName(O,r),E){case"!":E=e.get(b);break;case hh:E=i.get(b);break;default:E=t.normalizeStyleValue(b,O,E,r)}g.set(O,E)}),p||s.push(g),a=g,o=c}),r.length)throw function NW(t){return new at(3502,!1)}();return s}function Ix(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Px(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Px(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Px(e,"destroy",t)))}}function Px(t,n,e){const s=Nx(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),o=t._data;return null!=o&&(s._data=o),s}function Nx(t,n,e,i,r="",s=0,o){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function kl(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function jP(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const $W=(()=>typeof document>"u"?null:document.documentElement)();function Fx(t){const n=t.parentNode||t.host||null;return n===$W?null:n}let bm=null,YP=!1;function HP(t,n){for(;n;){if(n===t)return!0;n=Fx(n)}return!1}function VP(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let BP=(()=>{class t{validateStyleProperty(e){return function KW(t){bm||(bm=function ZW(){return typeof document<"u"?document.body:null}()||{},YP=!!bm.style&&"WebkitAppearance"in bm.style);let n=!0;return bm.style&&!function GW(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in bm.style,!n&&YP&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in bm.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return HP(e,i)}getParentElement(e){return Fx(e)}query(e,i,r){return VP(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new mv(r,s)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})(),Rx=(()=>{class t{static#e=this.NOOP=new BP}return t})();const JW=1e3,jx="ng-enter",SM="ng-leave",TM="ng-trigger",xM=".ng-trigger",qP="ng-animating",Yx=".ng-animating";function fh(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Hx(parseFloat(n[1]),n[2])}function Hx(t,n){return"s"===n?t*JW:t}function kM(t,n,e){return t.hasOwnProperty("duration")?t:function QW(t,n,e){let r,s=0,o="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(FP()),{duration:0,delay:0,easing:""};r=Hx(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Hx(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function fW(){return new at(3100,!1)}()),a=!0),s<0&&(n.push(function pW(){return new at(3101,!1)}()),a=!0),a&&n.splice(l,0,FP())}return{duration:r,delay:s,easing:o}}(t,n,e)}function _v(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function zP(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function If(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function ed(t,n,e){n.forEach((i,r)=>{const s=Bx(r);e&&!e.has(r)&&e.set(r,t.style[s]),t.style[s]=i})}function wm(t,n){n.forEach((e,i)=>{const r=Bx(i);t.style[r]=""})}function gv(t){return Array.isArray(t)?1==t.length?t[0]:PP(t):t}const Vx=new RegExp("{{\\s*(.+?)\\s*}}","g");function $P(t){let n=[];if("string"==typeof t){let e;for(;e=Vx.exec(t);)n.push(e[1]);Vx.lastIndex=0}return n}function yv(t,n,e){const i=t.toString(),r=i.replace(Vx,(s,o)=>{let a=n[o];return null==a&&(e.push(function _W(t){return new at(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function AM(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const n$=/-+([a-z0-9])/g;function Bx(t){return t.replace(n$,(...n)=>n[1].toUpperCase())}function Al(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function gW(t){return new at(3004,!1)}()}}function GP(t,n){return window.getComputedStyle(t)[n]}const LM="*";function s$(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function o$(t,n,e){if(":"==t[0]){const l=function a$(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function LW(t){return new at(3015,!1)}()),n;const r=i[1],s=i[2],o=i[3];n.push(KP(r,o));"<"==s[0]&&!(r==LM&&o==LM)&&n.push(KP(o,r))}(i,e,n)):e.push(t),e}const EM=new Set(["true","1"]),OM=new Set(["false","0"]);function KP(t,n){const e=EM.has(t)||OM.has(t),i=EM.has(n)||OM.has(n);return(r,s)=>{let o=t==LM||t==r,a=n==LM||n==s;return!o&&e&&"boolean"==typeof r&&(o=r?EM.has(t):OM.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?EM.has(n):OM.has(n)),o&&a}}const l$=new RegExp("s*:selfs*,?","g");function Ux(t,n,e,i){return new u$(t).build(n,e,i)}class u${constructor(n){this._driver=n}build(n,e,i){const r=new h$(e);return this._resetContextStyleTimingState(r),Al(this,gv(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==n.name.charAt(0)&&e.errors.push(function vW(){return new at(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(p=>{l.name=p,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push(function bW(){return new at(3007,!1)}())}),{type:7,name:n.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{$P(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&(AM(s.values()),e.errors.push(function wW(t,n){return new at(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Al(this,gv(n.animation),e);return{type:1,matchers:s$(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Mm(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>Al(this,i,e)),options:Mm(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const s=n.steps.map(o=>{e.currentTime=i;const a=Al(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:Mm(n.options)}}visitAnimate(n,e){const i=function p$(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return qx(kM(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=qx(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=kM(e,n);return qx(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,s=n.styles?n.styles:Co({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Co(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===hh?i.push(a):e.errors.push(new at(3002,!1)):i.push(zP(a));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:i,easing:o,offset:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),n.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),p=c.get(l);let g=!0;p&&(s!=r&&s>=p.startTime&&r<=p.endTime&&(e.errors.push(function DW(t,n,e,i,r){return new at(3010,!1)}()),g=!1),s=p.startTime),g&&c.set(l,{startTime:s,endTime:r}),e.options&&function t$(t,n,e){const i=n.params||{},r=$P(t);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function mW(t){return new at(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function CW(){return new at(3011,!1)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const p=n.steps.map(N=>{const H=this._makeStyleAst(N,e);let se=null!=H.offset?H.offset:function f$(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(H.styles),me=0;return null!=se&&(s++,me=H.offset=se),l=l||me<0||me>1,a=a||me0&&s{const se=D>0?H==b?1:D*H:o[H],me=se*Y;e.currentTime=O+E.delay+me,E.duration=me,this._validateStyleAst(N,e),N.offset=se,i.styles.push(N)}),i}visitReference(n,e){return{type:8,animation:Al(this,gv(n.animation),e),options:Mm(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Mm(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Mm(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[s,o]=function c$(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(l$,"")),t=t.replace(/@\*/g,xM).replace(/@\w+/g,e=>xM+"-"+e.slice(1)).replace(/:animating/g,Yx),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+s:s,kl(e.collectedStyles,e.currentQuerySelector,new Map);const a=Al(this,gv(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:Mm(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function kW(){return new at(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:kM(n.timings,e.errors,!0);return{type:12,animation:Al(this,gv(n.animation),e),timings:i,options:null}}}class h${constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Mm(t){return t?(t=_v(t)).params&&(t.params=function d$(t){return t?_v(t):null}(t.params)):t={},t}function qx(t,n,e){return{duration:t,delay:n,easing:e}}function zx(t,n,e,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class IM{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const g$=new RegExp(":enter","g"),v$=new RegExp(":leave","g");function Wx(t,n,e,i,r,s=new Map,o=new Map,a,l,c=[]){return(new b$).buildKeyframes(t,n,e,i,r,s,o,a,l,c)}class b${buildKeyframes(n,e,i,r,s,o,a,l,c,p=[]){c=c||new IM;const g=new $x(n,e,c,r,s,p,[]);g.options=l;const D=l.delay?fh(l.delay):0;g.currentTimeline.delayNextStep(D),g.currentTimeline.setStyles([o],null,g.errors,l),Al(this,i,g);const b=g.timelines.filter(O=>O.containsAnimation());if(b.length&&a.size){let O;for(let E=b.length-1;E>=0;E--){const Y=b[E];if(Y.element===e){O=Y;break}}O&&!O.allowOnlyTimelineStyles()&&O.setStyles([a],null,g.errors,l)}return b.length?b.map(O=>O.buildKeyframes()):[zx(e,[],[],[],0,D,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const s=r?.delay;if(s){const o="number"==typeof s?s:fh(yv(s,r?.params??{},e.errors));i.delayNextStep(o)}}}_visitSubInstructions(n,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?fh(i.duration):null,a=null!=i.delay?fh(i.delay):null;return 0!==o&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(n,e){e.updateOptions(n.options,!0),Al(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const s=n.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=PM);const o=fh(s.delay);r.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>Al(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const s=n.options&&n.options.delay?fh(n.options.delay):0;n.steps.forEach(o=>{const a=e.createSubContext(n.options);s&&a.delayNextStep(s),Al(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return kM(e.params?yv(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=n.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const s=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(s):i.setStyles(n.styles,s,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},s=r.delay?fh(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=PM);let o=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,p)=>{e.currentQueryIndex=p;const g=e.createSubContext(n.options,c);s&&g.delayNextStep(s),c===e.element&&(l=g.currentTimeline),Al(this,n.animation,g),g.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,g.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,s=n.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const p=e.currentTimeline;l&&p.delayNextStep(l);const g=p.currentTime;Al(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-g+(r.startTime-i.currentTimeline.startTime)}}const PM={};class $x{constructor(n,e,i,r,s,o,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=PM,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new NM(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=fh(i.duration)),null!=i.delay&&(r.delay=fh(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=yv(s[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,s=new $x(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(n),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(n){return this.previousNode=PM,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},s=new w$(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,s,o){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(g$,"."+this._enterClassName)).replace(v$,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function AW(t){return new at(3014,!1)}()),a}}class NM{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new NM(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||hh),this._currentKeyframe.set(e,hh);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const s=r&&r.params||{},o=function M$(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let s of i)e.set(s,hh)}else If(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of o){const c=yv(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??hh),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=If(a,new Map,this._backFill);c.forEach((p,g)=>{"!"===p?n.add(g):p===hh&&e.add(g)}),i||c.set("offset",l/this.duration),r.push(c)});const s=n.size?AM(n.values()):[],o=e.size?AM(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return zx(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class w$ extends NM{constructor(n,e,i,r,s,o,a=!1){super(n,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=If(n[0]);l.set("offset",0),s.push(l);const c=If(n[0]);c.set("offset",XP(a)),s.push(c);const p=n.length-1;for(let g=1;g<=p;g++){let D=If(n[g]);const b=D.get("offset");D.set("offset",XP((e+b*i)/o)),s.push(D)}i=o,e=0,r="",n=s}return zx(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function XP(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class Gx{}const D$=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 C$ extends Gx{normalizePropertyName(n,e){return Bx(n)}normalizeStyleValue(n,e,i,r){let s="";const o=i.toString().trim();if(D$.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function yW(t,n){return new at(3005,!1)}())}return o+s}}function QP(t,n,e,i,r,s,o,a,l,c,p,g,D){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:p,totalTime:g,errors:D}}const Kx={};class e6{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function S$(t,n,e,i,r){return t.some(s=>s(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,s,o,a,l,c,p){const g=[],D=this.ast.options&&this.ast.options.params||Kx,O=this.buildStyles(i,a&&a.params||Kx,g),E=l&&l.params||Kx,Y=this.buildStyles(r,E,g),N=new Set,H=new Map,se=new Map,me="void"===r,Ie={params:T$(E,D),delay:this.ast.options?.delay},Je=p?[]:Wx(n,e,this.ast.animation,s,o,O,Y,Ie,c,g);let Pe=0;if(Je.forEach(Qe=>{Pe=Math.max(Qe.duration+Qe.delay,Pe)}),g.length)return QP(e,this._triggerName,i,r,me,O,Y,[],[],H,se,Pe,g);Je.forEach(Qe=>{const tt=Qe.element,oe=kl(H,tt,new Set);Qe.preStyleProps.forEach(we=>oe.add(we));const ie=kl(se,tt,new Set);Qe.postStyleProps.forEach(we=>ie.add(we)),tt!==e&&N.add(tt)});const fe=AM(N.values());return QP(e,this._triggerName,i,r,me,O,Y,Je,fe,H,se,Pe)}}function T$(t,n){const e=_v(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class x${constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=_v(this.defaultParams);return Object.keys(n).forEach(s=>{const o=n[s];null!==o&&(r[s]=o)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=yv(o,r,e));const l=this.normalizer.normalizePropertyName(a,e);o=this.normalizer.normalizeStyleValue(a,l,o,e),i.set(a,o)})}),i}}class A${constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new x$(r.style,r.options&&r.options.params||{},i))}),t6(this.states,"true","1"),t6(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new e6(n,r,this.states))}),this.fallbackTransition=function L$(t,n,e){return new e6(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(o=>o.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function t6(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const E$=new IM;class O${constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],s=Ux(this._driver,e,i,[]);if(i.length)throw function FW(t){return new at(3503,!1)}();this._animations.set(n,s)}_buildPlayer(n,e,i){const r=n.element,s=RP(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,s,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],s=this._animations.get(n);let o;const a=new Map;if(s?(o=Wx(this._driver,e,s,jx,SM,new Map,new Map,i,E$,r),o.forEach(p=>{const g=kl(a,p.element,new Map);p.postStyleProps.forEach(D=>g.set(D,null))})):(r.push(function RW(){return new at(3300,!1)}()),o=[]),r.length)throw function jW(t){return new at(3504,!1)}();a.forEach((p,g)=>{p.forEach((D,b)=>{p.set(b,this._driver.computeStyle(g,b,hh))})});const c=Of(o.map(p=>{const g=a.get(p.element);return this._buildPlayer(p,new Map,g)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function YW(t){return new at(3301,!1)}();return e}listen(n,e,i,r){const s=Nx(e,"","","");return Ix(this._getPlayer(n),i,s,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const s=this._getPlayer(n);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const n6="ng-animate-queued",Zx="ng-animate-disabled",R$=[],i6={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},j$={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xu="__ng_removed";class Jx{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function B$(t){return t??null}(i?n.value:n),i){const s=_v(n);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const vv="void",Xx=new Jx(vv);class Y${constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,cu(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function HW(t,n){return new at(3302,!1)}();if(null==i||0==i.length)throw function VW(t){return new at(3303,!1)}();if(!function U$(t){return"start"==t||"done"==t}(i))throw function BW(t,n){return new at(3400,!1)}();const s=kl(this._elementListeners,n,[]),o={name:e,phase:i,callback:r};s.push(o);const a=kl(this._engine.statesByElement,n,new Map);return a.has(e)||(cu(n,TM),cu(n,TM+"-"+e),a.set(e,Xx)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function UW(t){return new at(3401,!1)}();return e}trigger(n,e,i,r=!0){const s=this._getTrigger(e),o=new Qx(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(cu(n,TM),cu(n,TM+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new Jx(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Xx),c.value!==vv&&l.value===c.value){if(!function W$(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{wm(n,Y),ed(n,N)})}return}const D=kl(this._engine.playersByElement,n,[]);D.forEach(E=>{E.namespaceId==this.id&&E.triggerName==e&&E.queued&&E.destroy()});let b=s.matchTransition(l.value,c.value,n,c.params),O=!1;if(!b){if(!r)return;b=s.fallbackTransition,O=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:b,fromState:l,toState:c,player:o,isFallbackTransition:O}),O||(cu(n,n6),o.onStart(()=>{Ig(n,n6)})),o.onDone(()=>{let E=this.players.indexOf(o);E>=0&&this.players.splice(E,1);const Y=this._engine.playersByElement.get(n);if(Y){let N=Y.indexOf(o);N>=0&&Y.splice(N,1)}}),this.players.push(o),D.push(o),o}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,xM,!0);i.forEach(r=>{if(r[Xu])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const s=this._engine.statesByElement.get(n),o=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){const p=this.trigger(n,c,vv,r);p&&a.push(p)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,o),i&&Of(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers.get(o).fallbackTransition,c=i.get(o)||Xx,p=new Jx(vv),g=new Qx(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,toState:p,player:g,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(n):[];if(s&&s.length)r=!0;else{let o=n;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const s=n[Xu];(!s||s===i6)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){cu(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Nx(s,i.triggerName,i.fromState.value,i.toState.value);l._data=n,Ix(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class H${_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new Y$(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const s=this._fetchNamespace(r.namespaceId);s&&e.add(s)}return e}trigger(n,e,i,r){if(FM(e)){const s=this._fetchNamespace(n);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!FM(e))return;const s=e[Xu];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),cu(n,Zx)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Ig(n,Zx))}removeNode(n,e,i){if(FM(e)){const r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,s){this.collectedLeaveElements.push(e),e[Xu]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(n,e,i,r,s){return FM(e)?this._fetchNamespace(n).listen(e,i,r,s):()=>{}}_buildInstruction(n,e,i,r,s){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,s)}destroyInnerAnimations(n){let e=this.driver.query(n,xM,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Yx,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Of(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Xu];if(e&&e.setForRemoval){if(n[Xu]=i6,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Zx)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Of(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function qW(t){return new at(3402,!1)}()}_flushAnimations(n,e){const i=new IM,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,p=new Set;this.disabledNodes.forEach(Ce=>{p.add(Ce);const Re=this.driver.query(Ce,".ng-animate-queued",!0);for(let j=0;j{const j=jx+E++;O.set(Re,j),Ce.forEach(We=>cu(We,j))});const Y=[],N=new Set,H=new Set;for(let Ce=0;CeN.add(We)):H.add(Re))}const se=new Map,me=o6(D,Array.from(N));me.forEach((Ce,Re)=>{const j=SM+E++;se.set(Re,j),Ce.forEach(We=>cu(We,j))}),n.push(()=>{b.forEach((Ce,Re)=>{const j=O.get(Re);Ce.forEach(We=>Ig(We,j))}),me.forEach((Ce,Re)=>{const j=se.get(Re);Ce.forEach(We=>Ig(We,j))}),Y.forEach(Ce=>{this.processLeaveNode(Ce)})});const Ie=[],Je=[];for(let Ce=this._namespaceList.length-1;Ce>=0;Ce--)this._namespaceList[Ce].drainQueuedTransitions(e).forEach(j=>{const We=j.player,Xe=j.element;if(Ie.push(We),this.collectedEnterElements.length){const Be=Xe[Xu];if(Be&&Be.setForMove){if(Be.previousTriggersValues&&Be.previousTriggersValues.has(j.triggerName)){const Ge=Be.previousTriggersValues.get(j.triggerName),$e=this.statesByElement.get(j.element);if($e&&$e.has(j.triggerName)){const kt=$e.get(j.triggerName);kt.value=Ge,$e.set(j.triggerName,kt)}}return void We.destroy()}}const Ot=!g||!this.driver.containsElement(g,Xe),z=se.get(Xe),ue=O.get(Xe),ce=this._buildInstruction(j,i,ue,z,Ot);if(ce.errors&&ce.errors.length)return void Je.push(ce);if(Ot)return We.onStart(()=>wm(Xe,ce.fromStyles)),We.onDestroy(()=>ed(Xe,ce.toStyles)),void r.push(We);if(j.isFallbackTransition)return We.onStart(()=>wm(Xe,ce.fromStyles)),We.onDestroy(()=>ed(Xe,ce.toStyles)),void r.push(We);const Te=[];ce.timelines.forEach(Be=>{Be.stretchStartingKeyframe=!0,this.disabledNodes.has(Be.element)||Te.push(Be)}),ce.timelines=Te,i.append(Xe,ce.timelines),o.push({instruction:ce,player:We,element:Xe}),ce.queriedElements.forEach(Be=>kl(a,Be,[]).push(We)),ce.preStyleProps.forEach((Be,Ge)=>{if(Be.size){let $e=l.get(Ge);$e||l.set(Ge,$e=new Set),Be.forEach((kt,St)=>$e.add(St))}}),ce.postStyleProps.forEach((Be,Ge)=>{let $e=c.get(Ge);$e||c.set(Ge,$e=new Set),Be.forEach((kt,St)=>$e.add(St))})});if(Je.length){const Ce=[];Je.forEach(Re=>{Ce.push(function zW(t,n){return new at(3505,!1)}())}),Ie.forEach(Re=>Re.destroy()),this.reportError(Ce)}const Pe=new Map,fe=new Map;o.forEach(Ce=>{const Re=Ce.element;i.has(Re)&&(fe.set(Re,Re),this._beforeAnimationBuild(Ce.player.namespaceId,Ce.instruction,Pe))}),r.forEach(Ce=>{const Re=Ce.element;this._getPreviousPlayers(Re,!1,Ce.namespaceId,Ce.triggerName,null).forEach(We=>{kl(Pe,Re,[]).push(We),We.destroy()})});const Qe=Y.filter(Ce=>l6(Ce,l,c)),tt=new Map;s6(tt,this.driver,H,c,hh).forEach(Ce=>{l6(Ce,l,c)&&Qe.push(Ce)});const ie=new Map;b.forEach((Ce,Re)=>{s6(ie,this.driver,new Set(Ce),l,"!")}),Qe.forEach(Ce=>{const Re=tt.get(Ce),j=ie.get(Ce);tt.set(Ce,new Map([...Re?.entries()??[],...j?.entries()??[]]))});const we=[],ye=[],et={};o.forEach(Ce=>{const{element:Re,player:j,instruction:We}=Ce;if(i.has(Re)){if(p.has(Re))return j.onDestroy(()=>ed(Re,We.toStyles)),j.disabled=!0,j.overrideTotalTime(We.totalTime),void r.push(j);let Xe=et;if(fe.size>1){let z=Re;const ue=[];for(;z=z.parentNode;){const ce=fe.get(z);if(ce){Xe=ce;break}ue.push(z)}ue.forEach(ce=>fe.set(ce,Xe))}const Ot=this._buildAnimation(j.namespaceId,We,Pe,s,ie,tt);if(j.setRealPlayer(Ot),Xe===et)we.push(j);else{const z=this.playersByElement.get(Xe);z&&z.length&&(j.parentPlayer=Of(z)),r.push(j)}}else wm(Re,We.fromStyles),j.onDestroy(()=>ed(Re,We.toStyles)),ye.push(j),p.has(Re)&&r.push(j)}),ye.forEach(Ce=>{const Re=s.get(Ce.element);if(Re&&Re.length){const j=Of(Re);Ce.setRealPlayer(j)}}),r.forEach(Ce=>{Ce.parentPlayer?Ce.syncPlayerEvents(Ce.parentPlayer):Ce.destroy()});for(let Ce=0;Ce!Ot.destroyed);Xe.length?q$(this,Re,Xe):this.processLeaveNode(Re)}return Y.length=0,we.forEach(Ce=>{this.players.push(Ce),Ce.onDone(()=>{Ce.destroy();const Re=this.players.indexOf(Ce);this.players.splice(Re,1)}),Ce.play()}),we}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const l=!s||s==vv;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(n,e,i){const s=e.element,o=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,p=c!==s,g=kl(i,c,[]);this._getPreviousPlayers(c,p,o,a,e.toState).forEach(b=>{const O=b.getRealPlayer();O.beforeDestroy&&O.beforeDestroy(),b.destroy(),g.push(b)})}wm(s,e.fromStyles)}_buildAnimation(n,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],p=new Set,g=new Set,D=e.timelines.map(O=>{const E=O.element;p.add(E);const Y=E[Xu];if(Y&&Y.removedBeforeQueried)return new mv(O.duration,O.delay);const N=E!==l,H=function z$(t){const n=[];return a6(t,n),n}((i.get(E)||R$).map(Pe=>Pe.getRealPlayer())).filter(Pe=>!!Pe.element&&Pe.element===E),se=s.get(E),me=o.get(E),Ie=RP(this._normalizer,O.keyframes,se,me),Je=this._buildPlayer(O,Ie,H);if(O.subTimeline&&r&&g.add(E),N){const Pe=new Qx(n,a,E);Pe.setRealPlayer(Je),c.push(Pe)}return Je});c.forEach(O=>{kl(this.playersByQueriedElement,O.element,[]).push(O),O.onDone(()=>function V$(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,O.element,O))}),p.forEach(O=>cu(O,qP));const b=Of(D);return b.onDestroy(()=>{p.forEach(O=>Ig(O,qP)),ed(l,e.toStyles)}),g.forEach(O=>{kl(r,O,[]).push(b)}),b}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new mv(n.duration,n.delay)}}class Qx{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new mv,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Ix(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){kl(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function FM(t){return t&&1===t.nodeType}function r6(t,n){const e=t.style.display;return t.style.display=n??"none",e}function s6(t,n,e,i,r){const s=[];e.forEach(l=>s.push(r6(l)));const o=[];i.forEach((l,c)=>{const p=new Map;l.forEach(g=>{const D=n.computeStyle(c,g,r);p.set(g,D),(!D||0==D.length)&&(c[Xu]=j$,o.push(c))}),t.set(c,p)});let a=0;return e.forEach(l=>r6(l,s[a++])),o}function o6(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const r=new Set(n),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return n.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function cu(t,n){t.classList?.add(n)}function Ig(t,n){t.classList?.remove(n)}function q$(t,n,e){Of(e).onDone(()=>t.processLeaveNode(n))}function a6(t,n){for(let e=0;er.add(s)):n.set(t,i),e.delete(t),!0}class RM{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new H$(n,e,i),this._timelineEngine=new O$(n,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(n,e,i,r,s){const o=n+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],p=Ux(this._driver,s,l,[]);if(l.length)throw function PW(t,n){return new at(3404,!1)}();a=function k$(t,n,e){return new A$(t,n,e)}(r,p,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[s,o]=jP(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=jP(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(n,e,i,r,s)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}let G$=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ed(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ed(this._element,this._initialStyles),this._endStyles&&(ed(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(wm(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wm(this._element,this._endStyles),this._endStyles=null),ed(this._element,this._initialStyles),this._state=3)}}return t})();function ek(t){let n=null;return t.forEach((e,i)=>{(function K$(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class u6{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:GP(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Z${validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return HP(n,e)}getParentElement(n){return Fx(n)}query(n,e,i){return VP(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c=new Map,p=o.filter(b=>b instanceof u6);(function i$(t,n){return 0===t||0===n})(i,r)&&p.forEach(b=>{b.currentSnapshot.forEach((O,E)=>c.set(E,O))});let g=function e$(t){return t.length?t[0]instanceof Map?t:t.map(n=>zP(n)):[]}(e).map(b=>If(b));g=function r$(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;so.set(a,GP(t,a)))}}return n}(n,g,c);const D=function $$(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=ek(n[0]),n.length>1&&(i=ek(n[n.length-1]))):n instanceof Map&&(e=ek(n)),e||i?new G$(t,e,i):null}(n,g);return new u6(n,g,l,D)}}let J$=(()=>{class t extends IP{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:ea.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?PP(e):e;return c6(this._renderer,null,i,"register",[r]),new X$(i,this._renderer)}static#e=this.\u0275fac=function(i){return new(i||t)(ve(vr),ve(Ai))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();class X$ extends uW{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new Q$(this._id,n,e||{},this._renderer)}}class Q${constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return c6(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function c6(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const d6="@.disabled";let eG=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(s,o)=>{const a=o?.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let p=this._rendererCache.get(s);return p||(p=new h6("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,p)),p}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=p=>{Array.isArray(p)?p.forEach(l):this.engine.registerTrigger(o,a,e,p.name,p)};return i.data.animation.forEach(l),new tG(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(i){return new(i||t)(ve(vr),ve(RM),ve(oi))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();class h6{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==d6?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class tG extends h6{constructor(n,e,i,r,s){super(e,i,r,s),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==d6?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function nG(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let s=e.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function iG(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let rG=(()=>{class t extends RM{constructor(e,i,r,s){super(e.body,i,r)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||t)(ve(Ai),ve(Rx),ve(Gx),ve(_m))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();const f6=[{provide:IP,useClass:J$},{provide:Gx,useFactory:function sG(){return new C$}},{provide:RM,useClass:rG},{provide:vr,useFactory:function oG(t,n,e){return new eG(t,n,e)},deps:[Dx,RM,oi]}],tk=[{provide:Rx,useFactory:()=>new Z$},{provide:Oy,useValue:"BrowserAnimations"},...f6],p6=[{provide:Rx,useClass:BP},{provide:Oy,useValue:"NoopAnimations"},...f6];let aG=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?p6:tk}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Cn({type:t});static#n=this.\u0275inj=Dn({providers:tk,imports:[xP]})}return t})();function Dm(t){return!!t&&(t instanceof jt||P(t.lift)&&P(t.subscribe))}const{isArray:lG}=Array,{getPrototypeOf:uG,prototype:cG,keys:dG}=Object;function m6(t){if(1===t.length){const n=t[0];if(lG(n))return{args:n,keys:null};if(function hG(t){return t&&"object"==typeof t&&uG(t)===cG}(n)){const e=dG(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:fG}=Array;function nk(t){return dn(n=>function pG(t,n){return fG(n)?t(...n):t(n)}(t,n))}function _6(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function Cm(...t){const n=jl(t),{args:e,keys:i}=m6(t),r=new jt(s=>{const{length:o}=e;if(!o)return void s.complete();const a=new Array(o);let l=o,c=o;for(let p=0;p{g||(g=!0,c--),a[p]=D},()=>l--,void 0,()=>{(!l||!g)&&(c||s.next(i?_6(i,a):a),s.complete())}))}});return n?r.pipe(nk(n)):r}function g6(){return Ua(1)}function Pg(...t){return g6()(Zs(t,Ad(t)))}function ik(t){return new jt(n=>{Ks(t()).subscribe(n)})}function Mr(t){return t<=0?()=>gl:Hi((n,e)=>{let i=0;n.subscribe(Fi(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}const rk={now:()=>(rk.delegate||Date).now(),delegate:void 0};class y6 extends un{constructor(n=1/0,e=1/0,i=rk){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:s,_windowTime:o}=this;e||(i.push(n),!r&&i.push(s.now()+o)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,s=r.slice();for(let o=0;onew y6(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function b6(t,n){return P(n)?$r(t,n,1):$r(t,1)}class bv{}let w6=(()=>{class t extends bv{getTranslation(e){return Si({})}static \u0275fac=function(){let e;return function(r){return(e||(e=yr(t)))(r||t)}}();static \u0275prov=it({token:t,factory:t.\u0275fac})}return t})();class sk{}let M6=(()=>{class t{handle(e){return e.key}static \u0275fac=function(i){return new(i||t)};static \u0275prov=it({token:t,factory:t.\u0275fac})}return t})();function YM(t,n){if(t===n)return!0;if(null===t||null===n)return!1;if(t!=t&&n!=n)return!0;let r,s,o,e=typeof t;if(e==typeof n&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(n))return!1;for(s in o=Object.create(null),t){if(!YM(t[s],n[s]))return!1;o[s]=!0}for(s in n)if(!(s in o)&&typeof n[s]<"u")return!1;return!0}if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(s=0;s{ok(n[i])?i in t?e[i]=D6(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e}class HM{}let C6=(()=>{class t extends HM{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){let r;return r="string"==typeof e?this.interpolateString(e,i):"function"==typeof e?this.interpolateFunction(e,i):e,r}getValue(e,i){let r="string"==typeof i?i.split("."):[i];i="";do{i+=r.shift(),!Pf(e)||!Pf(e[i])||"object"!=typeof e[i]&&r.length?r.length?i+=".":e=void 0:(e=e[i],i="")}while(r.length);return e}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,s)=>{let o=this.getValue(i,s);return Pf(o)?o:r}):e}static \u0275fac=function(){let e;return function(r){return(e||(e=yr(t)))(r||t)}}();static \u0275prov=it({token:t,factory:t.\u0275fac})}return t})();class VM{}let S6=(()=>{class t extends VM{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=function(){let e;return function(r){return(e||(e=yr(t)))(r||t)}}();static \u0275prov=it({token:t,factory:t.\u0275fac})}return t})();class ak{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new Et;onLangChange=new Et;onDefaultLangChange=new Et}const lk=new ht("USE_STORE"),uk=new ht("USE_DEFAULT_LANG"),ck=new ht("DEFAULT_LANGUAGE"),dk=new ht("USE_EXTEND");let Ll=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new Et;_onLangChange=new Et;_onDefaultLangChange=new Et;_defaultLang;_currentLang;_langs=[];_translations={};_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}constructor(e,i,r,s,o,a=!0,l=!1,c=!1,p){this.store=e,this.currentLoader=i,this.compiler=r,this.parser=s,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=l,this.extend=c,p&&this.setDefaultLang(p)}setDefaultLang(e){if(e===this.defaultLang)return;let i=this.retrieveTranslations(e);typeof i<"u"?(null==this.defaultLang&&(this.defaultLang=e),i.pipe(Mr(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Si(this.translations[e]);let i=this.retrieveTranslations(e);return typeof i<"u"?(this.currentLang||(this.currentLang=e),i.pipe(Mr(1)).subscribe(r=>{this.changeLang(e)}),i):(this.changeLang(e),Si(this.translations[e]))}retrieveTranslations(e){let i;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),i=this._translationRequests[e]),i}getTranslation(e){this.pending=!0;const i=this.currentLoader.getTranslation(e).pipe(v6(1),Mr(1));return this.loadingTranslations=i.pipe(dn(r=>this.compiler.compileTranslations(r,e)),v6(1),Mr(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){i=this.compiler.compileTranslations(i,e),this.translations[e]=(r||this.extend)&&this.translations[e]?D6(this.translations[e],i):i,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(i=>{-1===this.langs.indexOf(i)&&this.langs.push(i)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,i,r){let s;if(i instanceof Array){let o={},a=!1;for(let l of i)o[l]=this.getParsedResult(e,l,r),Dm(o[l])&&(a=!0);return a?Cm(i.map(c=>Dm(o[c])?o[c]:Si(o[c]))).pipe(dn(c=>{let p={};return c.forEach((g,D)=>{p[i[D]]=g}),p})):o}if(e&&(s=this.parser.interpolate(this.parser.getValue(e,i),r)),typeof s>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],i),r)),typeof s>"u"){let o={key:i,translateService:this};typeof r<"u"&&(o.interpolateParams=r),s=this.missingTranslationHandler.handle(o)}return typeof s<"u"?s:i}get(e,i){if(!Pf(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(b6(r=>Dm(r=this.getParsedResult(r,e,i))?r:Si(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,i);return Dm(r)?r:Si(r)}}getStreamOnTranslationChange(e,i){if(!Pf(e)||!e.length)throw new Error('Parameter "key" required');return Pg(ik(()=>this.get(e,i)),this.onTranslationChange.pipe(Ro(r=>{const s=this.getParsedResult(r.translations,e,i);return"function"==typeof s.subscribe?s:Si(s)})))}stream(e,i){if(!Pf(e)||!e.length)throw new Error('Parameter "key" required');return Pg(ik(()=>this.get(e,i)),this.onLangChange.pipe(Ro(r=>{const s=this.getParsedResult(r.translations,e,i);return Dm(s)?s:Si(s)})))}instant(e,i){if(!Pf(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,i);if(Dm(r)){if(e instanceof Array){let s={};return e.forEach((o,a)=>{s[e[a]]=e[a]}),s}return e}return r}set(e,i,r=this.currentLang){this.translations[r][e]=this.compiler.compile(i,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}static \u0275fac=function(i){return new(i||t)(ve(ak),ve(bv),ve(VM),ve(HM),ve(sk),ve(uk),ve(lk),ve(dk),ve(ck))};static \u0275prov=it({token:t,factory:t.\u0275fac})}return t})(),Ng=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,i){this.translate=e,this._ref=i}updateValue(e,i,r){let s=o=>{this.value=void 0!==o?o:e,this.lastKey=e,this._ref.markForCheck()};if(r){let o=this.translate.getParsedResult(r,e,i);Dm(o.subscribe)?o.subscribe(s):s(o)}this.translate.get(e,i).subscribe(s)}transform(e,...i){if(!e||!e.length)return e;if(YM(e,this.lastKey)&&YM(i,this.lastParams))return this.value;let r;if(Pf(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){let s=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(s)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else"object"==typeof i[0]&&!Array.isArray(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(s=>{this.lastKey&&s.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,s.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(s=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,s.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||t)(Ae(Ll,16),Ae(Wo,16))};static \u0275pipe=Hr({name:"translate",type:t,pure:!1});static \u0275prov=it({token:t,factory:t.\u0275fac})}return t})(),td=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:bv,useClass:w6},e.compiler||{provide:VM,useClass:S6},e.parser||{provide:HM,useClass:C6},e.missingTranslationHandler||{provide:sk,useClass:M6},ak,{provide:lk,useValue:e.isolate},{provide:uk,useValue:e.useDefaultLang},{provide:dk,useValue:e.extend},{provide:ck,useValue:e.defaultLanguage},Ll]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:bv,useClass:w6},e.compiler||{provide:VM,useClass:S6},e.parser||{provide:HM,useClass:C6},e.missingTranslationHandler||{provide:sk,useClass:M6},{provide:lk,useValue:e.isolate},{provide:uk,useValue:e.useDefaultLang},{provide:dk,useValue:e.extend},{provide:ck,useValue:e.defaultLanguage},Ll]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=Cn({type:t});static \u0275inj=Dn({})}return t})();function Qu(t,n){return Hi((e,i)=>{let r=0;e.subscribe(Fi(i,s=>t.call(n,s,r++)&&i.next(s)))})}function T6(t){return Hi((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}class BM{}class UM{}class Ss{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Ss?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Ss;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Ss?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=n.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(s=>s.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class mG{encodeKey(n){return x6(n)}encodeValue(n){return x6(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const gG=/%(\d[a-f0-9])/gi,yG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function x6(t){return encodeURIComponent(t).replace(gG,(n,e)=>yG[e]??n)}function qM(t){return`${t}`}class ao{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new mG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function _G(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,s)),n.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(qM):[qM(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new ao({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(qM(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(qM(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class vG{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function k6(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function A6(t){return typeof Blob<"u"&&t instanceof Blob}function L6(t){return typeof FormData<"u"&&t instanceof FormData}class wv{constructor(n,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function bG(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Ss),this.context||(this.context=new vG),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ag.set(D,n.setHeaders[D]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((g,D)=>g.set(D,n.setParams[D]),c)),new wv(e,i,s,{params:c,headers:l,context:p,reportProgress:a,responseType:r,withCredentials:o})}}var Fg=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Fg||{});class hk{constructor(n,e=200,i="OK"){this.headers=n.headers||new Ss,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class fk extends hk{constructor(n={}){super(n),this.type=Fg.ResponseHeader}clone(n={}){return new fk({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Rg extends hk{constructor(n={}){super(n),this.type=Fg.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Rg({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class E6 extends hk{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function pk(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let al=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof wv)s=e;else{let l,c;l=r.headers instanceof Ss?r.headers:new Ss(r.headers),r.params&&(c=r.params instanceof ao?r.params:new ao({fromObject:r.params})),s=new wv(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Si(s).pipe(b6(l=>this.handler.handle(l)));if(e instanceof wv||"events"===r.observe)return o;const a=o.pipe(Qu(l=>l instanceof Rg));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(dn(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(dn(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(dn(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(dn(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ao).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,pk(r,i))}post(e,i,r={}){return this.request("POST",e,pk(r,i))}put(e,i,r={}){return this.request("PUT",e,pk(r,i))}static#e=this.\u0275fac=function(i){return new(i||t)(ve(BM))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();function P6(t,n){return n(t)}function DG(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const SG=new ht(""),Mv=new ht(""),N6=new ht("");function TG(){let t=null;return(n,e)=>{null===t&&(t=(an(SG,{optional:!0})??[]).reduceRight(DG,P6));const i=an(RT),r=i.add();return t(n,e).pipe(T6(()=>i.remove(r)))}}let F6=(()=>{class t extends BM{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=an(RT)}handle(e){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Mv),...this.injector.get(N6,[])]));this.chain=r.reduceRight((s,o)=>function CG(t,n,e){return(i,r)=>e.runInContext(()=>n(i,s=>t(s,r)))}(s,o,this.injector),P6)}const i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(T6(()=>this.pendingTasks.remove(i)))}static#e=this.\u0275fac=function(i){return new(i||t)(ve(UM),ve(ru))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();const LG=/^\)\]\}',?\n/;let j6=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new at(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?Zs(i.\u0275loadImpl()):Si(null)).pipe(Ro(()=>new jt(s=>{const o=i.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((E,Y)=>o.setRequestHeader(E,Y.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const E=e.detectContentTypeHeader();null!==E&&o.setRequestHeader("Content-Type",E)}if(e.responseType){const E=e.responseType.toLowerCase();o.responseType="json"!==E?E:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const E=o.statusText||"OK",Y=new Ss(o.getAllResponseHeaders()),N=function EG(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||e.url;return l=new fk({headers:Y,status:o.status,statusText:E,url:N}),l},p=()=>{let{headers:E,status:Y,statusText:N,url:H}=c(),se=null;204!==Y&&(se=typeof o.response>"u"?o.responseText:o.response),0===Y&&(Y=se?200:0);let me=Y>=200&&Y<300;if("json"===e.responseType&&"string"==typeof se){const Ie=se;se=se.replace(LG,"");try{se=""!==se?JSON.parse(se):null}catch(Je){se=Ie,me&&(me=!1,se={error:Je,text:se})}}me?(s.next(new Rg({body:se,headers:E,status:Y,statusText:N,url:H||void 0})),s.complete()):s.error(new E6({error:se,headers:E,status:Y,statusText:N,url:H||void 0}))},g=E=>{const{url:Y}=c(),N=new E6({error:E,status:o.status||0,statusText:o.statusText||"Unknown Error",url:Y||void 0});s.error(N)};let D=!1;const b=E=>{D||(s.next(c()),D=!0);let Y={type:Fg.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(Y.total=E.total),"text"===e.responseType&&o.responseText&&(Y.partialText=o.responseText),s.next(Y)},O=E=>{let Y={type:Fg.UploadProgress,loaded:E.loaded};E.lengthComputable&&(Y.total=E.total),s.next(Y)};return o.addEventListener("load",p),o.addEventListener("error",g),o.addEventListener("timeout",g),o.addEventListener("abort",g),e.reportProgress&&(o.addEventListener("progress",b),null!==a&&o.upload&&o.upload.addEventListener("progress",O)),o.send(a),s.next({type:Fg.Sent}),()=>{o.removeEventListener("error",g),o.removeEventListener("abort",g),o.removeEventListener("load",p),o.removeEventListener("timeout",g),e.reportProgress&&(o.removeEventListener("progress",b),null!==a&&o.upload&&o.upload.removeEventListener("progress",O)),o.readyState!==o.DONE&&o.abort()}})))}static#e=this.\u0275fac=function(i){return new(i||t)(ve(cP))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();const mk=new ht("XSRF_ENABLED"),Y6=new ht("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),H6=new ht("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class V6{}let PG=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=XI(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||t)(ve(Ai),ve(zu),ve(Y6))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();function NG(t,n){const e=t.url.toLowerCase();if(!an(mk)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=an(V6).getToken(),r=an(H6);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Nf=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Nf||{});function FG(...t){const n=[al,j6,F6,{provide:BM,useExisting:F6},{provide:UM,useExisting:j6},{provide:Mv,useValue:NG,multi:!0},{provide:mk,useValue:!0},{provide:V6,useClass:PG}];for(const e of t)n.push(...e.\u0275providers);return function Ty(t){return{\u0275providers:t}}(n)}const B6=new ht("LEGACY_INTERCEPTOR_FN");function RG(){return function Sm(t,n){return{\u0275kind:t,\u0275providers:n}}(Nf.LegacyInterceptors,[{provide:B6,useFactory:TG},{provide:Mv,useExisting:B6,multi:!0}])}let jG=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Cn({type:t});static#n=this.\u0275inj=Dn({providers:[FG(RG())]})}return t})(),U6=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Kr),Ae(Fn))};static#t=this.\u0275dir=Kt({type:t})}return t})(),Tm=(()=>{class t extends U6{static#e=this.\u0275fac=function(){let e;return function(r){return(e||(e=yr(t)))(r||t)}}();static#t=this.\u0275dir=Kt({type:t,features:[Bi]})}return t})();const ms=new ht("NgValueAccessor"),zG={provide:ms,useExisting:Un(()=>Dv),multi:!0},$G=new ht("CompositionEventMode");let Dv=(()=>{class t extends U6{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function WG(){const t=kf()?kf().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Kr),Ae(Fn),Ae($G,8))};static#t=this.\u0275dir=Kt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){1&i&&vt("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[xi([zG]),Bi]})}return t})();function Ff(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function z6(t){return null!=t&&"number"==typeof t.length}const $o=new ht("NgValidators"),Rf=new ht("NgAsyncValidators"),GG=/^(?=.{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 KG{static min(n){return function W6(t){return n=>{if(Ff(n.value)||Ff(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(Ff(n.value)||Ff(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return function G6(t){return Ff(t.value)?{required:!0}:null}(n)}static requiredTrue(n){return function K6(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function Z6(t){return Ff(t.value)||GG.test(t.value)?null:{email:!0}}(n)}static minLength(n){return J6(n)}static maxLength(n){return X6(n)}static pattern(n){return function Q6(t){if(!t)return WM;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Ff(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return sN(n)}static composeAsync(n){return oN(n)}}function J6(t){return n=>Ff(n.value)||!z6(n.value)?null:n.value.lengthz6(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function WM(t){return null}function eN(t){return null!=t}function tN(t){return qw(t)?Zs(t):t}function nN(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function iN(t,n){return n.map(e=>e(t))}function rN(t){return t.map(n=>function ZG(t){return!t.validate}(n)?n:e=>n.validate(e))}function sN(t){if(!t)return null;const n=t.filter(eN);return 0==n.length?null:function(e){return nN(iN(e,n))}}function _k(t){return null!=t?sN(rN(t)):null}function oN(t){if(!t)return null;const n=t.filter(eN);return 0==n.length?null:function(e){return Cm(iN(e,n).map(tN)).pipe(dn(nN))}}function gk(t){return null!=t?oN(rN(t)):null}function aN(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function lN(t){return t._rawValidators}function uN(t){return t._rawAsyncValidators}function yk(t){return t?Array.isArray(t)?t:[t]:[]}function $M(t,n){return Array.isArray(t)?t.includes(n):t===n}function cN(t,n){const e=yk(n);return yk(t).forEach(r=>{$M(e,r)||e.push(r)}),e}function dN(t,n){return yk(n).filter(e=>!$M(t,e))}class hN{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=_k(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=gk(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Ha extends hN{get formDirective(){return null}get path(){return null}}class jf extends hN{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class fN{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Cv=(()=>{class t extends fN{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(jf,2))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&br("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Bi]})}return t})(),vk=(()=>{class t extends fN{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Ha,10))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){2&i&&br("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[Bi]})}return t})();const Sv="VALID",KM="INVALID",jg="PENDING",Tv="DISABLED";function Mk(t){return(ZM(t)?t.validators:t)||null}function Dk(t,n){return(ZM(n)?n.asyncValidators:t)||null}function ZM(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function mN(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new at(1e3,"");if(!i[e])throw new at(1001,"")}function _N(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new at(1002,"")})}class xv{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Sv}get invalid(){return this.status===KM}get pending(){return this.status==jg}get disabled(){return this.status===Tv}get enabled(){return this.status!==Tv}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(cN(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(cN(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(dN(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(dN(n,this._rawAsyncValidators))}hasValidator(n){return $M(this._rawValidators,n)}hasAsyncValidator(n){return $M(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=jg,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Tv,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Sv,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Sv||this.status===jg)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Tv:Sv}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=jg,this._hasOwnPendingAsyncValidator=!0;const e=tN(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Et,this.statusChanges=new Et}_calculateStatus(){return this._allControlsDisabled()?Tv:this.errors?KM:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(jg)?jg:this._anyControlsHaveStatus(KM)?KM:Sv}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){ZM(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function eK(t){return Array.isArray(t)?_k(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function tK(t){return Array.isArray(t)?gk(t):t||null}(this._rawAsyncValidators)}}class Yg extends xv{constructor(n,e,i){super(Mk(e),Dk(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){_N(this,0,n),Object.keys(n).forEach(i=>{mN(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const nK=Yg;class gN extends Yg{}const xm=new ht("CallSetDisabledState",{providedIn:"root",factory:()=>kv}),kv="always";function JM(t,n){return[...n.path,t]}function Av(t,n,e=kv){Ck(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function rK(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&yN(t,n)})}(t,n),function oK(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function sK(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&yN(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function iK(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function XM(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),eD(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function QM(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Ck(t,n){const e=lN(t);null!==n.validator?t.setValidators(aN(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=uN(t);null!==n.asyncValidator?t.setAsyncValidators(aN(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();QM(n._rawValidators,r),QM(n._rawAsyncValidators,r)}function eD(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=lN(t);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==n.validator);s.length!==r.length&&(e=!0,t.setValidators(s))}}if(null!==n.asyncValidator){const r=uN(t);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==n.asyncValidator);s.length!==r.length&&(e=!0,t.setAsyncValidators(s))}}}const i=()=>{};return QM(n._rawValidators,i),QM(n._rawAsyncValidators,i),e}function yN(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Tk(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function xk(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(s=>{s.constructor===Dv?e=s:function uK(t){return Object.getPrototypeOf(t.constructor)===Tm}(s)?i=s:r=s}),r||i||e||null}function wN(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function MN(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Hg=class extends xv{constructor(n=null,e,i){super(Mk(e),Dk(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ZM(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=MN(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){wN(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){wN(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){MN(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},hK=Hg,mK={provide:jf,useExisting:Un(()=>Ev)},SN=(()=>Promise.resolve())();let Ev=(()=>{class t extends jf{constructor(e,i,r,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this.control=new Hg,this._registered=!1,this.name="",this.update=new Et,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=xk(0,s)}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),Tk(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(){Av(this.control,this,this.callSetDisabledState),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){SN.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function ZT(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(i);SN.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?JM(e,this._parent):[e]}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Ha,9),Ae($o,10),Ae(Rf,10),Ae(ms,10),Ae(Wo,8),Ae(xm,8))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[xi([mK]),Bi,rs]})}return t})(),TN=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Kt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return t})(),kN=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Cn({type:t});static#n=this.\u0275inj=Dn({})}return t})();const Ak=new ht("NgModelWithFormControlWarning"),wK={provide:Ha,useExisting:Un(()=>Ov)};let Ov=(()=>{class t extends Ha{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Et,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&&(eD(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 Av(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){XM(e.control||null,e,!1),function cK(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function bN(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(XM(i||null,e),(t=>t instanceof Hg)(r)&&(Av(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function vN(t,n){Ck(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function aK(t,n){return eD(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ck(this.form,this),this._oldForm&&eD(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(i){return new(i||t)(Ae($o,10),Ae(Rf,10),Ae(xm,8))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){1&i&&vt("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[xi([wK]),Bi,rs]})}return t})();const CK={provide:jf,useExisting:Un(()=>Ok)};let Ok=(()=>{class t extends jf{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,r,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.name=null,this.update=new Et,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=xk(0,s)}ngOnChanges(e){this._added||this._setUpControl(),Tk(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 JM(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}static#t=this.\u0275fac=function(i){return new(i||t)(Ae(Ha,13),Ae($o,10),Ae(Rf,10),Ae(ms,10),Ae(Ak,8))};static#n=this.\u0275dir=Kt({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[xi([CK]),Bi,rs]})}return t})();const SK={provide:ms,useExisting:Un(()=>Ik),multi:!0};function IN(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Ik=(()=>{class t extends Tm{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=IN(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function TK(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static#e=this.\u0275fac=function(){let e;return function(r){return(e||(e=yr(t)))(r||t)}}();static#t=this.\u0275dir=Kt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,r){1&i&&vt("change",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[xi([SK]),Bi]})}return t})(),Pk=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(IN(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))}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Fn),Ae(Kr),Ae(Ik,9))};static#t=this.\u0275dir=Kt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return t})();const xK={provide:ms,useExisting:Un(()=>Nk),multi:!0};function PN(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Nk=(()=>{class t extends Tm{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(s=>this._getOptionId(s));i=(s,o)=>{s._setSelected(r.indexOf(o.toString())>-1)}}else i=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],s=i.selectedOptions;if(void 0!==s){const o=s;for(let a=0;a{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(PN(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(PN(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))}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Fn),Ae(Kr),Ae(Nk,9))};static#t=this.\u0275dir=Kt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return t})();function NN(t){return"number"==typeof t?t:parseInt(t,10)}let km=(()=>{class t{constructor(){this._validator=WM}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):WM,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Kt({type:t,features:[rs]})}return t})();const PK={provide:$o,useExisting:Un(()=>jk),multi:!0};let jk=(()=>{class t extends km{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>NN(e),this.createValidator=e=>J6(e)}static#e=this.\u0275fac=function(){let e;return function(r){return(e||(e=yr(t)))(r||t)}}();static#t=this.\u0275dir=Kt({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&Mi("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[xi([PK]),Bi]})}return t})();const NK={provide:$o,useExisting:Un(()=>Yk),multi:!0};let Yk=(()=>{class t extends km{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>NN(e),this.createValidator=e=>X6(e)}static#e=this.\u0275fac=function(){let e;return function(r){return(e||(e=yr(t)))(r||t)}}();static#t=this.\u0275dir=Kt({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&Mi("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[xi([NK]),Bi]})}return t})(),BN=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Cn({type:t});static#n=this.\u0275inj=Dn({imports:[kN]})}return t})();class Hk extends xv{constructor(n,e,i){super(Mk(e),Dk(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){_N(this,0,n),n.forEach((i,r)=>{mN(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}const RK=Hk;function UN(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let jK=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let s={};return UN(i)?s=i:null!==i&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new Yg(r,s)}record(e,i=null){const r=this._reduceControls(e);return new gN(r,i)}control(e,i,r){let s={};return this.useNonNullable?(UN(i)?s=i:(s.validators=i,s.asyncValidators=r),new Hg(e,{...s,nonNullable:!0})):new Hg(e,i,r)}array(e,i,r){const s=e.map(o=>this._createControl(o));return new Hk(s,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof Hg||e instanceof xv?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),YK=(()=>{class t extends jK{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}static#e=this.\u0275fac=function(){let e;return function(r){return(e||(e=yr(t)))(r||t)}}();static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),du=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:xm,useValue:e.callSetDisabledState??kv}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Cn({type:t});static#n=this.\u0275inj=Dn({imports:[BN]})}return t})(),qN=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ak,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:xm,useValue:e.callSetDisabledState??kv}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Cn({type:t});static#n=this.\u0275inj=Dn({imports:[BN]})}return t})();const Vk=new y6(1);function Iv(t,n){const e=P(t)?t:()=>t,i=r=>r.error(e());return new jt(n?r=>n.schedule(i,0,r):i)}function hu(t){return Hi((n,e)=>{let s,i=null,r=!1;i=n.subscribe(Fi(e,void 0,void 0,o=>{s=Ks(t(o,hu(t)(n))),i?(i.unsubscribe(),i=null,s.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,s.subscribe(e))})}function nd(t){return Hi((n,e)=>{Ks(t).subscribe(Fi(e,()=>e.complete(),gt)),!e.closed&&n.subscribe(e)})}var _s=J(22870);const Bk="patient-form";function Uk(){return(Uk=(0,Ju.Z)(function*(t){yield(0,_s.queueSynchronizationItem)(Bk,t,{id:t._id,displayName:"Patient form",patientUuid:t._payloads.encounterCreate?.patient,dependencies:[{type:"visit",id:t._payloads.encounterCreate?.visit}]})})).apply(this,arguments)}function qk(){return(qk=(0,Ju.Z)(function*(t){return(yield(0,_s.getFullSynchronizationItems)(Bk)).find(e=>e.content._id===t)})).apply(this,arguments)}let zN=(()=>{class t{constructor(){}getCurrentSession(){return(0,_s.getCurrentUser)()}openmrsFetch(e){return(0,_s.openmrsObservableFetch)(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();const WN=m(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function UK(t=qK){return Hi((n,e)=>{let i=!1;n.subscribe(Fi(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function qK(){return new WN}let ec=(()=>{class t{get nativeWindow(){return function WK(){return window}()}get openmrsRestBase(){return this.nativeWindow.openmrsBase+_s.restBaseUrl+"/"}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$N=(()=>{class t{constructor(e,i){this.http=e,this.windowRef=i}getFormSchemaByFormUid(e,i=null){const r=`${this.windowRef.openmrsRestBase}o3/forms/${e}`,s=i&&i.length>0?(new ao).set("v",i):new ao;return this.http.get(r,{params:s})}getFormMetaDataByUuid(e,i=null){const r=`${this.windowRef.openmrsRestBase}/form/${e}`,s=(new ao).set("v",i&&i.length>0?i:"full");return this.http.get(r,{params:s})}static#e=this.\u0275fac=function(i){return new(i||t)(ve(al),ve(ec))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})(),GN=(()=>{class t{constructor(e,i){this.formsResourceService=e,this.translateService=i}getFormSchemaByUuid(e,i="en"){return Cm({formSchema:this.fetchFormSchemaUsingFormMetadata(e).pipe(Mr(1)),formMetadataObject:this.formsResourceService.getFormMetaDataByUuid(e).pipe(Mr(1))}).pipe(dn(({formSchema:r,formMetadataObject:s})=>{const o={...s,...r};return o.translations&&this.translateService.setTranslation(i,o.translations,!0),o}))}fetchFormSchemaUsingFormMetadata(e){return new jt(i=>this.formsResourceService.getFormSchemaByFormUid(e).subscribe(r=>{i.next(r)},r=>{console.error(r),i.error(r)})).pipe(function zK(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Qu((r,s)=>t(r,s,i)):en,Mr(1),e?function BK(t){return Hi((n,e)=>{let i=!1;n.subscribe(Fi(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}(n):UK(()=>new WN))}())}static#e=this.\u0275fac=function(i){return new(i||t)(ve($N),ve(Ll))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();const $K=$r;let Vg=(()=>{class t{constructor(e,i){this.http=e,this.windoRef=i,this.v="custom:(uuid,encounterDatetime,patient:(uuid,uuid),form:(uuid,name),visit:(uuid,display,auditInfo,startDatetime,stopDatetime,location:(uuid,display),visitType:(uuid,name)),location:ref,encounterType:ref,encounterProviders:(uuid,display,provider:(uuid,display)))"}getUrl(){return this.windoRef.openmrsRestBase}getEncountersByPatientUuid(e,i=!1,r=null){if(!e)return null;const s=this.getUrl()+"encounter";let o=(new ao).set("patient",e).set("v",this.v);return this.http.get(s,{params:o}).pipe($K(a=>a.results.length>=500?(o=o.set("startIndex","500"),this.http.get(s,{params:o}).pipe(dn(l=>a.results.concat(l.results)))):Si(a.results)))}getEncounterByUuid(e){if(!e)return null;const r=(new ao).set("v","custom:(uuid,encounterDatetime,patient:(uuid,uuid,person,identifiers:full),form:(uuid,name),visit:(uuid,visitType,display,startDatetime,stopDatetime),location:ref,encounterType:ref,encounterProviders:(uuid,display,provider:(uuid,display)),orders:full,obs:(uuid,obsDatetime,formFieldNamespace,formFieldPath,concept:(uuid,uuid,name:(display)),value:ref,groupMembers),diagnoses:(uuid,diagnosis,certainty,rank,voided,display))"),s=this.getUrl()+"encounter/"+e;return this.http.get(s,{params:r})}getEncounterTypes(e){if(!e)return null;const i=this.getUrl()+"encountertype";return this.http.get(i).pipe(dn(r=>r.results))}saveEncounter(e){if(!e)return null;const i=this.getUrl()+"encounter",r=new Ss({"Content-Type":"application/json"});return this.http.post(i,JSON.stringify(e),{headers:r})}updateEncounter(e,i){if(!i||!e)return null;const r=this.getUrl()+"encounter/"+e,s=new Ss({"Content-Type":"application/json"});return this.http.post(r,JSON.stringify(i),{headers:s})}voidEncounter(e){if(!e)return null;const i=this.getUrl()+"encounter/"+e+"?!purge",r=new Ss({"Content-Type":"application/json"});return this.http.delete(i,{headers:r})}static#e=this.\u0275fac=function(i){return new(i||t)(ve(al),ve(ec))};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();var GK=Object.prototype;const tD=function KK(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||GK)},KN=function ZK(t,n){return function(e){return t(n(e))}},XK=KN(Object.keys,Object);var eZ=Object.prototype.hasOwnProperty;const ZN=function tZ(t){if(!tD(t))return XK(t);var n=[];for(var e in Object(t))eZ.call(t,e)&&"constructor"!=e&&n.push(e);return n};var Pv=J(78736);const Yf=function nZ(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)},nD=function aZ(t){if(!Yf(t))return!1;var n=(0,Pv.Z)(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n};var t,ph=J(89798),lZ=ph.Z["__core-js_shared__"],JN=(t=/[^.]+$/.exec(lZ&&lZ.keys&&lZ.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";var hZ=Function.prototype.toString;const Am=function fZ(t){if(null!=t){try{return hZ.call(t)}catch{}try{return t+""}catch{}}return""};var mZ=/^\[object .+?Constructor\]$/,bZ=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const MZ=function wZ(t){return!(!Yf(t)||function uZ(t){return!!JN&&JN in t}(t))&&(nD(t)?bZ:mZ).test(Am(t))},Lm=function SZ(t,n){var e=function DZ(t,n){return t?.[n]}(t,n);return MZ(e)?e:void 0},Wk=Lm(ph.Z,"DataView"),Nv=Lm(ph.Z,"Map"),$k=Lm(ph.Z,"Promise"),Gk=Lm(ph.Z,"Set"),Kk=Lm(ph.Z,"WeakMap");var XN="[object Map]",QN="[object Promise]",eF="[object Set]",tF="[object WeakMap]",nF="[object DataView]",OZ=Am(Wk),IZ=Am(Nv),PZ=Am($k),NZ=Am(Gk),FZ=Am(Kk),Em=Pv.Z;(Wk&&Em(new Wk(new ArrayBuffer(1)))!=nF||Nv&&Em(new Nv)!=XN||$k&&Em($k.resolve())!=QN||Gk&&Em(new Gk)!=eF||Kk&&Em(new Kk)!=tF)&&(Em=function(t){var n=(0,Pv.Z)(t),e="[object Object]"==n?t.constructor:void 0,i=e?Am(e):"";if(i)switch(i){case OZ:return nF;case IZ:return XN;case PZ:return QN;case NZ:return eF;case FZ:return tF}return n});const Bg=Em;var Om=J(9896);const iF=function jZ(t){return(0,Om.Z)(t)&&"[object Arguments]"==(0,Pv.Z)(t)};var rF=Object.prototype,YZ=rF.hasOwnProperty,HZ=rF.propertyIsEnumerable,VZ=iF(function(){return arguments}())?iF:function(t){return(0,Om.Z)(t)&&YZ.call(t,"callee")&&!HZ.call(t,"callee")};const Zk=VZ;var id=J(65520);const Jk=function UZ(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},iD=function qZ(t){return null!=t&&Jk(t.length)&&!nD(t)};var sF="object"==typeof exports&&exports&&!exports.nodeType&&exports,oF=sF&&"object"==typeof module&&module&&!module.nodeType&&module,aF=oF&&oF.exports===sF?ph.Z.Buffer:void 0;const Fv=(aF?aF.isBuffer:void 0)||function zZ(){return!1};var qr={};qr["[object Float32Array]"]=qr["[object Float64Array]"]=qr["[object Int8Array]"]=qr["[object Int16Array]"]=qr["[object Int32Array]"]=qr["[object Uint8Array]"]=qr["[object Uint8ClampedArray]"]=qr["[object Uint16Array]"]=qr["[object Uint32Array]"]=!0,qr["[object Arguments]"]=qr["[object Array]"]=qr["[object ArrayBuffer]"]=qr["[object Boolean]"]=qr["[object DataView]"]=qr["[object Date]"]=qr["[object Error]"]=qr["[object Function]"]=qr["[object Map]"]=qr["[object Number]"]=qr["[object Object]"]=qr["[object RegExp]"]=qr["[object Set]"]=qr["[object String]"]=qr["[object WeakMap]"]=!1;const Xk=function MJ(t){return function(n){return t(n)}};var DJ=J(92110),lF="object"==typeof exports&&exports&&!exports.nodeType&&exports,Rv=lF&&"object"==typeof module&&module&&!module.nodeType&&module,Qk=Rv&&Rv.exports===lF&&DJ.Z.process;const Ug=function(){try{return Rv&&Rv.require&&Rv.require("util").types||Qk&&Qk.binding&&Qk.binding("util")}catch{}}();var uF=Ug&&Ug.isTypedArray;const eA=uF?Xk(uF):function bJ(t){return(0,Om.Z)(t)&&Jk(t.length)&&!!qr[(0,Pv.Z)(t)]};var LJ=Object.prototype.hasOwnProperty;const cF=function EJ(t){if(null==t)return!0;if(iD(t)&&((0,id.Z)(t)||"string"==typeof t||"function"==typeof t.splice||Fv(t)||eA(t)||Zk(t)))return!t.length;var n=Bg(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(tD(t))return!ZN(t).length;for(var e in t)if(LJ.call(t,e))return!1;return!0},tA=function PJ(t,n){return t===n||t!=t&&n!=n},rD=function NJ(t,n){for(var e=t.length;e--;)if(tA(t[e][0],n))return e;return-1};var RJ=Array.prototype.splice;function qg(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},qg.prototype.set=function qJ(t,n){var e=this.__data__,i=rD(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};const sD=qg,jv=Lm(Object,"create");var aX=Object.prototype.hasOwnProperty;var dX=Object.prototype.hasOwnProperty;function zg(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1&&t%1==0&&t1&&void 0!==arguments[1]?arguments[1]:0,e=(Go[t[n+0]]+Go[t[n+1]]+Go[t[n+2]]+Go[t[n+3]]+"-"+Go[t[n+4]]+Go[t[n+5]]+"-"+Go[t[n+6]]+Go[t[n+7]]+"-"+Go[t[n+8]]+Go[t[n+9]]+"-"+Go[t[n+10]]+Go[t[n+11]]+Go[t[n+12]]+Go[t[n+13]]+Go[t[n+14]]+Go[t[n+15]]).toLowerCase();if(!NF(e))throw TypeError("Stringified UUID is invalid");return e}(i)};var Zr=J(54612),bt=J(6591);class hte extends T{constructor(n,e){super()}schedule(n,e=0){return this}}const fD={setInterval(t,n,...e){const{delegate:i}=fD;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=fD;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class uA extends hte{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const r=this.id,s=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(s,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(s,this.id,e),this}requestAsyncId(n,e,i=0){return fD.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&fD.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(s){i=!0,r=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,C(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}class Vv{constructor(n,e=Vv.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Vv.now=rk.now;class cA extends Vv{constructor(n,e=Vv.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const dA=new cA(uA),fte=dA;function hA(t,n=dA){return function pte(t){return Hi((n,e)=>{let i=!1,r=null,s=null,o=!1;const a=()=>{if(s?.unsubscribe(),s=null,i){i=!1;const c=r;r=null,e.next(c)}o&&e.complete()},l=()=>{s=null,o&&e.complete()};n.subscribe(Fi(e,c=>{i=!0,r=c,s||Ks(t(c)).subscribe(s=Fi(e,a,l))},()=>{o=!0,(!i||!s||s.closed)&&e.complete()}))})}(()=>function _te(t=0,n,e=fte){let i=-1;return null!=n&&(kd(n)?e=n:i=n),new jt(r=>{let s=function mte(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;s<0&&(s=0);let o=0;return e.schedule(function(){r.closed||(r.next(o++),0<=i?this.schedule(void 0,i):r.complete())},s)})}(t,n))}function fA(...t){const n=Ad(t);return Hi((e,i)=>{(n?Pg(t,e,n):Pg(t,e)).subscribe(i)})}function Hf(t,n,e){const i=P(t)||n||e?{next:t,error:n,complete:e}:t;return i?Hi((r,s)=>{var o;null===(o=i.subscribe)||void 0===o||o.call(i);let a=!0;r.subscribe(Fi(s,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),s.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),s.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),s.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):en}function pA(t,n=dA){return Hi((e,i)=>{let r=null,s=null,o=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=s;s=null,i.next(c)}};function l(){const c=o+t,p=n.now();if(p{s=c,o=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{a(),i.complete()},void 0,()=>{s=r=null}))})}const Bv={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Bv;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=n(s=>{e=void 0,t(s)});return new T(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:n}=Bv;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=Bv;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},RF=new class yte extends cA{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class gte extends uA{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Bv.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:s}=n;null!=e&&(null===(r=s[s.length-1])||void 0===r?void 0:r.id)!==e&&(Bv.cancelAnimationFrame(e),n._scheduled=void 0)}});let mA,vte=1;const pD={};function jF(t){return t in pD&&(delete pD[t],!0)}const bte={setImmediate(t){const n=vte++;return pD[n]=!0,mA||(mA=Promise.resolve()),mA.then(()=>jF(n)&&t()),n},clearImmediate(t){jF(t)}},{setImmediate:wte,clearImmediate:Mte}=bte,mD={setImmediate(...t){const{delegate:n}=mD;return(n?.setImmediate||wte)(...t)},clearImmediate(t){const{delegate:n}=mD;return(n?.clearImmediate||Mte)(t)},delegate:void 0},YF=new class Cte extends cA{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class Dte extends uA{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=mD.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:s}=n;null!=e&&(null===(r=s[s.length-1])||void 0===r?void 0:r.id)!==e&&(mD.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}}),Ste=["addListener","removeListener"],Tte=["addEventListener","removeEventListener"],xte=["on","off"];function Im(t,n,e,i){if(P(e)&&(i=e,e=void 0),i)return Im(t,n,e).pipe(nk(i));const[r,s]=function Lte(t){return P(t.addEventListener)&&P(t.removeEventListener)}(t)?Tte.map(o=>a=>t[o](n,a,e)):function kte(t){return P(t.addListener)&&P(t.removeListener)}(t)?Ste.map(HF(t,n)):function Ate(t){return P(t.on)&&P(t.off)}(t)?xte.map(HF(t,n)):[];if(!r&&Cc(t))return $r(o=>Im(o,n,e))(Ks(t));if(!r)throw new TypeError("Invalid event target");return new jt(o=>{const a=(...l)=>o.next(1s(a)})}function HF(t,n){return e=>i=>t[e](n,i)}const Ete=["content"],Ote=["scroll"],Ite=["padding"],Uv=function(t){return{searchTerm:t}};function Pte(t,n){if(1&t&&(le(0,"div",6),cm(1,7),he()),2&t){const e=_e();te(1),ne("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",Hs(2,Uv,e.filterValue))}}function Nte(t,n){if(1&t&&(le(0,"div",8),cm(1,7),he()),2&t){const e=_e();te(1),ne("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",Hs(2,Uv,e.filterValue))}}const VF=["*"],Fte=["searchInput"],Rte=["clearButton"];function jte(t,n){if(1&t){const e=bn();le(0,"span",15),vt("click",function(){xt(e);const r=_e().$implicit;return At(_e(2).unselect(r))}),pt(1,"\xd7"),he(),Lt(2,"span",16)}if(2&t){const e=_e().$implicit,i=_e(2);te(2),ne("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Yte(t,n){}const Hte=function(t,n,e){return{item:t,clear:n,label:e}};function Vte(t,n){if(1&t&&(le(0,"div",12),ke(1,jte,3,2,"ng-template",null,13,Fa),ke(3,Yte,0,0,"ng-template",14),he()),2&t){const e=n.$implicit,i=fs(2),r=_e(2);br("ng-value-disabled",e.disabled),te(3),ne("ngTemplateOutlet",r.labelTemplate||i)("ngTemplateOutletContext",eM(4,Hte,e.value,r.clearItem,e.label))}}function Bte(t,n){if(1&t&&(da(0),ke(1,Vte,4,8,"div",11),ha()),2&t){const e=_e();te(1),ne("ngForOf",e.selectedItems)("ngForTrackBy",e.trackByOption)}}function Ute(t,n){}const qte=function(t,n){return{items:t,clear:n}};function zte(t,n){if(1&t&&ke(0,Ute,0,0,"ng-template",14),2&t){const e=_e();ne("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",mm(2,qte,e.selectedValues,e.clearItem))}}function Wte(t,n){1&t&&Lt(0,"div",19)}function $te(t,n){}function Gte(t,n){if(1&t&&(da(0),ke(1,Wte,1,0,"ng-template",null,17,Fa),ke(3,$te,0,0,"ng-template",18),ha()),2&t){const e=fs(2),i=_e();te(3),ne("ngTemplateOutlet",i.loadingSpinnerTemplate||e)}}function Kte(t,n){1&t&&(le(0,"span",20,21)(2,"span",22),pt(3,"\xd7"),he()()),2&t&&Jc("title",_e().clearAllText)}function Zte(t,n){if(1&t&&Lt(0,"span",28),2&t){const e=_e().$implicit,i=_e(2);ne("ngItemLabel",e.label)("escape",i.escapeHTML)}}function Jte(t,n){}const Xte=function(t,n,e,i){return{item:t,item$:n,index:e,searchTerm:i}};function Qte(t,n){if(1&t){const e=bn();le(0,"div",26),vt("click",function(){const s=xt(e).$implicit;return At(_e(2).toggleItem(s))})("mouseover",function(){const s=xt(e).$implicit;return At(_e(2).onItemHover(s))}),ke(1,Zte,1,2,"ng-template",null,27,Fa),ke(3,Jte,0,0,"ng-template",14),he()}if(2&t){const e=n.$implicit,i=fs(2),r=_e(2);br("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===r.itemsList.markedItem),Mi("role",e.children?"group":"option")("aria-selected",e.selected)("id",null==e?null:e.htmlId),te(3),ne("ngTemplateOutlet",e.children?r.optgroupTemplate||i:r.optionTemplate||i)("ngTemplateOutletContext",wO(17,Xte,e.value,e,e.index,r.searchTerm))}}function ene(t,n){if(1&t&&(le(0,"span")(1,"span",31),pt(2),he(),pt(3),he()),2&t){const e=_e(3);te(2),Ti(e.addTagText),te(1),Wn('"',e.searchTerm,'"')}}function tne(t,n){}function nne(t,n){if(1&t){const e=bn();le(0,"div",29),vt("mouseover",function(){return xt(e),At(_e(2).itemsList.unmarkItem())})("click",function(){return xt(e),At(_e(2).selectTag())}),ke(1,ene,4,2,"ng-template",null,30,Fa),ke(3,tne,0,0,"ng-template",14),he()}if(2&t){const e=fs(2),i=_e(2);br("ng-option-marked",!i.itemsList.markedItem),te(3),ne("ngTemplateOutlet",i.tagTemplate||e)("ngTemplateOutletContext",Hs(4,Uv,i.searchTerm))}}function ine(t,n){if(1&t&&(le(0,"div",33),pt(1),he()),2&t){const e=_e(3);te(1),Ti(e.notFoundText)}}function rne(t,n){}function sne(t,n){if(1&t&&(da(0),ke(1,ine,2,1,"ng-template",null,32,Fa),ke(3,rne,0,0,"ng-template",14),ha()),2&t){const e=fs(2),i=_e(2);te(3),ne("ngTemplateOutlet",i.notFoundTemplate||e)("ngTemplateOutletContext",Hs(2,Uv,i.searchTerm))}}function one(t,n){if(1&t&&(le(0,"div",33),pt(1),he()),2&t){const e=_e(3);te(1),Ti(e.typeToSearchText)}}function ane(t,n){}function lne(t,n){if(1&t&&(da(0),ke(1,one,2,1,"ng-template",null,34,Fa),ke(3,ane,0,0,"ng-template",18),ha()),2&t){const e=fs(2),i=_e(2);te(3),ne("ngTemplateOutlet",i.typeToSearchTemplate||e)}}function une(t,n){if(1&t&&(le(0,"div",33),pt(1),he()),2&t){const e=_e(3);te(1),Ti(e.loadingText)}}function cne(t,n){}function dne(t,n){if(1&t&&(da(0),ke(1,une,2,1,"ng-template",null,35,Fa),ke(3,cne,0,0,"ng-template",14),ha()),2&t){const e=fs(2),i=_e(2);te(3),ne("ngTemplateOutlet",i.loadingTextTemplate||e)("ngTemplateOutletContext",Hs(2,Uv,i.searchTerm))}}function hne(t,n){if(1&t){const e=bn();le(0,"ng-dropdown-panel",23),vt("update",function(r){return xt(e),At(_e().viewPortItems=r)})("scroll",function(r){return xt(e),At(_e().scroll.emit(r))})("scrollToEnd",function(r){return xt(e),At(_e().scrollToEnd.emit(r))})("outsideClick",function(){return xt(e),At(_e().close())}),da(1),ke(2,Qte,4,22,"div",24),ke(3,nne,4,6,"div",25),ha(),ke(4,sne,4,4,"ng-container",3),ke(5,lne,4,1,"ng-container",3),ke(6,dne,4,4,"ng-container",3),he()}if(2&t){const e=_e();br("ng-select-multiple",e.multiple),ne("virtualScroll",e.virtualScroll)("bufferAmount",e.bufferAmount)("appendTo",e.appendTo)("position",e.dropdownPosition)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("markedItem",e.itemsList.markedItem)("ngClass",e.appendTo?e.classes:null)("id",e.dropdownId),te(2),ne("ngForOf",e.viewPortItems)("ngForTrackBy",e.trackByOption),te(1),ne("ngIf",e.showAddTag),te(1),ne("ngIf",e.showNoItemsFound()),te(1),ne("ngIf",e.showTypeToSearch()),te(1),ne("ngIf",e.loading&&0===e.itemsList.filteredItems.length)}}const BF=/[&<>"']/g,fne=RegExp(BF.source),pne={"&":"&","<":"<",">":">",'"':""","'":"'"};function os(t){return null!=t}function qv(t){return"object"==typeof t&&os(t)}function _D(t){return t instanceof Function}let gne=(()=>{class t{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?function mne(t){return t&&fne.test(t)?t.replace(BF,n=>pne[n]):t}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Fn))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[rs]})}return t})(),yne=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(ki))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ng-option-tmp",""]]})}return t})(),vne=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(ki))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ng-optgroup-tmp",""]]})}return t})(),bne=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(ki))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ng-label-tmp",""]]})}return t})(),wne=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(ki))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ng-multi-label-tmp",""]]})}return t})(),Mne=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(ki))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ng-header-tmp",""]]})}return t})(),Dne=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(ki))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ng-footer-tmp",""]]})}return t})(),Cne=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(ki))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ng-notfound-tmp",""]]})}return t})(),Sne=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(ki))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ng-typetosearch-tmp",""]]})}return t})(),Tne=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(ki))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ng-loadingtext-tmp",""]]})}return t})(),xne=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(ki))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ng-tag-tmp",""]]})}return t})(),kne=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(ki))};static#t=this.\u0275dir=Kt({type:t,selectors:[["","ng-loadingspinner-tmp",""]]})}return t})();function UF(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const Ane={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function gD(t){return t.replace(/[^\u0000-\u007E]/g,e=>Ane[e]||e)}class Lne{constructor(n,e){this._ngSelect=n,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let n=this.selectedItems.length-1;for(;n>=0;n--){const e=this.selectedItems[n];if(!e.disabled)return e}return null}setItems(n){this._items=n.map((e,i)=>this.mapItem(e,i)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(n){if(n.selected||this.maxItemsSelected)return;const e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(n,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(n)}unselect(n){n.selected&&(this._selectionModel.unselect(n,this._ngSelect.multiple),this._ngSelect.hideSelected&&os(n.index)&&this._ngSelect.multiple&&this._showSelected(n))}findItem(n){let e;return e=this._ngSelect.compareWith?i=>this._ngSelect.compareWith(i.value,n):this._ngSelect.bindValue?i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue)===n:i=>i.value===n||!i.children&&i.label&&i.label===this.resolveNested(n,this._ngSelect.bindLabel),this._items.find(i=>e(i))}addItem(n){const e=this.mapItem(n,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(n=!1){this._selectionModel.clear(n),this._items.forEach(e=>{e.selected=n&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(n){return n=gD(n).toLocaleLowerCase(),this.filteredItems.find(e=>gD(e.label).toLocaleLowerCase().substr(0,n.length)===n)}filter(n){if(!n)return void this.resetFilteredItems();this._filteredItems=[],n=this._ngSelect.searchFn?n:gD(n).toLocaleLowerCase();const e=this._ngSelect.searchFn||this._defaultSearchFn,i=this._ngSelect.hideSelected;for(const r of Array.from(this._groups.keys())){const s=[];for(const o of this._groups.get(r))i&&(o.parent&&o.parent.selected||o.selected)||e(n,this._ngSelect.searchFn?o.value:o)&&s.push(o);if(s.length>0){const[o]=s.slice(-1);if(o.parent){const a=this._items.find(l=>l===o.parent);this._filteredItems.push(a)}this._filteredItems.push(...s)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(n=>!n.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(n){this._markedIndex=this._filteredItems.indexOf(n)}markSelectedOrDefault(n){if(0===this._filteredItems.length)return;const e=this._getLastMarkedIndex();this._markedIndex=e>-1?e:n?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(n,e){if(!qv(n))return n;if(-1===e.indexOf("."))return n[e];{const i=e.split(".");let r=n;for(let s=0,o=i.length;s-1===this.selectedItems.indexOf(e)))}_showSelected(n){if(this._filteredItems.push(n),n.parent){const e=n.parent;this._filteredItems.find(r=>r===e)||this._filteredItems.push(e)}else if(n.children)for(const e of n.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(n){this._filteredItems=this._filteredItems.filter(e=>e!==n),n.parent?n.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==n.parent)):n.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==n))}_defaultSearchFn(n,e){return gD(e.label).toLocaleLowerCase().indexOf(n)>-1}_getNextItemIndex(n){return n>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(n){0===this._filteredItems.length||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(n),this.markedItem.disabled&&this._stepToItem(n))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const n=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&n<0?-1:Math.max(this.markedIndex,n)}_groupBy(n,e){const i=new Map;if(0===n.length)return i;if(Array.isArray(n[0].value[e])){for(const o of n){const a=(o.value[e]||[]).map((l,c)=>this.mapItem(l,c));i.set(o,a)}return i}const r=_D(this._ngSelect.groupBy),s=o=>{const a=r?e(o.value):o.value[e];return os(a)?a:void 0};for(const o of n){const a=s(o),l=i.get(a);l?l.push(o):i.set(a,[o])}return i}_flatten(n){const e=_D(this._ngSelect.groupBy),i=[];for(const r of Array.from(n.keys())){let s=i.length;if(void 0===r){const g=n.get(void 0)||[];i.push(...g.map(D=>(D.index=s++,D)));continue}const o=qv(r),a={label:o?"":String(r),children:void 0,parent:null,index:s++,disabled:!this._ngSelect.selectableGroup,htmlId:UF()},l=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,c=this._ngSelect.groupValue||(()=>o?r.value:{[l]:r}),p=n.get(r).map(g=>(g.parent=a,g.children=void 0,g.index=s++,g));a.children=p,a.value=c(r,p.map(g=>g.value)),i.push(a),i.push(...p)}return i}}var rd=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Esc=27]="Esc",t[t.Space=32]="Space",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowDown=40]="ArrowDown",t[t.Backspace=8]="Backspace",t}(rd||{});let qF=(()=>{class t{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,i,r){const s=this._dimensions,o=s.itemHeight*i,l=Math.max(0,e)/o*i;let c=Math.min(i,Math.ceil(l)+(s.itemsPerViewport+1));const g=Math.max(0,c-s.itemsPerViewport);let D=Math.min(g,Math.floor(l)),b=s.itemHeight*Math.ceil(D)-s.itemHeight*Math.min(D,r);return b=isNaN(b)?0:b,D=isNaN(D)?-1:D,c=isNaN(c)?-1:c,D-=r,D=Math.max(0,D),c+=r,c=Math.min(i,c),{topPadding:b,scrollHeight:o,start:D,end:c}}setDimensions(e,i){const r=Math.max(1,Math.floor(i/e));this._dimensions={itemHeight:e,panelHeight:i,itemsPerViewport:r}}getScrollTo(e,i,r){const{panelHeight:s}=this.dimensions,o=e+i,l=r+s;return s>=o&&r===e?null:o>l?r+o-l:e<=r?e:null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac})}return t})();const zF=["top","right","bottom","left"],Ene=typeof requestAnimationFrame<"u"?RF:YF;let WF=(()=>{class t{constructor(e,i,r,s,o){this._renderer=e,this._zone=i,this._panelService=r,this._document=o,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new Et,this.scroll=new Et,this.scrollToEnd=new Et,this.outsideClick=new Et,this._destroy$=new un,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=s.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:e,panelHeight:i}=this._panelService.dimensions,r=this.markedItem.index*e;return i>r?0:r}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(e){if(e.items){const i=e.items;this._onItemsChange(i.currentValue,i.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,i=!1){if(!e)return;const r=this.items.indexOf(e);if(r<0||r>=this.itemsLength)return;let s;if(this.virtualScroll){const o=this._panelService.dimensions.itemHeight;s=this._panelService.getScrollTo(r*o,o,this._lastScrollPosition)}else{const o=this._dropdown.querySelector(`#${e.htmlId}`);s=this._panelService.getScrollTo(o.offsetTop,o.clientHeight,i?o.offsetTop:this._lastScrollPosition)}os(s)&&(this._scrollablePanel.scrollTop=s)}scrollToTag(){const e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),zF.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){zF.forEach(r=>{const s=`ng-select-${r}`;this._renderer.removeClass(this._dropdown,s),this._renderer.removeClass(this._select,s)});const i=`ng-select-${e}`;this._renderer.addClass(this._dropdown,i),this._renderer.addClass(this._select,i)}_handleScroll(){this._zone.runOutsideAngular(()=>{Im(this.scrollElementRef.nativeElement,"scroll").pipe(nd(this._destroy$),hA(0,Ene)).subscribe(e=>{const i=e.path||e.composedPath&&e.composedPath();this._onContentScrolled(i&&0!==i.length?i[0].scrollTop:e.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Yl(Im(this._document,"touchstart",{capture:!0}),Im(this._document,"mousedown",{capture:!0})).pipe(nd(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;const i=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&i&&i[0]&&this._select.contains(i[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,i){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(i):(this._setVirtualHeight(),this._updateItems(i))}_updateItems(e){this.update.emit(this.items),!1!==e&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;const i=this._panelService.calculateItems(e=e||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(i.scrollHeight),this._contentPanel.style.transform=`translateY(${i.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(i.start,i.end)),this.scroll.emit({start:i.start,end:i.end})}),os(e)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{const r=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;return this._virtualPadding.style.height=r*this.itemsLength+"px",this._panelService.setDimensions(r,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(e){this._scrollToEndFired||0===e||e+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if("auto"!==this.position)return this.position;const i=this._select.getBoundingClientRect(),r=document.documentElement.scrollTop||document.body.scrollTop;return i.top+window.pageYOffset+i.height+e.getBoundingClientRect().height>r+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect();this._dropdown.style.left=e.left-i.left+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){const e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),r=e.height;"top"===this._currentPosition?(this._dropdown.style.bottom=i.bottom-e.bottom+r+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=e.top-i.top+r+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{Im(this._dropdown,"mousedown").pipe(nd(this._destroy$)).subscribe(e=>{"INPUT"!==e.target.tagName&&e.preventDefault()})})}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Kr),Ae(oi),Ae(qF),Ae(Fn),Ae(Ai,8))};static#t=this.\u0275cmp=ni({type:t,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,r){if(1&i&&(zo(Ete,7,Fn),zo(Ote,7,Fn),zo(Ite,7,Fn)),2&i){let s;Zi(s=Ji())&&(r.contentElementRef=s.first),Zi(s=Ji())&&(r.scrollElementRef=s.first),Zi(s=Ji())&&(r.paddingElementRef=s.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[rs],ngContentSelectors:VF,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(i,r){1&i&&(Sg(),ke(0,Pte,2,4,"div",0),le(1,"div",1,2),Lt(3,"div",null,3),le(5,"div",null,4),Tg(7),he()(),ke(8,Nte,2,4,"div",5)),2&i&&(ne("ngIf",r.headerTemplate),te(3),br("total-padding",r.virtualScroll),te(2),br("scrollable-content",r.virtualScroll&&r.items.length),te(3),ne("ngIf",r.footerTemplate))},dependencies:[Do,vm],encapsulation:2,changeDetection:0})}return t})(),$F=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=this._isDisabled(e)}constructor(e){this.elementRef=e,this.stateChange$=new un,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(e){return null!=e&&"false"!=`${e}`}static#e=this.\u0275fac=function(i){return new(i||t)(Ae(Fn))};static#t=this.\u0275cmp=ni({type:t,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[rs],ngContentSelectors:VF,decls:1,vars:0,template:function(i,r){1&i&&(Sg(),Tg(0))},encapsulation:2,changeDetection:0})}return t})(),One=(()=>{class t{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ine=(()=>{class t{warn(e){console.warn(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=it({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const GF=new ht("ng-select-selection-model");let KF=(()=>{class t{get items(){return this._items}set items(e){null===e&&(e=[]),this._itemsAreUsed=!0,this._items=e}get compareWith(){return this._compareWith}set compareWith(e){if(null!=e&&!_D(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return os(this._clearSearchOnAdd)?this._clearSearchOnAdd:os(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return os(this._deselectOnClick)?this._deselectOnClick:os(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(e,i,r,s,o,a,l){this.classes=e,this.autoFocus=i,this.config=r,this._cd=a,this._console=l,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=c=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new Et,this.focusEvent=new Et,this.changeEvent=new Et,this.openEvent=new Et,this.closeEvent=new Et,this.searchEvent=new Et,this.clearEvent=new Et,this.addEvent=new Et,this.removeEvent=new Et,this.scroll=new Et,this.scrollToEnd=new Et,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=UF(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new un,this._keyPress$=new un,this._onChange=c=>{},this._onTouched=()=>{},this.clearItem=c=>{const p=this.selectedItems.find(g=>g.value===c);this.unselect(p)},this.trackByOption=(c,p)=>this.trackByFn?this.trackByFn(p.value):p,this._mergeGlobalConfig(r),this.itemsList=new Lne(this,s()),this.element=o.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=os(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),os(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){if(rd[e.which]){if(!1===this.keyDownFn(e))return;this.handleKeyCode(e)}else e.key&&1===e.key.length&&this._keyPress$.next(e.key.toLocaleLowerCase())}handleKeyCode(e){this.clearButton&&this.clearButton.nativeElement===e.target?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.which){case rd.ArrowDown:this._handleArrowDown(e);break;case rd.ArrowUp:this._handleArrowUp(e);break;case rd.Space:this._handleSpace(e);break;case rd.Enter:this._handleEnter(e);break;case rd.Tab:this._handleTab(e);break;case rd.Esc:this.close(),e.preventDefault();break;case rd.Backspace:this._handleBackspace()}}handleKeyCodeClear(e){e.which===rd.Enter&&(this.handleClearClick(),e.preventDefault())}handleMousedown(e){const i=e.target;"INPUT"!==i.tagName&&e.preventDefault(),i.classList.contains("ng-clear-wrapper")?this.handleClearClick():i.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():i.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value))}selectTag(){let e;e=_D(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const i=r=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(r,null):this.itemsList.addItem(r);!function _ne(t){return t instanceof Promise}(e)?e&&this.select(i(e)):e.then(r=>this.select(i(r))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;const e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(i=>i.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(i=>i.label.toLowerCase()===e))&&!this.loading}showNoItemsFound(){const e=0===this.itemsList.filteredItems.length;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(i=>i.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const e=this.selectedItems&&this.selectedItems[0];this.searchTerm=e&&e.label||null}_setItems(e){const i=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=os(i)?!qv(i):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&os(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const e=r=>{this.items=r.map(s=>({$ngOptionValue:s.value,$ngOptionLabel:s.elementRef.nativeElement.innerHTML,disabled:s.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},i=()=>{const r=Yl(this.ngOptions.changes,this._destroy$);Yl(...this.ngOptions.map(s=>s.stateChange$)).pipe(nd(r)).subscribe(s=>{const o=this.itemsList.findItem(s.value);o.disabled=s.disabled,o.label=s.label||o.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(fA(this.ngOptions),nd(this._destroy$)).subscribe(r=>{this.bindLabel=this._defaultLabel,e(r),i()})}_isValidWriteValue(e){if(!os(e)||this.multiple&&""===e||Array.isArray(e)&&0===e.length)return!1;const i=r=>!(!os(this.compareWith)&&qv(r)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(r)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(e)?e.every(r=>i(r)):(this._console.warn("Multiple select ngModel should be array."),!1):i(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;const i=r=>{let s=this.itemsList.findItem(r);if(s)this.itemsList.select(s);else{const o=qv(r);o||!o&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(r,null)):this.bindValue&&(s={[this.bindLabel]:null,[this.bindValue]:r},this.itemsList.select(this.itemsList.mapItem(s,null)))}};this.multiple?e.forEach(r=>i(r)):i(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(nd(this._destroy$),Hf(e=>this._pressedKeys.push(e)),pA(200),Qu(()=>this._pressedKeys.length>0),dn(()=>this._pressedKeys.join(""))).subscribe(e=>{const i=this.itemsList.findByLabel(e);i&&(this.isOpen?(this.itemsList.markItem(i),this._scrollToMarked(),this._cd.markForCheck()):this.select(i)),this._pressedKeys=[]})}_setInputAttributes(){const e=this.searchInput.nativeElement,i={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const r of Object.keys(i))e.setAttribute(r,i[r])}_updateNgModel(){const e=[];for(const r of this.selectedItems)if(this.bindValue){let s=null;s=r.children?r.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(r.value,this.bindValue),e.push(s)}else e.push(r.value);const i=this.selectedItems.map(r=>r.value);this.multiple?(this._onChange(e),this.changeEvent.emit(i)):(this._onChange(os(e[0])?e[0]:null),this.changeEvent.emit(i[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){if(!1===this.isOpen)if(this.showClear())this.focusOnClear(),e.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){const i=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(i<0||i===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const e=this.searchTerm&&this.searchTerm.trim();return e&&e.length>=this.minTermLength}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=os(this.virtualScroll)?this.virtualScroll:!!os(e.disableVirtualScroll)&&!e.disableVirtualScroll,this.openOnEnter=os(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.appendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}static#e=this.\u0275fac=function(i){return new(i||t)(Uc("class"),Uc("autofocus"),Ae(One),Ae(GF),Ae(Fn),Ae(Wo),Ae(Ine))};static#t=this.\u0275cmp=ni({type:t,selectors:[["ng-select"]],contentQueries:function(i,r,s){if(1&i&&(Na(s,yne,5,ki),Na(s,vne,5,ki),Na(s,bne,5,ki),Na(s,wne,5,ki),Na(s,Mne,5,ki),Na(s,Dne,5,ki),Na(s,Cne,5,ki),Na(s,Sne,5,ki),Na(s,Tne,5,ki),Na(s,xne,5,ki),Na(s,kne,5,ki),Na(s,$F,5)),2&i){let o;Zi(o=Ji())&&(r.optionTemplate=o.first),Zi(o=Ji())&&(r.optgroupTemplate=o.first),Zi(o=Ji())&&(r.labelTemplate=o.first),Zi(o=Ji())&&(r.multiLabelTemplate=o.first),Zi(o=Ji())&&(r.headerTemplate=o.first),Zi(o=Ji())&&(r.footerTemplate=o.first),Zi(o=Ji())&&(r.notFoundTemplate=o.first),Zi(o=Ji())&&(r.typeToSearchTemplate=o.first),Zi(o=Ji())&&(r.loadingTextTemplate=o.first),Zi(o=Ji())&&(r.tagTemplate=o.first),Zi(o=Ji())&&(r.loadingSpinnerTemplate=o.first),Zi(o=Ji())&&(r.ngOptions=o)}},viewQuery:function(i,r){if(1&i&&(zo(WF,5),zo(Fte,7),zo(Rte,5)),2&i){let s;Zi(s=Ji())&&(r.dropdownPanel=s.first),Zi(s=Ji())&&(r.searchInput=s.first),Zi(s=Ji())&&(r.clearButton=s.first)}},hostVars:20,hostBindings:function(i,r){1&i&&vt("keydown",function(o){return r.handleKeyDown(o)}),2&i&&br("ng-select-typeahead",r.typeahead)("ng-select-multiple",r.multiple)("ng-select-taggable",r.addTag)("ng-select-searchable",r.searchable)("ng-select-clearable",r.clearable)("ng-select-opened",r.isOpen)("ng-select",r.useDefaultClass)("ng-select-disabled",r.disabled)("ng-select-filtered",r.filtered)("ng-select-single",r.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[xi([{provide:ms,useExisting:Un(()=>t),multi:!0},qF]),rs],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper","tabindex","0",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],["clearButton",""],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(i,r){if(1&i){const s=bn();le(0,"div",0),vt("mousedown",function(a){return r.handleMousedown(a)}),le(1,"div",1)(2,"div",2),pt(3),he(),ke(4,Bte,2,2,"ng-container",3),ke(5,zte,1,5,null,3),le(6,"div",4)(7,"input",5,6),vt("input",function(){xt(s);const a=fs(8);return At(r.filter(a.value))})("compositionstart",function(){return r.onCompositionStart()})("compositionend",function(){xt(s);const a=fs(8);return At(r.onCompositionEnd(a.value))})("focus",function(a){return r.onInputFocus(a)})("blur",function(a){return r.onInputBlur(a)})("change",function(a){return a.stopPropagation()}),he()()(),ke(9,Gte,4,1,"ng-container",3),ke(10,Kte,4,1,"span",7),le(11,"span",8),Lt(12,"span",9),he()(),ke(13,hne,7,19,"ng-dropdown-panel",10)}2&i&&(br("ng-appearance-outline","outline"===r.appearance)("ng-has-value",r.hasValue),te(3),Ti(r.placeholder),te(1),ne("ngIf",(!r.multiLabelTemplate||!r.multiple)&&r.selectedItems.length>0),te(1),ne("ngIf",r.multiple&&r.multiLabelTemplate&&r.selectedValues.length>0),te(1),Mi("aria-expanded",r.isOpen)("aria-owns",r.isOpen?r.dropdownId:null),te(1),ne("readOnly",!r.searchable||r.itemsList.maxItemsSelected)("disabled",r.disabled)("value",r.searchTerm?r.searchTerm:""),Mi("id",r.labelForId)("tabindex",r.tabIndex)("aria-activedescendant",r.isOpen?null==r.itemsList||null==r.itemsList.markedItem?null:r.itemsList.markedItem.htmlId:null)("aria-controls",r.isOpen?r.dropdownId:null),te(2),ne("ngIf",r.loading),te(1),ne("ngIf",r.showClear()),te(3),ne("ngIf",r.isOpen))},dependencies:[Ya,uu,Do,vm,WF,gne],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0})}return t})();function Pne(){return new Nne}class Nne{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){const r=n.parent.children.length,s=n.parent.children.filter(o=>o.selected).length;n.parent.selected=r===s}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=i&&this._activeChildren(n)?[...this._selected.filter(r=>r.parent!==n),n]:[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){const i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(const i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}}let ZF=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Cn({type:t});static#n=this.\u0275inj=Dn({providers:[{provide:GF,useValue:Pne}],imports:[ss]})}return t})();var Dr=J(86522),fr=Uint8Array,So=Uint16Array,Vf=Uint32Array,Gg=new fr([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]),Kg=new fr([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]),zv=new fr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),XF=function(t,n){for(var e=new So(31),i=0;i<31;++i)e[i]=n+=1<>>1|(21845&zr)<<1;Wv[zr]=((65280&(Bf=(61680&(Bf=(52428&Bf)>>>2|(13107&Bf)<<2))>>>4|(3855&Bf)<<4))>>>8|(255&Bf)<<8)>>>1}var fu=function(t,n,e){for(var i=t.length,r=0,s=new So(n);r>>l]=c}else for(a=new So(i),r=0;r>>15-t[r];return a},mh=new fr(288);for(zr=0;zr<144;++zr)mh[zr]=8;for(zr=144;zr<256;++zr)mh[zr]=9;for(zr=256;zr<280;++zr)mh[zr]=7;for(zr=280;zr<288;++zr)mh[zr]=8;var Zg=new fr(32);for(zr=0;zr<32;++zr)Zg[zr]=5;var n8=fu(mh,9,0),r8=fu(mh,9,1),s8=fu(Zg,5,0),o8=fu(Zg,5,1),vD=function(t){for(var n=t[0],e=1;en&&(n=t[e]);return n},pu=function(t,n,e){var i=n/8>>0;return(t[i]|t[i+1]<<8)>>>(7&n)&e},bD=function(t,n){var e=n/8>>0;return(t[e]|t[e+1]<<8|t[e+2]<<16)>>>(7&n)},$v=function(t){return(t/8>>0)+(7&t&&1)},Pm=function(t,n,e){(null==n||n<0)&&(n=0),(null==e||e>t.length)&&(e=t.length);var i=new(t instanceof So?So:t instanceof Vf?Vf:fr)(e-n);return i.set(t.subarray(n,e)),i},sd=function(t,n,e){var i=n/8>>0;t[i]|=e<<=7&n,t[i+1]|=e>>>8},Jg=function(t,n,e){var i=n/8>>0;t[i]|=e<<=7&n,t[i+1]|=e>>>8,t[i+2]|=e>>>16},MD=function(t,n){for(var e=[],i=0;iD&&(D=s[i].s);var b=new So(D+1),O=DD(e[p-1],b,0);if(O>n){i=0;var E=0,Y=O-n,N=1<n))break;E+=N-(1<>>=Y;E>0;){var se=s[i].s;b[se]=0&&E;--i){var me=s[i].s;b[me]==n&&(--b[me],++E)}O=n}return[new fr(b),O]},DD=function(t,n,e){return-1==t.s?Math.max(DD(t.l,n,e+1),DD(t.r,n,e+1)):n[t.s]=e},yA=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new So(++n),i=0,r=t[0],s=1,o=function(l){e[i++]=l},a=1;a<=n;++a)if(t[a]==r&&a!=n)++s;else{if(!r&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(r),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(r);s=1,r=t[a]}return[e.subarray(0,i),n]},Xg=function(t,n){for(var e=0,i=0;i>>8,t[r+2]=255^t[r],t[r+3]=255^t[r+1];for(var s=0;s4&&!tt[zv[ie-1]];--ie);var Ce,Re,j,We,we=c+5<<3,ye=Xg(r,mh)+Xg(s,Zg)+o,et=Xg(r,D)+Xg(s,E)+o+14+3*ie+Xg(Pe,tt)+(2*Pe[16]+3*Pe[17]+7*Pe[18]);if(we<=ye&&we<=et)return Gv(n,p,t.subarray(l,l+c));if(sd(n,p,1+(et15&&(sd(n,p,ue[fe]>>>5&127),p+=ue[fe]>>>12)}}else Ce=n8,Re=mh,j=s8,We=Zg;for(fe=0;fe255){var ce;Jg(n,p,Ce[257+(ce=i[fe]>>>18&31)]),p+=Re[ce+257],ce>7&&(sd(n,p,i[fe]>>>23&31),p+=Gg[ce]);var Te=31&i[fe];Jg(n,p,j[Te]),p+=We[Te],Te>3&&(Jg(n,p,i[fe]>>>5&8191),p+=Kg[Te])}else Jg(n,p,Ce[i[fe]]),p+=Re[i[fe]];return Jg(n,p,Ce[256]),p+Re[256]},a8=new Vf([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),l8=new fr(0),SD=function(t,n,e,i,r){return function(t,n,e,i,r,s){var o=t.length,a=new fr(i+o+5*(1+Math.floor(o/7e3))+r),l=a.subarray(i,a.length-r),c=0;if(!n||o<8)for(var p=0;p<=o;p+=65535){var g=p+65535;g>>13,O=8191&D,E=(1<7e3||tt>24576)&&Ce>423){c=vA(t,l,0,Ie,Je,Pe,Qe,tt,ie,p-ie,c),tt=fe=Qe=0,ie=p;for(var Re=0;Re<286;++Re)Je[Re]=0;for(Re=0;Re<30;++Re)Pe[Re]=0}var j=2,We=0,Xe=O,Ot=ye-et&32767;if(Ce>2&&we==me(p-Ot))for(var z=Math.min(b,Ce)-1,ue=Math.min(32767,p),ce=Math.min(258,Ce);Ot<=ue&&--Xe&&ye!=et;){if(t[p+j]==t[p+j-Ot]){for(var Te=0;Tej){if(j=Te,We=Ot,Te>z)break;var Ye=Math.min(Ot,Te-2),Be=0;for(Re=0;ReBe&&(Be=kt,et=Ge)}}}Ot+=(ye=et)-(et=Y[ye])+32768&32767}if(We){Ie[tt++]=268435456|yD[j]<<18|gA[We];var St=31&yD[j],Zt=31&gA[We];Qe+=Gg[St]+Kg[Zt],++Je[257+St],++Pe[Zt],oe=p+j,++fe}else Ie[tt++]=t[p],++Je[t[p]]}}c=vA(t,l,s,Ie,Je,Pe,Qe,tt,ie,p-ie,c),s||(c=Gv(l,c,l8))}return Pm(a,0,i+$v(c)+r)}(t,null==n.level?6:n.level,null==n.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+n.mem,e,i,!r)};function Zv(t,n){void 0===n&&(n={});var e=function(){var t=1,n=0;return{p:function(e){for(var i=t,r=n,s=e.length,o=0;o!=s;){for(var a=Math.min(o+5552,s);o>>8<<16|(255&n)<<8|n>>>8)+2*((255&t)<<23)}}}();e.p(t);var i=SD(t,n,2,4);return function(t,n){var e=n.level,i=0==e?0:e<6?1:9==e?3:2;t[0]=120,t[1]=i<<6|(i?32-2*i:1)}(i,n),function(t,n,e){for(;e;++n)t[n]=e,e>>>=8}(i,i.length-4,e.d()),i}function kD(t,n){return function(t,n,e){var i=t.length,r=!n||e,s=!e||e.i;e||(e={}),n||(n=new fr(3*i));var o=function(Ye){var Be=n.length;if(Ye>Be){var Ge=new fr(Math.max(2*Be,Ye));Ge.set(n),n=Ge}},a=e.f||0,l=e.p||0,c=e.b||0,p=e.l,g=e.d,D=e.m,b=e.n,O=8*i;do{if(!p){e.f=a=pu(t,l,1);var E=pu(t,l+1,3);if(l+=3,!E){var N=t[(Y=$v(l)+4)-4]|t[Y-3]<<8,H=Y+N;if(H>i){if(s)throw"unexpected EOF";break}r&&o(c+N),n.set(t.subarray(Y,H),c),e.b=c+=N,e.p=l=8*H;continue}if(1==E)p=r8,g=o8,D=9,b=5;else{if(2!=E)throw"invalid block type";var se=pu(t,l,31)+257,me=pu(t,l+10,15)+4,Ie=se+pu(t,l+5,31)+1;l+=14;for(var Je=new fr(Ie),Pe=new fr(19),fe=0;feO)break;var oe=fu(Pe,Qe,1);for(fe=0;fe>>4)<16)Je[fe++]=Y;else{var we=0,ye=0;for(16==Y?(ye=3+pu(t,l,3),l+=2,we=Je[fe-1]):17==Y?(ye=3+pu(t,l,7),l+=3):18==Y&&(ye=11+pu(t,l,127),l+=7);ye--;)Je[fe++]=we}}var et=Je.subarray(0,se),Ce=Je.subarray(se);D=vD(et),b=vD(Ce),p=fu(et,D,1),g=fu(Ce,b,1)}if(l>O)throw"unexpected EOF"}r&&o(c+131072);for(var Re=(1<>>4;if((l+=15&we)>O)throw"unexpected EOF";if(!we)throw"invalid length/literal";if(Xe<256)n[c++]=Xe;else{if(256==Xe){p=null;break}var Ot=Xe-254;Xe>264&&(Ot=pu(t,l,(1<<(z=Gg[fe=Xe-257]))-1)+_A[fe],l+=z);var ue=g[bD(t,l)&j],ce=ue>>>4;if(!ue)throw"invalid distance";if(l+=15&ue,Ce=t8[ce],ce>3){var z=Kg[ce];Ce+=bD(t,l)&(1<O)throw"unexpected EOF";r&&o(c+131072);for(var Te=c+Ot;c>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"}(t),t.subarray(2,-4)),n)}var Ln=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function SA(){Ln.console&&"function"==typeof Ln.console.log&&Ln.console.log.apply(Ln.console,arguments)}var Cr={log:SA,warn:function(t){Ln.console&&("function"==typeof Ln.console.warn?Ln.console.warn.apply(Ln.console,arguments):SA.call(null,arguments))},error:function(t){Ln.console&&("function"==typeof Ln.console.error?Ln.console.error.apply(Ln.console,arguments):SA(t))}};function TA(t,n,e){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){Nm(i.response,n,e)},i.onerror=function(){Cr.error("could not download file")},i.send()}function x8(t){var n=new XMLHttpRequest;n.open("HEAD",t,!1);try{n.send()}catch{}return n.status>=200&&n.status<=299}function LD(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var Jv,xA,Nm=Ln.saveAs||("object"!==(typeof window>"u"?"undefined":(0,Dr.Z)(window))||window!==Ln?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,n,e){var i=Ln.URL||Ln.webkitURL,r=document.createElement("a");r.download=n=n||t.name||"download",r.rel="noopener","string"==typeof t?(r.href=t,r.origin!==location.origin?x8(r.href)?TA(t,n,e):LD(r,r.target="_blank"):LD(r)):(r.href=i.createObjectURL(t),setTimeout(function(){i.revokeObjectURL(r.href)},4e4),setTimeout(function(){LD(r)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,e){if(n=n||t.name||"download","string"==typeof t)if(x8(t))TA(t,n,e);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){LD(i)})}else navigator.msSaveOrOpenBlob((r=t,void 0===(s=e)?s={autoBom:!1}:"object"!==(0,Dr.Z)(s)&&(Cr.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob([String.fromCharCode(65279),r],{type:r.type}):r),n);var r,s}:function(t,n,e,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return TA(t,n,e);var r="application/octet-stream"===t.type,s=/constructor/i.test(Ln.HTMLElement)||Ln.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||r&&s)&&"object"===(typeof FileReader>"u"?"undefined":(0,Dr.Z)(FileReader))){var a=new FileReader;a.onloadend=function(){var p=a.result;p=o?p:p.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=p:location=p,i=null},a.readAsDataURL(t)}else{var l=Ln.URL||Ln.webkitURL,c=l.createObjectURL(t);i?i.location=c:location.href=c,i=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});function k8(t){var n;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={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"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;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(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[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 a=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return 1==a.length&&(a="0"+a),1==l.length&&(l="0"+l),1==c.length&&(c="0"+c),"#"+a+l+c}}function kA(t,n){var e=t[0],i=t[1],r=t[2],s=t[3];e=fa(e,i,r,s,n[0],7,-680876936),s=fa(s,e,i,r,n[1],12,-389564586),r=fa(r,s,e,i,n[2],17,606105819),i=fa(i,r,s,e,n[3],22,-1044525330),e=fa(e,i,r,s,n[4],7,-176418897),s=fa(s,e,i,r,n[5],12,1200080426),r=fa(r,s,e,i,n[6],17,-1473231341),i=fa(i,r,s,e,n[7],22,-45705983),e=fa(e,i,r,s,n[8],7,1770035416),s=fa(s,e,i,r,n[9],12,-1958414417),r=fa(r,s,e,i,n[10],17,-42063),i=fa(i,r,s,e,n[11],22,-1990404162),e=fa(e,i,r,s,n[12],7,1804603682),s=fa(s,e,i,r,n[13],12,-40341101),r=fa(r,s,e,i,n[14],17,-1502002290),e=pa(e,i=fa(i,r,s,e,n[15],22,1236535329),r,s,n[1],5,-165796510),s=pa(s,e,i,r,n[6],9,-1069501632),r=pa(r,s,e,i,n[11],14,643717713),i=pa(i,r,s,e,n[0],20,-373897302),e=pa(e,i,r,s,n[5],5,-701558691),s=pa(s,e,i,r,n[10],9,38016083),r=pa(r,s,e,i,n[15],14,-660478335),i=pa(i,r,s,e,n[4],20,-405537848),e=pa(e,i,r,s,n[9],5,568446438),s=pa(s,e,i,r,n[14],9,-1019803690),r=pa(r,s,e,i,n[3],14,-187363961),i=pa(i,r,s,e,n[8],20,1163531501),e=pa(e,i,r,s,n[13],5,-1444681467),s=pa(s,e,i,r,n[2],9,-51403784),r=pa(r,s,e,i,n[7],14,1735328473),e=ma(e,i=pa(i,r,s,e,n[12],20,-1926607734),r,s,n[5],4,-378558),s=ma(s,e,i,r,n[8],11,-2022574463),r=ma(r,s,e,i,n[11],16,1839030562),i=ma(i,r,s,e,n[14],23,-35309556),e=ma(e,i,r,s,n[1],4,-1530992060),s=ma(s,e,i,r,n[4],11,1272893353),r=ma(r,s,e,i,n[7],16,-155497632),i=ma(i,r,s,e,n[10],23,-1094730640),e=ma(e,i,r,s,n[13],4,681279174),s=ma(s,e,i,r,n[0],11,-358537222),r=ma(r,s,e,i,n[3],16,-722521979),i=ma(i,r,s,e,n[6],23,76029189),e=ma(e,i,r,s,n[9],4,-640364487),s=ma(s,e,i,r,n[12],11,-421815835),r=ma(r,s,e,i,n[15],16,530742520),e=_a(e,i=ma(i,r,s,e,n[2],23,-995338651),r,s,n[0],6,-198630844),s=_a(s,e,i,r,n[7],10,1126891415),r=_a(r,s,e,i,n[14],15,-1416354905),i=_a(i,r,s,e,n[5],21,-57434055),e=_a(e,i,r,s,n[12],6,1700485571),s=_a(s,e,i,r,n[3],10,-1894986606),r=_a(r,s,e,i,n[10],15,-1051523),i=_a(i,r,s,e,n[1],21,-2054922799),e=_a(e,i,r,s,n[8],6,1873313359),s=_a(s,e,i,r,n[15],10,-30611744),r=_a(r,s,e,i,n[6],15,-1560198380),i=_a(i,r,s,e,n[13],21,1309151649),e=_a(e,i,r,s,n[4],6,-145523070),s=_a(s,e,i,r,n[11],10,-1120210379),r=_a(r,s,e,i,n[2],15,718787259),i=_a(i,r,s,e,n[9],21,-343485551),t[0]=qf(e,t[0]),t[1]=qf(i,t[1]),t[2]=qf(r,t[2]),t[3]=qf(s,t[3])}function ED(t,n,e,i,r,s){return n=qf(qf(n,t),qf(i,s)),qf(n<>>32-r,e)}function fa(t,n,e,i,r,s,o){return ED(n&e|~n&i,t,n,r,s,o)}function pa(t,n,e,i,r,s,o){return ED(n&i|e&~i,t,n,r,s,o)}function ma(t,n,e,i,r,s,o){return ED(n^e^i,t,n,r,s,o)}function _a(t,n,e,i,r,s,o){return ED(e^(n|~i),t,n,r,s,o)}function A8(t){var n,e=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;n+=64)kA(i,$ne(t.substring(n-64,n)));t=t.substring(n-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n>2]|=t.charCodeAt(n)<<(n%4<<3);if(r[n>>2]|=128<<(n%4<<3),n>55)for(kA(i,r),n=0;n<16;n++)r[n]=0;return r[14]=8*e,kA(i,r),i}function $ne(t){var n,e=[];for(n=0;n<64;n+=4)e[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return e}Jv=Ln.atob.bind(Ln),xA=Ln.btoa.bind(Ln);var L8="0123456789abcdef".split("");function Gne(t){for(var n="",e=0;e<4;e++)n+=L8[t>>8*e+4&15]+L8[t>>8*e&15];return n}function Kne(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function AA(t){return A8(t).map(Kne).join("")}var Zne="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var n=0;n>16)+(n>>16)+(e>>16)<<16|65535&e}return t+n&4294967295}function LA(t,n){var e,i,r;if(t!==e){for(var o=(r=t,new Array(1+(256/t.length>>0)+1).join(r)),a=[],l=0;l<256;l++)a[l]=l;var c=0;for(l=0;l<256;l++){var p=a[l];c=(c+p+o.charCodeAt(l))%256,a[l]=a[c],a[c]=p}e=t,i=a}else a=i;var g=n.length,D=0,b=0,O="";for(l=0;l\x80/\f\xa9\xfedSiz";var s=(n+this.padding).substr(0,32),o=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,o),this.P=-(1+(255^r)),this.encryptionKey=AA(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=LA(this.encryptionKey,this.padding)}function t1(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",e=t.length,i=0;i126?"#"+("0"+r.toString(16)).slice(-2):t[i]}return n}function O8(t){if("object"!==(0,Dr.Z)(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(e,i,r){if(r=r||!1,"string"!=typeof e||"function"!=typeof i||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(e)||(n[e]={});var s=Math.random().toString(35);return n[e][s]=[i,!!r],s},this.unsubscribe=function(e){for(var i in n)if(n[i][e])return delete n[i][e],0===Object.keys(n[i]).length&&delete n[i],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var i=Array.prototype.slice.call(arguments,1),r=[];for(var s in n[e]){var o=n[e][s];try{o[0].apply(t,i)}catch(a){Ln.console&&Cr.error("jsPDF PubSub Error",a.message,a)}o[1]&&r.push(s)}r.length&&r.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function OD(t){if(!(this instanceof OD))return new OD(t);var n="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&n.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function I8(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1}function Fm(t,n,e,i,r){if(!(this instanceof Fm))return new Fm(t,n,e,i,r);this.type="axial"===t?2:3,this.coords=n,this.colors=e,I8.call(this,i,r)}function n1(t,n,e,i,r){if(!(this instanceof n1))return new n1(t,n,e,i,r);this.boundingBox=t,this.xStep=n,this.yStep=e,this.stream="",this.cloneIndex=0,I8.call(this,i,r)}function kn(t){var n,e="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],r=arguments[2],s=arguments[3],o=[],a=1,l=16,c="S",p=null;"object"===(0,Dr.Z)(t=t||{})&&(e=t.orientation,i=t.unit||i,r=t.format||r,s=t.compress||t.compressPdf||s,null!==(p=t.encryption||null)&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),a="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(n=t.precision),void 0!==t.floatPrecision&&(l=t.floatPrecision),c=t.defaultPathOperation||"S"),o=t.filters||(!0===s?["FlateEncode"]:o),i=i||"mm",e=(""+(e||"P")).toLowerCase();var g=t.putOnlyUsedFonts||!1,D={},b={internal:{},__private__:{}};b.__private__.PubSub=O8;var O="1.3",E=b.__private__.getPdfVersion=function(){return O};b.__private__.setPdfVersion=function(M){O=M};var Y={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]};b.__private__.getPageFormats=function(){return Y};var N=b.__private__.getPageFormat=function(M){return Y[M]};r=r||"a4";var se="compat";function me(){this.saveGraphicsState(),ge(new An(Gt,0,0,-Gt,0,Qf()*Gt).toString()+" cm"),this.setFontSize(this.getFontSize()/Gt),c="n",se="advanced"}function Ie(){this.restoreGraphicsState(),c="S",se="compat"}var Je=b.__private__.combineFontStyleAndFontWeight=function(M,U){if("bold"==M&&"normal"==U||"bold"==M&&400==U||"normal"==M&&"italic"==U||"bold"==M&&"italic"==U)throw new Error("Invalid Combination of fontweight and fontstyle");return U&&(M=400==U||"normal"===U?"italic"===M?"italic":"normal":700!=U&&"bold"!==U||"normal"!==M?(700==U?"bold":U)+""+M:"bold"),M};b.advancedAPI=function(M){var U="compat"===se;return U&&me.call(this),"function"!=typeof M||(M(this),U&&Ie.call(this)),this},b.compatAPI=function(M){var U="advanced"===se;return U&&Ie.call(this),"function"!=typeof M||(M(this),U&&me.call(this)),this},b.isAdvancedAPI=function(){return"advanced"===se};var Pe,fe=function(M){if("advanced"!==se)throw new Error(M+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Qe=b.roundToPrecision=b.__private__.roundToPrecision=function(M,U){var de=n||U;if(isNaN(M)||isNaN(de))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return M.toFixed(de).replace(/0+$/,"")};Pe=b.hpf=b.__private__.hpf="number"==typeof l?function(M){if(isNaN(M))throw new Error("Invalid argument passed to jsPDF.hpf");return Qe(M,l)}:"smart"===l?function(M){if(isNaN(M))throw new Error("Invalid argument passed to jsPDF.hpf");return Qe(M,M>-1&&M<1?16:5)}:function(M){if(isNaN(M))throw new Error("Invalid argument passed to jsPDF.hpf");return Qe(M,16)};var tt=b.f2=b.__private__.f2=function(M){if(isNaN(M))throw new Error("Invalid argument passed to jsPDF.f2");return Qe(M,2)},oe=b.__private__.f3=function(M){if(isNaN(M))throw new Error("Invalid argument passed to jsPDF.f3");return Qe(M,3)},ie=b.scale=b.__private__.scale=function(M){if(isNaN(M))throw new Error("Invalid argument passed to jsPDF.scale");return"compat"===se?M*Gt:"advanced"===se?M:void 0},ye=function(M){return ie(function(M){return"compat"===se?Qf()-M:"advanced"===se?M:void 0}(M))};b.__private__.setPrecision=b.setPrecision=function(M){"number"==typeof parseInt(M,10)&&(n=parseInt(M,10))};var et,Ce="00000000000000000000000000000000",Re=b.__private__.getFileId=function(){return Ce},j=b.__private__.setFileId=function(M){return Ce=void 0!==M&&/^[a-fA-F0-9]{32}$/.test(M)?M.toUpperCase():Ce.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==p&&(ya=new e1(p.userPermissions,p.userPassword,p.ownerPassword,Ce)),Ce};b.setFileId=function(M){return j(M),this},b.getFileId=function(){return Re()};var We=b.__private__.convertDateToPDFDate=function(M){var U=M.getTimezoneOffset(),de=U<0?"+":"-",De=Math.floor(Math.abs(U/60)),Ve=Math.abs(U%60),st=[de,ce(De),"'",ce(Ve),"'"].join("");return["D:",M.getFullYear(),ce(M.getMonth()+1),ce(M.getDate()),ce(M.getHours()),ce(M.getMinutes()),ce(M.getSeconds()),st].join("")},Xe=b.__private__.convertPDFDateToDate=function(M){var U=parseInt(M.substr(2,4),10),de=parseInt(M.substr(6,2),10)-1,De=parseInt(M.substr(8,2),10),Ve=parseInt(M.substr(10,2),10),st=parseInt(M.substr(12,2),10),Mt=parseInt(M.substr(14,2),10);return new Date(U,de,De,Ve,st,Mt,0)},Ot=b.__private__.setCreationDate=function(M){var U;if(void 0===M&&(M=new Date),M instanceof Date)U=We(M);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(M))throw new Error("Invalid argument passed to jsPDF.setCreationDate");U=M}return et=U},z=b.__private__.getCreationDate=function(M){var U=et;return"jsDate"===M&&(U=Xe(et)),U};b.setCreationDate=function(M){return Ot(M),this},b.getCreationDate=function(M){return z(M)};var ue,ce=b.__private__.padd2=function(M){return("0"+parseInt(M)).slice(-2)},Te=b.__private__.padd2Hex=function(M){return("00"+(M=M.toString())).substr(M.length)},Ye=0,Be=[],Ge=[],$e=0,kt=[],St=[],Zt=!1,Qt=Ge;b.__private__.setCustomOutputDestination=function(M){Zt=!0,Qt=M};var ot=function(M){Zt||(Qt=M)};b.__private__.resetCustomOutputDestination=function(){Zt=!1,Qt=Ge};var ge=b.__private__.out=function(M){return M=M.toString(),$e+=M.length+1,Qt.push(M),Qt},Xn=b.__private__.write=function(M){return ge(1===arguments.length?M.toString():Array.prototype.join.call(arguments," "))},on=b.__private__.getArrayBuffer=function(M){for(var U=M.length,de=new ArrayBuffer(U),De=new Uint8Array(de);U--;)De[U]=M.charCodeAt(U);return de},Tt=[["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]];b.__private__.getStandardFonts=function(){return Tt};var Ft=t.fontSize||16;b.__private__.setFontSize=b.setFontSize=function(M){return Ft="advanced"===se?M/Gt:M,this};var $t,Bt=b.__private__.getFontSize=b.getFontSize=function(){return"compat"===se?Ft:Ft*Gt},hn=t.R2L||!1;b.__private__.setR2L=b.setR2L=function(M){return hn=M,this},b.__private__.getR2L=b.getR2L=function(){return hn};var Gn,ci=b.__private__.setZoomMode=function(M){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(M))$t=M;else if(isNaN(M)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(M))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+M+'" is not recognized.');$t=M}else $t=parseInt(M,10)};b.__private__.getZoomMode=function(){return $t};var mi,Ui=b.__private__.setPageMode=function(M){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(M))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+M+'" is not recognized.');Gn=M};b.__private__.getPageMode=function(){return Gn};var pr=b.__private__.setLayoutMode=function(M){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(M))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+M+'" is not recognized.');mi=M};b.__private__.getLayoutMode=function(){return mi},b.__private__.setDisplayMode=b.setDisplayMode=function(M,U,de){return ci(M),pr(U),Ui(de),this};var Rn={title:"",subject:"",author:"",keywords:"",creator:""};b.__private__.getDocumentProperty=function(M){if(-1===Object.keys(Rn).indexOf(M))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Rn[M]},b.__private__.getDocumentProperties=function(){return Rn},b.__private__.setDocumentProperties=b.setProperties=b.setDocumentProperties=function(M){for(var U in Rn)Rn.hasOwnProperty(U)&&M[U]&&(Rn[U]=M[U]);return this},b.__private__.setDocumentProperty=function(M,U){if(-1===Object.keys(Rn).indexOf(M))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Rn[M]=U};var Di,Gt,ga,$i,oc,Sr={},Xr={},dd=[],tr={},qm={},ys={},ac={},yh=null,vs=0,Kn=[],nr=new O8(b),zm=t.hotfixes||[],Ko={},hd={},fd=[],An=function M(U,de,De,Ve,st,Mt){if(!(this instanceof M))return new M(U,de,De,Ve,st,Mt);isNaN(U)&&(U=1),isNaN(de)&&(de=0),isNaN(De)&&(De=0),isNaN(Ve)&&(Ve=1),isNaN(st)&&(st=0),isNaN(Mt)&&(Mt=0),this._matrix=[U,de,De,Ve,st,Mt]};Object.defineProperty(An.prototype,"sx",{get:function(){return this._matrix[0]},set:function(M){this._matrix[0]=M}}),Object.defineProperty(An.prototype,"shy",{get:function(){return this._matrix[1]},set:function(M){this._matrix[1]=M}}),Object.defineProperty(An.prototype,"shx",{get:function(){return this._matrix[2]},set:function(M){this._matrix[2]=M}}),Object.defineProperty(An.prototype,"sy",{get:function(){return this._matrix[3]},set:function(M){this._matrix[3]=M}}),Object.defineProperty(An.prototype,"tx",{get:function(){return this._matrix[4]},set:function(M){this._matrix[4]=M}}),Object.defineProperty(An.prototype,"ty",{get:function(){return this._matrix[5]},set:function(M){this._matrix[5]=M}}),Object.defineProperty(An.prototype,"a",{get:function(){return this._matrix[0]},set:function(M){this._matrix[0]=M}}),Object.defineProperty(An.prototype,"b",{get:function(){return this._matrix[1]},set:function(M){this._matrix[1]=M}}),Object.defineProperty(An.prototype,"c",{get:function(){return this._matrix[2]},set:function(M){this._matrix[2]=M}}),Object.defineProperty(An.prototype,"d",{get:function(){return this._matrix[3]},set:function(M){this._matrix[3]=M}}),Object.defineProperty(An.prototype,"e",{get:function(){return this._matrix[4]},set:function(M){this._matrix[4]=M}}),Object.defineProperty(An.prototype,"f",{get:function(){return this._matrix[5]},set:function(M){this._matrix[5]=M}}),Object.defineProperty(An.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(An.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(An.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(An.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),An.prototype.join=function(M){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Pe).join(M)},An.prototype.multiply=function(M){return new An(M.sx*this.sx+M.shy*this.shx,M.sx*this.shy+M.shy*this.sy,M.shx*this.sx+M.sy*this.shx,M.shx*this.shy+M.sy*this.sy,M.tx*this.sx+M.ty*this.shx+this.tx,M.tx*this.shy+M.ty*this.sy+this.ty)},An.prototype.decompose=function(){var M=this.sx,U=this.shy,de=this.shx,De=this.sy,Ve=this.tx,st=this.ty,Mt=Math.sqrt(M*M+U*U),Jt=(M/=Mt)*de+(U/=Mt)*De;de-=M*Jt,De-=U*Jt;var pn=Math.sqrt(de*de+De*De);return Jt/=pn,M*(De/=pn)>16&255,De=pn>>8&255,Ve=255&pn}if(void 0===De||void 0===st&&de===De&&De===Ve)U="string"==typeof de?de+" "+Mt[0]:2===M.precision?tt(de/255)+" "+Mt[0]:oe(de/255)+" "+Mt[0];else if(void 0===st||"object"===(0,Dr.Z)(st)){if(st&&!isNaN(st.a)&&0===st.a)return["1.","1.","1.",Mt[1]].join(" ");U="string"==typeof de?[de,De,Ve,Mt[1]].join(" "):2===M.precision?[tt(de/255),tt(De/255),tt(Ve/255),Mt[1]].join(" "):[oe(de/255),oe(De/255),oe(Ve/255),Mt[1]].join(" ")}else U="string"==typeof de?[de,De,Ve,st,Mt[2]].join(" "):2===M.precision?[tt(de),tt(De),tt(Ve),tt(st),Mt[2]].join(" "):[oe(de),oe(De),oe(Ve),oe(st),Mt[2]].join(" ");return U},md=b.__private__.getFilters=function(){return o},_u=b.__private__.putStream=function(M){var U=(M=M||{}).data||"",de=M.filters||md(),De=M.alreadyAppliedFilters||[],Ve=M.addLength1||!1,st=U.length,Mt=M.objectId,Jt=function(va){return va};if(null!==p&&void 0===Mt)throw new Error("ObjectId must be passed to putStream for file encryption");null!==p&&(Jt=ya.encryptor(Mt,0));var pn={};!0===de&&(de=["FlateEncode"]);var Qn=M.additionalKeyValues||[],pi=(pn=void 0!==kn.API.processDataByFilters?kn.API.processDataByFilters(U,de):{data:U,reverseChain:[]}).reverseChain+(Array.isArray(De)?De.join(" "):De.toString());if(0!==pn.data.length&&(Qn.push({key:"Length",value:pn.data.length}),!0===Ve&&Qn.push({key:"Length1",value:st})),0!=pi.length)if(pi.split("/").length-1==1)Qn.push({key:"Filter",value:pi});else{Qn.push({key:"Filter",value:"["+pi+"]"});for(var Yi=0;Yi>"),0!==pn.data.length&&(ge("stream"),ge(Jt(pn.data)),ge("endstream"))},_d=b.__private__.putPage=function(M){var U=M.number,de=M.data,De=M.objId,Ve=M.contentsObjId;Ol(De,!0),ge("<>"),ge("endobj");var st=de.join("\n");return"advanced"===se&&(st+="\nQ"),Ol(Ve,!0),_u({data:st,filters:md(),objectId:Ve}),ge("endobj"),De},Wm=b.__private__.putPages=function(){var M,U,de=[];for(M=1;M<=vs;M++)Kn[M].objId=Us(),Kn[M].contentsObjId=Us();for(M=1;M<=vs;M++)de.push(_d({number:M,data:St[M],objId:Kn[M].objId,contentsObjId:Kn[M].contentsObjId,mediaBox:Kn[M].mediaBox,cropBox:Kn[M].cropBox,bleedBox:Kn[M].bleedBox,trimBox:Kn[M].trimBox,artBox:Kn[M].artBox,userUnit:Kn[M].userUnit,rootDictionaryObjId:vh,resourceDictionaryObjId:uc}));Ol(vh,!0),ge("<>"),ge("endobj"),nr.publish("postPutPages")},b1=function(M){nr.publish("putFont",{font:M,out:ge,newObject:uo,putStream:_u}),!0!==M.isAlreadyPutted&&(M.objectNumber=uo(),ge("<<"),ge("/Type /Font"),ge("/BaseFont /"+t1(M.postScriptName)),ge("/Subtype /Type1"),"string"==typeof M.encoding&&ge("/Encoding /"+M.encoding),ge("/FirstChar 32"),ge("/LastChar 255"),ge(">>"),ge("endobj"))},M1=function(M){M.objectNumber=uo();var U=[];U.push({key:"Type",value:"/XObject"}),U.push({key:"Subtype",value:"/Form"}),U.push({key:"BBox",value:"["+[Pe(M.x),Pe(M.y),Pe(M.x+M.width),Pe(M.y+M.height)].join(" ")+"]"}),U.push({key:"Matrix",value:"["+M.matrix.toString()+"]"});var de=M.pages[1].join("\n");_u({data:de,additionalKeyValues:U,objectId:M.objectNumber}),ge("endobj")},SL=function(M,U){U||(U=21);var de=uo(),De=function(M,U){var de,De=[],Ve=1/(U-1);for(de=0;de<1;de+=Ve)De.push(de);De.push(1),0!=M[0].offset&&M.unshift({offset:0,color:M[0].color}),1!=M[M.length-1].offset&&M.push({offset:1,color:M[M.length-1].color});for(var Jt="",pn=0,Qn=0;QnM[pn+1].offset;)pn++;var pi=M[pn].offset,Yi=(de-pi)/(M[pn+1].offset-pi),as=M[pn].color,bs=M[pn+1].color;Jt+=Te(Math.round((1-Yi)*as[0]+Yi*bs[0]).toString(16))+Te(Math.round((1-Yi)*as[1]+Yi*bs[1]).toString(16))+Te(Math.round((1-Yi)*as[2]+Yi*bs[2]).toString(16))}return Jt.trim()}(M.colors,U),Ve=[];Ve.push({key:"FunctionType",value:"0"}),Ve.push({key:"Domain",value:"[0.0 1.0]"}),Ve.push({key:"Size",value:"["+U+"]"}),Ve.push({key:"BitsPerSample",value:"8"}),Ve.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ve.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),_u({data:De,additionalKeyValues:Ve,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:de}),ge("endobj"),M.objectNumber=uo(),ge("<< /ShadingType "+M.type),ge("/ColorSpace /DeviceRGB");var st="/Coords ["+Pe(parseFloat(M.coords[0]))+" "+Pe(parseFloat(M.coords[1]))+" ";st+=2===M.type?Pe(parseFloat(M.coords[2]))+" "+Pe(parseFloat(M.coords[3])):Pe(parseFloat(M.coords[2]))+" "+Pe(parseFloat(M.coords[3]))+" "+Pe(parseFloat(M.coords[4]))+" "+Pe(parseFloat(M.coords[5])),ge(st+="]"),M.matrix&&ge("/Matrix ["+M.matrix.toString()+"]"),ge("/Function "+de+" 0 R"),ge("/Extend [true true]"),ge(">>"),ge("endobj")},TL=function(M,U){var de=Us(),De=uo();U.push({resourcesOid:de,objectOid:De}),M.objectNumber=De;var Ve=[];Ve.push({key:"Type",value:"/Pattern"}),Ve.push({key:"PatternType",value:"1"}),Ve.push({key:"PaintType",value:"1"}),Ve.push({key:"TilingType",value:"1"}),Ve.push({key:"BBox",value:"["+M.boundingBox.map(Pe).join(" ")+"]"}),Ve.push({key:"XStep",value:Pe(M.xStep)}),Ve.push({key:"YStep",value:Pe(M.yStep)}),Ve.push({key:"Resources",value:de+" 0 R"}),M.matrix&&Ve.push({key:"Matrix",value:"["+M.matrix.toString()+"]"}),_u({data:M.stream,additionalKeyValues:Ve,objectId:M.objectNumber}),ge("endobj")},lC=function(M){for(var U in M.objectNumber=uo(),ge("<<"),M)switch(U){case"opacity":ge("/ca "+tt(M[U]));break;case"stroke-opacity":ge("/CA "+tt(M[U]))}ge(">>"),ge("endobj")},As=function(M){Ol(M.resourcesOid,!0),ge("<<"),ge("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var M in ge("/Font <<"),Sr)Sr.hasOwnProperty(M)&&(!1===g||!0===g&&D.hasOwnProperty(M))&&ge("/"+M+" "+Sr[M].objectNumber+" 0 R");ge(">>")}(),function(){if(Object.keys(tr).length>0){for(var M in ge("/Shading <<"),tr)tr.hasOwnProperty(M)&&tr[M]instanceof Fm&&tr[M].objectNumber>=0&&ge("/"+M+" "+tr[M].objectNumber+" 0 R");nr.publish("putShadingPatternDict"),ge(">>")}}(),function(M){if(Object.keys(tr).length>0){for(var U in ge("/Pattern <<"),tr)tr.hasOwnProperty(U)&&tr[U]instanceof b.TilingPattern&&tr[U].objectNumber>=0&&tr[U].objectNumber>")}}(M.objectOid),function(){if(Object.keys(ys).length>0){var M;for(M in ge("/ExtGState <<"),ys)ys.hasOwnProperty(M)&&ys[M].objectNumber>=0&&ge("/"+M+" "+ys[M].objectNumber+" 0 R");nr.publish("putGStateDict"),ge(">>")}}(),function(){for(var M in ge("/XObject <<"),Ko)Ko.hasOwnProperty(M)&&Ko[M].objectNumber>=0&&ge("/"+M+" "+Ko[M].objectNumber+" 0 R");nr.publish("putXobjectDict"),ge(">>")}(),ge(">>"),ge("endobj")},hC=function(M){Xr[M.fontName]=Xr[M.fontName]||{},Xr[M.fontName][M.fontStyle]=M.id},ub=function(M,U,de,De,Ve){var st={id:"F"+(Object.keys(Sr).length+1).toString(10),postScriptName:M,fontName:U,fontStyle:de,encoding:De,isStandardFont:Ve||!1,metadata:{}};return nr.publish("addFont",{font:st,instance:this}),Sr[st.id]=st,hC(st),st.id},cl=b.__private__.pdfEscape=b.pdfEscape=function(M,U){return function(M,U){var de,De,Ve,st,Mt,Jt,pn,Qn,pi;if(Ve=(U=U||{}).sourceEncoding||"Unicode",Mt=U.outputEncoding,(U.autoencode||Mt)&&Sr[Di].metadata&&Sr[Di].metadata[Ve]&&Sr[Di].metadata[Ve].encoding&&(st=Sr[Di].metadata[Ve].encoding,!Mt&&Sr[Di].encoding&&(Mt=Sr[Di].encoding),!Mt&&st.codePages&&(Mt=st.codePages[0]),"string"==typeof Mt&&(Mt=st[Mt]),Mt)){for(pn=!1,Jt=[],de=0,De=M.length;de>8&&(pn=!0);M=Jt.join("")}for(de=M.length;void 0===pn&&0!==de;)M.charCodeAt(de-1)>>8&&(pn=!0),de--;if(!pn)return M;for(Jt=U.noBOM?[]:[254,255],de=0,De=M.length;de>8)>>8)throw new Error("Character at position "+de+" of string '"+M+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Jt.push(pi),Jt.push(Qn-(pi<<8))}return String.fromCharCode.apply(void 0,Jt)}(M,U).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},cb=b.__private__.beginPage=function(M){St[++vs]=[],Kn[vs]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(M[0]),topRightY:Number(M[1])}},pC(vs),ot(St[ue])},fC=function(M,U){var de,De,Ve;switch(e=U||e,"string"==typeof M&&(de=N(M.toLowerCase()),Array.isArray(de)&&(De=de[0],Ve=de[1])),Array.isArray(M)&&(De=M[0]*Gt,Ve=M[1]*Gt),isNaN(De)&&(De=r[0],Ve=r[1]),(De>14400||Ve>14400)&&(Cr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),De=Math.min(14400,De),Ve=Math.min(14400,Ve)),r=[De,Ve],e.substr(0,1)){case"l":Ve>De&&(r=[Ve,De]);break;case"p":De>Ve&&(r=[Ve,De])}cb(r),bC(pb),ge(fc),0!==_b&&ge(_b+" J"),0!==gb&&ge(gb+" j"),nr.publish("addPage",{pageNumber:vs})},OL=function(M){M>0&&M<=vs&&(St.splice(M,1),Kn.splice(M,1),vs--,ue>vs&&(ue=vs),this.setPage(ue))},pC=function(M){M>0&&M<=vs&&(ue=M)},IL=b.__private__.getNumberOfPages=b.getNumberOfPages=function(){return St.length-1},mC=function(M,U,de){var De,Ve=void 0;return de=de||{},U=void 0!==U?U:Sr[Di].fontStyle,De=(M=void 0!==M?M:Sr[Di].fontName).toLowerCase(),void 0!==Xr[De]&&void 0!==Xr[De][U]?Ve=Xr[De][U]:void 0!==Xr[M]&&void 0!==Xr[M][U]?Ve=Xr[M][U]:!1===de.disableWarning&&Cr.warn("Unable to look up font label for font '"+M+"', '"+U+"'. Refer to getFontList() for available fonts."),Ve||de.noFallback||null==(Ve=Xr.times[U])&&(Ve=Xr.times.normal),Ve},PL=b.__private__.putInfo=function(){var M=uo(),U=function(De){return De};for(var de in null!==p&&(U=ya.encryptor(M,0)),ge("<<"),ge("/Producer ("+cl(U("jsPDF "+kn.version))+")"),Rn)Rn.hasOwnProperty(de)&&Rn[de]&&ge("/"+de.substr(0,1).toUpperCase()+de.substr(1)+" ("+cl(U(Rn[de]))+")");ge("/CreationDate ("+cl(U(et))+")"),ge(">>"),ge("endobj")},db=b.__private__.putCatalog=function(M){var U=(M=M||{}).rootDictionaryObjId||vh;switch(uo(),ge("<<"),ge("/Type /Catalog"),ge("/Pages "+U+" 0 R"),$t||($t="fullwidth"),$t){case"fullwidth":ge("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ge("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ge("/OpenAction [3 0 R /Fit]");break;case"original":ge("/OpenAction [3 0 R /XYZ null null 1]");break;default:var de=""+$t;"%"===de.substr(de.length-1)&&($t=parseInt($t)/100),"number"==typeof $t&&ge("/OpenAction [3 0 R /XYZ null null "+tt($t)+"]")}switch(mi||(mi="continuous"),mi){case"continuous":ge("/PageLayout /OneColumn");break;case"single":ge("/PageLayout /SinglePage");break;case"two":case"twoleft":ge("/PageLayout /TwoColumnLeft");break;case"tworight":ge("/PageLayout /TwoColumnRight")}Gn&&ge("/PageMode /"+Gn),nr.publish("putCatalog"),ge(">>"),ge("endobj")},NL=b.__private__.putTrailer=function(){ge("trailer"),ge("<<"),ge("/Size "+(Ye+1)),ge("/Root "+Ye+" 0 R"),ge("/Info "+(Ye-1)+" 0 R"),null!==p&&ge("/Encrypt "+ya.oid+" 0 R"),ge("/ID [ <"+Ce+"> <"+Ce+"> ]"),ge(">>")},FL=b.__private__.putHeader=function(){ge("%PDF-"+O),ge("%\xba\xdf\xac\xe0")},RL=b.__private__.putXRef=function(){var M="0000000000";ge("xref"),ge("0 "+(Ye+1)),ge("0000000000 65535 f ");for(var U=1;U<=Ye;U++)ge("function"==typeof Be[U]?(M+Be[U]()).slice(-10)+" 00000 n ":void 0!==Be[U]?(M+Be[U]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},bh=b.__private__.buildDocument=function(){Ye=0,$e=0,Ge=[],Be=[],kt=[],vh=Us(),uc=Us(),ot(Ge),nr.publish("buildDocument"),FL(),Wm(),function(){nr.publish("putAdditionalObjects");for(var M=0;M"),ge("/O <"+ya.toHexString(ya.O)+">"),ge("/P "+ya.P),ge(">>"),ge("endobj")),PL(),db();var M=$e;return RL(),NL(),ge("startxref"),ge(""+M),ge("%%EOF"),ot(St[ue]),Ge.join("\n")},x1=b.__private__.getBlob=function(M){return new Blob([on(M)],{type:"application/pdf"})},k1=b.output=b.__private__.output=((M=function(M,U){switch("string"==typeof(U=U||{})?U={filename:U}:U.filename=U.filename||"generated.pdf",M){case void 0:return bh();case"save":b.save(U.filename);break;case"arraybuffer":return on(bh());case"blob":return x1(bh());case"bloburi":case"bloburl":if(void 0!==Ln.URL&&"function"==typeof Ln.URL.createObjectURL)return Ln.URL&&Ln.URL.createObjectURL(x1(bh()))||void 0;Cr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var de="",De=bh();try{de=xA(De)}catch{de=xA(unescape(encodeURIComponent(De)))}return"data:application/pdf;filename="+U.filename+";base64,"+de;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(Ln)){var Ve="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",st=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';U.pdfObjectUrl&&(Ve=U.pdfObjectUrl,st="");var Mt='