diff --git a/docs/index.html b/docs/index.html index f46a699..e63f068 100644 --- a/docs/index.html +++ b/docs/index.html @@ -26,6 +26,6 @@ - + \ No newline at end of file diff --git a/docs/main.9fffc2bf5d3efd1e.js b/docs/main.631b8726c6a5f097.js similarity index 68% rename from docs/main.9fffc2bf5d3efd1e.js rename to docs/main.631b8726c6a5f097.js index b02d2cf..0d2c80a 100644 --- a/docs/main.9fffc2bf5d3efd1e.js +++ b/docs/main.631b8726c6a5f097.js @@ -1 +1 @@ -(self.webpackChunksct_implementation_demonstrator=self.webpackChunksct_implementation_demonstrator||[]).push([[179],{450:(kl,lm,lc)=>{"use strict";function Wt(t){return"function"==typeof t}function dc(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Dl=dc(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ia(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class yt{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:n}=this;if(Wt(n))try{n()}catch(o){i=o instanceof Dl?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{mu(o)}catch(a){i=i??[],a instanceof Dl?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Dl(i)}}add(i){var e;if(i&&i!==this)if(this.closed)mu(i);else{if(i instanceof yt){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(i)}}_hasParent(i){const{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){const{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&ia(e,i)}remove(i){const{_finalizers:e}=this;e&&ia(e,i),i instanceof yt&&i._removeParent(this)}}yt.EMPTY=(()=>{const t=new yt;return t.closed=!0,t})();const uc=yt.EMPTY;function jr(t){return t instanceof yt||t&&"closed"in t&&Wt(t.remove)&&Wt(t.add)&&Wt(t.unsubscribe)}function mu(t){Wt(t)?t():t.unsubscribe()}const co={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ei={setTimeout(t,i,...e){const{delegate:n}=ei;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=ei;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ci(t){ei.setTimeout(()=>{const{onUnhandledError:i}=co;if(!i)throw t;i(t)})}function pr(){}const Ti=Sl("C",void 0,void 0);function Sl(t,i,e){return{kind:t,value:i,error:e}}let Lo=null;function hc(t){if(co.useDeprecatedSynchronousErrorHandling){const i=!Lo;if(i&&(Lo={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=Lo;if(Lo=null,e)throw n}}else t()}class Na extends yt{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,jr(i)&&i.add(this)):this.destination=B3}static create(i,e,n){return new gu(i,e,n)}next(i){this.isStopped?P_(function R_(t){return Sl("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?P_(function gr(t){return Sl("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?P_(Ti,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const P3=Function.prototype.bind;function O_(t,i){return P3.call(t,i)}class L3{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){dm(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){dm(n)}else dm(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){dm(e)}}}class gu extends Na{constructor(i,e,n){let r;if(super(),Wt(i)||!i)r={next:i??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&co.useDeprecatedNextContext?(o=Object.create(i),o.unsubscribe=()=>this.unsubscribe(),r={next:i.next&&O_(i.next,o),error:i.error&&O_(i.error,o),complete:i.complete&&O_(i.complete,o)}):r=i}this.destination=new L3(r)}}function dm(t){co.useDeprecatedSynchronousErrorHandling?function pu(t){co.useDeprecatedSynchronousErrorHandling&&Lo&&(Lo.errorThrown=!0,Lo.error=t)}(t):ci(t)}function P_(t,i){const{onStoppedNotification:e}=co;e&&ei.setTimeout(()=>e(t,i))}const B3={closed:!0,next:pr,error:function N3(t){throw t},complete:pr},L_="function"==typeof Symbol&&Symbol.observable||"@@observable";function Cs(t){return t}function jC(t){return 0===t.length?Cs:1===t.length?t[0]:function(e){return t.reduce((n,r)=>r(n),e)}}let ni=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,r){const o=function U3(t){return t&&t instanceof Na||function H3(t){return t&&Wt(t.next)&&Wt(t.error)&&Wt(t.complete)}(t)&&jr(t)}(e)?e:new gu(e,n,r);return hc(()=>{const{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=WC(n))((r,o)=>{const a=new gu({next:s=>{try{e(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[L_](){return this}pipe(...e){return jC(e)(this)}toPromise(e){return new(e=WC(e))((n,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>n(o))})}}return t.create=i=>new t(i),t})();function WC(t){var i;return null!==(i=t??co.Promise)&&void 0!==i?i:Promise}const z3=dc(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ke=(()=>{class t extends ni{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new GC(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new z3}next(e){hc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){hc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){hc(()=>{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:n,isStopped:r,observers:o}=this;return n||r?uc:(this.currentObservers=null,o.push(e),new yt(()=>{this.currentObservers=null,ia(o,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete()}asObservable(){const e=new ni;return e.source=this,e}}return t.create=(i,e)=>new GC(i,e),t})();class GC extends ke{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,i)}error(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,i)}complete(){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===e||e.call(i)}_subscribe(i){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(i))&&void 0!==n?n:uc}}function qC(t){return Wt(t?.lift)}function Gi(t){return i=>{if(qC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Bi(t,i,e,n,r){return new $3(t,i,e,n,r)}class $3 extends Na{constructor(i,e,n,r,o,a){super(i),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){i.error(c)}}:super._next,this._error=r?function(s){try{r(s)}catch(c){i.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function Ke(t,i){return Gi((e,n)=>{let r=0;e.subscribe(Bi(n,o=>{n.next(t.call(i,o,r++))}))})}function fc(t){return this instanceof fc?(this.v=t,this):new fc(t)}function q3(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=function YC(t){var i="function"==typeof Symbol&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(a){return new Promise(function(s,c){!function r(o,a,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},a)}(s,c,(a=t[o](a)).done,a.value)})}}}const B_=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function KC(t){return Wt(t?.then)}function ZC(t){return Wt(t[L_])}function JC(t){return Symbol.asyncIterator&&Wt(t?.[Symbol.asyncIterator])}function ek(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 tk=function Q3(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function ik(t){return Wt(t?.[tk])}function nk(t){return function G3(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=e.apply(t,i||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(h){n[h]&&(r[h]=function(f){return new Promise(function(m,g){o.push([h,f,m,g])>1||s(h,f)})})}function s(h,f){try{!function c(h){h.value instanceof fc?Promise.resolve(h.value.v).then(l,d):u(o[0][2],h)}(n[h](f))}catch(m){u(o[0][3],m)}}function l(h){s("next",h)}function d(h){s("throw",h)}function u(h,f){h(f),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:r}=yield fc(e.read());if(r)return yield fc(void 0);yield yield fc(n)}}finally{e.releaseLock()}})}function rk(t){return Wt(t?.getReader)}function Yn(t){if(t instanceof ni)return t;if(null!=t){if(ZC(t))return function Y3(t){return new ni(i=>{const e=t[L_]();if(Wt(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(B_(t))return function K3(t){return new ni(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,ci)})}(t);if(JC(t))return ok(t);if(ik(t))return function J3(t){return new ni(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(rk(t))return function e8(t){return ok(nk(t))}(t)}throw ek(t)}function ok(t){return new ni(i=>{(function t8(t,i){var e,n,r,o;return function j3(t,i,e,n){return new(e||(e=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):function r(o){return o instanceof e?o:new e(function(a){a(o)})}(d.value).then(s,c)}l((n=n.apply(t,i||[])).next())})}(this,void 0,void 0,function*(){try{for(e=q3(t);!(n=yield e.next()).done;)if(i.next(n.value),i.closed)return}catch(a){r={error:a}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}i.complete()})})(t,i).catch(e=>i.error(e))})}function Ba(t,i,e,n=0,r=!1){const o=i.schedule(function(){e(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!r)return o}function En(t,i,e=1/0){return Wt(i)?En((n,r)=>Ke((o,a)=>i(n,o,r,a))(Yn(t(n,r))),e):("number"==typeof i&&(e=i),Gi((n,r)=>function i8(t,i,e,n,r,o,a,s){const c=[];let l=0,d=0,u=!1;const h=()=>{u&&!c.length&&!l&&i.complete()},f=g=>l{o&&i.next(g),l++;let p=!1;Yn(e(g,d++)).subscribe(Bi(i,_=>{r?.(_),o?f(_):i.next(_)},()=>{p=!0},void 0,()=>{if(p)try{for(l--;c.length&&lm(_)):m(_)}h()}catch(_){i.error(_)}}))};return t.subscribe(Bi(i,f,()=>{u=!0,h()})),()=>{s?.()}}(n,r,t,e)))}function El(t=1/0){return En(Cs,t)}const Wr=new ni(t=>t.complete());function ak(t){return t&&Wt(t.schedule)}function V_(t){return t[t.length-1]}function sk(t){return Wt(V_(t))?t.pop():void 0}function _u(t){return ak(V_(t))?t.pop():void 0}function ck(t,i=0){return Gi((e,n)=>{e.subscribe(Bi(n,r=>Ba(n,t,()=>n.next(r),i),()=>Ba(n,t,()=>n.complete(),i),r=>Ba(n,t,()=>n.error(r),i)))})}function lk(t,i=0){return Gi((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function dk(t,i){if(!t)throw new Error("Iterable cannot be null");return new ni(e=>{Ba(e,i,()=>{const n=t[Symbol.asyncIterator]();Ba(e,i,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Ji(t,i){return i?function d8(t,i){if(null!=t){if(ZC(t))return function o8(t,i){return Yn(t).pipe(lk(i),ck(i))}(t,i);if(B_(t))return function s8(t,i){return new ni(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(KC(t))return function a8(t,i){return Yn(t).pipe(lk(i),ck(i))}(t,i);if(JC(t))return dk(t,i);if(ik(t))return function c8(t,i){return new ni(e=>{let n;return Ba(e,i,()=>{n=t[tk](),Ba(e,i,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(a){return void e.error(a)}o?e.complete():e.next(r)},0,!0)}),()=>Wt(n?.return)&&n.return()})}(t,i);if(rk(t))return function l8(t,i){return dk(nk(t),i)}(t,i)}throw ek(t)}(t,i):Yn(t)}function Vi(...t){const i=_u(t),e=function r8(t,i){return"number"==typeof V_(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?Yn(n[0]):El(e)(Ji(n,i)):Wr}function uk(t={}){const{connector:i=(()=>new ke),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,c,l=0,d=!1,u=!1;const h=()=>{s?.unsubscribe(),s=void 0},f=()=>{h(),a=c=void 0,d=u=!1},m=()=>{const g=a;f(),g?.unsubscribe()};return Gi((g,p)=>{l++,!u&&!d&&h();const _=c=c??i();p.add(()=>{l--,0===l&&!u&&!d&&(s=H_(m,r))}),_.subscribe(p),!a&&l>0&&(a=new gu({next:w=>_.next(w),error:w=>{u=!0,h(),s=H_(f,e,w),_.error(w)},complete:()=>{d=!0,h(),s=H_(f,n),_.complete()}}),Yn(g).subscribe(a))})(o)}}function H_(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new gu({next:()=>{n.unsubscribe(),t()}});return Yn(i(...e)).subscribe(n)}function Mi(t){for(let i in t)if(t[i]===Mi)return i;throw Error("Could not find renamed property on target object.")}function U_(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function Pi(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Pi).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function z_(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const u8=Mi({__forward_ref__:Mi});function Xt(t){return t.__forward_ref__=Xt,t.toString=function(){return Pi(this())},t}function pt(t){return $_(t)?t():t}function $_(t){return"function"==typeof t&&t.hasOwnProperty(u8)&&t.__forward_ref__===Xt}function j_(t){return t&&!!t.\u0275providers}const um="https://g.co/ng/security#xss";class ue extends Error{constructor(i,e){super(hm(i,e)),this.code=i}}function hm(t,i){return`NG0${Math.abs(t)}${i?": "+i.trim():""}`}function wt(t){return"string"==typeof t?t:null==t?"":String(t)}function fm(t,i){throw new ue(-201,!1)}function lo(t,i){null==t&&function pi(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function ve(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function at(t){return{providers:t.providers||[],imports:t.imports||[]}}function mm(t){return hk(t,pm)||hk(t,mk)}function hk(t,i){return t.hasOwnProperty(i)?t[i]:null}function fk(t){return t&&(t.hasOwnProperty(W_)||t.hasOwnProperty(v8))?t[W_]:null}const pm=Mi({\u0275prov:Mi}),W_=Mi({\u0275inj:Mi}),mk=Mi({ngInjectableDef:Mi}),v8=Mi({ngInjectorDef:Mi});var gt=(()=>((gt=gt||{})[gt.Default=0]="Default",gt[gt.Host=1]="Host",gt[gt.Self=2]="Self",gt[gt.SkipSelf=4]="SkipSelf",gt[gt.Optional=8]="Optional",gt))();let G_;function uo(t){const i=G_;return G_=t,i}function pk(t,i,e){const n=mm(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e>.Optional?null:void 0!==i?i:void fm(Pi(t))}const Hi=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),bu={},q_="__NG_DI_FLAG__",gm="ngTempTokenPath",y8="ngTokenPath",w8=/\n/gm,C8="\u0275",gk="__source";let vu;function Tl(t){const i=vu;return vu=t,i}function k8(t,i=gt.Default){if(void 0===vu)throw new ue(-203,!1);return null===vu?pk(t,void 0,i):vu.get(t,i>.Optional?null:void 0,i)}function G(t,i=gt.Default){return(function x8(){return G_}()||k8)(pt(t),i)}function ht(t,i=gt.Default){return G(t,_m(i))}function _m(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function X_(t){const i=[];for(let e=0;e((na=na||{})[na.OnPush=0]="OnPush",na[na.Default=1]="Default",na))(),No=(()=>{return(t=No||(No={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",No;var t})();const Ha={},li=[],bm=Mi({\u0275cmp:Mi}),Q_=Mi({\u0275dir:Mi}),Y_=Mi({\u0275pipe:Mi}),bk=Mi({\u0275mod:Mi}),Ua=Mi({\u0275fac:Mi}),yu=Mi({__NG_ELEMENT_ID__:Mi});let T8=0;function Ve(t){return Va(()=>{const i=xk(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===na.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||No.Emulated,id:"c"+T8++,styles:t.styles||li,_:null,schemas:t.schemas||null,tView:null};yk(e);const n=t.dependencies;return e.directiveDefs=vm(n,!1),e.pipeDefs=vm(n,!0),e})}function A8(t){return gi(t)||Kn(t)}function I8(t){return null!==t}function ct(t){return Va(()=>({type:t.type,bootstrap:t.bootstrap||li,declarations:t.declarations||li,imports:t.imports||li,exports:t.exports||li,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function vk(t,i){if(null==t)return Ha;const e={};for(const n in t)if(t.hasOwnProperty(n)){let r=t[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=n,i&&(i[r]=o)}return e}function Q(t){return Va(()=>{const i=xk(t);return yk(i),i})}function Mr(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 gi(t){return t[bm]||null}function Kn(t){return t[Q_]||null}function Ar(t){return t[Y_]||null}function qr(t,i){const e=t[bk]||null;if(!e&&!0===i)throw new Error(`Type ${Pi(t)} does not have '\u0275mod' property.`);return e}function xk(t){const i={};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:i,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||li,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:vk(t.inputs,i),outputs:vk(t.outputs)}}function yk(t){t.features?.forEach(i=>i(t))}function vm(t,i){if(!t)return null;const e=i?Ar:A8;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(I8)}const za=0,Ge=1,At=2,Yi=3,Bo=4,mc=5,Zn=6,Al=7,en=8,xm=9,ym=10,Lt=11,K_=12,wu=13,wk=14,Il=15,Jn=16,Cu=17,Fl=18,ra=19,ku=20,Ck=21,Ui=22,Z_=1,kk=2,wm=7,Cm=8,Rl=9,_r=10;function Xr(t){return Array.isArray(t)&&"object"==typeof t[Z_]}function Vo(t){return Array.isArray(t)&&!0===t[Z_]}function J_(t){return 0!=(4&t.flags)}function Du(t){return t.componentOffset>-1}function km(t){return 1==(1&t.flags)}function Ho(t){return!!t.template}function R8(t){return 0!=(256&t[At])}function pc(t,i){return t.hasOwnProperty(Ua)?t[Ua]:null}class L8{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ei(){return Ek}function Ek(t){return t.type.prototype.ngOnChanges&&(t.setInput=B8),N8}function N8(){const t=Mk(this),i=t?.current;if(i){const e=t.previous;if(e===Ha)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function B8(t,i,e,n){const r=this.declaredInputs[e],o=Mk(t)||function V8(t,i){return t[Tk]=i}(t,{previous:Ha,current:null}),a=o.current||(o.current={}),s=o.previous,c=s[r];a[r]=new L8(c&&c.currentValue,i,s===Ha),t[n]=i}Ei.ngInherit=!0;const Tk="__ngSimpleChanges__";function Mk(t){return t[Tk]||null}const ho=function(t,i,e){},Ak="svg";function Wn(t){for(;Array.isArray(t);)t=t[za];return t}function Dm(t,i){return Wn(i[t])}function Qr(t,i){return Wn(i[t.index])}function Fk(t,i){return t.data[i]}function Ol(t,i){return t[i]}function Ir(t,i){const e=i[t];return Xr(e)?e:e[za]}function Sm(t){return 64==(64&t[At])}function Ds(t,i){return null==i?null:t[i]}function Rk(t){t[Fl]=0}function tb(t,i){t[mc]+=i;let e=t,n=t[Yi];for(;null!==n&&(1===i&&1===e[mc]||-1===i&&0===e[mc]);)n[mc]+=i,e=n,n=n[Yi]}const Ct={lFrame:$k(null),bindingsEnabled:!0};function Pk(){return Ct.bindingsEnabled}function ge(){return Ct.lFrame.lView}function ti(){return Ct.lFrame.tView}function Me(t){return Ct.lFrame.contextLView=t,t[en]}function Ae(t){return Ct.lFrame.contextLView=null,t}function Gn(){let t=Lk();for(;null!==t&&64===t.type;)t=t.parent;return t}function Lk(){return Ct.lFrame.currentTNode}function oa(t,i){const e=Ct.lFrame;e.currentTNode=t,e.isParent=i}function ib(){return Ct.lFrame.isParent}function nb(){Ct.lFrame.isParent=!1}function br(){const t=Ct.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Pl(){return Ct.lFrame.bindingIndex++}function ja(t){const i=Ct.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function Z8(t,i){const e=Ct.lFrame;e.bindingIndex=e.bindingRootIndex=t,rb(i)}function rb(t){Ct.lFrame.currentDirectiveIndex=t}function ob(t){const i=Ct.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}function Hk(){return Ct.lFrame.currentQueryIndex}function ab(t){Ct.lFrame.currentQueryIndex=t}function eB(t){const i=t[Ge];return 2===i.type?i.declTNode:1===i.type?t[Zn]:null}function Uk(t,i,e){if(e>.SkipSelf){let r=i,o=t;for(;!(r=r.parent,null!==r||e>.Host||(r=eB(o),null===r||(o=o[Il],10&r.type))););if(null===r)return!1;i=r,t=o}const n=Ct.lFrame=zk();return n.currentTNode=i,n.lView=t,!0}function sb(t){const i=zk(),e=t[Ge];Ct.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function zk(){const t=Ct.lFrame,i=null===t?null:t.child;return null===i?$k(t):i}function $k(t){const i={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=i),i}function jk(){const t=Ct.lFrame;return Ct.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Wk=jk;function cb(){const t=jk();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 vr(){return Ct.lFrame.selectedIndex}function gc(t){Ct.lFrame.selectedIndex=t}function qi(){const t=Ct.lFrame;return Fk(t.tView,t.selectedIndex)}function Wa(){Ct.lFrame.currentNamespace=Ak}function Ll(){!function rB(){Ct.lFrame.currentNamespace=null}()}function Em(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[c]<0&&(t[Fl]+=65536),(s>11>16&&(3&t[At])===i){t[At]+=2048,ho(4,s,o);try{o.call(s)}finally{ho(5,s,o)}}}else{ho(4,s,o);try{o.call(s)}finally{ho(5,s,o)}}}const Nl=-1;class Eu{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function ub(t,i,e){let n=0;for(;ni){a=o-1;break}}}for(;o>16}(t),n=i;for(;e>0;)n=n[Il],e--;return n}let hb=!0;function Fm(t){const i=hb;return hb=t,i}const Kk=255,Zk=5;let hB=0;const aa={};function Rm(t,i){const e=Jk(t,i);if(-1!==e)return e;const n=i[Ge];n.firstCreatePass&&(t.injectorIndex=i.length,fb(n.data,t),fb(i,null),fb(n.blueprint,null));const r=mb(t,i),o=t.injectorIndex;if(Yk(r)){const a=Am(r),s=Im(r,i),c=s[Ge].data;for(let l=0;l<8;l++)i[o+l]=s[a+l]|c[a+l]}return i[o+8]=r,o}function fb(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Jk(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function mb(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,r=i;for(;null!==r;){if(n=aD(r),null===n)return Nl;if(e++,r=r[Il],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return Nl}function pb(t,i,e){!function fB(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(yu)&&(n=e[yu]),null==n&&(n=e[yu]=hB++);const r=n&Kk;i.data[t+(r>>Zk)]|=1<=0?i&Kk:_B:i}(e);if("function"==typeof o){if(!Uk(i,t,n))return n>.Host?eD(r,0,n):tD(i,e,n,r);try{const a=o(n);if(null!=a||n>.Optional)return a;fm()}finally{Wk()}}else if("number"==typeof o){let a=null,s=Jk(t,i),c=Nl,l=n>.Host?i[Jn][Zn]:null;for((-1===s||n>.SkipSelf)&&(c=-1===s?mb(t,i):i[s+8],c!==Nl&&oD(n,!1)?(a=i[Ge],s=Am(c),i=Im(c,i)):s=-1);-1!==s;){const d=i[Ge];if(rD(o,s,d.data)){const u=pB(s,i,e,a,n,l);if(u!==aa)return u}c=i[s+8],c!==Nl&&oD(n,i[Ge].data[s+8]===l)&&rD(o,s,i)?(a=d,s=Am(c),i=Im(c,i)):s=-1}}return r}function pB(t,i,e,n,r,o){const a=i[Ge],s=a.data[t+8],d=Om(s,a,e,null==n?Du(s)&&hb:n!=a&&0!=(3&s.type),r>.Host&&o===s);return null!==d?_c(i,a,d,s):aa}function Om(t,i,e,n,r){const o=t.providerIndexes,a=i.data,s=1048575&o,c=t.directiveStart,d=o>>20,h=r?s+d:t.directiveEnd;for(let f=n?s:s+d;f=c&&m.type===e)return f}if(r){const f=a[c];if(f&&Ho(f)&&f.type===e)return c}return null}function _c(t,i,e,n){let r=t[e];const o=i.data;if(function cB(t){return t instanceof Eu}(r)){const a=r;a.resolving&&function h8(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new ue(-200,`Circular dependency in DI detected for ${t}${e}`)}(function mi(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():wt(t)}(o[e]));const s=Fm(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?uo(a.injectImpl):null;Uk(t,n,gt.Default);try{r=t[e]=a.factory(void 0,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&function aB(t,i,e){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=i.type.prototype;if(n){const a=Ek(i);(e.preOrderHooks??(e.preOrderHooks=[])).push(t,a),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,a)}r&&(e.preOrderHooks??(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks??(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],i)}finally{null!==c&&uo(c),Fm(s),a.resolving=!1,Wk()}}return r}function rD(t,i,e){return!!(e[i+(t>>Zk)]&1<{const i=t.prototype.constructor,e=i[Ua]||gb(i),n=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){const o=r[Ua]||gb(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function gb(t){return $_(t)?()=>{const i=gb(pt(t));return i&&i()}:pc(t)}function aD(t){const i=t[Ge],e=i.type;return 2===e?i.declTNode:1===e?t[Zn]:null}function fo(t){return function mB(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const e=t.attrs;if(e){const n=e.length;let r=0;for(;r{const n=function _b(t){return function(...e){if(t){const n=t(...e);for(const r in n)this[r]=n[r]}}}(i);function r(...o){if(this instanceof r)return n.apply(this,o),this;const a=new r(...o);return s.annotation=a,s;function s(c,l,d){const u=c.hasOwnProperty(Hl)?c[Hl]:Object.defineProperty(c,Hl,{value:[]})[Hl];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(a),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class ae{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ve({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function bc(t,i){t.forEach(e=>Array.isArray(e)?bc(e,i):i(e))}function cD(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Pm(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function Iu(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function wB(t,i,e,n){let r=t.length;if(r==i)t.push(e,n);else if(1===r)t.push(n,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>i;)t[r]=t[r-2],r--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function vb(t,i){const e=$l(t,i);if(e>=0)return t[1|e]}function $l(t,i){return function lD(t,i,e){let n=0,r=t.length>>e;for(;r!==n;){const o=n+(r-n>>1),a=t[o<i?r=o:n=o+1}return~(r<({token:t})),-1),sa=xu(zl("Optional"),8),vc=xu(zl("SkipSelf"),4);var Fr=(()=>((Fr=Fr||{})[Fr.Important=1]="Important",Fr[Fr.DashCase=2]="DashCase",Fr))();const kb=new Map;let jB=0;const Sb="__ngContext__";function er(t,i){Xr(i)?(t[Sb]=i[ku],function GB(t){kb.set(t[ku],t)}(i)):t[Sb]=i}let Eb;function Tb(t,i){return Eb(t,i)}function Pu(t){const i=t[Yi];return Vo(i)?i[Yi]:i}function Mb(t){return MD(t[wu])}function Ab(t){return MD(t[Bo])}function MD(t){for(;null!==t&&!Vo(t);)t=t[Bo];return t}function Wl(t,i,e,n,r){if(null!=n){let o,a=!1;Vo(n)?o=n:Xr(n)&&(a=!0,n=n[za]);const s=Wn(n);0===t&&null!==e?null==r?PD(i,e,s):xc(i,e,s,r||null,!0):1===t&&null!==e?xc(i,e,s,r||null,!0):2===t?function Nb(t,i,e){const n=Hm(t,i);n&&function f5(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,s,a):3===t&&i.destroyNode(s),null!=o&&function g5(t,i,e,n,r){const o=e[wm];o!==Wn(e)&&Wl(i,t,n,o,r);for(let s=_r;s0&&(t[e-1][Bo]=n[Bo]);const o=Pm(t,_r+i);!function o5(t,i){Lu(t,i,i[Lt],2,null,null),i[za]=null,i[Zn]=null}(n[Ge],n);const a=o[ra];null!==a&&a.detachView(o[Ge]),n[Yi]=null,n[Bo]=null,n[At]&=-65}return n}function FD(t,i){if(!(128&i[At])){const e=i[Lt];e.destroyNode&&Lu(t,i,e,3,null,null),function c5(t){let i=t[wu];if(!i)return Ob(t[Ge],t);for(;i;){let e=null;if(Xr(i))e=i[wu];else{const n=i[_r];n&&(e=n)}if(!e){for(;i&&!i[Bo]&&i!==t;)Xr(i)&&Ob(i[Ge],i),i=i[Yi];null===i&&(i=t),Xr(i)&&Ob(i[Ge],i),e=i&&i[Bo]}i=e}}(i)}}function Ob(t,i){if(!(128&i[At])){i[At]&=-65,i[At]|=128,function h5(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[r=a]():n[r=-a].unsubscribe(),o+=2}else{const a=n[r=e[o+1]];e[o].call(a)}if(null!==n){for(let o=r+1;o-1){const{encapsulation:o}=t.data[n.directiveStart+r];if(o===No.None||o===No.Emulated)return null}return Qr(n,e)}}(t,i.parent,e)}function xc(t,i,e,n,r){t.insertBefore(i,e,n,r)}function PD(t,i,e){t.appendChild(i,e)}function LD(t,i,e,n,r){null!==n?xc(t,i,e,n,r):PD(t,i,e)}function Hm(t,i){return t.parentNode(i)}function ND(t,i,e){return VD(t,i,e)}let Pb,$m,Hb,jm,VD=function BD(t,i,e){return 40&t.type?Qr(t,e):null};function Um(t,i,e,n){const r=RD(t,n,i),o=i[Lt],s=ND(n.parent||i[Zn],n,i);if(null!=r)if(Array.isArray(e))for(let c=0;ct,createScript:t=>t,createScriptURL:t=>t})}catch{}return $m}()?.createHTML(t)||t}function GD(t){return function Ub(){if(void 0===jm&&(jm=null,Hi.trustedTypes))try{jm=Hi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return jm}()?.createHTML(t)||t}class yc{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${um})`}}class C5 extends yc{getTypeName(){return"HTML"}}class k5 extends yc{getTypeName(){return"Style"}}class D5 extends yc{getTypeName(){return"Script"}}class S5 extends yc{getTypeName(){return"URL"}}class E5 extends yc{getTypeName(){return"ResourceURL"}}function Kr(t){return t instanceof yc?t.changingThisBreaksApplicationSecurity:t}function ca(t,i){const e=function T5(t){return t instanceof yc&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${um})`)}return e===i}class O5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString(Gl(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class P5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=Gl(i),e}}const N5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wm(t){return(t=String(t)).match(N5)?t:"unsafe:"+t}function Ga(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Nu(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const YD=Ga("area,br,col,hr,img,wbr"),KD=Ga("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ZD=Ga("rp,rt"),zb=Nu(YD,Nu(KD,Ga("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")),Nu(ZD,Ga("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")),Nu(ZD,KD)),$b=Ga("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),JD=Nu($b,Ga("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"),Ga("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")),B5=Ga("script,style,template");class V5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&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(i){const e=i.nodeName.toLowerCase();if(!zb.hasOwnProperty(e))return this.sanitizedSomething=!0,!B5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let r=0;r"),!0}endElement(i){const e=i.nodeName.toLowerCase();zb.hasOwnProperty(e)&&!YD.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(eS(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const H5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,U5=/([^\#-~ |!])/g;function eS(t){return t.replace(/&/g,"&").replace(H5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(U5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let Gm;function tS(t,i){let e=null;try{Gm=Gm||function QD(t){const i=new P5(t);return function L5(){try{return!!(new window.DOMParser).parseFromString(Gl(""),"text/html")}catch{return!1}}()?new O5(i):i}(t);let n=i?String(i):"";e=Gm.getInertBodyElement(n);let r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=e.innerHTML,e=Gm.getInertBodyElement(n)}while(n!==o);return Gl((new V5).sanitizeChildren(jb(e)||e))}finally{if(e){const n=jb(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function jb(t){return"content"in t&&function z5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var di=(()=>((di=di||{})[di.NONE=0]="NONE",di[di.HTML=1]="HTML",di[di.STYLE=2]="STYLE",di[di.SCRIPT=3]="SCRIPT",di[di.URL=4]="URL",di[di.RESOURCE_URL=5]="RESOURCE_URL",di))();function qm(t){const i=Bu();return i?GD(i.sanitize(di.HTML,t)||""):ca(t,"HTML")?GD(Kr(t)):tS(function WD(){return void 0!==Hb?Hb:typeof document<"u"?document:void 0}(),wt(t))}function Wb(t){const i=Bu();return i?i.sanitize(di.URL,t)||"":ca(t,"URL")?Kr(t):Wm(wt(t))}function Bu(){const t=ge();return t&&t[K_]}const Xm=new ae("ENVIRONMENT_INITIALIZER"),rS=new ae("INJECTOR",-1),oS=new ae("INJECTOR_DEF_TYPES");class aS{get(i,e=bu){if(e===bu){const n=new Error(`NullInjectorError: No provider for ${Pi(i)}!`);throw n.name="NullInjectorError",n}return e}}function Q5(...t){return{\u0275providers:sS(0,t),\u0275fromNgModule:!0}}function sS(t,...i){const e=[],n=new Set;let r;return bc(i,o=>{const a=o;Gb(a,e,[],n)&&(r||(r=[]),r.push(a))}),void 0!==r&&cS(r,e),e}function cS(t,i){for(let e=0;e{i.push(o)})}}function Gb(t,i,e,n){if(!(t=pt(t)))return!1;let r=null,o=fk(t);const a=!o&&gi(t);if(o||a){if(a&&!a.standalone)return!1;r=t}else{const c=t.ngModule;if(o=fk(c),!o)return!1;r=c}const s=n.has(r);if(a){if(s)return!1;if(n.add(r),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const l of c)Gb(l,i,e,n)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let l;n.add(r);try{bc(o.imports,d=>{Gb(d,i,e,n)&&(l||(l=[]),l.push(d))})}finally{}void 0!==l&&cS(l,i)}if(!s){const l=pc(r)||(()=>new r);i.push({provide:r,useFactory:l,deps:li},{provide:oS,useValue:r,multi:!0},{provide:Xm,useValue:()=>G(r),multi:!0})}const c=o.providers;null==c||s||qb(c,d=>{i.push(d)})}}return r!==t&&void 0!==t.providers}function qb(t,i){for(let e of t)j_(e)&&(e=e.\u0275providers),Array.isArray(e)?qb(e,i):i(e)}const Y5=Mi({provide:String,useValue:Mi});function Xb(t){return null!==t&&"object"==typeof t&&Y5 in t}function wc(t){return"function"==typeof t}const Qb=new ae("Set Injector scope."),Qm={},Z5={};let Yb;function Ym(){return void 0===Yb&&(Yb=new aS),Yb}class la{}class uS extends la{get destroyed(){return this._destroyed}constructor(i,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Zb(i,a=>this.processProvider(a)),this.records.set(rS,ql(void 0,this)),r.has("environment")&&this.records.set(la,ql(void 0,this));const o=this.records.get(Qb);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(oS.multi,li,gt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();for(const i of this._onDestroyHooks)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(i){this._onDestroyHooks.push(i)}runInContext(i){this.assertNotDestroyed();const e=Tl(this),n=uo(void 0);try{return i()}finally{Tl(e),uo(n)}}get(i,e=bu,n=gt.Default){this.assertNotDestroyed(),n=_m(n);const r=Tl(this),o=uo(void 0);try{if(!(n>.SkipSelf)){let s=this.records.get(i);if(void 0===s){const c=function n6(t){return"function"==typeof t||"object"==typeof t&&t instanceof ae}(i)&&mm(i);s=c&&this.injectableDefInScope(c)?ql(Kb(i),Qm):null,this.records.set(i,s)}if(null!=s)return this.hydrate(i,s)}return(n>.Self?Ym():this.parent).get(i,e=n>.Optional&&e===bu?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[gm]=a[gm]||[]).unshift(Pi(i)),r)throw a;return function S8(t,i,e,n){const r=t[gm];throw i[gk]&&r.unshift(i[gk]),t.message=function E8(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==C8?t.slice(2):t;let r=Pi(i);if(Array.isArray(i))r=i.map(Pi).join(" -> ");else if("object"==typeof i){let o=[];for(let a in i)if(i.hasOwnProperty(a)){let s=i[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Pi(s)))}r=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(w8,"\n ")}`}("\n"+t.message,r,e,n),t[y8]=r,t[gm]=null,t}(a,i,"R3InjectorError",this.source)}throw a}finally{uo(o),Tl(r)}}resolveInjectorInitializers(){const i=Tl(this),e=uo(void 0);try{const n=this.get(Xm.multi,li,gt.Self);for(const r of n)r()}finally{Tl(i),uo(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(Pi(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ue(205,!1)}processProvider(i){let e=wc(i=pt(i))?i:pt(i&&i.provide);const n=function e6(t){return Xb(t)?ql(void 0,t.useValue):ql(hS(t),Qm)}(i);if(wc(i)||!0!==i.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=ql(void 0,Qm,!0),r.factory=()=>X_(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===Qm&&(e.value=Z5,e.value=e.factory()),"object"==typeof e.value&&e.value&&function i6(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=pt(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Kb(t){const i=mm(t),e=null!==i?i.factory:pc(t);if(null!==e)return e;if(t instanceof ae)throw new ue(204,!1);if(t instanceof Function)return function J5(t){const i=t.length;if(i>0)throw Iu(i,"?"),new ue(204,!1);const e=function b8(t){return t&&(t[pm]||t[mk])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new ue(204,!1)}function hS(t,i,e){let n;if(wc(t)){const r=pt(t);return pc(r)||Kb(r)}if(Xb(t))n=()=>pt(t.useValue);else if(function dS(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...X_(t.deps||[]));else if(function lS(t){return!(!t||!t.useExisting)}(t))n=()=>G(pt(t.useExisting));else{const r=pt(t&&(t.useClass||t.provide));if(!function t6(t){return!!t.deps}(t))return pc(r)||Kb(r);n=()=>new r(...X_(t.deps))}return n}function ql(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Zb(t,i){for(const e of t)Array.isArray(e)?Zb(e,i):e&&j_(e)?Zb(e.\u0275providers,i):i(e)}class r6{}class fS{}class a6{resolveComponentFactory(i){throw function o6(t){const i=Error(`No component factory found for ${Pi(t)}. Did you add it to @NgModule.entryComponents?`);return i.ngComponent=t,i}(i)}}let Ss=(()=>{class t{}return t.NULL=new a6,t})();function s6(){return Xl(Gn(),ge())}function Xl(t,i){return new Fe(Qr(t,i))}let Fe=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=s6,t})();function c6(t){return t instanceof Fe?t.nativeElement:t}class Vu{}let qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function l6(){const t=ge(),e=Ir(Gn().index,t);return(Xr(e)?e:t)[Lt]}(),t})(),d6=(()=>{class t{}return t.\u0275prov=ve({token:t,providedIn:"root",factory:()=>null}),t})();class Cc{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const u6=new Cc("15.2.8"),Jb={},ev="ngOriginalError";function tv(t){return t[ev]}class Xa{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&tv(i);for(;e&&tv(e);)e=tv(e);return e||null}}function Qa(t){return t instanceof Function?t():t}function gS(t,i,e){let n=t.length;for(;;){const r=t.indexOf(i,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=i.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}e=r+1}}const _S="ng-template";function w6(t,i,e){let n=0,r=!0;for(;no?"":r[u+1].toLowerCase();const f=8&n?h:null;if(f&&-1!==gS(f,l,0)||2&n&&l!==h){if(Uo(n))return!1;a=!0}}}}else{if(!a&&!Uo(n)&&!Uo(c))return!1;if(a&&Uo(c))continue;a=!1,n=c|1&n}}return Uo(n)||a}function Uo(t){return 0==(1&t)}function D6(t,i,e,n){if(null===i)return-1;let r=0;if(n||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""!==r&&!Uo(a)&&(i+=xS(o,r),r=""),n=a,o=o||!Uo(n);e++}return""!==r&&(i+=xS(o,r)),i}const kt={};function k(t){yS(ti(),ge(),vr()+t,!1)}function yS(t,i,e,n){if(!n)if(3==(3&i[At])){const o=t.preOrderCheckHooks;null!==o&&Tm(i,o,e)}else{const o=t.preOrderHooks;null!==o&&Mm(i,o,0,e)}gc(e)}function DS(t,i=null,e=null,n){const r=SS(t,i,e,n);return r.resolveInjectorInitializers(),r}function SS(t,i=null,e=null,n,r=new Set){const o=[e||li,Q5(t)];return n=n||("object"==typeof t?void 0:Pi(t)),new uS(o,i||Ym(),n||null,r)}let tn=(()=>{class t{static create(e,n){if(Array.isArray(e))return DS({name:""},n,e,"");{const r=e.name??"";return DS({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=bu,t.NULL=new aS,t.\u0275prov=ve({token:t,providedIn:"any",factory:()=>G(rS)}),t.__NG_ELEMENT_ID__=-1,t})();function b(t,i=gt.Default){const e=ge();return null===e?G(t,i):iD(Gn(),e,pt(t),i)}function da(){throw new Error("invalid")}function RS(t,i){const e=t.contentQueries;if(null!==e)for(let n=0;nUi&&yS(t,i,Ui,!1),ho(a?2:0,r),e(n,r)}finally{gc(o),ho(a?3:1,r)}}function cv(t,i,e){if(J_(i)){const r=i.directiveEnd;for(let o=i.directiveStart;o0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,n,o)}}(t,i,n,Hu(t,e,r.hostVars,kt),r)}function ua(t,i,e,n,r,o){const a=Qr(t,i);!function mv(t,i,e,n,r,o,a){if(null==o)t.removeAttribute(i,r,e);else{const s=null==a?wt(o):a(o,n||"",r);t.setAttribute(i,r,s,e)}}(i[Lt],a,o,t.value,e,n,r)}function _V(t,i,e,n,r,o){const a=o[i];if(null!==a){const s=n.setInput;for(let c=0;c0&&pv(e)}}function pv(t){for(let n=Mb(t);null!==n;n=Ab(n))for(let r=_r;r0&&pv(o)}const e=t[Ge].components;if(null!==e)for(let n=0;n0&&pv(r)}}function wV(t,i){const e=Ir(i,t),n=e[Ge];(function CV(t,i){for(let e=i.length;e-1&&(Rb(i,n),Pm(e,n))}this._attachedToViewContainer=!1}FD(this._lView[Ge],this._lView)}onDestroy(i){LS(this._lView[Ge],this._lView,null,i)}markForCheck(){tp(this._cdRefInjectingView||this._lView)}detach(){this._lView[At]&=-65}reattach(){this._lView[At]|=64}detectChanges(){ip(this._lView[Ge],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function s5(t,i){Lu(t,i,i[Lt],2,null,null)}(this._lView[Ge],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=i}}class kV extends Uu{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;ip(i[Ge],i,i[en],!1)}checkNoChanges(){}get context(){return null}}class GS extends Ss{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=gi(i);return new zu(e,this.ngModule)}}function qS(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class SV{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=_m(n);const r=this.injector.get(i,Jb,n);return r!==Jb||e===Jb?r:this.parentInjector.get(i,e,n)}}class zu extends fS{get inputs(){return qS(this.componentDef.inputs)}get outputs(){return qS(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function I6(t){return t.map(A6).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,r){let o=(r=r||this.ngModule)instanceof la?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new SV(i,o):i,s=a.get(Vu,null);if(null===s)throw new ue(407,!1);const c=a.get(d6,null),l=s.createRenderer(null,this.componentDef),d=this.componentDef.selectors[0][0]||"div",u=n?function tV(t,i,e){return t.selectRootElement(i,e===No.ShadowDom)}(l,n,this.componentDef.encapsulation):Fb(l,d,function DV(t){const i=t.toLowerCase();return"svg"===i?Ak:"math"===i?"math":null}(d)),h=this.componentDef.onPush?288:272,f=uv(0,null,null,1,0,null,null,null,null,null),m=Zm(null,f,null,h,null,null,s,l,c,a,null);let g,p;sb(m);try{const _=this.componentDef;let w,x=null;_.findHostDirectiveDefs?(w=[],x=new Map,_.findHostDirectiveDefs(_,w,x),w.push(_)):w=[_];const M=function TV(t,i){const e=t[Ge],n=Ui;return t[n]=i,Kl(e,n,2,"#host",null)}(m,u),W=function MV(t,i,e,n,r,o,a,s){const c=r[Ge];!function AV(t,i,e,n){for(const r of t)i.mergedAttrs=Tu(i.mergedAttrs,r.hostAttrs);null!==i.mergedAttrs&&(np(i,i.mergedAttrs,!0),null!==e&&jD(n,e,i))}(n,t,i,a);const l=o.createRenderer(i,e),d=Zm(r,PS(e),null,e.onPush?32:16,r[t.index],t,o,l,s||null,null,null);return c.firstCreatePass&&fv(c,t,n.length-1),ep(r,d),r[t.index]=d}(M,u,_,w,m,s,l);p=Fk(f,Ui),u&&function FV(t,i,e,n){if(n)ub(t,e,["ng-version",u6.full]);else{const{attrs:r,classes:o}=function F6(t){const i=[],e=[];let n=1,r=2;for(;n0&&$D(t,e,o.join(" "))}}(l,_,u,n),void 0!==e&&function RV(t,i,e){const n=t.projection=[];for(let r=0;r=0;n--){const r=t[n];r.hostVars=i+=r.hostVars,r.hostAttrs=Tu(r.hostAttrs,e=Tu(e,r.hostAttrs))}}(n)}function bv(t){return t===Ha?{}:t===li?[]:t}function LV(t,i){const e=t.viewQuery;t.viewQuery=e?(n,r)=>{i(n,r),e(n,r)}:i}function NV(t,i){const e=t.contentQueries;t.contentQueries=e?(n,r,o)=>{i(n,r,o),e(n,r,o)}:i}function BV(t,i){const e=t.hostBindings;t.hostBindings=e?(n,r)=>{i(n,r),e(n,r)}:i}function op(t){return!!vv(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function vv(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ha(t,i,e){return t[i]=e}function tr(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function kc(t,i,e,n){const r=tr(t,i,e);return tr(t,i+1,n)||r}function ot(t,i,e,n){const r=ge();return tr(r,Pl(),i)&&(ti(),ua(qi(),r,t,i,e,n)),ot}function Jl(t,i,e,n){return tr(t,Pl(),e)?i+wt(e)+n:kt}function td(t,i,e,n,r,o,a,s){const l=function ap(t,i,e,n,r){const o=kc(t,i,e,n);return tr(t,i+2,r)||o}(t,function $a(){return Ct.lFrame.bindingIndex}(),e,r,a);return ja(3),l?i+wt(e)+n+wt(r)+o+wt(a)+s:kt}function H(t,i,e,n,r,o,a,s){const c=ge(),l=ti(),d=t+Ui,u=l.firstCreatePass?function XV(t,i,e,n,r,o,a,s,c){const l=i.consts,d=Kl(i,t,4,a||null,Ds(l,s));hv(i,e,d,Ds(l,c)),Em(i,d);const u=d.tView=uv(2,d,n,r,o,i.directiveRegistry,i.pipeRegistry,null,i.schemas,l);return null!==i.queries&&(i.queries.template(i,d),u.queries=i.queries.embeddedTView(d)),d}(d,l,c,i,e,n,r,o,a):l.data[d];oa(u,!1);const h=c[Lt].createComment("");Um(l,c,h,u),er(h,c),ep(c,c[d]=US(h,c,h,u)),km(u)&&lv(l,c,u),null!=a&&dv(c,u,s)}function Nt(t){return Ol(function Y8(){return Ct.lFrame.contextLView}(),Ui+t)}function T(t,i,e){const n=ge();return tr(n,Pl(),i)&&Zr(ti(),qi(),n,t,i,n[Lt],e,!1),T}function xv(t,i,e,n,r){const a=r?"class":"style";_v(t,e,i.inputs[a],a,n)}function v(t,i,e,n){const r=ge(),o=ti(),a=Ui+t,s=r[Lt],c=o.firstCreatePass?function YV(t,i,e,n,r,o){const a=i.consts,c=Kl(i,t,2,n,Ds(a,r));return hv(i,e,c,Ds(a,o)),null!==c.attrs&&np(c,c.attrs,!1),null!==c.mergedAttrs&&np(c,c.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,c),c}(a,o,r,i,e,n):o.data[a],l=r[a]=Fb(s,i,function oB(){return Ct.lFrame.currentNamespace}()),d=km(c);return oa(c,!0),jD(s,l,c),32!=(32&c.flags)&&Um(o,r,l,c),0===function W8(){return Ct.lFrame.elementDepthCount}()&&er(l,r),function G8(){Ct.lFrame.elementDepthCount++}(),d&&(lv(o,r,c),cv(o,c,r)),null!==n&&dv(r,c),v}function y(){let t=Gn();ib()?nb():(t=t.parent,oa(t,!1));const i=t;!function q8(){Ct.lFrame.elementDepthCount--}();const e=ti();return e.firstCreatePass&&(Em(e,t),J_(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function lB(t){return 0!=(8&t.flags)}(i)&&xv(e,i,ge(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function dB(t){return 0!=(16&t.flags)}(i)&&xv(e,i,ge(),i.stylesWithoutHost,!1),y}function Se(t,i,e,n){return v(t,i,e,n),y(),Se}function Ai(t,i,e){const n=ge(),r=ti(),o=t+Ui,a=r.firstCreatePass?function KV(t,i,e,n,r){const o=i.consts,a=Ds(o,n),s=Kl(i,t,8,"ng-container",a);return null!==a&&np(s,a,!0),hv(i,e,s,Ds(o,r)),null!==i.queries&&i.queries.elementStart(i,s),s}(o,r,n,i,e):r.data[o];oa(a,!0);const s=n[o]=n[Lt].createComment("");return Um(r,n,s,a),er(s,n),km(a)&&(lv(r,n,a),cv(r,a,n)),null!=e&&dv(n,a),Ai}function Ii(){let t=Gn();const i=ti();return ib()?nb():(t=t.parent,oa(t,!1)),i.firstCreatePass&&(Em(i,t),J_(t)&&i.queries.elementEnd(t)),Ii}function Jr(t,i,e){return Ai(t,i,e),Ii(),Jr}function Je(){return ge()}function ju(t){return!!t&&"function"==typeof t.then}function sE(t){return!!t&&"function"==typeof t.subscribe}const yv=sE;function X(t,i,e,n){const r=ge(),o=ti(),a=Gn();return cE(o,r,r[Lt],a,t,i,n),X}function wv(t,i){const e=Gn(),n=ge(),r=ti();return cE(r,n,jS(ob(r.data),e,n),e,t,i),wv}function cE(t,i,e,n,r,o,a){const s=km(n),l=t.firstCreatePass&&$S(t),d=i[en],u=zS(i);let h=!0;if(3&n.type||a){const g=Qr(n,i),p=a?a(g):g,_=u.length,w=a?M=>a(Wn(M[n.index])):n.index;let x=null;if(!a&&s&&(x=function ZV(t,i,e,n){const r=t.cleanup;if(null!=r)for(let o=0;oc?s[c]:null}"string"==typeof a&&(o+=2)}return null}(t,i,r,n.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=o,x.__ngLastListenerFn__=o,h=!1;else{o=dE(n,i,d,o,!1);const M=e.listen(p,r,o);u.push(o,M),l&&l.push(r,w,_,_+1)}}else o=dE(n,i,d,o,!1);const f=n.outputs;let m;if(h&&null!==f&&(m=f[r])){const g=m.length;if(g)for(let p=0;p-1?Ir(t.index,i):i);let c=lE(i,e,n,a),l=o.__ngNextListenerFn__;for(;l;)c=lE(i,e,l,a)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&(a.preventDefault(),a.returnValue=!1),c}}function q(t=1){return function tB(t){return(Ct.lFrame.contextLView=function iB(t,i){for(;t>0;)i=i[Il],t--;return i}(t,Ct.lFrame.contextLView))[en]}(t)}function JV(t,i){let e=null;const n=function S6(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(!(1&e))return i[e+1]}return null}(t);for(let r=0;r>17&32767}function Cv(t){return 2|t}function Dc(t){return(131068&t)>>2}function kv(t,i){return-131069&t|i<<2}function Dv(t){return 1|t}function vE(t,i,e,n,r){const o=t[e+1],a=null===i;let s=n?Es(o):Dc(o),c=!1;for(;0!==s&&(!1===c||a);){const d=t[s+1];o7(t[s],i)&&(c=!0,t[s+1]=n?Dv(d):Cv(d)),s=n?Es(d):Dc(d)}c&&(t[e+1]=n?Cv(o):Dv(o))}function o7(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&$l(t,i)>=0}const Mn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function xE(t){return t.substring(Mn.key,Mn.keyEnd)}function yE(t,i){const e=Mn.textEnd;return e===i?-1:(i=Mn.keyEnd=function l7(t,i,e){for(;i32;)i++;return i}(t,Mn.key=i,e),sd(t,i,e))}function sd(t,i,e){for(;i=0;e=yE(i,e))Yr(t,xE(i),!0)}function zo(t,i,e,n){const r=ge(),o=ti(),a=ja(2);o.firstUpdatePass&&EE(o,t,a,n),i!==kt&&tr(r,a,i)&&ME(o,o.data[vr()],r,r[Lt],t,r[a+1]=function y7(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=Pi(Kr(t)))),t}(i,e),n,a)}function SE(t,i){return i>=t.expandoStartIndex}function EE(t,i,e,n){const r=t.data;if(null===r[e+1]){const o=r[vr()],a=SE(t,e);IE(o,n)&&null===i&&!a&&(i=!1),i=function m7(t,i,e,n){const r=ob(t);let o=n?i.residualClasses:i.residualStyles;if(null===r)0===(n?i.classBindings:i.styleBindings)&&(e=Gu(e=Sv(null,t,i,e,n),i.attrs,n),o=null);else{const a=i.directiveStylingLast;if(-1===a||t[a]!==r)if(e=Sv(r,t,i,e,n),null===o){let c=function p7(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==Dc(n))return t[Es(n)]}(t,i,n);void 0!==c&&Array.isArray(c)&&(c=Sv(null,t,i,c[1],n),c=Gu(c,i.attrs,n),function g7(t,i,e,n){t[Es(e?i.classBindings:i.styleBindings)]=n}(t,i,n,c))}else o=function _7(t,i,e){let n;const r=i.directiveEnd;for(let o=1+i.directiveStylingLast;o0)&&(l=!0)):d=e,r)if(0!==c){const h=Es(t[s+1]);t[n+1]=cp(h,s),0!==h&&(t[h+1]=kv(t[h+1],n)),t[s+1]=function t7(t,i){return 131071&t|i<<17}(t[s+1],n)}else t[n+1]=cp(s,0),0!==s&&(t[s+1]=kv(t[s+1],n)),s=n;else t[n+1]=cp(c,0),0===s?s=n:t[c+1]=kv(t[c+1],n),c=n;l&&(t[n+1]=Cv(t[n+1])),vE(t,d,n,!0),vE(t,d,n,!1),function r7(t,i,e,n,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof i&&$l(o,i)>=0&&(e[n+1]=Dv(e[n+1]))}(i,d,t,n,o),a=cp(s,c),o?i.classBindings=a:i.styleBindings=a}(r,o,i,e,a,n)}}function Sv(t,i,e,n,r){let o=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const c=t[r],l=Array.isArray(c),d=l?c[1]:c,u=null===d;let h=e[r+1];h===kt&&(h=u?li:void 0);let f=u?vb(h,n):d===n?h:void 0;if(l&&!lp(f)&&(f=vb(c,n)),lp(f)&&(s=f,a))return s;const m=t[r+1];r=a?Es(m):Dc(m)}if(null!==i){let c=o?i.residualClasses:i.residualStyles;null!=c&&(s=vb(c,n))}return s}function lp(t){return void 0!==t}function IE(t,i){return 0!=(t.flags&(i?8:16))}function E(t,i=""){const e=ge(),n=ti(),r=t+Ui,o=n.firstCreatePass?Kl(n,r,1,i,null):n.data[r],a=e[r]=function Ib(t,i){return t.createText(i)}(e[Lt],i);Um(n,e,a,o),oa(o,!1)}function Xe(t){return It("",t,""),Xe}function It(t,i,e){const n=ge(),r=Jl(n,t,i,e);return r!==kt&&Ya(n,vr(),r),It}function Ev(t,i,e,n,r,o,a){const s=ge(),c=td(s,t,i,e,n,r,o,a);return c!==kt&&Ya(s,vr(),c),Ev}function VE(t,i,e){!function $o(t,i,e,n){const r=ti(),o=ja(2);r.firstUpdatePass&&EE(r,null,o,n);const a=ge();if(e!==kt&&tr(a,o,e)){const s=r.data[vr()];if(IE(s,n)&&!SE(r,o)){let c=n?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=z_(c,e||"")),xv(r,s,a,e,n)}else!function x7(t,i,e,n,r,o,a,s){r===kt&&(r=li);let c=0,l=0,d=0((Ue=Ue||{})[Ue.LocaleId=0]="LocaleId",Ue[Ue.DayPeriodsFormat=1]="DayPeriodsFormat",Ue[Ue.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ue[Ue.DaysFormat=3]="DaysFormat",Ue[Ue.DaysStandalone=4]="DaysStandalone",Ue[Ue.MonthsFormat=5]="MonthsFormat",Ue[Ue.MonthsStandalone=6]="MonthsStandalone",Ue[Ue.Eras=7]="Eras",Ue[Ue.FirstDayOfWeek=8]="FirstDayOfWeek",Ue[Ue.WeekendRange=9]="WeekendRange",Ue[Ue.DateFormat=10]="DateFormat",Ue[Ue.TimeFormat=11]="TimeFormat",Ue[Ue.DateTimeFormat=12]="DateTimeFormat",Ue[Ue.NumberSymbols=13]="NumberSymbols",Ue[Ue.NumberFormats=14]="NumberFormats",Ue[Ue.CurrencyCode=15]="CurrencyCode",Ue[Ue.CurrencySymbol=16]="CurrencySymbol",Ue[Ue.CurrencyName=17]="CurrencyName",Ue[Ue.Currencies=18]="Currencies",Ue[Ue.Directionality=19]="Directionality",Ue[Ue.PluralCase=20]="PluralCase",Ue[Ue.ExtraData=21]="ExtraData",Ue))();const ld="en-US";let KE=ld;function Iv(t,i,e,n,r){if(t=pt(t),Array.isArray(t))for(let o=0;o>20;if(wc(t)||!t.multi){const f=new Eu(c,r,b),m=Rv(s,i,r?d:d+h,u);-1===m?(pb(Rm(l,a),o,s),Fv(o,t,i.length),i.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),e.push(f),a.push(f)):(e[m]=f,a[m]=f)}else{const f=Rv(s,i,d+h,u),m=Rv(s,i,d,d+h),p=m>=0&&e[m];if(r&&!p||!r&&!(f>=0&&e[f])){pb(Rm(l,a),o,s);const _=function BH(t,i,e,n,r){const o=new Eu(t,e,b);return o.multi=[],o.index=i,o.componentProviders=0,wT(o,r,n&&!e),o}(r?NH:LH,e.length,r,n,c);!r&&p&&(e[m].providerFactory=_),Fv(o,t,i.length,0),i.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),e.push(_),a.push(_)}else Fv(o,t,f>-1?f:m,wT(e[r?m:f],c,!r&&n));!r&&n&&p&&e[m].componentProviders++}}}function Fv(t,i,e,n){const r=wc(i),o=function K5(t){return!!t.useClass}(i);if(r||o){const c=(o?pt(i.useClass):i).prototype.ngOnDestroy;if(c){const l=t.destroyHooks||(t.destroyHooks=[]);if(!r&&i.multi){const d=l.indexOf(e);-1===d?l.push(e,[n,c]):l[d+1].push(n,c)}else l.push(e,c)}}}function wT(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Rv(t,i,e,n){for(let r=e;r{e.providersResolver=(n,r)=>function PH(t,i,e){const n=ti();if(n.firstCreatePass){const r=Ho(t);Iv(e,n.data,n.blueprint,r,!0),Iv(i,n.data,n.blueprint,r,!1)}}(n,r?r(t):t,i)}}class dd{}class CT{}class kT extends dd{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new GS(this);const n=qr(i);this._bootstrapComponents=Qa(n.bootstrap),this._r3Injector=SS(i,e,[{provide:dd,useValue:this},{provide:Ss,useValue:this.componentFactoryResolver}],Pi(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class Pv extends CT{constructor(i){super(),this.moduleType=i}create(i){return new kT(this.moduleType,i)}}class HH extends dd{constructor(i,e,n){super(),this.componentFactoryResolver=new GS(this),this.instance=null;const r=new uS([...i,{provide:dd,useValue:this},{provide:Ss,useValue:this.componentFactoryResolver}],e||Ym(),n,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function mp(t,i,e=null){return new HH(t,i,e).injector}let UH=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const n=sS(0,e.type),r=n.length>0?mp([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=ve({token:t,providedIn:"environment",factory:()=>new t(G(la))}),t})();function Lv(t){t.getStandaloneInjector=i=>i.get(UH).getOrCreateStandaloneInjector(t)}function Ec(t,i,e){const n=br()+t,r=ge();return r[n]===kt?ha(r,n,e?i.call(e):i()):function $u(t,i){return t[i]}(r,n)}function Bv(t,i,e,n){return FT(ge(),br(),t,i,e,n)}function Zu(t,i){const e=t[i];return e===kt?void 0:e}function FT(t,i,e,n,r,o){const a=i+e;return tr(t,a,r)?ha(t,a+1,o?n.call(o,r):n(r)):Zu(t,a+1)}function RT(t,i,e,n,r,o,a){const s=i+e;return kc(t,s,r,o)?ha(t,s+2,a?n.call(a,r,o):n(r,o)):Zu(t,s+2)}function pp(t,i){const e=ti();let n;const r=t+Ui;e.firstCreatePass?(n=function nU(t,i){if(i)for(let e=i.length-1;e>=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks??(e.destroyHooks=[])).push(r,n.onDestroy)):n=e.data[r];const o=n.factory||(n.factory=pc(n.type)),a=uo(b);try{const s=Fm(!1),c=o();return Fm(s),function QV(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,ge(),r,c),c}finally{uo(a)}}function Vv(t,i,e){const n=t+Ui,r=ge(),o=Ol(r,n);return Ju(r,n)?FT(r,br(),i,o.transform,e,o):o.transform(e)}function Ju(t,i){return t[Ge].data[i].pure}function Hv(t){return i=>{setTimeout(t,void 0,i)}}const xe=class sU extends ke{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){let r=i,o=e||(()=>null),a=n;if(i&&"object"==typeof i){const c=i;r=c.next?.bind(c),o=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(o=Hv(o),r&&(r=Hv(r)),a&&(a=Hv(a)));const s=super.subscribe({next:r,error:o,complete:a});return i instanceof yt&&i.add(s),s}};function cU(){return this._results[Symbol.iterator]()}class Tc{get changes(){return this._changes||(this._changes=new xe)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Tc.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=cU)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const r=function mo(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function xB(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n{class t{}return t.__NG_ELEMENT_ID__=uU,t})();const lU=_i,dU=class extends lU{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i,e){const n=this._declarationTContainer.tView,r=Zm(this._declarationLView,n,i,16,null,n.declTNode,null,null,null,null,e||null);r[Cu]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[ra];return null!==a&&(r[ra]=a.createEmbeddedView(n)),sv(n,r,i),new Uu(r)}};function uU(){return gp(Gn(),ge())}function gp(t,i){return 4&t.type?new dU(i,t,Xl(t,i)):null}let Fi=(()=>{class t{}return t.__NG_ELEMENT_ID__=hU,t})();function hU(){return HT(Gn(),ge())}const fU=Fi,BT=class extends fU{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Xl(this._hostTNode,this._hostLView)}get injector(){return new Bl(this._hostTNode,this._hostLView)}get parentInjector(){const i=mb(this._hostTNode,this._hostLView);if(Yk(i)){const e=Im(i,this._hostLView),n=Am(i);return new Bl(e[Ge].data[n+8],e)}return new Bl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=VT(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-_r}createEmbeddedView(i,e,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const a=i.createEmbeddedView(e||{},o);return this.insert(a,r),a}createComponent(i,e,n,r,o){const a=i&&!function Au(t){return"function"==typeof t}(i);let s;if(a)s=e;else{const u=e||{};s=u.index,n=u.injector,r=u.projectableNodes,o=u.environmentInjector||u.ngModuleRef}const c=a?i:new zu(gi(i)),l=n||this.parentInjector;if(!o&&null==c.ngModule){const h=(a?l:this.parentInjector).get(la,null);h&&(o=h)}const d=c.create(l,r,void 0,o);return this.insert(d.hostView,s),d}insert(i,e){const n=i._lView,r=n[Ge];if(function j8(t){return Vo(t[Yi])}(n)){const d=this.indexOf(i);if(-1!==d)this.detach(d);else{const u=n[Yi],h=new BT(u,u[Zn],u[Yi]);h.detach(h.indexOf(i))}}const o=this._adjustIndex(e),a=this._lContainer;!function l5(t,i,e,n){const r=_r+n,o=e.length;n>0&&(e[r-1][Bo]=i),n0)n.push(a[s/2]);else{const l=o[s+1],d=i[-c];for(let u=_r;u{class t{constructor(e){this.appInits=e,this.resolve=bp,this.reject=bp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:s,error:c})});e.push(a)}}Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),0===e.length&&n(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(G(vp,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const fd=new ae("AppId",{providedIn:"root",factory:function d2(){return`${Zv()}${Zv()}${Zv()}`}});function Zv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const u2=new ae("Platform Initializer"),yp=new ae("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ri=new ae("AnimationModuleType");let VU=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const ga=new ae("LocaleId",{providedIn:"root",factory:()=>ht(ga,gt.Optional|gt.SkipSelf)||function HU(){return typeof $localize<"u"&&$localize.locale||ld}()});class zU{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let h2=(()=>{class t{compileModuleSync(e){return new Pv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),o=Qa(qr(e).declarations).reduce((a,s)=>{const c=gi(s);return c&&a.push(new zu(c)),a},[]);return new zU(n,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const WU=(()=>Promise.resolve(0))();function Jv(t){typeof Zone>"u"?WU.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ze{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xe(!1),this.onMicrotaskEmpty=new xe(!1),this.onStable=new xe(!1),this.onError=new xe(!1),typeof Zone>"u")throw new ue(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)),i&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function GU(){let t=Hi.requestAnimationFrame,i=Hi.cancelAnimationFrame;if(typeof Zone<"u"&&t&&i){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function QU(t){const i=()=>{!function XU(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Hi,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,tx(t),t.isCheckStableRunning=!0,ex(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),tx(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,o,a,s)=>{try{return p2(t),e.invokeTask(r,o,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&i(),g2(t)}},onInvoke:(e,n,r,o,a,s,c)=>{try{return p2(t),e.invoke(r,o,a,s,c)}finally{t.shouldCoalesceRunChangeDetection&&i(),g2(t)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,tx(t),ex(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ze.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(ze.isInAngularZone())throw new ue(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,i,qU,bp,bp);try{return o.runTask(a,e,n)}finally{o.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const qU={};function ex(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 tx(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function p2(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function g2(t){t._nesting--,ex(t)}class YU{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xe,this.onMicrotaskEmpty=new xe,this.onStable=new xe,this.onError=new xe}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,r){return i.apply(e,n)}}const _2=new ae(""),wp=new ae("");let rx,ix=(()=>{class t{constructor(e,n,r){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,rx||(function KU(t){rx=t}(r),r.addToWindow(n)),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:()=>{ze.assertNotInAngularZone(),Jv(()=>{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())Jv(()=>{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(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.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,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,n,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,n,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(G(ze),G(nx),G(wp))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),nx=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}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,n=!0){return rx?.findTestabilityInTree(this,e,n)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Ka=!1;let Ts=null;const b2=new ae("AllowMultipleToken"),ox=new ae("PlatformDestroyListeners"),v2=new ae("appBootstrapListener");class x2{constructor(i,e){this.name=i,this.token=e}}function w2(t,i,e=[]){const n=`Platform: ${i}`,r=new ae(n);return(o=[])=>{let a=ax();if(!a||a.injector.get(b2,!1)){const s=[...e,...o,{provide:r,useValue:!0}];t?t(s):function e9(t){if(Ts&&!Ts.get(b2,!1))throw new ue(400,!1);Ts=t;const i=t.get(k2);(function y2(t){const i=t.get(u2,null);i&&i.forEach(e=>e())})(t)}(function C2(t=[],i){return tn.create({name:i,providers:[{provide:Qb,useValue:"platform"},{provide:ox,useValue:new Set([()=>Ts=null])},...t]})}(s,n))}return function i9(t){const i=ax();if(!i)throw new ue(401,!1);return i}()}}function ax(){return Ts?.get(k2)??null}let k2=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const r=function S2(t,i){let e;return e="noop"===t?new YU:("zone.js"===t?void 0:t)||new ze(i),e}(n?.ngZone,function D2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(n)),o=[{provide:ze,useValue:r}];return r.run(()=>{const a=tn.create({providers:o,parent:this.injector,name:e.moduleType.name}),s=e.create(a),c=s.injector.get(Xa,null);if(!c)throw new ue(402,!1);return r.runOutsideAngular(()=>{const l=r.onError.subscribe({next:d=>{c.handleError(d)}});s.onDestroy(()=>{Cp(this._modules,s),l.unsubscribe()})}),function E2(t,i,e){try{const n=e();return ju(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(c,r,()=>{const l=s.injector.get(xp);return l.runInitializers(),l.donePromise.then(()=>(function ZE(t){lo(t,"Expected localeId to be defined"),"string"==typeof t&&(KE=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(ga,ld)||ld),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,n=[]){const r=T2({},n);return function ZU(t,i,e){const n=new Pv(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const n=e.injector.get(md);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new ue(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ue(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(ox,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(G(tn))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function T2(t,i){return Array.isArray(i)?i.reduce(T2,t):{...t,...i}}let md=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,n,r){this._zone=e,this._injector=n,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new ni(s=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{s.next(this._stable),s.complete()})}),a=new ni(s=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ze.assertNotInAngularZone(),Jv(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{ze.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{c.unsubscribe(),l.unsubscribe()}});this.isStable=Vi(o,a.pipe(uk()))}bootstrap(e,n){const r=e instanceof fS;if(!this._injector.get(xp).done){!r&&function Ml(t){const i=gi(t)||Kn(t)||Ar(t);return null!==i&&i.standalone}(e);throw new ue(405,Ka)}let a;a=r?e:this._injector.get(Ss).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function JU(t){return t.isBoundToModule}(a)?void 0:this._injector.get(dd),l=a.create(tn.NULL,[],n||a.selector,s),d=l.location.nativeElement,u=l.injector.get(_2,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Cp(this.components,l),u?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new ue(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;Cp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(v2,[]);n.push(...this._bootstrapListeners),n.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Cp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(G(ze),G(la),G(Xa))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Cp(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let Gt=(()=>{class t{}return t.__NG_ELEMENT_ID__=r9,t})();function r9(t){return function o9(t,i,e){if(Du(t)&&!e){const n=Ir(t.index,i);return new Uu(n,n)}return 47&t.type?new Uu(i[Jn],i):null}(Gn(),ge(),16==(16&t))}class R2{constructor(){}supports(i){return op(i)}create(i){return new u9(i)}}const d9=(t,i)=>i;class u9{constructor(i){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=i||d9}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){const a=!n||e&&e.currentIndex{a=this._trackByFn(r,s),null!==e&&Object.is(e.trackById,a)?(n&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,r),n=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,r){let o;return null===i?o=this._itTail:(o=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,o,r)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,o,r)):i=this._addAfter(new h9(e,n),o,r),i}_verifyReinsertion(i,e,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?i=this._reinsertAfter(o,i._prev,r):i.currentIndex!=r&&(i.currentIndex=r,this._addToMoves(i,r)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=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(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const r=i._prevRemoved,o=i._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const r=null===e?this._itHead:e._next;return i._next=r,i._prev=e,null===r?this._itTail=i:r._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new O2),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new O2),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class h9{constructor(i,e){this.item=i,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 f9{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class O2{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new f9,this.map.set(e,n)),n.add(i)}get(i,e){const r=this.map.get(i);return r?r.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function P2(t,i,e){const n=t.previousIndex;if(null===n)return n;let r=0;return e&&n{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const r=this._records.get(i);this._maybeAddToChanges(r,e);const o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}const n=new p9(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class p9{constructor(i){this.key=i,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 N2(){return new Za([new R2])}let Za=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(null!=n){const r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||N2()),deps:[[t,new vc,new sa]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(null!=n)return n;throw new ue(901,!1)}}return t.\u0275prov=ve({token:t,providedIn:"root",factory:N2}),t})();function B2(){return new th([new L2])}let th=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(n){const r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||B2()),deps:[[t,new vc,new sa]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return n;throw new ue(901,!1)}}return t.\u0275prov=ve({token:t,providedIn:"root",factory:B2}),t})();const b9=w2(null,"core",[]);let v9=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(G(md))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();function pd(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let ux=null;function Ja(){return ux}class w9{}const nt=new ae("DocumentToken");let hx=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return function C9(){return G(V2)}()},providedIn:"platform"}),t})();const k9=new ae("Location Initialized");let V2=(()=>{class t extends hx{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ja().getBaseHref(this._doc)}onPopState(e){const n=Ja().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=Ja().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.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,n,r){H2()?this._history.pushState(e,n,r):this._location.hash=r}replaceState(e,n,r){H2()?this._history.replaceState(e,n,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:function(){return function D9(){return new V2(G(nt))}()},providedIn:"platform"}),t})();function H2(){return!!window.history.pushState}function fx(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function U2(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function es(t){return t&&"?"!==t[0]?"?"+t:t}let Ic=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht($2)},providedIn:"root"}),t})();const z2=new ae("appBaseHref");let $2=(()=>{class t extends Ic{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??ht(nt).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 fx(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+es(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,o){const a=this.prepareExternalUrl(r+es(o));this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){const a=this.prepareExternalUrl(r+es(o));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(G(hx),G(z2,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),S9=(()=>{class t extends Ic{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=fx(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,o){let a=this.prepareExternalUrl(r+es(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){let a=this.prepareExternalUrl(r+es(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(G(hx),G(z2,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),ih=(()=>{class t{constructor(e){this._subject=new xe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function M9(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(U2(j2(n))),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,n=""){return this.path()==this.normalize(e+es(n))}normalize(e){return t.stripTrailingSlash(function T9(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,j2(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+es(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+es(n)),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(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n,complete:r})}}return t.normalizeQueryParams=es,t.joinWithSlash=fx,t.stripTrailingSlash=U2,t.\u0275fac=function(e){return new(e||t)(G(Ic))},t.\u0275prov=ve({token:t,factory:function(){return function E9(){return new ih(G(Ic))}()},providedIn:"root"}),t})();function j2(t){return t.replace(/\/index.html$/,"")}var nn=(()=>((nn=nn||{})[nn.Format=0]="Format",nn[nn.Standalone=1]="Standalone",nn))(),qt=(()=>((qt=qt||{})[qt.Narrow=0]="Narrow",qt[qt.Abbreviated=1]="Abbreviated",qt[qt.Wide=2]="Wide",qt[qt.Short=3]="Short",qt))(),Xi=(()=>((Xi=Xi||{})[Xi.Short=0]="Short",Xi[Xi.Medium=1]="Medium",Xi[Xi.Long=2]="Long",Xi[Xi.Full=3]="Full",Xi))(),ft=(()=>((ft=ft||{})[ft.Decimal=0]="Decimal",ft[ft.Group=1]="Group",ft[ft.List=2]="List",ft[ft.PercentSign=3]="PercentSign",ft[ft.PlusSign=4]="PlusSign",ft[ft.MinusSign=5]="MinusSign",ft[ft.Exponential=6]="Exponential",ft[ft.SuperscriptingExponent=7]="SuperscriptingExponent",ft[ft.PerMille=8]="PerMille",ft[ft.Infinity=9]="Infinity",ft[ft.NaN=10]="NaN",ft[ft.TimeSeparator=11]="TimeSeparator",ft[ft.CurrencyDecimal=12]="CurrencyDecimal",ft[ft.CurrencyGroup=13]="CurrencyGroup",ft))();function Sp(t,i){return _o(xr(t)[Ue.DateFormat],i)}function Ep(t,i){return _o(xr(t)[Ue.TimeFormat],i)}function Tp(t,i){return _o(xr(t)[Ue.DateTimeFormat],i)}function go(t,i){const e=xr(t),n=e[Ue.NumberSymbols][i];if(typeof n>"u"){if(i===ft.CurrencyDecimal)return e[Ue.NumberSymbols][ft.Decimal];if(i===ft.CurrencyGroup)return e[Ue.NumberSymbols][ft.Group]}return n}function G2(t){if(!t[Ue.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Ue.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function _o(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function px(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const z9=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nh={},$9=/((?:[^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 An=(()=>((An=An||{})[An.Short=0]="Short",An[An.ShortGMT=1]="ShortGMT",An[An.Long=2]="Long",An[An.Extended=3]="Extended",An))(),_t=(()=>((_t=_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))(),Ft=(()=>((Ft=Ft||{})[Ft.DayPeriods=0]="DayPeriods",Ft[Ft.Days=1]="Days",Ft[Ft.Months=2]="Months",Ft[Ft.Eras=3]="Eras",Ft))();function j9(t,i,e,n){let r=function J9(t){if(Q2(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,o=1,a=1]=t.split("-").map(s=>+s);return Mp(r,o-1,a)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(z9))return function ez(t){const i=new Date(0);let e=0,n=0;const r=t[8]?i.setUTCFullYear:i.setFullYear,o=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-e,s=Number(t[5]||0)-n,c=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(i,a,s,c,l),i}(n)}const i=new Date(t);if(!Q2(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=ts(e,i)||i;let s,a=[];for(;i;){if(s=$9.exec(i),!s){a.push(i);break}{a=a.concat(s.slice(1));const d=a.pop();if(!d)break;i=d}}let c=r.getTimezoneOffset();n&&(c=X2(n,c),r=function Z9(t,i,e){const n=e?-1:1,r=t.getTimezoneOffset();return function K9(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(X2(i,r)-r))}(r,n,!0));let l="";return a.forEach(d=>{const u=function Y9(t){if(_x[t])return _x[t];let i;switch(t){case"G":case"GG":case"GGG":i=Li(Ft.Eras,qt.Abbreviated);break;case"GGGG":i=Li(Ft.Eras,qt.Wide);break;case"GGGGG":i=Li(Ft.Eras,qt.Narrow);break;case"y":i=hn(_t.FullYear,1,0,!1,!0);break;case"yy":i=hn(_t.FullYear,2,0,!0,!0);break;case"yyy":i=hn(_t.FullYear,3,0,!1,!0);break;case"yyyy":i=hn(_t.FullYear,4,0,!1,!0);break;case"Y":i=Rp(1);break;case"YY":i=Rp(2,!0);break;case"YYY":i=Rp(3);break;case"YYYY":i=Rp(4);break;case"M":case"L":i=hn(_t.Month,1,1);break;case"MM":case"LL":i=hn(_t.Month,2,1);break;case"MMM":i=Li(Ft.Months,qt.Abbreviated);break;case"MMMM":i=Li(Ft.Months,qt.Wide);break;case"MMMMM":i=Li(Ft.Months,qt.Narrow);break;case"LLL":i=Li(Ft.Months,qt.Abbreviated,nn.Standalone);break;case"LLLL":i=Li(Ft.Months,qt.Wide,nn.Standalone);break;case"LLLLL":i=Li(Ft.Months,qt.Narrow,nn.Standalone);break;case"w":i=gx(1);break;case"ww":i=gx(2);break;case"W":i=gx(1,!0);break;case"d":i=hn(_t.Date,1);break;case"dd":i=hn(_t.Date,2);break;case"c":case"cc":i=hn(_t.Day,1);break;case"ccc":i=Li(Ft.Days,qt.Abbreviated,nn.Standalone);break;case"cccc":i=Li(Ft.Days,qt.Wide,nn.Standalone);break;case"ccccc":i=Li(Ft.Days,qt.Narrow,nn.Standalone);break;case"cccccc":i=Li(Ft.Days,qt.Short,nn.Standalone);break;case"E":case"EE":case"EEE":i=Li(Ft.Days,qt.Abbreviated);break;case"EEEE":i=Li(Ft.Days,qt.Wide);break;case"EEEEE":i=Li(Ft.Days,qt.Narrow);break;case"EEEEEE":i=Li(Ft.Days,qt.Short);break;case"a":case"aa":case"aaa":i=Li(Ft.DayPeriods,qt.Abbreviated);break;case"aaaa":i=Li(Ft.DayPeriods,qt.Wide);break;case"aaaaa":i=Li(Ft.DayPeriods,qt.Narrow);break;case"b":case"bb":case"bbb":i=Li(Ft.DayPeriods,qt.Abbreviated,nn.Standalone,!0);break;case"bbbb":i=Li(Ft.DayPeriods,qt.Wide,nn.Standalone,!0);break;case"bbbbb":i=Li(Ft.DayPeriods,qt.Narrow,nn.Standalone,!0);break;case"B":case"BB":case"BBB":i=Li(Ft.DayPeriods,qt.Abbreviated,nn.Format,!0);break;case"BBBB":i=Li(Ft.DayPeriods,qt.Wide,nn.Format,!0);break;case"BBBBB":i=Li(Ft.DayPeriods,qt.Narrow,nn.Format,!0);break;case"h":i=hn(_t.Hours,1,-12);break;case"hh":i=hn(_t.Hours,2,-12);break;case"H":i=hn(_t.Hours,1);break;case"HH":i=hn(_t.Hours,2);break;case"m":i=hn(_t.Minutes,1);break;case"mm":i=hn(_t.Minutes,2);break;case"s":i=hn(_t.Seconds,1);break;case"ss":i=hn(_t.Seconds,2);break;case"S":i=hn(_t.FractionalSeconds,1);break;case"SS":i=hn(_t.FractionalSeconds,2);break;case"SSS":i=hn(_t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=Ip(An.Short);break;case"ZZZZZ":i=Ip(An.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=Ip(An.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=Ip(An.Long);break;default:return null}return _x[t]=i,i}(d);l+=u?u(r,e,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Mp(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function ts(t,i){const e=function A9(t){return xr(t)[Ue.LocaleId]}(t);if(nh[e]=nh[e]||{},nh[e][i])return nh[e][i];let n="";switch(i){case"shortDate":n=Sp(t,Xi.Short);break;case"mediumDate":n=Sp(t,Xi.Medium);break;case"longDate":n=Sp(t,Xi.Long);break;case"fullDate":n=Sp(t,Xi.Full);break;case"shortTime":n=Ep(t,Xi.Short);break;case"mediumTime":n=Ep(t,Xi.Medium);break;case"longTime":n=Ep(t,Xi.Long);break;case"fullTime":n=Ep(t,Xi.Full);break;case"short":const r=ts(t,"shortTime"),o=ts(t,"shortDate");n=Ap(Tp(t,Xi.Short),[r,o]);break;case"medium":const a=ts(t,"mediumTime"),s=ts(t,"mediumDate");n=Ap(Tp(t,Xi.Medium),[a,s]);break;case"long":const c=ts(t,"longTime"),l=ts(t,"longDate");n=Ap(Tp(t,Xi.Long),[c,l]);break;case"full":const d=ts(t,"fullTime"),u=ts(t,"fullDate");n=Ap(Tp(t,Xi.Full),[d,u])}return n&&(nh[e][i]=n),n}function Ap(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function Wo(t,i,e="-",n,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===_t.Hours)0===s&&-12===e&&(s=12);else if(t===_t.FractionalSeconds)return function W9(t,i){return Wo(t,3).substring(0,i)}(s,i);const c=go(a,ft.MinusSign);return Wo(s,i,c,n,r)}}function Li(t,i,e=nn.Format,n=!1){return function(r,o){return function q9(t,i,e,n,r,o){switch(e){case Ft.Months:return function R9(t,i,e){const n=xr(t),o=_o([n[Ue.MonthsFormat],n[Ue.MonthsStandalone]],i);return _o(o,e)}(i,r,n)[t.getMonth()];case Ft.Days:return function F9(t,i,e){const n=xr(t),o=_o([n[Ue.DaysFormat],n[Ue.DaysStandalone]],i);return _o(o,e)}(i,r,n)[t.getDay()];case Ft.DayPeriods:const a=t.getHours(),s=t.getMinutes();if(o){const l=function N9(t){const i=xr(t);return G2(i),(i[Ue.ExtraData][2]||[]).map(n=>"string"==typeof n?px(n):[px(n[0]),px(n[1])])}(i),d=function B9(t,i,e){const n=xr(t);G2(n);const o=_o([n[Ue.ExtraData][0],n[Ue.ExtraData][1]],i)||[];return _o(o,e)||[]}(i,r,n),u=l.findIndex(h=>{if(Array.isArray(h)){const[f,m]=h,g=a>=f.hours&&s>=f.minutes,p=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case An.Short:return(r>=0?"+":"")+Wo(a,2,o)+Wo(Math.abs(r%60),2,o);case An.ShortGMT:return"GMT"+(r>=0?"+":"")+Wo(a,1,o);case An.Long:return"GMT"+(r>=0?"+":"")+Wo(a,2,o)+":"+Wo(Math.abs(r%60),2,o);case An.Extended:return 0===n?"Z":(r>=0?"+":"")+Wo(a,2,o)+":"+Wo(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const X9=0,Fp=4;function q2(t){return Mp(t.getFullYear(),t.getMonth(),t.getDate()+(Fp-t.getDay()))}function gx(t,i=!1){return function(e,n){let r;if(i){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{const o=q2(e),a=function Q9(t){const i=Mp(t,X9,1).getDay();return Mp(t,0,1+(i<=Fp?Fp:Fp+7)-i)}(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Wo(r,t,go(n,ft.MinusSign))}}function Rp(t,i=!1){return function(e,n){return Wo(q2(e).getFullYear(),t,go(n,ft.MinusSign),i)}}const _x={};function X2(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function Q2(t){return t instanceof Date&&!isNaN(t.valueOf())}function J2(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[r,o]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===i)return decodeURIComponent(o)}return null}const Cx=/\s+/,eM=[];let Ms=(()=>{class t{constructor(e,n,r,o){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=o,this.initialClasses=eM,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Cx):eM}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Cx):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,Boolean(e[n]));this._applyStateDiff()}_updateState(e,n){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],r=e[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(Cx).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(b(Za),b(th),b(Fe),b(qa))},t.\u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class fz{constructor(i,e,n,r){this.$implicit=i,this.ngForOf=e,this.index=n,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 bo=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,r){this._viewContainer=e,this._template=n,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 n=this._viewContainer;e.forEachOperation((r,o,a)=>{if(null==r.previousIndex)n.createEmbeddedView(this._template,new fz(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)n.remove(null===o?void 0:o);else if(null!==o){const s=n.get(o);n.move(s,a),nM(s,r)}});for(let r=0,o=n.length;r{nM(n.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i),b(Za))},t.\u0275dir=Q({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function nM(t,i){t.context.$implicit=i.item}let fn=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new pz,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){rM("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){rM("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,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i))},t.\u0275dir=Q({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class pz{constructor(){this.$implicit=null,this.ngIf=null}}function rM(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Pi(i)}'.`)}class kx{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let oh=(()=>{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 n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),Dx=(()=>{class t{constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new kx(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i),b(oh,9))},t.\u0275dir=Q({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),oM=(()=>{class t{constructor(e,n,r){r._addDefault(new kx(e,n))}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i),b(oh,9))},t.\u0275dir=Q({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),Pp=(()=>{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 n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:a}=this;this._viewRef=n.createEmbeddedView(r,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(b(Fi))},t.\u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ei]}),t})();function Go(t,i){return new ue(2100,!1)}class bz{createSubscription(i,e){return i.subscribe({next:e,error:n=>{throw n}})}dispose(i){i.unsubscribe()}}class vz{createSubscription(i,e){return i.then(e,n=>{throw n})}dispose(i){}}const xz=new vz,yz=new bz;let sM=(()=>{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,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(ju(e))return xz;if(sE(e))return yz;throw Go()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(b(Gt,16))},t.\u0275pipe=Mr({name:"async",type:t,pure:!1,standalone:!0}),t})(),cM=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Go();return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Mr({name:"uppercase",type:t,pure:!0,standalone:!0}),t})();const Sz=new ae("DATE_PIPE_DEFAULT_TIMEZONE"),Ez=new ae("DATE_PIPE_DEFAULT_OPTIONS");let lM=(()=>{class t{constructor(e,n,r){this.locale=e,this.defaultTimezone=n,this.defaultOptions=r}transform(e,n,r,o){if(null==e||""===e||e!=e)return null;try{return j9(e,n??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw Go()}}}return t.\u0275fac=function(e){return new(e||t)(b(ga,16),b(Sz,24),b(Ez,24))},t.\u0275pipe=Mr({name:"date",type:t,pure:!0,standalone:!0}),t})(),nr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const uM="browser";let Uz=(()=>{class t{}return t.\u0275prov=ve({token:t,providedIn:"root",factory:()=>new zz(G(nt),window)}),t})();class zz{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function $z(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const o=r.shadowRoot;if(o){const a=o.getElementById(i)||o.querySelector(`[name="${i}"]`);if(a)return a}r=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=i)}}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const i=hM(this.window.history)||hM(Object.getPrototypeOf(this.window.history));return!(!i||!i.writable&&!i.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function hM(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class fM{}class g$ extends w9{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Ax extends g${static makeCurrent(){!function y9(t){ux||(ux=t)}(new Ax)}onAndCancel(i,e,n){return i.addEventListener(e,n,!1),()=>{i.removeEventListener(e,n,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function _$(){return sh=sh||document.querySelector("base"),sh?sh.getAttribute("href"):null}();return null==e?null:function b$(t){Bp=Bp||document.createElement("a"),Bp.setAttribute("href",t);const i=Bp.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){sh=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return J2(document.cookie,i)}}let Bp,sh=null;const bM=new ae("TRANSITION_ID"),x$=[{provide:vp,useFactory:function v$(t,i,e){return()=>{e.get(xp).donePromise.then(()=>{const n=Ja(),r=i.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const Vp=new ae("EventManagerPlugins");let Hp=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,r){return this._findPluginFor(n).addEventListener(e,n,r)}addGlobalEventListener(e,n,r){return this._findPluginFor(n).addGlobalEventListener(e,n,r)}getZone(){return this._zone}_findPluginFor(e){const n=this._eventNameToPlugin.get(e);if(n)return n;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)0===this.changeUsageCount(n,-1)&&this.onStyleRemoved(n)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,n){const r=this.usageCount;let o=r.get(e)??0;return o+=n,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),ch=(()=>{class t extends xM{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.forEach(o=>o.remove()),n.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,n){const r=this.doc.createElement("style");r.textContent=n,e.appendChild(r);const o=this.styleRef.get(n);o?o.push(r):this.styleRef.set(n,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const Ix={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/"},Fx=/%COMP%/g,CM=new ae("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function kM(t,i){return i.flat(100).map(e=>e.replace(Fx,t))}function DM(t){return i=>{if("__ngUnwrap__"===i)return t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let Up=(()=>{class t{constructor(e,n,r,o){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new Rx(e)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,n);return r instanceof TM?r.applyToHost(e):r instanceof Ox&&r.applyStyles(),r}getOrCreateRenderer(e,n){const r=this.rendererByCompId;let o=r.get(n.id);if(!o){const a=this.eventManager,s=this.sharedStylesHost,c=this.removeStylesOnCompDestory;switch(n.encapsulation){case No.Emulated:o=new TM(a,s,n,this.appId,c);break;case No.ShadowDom:return new M$(a,s,e,n);default:o=new Ox(a,s,n,c)}o.onDestroy=()=>r.delete(n.id),r.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(G(Hp),G(ch),G(fd),G(CM))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();class Rx{constructor(i){this.eventManager=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?document.createElementNS(Ix[e]||e,i):document.createElement(i)}createComment(i){return document.createComment(i)}createText(i){return document.createTextNode(i)}appendChild(i,e){(EM(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(EM(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?document.querySelector(i):i;if(!n)throw new Error(`The selector "${i}" did not match any elements`);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,r){if(r){e=r+":"+e;const o=Ix[r];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const r=Ix[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,r){r&(Fr.DashCase|Fr.Important)?i.style.setProperty(e,n,r&Fr.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Fr.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){return"string"==typeof i?this.eventManager.addGlobalEventListener(i,e,DM(n)):this.eventManager.addEventListener(i,e,DM(n))}}function EM(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class M$ extends Rx{constructor(i,e,n,r){super(i),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=kM(r.id,r.styles);for(const a of o){const s=document.createElement("style");s.textContent=a,this.shadowRoot.appendChild(s)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Ox extends Rx{constructor(i,e,n,r,o=n.id){super(i),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=kM(o,n.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class TM extends Ox{constructor(i,e,n,r,o){const a=r+"-"+n.id;super(i,e,n,o,a),this.contentAttr=function S$(t){return"_ngcontent-%COMP%".replace(Fx,t)}(a),this.hostAttr=function E$(t){return"_nghost-%COMP%".replace(Fx,t)}(a)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}let A$=(()=>{class t extends vM{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r){return e.addEventListener(n,r,!1),()=>this.removeEventListener(e,n,r)}removeEventListener(e,n,r){return e.removeEventListener(n,r)}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const MM=["alt","control","meta","shift"],I$={"\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"},F$={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let R$=(()=>{class t extends vM{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const o=t.parseEventName(n),a=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ja().onAndCancel(e,o.domEventName,a))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(n.pop());let a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),MM.forEach(l=>{const d=n.indexOf(l);d>-1&&(n.splice(d,1),a+=l+".")}),a+=o,0!=n.length||0===o.length)return null;const c={};return c.domEventName=r,c.fullKey=a,c}static matchEventFullKeyCode(e,n){let r=I$[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),MM.forEach(a=>{a!==r&&(0,F$[a])(e)&&(o+=a+".")}),o+=r,o===n)}static eventCallback(e,n,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const N$=w2(b9,"browser",[{provide:yp,useValue:uM},{provide:u2,useValue:function O$(){Ax.makeCurrent()},multi:!0},{provide:nt,useFactory:function L$(){return function w5(t){Hb=t}(document),document},deps:[]}]),FM=new ae(""),RM=[{provide:wp,useClass:class y${addToWindow(i){Hi.getAngularTestability=(n,r=!0)=>{const o=i.findTestabilityInTree(n,r);if(null==o)throw new Error("Could not find testability for element.");return o},Hi.getAllAngularTestabilities=()=>i.getAllTestabilities(),Hi.getAllAngularRootElements=()=>i.getAllRootElements(),Hi.frameworkStabilizers||(Hi.frameworkStabilizers=[]),Hi.frameworkStabilizers.push(n=>{const r=Hi.getAllAngularTestabilities();let o=r.length,a=!1;const s=function(c){a=a||c,o--,0==o&&n(a)};r.forEach(function(c){c.whenStable(s)})})}findTestabilityInTree(i,e,n){return null==e?null:i.getTestability(e)??(n?Ja().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:_2,useClass:ix,deps:[ze,nx,wp]},{provide:ix,useClass:ix,deps:[ze,nx,wp]}],OM=[{provide:Qb,useValue:"root"},{provide:Xa,useFactory:function P$(){return new Xa},deps:[]},{provide:Vp,useClass:A$,multi:!0,deps:[nt,ze,yp]},{provide:Vp,useClass:R$,multi:!0,deps:[nt]},{provide:Up,useClass:Up,deps:[Hp,ch,fd,CM]},{provide:Vu,useExisting:Up},{provide:xM,useExisting:ch},{provide:ch,useClass:ch,deps:[nt]},{provide:Hp,useClass:Hp,deps:[Vp,ze]},{provide:fM,useClass:w$,deps:[]},[]];let PM=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:fd,useValue:e.appId},{provide:bM,useExisting:fd},x$]}}}return t.\u0275fac=function(e){return new(e||t)(G(FM,12))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[...OM,...RM],imports:[nr,v9]}),t})(),LM=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:function(e){let n=null;return n=e?new e:function V$(){return new LM(G(nt))}(),n},providedIn:"root"}),t})();typeof window<"u"&&window;let Nx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(e){let n=null;return n=e?new(e||t):G(VM),n},providedIn:"root"}),t})(),VM=(()=>{class t extends Nx{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case di.NONE:return n;case di.HTML:return ca(n,"HTML")?Kr(n):tS(this._doc,String(n)).toString();case di.STYLE:return ca(n,"Style")?Kr(n):n;case di.SCRIPT:if(ca(n,"Script"))return Kr(n);throw new Error("unsafe value used in a script context");case di.URL:return ca(n,"URL")?Kr(n):Wm(String(n));case di.RESOURCE_URL:if(ca(n,"ResourceURL"))return Kr(n);throw new Error(`unsafe value used in a resource URL context (see ${um})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${um})`)}}bypassSecurityTrustHtml(e){return function M5(t){return new C5(t)}(e)}bypassSecurityTrustStyle(e){return function A5(t){return new k5(t)}(e)}bypassSecurityTrustScript(e){return function I5(t){return new D5(t)}(e)}bypassSecurityTrustUrl(e){return function F5(t){return new S5(t)}(e)}bypassSecurityTrustResourceUrl(e){return function R5(t){return new E5(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:function(e){let n=null;return n=e?new e:function j$(t){return new VM(t.get(nt))}(G(tn)),n},providedIn:"root"}),t})();function $e(...t){return Ji(t,_u(t))}class Vn extends ke{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){const{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}}const lh=dc(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:W$}=Array,{getPrototypeOf:G$,prototype:q$,keys:X$}=Object;function HM(t){if(1===t.length){const i=t[0];if(W$(i))return{args:i,keys:null};if(function Q$(t){return t&&"object"==typeof t&&G$(t)===q$}(i)){const e=X$(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}const{isArray:Y$}=Array;function Bx(t){return Ke(i=>function K$(t,i){return Y$(i)?t(...i):t(i)}(t,i))}function UM(t,i){return t.reduce((e,n,r)=>(e[n]=i[r],e),{})}function Fc(...t){const i=_u(t),e=sk(t),{args:n,keys:r}=HM(t);if(0===n.length)return Ji([],i);const o=new ni(function Z$(t,i,e=Cs){return n=>{zM(i,()=>{const{length:r}=t,o=new Array(r);let a=r,s=r;for(let c=0;c{const l=Ji(t[c],i);let d=!1;l.subscribe(Bi(n,u=>{o[c]=u,d||(d=!0,s--),s||n.next(e(o.slice()))},()=>{--a||n.complete()}))},n)},n)}}(n,i,r?a=>UM(r,a):Cs));return e?o.pipe(Bx(e)):o}function zM(t,i,e){t?Ba(e,t,i):i()}function dh(...t){return function J$(){return El(1)}()(Ji(t,_u(t)))}function gd(t){return new ni(i=>{Yn(t()).subscribe(i)})}function Rc(t,i){const e=Wt(t)?t:()=>t,n=r=>r.error(e());return new ni(i?r=>i.schedule(n,0,r):n)}function Vx(){return Gi((t,i)=>{let e=null;t._refCount++;const n=Bi(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}class Hx extends ni{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,qC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new yt;const e=this.getSubject();i.add(this.source.subscribe(Bi(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=yt.EMPTY)}return i}refCount(){return Vx()(this)}}function mn(t,i){return Gi((e,n)=>{let r=null,o=0,a=!1;const s=()=>a&&!r&&n.complete();e.subscribe(Bi(n,c=>{r?.unsubscribe();let l=0;const d=o++;Yn(t(c,d)).subscribe(r=Bi(n,u=>n.next(i?i(c,u,d,l++):u),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function ui(t){return t<=0?()=>Wr:Gi((i,e)=>{let n=0;i.subscribe(Bi(e,r=>{++n<=t&&(e.next(r),t<=n&&e.complete())}))})}function Hn(...t){const i=_u(t);return Gi((e,n)=>{(i?dh(t,e,i):dh(t,e)).subscribe(n)})}function hi(t,i){return Gi((e,n)=>{let r=0;e.subscribe(Bi(n,o=>t.call(i,o,r++)&&n.next(o)))})}function zp(t){return Gi((i,e)=>{let n=!1;i.subscribe(Bi(e,r=>{n=!0,e.next(r)},()=>{n||e.next(t),e.complete()}))})}function $M(t=ej){return Gi((i,e)=>{let n=!1;i.subscribe(Bi(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(t())))})}function ej(){return new lh}function vo(t,i){const e=arguments.length>=2;return n=>n.pipe(t?hi((r,o)=>t(r,o,n)):Cs,ui(1),e?zp(i):$M(()=>new lh))}function Is(t,i){return Wt(i)?En(t,i,1):En(t,1)}function zi(t,i,e){const n=Wt(t)||i||e?{next:t,error:i,complete:e}:t;return n?Gi((r,o)=>{var a;null===(a=n.subscribe)||void 0===a||a.call(n);let s=!0;r.subscribe(Bi(o,c=>{var l;null===(l=n.next)||void 0===l||l.call(n,c),o.next(c)},()=>{var c;s=!1,null===(c=n.complete)||void 0===c||c.call(n),o.complete()},c=>{var l;s=!1,null===(l=n.error)||void 0===l||l.call(n,c),o.error(c)},()=>{var c,l;s&&(null===(c=n.unsubscribe)||void 0===c||c.call(n)),null===(l=n.finalize)||void 0===l||l.call(n)}))}):Cs}function pn(t){return Gi((i,e)=>{let o,n=null,r=!1;n=i.subscribe(Bi(e,void 0,void 0,a=>{o=Yn(t(a,pn(t)(i))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(e))})}function jM(t,i){return Gi(function tj(t,i,e,n,r){return(o,a)=>{let s=e,c=i,l=0;o.subscribe(Bi(a,d=>{const u=l++;c=s?t(c,d,u):(s=!0,d),n&&a.next(c)},r&&(()=>{s&&a.next(c),a.complete()})))}}(t,i,arguments.length>=2,!0))}function Ux(t){return t<=0?()=>Wr:Gi((i,e)=>{let n=[];i.subscribe(Bi(e,r=>{n.push(r),t{for(const r of n)e.next(r);e.complete()},void 0,()=>{n=null}))})}function WM(t,i){const e=arguments.length>=2;return n=>n.pipe(t?hi((r,o)=>t(r,o,n)):Cs,Ux(1),e?zp(i):$M(()=>new lh))}function GM(t,i=!1){return Gi((e,n)=>{let r=0;e.subscribe(Bi(n,o=>{const a=t(o,r++);(a||i)&&n.next(o),!a&&n.complete()}))})}function qM(t){return Ke(()=>t)}function $p(t){return Gi((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}const St="primary",uh=Symbol("RouteTitle");class ij{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function _d(t){return new ij(t)}function nj(t,i,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.lengthn[o]===r)}return t===i}function QM(t){return Array.prototype.concat.apply([],t)}function YM(t){return t.length>0?t[t.length-1]:null}function qn(t,i){for(const e in t)t.hasOwnProperty(e)&&i(t[e],e)}function Fs(t){return yv(t)?t:ju(t)?Ji(Promise.resolve(t)):$e(t)}const jp=!1,oj={exact:function JM(t,i,e){if(!Oc(t.segments,i.segments)||!Wp(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!JM(t.children[n],i.children[n],e))return!1;return!0},subset:eA},KM={exact:function aj(t,i){return _a(t,i)},subset:function sj(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>XM(t[e],i[e]))},ignored:()=>!0};function ZM(t,i,e){return oj[e.paths](t.root,i.root,e.matrixParams)&&KM[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function eA(t,i,e){return tA(t,i,i.segments,e)}function tA(t,i,e,n){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Oc(r,e)||i.hasChildren()||!Wp(r,e,n))}if(t.segments.length===e.length){if(!Oc(t.segments,e)||!Wp(t.segments,e,n))return!1;for(const r in i.children)if(!t.children[r]||!eA(t.children[r],i.children[r],n))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Oc(t.segments,r)&&Wp(t.segments,r,n)&&t.children[St])&&tA(t.children[St],i,o,n)}}function Wp(t,i,e){return i.every((n,r)=>KM[e](t[r].parameters,n.parameters))}class Rs{constructor(i=new Ut([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_d(this.queryParams)),this._queryParamMap}toString(){return dj.serialize(this)}}class Ut{constructor(i,e){this.segments=i,this.children=e,this.parent=null,qn(e,(n,r)=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gp(this)}}class hh{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=_d(this.parameters)),this._parameterMap}toString(){return rA(this)}}function Oc(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let fh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return new zx},providedIn:"root"}),t})();class zx{parse(i){const e=new vj(i);return new Rs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${mh(i.root,!0)}`,n=function fj(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(r=>`${qp(e)}=${qp(r)}`).join("&"):`${qp(e)}=${qp(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function uj(t){return encodeURI(t)}(i.fragment)}`:""}`}}const dj=new zx;function Gp(t){return t.segments.map(i=>rA(i)).join("/")}function mh(t,i){if(!t.hasChildren())return Gp(t);if(i){const e=t.children[St]?mh(t.children[St],!1):"",n=[];return qn(t.children,(r,o)=>{o!==St&&n.push(`${o}:${mh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function lj(t,i){let e=[];return qn(t.children,(n,r)=>{r===St&&(e=e.concat(i(n,r)))}),qn(t.children,(n,r)=>{r!==St&&(e=e.concat(i(n,r)))}),e}(t,(n,r)=>r===St?[mh(t.children[St],!1)]:[`${r}:${mh(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[St]?`${Gp(t)}/${e[0]}`:`${Gp(t)}/(${e.join("//")})`}}function iA(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qp(t){return iA(t).replace(/%3B/gi,";")}function $x(t){return iA(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xp(t){return decodeURIComponent(t)}function nA(t){return Xp(t.replace(/\+/g,"%20"))}function rA(t){return`${$x(t.path)}${function hj(t){return Object.keys(t).map(i=>`;${$x(i)}=${$x(t[i])}`).join("")}(t.parameters)}`}const mj=/^[^\/()?;=#]+/;function Qp(t){const i=t.match(mj);return i?i[0]:""}const pj=/^[^=?&#]+/,_j=/^[^&#]+/;class vj{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ut([],{}):new Ut([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[St]=new Ut(i,e)),n}parseSegment(){const i=Qp(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new ue(4009,jp);return this.capture(i),new hh(Xp(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=Qp(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=Qp(this.remaining);r&&(n=r,this.capture(n))}i[Xp(e)]=Xp(n)}parseQueryParam(i){const e=function gj(t){const i=t.match(pj);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const a=function bj(t){const i=t.match(_j);return i?i[0]:""}(this.remaining);a&&(n=a,this.capture(n))}const r=nA(e),o=nA(n);if(i.hasOwnProperty(r)){let a=i[r];Array.isArray(a)||(a=[a],i[r]=a),a.push(o)}else i[r]=o}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Qp(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new ue(4010,jp);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):i&&(o=St);const a=this.parseChildren();e[o]=1===Object.keys(a).length?a[St]:new Ut([],a),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new ue(4011,jp)}}function jx(t){return t.segments.length>0?new Ut([],{[St]:t}):t}function Yp(t){const i={};for(const n of Object.keys(t.children)){const o=Yp(t.children[n]);(o.segments.length>0||o.hasChildren())&&(i[n]=o)}return function xj(t){if(1===t.numberOfChildren&&t.children[St]){const i=t.children[St];return new Ut(t.segments.concat(i.segments),i.children)}return t}(new Ut(t.segments,i))}function Pc(t){return t instanceof Rs}const Wx=!1;function yj(t,i,e,n,r){if(0===e.length)return bd(i.root,i.root,i.root,n,r);const o=function lA(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new cA(!0,0,t);let i=0,e=!1;const n=t.reduce((r,o,a)=>{if("object"==typeof o&&null!=o){if(o.outlets){const s={};return qn(o.outlets,(c,l)=>{s[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===a?(o.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?e=!0:".."===s?i++:""!=s&&r.push(s))}),r):[...r,o]},[]);return new cA(e,i,n)}(e);return o.toRoot()?bd(i.root,i.root,new Ut([],{}),n,r):function a(c){const l=function Cj(t,i,e,n){if(t.isAbsolute)return new vd(i.root,!0,0);if(-1===n)return new vd(e,e===i.root,0);return function dA(t,i,e){let n=t,r=i,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new ue(4005,Wx&&"Invalid number of '../'");r=n.segments.length}return new vd(n,!1,r-o)}(e,n+(ph(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,i,t.snapshot?._urlSegment,c),d=l.processChildren?xd(l.segmentGroup,l.index,o.commands):Gx(l.segmentGroup,l.index,o.commands);return bd(i.root,l.segmentGroup,d,n,r)}(t.snapshot?._lastPathIndex)}function ph(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function gh(t){return"object"==typeof t&&null!=t&&t.outlets}function bd(t,i,e,n,r){let a,o={};n&&qn(n,(c,l)=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`}),a=t===i?e:sA(t,i,e);const s=jx(Yp(a));return new Rs(s,o,r)}function sA(t,i,e){const n={};return qn(t.children,(r,o)=>{n[o]=r===i?e:sA(r,i,e)}),new Ut(t.segments,n)}class cA{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&ph(n[0]))throw new ue(4003,Wx&&"Root segment cannot have matrix parameters");const r=n.find(gh);if(r&&r!==YM(n))throw new ue(4004,Wx&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class vd{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function Gx(t,i,e){if(t||(t=new Ut([],{})),0===t.segments.length&&t.hasChildren())return xd(t,i,e);const n=function Dj(t,i,e){let n=0,r=i;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const a=t.segments[r],s=e[n];if(gh(s))break;const c=`${s}`,l=n0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!hA(c,l,a))return o;n+=2}else{if(!hA(c,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,i,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[a]=Gx(t.children[a],i,o))}),qn(t.children,(o,a)=>{void 0===n[a]&&(r[a]=o)}),new Ut(t.segments,r)}}function qx(t,i,e){const n=t.segments.slice(0,i);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(i[n]=qx(new Ut([],{}),0,e))}),i}function uA(t){const i={};return qn(t,(e,n)=>i[n]=`${e}`),i}function hA(t,i,e){return t==e.path&&_a(i,e.parameters)}const _h="imperative";class ba{constructor(i,e){this.id=i,this.url=e}}class Xx extends ba{constructor(i,e,n="imperative",r=null){super(i,e),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Os extends ba{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Kp extends ba{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Zp extends ba{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=16}}class Qx extends ba{constructor(i,e,n,r){super(i,e),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ej extends ba{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Tj extends ba{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mj extends ba{constructor(i,e,n,r,o){super(i,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Aj extends ba{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ij extends ba{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fj{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Rj{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Oj{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pj{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Lj{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Nj{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fA{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Hj=(()=>{class t{createUrlTree(e,n,r,o,a,s){return yj(e||n.root,r,o,a,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),zj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(i){return Hj.\u0275fac(i)},providedIn:"root"}),t})();class mA{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=Yx(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=Yx(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=Kx(i,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==i)}pathFromRoot(i){return Kx(i,this._root).map(e=>e.value)}}function Yx(t,i){if(t===i.value)return i;for(const e of i.children){const n=Yx(t,e);if(n)return n}return null}function Kx(t,i){if(t===i.value)return[i];for(const e of i.children){const n=Kx(t,e);if(n.length)return n.unshift(i),n}return[]}class is{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function yd(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class pA extends mA{constructor(i,e){super(i),this.snapshot=e,Zx(this,i)}toString(){return this.snapshot.toString()}}function gA(t,i){const e=function $j(t,i){const a=new Jp([],{},{},"",{},St,i,null,t.root,-1,{});return new bA("",new is(a,[]))}(t,i),n=new Vn([new hh("",{})]),r=new Vn({}),o=new Vn({}),a=new Vn({}),s=new Vn(""),c=new wd(n,r,a,s,o,St,i,e.root);return c.snapshot=e.root,new pA(new is(c,[]),e)}class wd{constructor(i,e,n,r,o,a,s,c){this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.title=this.data?.pipe(Ke(l=>l[uh]))??$e(void 0),this._futureSnapshot=c}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Ke(i=>_d(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ke(i=>_d(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function _A(t,i="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==i)for(n=e.length-1;n>=1;){const r=e[n],o=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function jj(t){return t.reduce((i,e)=>({params:{...i.params,...e.params},data:{...i.data,...e.data},resolve:{...e.data,...i.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class Jp{get title(){return this.data?.[uh]}constructor(i,e,n,r,o,a,s,c,l,d,u){this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=_d(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_d(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class bA extends mA{constructor(i,e){super(e),this.url=i,Zx(this,e)}toString(){return vA(this._root)}}function Zx(t,i){i.value._routerState=t,i.children.forEach(e=>Zx(t,e))}function vA(t){const i=t.children.length>0?` { ${t.children.map(vA).join(", ")} } `:"";return`${t.value}${i}`}function Jx(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_a(i.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),i.fragment!==e.fragment&&t.fragment.next(e.fragment),_a(i.params,e.params)||t.params.next(e.params),function rj(t,i){if(t.length!==i.length)return!1;for(let e=0;e_a(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||ey(t.parent,i.parent))}function bh(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const r=function Gj(t,i,e){return i.children.map(n=>{for(const r of e.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return bh(t,n,r);return bh(t,n)})}(t,i,e);return new is(n,r)}{if(t.shouldAttach(i.value)){const o=t.retrieve(i.value);if(null!==o){const a=o.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>bh(t,s)),a}}const n=function qj(t){return new wd(new Vn(t.url),new Vn(t.params),new Vn(t.queryParams),new Vn(t.fragment),new Vn(t.data),t.outlet,t.component,t)}(i.value),r=i.children.map(o=>bh(t,o));return new is(n,r)}}const ty="ngNavigationCancelingError";function xA(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=Pc(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,r=yA(!1,0,i);return r.url=e,r.navigationBehaviorOptions=n,r}function yA(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[ty]=!0,n.cancellationCode=i,e&&(n.url=e),n}function wA(t){return CA(t)&&Pc(t.url)}function CA(t){return t&&t[ty]}class Xj{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new vh,this.attachRef=null}}let vh=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Xj,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const eg=!1;let iy=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=St,this.activateEvents=new xe,this.deactivateEvents=new xe,this.attachEvents=new xe,this.detachEvents=new xe,this.parentContexts=ht(vh),this.location=ht(Fi),this.changeDetector=ht(Gt),this.environmentInjector=ht(la)}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:r}=e.name;if(n)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ue(4012,eg);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,eg);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,eg);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ue(4013,eg);this._activatedRoute=e;const r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new Qj(e,s,r.injector);if(n&&function Yj(t){return!!t.resolveComponentFactory}(n)){const l=n.resolveComponentFactory(a);this.activated=r.createComponent(l,r.length,c)}else this.activated=r.createComponent(a,{index:r.length,injector:c,environmentInjector:n??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ei]}),t})();class Qj{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===wd?this.route:i===vh?this.childContexts:this.parent.get(i,e)}}let ny=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ve({type:t,selectors:[["ng-component"]],standalone:!0,features:[Lv],decls:1,vars:0,template:function(e,n){1&e&&Se(0,"router-outlet")},dependencies:[iy],encapsulation:2}),t})();function kA(t,i){return t.providers&&!t._injector&&(t._injector=mp(t.providers,i,`Route: ${t.path}`)),t._injector??i}function oy(t){const i=t.children&&t.children.map(oy),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==St&&(e.component=ny),e}function xo(t){return t.outlet||St}function DA(t,i){const e=t.filter(n=>xo(n)===i);return e.push(...t.filter(n=>xo(n)!==i)),e}function xh(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class tW{constructor(i,e,n,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(i){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),Jx(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const r=yd(e);i.children.forEach(o=>{const a=o.value.outlet;this.deactivateRoutes(o,r[a],n),delete r[a]}),qn(r,(o,a)=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(i,e,n){const r=i.value,o=e?e.value:null;if(r===o)if(r.component){const a=n.getContext(r.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=yd(i);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);if(n&&n.outlet){const a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){const n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=yd(i);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(i,e,n){const r=yd(e);i.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Nj(o.value.snapshot))}),i.children.length&&this.forwardEvent(new Pj(i.value.snapshot))}activateRoutes(i,e,n){const r=i.value,o=e?e.value:null;if(Jx(r),r===o)if(r.component){const a=n.getOrCreateContext(r.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(r.component){const a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Jx(s.route.value),this.activateChildRoutes(i,null,a.children)}else{const s=xh(r.snapshot),c=s?.get(Ss)??null;a.attachRef=null,a.route=r,a.resolver=c,a.injector=s,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(i,null,a.children)}}else this.activateChildRoutes(i,null,n)}}class SA{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class tg{constructor(i,e){this.component=i,this.route=e}}function iW(t,i,e){const n=t._root;return yh(n,i?i._root:null,e,[n.value])}function Cd(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function _8(t){return null!==mm(t)}(t)?i.get(t):t:n}function yh(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=yd(i);return t.children.forEach(a=>{(function rW(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function oW(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!Oc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Oc(t.url,i.url)||!_a(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ey(t,i)||!_a(t.queryParams,i.queryParams);default:return!ey(t,i)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new SA(n)):(o.data=a.data,o._resolvedData=a._resolvedData),yh(t,i,o.component?s?s.children:null:e,n,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new tg(s.outlet.component,a))}else a&&wh(i,s,r),r.canActivateChecks.push(new SA(n)),yh(t,null,o.component?s?s.children:null:e,n,r)})(a,o[a.value.outlet],e,n.concat([a.value]),r),delete o[a.value.outlet]}),qn(o,(a,s)=>wh(a,e.getContext(s),r)),r}function wh(t,i,e){const n=yd(t),r=t.value;qn(n,(o,a)=>{wh(o,r.component?i?i.children.getContext(a):null:i,e)}),e.canDeactivateChecks.push(new tg(r.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,r))}function Ch(t){return"function"==typeof t}function ay(t){return t instanceof lh||"EmptyError"===t?.name}const ig=Symbol("INITIAL_VALUE");function kd(){return mn(t=>Fc(t.map(i=>i.pipe(ui(1),Hn(ig)))).pipe(Ke(i=>{for(const e of i)if(!0!==e){if(e===ig)return ig;if(!1===e||e instanceof Rs)return e}return!0}),hi(i=>i!==ig),ui(1)))}function EA(t){return function V3(...t){return jC(t)}(zi(i=>{if(Pc(i))throw xA(0,i)}),Ke(i=>!0===i))}const sy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function TA(t,i,e,n,r){const o=cy(t,i,e);return o.matched?function wW(t,i,e,n){const r=i.canMatch;return r&&0!==r.length?$e(r.map(a=>{const s=Cd(a,t);return Fs(function uW(t){return t&&Ch(t.canMatch)}(s)?s.canMatch(i,e):t.runInContext(()=>s(i,e)))})).pipe(kd(),EA()):$e(!0)}(n=kA(i,n),i,e).pipe(Ke(a=>!0===a?o:{...sy})):$e(o)}function cy(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...sy}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(i.matcher||nj)(e,t,i);if(!r)return{...sy};const o={};qn(r.posParams,(s,c)=>{o[c]=s.path});const a=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function ng(t,i,e,n){if(e.length>0&&function DW(t,i,e){return e.some(n=>rg(t,i,n)&&xo(n)!==St)}(t,e,n)){const o=new Ut(i,function kW(t,i,e,n){const r={};r[St]=n,n._sourceSegment=t,n._segmentIndexShift=i.length;for(const o of e)if(""===o.path&&xo(o)!==St){const a=new Ut([],{});a._sourceSegment=t,a._segmentIndexShift=i.length,r[xo(o)]=a}return r}(t,i,n,new Ut(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function SW(t,i,e){return e.some(n=>rg(t,i,n))}(t,e,n)){const o=new Ut(t.segments,function CW(t,i,e,n,r){const o={};for(const a of n)if(rg(t,e,a)&&!r[xo(a)]){const s=new Ut([],{});s._sourceSegment=t,s._segmentIndexShift=i.length,o[xo(a)]=s}return{...r,...o}}(t,i,e,n,t.children));return o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:e}}const r=new Ut(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:e}}function rg(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function MA(t,i,e,n){return!!(xo(t)===n||n!==St&&rg(i,e,t))&&("**"===t.path||cy(i,t,e).matched)}function AA(t,i,e){return 0===i.length&&!t.children[e]}const og=!1;class ag{constructor(i){this.segmentGroup=i||null}}class IA{constructor(i){this.urlTree=i}}function kh(t){return Rc(new ag(t))}function FA(t){return Rc(new IA(t))}class AW{constructor(i,e,n,r,o){this.injector=i,this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const i=ng(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ut(i.segments,i.children);return this.expandSegmentGroup(this.injector,this.config,e,St).pipe(Ke(o=>this.createUrlTree(Yp(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(pn(o=>{if(o instanceof IA)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof ag?this.noMatchError(o):o}))}match(i){return this.expandSegmentGroup(this.injector,this.config,i.root,St).pipe(Ke(r=>this.createUrlTree(Yp(r),i.queryParams,i.fragment))).pipe(pn(r=>{throw r instanceof ag?this.noMatchError(r):r}))}noMatchError(i){return new ue(4002,og)}createUrlTree(i,e,n){const r=jx(i);return new Rs(r,e,n)}expandSegmentGroup(i,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(i,e,n).pipe(Ke(o=>new Ut([],o))):this.expandSegment(i,n,e,n.segments,r,!0)}expandChildren(i,e,n){const r=[];for(const o of Object.keys(n.children))"primary"===o?r.unshift(o):r.push(o);return Ji(r).pipe(Is(o=>{const a=n.children[o],s=DA(e,o);return this.expandSegmentGroup(i,s,a,o).pipe(Ke(c=>({segment:c,outlet:o})))}),jM((o,a)=>(o[a.outlet]=a.segment,o),{}),WM())}expandSegment(i,e,n,r,o,a){return Ji(n).pipe(Is(s=>this.expandSegmentAgainstRoute(i,e,n,s,r,o,a).pipe(pn(l=>{if(l instanceof ag)return $e(null);throw l}))),vo(s=>!!s),pn((s,c)=>{if(ay(s))return AA(e,r,o)?$e(new Ut([],{})):kh(e);throw s}))}expandSegmentAgainstRoute(i,e,n,r,o,a,s){return MA(r,e,o,a)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(i,e,r,o,a):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a):kh(e):kh(e)}expandSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,r){const o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?FA(o):this.lineralizeSegments(n,o).pipe(En(a=>{const s=new Ut(a,{});return this.expandSegment(i,s,e,a,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a){const{matched:s,consumedSegments:c,remainingSegments:l,positionalParamSegments:d}=cy(e,r,o);if(!s)return kh(e);const u=this.applyRedirectCommands(c,r.redirectTo,d);return r.redirectTo.startsWith("/")?FA(u):this.lineralizeSegments(r,u).pipe(En(h=>this.expandSegment(i,e,n,h.concat(l),a,!1)))}matchSegmentAgainstRoute(i,e,n,r,o){return"**"===n.path?(i=kA(n,i),n.loadChildren?(n._loadedRoutes?$e({routes:n._loadedRoutes,injector:n._loadedInjector}):this.configLoader.loadChildren(i,n)).pipe(Ke(s=>(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,new Ut(r,{})))):$e(new Ut(r,{}))):TA(e,n,r,i).pipe(mn(({matched:a,consumedSegments:s,remainingSegments:c})=>a?this.getChildConfig(i=n._injector??i,n,r).pipe(En(d=>{const u=d.injector??i,h=d.routes,{segmentGroup:f,slicedSegments:m}=ng(e,s,c,h),g=new Ut(f.segments,f.children);if(0===m.length&&g.hasChildren())return this.expandChildren(u,h,g).pipe(Ke(x=>new Ut(s,x)));if(0===h.length&&0===m.length)return $e(new Ut(s,{}));const p=xo(n)===o;return this.expandSegment(u,g,h,m,p?St:o,!0).pipe(Ke(w=>new Ut(s.concat(w.segments),w.children)))})):kh(e)))}getChildConfig(i,e,n){return e.children?$e({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?$e({routes:e._loadedRoutes,injector:e._loadedInjector}):function yW(t,i,e,n){const r=i.canLoad;return void 0===r||0===r.length?$e(!0):$e(r.map(a=>{const s=Cd(a,t);return Fs(function sW(t){return t&&Ch(t.canLoad)}(s)?s.canLoad(i,e):t.runInContext(()=>s(i,e)))})).pipe(kd(),EA())}(i,e,n).pipe(En(r=>r?this.configLoader.loadChildren(i,e).pipe(zi(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function TW(t){return Rc(yA(og,3))}())):$e({routes:[],injector:i})}lineralizeSegments(i,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return $e(n);if(r.numberOfChildren>1||!r.children[St])return i.redirectTo,Rc(new ue(4e3,og));r=r.children[St]}}applyRedirectCommands(i,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreateUrlTree(i,e,n,r){const o=this.createSegmentGroup(i,e.root,n,r);return new Rs(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const n={};return qn(i,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,r){const o=this.createSegments(i,e.segments,n,r);let a={};return qn(e.children,(s,c)=>{a[c]=this.createSegmentGroup(i,s,n,r)}),new Ut(o,a)}createSegments(i,e,n,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(i,o,r):this.findOrReturn(o,n))}findPosParam(i,e,n){const r=n[e.path.substring(1)];if(!r)throw new ue(4001,og);return r}findOrReturn(i,e){let n=0;for(const r of e){if(r.path===i.path)return e.splice(n),r;n++}return i}}class FW{}class PW{constructor(i,e,n,r,o,a,s){this.injector=i,this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s}recognize(){const i=ng(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,St).pipe(Ke(e=>{if(null===e)return null;const n=new Jp([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},St,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new is(n,e),o=new bA(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(i){const e=i.value,n=_A(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(i,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(i,e,n):this.processSegment(i,e,n,n.segments,r)}processChildren(i,e,n){return Ji(Object.keys(n.children)).pipe(Is(r=>{const o=n.children[r],a=DA(e,r);return this.processSegmentGroup(i,a,o,r)}),jM((r,o)=>r&&o?(r.push(...o),r):null),GM(r=>null!==r),zp(null),WM(),Ke(r=>{if(null===r)return null;const o=OA(r);return function LW(t){t.sort((i,e)=>i.value.outlet===St?-1:e.value.outlet===St?1:i.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(i,e,n,r,o){return Ji(e).pipe(Is(a=>this.processSegmentAgainstRoute(a._injector??i,a,n,r,o)),vo(a=>!!a),pn(a=>{if(ay(a))return AA(n,r,o)?$e([]):$e(null);throw a}))}processSegmentAgainstRoute(i,e,n,r,o){if(e.redirectTo||!MA(e,n,r,o))return $e(null);let a;if("**"===e.path){const s=r.length>0?YM(r).parameters:{},c=LA(n)+r.length;a=$e({snapshot:new Jp(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,NA(e),xo(e),e.component??e._loadedComponent??null,e,PA(n),c,BA(e)),consumedSegments:[],remainingSegments:[]})}else a=TA(n,e,r,i).pipe(Ke(({matched:s,consumedSegments:c,remainingSegments:l,parameters:d})=>{if(!s)return null;const u=LA(n)+c.length;return{snapshot:new Jp(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,NA(e),xo(e),e.component??e._loadedComponent??null,e,PA(n),u,BA(e)),consumedSegments:c,remainingSegments:l}}));return a.pipe(mn(s=>{if(null===s)return $e(null);const{snapshot:c,consumedSegments:l,remainingSegments:d}=s;i=e._injector??i;const u=e._loadedInjector??i,h=function NW(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:m}=ng(n,l,d,h.filter(p=>void 0===p.redirectTo));if(0===m.length&&f.hasChildren())return this.processChildren(u,h,f).pipe(Ke(p=>null===p?null:[new is(c,p)]));if(0===h.length&&0===m.length)return $e([new is(c,[])]);const g=xo(e)===o;return this.processSegment(u,h,f,m,g?St:o).pipe(Ke(p=>null===p?null:[new is(c,p)]))}))}}function BW(t){const i=t.value.routeConfig;return i&&""===i.path&&void 0===i.redirectTo}function OA(t){const i=[],e=new Set;for(const n of t){if(!BW(n)){i.push(n);continue}const r=i.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...n.children),e.add(r)):i.push(n)}for(const n of e){const r=OA(n.children);i.push(new is(n.value,r))}return i.filter(n=>!e.has(n))}function PA(t){let i=t;for(;i._sourceSegment;)i=i._sourceSegment;return i}function LA(t){let i=t,e=i._segmentIndexShift??0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift??0;return e-1}function NA(t){return t.data||{}}function BA(t){return t.resolve||{}}function VA(t){return"string"==typeof t.title||null===t.title}function ly(t){return mn(i=>{const e=t(i);return e?Ji(e).pipe(Ke(()=>i)):$e(i)})}const Dd=new ae("ROUTES");let dy=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=ht(h2)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return $e(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=Fs(e.loadComponent()).pipe(Ke(UA),zi(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),$p(()=>{this.componentLoaders.delete(e)})),r=new Hx(n,()=>new ke).pipe(Vx());return this.componentLoaders.set(e,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return $e({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactoryOrRoutes(n.loadChildren).pipe(Ke(s=>{this.onLoadEndListener&&this.onLoadEndListener(n);let c,l,d=!1;Array.isArray(s)?l=s:(c=s.create(e).injector,l=QM(c.get(Dd,[],gt.Self|gt.Optional)));return{routes:l.map(oy),injector:c}}),$p(()=>{this.childrenLoaders.delete(n)})),a=new Hx(o,()=>new ke).pipe(Vx());return this.childrenLoaders.set(n,a),a}loadModuleFactoryOrRoutes(e){return Fs(e()).pipe(Ke(UA),En(n=>n instanceof CT||Array.isArray(n)?$e(n):Ji(this.compiler.compileModuleAsync(n))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function UA(t){return function GW(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let cg=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new ke,this.configLoader=ht(dy),this.environmentInjector=ht(la),this.urlSerializer=ht(fh),this.rootContexts=ht(vh),this.navigationId=0,this.afterPreactivation=()=>$e(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new Rj(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new Fj(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e){return this.transitions=new Vn({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:_h,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(hi(n=>0!==n.id),Ke(n=>({...n,extractedUrl:e.urlHandlingStrategy.extract(n.rawUrl)})),mn(n=>{let r=!1,o=!1;return $e(n).pipe(zi(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),mn(a=>{const s=e.browserUrlTree.toString(),c=!e.navigated||a.extractedUrl.toString()!==s||s!==e.currentUrlTree.toString();if(!c&&"reload"!==(a.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new Zp(a.id,e.serializeUrl(n.rawUrl),d,0)),e.rawUrlTree=a.rawUrl,a.resolve(null),Wr}if(e.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return zA(a.source)&&(e.browserUrlTree=a.extractedUrl),$e(a).pipe(mn(d=>{const u=this.transitions?.getValue();return this.events.next(new Xx(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),u!==this.transitions?.getValue()?Wr:Promise.resolve(d)}),function IW(t,i,e,n){return mn(r=>function MW(t,i,e,n,r){return new AW(t,i,e,n,r).apply()}(t,i,e,r.extractedUrl,n).pipe(Ke(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),zi(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},n.urlAfterRedirects=d.urlAfterRedirects}),function HW(t,i,e,n,r){return En(o=>function OW(t,i,e,n,r,o,a="emptyOnly"){return new PW(t,i,e,n,r,a,o).recognize().pipe(mn(s=>null===s?function RW(t){return new ni(i=>i.error(t))}(new FW):$e(s)))}(t,i,e,o.urlAfterRedirects,n.serialize(o.urlAfterRedirects),n,r).pipe(Ke(a=>({...o,targetSnapshot:a}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),zi(d=>{if(n.targetSnapshot=d.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=e.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);e.setBrowserUrl(h,d)}e.browserUrlTree=d.urlAfterRedirects}const u=new Ej(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}));if(c&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:d,extractedUrl:u,source:h,restoredState:f,extras:m}=a,g=new Xx(d,this.urlSerializer.serialize(u),h,f);this.events.next(g);const p=gA(u,this.rootComponentType).snapshot;return $e(n={...a,targetSnapshot:p,urlAfterRedirects:u,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}{const d="";return this.events.next(new Zp(a.id,e.serializeUrl(n.extractedUrl),d,1)),e.rawUrlTree=a.rawUrl,a.resolve(null),Wr}}),zi(a=>{const s=new Tj(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),Ke(a=>n={...a,guards:iW(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function fW(t,i){return En(e=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return 0===a.length&&0===o.length?$e({...e,guardsResult:!0}):function mW(t,i,e,n){return Ji(t).pipe(En(r=>function xW(t,i,e,n,r){const o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return o&&0!==o.length?$e(o.map(s=>{const c=xh(i)??r,l=Cd(s,c);return Fs(function dW(t){return t&&Ch(t.canDeactivate)}(l)?l.canDeactivate(t,i,e,n):c.runInContext(()=>l(t,i,e,n))).pipe(vo())})).pipe(kd()):$e(!0)}(r.component,r.route,e,i,n)),vo(r=>!0!==r,!0))}(a,n,r,t).pipe(En(s=>s&&function aW(t){return"boolean"==typeof t}(s)?function pW(t,i,e,n){return Ji(i).pipe(Is(r=>dh(function _W(t,i){return null!==t&&i&&i(new Oj(t)),$e(!0)}(r.route.parent,n),function gW(t,i){return null!==t&&i&&i(new Lj(t)),$e(!0)}(r.route,n),function vW(t,i,e){const n=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(a=>function nW(t){const i=t.routeConfig?t.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:t,guards:i}:null}(a)).filter(a=>null!==a).map(a=>gd(()=>$e(a.guards.map(c=>{const l=xh(a.node)??e,d=Cd(c,l);return Fs(function lW(t){return t&&Ch(t.canActivateChild)}(d)?d.canActivateChild(n,t):l.runInContext(()=>d(n,t))).pipe(vo())})).pipe(kd())));return $e(o).pipe(kd())}(t,r.path,e),function bW(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return $e(!0);const r=n.map(o=>gd(()=>{const a=xh(i)??e,s=Cd(o,a);return Fs(function cW(t){return t&&Ch(t.canActivate)}(s)?s.canActivate(i,t):a.runInContext(()=>s(i,t))).pipe(vo())}));return $e(r).pipe(kd())}(t,r.route,e))),vo(r=>!0!==r,!0))}(n,o,t,i):$e(s)),Ke(s=>({...e,guardsResult:s})))})}(this.environmentInjector,a=>this.events.next(a)),zi(a=>{if(n.guardsResult=a.guardsResult,Pc(a.guardsResult))throw xA(0,a.guardsResult);const s=new Mj(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),hi(a=>!!a.guardsResult||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),ly(a=>{if(a.guards.canActivateChecks.length)return $e(a).pipe(zi(s=>{const c=new Aj(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}),mn(s=>{let c=!1;return $e(s).pipe(function UW(t,i){return En(e=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return $e(e);let o=0;return Ji(r).pipe(Is(a=>function zW(t,i,e,n){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!VA(r)&&(o[uh]=r.title),function $W(t,i,e,n){const r=function jW(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return $e({});const o={};return Ji(r).pipe(En(a=>function WW(t,i,e,n){const r=xh(i)??n,o=Cd(t,r);return Fs(o.resolve?o.resolve(i,e):r.runInContext(()=>o(i,e)))}(t[a],i,e,n).pipe(vo(),zi(s=>{o[a]=s}))),Ux(1),qM(o),pn(a=>ay(a)?Wr:Rc(a)))}(o,t,i,n).pipe(Ke(a=>(t._resolvedData=a,t.data=_A(t,e).resolve,r&&VA(r)&&(t.data[uh]=r.title),null)))}(a.route,n,t,i)),zi(()=>o++),Ux(1),En(a=>o===r.length?$e(e):Wr))})}(e.paramsInheritanceStrategy,this.environmentInjector),zi({next:()=>c=!0,complete:()=>{c||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",2))}}))}),zi(s=>{const c=new Ij(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}))}),ly(a=>{const s=c=>{const l=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(c.routeConfig).pipe(zi(d=>{c.component=d}),Ke(()=>{})));for(const d of c.children)l.push(...s(d));return l};return Fc(s(a.targetSnapshot.root)).pipe(zp(),ui(1))}),ly(()=>this.afterPreactivation()),Ke(a=>{const s=function Wj(t,i,e){const n=bh(t,i._root,e?e._root:void 0);return new pA(n,i)}(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return n={...a,targetRouterState:s}}),zi(a=>{e.currentUrlTree=a.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),e.routerState=a.targetRouterState,"deferred"===e.urlUpdateStrategy&&(a.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,a),e.browserUrlTree=a.urlAfterRedirects)}),((t,i,e)=>Ke(n=>(new tW(i,n.targetRouterState,n.currentRouterState,e).activate(t),n)))(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a)),ui(1),zi({next:a=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Os(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{r=!0}}),$p(()=>{r||o||this.cancelNavigationTransition(n,"",1),this.currentNavigation?.id===n.id&&(this.currentNavigation=null)}),pn(a=>{if(o=!0,CA(a)){wA(a)||(e.navigated=!0,e.restoreHistory(n,!0));const s=new Kp(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode);if(this.events.next(s),wA(a)){const c=e.urlHandlingStrategy.merge(a.url,e.rawUrlTree),l={skipLocationChange:n.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||zA(n.source)};e.scheduleNavigation(c,_h,null,l,{resolve:n.resolve,reject:n.reject,promise:n.promise})}else n.resolve(!1)}else{e.restoreHistory(n,!0);const s=new Qx(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);this.events.next(s);try{n.resolve(e.errorHandler(a))}catch(c){n.reject(c)}}return Wr}))}))}cancelNavigationTransition(e,n,r){const o=new Kp(e.id,this.urlSerializer.serialize(e.extractedUrl),n,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function zA(t){return t!==_h}let $A=(()=>{class t{buildTitle(e){let n,r=e.root;for(;void 0!==r;)n=this.getResolvedTitleForRoute(r)??n,r=r.children.find(o=>o.outlet===St);return n}getResolvedTitleForRoute(e){return e.data[uh]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(qW)},providedIn:"root"}),t})(),qW=(()=>{class t extends $A{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}}return t.\u0275fac=function(e){return new(e||t)(G(LM))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),XW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(YW)},providedIn:"root"}),t})();class QW{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let YW=(()=>{class t extends QW{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const lg=new ae("",{providedIn:"root",factory:()=>({})});let ZW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(JW)},providedIn:"root"}),t})(),JW=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function eG(t){throw t}function tG(t,i,e){return i.parse("/")}const iG={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},nG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Pr=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=ht(VU),this.isNgZoneEnabled=!1,this.options=ht(lg,{optional:!0})||{},this.errorHandler=this.options.errorHandler||eG,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||tG,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ht(ZW),this.routeReuseStrategy=ht(XW),this.urlCreationStrategy=ht(zj),this.titleStrategy=ht($A),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=QM(ht(Dd,{optional:!0})??[]),this.navigationTransitions=ht(cg),this.urlSerializer=ht(fh),this.location=ht(ih),this.isNgZoneEnabled=ht(ze)instanceof ze&&ze.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Rs,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=gA(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),_h,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,n,e.state)},0)}))}navigateToSyncWithBrowser(e,n,r){const o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){const c={...r};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const s=this.parseUrl(e);this.scheduleNavigation(s,n,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(oy),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:c}=n,l=c?this.currentUrlTree.fragment:a;let d=null;switch(s){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,d,l??null)}navigateByUrl(e,n={skipLocationChange:!1}){const r=Pc(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,_h,null,n)}navigate(e,n={skipLocationChange:!1}){return function rG(t){for(let i=0;i{const o=e[r];return null!=o&&(n[r]=o),n},{})}scheduleNavigation(e,n,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,c,l,d;return a?(s=a.resolve,c=a.reject,l=a.promise):l=new Promise((u,h)=>{s=u,c=h}),d="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:d,source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(u=>Promise.reject(u))}setBrowserUrl(e,n){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||n.extras.replaceUrl){const a={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(r,"",a)}else{const o={...n.extras.state,...this.generateNgRouterState(n.id,n.targetPageId)};this.location.go(r,"",o)}}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class jA{}let sG=(()=>{class t{constructor(e,n,r,o,a){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(hi(e=>e instanceof Os),Is(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const r=[];for(const o of n){o.providers&&!o._injector&&(o._injector=mp(o.providers,e,`Route: ${o.path}`));const a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Ji(r).pipe(El())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let r;r=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):$e(null);const o=r.pipe(En(a=>null===a?$e(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return n.loadComponent&&!n._loadedComponent?Ji([o,this.loader.loadComponent(n)]).pipe(El()):o})}}return t.\u0275fac=function(e){return new(e||t)(G(Pr),G(h2),G(la),G(jA),G(dy))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const fy=new ae("");let WA=(()=>{class t{constructor(e,n,r,o,a={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=r,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Xx?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Os&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof fA&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new fA(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){da()},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();var eo=(()=>((eo=eo||{})[eo.COMPLETE=0]="COMPLETE",eo[eo.FAILED=1]="FAILED",eo[eo.REDIRECTING=2]="REDIRECTING",eo))();const Sd=!1;function Ps(t,i){return{\u0275kind:t,\u0275providers:i}}const my=new ae("",{providedIn:"root",factory:()=>!1});function qA(){const t=ht(tn);return i=>{const e=t.get(md);if(i!==e.components[0])return;const n=t.get(Pr),r=t.get(XA);1===t.get(py)&&n.initialNavigation(),t.get(QA,null,gt.Optional)?.setUpPreloading(),t.get(fy,null,gt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const XA=new ae(Sd?"bootstrap done indicator":"",{factory:()=>new ke}),py=new ae(Sd?"initial navigation":"",{providedIn:"root",factory:()=>1});function hG(){let t=[];return t=Sd?[{provide:Xm,multi:!0,useFactory:()=>{const i=ht(Pr);return()=>i.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function Bj(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Ps(1,t)}const QA=new ae(Sd?"router preloader":"");function fG(t){return Ps(0,[{provide:QA,useExisting:sG},{provide:jA,useExisting:t}])}const Dh=!1,YA=new ae(Dh?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),mG=[ih,{provide:fh,useClass:zx},Pr,vh,{provide:wd,useFactory:function GA(t){return t.routerState.root},deps:[Pr]},dy,Dh?{provide:my,useValue:!0}:[]];function pG(){return new x2("Router",Pr)}let KA=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[mG,Dh&&n?.enableTracing?hG().\u0275providers:[],{provide:Dd,multi:!0,useValue:e},{provide:YA,useFactory:vG,deps:[[Pr,new sa,new vc]]},{provide:lg,useValue:n||{}},n?.useHash?{provide:Ic,useClass:S9}:{provide:Ic,useClass:$2},{provide:fy,useFactory:()=>{const t=ht(Uz),i=ht(ze),e=ht(lg),n=ht(cg),r=ht(fh);return e.scrollOffset&&t.setOffset(e.scrollOffset),new WA(r,n,t,i,e)}},n?.preloadingStrategy?fG(n.preloadingStrategy).\u0275providers:[],{provide:x2,multi:!0,useFactory:pG},n?.initialNavigation?xG(n):[],[{provide:ZA,useFactory:qA},{provide:v2,multi:!0,useExisting:ZA}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Dd,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(G(YA,8))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[ny]}),t})();function vG(t){if(Dh&&t)throw new ue(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function xG(t){return["disabled"===t.initialNavigation?Ps(3,[{provide:vp,multi:!0,useFactory:()=>{const i=ht(Pr);return()=>{i.setUpLocationChangeListener()}}},{provide:py,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Ps(2,[{provide:py,useValue:0},{provide:vp,multi:!0,deps:[tn],useFactory:i=>{const e=i.get(k9,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const r=i.get(Pr),o=i.get(XA);(function cG(t,i){t.events.pipe(hi(e=>e instanceof Os||e instanceof Kp||e instanceof Qx||e instanceof Zp),Ke(e=>e instanceof Os||e instanceof Zp?eo.COMPLETE:e instanceof Kp&&(0===e.code||1===e.code)?eo.REDIRECTING:eo.FAILED),hi(e=>e!==eo.REDIRECTING),ui(1)).subscribe(()=>{i()})})(r,()=>{n(!0)}),i.get(cg).afterPreactivation=()=>(n(!0),o.closed?$e(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const ZA=new ae(Dh?"Router Initializer":"");function JA(t,i,e,n,r,o,a){try{var s=t[o](a),c=s.value}catch(l){return void e(l)}s.done?i(c):Promise.resolve(c).then(n,r)}function Oi(t){return function(){var i=this,e=arguments;return new Promise(function(n,r){var o=t.apply(i,e);function a(c){JA(o,n,r,a,s,"next",c)}function s(c){JA(o,n,r,a,s,"throw",c)}a(void 0)})}}class gy{}function _y(t){return t&&"function"==typeof t.connect&&!(t instanceof Hx)}class eI{applyChanges(i,e,n,r,o){i.forEachOperation((a,s,c)=>{let l,d;if(null==a.previousIndex){const u=n(a,s,c);l=e.createEmbeddedView(u.templateRef,u.context,u.index),d=1}else null==c?(e.remove(s),d=3):(l=e.get(s),e.move(l,c),d=2);o&&o({context:l?.context,operation:d,record:a})})}detach(){}}class by{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(i=!1,e,n=!0,r){this._multiple=i,this._emitChanges=n,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ke,e&&e.length&&(i?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);const e=this.selected,n=new Set(i);i.forEach(o=>this._markSelected(o)),e.filter(o=>!n.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();const e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(i){if(this.compareWith){for(let e of this._selection)if(this.compareWith(i,e))return e;return i}return i}}let vy=(()=>{class t{constructor(){this._listeners=[]}notify(e,n){for(let r of this._listeners)r(e,n)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(n=>e!==n)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Sh=new ae("_ViewRepeater");function qo(t,i){const e="object"==typeof i;return new Promise((n,r)=>{let a,o=!1;t.subscribe({next:s=>{a=s,o=!0},error:r,complete:()=>{o?n(a):e?n(i.defaultValue):r(new lh)}})})}const xy={now:()=>(xy.delegate||Date).now(),delegate:void 0};class iI extends ke{constructor(i=1/0,e=1/0,n=xy){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){const{isStopped:e,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(n.push(i),!r&&n.push(o.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let a=0;a{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const r=e.slice(0,n),o=r.toLowerCase(),a=e.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{let r;if(r="string"==typeof n?[n]:"number"==typeof n?[n.toString()]:n.map(o=>o.toString()),r.length>0){const o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof va?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new va;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof va?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const r=("a"===i.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const o=i.value;if(o){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===o.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class wG{encodeKey(i){return nI(i)}encodeValue(i){return nI(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const kG=/%(\d[a-f0-9])/gi,DG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function nI(t){return encodeURIComponent(t).replace(kG,(i,e)=>DG[e]??i)}function ug(t){return`${t}`}class Ls{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new wG,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function CG(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[a,s]=-1==o?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,o)),i.decodeValue(r.slice(o+1))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e],r=Array.isArray(n)?n.map(ug):[ug(n)];this.map.set(e,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(n=>{const r=i[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new Ls({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(ug(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const r=n.indexOf(ug(i.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class SG{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function rI(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function oI(t){return typeof Blob<"u"&&t instanceof Blob}function aI(t){return typeof FormData<"u"&&t instanceof FormData}class Eh{constructor(i,e,n,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function EG(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!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new va),this.context||(this.context=new SG),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":su.set(h,i.setHeaders[h]),c)),i.setParams&&(l=Object.keys(i.setParams).reduce((u,h)=>u.set(h,i.setParams[h]),l)),new Eh(e,n,o,{params:l,headers:c,context:d,reportProgress:s,responseType:r,withCredentials:a})}}var gn=(()=>((gn=gn||{})[gn.Sent=0]="Sent",gn[gn.UploadProgress=1]="UploadProgress",gn[gn.ResponseHeader=2]="ResponseHeader",gn[gn.DownloadProgress=3]="DownloadProgress",gn[gn.Response=4]="Response",gn[gn.User=5]="User",gn))();class wy{constructor(i,e=200,n="OK"){this.headers=i.headers||new va,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class Cy extends wy{constructor(i={}){super(i),this.type=gn.ResponseHeader}clone(i={}){return new Cy({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class hg extends wy{constructor(i={}){super(i),this.type=gn.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new hg({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class sI extends wy{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function ky(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Ns=(()=>{class t{constructor(e){this.handler=e}request(e,n,r={}){let o;if(e instanceof Eh)o=e;else{let c,l;c=r.headers instanceof va?r.headers:new va(r.headers),r.params&&(l=r.params instanceof Ls?r.params:new Ls({fromObject:r.params})),o=new Eh(e,n,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=$e(o).pipe(Is(c=>this.handler.handle(c)));if(e instanceof Eh||"events"===r.observe)return a;const s=a.pipe(hi(c=>c instanceof hg));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(Ke(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return s.pipe(Ke(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return s.pipe(Ke(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return s.pipe(Ke(c=>c.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new Ls).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,ky(r,n))}post(e,n,r={}){return this.request("POST",e,ky(r,n))}put(e,n,r={}){return this.request("PUT",e,ky(r,n))}}return t.\u0275fac=function(e){return new(e||t)(G(dg))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();function cI(t,i){return i(t)}function MG(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}const IG=new ae("HTTP_INTERCEPTORS"),Th=new ae("HTTP_INTERCEPTOR_FNS");function FG(){let t=null;return(i,e)=>(null===t&&(t=(ht(IG,{optional:!0})??[]).reduceRight(MG,cI)),t(i,e))}let lI=(()=>{class t extends dg{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const n=Array.from(new Set(this.injector.get(Th)));this.chain=n.reduceRight((r,o)=>function AG(t,i,e){return(n,r)=>e.runInContext(()=>i(n,o=>t(o,r)))}(r,o,this.injector),cI)}return this.chain(e,n=>this.backend.handle(n))}}return t.\u0275fac=function(e){return new(e||t)(G(yy),G(la))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const LG=/^\)\]\}',?\n/;let uI=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ni(n=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,m)=>r.setRequestHeader(f,m.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let a=null;const s=()=>{if(null!==a)return a;const f=r.statusText||"OK",m=new va(r.getAllResponseHeaders()),g=function NG(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new Cy({headers:m,status:r.status,statusText:f,url:g}),a},c=()=>{let{headers:f,status:m,statusText:g,url:p}=s(),_=null;204!==m&&(_=typeof r.response>"u"?r.responseText:r.response),0===m&&(m=_?200:0);let w=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof _){const x=_;_=_.replace(LG,"");try{_=""!==_?JSON.parse(_):null}catch(M){_=x,w&&(w=!1,_={error:M,text:_})}}w?(n.next(new hg({body:_,headers:f,status:m,statusText:g,url:p||void 0})),n.complete()):n.error(new sI({error:_,headers:f,status:m,statusText:g,url:p||void 0}))},l=f=>{const{url:m}=s(),g=new sI({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:m||void 0});n.error(g)};let d=!1;const u=f=>{d||(n.next(s()),d=!0);let m={type:gn.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),"text"===e.responseType&&r.responseText&&(m.partialText=r.responseText),n.next(m)},h=f=>{let m={type:gn.UploadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),n.next(m)};return r.addEventListener("load",c),r.addEventListener("error",l),r.addEventListener("timeout",l),r.addEventListener("abort",l),e.reportProgress&&(r.addEventListener("progress",u),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),n.next({type:gn.Sent}),()=>{r.removeEventListener("error",l),r.removeEventListener("abort",l),r.removeEventListener("load",c),r.removeEventListener("timeout",l),e.reportProgress&&(r.removeEventListener("progress",u),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(G(fM))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const Dy=new ae("XSRF_ENABLED"),hI=new ae("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),fI=new ae("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class mI{}let HG=(()=>{class t{constructor(e,n,r){this.doc=e,this.platform=n,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=J2(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(G(nt),G(yp),G(hI))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();function UG(t,i){const e=t.url.toLowerCase();if(!ht(Dy)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=ht(mI).getToken(),r=ht(fI);return null!=n&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var on=(()=>((on=on||{})[on.Interceptors=0]="Interceptors",on[on.LegacyInterceptors=1]="LegacyInterceptors",on[on.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",on[on.NoXsrfProtection=3]="NoXsrfProtection",on[on.JsonpSupport=4]="JsonpSupport",on[on.RequestsMadeViaParent=5]="RequestsMadeViaParent",on))();function Ed(t,i){return{\u0275kind:t,\u0275providers:i}}function zG(...t){const i=[Ns,uI,lI,{provide:dg,useExisting:lI},{provide:yy,useExisting:uI},{provide:Th,useValue:UG,multi:!0},{provide:Dy,useValue:!0},{provide:mI,useClass:HG}];for(const e of t)i.push(...e.\u0275providers);return function X5(t){return{\u0275providers:t}}(i)}const pI=new ae("LEGACY_INTERCEPTOR_FN");let Sy,jG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[zG(Ed(on.LegacyInterceptors,[{provide:pI,useFactory:FG},{provide:Th,useExisting:pI,multi:!0}]))]}),t})();try{Sy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Sy=!1}let Td,xi=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function Hz(t){return t===uM}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Sy)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(G(yp))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const gI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function _I(){if(Td)return Td;if("object"!=typeof document||!document)return Td=new Set(gI),Td;let t=document.createElement("input");return Td=new Set(gI.filter(i=>(t.setAttribute("type",i),t.type===i))),Td}let Mh,fg,Lc,Ey;function Xo(t){return function WG(){if(null==Mh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Mh=!0}))}finally{Mh=Mh||!1}return Mh}()?t:!!t.capture}function bI(){if(null==Lc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Lc=!1,Lc;if("scrollBehavior"in document.documentElement.style)Lc=!0;else{const t=Element.prototype.scrollTo;Lc=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Lc}function Ah(){if("object"!=typeof document||!document)return 0;if(null==fg){const t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),fg=0,0===t.scrollLeft&&(t.scrollLeft=1,fg=0===t.scrollLeft?1:2),t.remove()}return fg}function Ty(t){if(function GG(){if(null==Ey){const t=typeof document<"u"?document.head:null;Ey=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Ey}()){const i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function mg(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function to(t){return t.composedPath?t.composedPath()[0]:t.target}function My(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function wr(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class oq extends yt{constructor(i,e){super()}schedule(i,e=0){return this}}const _g={setInterval(t,i,...e){const{delegate:n}=_g;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=_g;return(i?.clearInterval||clearInterval)(t)},delegate:void 0};class Iy extends oq{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,e),this}requestAsyncId(i,e,n=0){return _g.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&_g.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let r,n=!1;try{this.work(i)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ia(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}class Fh{constructor(i,e=Fh.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}Fh.now=xy.now;class Fy extends Fh{constructor(i,e=Fh.now){super(i,e),this.actions=[],this._active=!1}flush(i){const{actions:e}=this;if(this._active)return void e.push(i);let n;this._active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}const Rh=new Fy(Iy),aq=Rh;function Ad(t,i=Rh){return Gi((e,n)=>{let r=null,o=null,a=null;const s=()=>{if(r){r.unsubscribe(),r=null;const l=o;o=null,n.next(l)}};function c(){const l=a+t,d=i.now();if(d{o=l,a=i.now(),r||(r=i.schedule(c,t),n.add(r))},()=>{s(),n.complete()},void 0,()=>{o=r=null}))})}function Ry(t){return hi((i,e)=>t<=e)}function Bc(t,i=Cs){return t=t??sq,Gi((e,n)=>{let r,o=!0;e.subscribe(Bi(n,a=>{const s=i(a);(o||!t(r,s))&&(o=!1,r=s,n.next(a))}))})}function sq(t,i){return t===i}function Tt(t){return Gi((i,e)=>{Yn(t).subscribe(Bi(e,()=>e.complete(),pr)),!e.closed&&i.subscribe(e)})}function je(t){return null!=t&&"false"!=`${t}`}function In(t,i=0){return xI(t)?Number(t):i}function xI(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Oh(t){return Array.isArray(t)?t:[t]}function _n(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Zi(t){return t instanceof Fe?t.nativeElement:t}let yI=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lq=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){const n=Zi(e);return new ni(r=>{const a=this._observeElement(n).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const n=new ke,r=this._mutationObserverFactory.create(o=>n.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(G(yI))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Oy=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=In(e),this._subscribe()}constructor(e,n,r){this._contentObserver=e,this._elementRef=n,this._ngZone=r,this.event=new xe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Ad(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(lq),b(Fe),b(ze))},t.\u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),bg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[yI]}),t})();const wI=new Set;let Id,dq=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):hq}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function uq(t){if(!wI.has(t))try{Id||(Id=document.createElement("style"),Id.setAttribute("type","text/css"),document.head.appendChild(Id)),Id.sheet&&(Id.sheet.insertRule(`@media ${t} {body{ }}`,0),wI.add(t))}catch(i){console.error(i)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(G(xi))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function hq(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Py=(()=>{class t{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new ke}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return CI(Oh(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Fc(CI(Oh(e)).map(a=>this._registerQuery(a).observable));return o=dh(o.pipe(ui(1)),o.pipe(Ry(1),Ad(0))),o.pipe(Ke(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:l})=>{s.matches=s.matches||c,s.breakpoints[l]=c}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const n=this._mediaMatcher.matchMedia(e),o={observable:new ni(a=>{const s=c=>this._zone.run(()=>a.next(c));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(Hn(n),Ke(({matches:a})=>({query:e,matches:a})),Tt(this._destroySubject)),mql:n};return this._queries.set(e,o),o}}return t.\u0275fac=function(e){return new(e||t)(G(dq),G(ze))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function CI(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function vg(t,i){return(t.getAttribute(i)||"").match(/\S+/g)||[]}const DI="cdk-describedby-message",xg="cdk-describedby-host";let Ly=0,SI=(()=>{class t{constructor(e,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ly++,this._document=e,this._id=ht(fd)+"-"+Ly++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;const o=Ny(n,r);"string"!=typeof n?(EI(n,this._id),this._messageRegistry.set(o,{messageElement:n,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;const o=Ny(n,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof n){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${xg}="${this._id}"]`);for(let n=0;n0!=r.indexOf(DI));e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){const r=this._messageRegistry.get(n);(function mq(t,i,e){const n=vg(t,i);n.some(r=>r.trim()==e.trim())||(n.push(e.trim()),t.setAttribute(i,n.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(xg,this._id),r.referenceCount++}_removeMessageReference(e,n){const r=this._messageRegistry.get(n);r.referenceCount--,function pq(t,i,e){const r=vg(t,i).filter(o=>o!=e.trim());r.length?t.setAttribute(i,r.join(" ")):t.removeAttribute(i)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(xg)}_isElementDescribedByMessage(e,n){const r=vg(e,"aria-describedby"),o=this._messageRegistry.get(n),a=o&&o.messageElement.id;return!!a&&-1!=r.indexOf(a)}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&"object"==typeof n)return!0;const r=null==n?"":`${n}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(G(nt),G(xi))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ny(t,i){return"string"==typeof t?`${i||""}/${t}`:t}function EI(t,i){t.id||(t.id=`${DI}-${i}-${Ly++}`)}class TI{constructor(i){this._items=i,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ke,this._typeaheadSubscription=yt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new ke,this.change=new ke,i instanceof Tc&&(this._itemChangesSubscription=i.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zi(e=>this._pressedLetters.push(e)),Ad(i),hi(()=>this._pressedLetters.length>0),Ke(()=>this._pressedLetters.join(""))).subscribe(e=>{const n=this._getItemsArray();for(let r=1;r!i[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],i.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){const e=this._getItemsArray(),n="number"==typeof i?i:e.indexOf(i);this._activeItem=e[n]??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const r=(this._activeItemIndex+i*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,e){const n=this._getItemsArray();if(n[i]){for(;this._skipPredicateFn(n[i]);)if(!n[i+=e])return;this.setActiveItem(i)}}_getItemsArray(){return this._items instanceof Tc?this._items.toArray():this._items}}class MI extends TI{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}}class By extends TI{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}}let yg=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function _q(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const n=function gq(t){try{return t.frameElement}catch{return null}}(function Dq(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(n&&(-1===II(n)||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=II(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function Cq(t){let i=t.nodeName.toLowerCase(),e="input"===i&&t.type;return"text"===e||"password"===e||"select"===i||"textarea"===i}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,n){return function kq(t){return!function vq(t){return function yq(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function bq(t){let i=t.nodeName.toLowerCase();return"input"===i||"select"===i||"button"===i||"textarea"===i}(t)||function xq(t){return function wq(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||AI(t))}(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(G(xi))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function AI(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let i=t.getAttribute("tabindex");return!(!i||isNaN(parseInt(i,10)))}function II(t){if(!AI(t))return null;const i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}class Sq{get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}constructor(i,e,n,r,o=!1){this._element=i,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){const e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return"start"==i?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){const e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){const e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;const e=i.children;for(let n=0;n=0;n--){const r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){const i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._ngZone.isStable?i():this._ngZone.onStable.pipe(ui(1)).subscribe(i)}}let Vy=(()=>{class t{constructor(e,n,r){this._checker=e,this._ngZone=n,this._document=r}create(e,n=!1){return new Sq(e,this._checker,this._ngZone,this._document,n)}}return t.\u0275fac=function(e){return new(e||t)(G(yg),G(ze),G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function wg(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function Cg(t){const i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!i||-1!==i.identifier||null!=i.radiusX&&1!==i.radiusX||null!=i.radiusY&&1!==i.radiusY)}const Eq=new ae("cdk-input-modality-detector-options"),Tq={ignoreKeys:[18,17,224,91,16]},Fd=Xo({passive:!0,capture:!0});let Mq=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,n,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Vn(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=to(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(wg(a)?"keyboard":"mouse"),this._mostRecentTarget=to(a))},this._onTouchstart=a=>{Cg(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=to(a))},this._options={...Tq,...o},this.modalityDetected=this._modality.pipe(Ry(1)),this.modalityChanged=this.modalityDetected.pipe(Bc()),e.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Fd),r.addEventListener("mousedown",this._onMousedown,Fd),r.addEventListener("touchstart",this._onTouchstart,Fd)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Fd),document.removeEventListener("mousedown",this._onMousedown,Fd),document.removeEventListener("touchstart",this._onTouchstart,Fd))}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(ze),G(nt),G(Eq,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Aq=new ae("liveAnnouncerElement",{providedIn:"root",factory:function Iq(){return null}}),Fq=new ae("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Rq=0,Hy=(()=>{class t{constructor(e,n,r,o){this._ngZone=n,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...n){const r=this._defaultOptions;let o,a;return 1===n.length&&"number"==typeof n[0]?a=n[0]:[o,a]=n,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==a&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{constructor(e,n,r,o,a){this._ngZone=e,this._platform=n,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ke,this._rootNodeFocusAndBlurListener=s=>{for(let l=to(s);l;l=l.parentElement)"focus"===s.type?this._onFocus(s,l):this._onBlur(s,l)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(e,n=!1){const r=Zi(e);if(!this._platform.isBrowser||1!==r.nodeType)return $e(null);const o=Ty(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return n&&(a.checkChildren=!0),a.subject;const s={checkChildren:n,subject:new ke,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const n=Zi(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){const o=Zi(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([s,c])=>this._originChanged(s,n,c)):(this._setOrigin(n),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused","touch"===n),e.classList.toggle("cdk-keyboard-focused","keyboard"===n),e.classList.toggle("cdk-mouse-focused","mouse"===n),e.classList.toggle("cdk-program-focused","program"===n)}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&n,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,n){const r=this._elementInfo.get(n),o=to(e);!r||!r.checkChildren&&n!==o||this._originChanged(n,this._getFocusOrigin(o),r)}_onBlur(e,n){const r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,kg),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,kg)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Tt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){const r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,kg),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,kg),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){const n=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&n.push([o,r])}),n}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!n||n===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let a=0;a{class t{constructor(e,n){this._elementRef=e,this._focusMonitor=n,this._focusOrigin=null,this.cdkFocusChange=new xe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(yo))},t.\u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),t})();const RI="cdk-high-contrast-black-on-white",OI="cdk-high-contrast-white-on-black",Uy="cdk-high-contrast-active";let PI=(()=>{class t{constructor(e,n){this._platform=e,this._document=n,this._breakpointSubscription=ht(Py).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Uy,RI,OI),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?e.add(Uy,RI):2===n&&e.add(Uy,OI)}}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),zy=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(G(PI))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[bg]}),t})();const Lq=new ae("cdk-dir-doc",{providedIn:"root",factory:function Nq(){return ht(nt)}}),Bq=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let bn=(()=>{class t{constructor(e){this.value="ltr",this.change=new xe,e&&(this.value=function Vq(t){const i=t?.toLowerCase()||"";return"auto"===i&&typeof navigator<"u"&&navigator?.language?Bq.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(G(Lq,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ph=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const Hq=["text"];function Uq(t,i){if(1&t&&Se(0,"mat-pseudo-checkbox",6),2&t){const e=q();T("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function zq(t,i){1&t&&Se(0,"mat-pseudo-checkbox",7),2&t&&T("disabled",q().disabled)}function $q(t,i){if(1&t&&(v(0,"span",8),E(1),y()),2&t){const e=q();k(1),It("(",e.group.label,")")}}const jq=[[["mat-icon"]],"*"],Wq=["mat-icon","*"];let Gq=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),qq=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const Qq=new ae("mat-sanity-checks",{providedIn:"root",factory:function Xq(){return!0}});let xt=(()=>{class t{constructor(e,n,r){this._sanityChecks=n,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!My()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(G(PI),G(Qq,8),G(nt))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Ph,Ph]}),t})();function rs(t){return class extends t{get disabled(){return this._disabled}set disabled(i){this._disabled=je(i)}constructor(...i){super(...i),this._disabled=!1}}}function Vs(t,i){return class extends t{get color(){return this._color}set color(e){const n=e||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}constructor(...e){super(...e),this.defaultColor=i,this.color=i}}}function Hs(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=je(i)}constructor(...i){super(...i),this._disableRipple=!1}}}function Lh(t,i=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?In(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=i,this.defaultTabIndex=i}}}function BI(t){return class extends t{updateErrorState(){const i=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==i&&(this.errorState=o,this.stateChanges.next())}constructor(...i){super(...i),this.errorState=!1}}}function Yq(t){return class extends t{constructor(...i){super(...i),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ni(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(i){i.next(),i.complete()}}}let VI=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Zq{constructor(i,e,n,r=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const HI=Xo({passive:!0,capture:!0});class Jq{constructor(){this._events=new Map,this._delegateEventHandler=i=>{const e=to(i);e&&this._events.get(i.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(o=>o.handleEvent(i))})}}addHandler(i,e,n,r){const o=this._events.get(e);if(o){const a=o.get(n);a?a.add(r):o.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,HI)})}removeHandler(i,e,n){const r=this._events.get(i);if(!r)return;const o=r.get(e);o&&(o.delete(n),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,HI)))}}const UI={enterDuration:225,exitDuration:150},zI=Xo({passive:!0,capture:!0}),$I=["mousedown","touchstart"],jI=["mouseup","mouseleave","touchend","touchcancel"];class Rd{constructor(i,e,n,r){this._target=i,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Zi(n))}fadeInRipple(i,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...UI,...n.animation};n.centered&&(i=r.left+r.width/2,e=r.top+r.height/2);const a=n.radius||function tX(t,i,e){const n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+r*r)}(i,e,r),s=i-r.left,c=e-r.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=s-a+"px",d.style.top=c-a+"px",d.style.height=2*a+"px",d.style.width=2*a+"px",null!=n.color&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,m="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,g=new Zq(this,d,n,m);d.style.transform="scale3d(1, 1, 1)",g.state=0,n.persistent||(this._mostRecentTransientRipple=g);let p=null;return!m&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _=()=>this._finishRippleTransition(g),w=()=>this._destroyRipple(g);d.addEventListener("transitionend",_),d.addEventListener("transitioncancel",w),p={onTransitionEnd:_,onTransitionCancel:w}}),this._activeRipples.set(g,p),(m||!l)&&this._finishRippleTransition(g),g}fadeOutRipple(i){if(2===i.state||3===i.state)return;const e=i.element,n={...UI,...i.config.animation};e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=2,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){const e=Zi(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,$I.forEach(n=>{Rd._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){"mousedown"===i.type?this._onMousedown(i):"touchstart"===i.type?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{jI.forEach(e=>{this._triggerElement.addEventListener(e,this,zI)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){0===i.state?this._startFadeOutTransition(i):2===i.state&&this._destroyRipple(i)}_startFadeOutTransition(i){const e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=1,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){const e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=3,null!==e&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel)),i.element.remove()}_onMousedown(i){const e=wg(i),n=this._lastTouchStartEvent&&Date.now(){!i.config.persistent&&(1===i.state||i.config.terminateOnPointerUp&&0===i.state)&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const i=this._triggerElement;i&&($I.forEach(e=>Rd._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&jI.forEach(e=>i.removeEventListener(e,this,zI)))}}Rd._eventManager=new Jq;const $y=new ae("mat-ripple-global-options");let wo=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,n,r,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Rd(this,n,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,n,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(ze),b(xi),b($y,8),b(Ri,8))},t.\u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,n){2&e&&Qe("mat-ripple-unbounded",n.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),Us=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,xt]}),t})(),iX=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return t.\u0275fac=function(e){return new(e||t)(b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,n){2&e&&Qe("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("mat-pseudo-checkbox-minimal","minimal"===n.appearance)("mat-pseudo-checkbox-full","full"===n.appearance)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,n){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),t})(),WI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt]}),t})();const jy=new ae("MAT_OPTION_PARENT_COMPONENT"),Wy=new ae("MatOptgroup");let nX=0;class GI{constructor(i,e=!1){this.source=i,this.isUserInput=e}}let rX=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=je(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,n,r,o){this._element=e,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+nX++,this.onSelectionChange=new xe,this._stateChanges=new ke}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,n){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!wr(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new GI(this,e))}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(Hq,7),2&e){let r;ye(r=we())&&(n._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),zs=(()=>{class t extends rX{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(jy,8),b(Wy,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(e,n){1&e&&X("click",function(){return n._selectViaInteraction()})("keydown",function(o){return n._handleKeydown(o)}),2&e&&(pa("id",n.id),ot("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),Qe("mdc-list-item--selected",n.selected)("mat-mdc-option-multiple",n.multiple)("mat-mdc-option-active",n.active)("mdc-list-item--disabled",n.disabled))},exportAs:["matOption"],features:[pe],ngContentSelectors:Wq,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(e,n){1&e&&(vi(jq),H(0,Uq,1,2,"mat-pseudo-checkbox",0),tt(1),v(2,"span",1,2),tt(4,1),y(),H(5,zq,1,1,"mat-pseudo-checkbox",3),H(6,$q,2,1,"span",4),Se(7,"div",5)),2&e&&(T("ngIf",n.multiple),k(5),T("ngIf",!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator),k(1),T("ngIf",n.group&&n.group._inert),k(1),T("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[wo,fn,iX],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})();function qI(t,i,e){if(e.length){let n=i.toArray(),r=e.toArray(),o=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}let Dg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Us,nr,xt,WI]}),t})();const QI=["mat-button",""],YI=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],KI=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],ZI=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",aX=["mat-icon-button",""],sX=["*"],cX=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],lX=Vs(rs(Hs(class{constructor(t){this._elementRef=t}})));let Gy=(()=>{class t extends lX{constructor(e,n,r,o){super(e),this._platform=n,this._ngZone=r,this._animationMode=o,this._focusMonitor=ht(yo),this._isFab=!1;const a=e.nativeElement.classList;for(const s of cX)this._hasHostAttributes(s.selector)&&s.mdcClasses.forEach(c=>{a.add(c)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_hasHostAttributes(...e){return e.some(n=>this._elementRef.nativeElement.hasAttribute(n))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(wo,5),2&e){let r;ye(r=we())&&(n.ripple=r.first)}},features:[pe]}),t})(),uX=(()=>{class t extends Gy{constructor(e,n,r,o){super(e,n,r,o),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,features:[pe]}),t})(),Lr=(()=>{class t extends Gy{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(xi),b(ze),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(e,n){2&e&&(ot("disabled",n.disabled||null),Qe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[pe],attrs:QI,ngContentSelectors:KI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,n){1&e&&(vi(YI),Se(0,"span",0),tt(1),v(2,"span",1),tt(3,1),y(),tt(4,2),Se(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Qe("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab),k(6),T("matRippleDisabled",n._isRippleDisabled())("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[wo],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),t})(),hX=(()=>{class t extends uX{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(xi),b(ze),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:9,hostBindings:function(e,n){2&e&&(ot("disabled",n.disabled||null)("tabindex",n.disabled?-1:n.tabIndex)("aria-disabled",n.disabled.toString()),Qe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[pe],attrs:QI,ngContentSelectors:KI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,n){1&e&&(vi(YI),Se(0,"span",0),tt(1),v(2,"span",1),tt(3,1),y(),tt(4,2),Se(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Qe("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab),k(6),T("matRippleDisabled",n._isRippleDisabled())("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[wo],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',ZI],encapsulation:2,changeDetection:0}),t})(),os=(()=>{class t extends Gy{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(xi),b(ze),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(e,n){2&e&&(ot("disabled",n.disabled||null),Qe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[pe],attrs:aX,ngContentSelectors:sX,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,n){1&e&&(vi(),Se(0,"span",0),tt(1),Se(2,"span",1)(3,"span",2)(4,"span",3)),2&e&&(k(3),T("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[wo],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',ZI],encapsulation:2,changeDetection:0}),t})(),JI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,Us,xt]}),t})();class eF{}class mX{}const as="*";function vn(t,i){return{type:7,name:t,definitions:i,options:{}}}function fi(t,i=null){return{type:4,styles:i,timings:t}}function qy(t,i=null){return{type:3,steps:t,options:i}}function tF(t,i=null){return{type:2,steps:t,options:i}}function rt(t){return{type:6,styles:t,offset:null}}function ii(t,i,e){return{type:0,name:t,styles:i,options:e}}function Sg(t){return{type:5,steps:t}}function ai(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function Eg(t=null){return{type:9,options:t}}function Tg(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}function iF(t){Promise.resolve().then(t)}class Bh{constructor(i=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=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){iF(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class nF{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,r=0;const o=this.players.length;0==o?iF(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++n==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r)})}getPosition(){const i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const Xy="!";class Qy{attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;null!=i&&(this._attachedHost=null,i.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(i){this._attachedHost=i}}class Od extends Qy{constructor(i,e,n,r,o){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}}class ss extends Qy{constructor(i,e,n,r){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}}class pX extends Qy{constructor(i){super(),this.element=i instanceof Fe?i.nativeElement:i}}class Mg{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(i){return i instanceof Od?(this._attachedPortal=i,this.attachComponentPortal(i)):i instanceof ss?(this._attachedPortal=i,this.attachTemplatePortal(i)):this.attachDomPortal&&i instanceof pX?(this._attachedPortal=i,this.attachDomPortal(i)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class gX extends Mg{constructor(i,e,n,r,o){super(),this.outletElement=i,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=a=>{const s=a.element,c=this._document.createComment("dom-portal");s.parentNode.insertBefore(c,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=o}attachComponentPortal(i){const n=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);let r;return i.viewContainerRef?(r=i.viewContainerRef.createComponent(n,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector,i.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(i.injector||this._defaultInjector||tn.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=i,r}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);-1!==r&&e.remove(r)}),this._attachedPortal=i,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}}let _X=(()=>{class t extends ss{constructor(e,n){super(e,n)}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Fi))},t.\u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[pe]}),t})(),cs=(()=>{class t extends Mg{constructor(e,n,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new xe,this.attachDomPortal=o=>{const a=o.element,s=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=n.createComponent(o,n.length,e.injector||n.injector,e.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return t.\u0275fac=function(e){return new(e||t)(b(Ss),b(Fi),b(nt))},t.\u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[pe]}),t})(),Vc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const bX=["addListener","removeListener"],vX=["addEventListener","removeEventListener"],xX=["on","off"];function xa(t,i,e,n){if(Wt(e)&&(n=e,e=void 0),n)return xa(t,i,e).pipe(Bx(n));const[r,o]=function CX(t){return Wt(t.addEventListener)&&Wt(t.removeEventListener)}(t)?vX.map(a=>s=>t[a](i,s,e)):function yX(t){return Wt(t.addListener)&&Wt(t.removeListener)}(t)?bX.map(rF(t,i)):function wX(t){return Wt(t.on)&&Wt(t.off)}(t)?xX.map(rF(t,i)):[];if(!r&&B_(t))return En(a=>xa(a,i,e))(Yn(t));if(!r)throw new TypeError("Invalid event target");return new ni(a=>{const s=(...c)=>a.next(1o(s)})}function rF(t,i){return e=>n=>t[e](i,n)}const Vh={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:n}=Vh;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);const r=i(o=>{e=void 0,t(o)});return new yt(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:i}=Vh;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:i}=Vh;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},oF=new class DX extends Fy{flush(i){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;i=i||n.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,r){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw r}}}(class kX extends Iy{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=Vh.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);const{actions:o}=i;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Vh.cancelAnimationFrame(e),i._scheduled=void 0)}});let Yy,SX=1;const Ag={};function aF(t){return t in Ag&&(delete Ag[t],!0)}const EX={setImmediate(t){const i=SX++;return Ag[i]=!0,Yy||(Yy=Promise.resolve()),Yy.then(()=>aF(i)&&t()),i},clearImmediate(t){aF(t)}},{setImmediate:TX,clearImmediate:MX}=EX,Ig={setImmediate(...t){const{delegate:i}=Ig;return(i?.setImmediate||TX)(...t)},clearImmediate(t){const{delegate:i}=Ig;return(i?.clearImmediate||MX)(t)},delegate:void 0},Ky=new class IX extends Fy{flush(i){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;i=i||n.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,r){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw r}}}(class AX extends Iy{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=Ig.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);const{actions:o}=i;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Ig.clearImmediate(e),i._scheduled=void 0)}});function Fg(t=0,i,e=aq){let n=-1;return null!=i&&(ak(i)?e=i:n=i),new ni(r=>{let o=function RX(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function Zy(t,i=Rh){return function FX(t){return Gi((i,e)=>{let n=!1,r=null,o=null,a=!1;const s=()=>{if(o?.unsubscribe(),o=null,n){n=!1;const l=r;r=null,e.next(l)}a&&e.complete()},c=()=>{o=null,a&&e.complete()};i.subscribe(Bi(e,l=>{n=!0,r=l,o||Yn(t(l)).subscribe(o=Bi(e,s,c))},()=>{a=!0,(!n||!o||o.closed)&&e.complete()}))})}(()=>Fg(t,i))}const OX=["contentWrapper"],PX=["*"],LX=new ae("VIRTUAL_SCROLL_STRATEGY");let Pd=(()=>{class t{constructor(e,n,r){this._ngZone=e,this._platform=n,this._scrolled=new ke,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ni(n=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Zy(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):$e()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(hi(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const n=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&n.push(o)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let r=Zi(n),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>xa(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(G(ze),G(xi),G(nt,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),sF=(()=>{class t{constructor(e,n,r,o){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=r,this.dir=o,this._destroyed=new ke,this._elementScrolled=new ni(a=>this.ngZone.runOutsideAngular(()=>xa(this.elementRef.nativeElement,"scroll").pipe(Tt(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const n=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),r&&0!=Ah()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==Ah()?e.left=e.right:1==Ah()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const n=this.elementRef.nativeElement;bI()?n.scrollTo(e):(null!=e.top&&(n.scrollTop=e.top),null!=e.left&&(n.scrollLeft=e.left))}measureScrollOffset(e){const n="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?r:n:"end"==e&&(e=a?n:r),a&&2==Ah()?e==n?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==Ah()?e==n?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==n?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Pd),b(ze),b(bn,8))},t.\u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),t})(),ya=(()=>{class t{constructor(e,n,r){this._platform=e,this._change=new ke,this._changeListener=o=>{this._change.next(o)},this._document=r,n.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,n=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Zy(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(ze),G(nt,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const cF=new ae("VIRTUAL_SCROLLABLE");let VX=(()=>{class t extends sF{constructor(e,n,r,o){super(e,n,r,o)}measureViewportSize(e){const n=this.elementRef.nativeElement;return"horizontal"===e?n.clientWidth:n.clientHeight}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Pd),b(ze),b(bn,8))},t.\u0275dir=Q({type:t,features:[pe]}),t})();const UX=typeof requestAnimationFrame<"u"?oF:Ky;let zX=(()=>{class t extends VX{get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=je(e)}constructor(e,n,r,o,a,s,c,l){super(e,s,r,a),this.elementRef=e,this._changeDetectorRef=n,this._scrollStrategy=o,this.scrollable=l,this._platform=ht(xi),this._detachedSubject=new ke,this._renderedRangeSubject=new ke,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ni(d=>this._scrollStrategy.scrolledIndexChange.subscribe(u=>Promise.resolve().then(()=>this.ngZone.run(()=>d.next(u))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=yt.EMPTY,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Hn(null),Zy(0,UX)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Tt(this._detachedSubject)).subscribe(n=>{const r=n.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function HX(t,i){return t.start==i.start&&t.end==i.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,n="to-start"){e=this.appendOnly&&"to-start"===n?0:e;const o="horizontal"==this.orientation,a=o?"X":"Y";let c=`translate${a}(${Number((o&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===n&&(c+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,n="auto"){const r={behavior:n};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,n="auto"){this._scrollStrategy.scrollToIndex(e,n)}measureScrollOffset(e){let n;return n=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,n(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let n;const r="left",o="right",a="rtl"==this.dir?.value;n="start"==e?a?o:r:"end"==e?a?r:o:e||("horizontal"===this.orientation?"left":"top");const s=this.scrollable.measureBoundingClientRectWithScrollOffset(n);return this.elementRef.nativeElement.getBoundingClientRect()[n]-s}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const n of e)n()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(ze),b(LX,8),b(bn,8),b(Pd),b(ya),b(cF,8))},t.\u0275cmp=Ve({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,n){if(1&e&&st(OX,7),2&e){let r;ye(r=we())&&(n._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,n){2&e&&Qe("cdk-virtual-scroll-orientation-horizontal","horizontal"===n.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==n.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[We([{provide:sF,useFactory:(i,e)=>i||e,deps:[[new sa,new Nm(cF)],t]}]),pe,Lv],ngContentSelectors:PX,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,n){1&e&&(vi(),v(0,"div",0,1),tt(2),y(),Se(3,"div",2)),2&e&&(k(3),ir("width",n._totalContentWidth)("height",n._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),t})(),Hc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})(),Jy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Ph,Hc,zX,Ph,Hc]}),t})();const lF=bI();class $X{constructor(i,e){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=_n(-this._previousScrollPosition.left),i.style.top=_n(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const i=this._document.documentElement,n=i.style,r=this._document.body.style,o=n.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),lF&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),lF&&(n.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}}class jX{constructor(i,e,n,r){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(i){this._overlayRef=i}enable(){if(this._scrollSubscription)return;const i=this._scrollDispatcher.scrolled(0).pipe(hi(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class dF{enable(){}disable(){}attach(){}}function e1(t,i){return i.some(e=>t.bottome.bottom||t.righte.right)}function uF(t,i){return i.some(e=>t.tope.bottom||t.lefte.right)}class WX{constructor(i,e,n,r){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(i){this._overlayRef=i}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();e1(e,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let GX=(()=>{class t{constructor(e,n,r,o){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new dF,this.close=a=>new jX(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new $X(this._viewportRuler,this._document),this.reposition=a=>new WX(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return t.\u0275fac=function(e){return new(e||t)(G(Pd),G(ya),G(ze),G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Ld{constructor(i){if(this.scrollStrategy=new dF,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){const e=Object.keys(i);for(const n of e)void 0!==i[n]&&(this[n]=i[n])}}}class qX{constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}}let hF=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),XX=(()=>{class t extends hF{constructor(e,n){super(e),this._ngZone=n,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const s=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(G(nt),G(ze,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QX=(()=>{class t extends hF{constructor(e,n,r){super(e),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=to(o)},this._clickListener=o=>{const a=to(o),s="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let l=c.length-1;l>-1;l--){const d=c[l];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(a)||d.overlayElement.contains(s))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(e){if(super.add(e),!this._isAttached){const n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return t.\u0275fac=function(e){return new(e||t)(G(nt),G(xi),G(ze,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Rg=(()=>{class t{constructor(e,n){this._platform=n,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||My()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new ke,this._outsidePointerEvents=new ke,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ui(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){const i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,i&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config={...this._config,...i},this._updateElementSize()}setDirection(i){this._config={...this._config,direction:i},this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){const i=this._config.direction;return i?"string"==typeof i?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const i=this._pane.style;i.width=_n(this._config.width),i.height=_n(this._config.height),i.minWidth=_n(this._config.minWidth),i.minHeight=_n(this._config.minHeight),i.maxWidth=_n(this._config.maxWidth),i.maxHeight=_n(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){const i="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const i=this._backdropElement;if(i){if(this._animationsDisabled)return void this._disposeBackdrop(i);i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,e,n){const r=Oh(e||[]).filter(o=>!!o);r.length&&(n?i.classList.add(...r):i.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const i=this._ngZone.onStable.pipe(Tt(Vi(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe())})})}_disposeScrollStrategy(){const i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const fF="cdk-overlay-connected-position-bounding-box",YX=/([A-Za-z%]+)$/;class KX{get positions(){return this._preferredPositions}constructor(i,e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ke,this._resizeSubscription=yt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}attach(i){this._validatePositions(),i.hostElement.classList.add(fF),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const i=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[];let a;for(let s of this._preferredPositions){let c=this._getOriginPoint(i,r,s),l=this._getOverlayPoint(c,e,s),d=this._getOverlayFit(l,e,n,s);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(d,l,n)?o.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!a||a.overlayFit.visibleAreac&&(c=d,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Uc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(fF),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,-1===i.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,n){let r,o;if("center"==n.originX)r=i.left+i.width/2;else{const a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;r="start"==n.originX?a:s}return e.left<0&&(r-=e.left),o="center"==n.originY?i.top+i.height/2:"top"==n.originY?i.top:i.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(i,e,n){let r,o;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:i.x+r,y:i.y+o}}_getOverlayFit(i,e,n,r){const o=pF(e);let{x:a,y:s}=i,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(a+=c),l&&(s+=l);let h=0-s,f=s+o.height-n.height,m=this._subtractOverflows(o.width,0-a,a+o.width-n.width),g=this._subtractOverflows(o.height,h,f),p=m*g;return{visibleArea:p,isCompletelyWithinViewport:o.width*o.height===p,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:m==o.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){const r=n.bottom-e.y,o=n.right-e.x,a=mF(this._overlayRef.getConfig().minHeight),s=mF(this._overlayRef.getConfig().minWidth);return(i.fitsInViewportVertically||null!=a&&a<=r)&&(i.fitsInViewportHorizontally||null!=s&&s<=o)}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};const r=pF(e),o=this._viewportRect,a=Math.max(i.x+r.width-o.width,0),s=Math.max(i.y+r.height-o.height,0),c=Math.max(o.top-n.top-i.y,0),l=Math.max(o.left-n.left-i.x,0);let d=0,u=0;return d=r.width<=o.width?l||-a:i.xm&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-m/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=n.width-i.x+this._viewportMargin,d=i.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)u=i.x,d=n.right-i.x;else{const f=Math.min(n.right-i.x+n.left,i.x),m=this._lastBoundingBoxSize.width;d=2*f,u=i.x-f,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=i.x-m/2)}return{top:a,left:u,bottom:s,right:h,width:d,height:o}}_setBoundingBoxStyles(i,e){const n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=_n(n.height),r.top=_n(n.top),r.bottom=_n(n.bottom),r.width=_n(n.width),r.left=_n(n.left),r.right=_n(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=_n(o)),a&&(r.maxWidth=_n(a))}this._lastBoundingBoxSize=n,Uc(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Uc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Uc(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){const n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();Uc(n,this._getExactOverlayY(e,i,d)),Uc(n,this._getExactOverlayX(e,i,d))}else n.position="static";let s="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),l&&(s+=`translateY(${l}px)`),n.transform=s.trim(),a.maxHeight&&(r?n.maxHeight=_n(a.maxHeight):o&&(n.maxHeight="")),a.maxWidth&&(r?n.maxWidth=_n(a.maxWidth):o&&(n.maxWidth="")),Uc(this._pane.style,n)}_getExactOverlayY(i,e,n){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"bottom"===i.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=_n(o.y),r}_getExactOverlayX(i,e,n){let a,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),a=this._isRtl()?"end"===i.overlayX?"left":"right":"end"===i.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=_n(o.x),r}_getScrollVisibility(){const i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:uF(i,n),isOriginOutsideView:e1(i,n),isOverlayClipped:uF(e,n),isOverlayOutsideView:e1(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,r)=>n-Math.max(r,0),i)}_getNarrowedViewportRect(){const i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+i-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return"x"===e?null==i.offsetX?this._offsetX:i.offsetX:null==i.offsetY?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Oh(i).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){const i=this._origin;if(i instanceof Fe)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();const e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}}function Uc(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function mF(t){if("number"!=typeof t&&null!=t){const[i,e]=t.split(YX);return e&&"px"!==e?null:parseFloat(i)}return t||null}function pF(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const gF="cdk-global-overlay-wrapper";class ZX{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(i){const e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(gF),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=n,c=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==o&&"100vh"!==o||s&&"100%"!==s&&"100vh"!==s),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",m="",g="";c?g="flex-start":"center"===d?(g="center",h?m=u:f=u):h?"left"===d||"end"===d?(g="flex-end",f=u):("right"===d||"start"===d)&&(g="flex-start",m=u):"left"===d||"start"===d?(g="flex-start",f=u):("right"===d||"end"===d)&&(g="flex-end",m=u),i.position=this._cssPosition,i.marginLeft=c?"0":f,i.marginTop=l?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":m,e.justifyContent=g,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(gF),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let JX=(()=>{class t{constructor(e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new ZX}flexibleConnectedTo(e){return new KX(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(G(ya),G(nt),G(xi),G(Rg))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),eQ=0,rr=(()=>{class t{constructor(e,n,r,o,a,s,c,l,d,u,h,f){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=s,this._ngZone=c,this._document=l,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),a=new Ld(e);return a.direction=a.direction||this._directionality.value,new Hh(o,n,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const n=this._document.createElement("div");return n.id="cdk-overlay-"+eQ++,n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(md)),new gX(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(G(GX),G(Rg),G(Ss),G(JX),G(XX),G(tn),G(ze),G(nt),G(bn),G(ih),G(QX),G(Ri,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const tQ=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],_F=new ae("cdk-connected-overlay-scroll-strategy");let t1=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(b(Fe))},t.\u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),t})(),bF=(()=>{class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=je(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=je(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=je(e)}get push(){return this._push}set push(e){this._push=je(e)}constructor(e,n,r,o,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=yt.EMPTY,this._attachSubscription=yt.EMPTY,this._detachSubscription=yt.EMPTY,this._positionSubscription=yt.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new xe,this.positionChange=new xe,this.attach=new xe,this.detach=new xe,this.overlayKeydown=new xe,this.overlayOutsideClick=new xe,this._templatePortal=new ss(n,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=tQ);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),27===n.keyCode&&!this.disableClose&&!wr(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{this.overlayOutsideClick.next(n)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Ld({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(n.width=this.width),(this.height||0===this.height)&&(n.height=this.height),(this.minWidth||0===this.minWidth)&&(n.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){const n=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof t1?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(GM(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(rr),b(_i),b(Fi),b(_F),b(bn,8))},t.\u0275dir=Q({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Ei]}),t})();const nQ={provide:_F,deps:[rr],useFactory:function iQ(t){return()=>t.scrollStrategies.reposition()}};let zc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[rr,nQ],imports:[Ph,Vc,Jy,Jy]}),t})();function rQ(t,i){if(1&t){const e=Je();v(0,"div",2)(1,"button",3),X("click",function(){return Me(e),Ae(q().action())}),E(2),y()()}if(2&t){const e=q();k(2),It(" ",e.data.action," ")}}const oQ=["label"];function aQ(t,i){}const sQ=Math.pow(2,31)-1;class Og{constructor(i,e){this._overlayRef=e,this._afterDismissed=new ke,this._afterOpened=new ke,this._onAction=new ke,this._dismissedByAction=!1,this.containerInstance=i,i._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,sQ))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const n1=new ae("MatSnackBarData");class Pg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let cQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),t})(),lQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),t})(),dQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),t})(),uQ=(()=>{class t{constructor(e,n){this.snackBarRef=e,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(b(Og),b(n1))},t.\u0275cmp=Ve({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(e,n){1&e&&(v(0,"div",0),E(1),y(),H(2,rQ,3,1,"div",1)),2&e&&(k(1),It(" ",n.data.message,"\n"),k(1),T("ngIf",n.hasAction))},dependencies:[fn,Lr,cQ,lQ,dQ],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),t})();const hQ={snackBarState:vn("state",[ii("void, hidden",rt({transform:"scale(0.8)",opacity:0})),ii("visible",rt({transform:"scale(1)",opacity:1})),ai("* => visible",fi("150ms cubic-bezier(0, 0, 0.2, 1)")),ai("* => void, * => hidden",fi("75ms cubic-bezier(0.4, 0.0, 1, 1)",rt({opacity:0})))])};let fQ=0,mQ=(()=>{class t extends Mg{constructor(e,n,r,o,a){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=ht(nt),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new ke,this._onExit=new ke,this._onEnter=new ke,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+fQ++,this.attachDomPortal=s=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(s);return this._afterPortalAttached(),c},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();const n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}onAnimationEnd(e){const{fromState:n,toState:r}=e;if(("void"===r&&"void"!==n||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(ui(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(r=>e.classList.add(r)):e.classList.add(n)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const n=e.getAttribute("aria-owns");if(n){const r=n.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(b(ze),b(Fe),b(Gt),b(xi),b(Pg))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(cs,7),2&e){let r;ye(r=we())&&(n._portalOutlet=r.first)}},features:[pe]}),t})(),pQ=(()=>{class t extends mQ{_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,n="mdc-snackbar__label";e.classList.toggle(n,!e.querySelector(`.${n}`))}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,n){if(1&e&&st(oQ,7),2&e){let r;ye(r=we())&&(n._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,n){1&e&&wv("@state.done",function(o){return n.onAnimationEnd(o)}),2&e&&Tv("@state",n._animationState)},features:[pe],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,n){1&e&&(v(0,"div",0)(1,"div",1,2)(3,"div",3),H(4,aQ,0,0,"ng-template",4),y(),Se(5,"div"),y()()),2&e&&(k(5),ot("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[cs],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[hQ.snackBarState]}}),t})(),vF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[zc,Vc,nr,JI,xt,xt]}),t})();const xF=new ae("mat-snack-bar-default-options",{providedIn:"root",factory:function gQ(){return new Pg}});let _Q=(()=>{class t{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,n,r,o,a,s){this._overlay=e,this._live=n,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:n},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){const o=tn.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Pg,useValue:n}]}),a=new Od(this.snackBarContainerComponent,n.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){const r={...new Pg,...this._defaultConfig,...n},o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new Og(a,o);if(e instanceof _i){const c=new ss(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(r,s),l=new Od(e,void 0,c),d=a.attachComponentPortal(l);s.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Tt(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration))}_createOverlay(e){const n=new Ld;n.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,s=!a&&"center"!==e.horizontalPosition;return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),n.positionStrategy=r,this._overlay.create(n)}_createInjector(e,n){return tn.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Og,useValue:n},{provide:n1,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(G(rr),G(Hy),G(tn),G(Py),G(t,12),G(xF))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Nd=(()=>{class t extends _Q{constructor(e,n,r,o,a,s){super(e,n,r,o,a,s),this.simpleSnackBarComponent=uQ,this.snackBarContainerComponent=pQ,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(G(rr),G(Hy),G(tn),G(Py),G(t,12),G(xF))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:vF}),t})(),Qi=(()=>{class t{constructor(e,n){this.sbRef=e,this.data=n}}return t.\u0275fac=function(e){return new(e||t)(b(Og),b(n1))},t.\u0275cmp=Ve({type:t,selectors:[["snack-alert"]],decls:2,vars:1,consts:[[1,"example-alert"]],template:function(e,n){1&e&&(v(0,"span",0),E(1),y()),2&e&&(k(1),Xe(n.data))},styles:[".example-alert[_ngcontent-%COMP%]{color:#fff}"]}),t})(),Nr=(()=>{class t{constructor(e,n){this.http=e,this._snackBar=n,this.snowstormFhirBase="https://snowstorm.ihtsdotools.org/fhir",this.defaultFhirUrlParam="http://snomed.info/sct",this.fhirUrlParam=this.defaultFhirUrlParam,this.lang="en",this.conceptCache=new Map}setSnowstormFhirBase(e){this.snowstormFhirBase=e}setFhirUrlParam(e){this.fhirUrlParam=e}getFhirUrlParam(){return this.fhirUrlParam}setLang(e){this.lang=e}getCodeSystems(){return this.http.get(`${this.snowstormFhirBase}/CodeSystem`).pipe(pn(this.handleError("getCodeSystems",{})))}getValueSetExpansionUrl(e,n,r,o){return r||(r=0),o||(o=20),"string"!=typeof n&&(n=""),`${this.snowstormFhirBase}/ValueSet/$expand?url=${this.fhirUrlParam}?fhir_vs=ecl/${encodeURIComponent(e)}&count=${o}&offset=${r}&filter=${n}&language=${this.lang}&displayLanguage=${this.lang}`}expandValueSet(e,n,r,o){let a=this.getValueSetExpansionUrl(e,n,r,o);return this.http.get(a).pipe(pn(this.handleError("expandValueSet",{})))}translate(e,n,r){return r||(r=this.defaultFhirUrlParam),this.http.get(`${this.snowstormFhirBase}/ConceptMap/$translate?url=http://snomed.info/sct?fhir_cm=${e}&code=${n}&system=${r}`).pipe(pn(this.handleError("translate",{})))}expandValueSetFromServer(e,n,r,o,a,s){a||(a=0),s||(s=20),e||(e=this.snowstormFhirBase),n||(n=this.fhirUrlParam),"string"!=typeof o&&(o="");let c=`${e}/ValueSet/$expand?url=${n}?fhir_vs=ecl/${encodeURIComponent(r)}&count=${s}&offset=${a}&filter=${o}&language=${this.lang}&displayLanguage=${this.lang}`;return this.http.get(c).pipe(pn(this.handleError("expandValueSet",{})))}handleError(e="operation",n){return r=>(console.error("There was an error!"),console.error(r),this._snackBar.openFromComponent(Qi,{duration:5e3,data:r.message,panelClass:["red-snackbar"]}),$e(n))}lookupConcept(e,n){n||(n=this.fhirUrlParam);const r=`${n}:${e}`,o=this.conceptCache.get(r);return o?$e(o):this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${n}&code=${e}&property=normalForm`).pipe(zi(s=>{this.conceptCache.set(r,s)}),pn(this.handleError("lookupConcept",{})))}getMRCMAttributes(e){let n=`${this.snowstormFhirBase.replace("fhir","snowstorm/snomed-ct")}mrcm/MAIN/domain-attributes?parentIds=${e}&proximalPrimitiveModeling=false&contentType=POSTCOORDINATED`;return this.http.get(n).pipe(pn(this.handleError("getMRCMAttributes",{})))}addPostcoordinatedExpression(e){let n=`${this.snowstormFhirBase}/CodeSystem/sct_11000003104_EXP`;const r={headers:new va({"Content-Type":"application/fhir+json"})};return this.http.patch(n,{resourceType:"CodeSystem",concept:[{code:e}]},r).pipe(pn(this.handleError("addPostcoordinatedExpression",{})))}runEclLegacy(e){let n=`https://browser.ihtsdotools.org/snowstorm/snomed-ct/MAIN/SNOMEDCT-ES/2022-10-31/concepts?offset=0&limit=100&termActive=true&ecl=${encodeURIComponent(e)}`;return this.http.get(n).pipe(pn(this.handleError("expandValueSet",{})))}getIcd10MapTargets(e){return this.http.get(`${this.snowstormFhirBase}/ConceptMap/$translate?code=${e}&system=http://snomed.info/sct&source=http://snomed.info/sct?fhir_vs&target=http://hl7.org/fhir/sid/icd-10&url=http://snomed.info/sct/900000000000207008/version/20200131?fhir_cm=447562003`).pipe(pn(this.handleError("translate",{})))}lookupOtherCodeSystems(e,n){return this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${e}&code=${n}`).pipe(pn(this.handleError("lookup",{})))}}return t.\u0275fac=function(e){return new(e||t)(G(Ns),G(Nd))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function yF(...t){const i=sk(t),{args:e,keys:n}=HM(t),r=new ni(o=>{const{length:a}=e;if(!a)return void o.complete();const s=new Array(a);let c=a,l=a;for(let d=0;d{u||(u=!0,l--),s[d]=h},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(n?UM(n,s):s),o.complete())}))}});return i?r.pipe(Bx(i)):r}const bQ=["*"];let Lg;function Uh(t){return function vQ(){if(void 0===Lg&&(Lg=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(Lg=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return Lg}()?.createHTML(t)||t}function wF(t){return Error(`Unable to find icon with the name "${t}"`)}function CF(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function kF(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class $c{constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}}let Ng=(()=>{class t{constructor(e,n,r,o){this._httpClient=e,this._sanitizer=n,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,n,r){return this.addSvgIconInNamespace("",e,n,r)}addSvgIconLiteral(e,n,r){return this.addSvgIconLiteralInNamespace("",e,n,r)}addSvgIconInNamespace(e,n,r,o){return this._addSvgIconConfig(e,n,new $c(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,r,o){const a=this._sanitizer.sanitize(di.HTML,r);if(!a)throw kF(r);const s=Uh(a);return this._addSvgIconConfig(e,n,new $c("",s,o))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,r){return this._addSvgIconSetConfig(e,new $c(n,null,r))}addSvgIconSetLiteralInNamespace(e,n,r){const o=this._sanitizer.sanitize(di.HTML,n);if(!o)throw kF(n);const a=Uh(o);return this._addSvgIconSetConfig(e,new $c("",a,r))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const n=this._sanitizer.sanitize(di.RESOURCE_URL,e);if(!n)throw CF(e);const r=this._cachedIconsByUrl.get(n);return r?$e(Bg(r)):this._loadSvgIconFromConfig(new $c(e,null)).pipe(zi(o=>this._cachedIconsByUrl.set(n,o)),Ke(o=>Bg(o)))}getNamedSvgIcon(e,n=""){const r=DF(n,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(n,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):Rc(wF(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?$e(Bg(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ke(n=>Bg(n)))}_getSvgFromIconSetConfigs(e,n){const r=this._extractIconWithNameFromAnySet(e,n);return r?$e(r):yF(n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(pn(s=>{const l=`Loading icon set URL: ${this._sanitizer.sanitize(di.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(l)),$e(null)})))).pipe(Ke(()=>{const a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw wF(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let r=n.length-1;r>=0;r--){const o=n[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(zi(n=>e.svgText=n),Ke(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?$e(null):this._fetchIcon(e).pipe(zi(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,r){const o=e.querySelector(`[id="${n}"]`);if(!o)return null;const a=o.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,r);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),r);const s=this._svgElementFromString(Uh(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){const n=this._document.createElement("DIV");n.innerHTML=e;const r=n.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const n=this._svgElementFromString(Uh("")),r=e.attributes;for(let o=0;oUh(l)),$p(()=>this._inProgressUrlFetches.delete(a)),uk());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(DF(e,n),r),this}_addSvgIconSetConfig(e,n){const r=this._iconSetConfigs.get(e);return r?r.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){const n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let r=0;ri?i.pathname+i.search:""}}}),SF=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],EQ=SF.map(t=>`[${t}]`).join(", "),TQ=/^url\(['"]?#(.*?)['"]?\)$/;let Qo=(()=>{class t extends CQ{get inline(){return this._inline}set inline(e){this._inline=je(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(e,n,r,o,a,s){super(e),this._iconRegistry=n,this._location=o,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=yt.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){const r=e.childNodes[n];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),n.forEach(r=>e.classList.add(r)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const n=this._elementsWithExternalReferences;n&&n.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const n=e.querySelectorAll(EQ),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const s=n[o],c=s.getAttribute(a),l=c?c.match(TQ):null;if(l){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[n,r]=this._splitIconName(e);n&&(this._svgNamespace=n),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,n).pipe(ui(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${n}:${r}! ${o.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Ng),fo("aria-hidden"),b(DQ),b(Xa),b(kQ,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,n){2&e&&(ot("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),Qe("mat-icon-inline",n.inline)("mat-icon-no-color","primary"!==n.color&&"accent"!==n.color&&"warn"!==n.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[pe],ngContentSelectors:bQ,decls:1,vars:0,template:function(e,n){1&e&&(vi(),tt(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),t})(),MQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,xt]}),t})();function EF(t,i){return i?e=>dh(i.pipe(ui(1),function AQ(){return Gi((t,i)=>{t.subscribe(Bi(i,pr))})}()),e.pipe(EF(t))):En((e,n)=>Yn(t(e,n)).pipe(ui(1),qM(e)))}function r1(t,i=Rh){const e=Fg(t,i);return EF(()=>e)}const IQ=["mat-menu-item",""];function FQ(t,i){1&t&&(Wa(),v(0,"svg",3),Se(1,"polygon",4),y())}const RQ=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],OQ=["mat-icon, [matMenuItemIcon]","*"];function PQ(t,i){if(1&t){const e=Je();v(0,"div",0),X("keydown",function(r){return Me(e),Ae(q()._handleKeydown(r))})("click",function(){return Me(e),Ae(q().closed.emit("click"))})("@transformMenu.start",function(r){return Me(e),Ae(q()._onAnimationStart(r))})("@transformMenu.done",function(r){return Me(e),Ae(q()._onAnimationDone(r))}),v(1,"div",1),tt(2),y()()}if(2&t){const e=q();T("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),ot("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const LQ=["*"],o1=new ae("MAT_MENU_PANEL"),NQ=Hs(rs(class{}));let wa=(()=>{class t extends NQ{constructor(e,n,r,o,a){super(),this._elementRef=e,this._document=n,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new ke,this._focused=new ke,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",fi("120ms cubic-bezier(0, 0, 0.2, 1)",rt({opacity:1,transform:"scale(1)"}))),ai("* => void",fi("100ms 25ms linear",rt({opacity:0})))]),fadeInItems:vn("fadeInItems",[ii("showing",rt({opacity:1})),ai("void => *",[rt({opacity:0}),fi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let VQ=0;const TF=new ae("mat-menu-default-options",{providedIn:"root",factory:function HQ(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let zh=(()=>{class t{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=je(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(e)}set panelClass(e){const n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,n,r,o){this._elementRef=e,this._ngZone=n,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Tc,this._classList={},this._panelAnimationState="void",this._animationDone=new ke,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new xe,this.close=this.closed,this.panelId="mat-menu-panel-"+VQ++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new By(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Hn(this._directDescendantItems),mn(e=>Vi(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const n=this._keyManager;if("enter"===this._panelAnimationState&&n.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,n.activeItemIndex||0));r[o]&&!r[o].disabled?n.setActiveItem(o):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Hn(this._directDescendantItems),mn(n=>Vi(...n.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const n=e.keyCode,r=this._keyManager;switch(n){case 27:wr(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===n||40===n)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(ui(1)).subscribe(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&n&&n.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const n=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${n}`,o=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,n=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===n,r["mat-menu-below"]="below"===n,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Hn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(ze),b(TF),b(Gt))},t.\u0275dir=Q({type:t,contentQueries:function(e,n,r){if(1&e&&(Bt(r,BQ,5),Bt(r,wa,5),Bt(r,wa,4)),2&e){let o;ye(o=we())&&(n.lazyContent=o.first),ye(o=we())&&(n._allItems=o),ye(o=we())&&(n.items=o)}},viewQuery:function(e,n){if(1&e&&st(_i,5),2&e){let r;ye(r=we())&&(n.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t})(),jc=(()=>{class t extends zh{constructor(e,n,r,o){super(e,n,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(ze),b(TF),b(Gt))},t.\u0275cmp=Ve({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,n){2&e&&ot("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[We([{provide:o1,useExisting:t}]),pe],ngContentSelectors:LQ,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(e,n){1&e&&(vi(),H(0,PQ,3,6,"ng-template"))},dependencies:[Ms],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Vg.transformMenu,Vg.fadeInItems]},changeDetection:0}),t})();const MF=new ae("mat-menu-scroll-strategy"),zQ={provide:MF,deps:[rr],useFactory:function UQ(t){return()=>t.scrollStrategies.reposition()}},AF=Xo({passive:!0});let $Q=(()=>{class t{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),("click"===n||"tab"===n)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,n,r,o,a,s,c,l,d){this._overlay=e,this._element=n,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=c,this._focusMonitor=l,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=yt.EMPTY,this._hoverSubscription=yt.EMPTY,this._menuCloseSubscription=yt.EMPTY,this._changeDetectorRef=ht(Gt),this._handleTouchStart=u=>{Cg(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new xe,this.onMenuOpen=this.menuOpened,this.menuClosed=new xe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof zh?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,AF)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,AF),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const n=this._createOverlay(e),r=n.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,n.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof zh&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Tt(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof zh?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(hi(r=>"void"===r.toState),ui(1),Tt(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let n=0,r=e.parentMenu;for(;r;)n++,r=r.parentMenu;e.setElevation(n)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Ld({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",a="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,a)):e.setPositionClasses(o,a)})}_setPosition(e,n){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[a,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[c,l]=[a,s],[d,u]=[r,o],h=0;if(this.triggersSubmenu()){if(u=r="before"===e.xPosition?"start":"end",o=d="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const f=this._parentMaterialMenu.items.first;this._parentInnerPadding=f?f._getHostElement().offsetTop:0}h="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c="top"===a?"bottom":"top",l="top"===s?"bottom":"top");n.withPositions([{originX:r,originY:c,overlayX:d,overlayY:a,offsetY:h},{originX:o,originY:c,overlayX:u,overlayY:a,offsetY:h},{originX:r,originY:l,overlayX:d,overlayY:s,offsetY:-h},{originX:o,originY:l,overlayX:u,overlayY:s,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return Vi(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:$e(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(hi(a=>a!==this._menuItemInstance),hi(()=>this._menuOpen)):$e(),n)}_handleMousedown(e){wg(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const n=e.keyCode;(13===n||32===n)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===n&&"ltr"===this.dir||37===n&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(hi(e=>e===this._menuItemInstance&&!e.disabled),r1(0,Ky)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof zh&&this.menu._isAnimating?this.menu._animationDone.pipe(ui(1),r1(0,Ky),Tt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new ss(e.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(b(rr),b(Fe),b(Fi),b(MF),b(o1,8),b(wa,10),b(bn,8),b(yo),b(ze))},t.\u0275dir=Q({type:t,hostVars:3,hostBindings:function(e,n){1&e&&X("click",function(o){return n._handleClick(o)})("mousedown",function(o){return n._handleMousedown(o)})("keydown",function(o){return n._handleKeydown(o)}),2&e&&ot("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),Wc=(()=>{class t extends $Q{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[pe]}),t})(),jQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[zQ],imports:[nr,Us,xt,zc,Hc,xt]}),t})();const WQ=["determinateSpinner"];function GQ(t,i){if(1&t&&(Wa(),v(0,"svg",11),Se(1,"circle",12),y()),2&t){const e=q();ot("viewBox",e._viewBox()),k(1),ir("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),ot("r",e._circleRadius())}}const qQ=Vs(class{constructor(t){this._elementRef=t}},"primary"),XQ=new ae("mat-progress-spinner-default-options",{providedIn:"root",factory:function QQ(){return{diameter:IF}}}),IF=100;let Bd=(()=>{class t extends qQ{constructor(e,n,r){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=IF,this._noopAnimations="NoopAnimations"===n&&!!r&&!r._forceAnimations,r&&(r.color&&(this.color=this.defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,In(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=In(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=In(e)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const e=2*this._circleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Ri,8),b(XQ))},t.\u0275cmp=Ve({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(e,n){if(1&e&&st(WQ,5),2&e){let r;ye(r=we())&&(n._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function(e,n){2&e&&(ot("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===n.mode?n.value:null)("mode",n.mode),ir("width",n.diameter,"px")("height",n.diameter,"px"),Qe("_mat-animation-noopable",n._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===n.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[pe],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(e,n){if(1&e&&(H(0,GQ,2,8,"ng-template",null,0,Mc),v(2,"div",1,2),Wa(),v(4,"svg",3),Se(5,"circle",4),y()(),Ll(),v(6,"div",5)(7,"div",6)(8,"div",7),Jr(9,8),y(),v(10,"div",9),Jr(11,8),y(),v(12,"div",10),Jr(13,8),y()()()),2&e){const r=Nt(1);k(4),ot("viewBox",n._viewBox()),k(1),ir("stroke-dasharray",n._strokeCircumference(),"px")("stroke-dashoffset",n._strokeDashOffset(),"px")("stroke-width",n._circleStrokeWidth(),"%"),ot("r",n._circleRadius()),k(4),T("ngTemplateOutlet",r),k(2),T("ngTemplateOutlet",r),k(2),T("ngTemplateOutlet",r)}},dependencies:[Pp],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, transparent)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),t})(),KQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[nr,xt]}),t})();const ZQ=["*"],nY=new ae("MAT_CARD_CONFIG");let a1=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}}return t.\u0275fac=function(e){return new(e||t)(b(nY,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(e,n){2&e&&Qe("mat-mdc-card-outlined","outlined"===n.appearance)("mdc-card--outlined","outlined"===n.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:ZQ,decls:1,vars:0,template:function(e,n){1&e&&(vi(),tt(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),t})(),_Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,nr,xt]}),t})();const vY=[[["caption"]],[["colgroup"],["col"]]],xY=["caption","colgroup, col"];function s1(t){return class extends t{get sticky(){return this._sticky}set sticky(i){const e=this._sticky;this._sticky=je(i),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const i=this._hasStickyChanged;return this._hasStickyChanged=!1,i}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...i){super(...i),this._sticky=!1,this._hasStickyChanged=!1}}}const Vd=new ae("CDK_TABLE");let Hd=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]}),t})(),Ud=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),Hg=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class kY{}const DY=s1(kY);let ls=(()=>{class t extends DY{get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const n=this._stickyEnd;this._stickyEnd=je(e),this._hasStickyChanged=n!==this._stickyEnd}constructor(e){super(),this._table=e,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(b(Vd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,Hd,5),Bt(r,Ud,5),Bt(r,Hg,5)),2&e){let o;ye(o=we())&&(n.cell=o.first),ye(o=we())&&(n.headerCell=o.first),ye(o=we())&&(n.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[We([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),pe]}),t})();class c1{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}}let l1=(()=>{class t extends c1{constructor(e,n){super(e,n)}}return t.\u0275fac=function(e){return new(e||t)(b(ls),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[pe]}),t})(),d1=(()=>{class t extends c1{constructor(e,n){if(super(e,n),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");n.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(b(ls),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[pe]}),t})();class RF{constructor(){this.tasks=[],this.endTasks=[]}}const u1=new ae("_COALESCED_STYLE_SCHEDULER");let OF=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new ke}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new RF,this._getScheduleObservable().pipe(Tt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new RF;for(const n of e.tasks)n();for(const n of e.endTasks)n()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Ji(Promise.resolve(void 0)):this._ngZone.onStable.pipe(ui(1))}}return t.\u0275fac=function(e){return new(e||t)(G(ze))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),h1=(()=>{class t{constructor(e,n){this.template=e,this._differs=n}ngOnChanges(e){if(!this._columnsDiffer){const n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof $h?e.headerCell.template:this instanceof jh?e.footerCell.template:e.cell.template}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Za))},t.\u0275dir=Q({type:t,features:[Ei]}),t})();class SY extends h1{}const EY=s1(SY);let $h=(()=>{class t extends EY{constructor(e,n,r){super(e,n),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Za),b(Vd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[pe,Ei]}),t})();class TY extends h1{}const MY=s1(TY);let jh=(()=>{class t extends MY{constructor(e,n,r){super(e,n),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Za),b(Vd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[pe,Ei]}),t})(),Ug=(()=>{class t extends h1{constructor(e,n,r){super(e,n),this._table=r}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Za),b(Vd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[pe]}),t})(),ds=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.mostRecentCellOutlet=null,t.\u0275fac=function(e){return new(e||t)(b(Fi))},t.\u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]}),t})(),f1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ve({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Jr(0,0)},dependencies:[ds],encapsulation:2}),t})(),p1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ve({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Jr(0,0)},dependencies:[ds],encapsulation:2}),t})(),zg=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const PF=["top","bottom","left","right"];class AY{constructor(i,e,n,r,o=!0,a=!0,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){const n=[];for(const r of i)if(r.nodeType===r.ELEMENT_NODE){n.push(r);for(let o=0;o{for(const r of n)this._removeStickyStyle(r,e)})}updateStickyColumns(i,e,n,r=!0){if(!i.length||!this._isBrowser||!e.some(h=>h)&&!n.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=i[0],a=o.children.length,s=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(s,e),l=this._getStickyEndColumnPositions(s,n),d=e.lastIndexOf(!0),u=n.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,f=h?"right":"left",m=h?"left":"right";for(const g of i)for(let p=0;pe[p]?g:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:s.slice(u).map((g,p)=>n[p+u]?g:null).reverse()}))})}stickRows(i,e,n){if(!this._isBrowser)return;const r="bottom"===n?i.slice().reverse():i,o="bottom"===n?e.slice().reverse():e,a=[],s=[],c=[];for(let d=0,u=0;d{for(let d=0;d{e.some(r=>!r)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1)})}_removeStickyStyle(i,e){for(const r of e)i.style[r]="",i.classList.remove(this._borderCellCss[r]);PF.some(r=>-1===e.indexOf(r)&&i.style[r])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,r){i.classList.add(this._stickCellCss),r&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const r of PF)i.style[r]&&(n+=e[r]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],r=i.children;for(let o=0;o0;o--)e[o]&&(n[o]=r,r+=i[o]);return n}}const g1=new ae("CDK_SPL");let $g=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]}),t})(),jg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),Wg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Gg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),qg=(()=>{class t{get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=je(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=je(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,n,r,o,a,s,c,l,d,u,h,f){this._differs=e,this._changeDetectorRef=n,this._elementRef=r,this._dir=a,this._platform=c,this._viewRepeater=l,this._coalescedStyleScheduler=d,this._viewportRuler=u,this._stickyPositioningListener=h,this._ngZone=f,this._onDestroy=new ke,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new xe,this.viewChange=new Vn({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(Tt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),_y(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{n.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&ze.isInAngularZone()?this._ngZone.onStable.pipe(ui(1),Tt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const o=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{const a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const s=r&&r.has(a)?r.get(a):[];if(s.length){const c=s.shift();return c.dataIndex=n,c}return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Xg(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=Xg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Xg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Xg(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(a,s)=>a||!!s.getColumnsDiff(),n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),n||r||o}_switchDataSource(e){this._data=[],_y(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;_y(this.dataSource)?e=this.dataSource.connect(this):function bY(t){return!!t&&(t instanceof ni||Wt(t.lift)&&Wt(t.subscribe))}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=$e(this.dataSource)),this._renderChangeSubscription=e.pipe(Tt(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){const r=Array.from(n.columns||[]).map(s=>this._columnDefsByName.get(s)),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const n=[];for(let r=0;r!o.when||o.when(n,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,n){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:n}}_renderRow(e,n,r,o={}){const a=e.viewContainer.createEmbeddedView(n.template,o,r);return this._renderCellTemplateForItem(n,o),a}_renderCellTemplateForItem(e,n){for(let r of this._getCellTemplates(e))ds.mostRecentCellOutlet&&ds.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let n=0,r=e.length;n{const r=this._columnDefsByName.get(n);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),n=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of n){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const a of r.outlets)o.appendChild(a.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(n,r)=>n||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new AY(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:$e()).pipe(Tt(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const n=0===this._rowOutlet.viewContainer.length;if(n===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(n){const o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];1===o.rootNodes.length&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=n}}return t.\u0275fac=function(e){return new(e||t)(b(Za),b(Gt),b(Fe),fo("role"),b(bn,8),b(nt),b(xi),b(Sh),b(u1),b(ya),b(g1,12),b(ze,8))},t.\u0275cmp=Ve({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,zg,5),Bt(r,ls,5),Bt(r,Ug,5),Bt(r,$h,5),Bt(r,jh,5)),2&e){let o;ye(o=we())&&(n._noDataRow=o.first),ye(o=we())&&(n._contentColumnDefs=o),ye(o=we())&&(n._contentRowDefs=o),ye(o=we())&&(n._contentHeaderRowDefs=o),ye(o=we())&&(n._contentFooterRowDefs=o)}},viewQuery:function(e,n){if(1&e&&(st($g,7),st(jg,7),st(Wg,7),st(Gg,7)),2&e){let r;ye(r=we())&&(n._rowOutlet=r.first),ye(r=we())&&(n._headerRowOutlet=r.first),ye(r=we())&&(n._footerRowOutlet=r.first),ye(r=we())&&(n._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,n){2&e&&Qe("cdk-table-fixed-layout",n.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[We([{provide:Vd,useExisting:t},{provide:Sh,useClass:eI},{provide:u1,useClass:OF},{provide:g1,useValue:null}])],ngContentSelectors:xY,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(vi(vY),tt(0),tt(1,1),Jr(2,0)(3,1)(4,2)(5,3))},dependencies:[$g,jg,Wg,Gg],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),t})();function Xg(t,i){return t.concat(Array.from(i))}let FY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Jy]}),t})();const RY=[[["caption"]],[["colgroup"],["col"]]],OY=["caption","colgroup, col"];let Wh=(()=>{class t extends qg{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(e,n){2&e&&Qe("mdc-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],features:[We([{provide:qg,useExisting:t},{provide:Vd,useExisting:t},{provide:u1,useClass:OF},{provide:Sh,useClass:eI},{provide:g1,useValue:null}]),pe],ngContentSelectors:OY,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(vi(RY),tt(0),tt(1,1),Jr(2,0)(3,1)(4,2)(5,3))},dependencies:[$g,jg,Wg,Gg],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),t})(),zd=(()=>{class t extends Hd{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[We([{provide:Hd,useExisting:t}]),pe]}),t})(),$d=(()=>{class t extends Ud{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[We([{provide:Ud,useExisting:t}]),pe]}),t})(),jd=(()=>{class t extends ls{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[We([{provide:ls,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),pe]}),t})(),Wd=(()=>{class t extends l1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[pe]}),t})(),Gd=(()=>{class t extends d1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[pe]}),t})(),Gh=(()=>{class t extends $h{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[We([{provide:$h,useExisting:t}]),pe]}),t})(),qh=(()=>{class t extends Ug{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[We([{provide:Ug,useExisting:t}]),pe]}),t})(),Xh=(()=>{class t extends f1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[We([{provide:f1,useExisting:t}]),pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Jr(0,0)},dependencies:[ds],encapsulation:2}),t})(),Qh=(()=>{class t extends p1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[We([{provide:p1,useExisting:t}]),pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Jr(0,0)},dependencies:[ds],encapsulation:2}),t})(),jY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,FY,xt]}),t})();class GY extends gy{get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}constructor(i=[]){super(),this._renderData=new Vn([]),this._filter=new Vn(""),this._internalPageChanges=new ke,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,n)=>{const r=e[n];if(xI(r)){const o=Number(r);return o<9007199254740991?o:r}return r},this.sortData=(e,n)=>{const r=n.active,o=n.direction;return r&&""!=o?e.sort((a,s)=>{let c=this.sortingDataAccessor(a,r),l=this.sortingDataAccessor(s,r);const d=typeof c,u=typeof l;d!==u&&("number"===d&&(c+=""),"number"===u&&(l+=""));let h=0;return null!=c&&null!=l?c>l?h=1:c{const r=Object.keys(e).reduce((a,s)=>a+e[s]+"\u25ec","").toLowerCase(),o=n.trim().toLowerCase();return-1!=r.indexOf(o)},this._data=new Vn(i),this._updateChangeSubscription()}_updateChangeSubscription(){const i=this._sort?Vi(this._sort.sortChange,this._sort.initialized):$e(null),e=this._paginator?Vi(this._paginator.page,this._internalPageChanges,this._paginator.initialized):$e(null),r=Fc([this._data,this._filter]).pipe(Ke(([s])=>this._filterData(s))),o=Fc([r,i]).pipe(Ke(([s])=>this._orderData(s))),a=Fc([o,e]).pipe(Ke(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=null==this.filter||""===this.filter?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;const e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){const n=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,n);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Yh extends GY{}let NF=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(b(qa),b(Fe))},t.\u0275dir=Q({type:t}),t})(),Gc=(()=>{class t extends NF{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,features:[pe]}),t})();const Xn=new ae("NgValueAccessor"),XY={provide:Xn,useExisting:Xt(()=>Ca),multi:!0},YY=new ae("CompositionEventMode");let Ca=(()=>{class t extends NF{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function QY(){const t=Ja()?Ja().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(b(qa),b(Fe),b(YY,8))},t.\u0275dir=Q({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,n){1&e&&X("input",function(o){return n._handleInput(o.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(o){return n._compositionEnd(o.target.value)})},features:[We([XY]),pe]}),t})();const KY=!1;function $s(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function VF(t){return null!=t&&"number"==typeof t.length}const Un=new ae("NgValidators"),js=new ae("NgAsyncValidators"),ZY=/^(?=.{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 qd{static min(i){return function HF(t){return i=>{if($s(i.value)||$s(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e{if($s(i.value)||$s(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(i)}static required(i){return zF(i)}static requiredTrue(i){return function $F(t){return!0===t.value?null:{required:!0}}(i)}static email(i){return function jF(t){return $s(t.value)||ZY.test(t.value)?null:{email:!0}}(i)}static minLength(i){return WF(i)}static maxLength(i){return function GF(t){return i=>VF(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(i)}static pattern(i){return qF(i)}static nullValidator(i){return null}static compose(i){return JF(i)}static composeAsync(i){return eR(i)}}function zF(t){return $s(t.value)?{required:!0}:null}function WF(t){return i=>$s(i.value)||!VF(i.value)?null:i.value.length{if($s(n.value))return null;const r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Qg(t){return null}function XF(t){return null!=t}function QF(t){const i=ju(t)?Ji(t):t;if(KY&&!yv(i)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof t&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new ue(-1101,e)}return i}function YF(t){let i={};return t.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function KF(t,i){return i.map(e=>e(t))}function ZF(t){return t.map(i=>function JY(t){return!t.validate}(i)?i:e=>i.validate(e))}function JF(t){if(!t)return null;const i=t.filter(XF);return 0==i.length?null:function(e){return YF(KF(e,i))}}function _1(t){return null!=t?JF(ZF(t)):null}function eR(t){if(!t)return null;const i=t.filter(XF);return 0==i.length?null:function(e){return yF(KF(e,i).map(QF)).pipe(Ke(YF))}}function b1(t){return null!=t?eR(ZF(t)):null}function tR(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function iR(t){return t._rawValidators}function nR(t){return t._rawAsyncValidators}function v1(t){return t?Array.isArray(t)?t:[t]:[]}function Yg(t,i){return Array.isArray(t)?t.includes(i):t===i}function rR(t,i){const e=v1(i);return v1(t).forEach(r=>{Yg(e,r)||e.push(r)}),e}function oR(t,i){return v1(i).filter(e=>!Yg(t,e))}class aR{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(i){this._rawValidators=i||[],this._composedValidatorFn=_1(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=b1(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class Cr extends aR{get formDirective(){return null}get path(){return null}}class ka extends aR{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class sR{constructor(i){this._cd=i}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 Co=(()=>{class t extends sR{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(b(ka,2))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&Qe("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},features:[pe]}),t})(),Kh=(()=>{class t extends sR{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Cr,10))},t.\u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&Qe("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},features:[pe]}),t})();function cR(t,i){return t?`with name: '${i}'`:`at index: ${i}`}const w1=!1,Zh="VALID",Zg="INVALID",Xd="PENDING",Jh="DISABLED";function C1(t){return(Jg(t)?t.validators:t)||null}function k1(t,i){return(Jg(i)?i.asyncValidators:t)||null}function Jg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function lR(t,i,e){const n=t.controls;if(!(i?Object.keys(n):n).length)throw new ue(1e3,w1?function nK(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(i):"");if(!n[e])throw new ue(1001,w1?function rK(t,i){return`Cannot find form control ${cR(t,i)}`}(i,e):"")}function dR(t,i,e){t._forEachChild((n,r)=>{if(void 0===e[r])throw new ue(1002,w1?function oK(t,i){return`Must supply a value for form control ${cR(t,i)}`}(i,r):"")})}class e0{constructor(i,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(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===Zh}get invalid(){return this.status===Zg}get pending(){return this.status==Xd}get disabled(){return this.status===Jh}get enabled(){return this.status!==Jh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(rR(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(rR(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(oR(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(oR(i,this._rawAsyncValidators))}hasValidator(i){return Yg(this._rawValidators,i)}hasAsyncValidator(i){return Yg(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Xd,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=Jh,this.errors=null,this._forEachChild(n=>{n.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=Zh,this._forEachChild(n=>{n.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Zh||this.status===Xd)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Jh:Zh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Xd,this._hasOwnPendingAsyncValidator=!0;const e=QF(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new xe,this.statusChanges=new xe}_calculateStatus(){return this._allControlsDisabled()?Jh:this.errors?Zg:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xd)?Xd:this._anyControlsHaveStatus(Zg)?Zg:Zh}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Jg(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function aK(t){return Array.isArray(t)?_1(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function sK(t){return Array.isArray(t)?b1(t):t||null}(this._rawAsyncValidators)}}class Qd extends e0{constructor(i,e,n){super(C1(e),k1(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){dR(this,!0,i),Object.keys(i).forEach(n=>{lR(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{const r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,o)=>{n=e(n,r,o)}),n}_allControlsDisabled(){for(const i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}}class uR extends Qd{}const qc=new ae("CallSetDisabledState",{providedIn:"root",factory:()=>ef}),ef="always";function t0(t,i){return[...i.path,t]}function tf(t,i,e=ef){D1(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function lK(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&hR(t,i)})}(t,i),function uK(t,i){const e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function dK(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&hR(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function cK(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function n0(t,i,e=!0){const n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),o0(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function r0(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function D1(t,i){const e=iR(t);null!==i.validator?t.setValidators(tR(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=nR(t);null!==i.asyncValidator?t.setAsyncValidators(tR(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const r=()=>t.updateValueAndValidity();r0(i._rawValidators,r),r0(i._rawAsyncValidators,r)}function o0(t,i){let e=!1;if(null!==t){if(null!==i.validator){const r=iR(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==i.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==i.asyncValidator){const r=nR(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==i.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const n=()=>{};return r0(i._rawValidators,n),r0(i._rawAsyncValidators,n),e}function hR(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function fR(t,i){D1(t,i)}function E1(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}function mR(t,i){t._syncPendingControls(),i.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function T1(t,i){if(!i)return null;let e,n,r;return Array.isArray(i),i.forEach(o=>{o.constructor===Ca?e=o:function mK(t){return Object.getPrototypeOf(t.constructor)===Gc}(o)?n=o:r=o}),r||n||e||null}const gK={provide:Cr,useExisting:Xt(()=>Xc)},nf=(()=>Promise.resolve())();let Xc=(()=>{class t extends Cr{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new xe,this.form=new Qd({},_1(e),b1(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){nf.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),tf(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){nf.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){nf.then(()=>{const n=this._findContainer(e.path),r=new Qd({});fR(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){nf.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){nf.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,mR(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(b(Un,10),b(js,10),b(qc,8))},t.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&X("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[We([gK]),pe]}),t})();function pR(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function gR(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Br=class extends e0{constructor(i=null,e,n){super(C1(e),k1(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Jg(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=gR(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){pR(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){pR(this._onDisabledChange,i)}_forEachChild(i){}_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(i){gR(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},_K=Br,xK={provide:ka,useExisting:Xt(()=>Yo)},vR=(()=>Promise.resolve())();let Yo=(()=>{class t extends ka{constructor(e,n,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Br,this._registered=!1,this.update=new xe,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=T1(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),E1(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(){tf(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){vR.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,r=0!==n&&pd(n);vR.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?t0(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(b(Cr,9),b(Un,10),b(js,10),b(Xn,10),b(Gt,8),b(qc,8))},t.\u0275dir=Q({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:[We([xK]),pe,Ei]}),t})(),rf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const yK={provide:Xn,useExisting:Xt(()=>a0),multi:!0};let a0=(()=>{class t extends Gc{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&X("input",function(o){return n.onChange(o.target.value)})("blur",function(){return n.onTouched()})},features:[We([yK]),pe]}),t})(),xR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const M1=new ae("NgModelWithFormControlWarning"),DK={provide:ka,useExisting:Xt(()=>s0)};let s0=(()=>{class t extends ka{set isDisabled(e){}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new xe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=T1(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const n=e.form.previousValue;n&&n0(n,this,!1),tf(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}E1(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&n0(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(b(Un,10),b(js,10),b(Xn,10),b(M1,8),b(qc,8))},t.\u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[We([DK]),pe,Ei]}),t})();const SK={provide:Cr,useExisting:Xt(()=>Ws)};let Ws=(()=>{class t extends Cr{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new xe,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(o0(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 n=this.form.get(e.path);return tf(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){n0(e.control||null,e,!1),function pK(t,i){const e=t.indexOf(i);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,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this.submitted=!0,mR(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const n=e.control,r=this.form.get(e.path);n!==r&&(n0(n||null,e),(t=>t instanceof Br)(r)&&(tf(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const n=this.form.get(e.path);fR(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const n=this.form.get(e.path);n&&function hK(t,i){return o0(t,i)}(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){D1(this.form,this),this._oldForm&&o0(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(b(Un,10),b(js,10),b(qc,8))},t.\u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,n){1&e&&X("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[We([SK]),pe,Ei]}),t})();const MK={provide:ka,useExisting:Xt(()=>af)};let af=(()=>{class t extends ka{set isDisabled(e){}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new xe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=T1(0,o)}ngOnChanges(e){this._added||this._setUpControl(),E1(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 t0(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(b(Cr,13),b(Un,10),b(js,10),b(Xn,10),b(M1,8))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[We([MK]),pe,Ei]}),t})();let Qc=(()=>{class t{constructor(){this._validator=Qg}ngOnChanges(e){if(this.inputName in e){const n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Qg,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,features:[Ei]}),t})();const BK={provide:Un,useExisting:Xt(()=>c0),multi:!0};let c0=(()=>{class t extends Qc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=pd,this.createValidator=e=>zF}enabled(e){return e}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&ot("required",n._enabled?"":null)},inputs:{required:"required"},features:[We([BK]),pe]}),t})();const UK={provide:Un,useExisting:Xt(()=>O1),multi:!0};let O1=(()=>{class t extends Qc{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>function SR(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>WF(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ot("minlength",n._enabled?n.minlength:null)},inputs:{minlength:"minlength"},features:[We([UK]),pe]}),t})();const $K={provide:Un,useExisting:Xt(()=>d0),multi:!0};let d0=(()=>{class t extends Qc{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>qF(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ot("pattern",n._enabled?n.pattern:null)},inputs:{pattern:"pattern"},features:[We([$K]),pe]}),t})(),FR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xR]}),t})();class RR extends e0{constructor(i,e,n){super(C1(e),k1(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let r=this._adjustIndex(i);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:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){dR(this,!1,i),i.forEach((n,r)=>{lR(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}}function OR(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let PR=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,n=null){const r=this._reduceControls(e);let o={};return OR(n)?o=n:null!==n&&(o.validators=n.validator,o.asyncValidators=n.asyncValidator),new Qd(r,o)}record(e,n=null){const r=this._reduceControls(e);return new uR(r,n)}control(e,n,r){let o={};return this.useNonNullable?(OR(n)?o=n:(o.validators=n,o.asyncValidators=r),new Br(e,{...o,nonNullable:!0})):new Br(e,n,r)}array(e,n,r){const o=e.map(a=>this._createControl(a));return new RR(o,n,r)}_reduceControls(e){const n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){return e instanceof Br||e instanceof e0?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),P1=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:qc,useValue:e.callSetDisabledState??ef}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[FR]}),t})(),jK=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:M1,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:qc,useValue:e.callSetDisabledState??ef}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[FR]}),t})();const WK=["matFormFieldNotchedOutline",""],GK=["*"],qK=["textField"],XK=["iconPrefixContainer"],QK=["textPrefixContainer"];function YK(t,i){1&t&&Se(0,"span",19)}function KK(t,i){if(1&t){const e=Je();v(0,"label",17),X("cdkObserveContent",function(){return Me(e),Ae(q(2)._refreshOutlineNotchWidth())}),tt(1,1),H(2,YK,1,0,"span",18),y()}if(2&t){const e=q(2);T("floating",e._shouldLabelFloat())("cdkObserveContentDisabled",!e._hasOutline())("id",e._labelId),ot("for",e._control.id)("aria-owns",e._control.id),k(2),T("ngIf",!e.hideRequiredMarker&&e._control.required)}}function ZK(t,i){1&t&&H(0,KK,3,6,"label",16),2&t&&T("ngIf",q()._hasFloatingLabel())}function JK(t,i){1&t&&Se(0,"div",20)}function eZ(t,i){}function tZ(t,i){1&t&&H(0,eZ,0,0,"ng-template",22),2&t&&(q(2),T("ngTemplateOutlet",Nt(1)))}function iZ(t,i){if(1&t&&(v(0,"div",21),H(1,tZ,1,1,"ng-template",9),y()),2&t){const e=q();T("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",e._labelWidth),k(1),T("ngIf",!e._forceDisplayInfixLabel())}}function nZ(t,i){1&t&&(v(0,"div",23,24),tt(2,2),y())}function rZ(t,i){1&t&&(v(0,"div",25,26),tt(2,3),y())}function oZ(t,i){}function aZ(t,i){1&t&&H(0,oZ,0,0,"ng-template",22),2&t&&(q(),T("ngTemplateOutlet",Nt(1)))}function sZ(t,i){1&t&&(v(0,"div",27),tt(1,4),y())}function cZ(t,i){1&t&&(v(0,"div",28),tt(1,5),y())}function lZ(t,i){1&t&&Se(0,"div",29)}function dZ(t,i){1&t&&(v(0,"div",30),tt(1,6),y()),2&t&&T("@transitionMessages",q()._subscriptAnimationState)}function uZ(t,i){if(1&t&&(v(0,"mat-hint",34),E(1),y()),2&t){const e=q(2);T("id",e._hintLabelId),k(1),Xe(e.hintLabel)}}function hZ(t,i){if(1&t&&(v(0,"div",31),H(1,uZ,2,2,"mat-hint",32),tt(2,7),Se(3,"div",33),tt(4,8),y()),2&t){const e=q();T("@transitionMessages",e._subscriptAnimationState),k(1),T("ngIf",e.hintLabel)}}const fZ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],mZ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let ko=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-label"]]}),t})(),pZ=0;const LR=new ae("MatError");let NR=(()=>{class t{constructor(e,n){this.id="mat-mdc-error-"+pZ++,e||n.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(fo("aria-live"),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(e,n){2&e&&pa("id",n.id)},inputs:{id:"id"},features:[We([{provide:LR,useExisting:t}])]}),t})(),gZ=0,Yc=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+gZ++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,n){2&e&&(pa("id",n.id),ot("align",null),Qe("mat-mdc-form-field-hint-end","end"===n.align))},inputs:{align:"align",id:"id"}}),t})();const _Z=new ae("MatPrefix"),BR=new ae("MatSuffix");let VR=(()=>{class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[We([{provide:BR,useExisting:t}])]}),t})(),HR=(()=>{class t{constructor(e){this._elementRef=e,this.floating=!1}getWidth(){return function bZ(t){if(null!==t.offsetParent)return t.scrollWidth;const e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const n=e.scrollWidth;return e.remove(),n}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(b(Fe))},t.\u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,n){2&e&&Qe("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating"}}),t})();const UR="mdc-line-ripple--active",u0="mdc-line-ripple--deactivating";let zR=(()=>{class t{constructor(e,n){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,a=o.contains(u0);"opacity"===r.propertyName&&a&&o.remove(UR,u0)},n.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(u0),e.add(UR)}deactivate(){this._elementRef.nativeElement.classList.add(u0)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(ze))},t.\u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),t})(),$R=(()=>{class t{constructor(e,n){this._elementRef=e,this._ngZone=n,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(ze))},t.\u0275cmp=Ve({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,n){2&e&&Qe("mdc-notched-outline--notched",n.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:WK,ngContentSelectors:GK,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(e,n){1&e&&(vi(),Se(0,"div",0),v(1,"div",1),tt(2),y(),Se(3,"div",2)),2&e&&(k(1),ir("width",n._getNotchWidth()))},encapsulation:2,changeDetection:0}),t})();const vZ={transitionMessages:vn("transitionMessages",[ii("enter",rt({opacity:1,transform:"translateY(0%)"})),ai("void => enter",[rt({opacity:0,transform:"translateY(-5px)"}),fi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let h0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t}),t})();const f0=new ae("MatFormField"),xZ=new ae("MAT_FORM_FIELD_DEFAULT_OPTIONS");let jR=0,Da=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=je(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const n=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==n&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,n,r,o,a,s,c,l){this._elementRef=e,this._changeDetectorRef=n,this._ngZone=r,this._dir=o,this._platform=a,this._defaults=s,this._animationMode=c,this._document=l,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+jR++,this._hintLabelId="mat-mdc-hint-"+jR++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new ke,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,s&&(s.appearance&&(this.appearance=s.appearance),this._hideRequiredMarker=Boolean(s?.hideRequiredMarker),s.color&&(this.color=s.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Tt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Vi(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Tt(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Tt(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const n=this._control?this._control.ngControl:null;return n&&n[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const n=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const n=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=n?.getBoundingClientRect().width??0,a=r?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${o+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(ze),b(bn),b(xi),b(xZ,8),b(Ri,8),b(nt))},t.\u0275cmp=Ve({type:t,selectors:[["mat-form-field"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,ko,5),Bt(r,ko,7),Bt(r,h0,5),Bt(r,_Z,5),Bt(r,BR,5),Bt(r,LR,5),Bt(r,Yc,5)),2&e){let o;ye(o=we())&&(n._labelChildNonStatic=o.first),ye(o=we())&&(n._labelChildStatic=o.first),ye(o=we())&&(n._formFieldControl=o.first),ye(o=we())&&(n._prefixChildren=o),ye(o=we())&&(n._suffixChildren=o),ye(o=we())&&(n._errorChildren=o),ye(o=we())&&(n._hintChildren=o)}},viewQuery:function(e,n){if(1&e&&(st(qK,5),st(XK,5),st(QK,5),st(HR,5),st($R,5),st(zR,5)),2&e){let r;ye(r=we())&&(n._textField=r.first),ye(r=we())&&(n._iconPrefixContainer=r.first),ye(r=we())&&(n._textPrefixContainer=r.first),ye(r=we())&&(n._floatingLabel=r.first),ye(r=we())&&(n._notchedOutline=r.first),ye(r=we())&&(n._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,n){2&e&&Qe("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===n._animationMode)("mat-form-field-appearance-fill","fill"==n.appearance)("mat-form-field-appearance-outline","outline"==n.appearance)("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-focused",n._control.focused)("mat-primary","accent"!==n.color&&"warn"!==n.color)("mat-accent","accent"===n.color)("mat-warn","warn"===n.color)("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[We([{provide:f0,useExisting:t}])],ngContentSelectors:mZ,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(e,n){1&e&&(vi(fZ),H(0,ZK,1,1,"ng-template",null,0,Mc),v(2,"div",1,2),X("click",function(o){return n._control.onContainerClick&&n._control.onContainerClick(o)}),H(4,JK,1,0,"div",3),v(5,"div",4),H(6,iZ,2,3,"div",5),H(7,nZ,3,0,"div",6),H(8,rZ,3,0,"div",7),v(9,"div",8),H(10,aZ,1,1,"ng-template",9),tt(11),y(),H(12,sZ,2,0,"div",10),H(13,cZ,2,0,"div",11),y(),H(14,lZ,1,0,"div",12),y(),v(15,"div",13),H(16,dZ,2,1,"div",14),H(17,hZ,5,2,"div",15),y()),2&e&&(k(2),Qe("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),k(2),T("ngIf",!n._hasOutline()&&!n._control.disabled),k(2),T("ngIf",n._hasOutline()),k(1),T("ngIf",n._hasIconPrefix),k(1),T("ngIf",n._hasTextPrefix),k(2),T("ngIf",!n._hasOutline()||n._forceDisplayInfixLabel()),k(2),T("ngIf",n._hasTextSuffix),k(1),T("ngIf",n._hasIconSuffix),k(1),T("ngIf",!n._hasOutline()),k(1),Qe("mat-mdc-form-field-subscript-dynamic-size","dynamic"===n.subscriptSizing),T("ngSwitch",n._getDisplayedMessages()),k(1),T("ngSwitchCase","error"),k(1),T("ngSwitchCase","hint"))},dependencies:[fn,Pp,oh,Dx,Oy,Yc,HR,$R,zR],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[vZ.transitionMessages]},changeDetection:0}),t})(),m0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,nr,bg,xt]}),t})();const CZ=["panel"];function kZ(t,i){if(1&t&&(v(0,"div",0,1),tt(2),y()),2&t){const e=i.id,n=q();T("id",n.id)("ngClass",n._classList)("@panelAnimation",n.isOpen?"visible":"hidden"),ot("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}const DZ=["*"],SZ=vn("panelAnimation",[ii("void, hidden",rt({opacity:0,transform:"scaleY(0.8)"})),ai(":enter, hidden => visible",[qy([fi("0.03s linear",rt({opacity:1})),fi("0.12s cubic-bezier(0, 0, 0.2, 1)",rt({transform:"scaleY(1)"}))])]),ai(":leave, visible => hidden",[fi("0.075s linear",rt({opacity:0}))])]);let EZ=0;class TZ{constructor(i,e){this.source=i,this.option=e}}const MZ=Hs(class{}),qR=new ae("mat-autocomplete-default-options",{providedIn:"root",factory:function AZ(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let IZ=(()=>{class t extends MZ{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=je(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=je(e)}set classList(e){this._classList=e&&e.length?function cq(t,i=/\s+/){const e=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(i);for(const r of n){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((n,r)=>(n[r]=!0,n),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(e,n,r,o){super(),this._changeDetectorRef=e,this._elementRef=n,this._defaults=r,this._activeOptionChanges=yt.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new xe,this.opened=new xe,this.closed=new xe,this.optionActivated=new xe,this._classList={},this.id="mat-autocomplete-"+EZ++,this.inertGroups=o?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new MI(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const n=new TZ(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}}return t.\u0275fac=function(e){return new(e||t)(b(Gt),b(Fe),b(qR),b(xi))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(st(_i,7),st(CZ,5)),2&e){let r;ye(r=we())&&(n.template=r.first),ye(r=we())&&(n.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[pe]}),t})(),FZ=(()=>{class t extends IZ{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=je(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,Wy,5),Bt(r,zs,5)),2&e){let o;ye(o=we())&&(n.optionGroups=o),ye(o=we())&&(n.options=o)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[We([{provide:jy,useExisting:t}]),pe],ngContentSelectors:DZ,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(e,n){1&e&&(vi(),H(0,kZ,3,5,"ng-template"))},dependencies:[Ms],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[SZ]},changeDetection:0}),t})();const RZ={provide:Xn,useExisting:Xt(()=>QR),multi:!0},XR=new ae("mat-autocomplete-scroll-strategy"),PZ={provide:XR,deps:[rr],useFactory:function OZ(t){return()=>t.scrollStrategies.reposition()}};let LZ=(()=>{class t{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=je(e)}constructor(e,n,r,o,a,s,c,l,d,u,h){this._element=e,this._overlay=n,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=a,this._dir=c,this._formField=l,this._document=d,this._viewportRuler=u,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=yt.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new ke,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=gd(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(Hn(f),mn(()=>Vi(...f.map(m=>m.onSelectionChange)))):this._zone.onStable.pipe(ui(1),mn(()=>this.optionSelections))}),this._scrollStrategy=s}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Vi(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(hi(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(hi(()=>this._overlayAttached)):$e()).pipe(Ke(e=>e instanceof GI?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Vi(xa(this._document,"click"),xa(this._document,"auxclick"),xa(this._document,"touchend")).pipe(hi(e=>{const n=to(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&n!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(n))&&(!o||!o.contains(n))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(n)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const n=e.keyCode,r=wr(e);if(27===n&&!r&&e.preventDefault(),this.activeOption&&13===n&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,a=38===n||40===n;9===n||a&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let n=e.target,r=n.value;"number"===n.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Vi(this._zone.onStable.pipe(ui(1)),this.autocomplete.options.changes.pipe(zi(()=>this._positionStrategy.reapplyLastPosition()),r1(0))).pipe(mn(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),ui(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const n=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const n=e?e.source:this._pendingAutoselectedOption;n&&(this._clearPreviousSelectedOption(n),this._assignOptionValue(n.value),this._onChange(n.value),this.autocomplete._emitSelectEvent(n),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(n=>{n!==e&&n.selected&&n.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new ss(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Ld({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let a;a="above"===this.position?o:"below"===this.position?n:[...n,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const n=this.autocomplete,r=qI(e,n.options,n.optionGroups);if(0===e&&1===r)n._setScrollTop(0);else if(n.panel){const o=n.options.toArray()[e];if(o){const a=o._getHostElement(),s=XI(a.offsetTop,a.offsetHeight,n._getScrollTop(),n.panel.nativeElement.offsetHeight);n._setScrollTop(s)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(n=>{(27===n.keyCode&&!wr(n)||38===n.keyCode&&wr(n,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),n.stopPropagation(),n.preventDefault())}),e.outsidePointerEvents().subscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(rr),b(Fi),b(ze),b(Gt),b(XR),b(bn,8),b(f0,9),b(nt,8),b(ya),b(qR,8))},t.\u0275dir=Q({type:t,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Ei]}),t})(),QR=(()=>{class t extends LZ{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(e,n){1&e&&X("focusin",function(){return n._handleFocus()})("blur",function(){return n._onTouched()})("input",function(o){return n._handleInput(o)})("keydown",function(o){return n._handleKeydown(o)})("click",function(){return n._handleClick()}),2&e&&ot("autocomplete",n.autocompleteAttribute)("role",n.autocompleteDisabled?null:"combobox")("aria-autocomplete",n.autocompleteDisabled?null:"list")("aria-activedescendant",n.panelOpen&&n.activeOption?n.activeOption.id:null)("aria-expanded",n.autocompleteDisabled?null:n.panelOpen.toString())("aria-owns",n.autocompleteDisabled||!n.panelOpen||null==n.autocomplete?null:n.autocomplete.id)("aria-haspopup",n.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[We([RZ]),pe]}),t})(),NZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[PZ],imports:[zc,Dg,xt,nr,Hc,Dg,xt]}),t})();const YR=Xo({passive:!0});let BZ=(()=>{class t{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Wr;const n=Zi(e),r=this._monitoredElements.get(n);if(r)return r.subject;const o=new ke,a="cdk-text-field-autofilled",s=c=>{"cdk-text-field-autofill-start"!==c.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===c.animationName&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1}))):(n.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",s,YR),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:o,unlisten:()=>{n.removeEventListener("animationstart",s,YR)}}),o}stopMonitoring(e){const n=Zi(e),r=this._monitoredElements.get(n);r&&(r.unlisten(),r.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(ze))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),VZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const HZ=new ae("MAT_INPUT_VALUE_ACCESSOR"),UZ=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let zZ=0;const $Z=BI(class{constructor(t,i,e,n){this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=e,this.ngControl=n,this.stateChanges=new ke}});let Kc=(()=>{class t extends $Z{get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(qd.required)??!1}set required(e){this._required=je(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&_I().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=je(e)}constructor(e,n,r,o,a,s,c,l,d,u){super(s,o,a,r),this._elementRef=e,this._platform=n,this._autofillMonitor=l,this._formField=u,this._uid="mat-input-"+zZ++,this.focused=!1,this.stateChanges=new ke,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>_I().has(m)),this._iOSKeyupListener=m=>{const g=m.target;!g.value&&0===g.selectionStart&&0===g.selectionEnd&&(g.setSelectionRange(1,1),g.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=c||h,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){UZ.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(xi),b(ka,10),b(Xc,8),b(Ws,8),b(VI),b(HZ,10),b(BZ),b(ze),b(f0,8))},t.\u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(e,n){1&e&&X("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&e&&(pa("id",n.id)("disabled",n.disabled)("required",n.required),ot("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required)("id",n.id),Qe("mat-input-server",n._isServer)("mat-mdc-form-field-textarea-control",n._isInFormField&&n._isTextarea)("mat-mdc-form-field-input-control",n._isInFormField)("mdc-text-field__input",n._isInFormField)("mat-mdc-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[We([{provide:h0,useExisting:t}]),pe,Ei]}),t})(),jZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,m0,m0,VZ,xt]}),t})();function WZ(t,i){if(1&t&&(v(0,"mat-label"),E(1),y()),2&t){const e=q();k(1),Xe(e.binding.title)}}function GZ(t,i){if(1&t){const e=Je();v(0,"button",7),X("click",function(){return Me(e),Ae(q().clearInput())}),v(1,"mat-icon"),E(2,"close"),y()()}}function qZ(t,i){1&t&&(v(0,"mat-option",8),Se(1,"mat-spinner",9),y())}function XZ(t,i){if(1&t&&(v(0,"mat-option",10)(1,"span",11),E(2),y(),E(3),y()),2&t){const e=i.$implicit;T("value",e),k(2),Xe(e.code),k(1),It("",e.display," ")}}let p0=(()=>{class t{constructor(e){this.terminologyService=e,this.term="",this.selectionChange=new xe,this.formControl=new _K,this.loading=!1,this.selectedConcept={},this.stateChanges=new ke,this.focused=!1,this.ngControl=null,this.errorState=!1,this.controlType="app-autocomplete-binding",this.id="app-autocomplete-binding-"+t.nextId++,this.describedBy="",this.onChange=()=>{},this.onTouched=()=>{}}get empty(){return!this.formControl.value}setDescribedByIds(e){this.describedBy=e.join(" ")}onContainerClick(e){}writeValue(e){this.formControl.setValue(e&&"object"==typeof e&&e.display?e.display:e,{emitEvent:!1})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}ngOnChanges(e){e.term&&(this.term=e.term.currentValue,this.formControl.setValue(this.term&&"object"==typeof this.term&&this.term.display?this.term.display:this.term))}ngOnInit(){this.autoFilter=this.formControl.valueChanges.pipe(Ad(300),Bc(),mn(e=>e?.length>=3?(this.loading=!0,this.terminologyService.expandValueSet(this.binding.ecl,e,0,50)):$e([])),zi(e=>{this.loading=!1}))}onTermChange(){this.formControl.setValue(this.term)}optionSelected(e){this.selectedConcept=e,this.selectionChange.emit(e),this.onChange(e)}clearInput(){this.formControl.reset(),this.selectedConcept={code:"",display:""},console.log("clearInput")}change(e){const n=e?.option?.value;n&&(this.optionSelected({code:n.code,display:n.display}),this.formControl.setValue(n.display))}}return t.nextId=0,t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-autocomplete-binding"]],inputs:{binding:"binding",term:"term"},outputs:{selectionChange:"selectionChange"},features:[We([{provide:Xn,useExisting:Xt(()=>t),multi:!0},{provide:h0,useExisting:t}]),Ei],decls:11,vars:10,consts:[[4,"ngIf"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["autoActiveFirstOption","",3,"optionSelected"],["auto","matAutocomplete"],["disabled","","class","loading",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["disabled","",1,"loading"],["diameter","35"],[3,"value"],[1,"code"]],template:function(e,n){if(1&e&&(v(0,"mat-form-field"),H(1,WZ,2,1,"mat-label",0),Se(2,"input",1),v(3,"mat-hint"),E(4),y(),H(5,GZ,3,0,"button",2),v(6,"mat-autocomplete",3,4),X("optionSelected",function(o){return n.change(o)}),H(8,qZ,2,0,"mat-option",5),H(9,XZ,4,3,"mat-option",6),pp(10,"async"),y()()),2&e){const r=Nt(7);let o;k(1),T("ngIf",n.binding.title),k(1),Wu("placeholder",(null==n.formControl.value?null:n.formControl.value.display)||n.binding.title||"Search..."),T("formControl",n.formControl)("matAutocomplete",r),k(2),Xe(n.binding.note),k(1),T("ngIf",n.formControl.value),k(3),T("ngIf",n.loading),k(1),T("ngForOf",null==(o=Vv(10,8,n.autoFilter))||null==o.expansion?null:o.expansion.contains)}},dependencies:[bo,fn,os,Qo,Da,ko,Yc,VR,FZ,zs,QR,Bd,Kc,Ca,Co,s0,sM],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}.id-icon[_ngcontent-%COMP%]{margin-left:10px;color:#2e8b57}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]}),t})();function QZ(t,i){1&t&&Se(0,"mat-spinner",20)}function YZ(t,i){1&t&&(v(0,"th",21),E(1," Date "),y())}function KZ(t,i){if(1&t&&(v(0,"td",22),E(1),pp(2,"date"),y()),2&t){const e=i.$implicit;k(1),It(" ",function NT(t,i,e,n){const r=t+Ui,o=ge(),a=Ol(o,r);return Ju(o,r)?RT(o,br(),i,a.transform,e,n,a):a.transform(e,n)}(2,1,e.date,"yyyy-MM-dd")," ")}}function ZZ(t,i){1&t&&(v(0,"th",21),E(1," ConceptId "),y())}function JZ(t,i){if(1&t&&(v(0,"td",22),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.code," ")}}function eJ(t,i){1&t&&(v(0,"th",21),E(1," Term "),y())}function tJ(t,i){1&t&&(v(0,"span",24),E(1,"Allergy / Intolerance condition"),y())}function iJ(t,i){if(1&t&&(v(0,"td",22),H(1,tJ,2,0,"span",23),E(2),y()),2&t){const e=i.$implicit;k(1),T("ngIf",e.allergy),k(1),It(" ",e.display," ")}}function nJ(t,i){1&t&&Se(0,"tr",25)}function rJ(t,i){1&t&&Se(0,"tr",26)}function oJ(t,i){1&t&&(v(0,"th",21),E(1," ConceptId "),y())}function aJ(t,i){if(1&t&&(v(0,"td",22),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.code," ")}}function sJ(t,i){1&t&&(v(0,"th",21),E(1," Term "),y())}function cJ(t,i){if(1&t&&(v(0,"td",22),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.display," ")}}function lJ(t,i){1&t&&Se(0,"tr",25)}function dJ(t,i){1&t&&Se(0,"tr",26)}const uJ=[],hJ=[];let KR=(()=>{class t{constructor(e){this.terminologyService=e,this.problemBinding={ecl:"< 404684003 |Clinical finding|",title:"Search..."},this.eclProblem="< 404684003 |Clinical finding|",this.term="",this.displayedColumns=["date","code","display"],this.dataToDisplay=[...uJ],this.dataSource=new fJ(this.dataToDisplay),this.loading=!1,this.displayedColumns2=["code","display"],this.dataToDisplay2=[...hJ],this.dataSource2=new mJ(this.dataToDisplay2)}updateProblem(e){var n=this;return Oi(function*(){n.selectedProblemSct=e})()}addProblem(e){var n=this;return Oi(function*(){if(n.selectedProblemSct||e){let r=e||n.selectedProblemSct;if(n.loading=!0,n.term=r.display,r.date=new Date,r.code.indexOf(":")>-1){r.allergy=!0;let o=r.substance;n.dataToDisplay2.find(a=>a.code===o.code)||(n.dataToDisplay2=[...n.dataToDisplay2,o],n.dataSource2.setData(n.dataToDisplay2))}else(yield n.getAllergyData(r))?.expansion?.contains?.length>0&&(r.allergy=!0,n.addAllergySubstanceToList(r));n.dataToDisplay.find(o=>o.code===r.code)||(n.dataToDisplay=[...n.dataToDisplay,r],n.dataSource.setData(n.dataToDisplay)),n.loading=!1,n.term=""}})()}addAllergySubstanceToList(e){var n=this;return Oi(function*(){(yield n.getAllergySubstance(e))?.expansion?.contains?.forEach(o=>{n.dataToDisplay2.find(a=>a.code===o.code)||(n.dataToDisplay2=[...n.dataToDisplay2,o],n.dataSource2.setData(n.dataToDisplay2))})})()}getAllergyData(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet("<<418038007 |Propensity to adverse reactions to substance| OR <<420134006 |Propensity to adverse reaction (finding)|",e.code,0,1)).pipe(Ke(o=>o)))})()}getAllergySubstance(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . (246075003 |Causative agent (attribute)| OR 47429007 |Associated with (attribute)|)`,"")).pipe(Ke(o=>o)))})()}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-allergies-problem-list"]],decls:60,vars:11,consts:[["id","main-card"],[1,"container-space"],[1,"problem-list"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",1,"long-tooltip",3,"disableRipple","click"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],[1,"container"],[1,"item"],[3,"binding","term","selectionChange"],["mat-flat-button","","color","primary",3,"click"],["diameter","35",4,"ngIf"],["mat-table","",3,"dataSource"],["matColumnDef","date"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","code"],["matColumnDef","display"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["diameter","35"],["mat-header-cell",""],["mat-cell",""],["class","tag pill",4,"ngIf"],[1,"tag","pill"],["mat-header-row",""],["mat-row",""]],template:function(e,n){if(1&e&&(v(0,"mat-card",0)(1,"div",1)(2,"div",2)(3,"h4"),E(4,"Problem List "),v(5,"button",3)(6,"mat-icon"),E(7,"info"),y()(),v(8,"mat-menu",null,4)(10,"span",5),X("click",function(o){return o.stopPropagation()}),v(11,"h4"),E(12,"Problem list"),y(),v(13,"p"),E(14,"Allergy or intolerance can also be recorded in the EHR as a problem. The problem list is normally restricted to SNOMED CT concepts from three hierarchies \u2013 Clinical finding, Event and Finding with explicit context. This corresponds either to the FHIR finding based AllergyIntolerance resource data model or the FHIR Condition resource."),y(),v(15,"p"),E(16,"For practical guidance using SNOMED CT to document hypersensitivity to specific substances in a problem list, it is suggested to map to the appropriate concepts under the 473011001 |Allergic condition (finding)|hierarchies. This is due to the lack of sufficient content under 609433001 |Hypersensitivity disposition (finding)|and 421961002 |Hypersensitivity reaction (disorder)| and that many of the concepts under 609328004 |Allergic disposition (finding)|and 419076005 |Allergic reaction (disorder)| have unclear mechanisms which may actually represent non-allergic hypersensitivity. Please note that SNOMED international does not plan to create new children concepts of hypersensitivity disposition to specific substances unless more than one Member country would submit a request for them to answer to an active use-case."),y(),v(17,"p"),E(18,"Almost all allergy concepts are modeled by substances in SNOMED CT. A very small number of allergy concepts are modeled by products but with explicit description for the specific intended meaning. Records of allergy to multiple substances or to multi-ingredient products should be recoded at the product level and updated when more specific information becomes available (e.g., positive sensitivity test to one specific ingredient of the mix)."),y(),v(19,"p"),E(20,"Vaccine allergy is an example where allergy concepts are modeled using a product concept. For example, \u2018Allergy to component of vaccine product (finding)\u2019 with a synonym \u2018vaccine allergy\u2019 has been modeled by vaccine product. The concept represents that allergy is caused by any substance in a vaccine product."),y(),v(21,"p"),E(22,"To record the level of certainty or verification status, it is recommended to use additional data elements in the EHR information model. Even though it is possible to utilize the SNOMED CT model for \u2018situation with explicit context\u2019 to express certainty, this is not recommended due to potential ambiguity. For example, \u201csuspected penicillin allergy\u201d can mean uncertainty with the condition (is it real allergy?) or with the causative agent (is it penicillin?). Even though SNOMED CT editorial guideline is clear that the first interpretation is correct, it is better to use other methods to represent the uncertainty to avoid confusion."),y(),v(23,"p"),E(24,"For more information check the "),v(25,"a",6),E(26,"Implementation Guide"),y(),E(27," developed by the SNOMED International Allergy Clinical Reference Group."),y()()()(),v(28,"div",7)(29,"div",8)(30,"app-autocomplete-binding",9),X("selectionChange",function(o){return n.updateProblem(o)}),y()(),v(31,"div",8)(32,"button",10),X("click",function(){return n.addProblem()}),E(33,"Add problem"),y()(),v(34,"div",8),H(35,QZ,1,0,"mat-spinner",11),y()(),v(36,"table",12),Ai(37,13),H(38,YZ,2,0,"th",14),H(39,KZ,3,4,"td",15),Ii(),Ai(40,16),H(41,ZZ,2,0,"th",14),H(42,JZ,2,1,"td",15),Ii(),Ai(43,17),H(44,eJ,2,0,"th",14),H(45,iJ,3,2,"td",15),Ii(),H(46,nJ,1,0,"tr",18),H(47,rJ,1,0,"tr",19),y()(),v(48,"div",2)(49,"h4"),E(50,"Substances the patient is allergic to:"),y(),v(51,"table",12),Ai(52,16),H(53,oJ,2,0,"th",14),H(54,aJ,2,1,"td",15),Ii(),Ai(55,17),H(56,sJ,2,0,"th",14),H(57,cJ,2,1,"td",15),Ii(),H(58,lJ,1,0,"tr",18),H(59,dJ,1,0,"tr",19),y()()()()),2&e){const r=Nt(9);k(5),T("matMenuTriggerFor",r),k(5),T("disableRipple",!0),k(20),T("binding",n.problemBinding)("term",n.term),k(5),T("ngIf",n.loading),k(1),T("dataSource",n.dataSource),k(10),T("matHeaderRowDef",n.displayedColumns),k(1),T("matRowDefColumns",n.displayedColumns),k(4),T("dataSource",n.dataSource2),k(7),T("matHeaderRowDef",n.displayedColumns2),k(1),T("matRowDefColumns",n.displayedColumns2)}},dependencies:[fn,Lr,os,Qo,jc,wa,Wc,Bd,a1,Wh,$d,Gh,jd,zd,qh,Wd,Gd,Xh,Qh,p0,lM],styles:["#main-card[_ngcontent-%COMP%]{padding:10px}app-autocomplete-binding[_ngcontent-%COMP%]{display:block;min-width:500px}.container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;margin:10px 0;gap:10px}.container-space[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;margin:10px 0;gap:10px}.problem-list[_ngcontent-%COMP%]{width:60%}.tag[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding-left:10px;padding-right:10px;margin-top:5px}td[_ngcontent-%COMP%]{position:relative}.pill[_ngcontent-%COMP%]{display:inline-block;font-size:10px;background-color:orange;color:#fff;padding:4px 8px;border-radius:20px;position:absolute;top:0;right:0;margin-top:1rem}.mat-column-display[_ngcontent-%COMP%]{min-width:350px}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]}),t})();class fJ extends gy{constructor(i){super(),this._dataStream=new iI,this.setData(i)}connect(){return this._dataStream}disconnect(){}setData(i){this._dataStream.next(i)}}class mJ extends gy{constructor(i){super(),this._dataStream=new iI,this.setData(i)}connect(){return this._dataStream}disconnect(){}setData(i){this._dataStream.next(i)}}function pJ(t,i){}const gJ=function(t){return{animationDuration:t}},_J=function(t,i){return{value:t,params:i}};function bJ(t,i){1&t&&tt(0)}const ZR=["*"],vJ=["tabListContainer"],xJ=["tabList"],yJ=["tabListInner"],wJ=["nextPaginator"],CJ=["previousPaginator"],kJ=["tabBodyWrapper"],DJ=["tabHeader"];function SJ(t,i){}function EJ(t,i){1&t&&H(0,SJ,0,0,"ng-template",14),2&t&&T("cdkPortalOutlet",q().$implicit.templateLabel)}function TJ(t,i){1&t&&E(0),2&t&&Xe(q().$implicit.textLabel)}function MJ(t,i){if(1&t){const e=Je();v(0,"div",6,7),X("click",function(){const r=Me(e),o=r.$implicit,a=r.index,s=q(),c=Nt(1);return Ae(s._handleClick(o,c,a))})("cdkFocusChange",function(r){const a=Me(e).index;return Ae(q()._tabFocusChanged(r,a))}),Se(2,"span",8)(3,"div",9),v(4,"span",10)(5,"span",11),H(6,EJ,1,1,"ng-template",12),H(7,TJ,1,1,"ng-template",null,13,Mc),y()()()}if(2&t){const e=i.$implicit,n=i.index,r=Nt(1),o=Nt(8),a=q();Qe("mdc-tab--active",a.selectedIndex===n),T("id",a._getTabLabelId(n))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),ot("tabIndex",a._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(n))("aria-selected",a.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),k(3),T("matRippleTrigger",r)("matRippleDisabled",e.disabled||a.disableRipple),k(3),T("ngIf",e.templateLabel)("ngIfElse",o)}}function AJ(t,i){if(1&t){const e=Je();v(0,"mat-tab-body",15),X("_onCentered",function(){return Me(e),Ae(q()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return Me(e),Ae(q()._setTabBodyWrapperHeight(r))}),y()}if(2&t){const e=i.$implicit,n=i.index,r=q();Qe("mat-mdc-tab-body-active",r.selectedIndex===n),T("id",r._getTabContentId(n))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),ot("tabindex",null!=r.contentTabIndex&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(n))}}const IJ={translateTab:vn("translateTab",[ii("center, void, left-origin-center, right-origin-center",rt({transform:"none"})),ii("left",rt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ii("right",rt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ai("* => left, * => right, left => center, right => center",fi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ai("void => left-origin-center",[rt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),fi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ai("void => right-origin-center",[rt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),fi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let FJ=(()=>{class t extends cs{constructor(e,n,r,o){super(e,n,o),this._host=r,this._centeringSub=yt.EMPTY,this._leavingSub=yt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Hn(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(Ss),b(Fi),b(Xt(()=>JR)),b(nt))},t.\u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[pe]}),t})(),RJ=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,n,r){this._elementRef=e,this._dir=n,this._dirChangeSubscription=yt.EMPTY,this._translateTabComplete=new ke,this._onCentering=new xe,this._beforeCentering=new xe,this._afterLeavingCenter=new xe,this._onCentered=new xe(!0),this.animationDuration="500ms",this.preserveContent=!1,n&&(this._dirChangeSubscription=n.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(Bc((o,a)=>o.fromState===a.fromState&&o.toState===a.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const n=this._isCenterPosition(e.toState);this._beforeCentering.emit(n),n&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const n=this._getLayoutDirection();return"ltr"==n&&e<=0||"rtl"==n&&e>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(bn,8),b(Gt))},t.\u0275dir=Q({type:t,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),JR=(()=>{class t extends RJ{constructor(e,n,r){super(e,n,r)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(bn,8),b(Gt))},t.\u0275cmp=Ve({type:t,selectors:[["mat-tab-body"]],viewQuery:function(e,n){if(1&e&&st(cs,5),2&e){let r;ye(r=we())&&(n._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[pe],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,n){1&e&&(v(0,"div",0,1),X("@translateTab.start",function(o){return n._onTranslateTabStarted(o)})("@translateTab.done",function(o){return n._translateTabComplete.next(o)}),H(2,pJ,0,0,"ng-template",2),y()),2&e&&T("@translateTab",function IT(t,i,e,n,r){return RT(ge(),br(),t,i,e,n,r)}(3,_J,n._position,Bv(1,gJ,n.animationDuration)))},dependencies:[FJ],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[IJ.translateTab]}}),t})();const OJ=new ae("MatTabContent");let PJ=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[We([{provide:OJ,useExisting:t}])]}),t})();const LJ=new ae("MatTabLabel"),eO=new ae("MAT_TAB");let NJ=(()=>{class t extends _X{constructor(e,n,r){super(e,n),this._closestTab=r}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Fi),b(eO,8))},t.\u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[We([{provide:LJ,useExisting:t}]),pe]}),t})();const L1="mdc-tab-indicator--active",tO="mdc-tab-indicator--no-transition";class BJ{constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar())}alignToElement(i){const e=this._items.find(r=>r.elementRef.nativeElement===i),n=this._currentItem;if(n?.deactivateInkBar(),e){const r=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}}function VJ(t){return class extends t{constructor(...i){super(...i),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(i){const e=je(i);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(i){const e=this.elementRef.nativeElement;if(!i||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(L1);const n=e.getBoundingClientRect(),r=i.width/n.width,o=i.left-n.left;e.classList.add(tO),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),e.getBoundingClientRect(),e.classList.remove(tO),e.classList.add(L1),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(L1)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const i=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=i.createElement("span"),this._inkBarContentElement=i.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const UJ=rs(class{}),zJ=VJ((()=>{class t extends UJ{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(b(Fe))},t.\u0275dir=Q({type:t,features:[pe]}),t})());let iO=(()=>{class t extends zJ{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,n){2&e&&(ot("aria-disabled",!!n.disabled),Qe("mat-mdc-tab-disabled",n.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[pe]}),t})();const $J=rs(class{}),nO=new ae("MAT_TAB_GROUP");let jJ=(()=>{class t extends $J{get content(){return this._contentPortal}constructor(e,n){super(),this._viewContainerRef=e,this._closestTabGroup=n,this.textLabel="",this._contentPortal=null,this._stateChanges=new ke,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ss(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(nO,8))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(_i,7),2&e){let r;ye(r=we())&&(n._implicitContent=r.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[pe,Ei]}),t})(),g0=(()=>{class t extends jJ{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-tab"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,PJ,7,_i),Bt(r,NJ,5)),2&e){let o;ye(o=we())&&(n._explicitContent=o.first),ye(o=we())&&(n.templateLabel=o.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[We([{provide:eO,useExisting:t}]),pe],ngContentSelectors:ZR,decls:1,vars:0,template:function(e,n){1&e&&(vi(),H(0,bJ,1,0,"ng-template"))},encapsulation:2}),t})();const rO=Xo({passive:!0});let qJ=(()=>{class t{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=je(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=In(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,n,r,o,a,s,c){this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=r,this._dir=o,this._ngZone=a,this._platform=s,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new ke,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new ke,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new xe,this.indexFocused=new xe,a.runOutsideAngular(()=>{xa(e.nativeElement,"mouseleave").pipe(Tt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){xa(this._previousPaginator.nativeElement,"touchstart",rO).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),xa(this._nextPaginator.nativeElement,"touchstart",rO).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:$e("ltr"),n=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new By(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(ui(1)).subscribe(r),Vi(e,n,this._items.changes,this._itemsResized()).pipe(Tt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?Wr:this._items.changes.pipe(Hn(this._items),mn(e=>new ni(n=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>n.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Ry(1),hi(e=>e.some(n=>n.contentRect.width>0&&n.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!wr(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const n=this._items.get(this.focusIndex);n&&!n.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const n=this._tabListContainer.nativeElement;n.scrollLeft="ltr"==this._getLayoutDirection()?0:n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,n="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const n=this._items?this._items.toArray()[e]:null;if(!n)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=n.elementRef.nativeElement;let s,c;"ltr"==this._getLayoutDirection()?(s=o,c=s+a):(c=this._tabListInner.nativeElement.offsetWidth-o,s=c-a);const l=this.scrollDistance,d=this.scrollDistance+r;sd&&(this.scrollDistance+=Math.min(c-d,s-l))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&null!=n.button&&0!==n.button||(this._stopInterval(),Fg(650,100).pipe(Tt(Vi(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(ya),b(bn,8),b(ze),b(xi),b(Ri,8))},t.\u0275dir=Q({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),XJ=(()=>{class t extends qJ{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=je(e)}constructor(e,n,r,o,a,s,c){super(e,n,r,o,a,s,c),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(ya),b(bn,8),b(ze),b(xi),b(Ri,8))},t.\u0275dir=Q({type:t,inputs:{disableRipple:"disableRipple"},features:[pe]}),t})(),QJ=(()=>{class t extends XJ{constructor(e,n,r,o,a,s,c){super(e,n,r,o,a,s,c)}ngAfterContentInit(){this._inkBar=new BJ(this._items),super.ngAfterContentInit()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(ya),b(bn,8),b(ze),b(xi),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-tab-header"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,iO,4),2&e){let o;ye(o=we())&&(n._items=o)}},viewQuery:function(e,n){if(1&e&&(st(vJ,7),st(xJ,7),st(yJ,7),st(wJ,5),st(CJ,5)),2&e){let r;ye(r=we())&&(n._tabListContainer=r.first),ye(r=we())&&(n._tabList=r.first),ye(r=we())&&(n._tabListInner=r.first),ye(r=we())&&(n._nextPaginator=r.first),ye(r=we())&&(n._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,n){2&e&&Qe("mat-mdc-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[pe],ngContentSelectors:ZR,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,n){1&e&&(vi(),v(0,"button",0,1),X("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(o){return n._handlePaginatorPress("before",o)})("touchend",function(){return n._stopInterval()}),Se(2,"div",2),y(),v(3,"div",3,4),X("keydown",function(o){return n._handleKeydown(o)}),v(5,"div",5,6),X("cdkObserveContent",function(){return n._onContentChanges()}),v(7,"div",7,8),tt(9),y()()(),v(10,"button",9,10),X("mousedown",function(o){return n._handlePaginatorPress("after",o)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),Se(12,"div",2),y()),2&e&&(Qe("mat-mdc-tab-header-pagination-disabled",n._disableScrollBefore),T("matRippleDisabled",n._disableScrollBefore||n.disableRipple)("disabled",n._disableScrollBefore||null),k(3),Qe("_mat-animation-noopable","NoopAnimations"===n._animationMode),k(7),Qe("mat-mdc-tab-header-pagination-disabled",n._disableScrollAfter),T("matRippleDisabled",n._disableScrollAfter||n.disableRipple)("disabled",n._disableScrollAfter||null))},dependencies:[wo,Oy],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),t})();const oO=new ae("MAT_TABS_CONFIG");let YJ=0;const KJ=Vs(Hs(class{constructor(t){this._elementRef=t}}),"primary");let ZJ=(()=>{class t extends KJ{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=je(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=In(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=In(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=je(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=je(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,n,r,o){super(e),this._changeDetectorRef=n,this._animationMode=o,this._tabs=new Tc,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=yt.EMPTY,this._tabLabelSubscription=yt.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new xe,this.focusChange=new xe,this.animationDone=new xe,this.selectedTabChange=new xe(!0),this._groupId=YJ++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,r)=>{n.position=r-e,null!=this._selectedIndex&&0==n.position&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const n=this._tabs.toArray();let r;for(let o=0;o{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Hn(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const n=new JJ;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Vi(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,n,r){n.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,n){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=n)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(oO,8),b(Ri,8))},t.\u0275dir=Q({type:t,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[pe]}),t})(),sf=(()=>{class t extends ZJ{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=je(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=je(e)}constructor(e,n,r,o){super(e,n,r,o),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!r||null==r.fitInkBarToContent)&&r.fitInkBarToContent}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(oO,8),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-tab-group"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,g0,5),2&e){let o;ye(o=we())&&(n._allTabs=o)}},viewQuery:function(e,n){if(1&e&&(st(kJ,5),st(DJ,5)),2&e){let r;ye(r=we())&&(n._tabBodyWrapper=r.first),ye(r=we())&&(n._tabHeader=r.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(e,n){2&e&&Qe("mat-mdc-tab-group-dynamic-height",n.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===n.headerPosition)("mat-mdc-tab-group-stretch-tabs",n.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[We([{provide:nO,useExisting:t}]),pe],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,n){1&e&&(v(0,"mat-tab-header",0,1),X("indexFocused",function(o){return n._focusChanged(o)})("selectFocusedIndex",function(o){return n.selectedIndex=o}),H(2,MJ,9,17,"div",2),y(),v(3,"div",3,4),H(5,AJ,1,11,"mat-tab-body",5),y()),2&e&&(T("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),k(2),T("ngForOf",n._tabs),k(1),Qe("_mat-animation-noopable","NoopAnimations"===n._animationMode),k(2),T("ngForOf",n._tabs))},dependencies:[Ms,bo,fn,cs,wo,Pq,JR,iO,QJ],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),t})();class JJ{}let eee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[nr,xt,Vc,Us,bg,zy,xt]}),t})();var Zc=lc(327);class tee{constructor(i,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),r=n.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,this._document.body.appendChild(n)}copy(){const i=this._textarea;let e=!1;try{if(i){const n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch{}return e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let aO=(()=>{class t{constructor(e){this._document=e}copy(e){const n=this.beginCopy(e),r=n.copy();return n.destroy(),r}beginCopy(e){return new tee(e,this._document)}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const iee=new ae("HighlightJs-Config");let N1=(()=>{class t{constructor(e,n,r,o,a){this.el=e,this.ngModel=n,this.doc=r,this.ngZone=a,this.lang="html",this.mode="simple",Object.assign(this,o)}escapeHTML(e){return(e||"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}init(){this.ngZone.runOutsideAngular(()=>{this.destroy();const e=this.el.nativeElement,n=this.code||""+e.innerHTML.trim();if(this.codeEl=this.doc.createElement("default"===this.mode?"div":"pre"),null==this.codeEl)return;const r="simple"===this.mode;r?(this.lang&&(this.codeEl.className=this.lang),this.parentEl=e.parentNode,this.parentEl.insertBefore(this.codeEl,e.nextSibling)):(this.parentEl=e,this.parentEl.innerHTML="",this.parentEl.appendChild(this.codeEl)),this.codeEl.innerHTML=n,hljs.configure({...this.options}),r?hljs.highlightElement(this.codeEl):this.codeEl.querySelectorAll("pre code").forEach(o=>{hljs.highlightElement(o)})})}destroy(){this.codeEl&&this.parentEl&&(this.parentEl.removeChild(this.codeEl),this.codeEl=void 0)}ngAfterViewInit(){this.init(),this.ngModel?this.modelValue$=this.ngModel.valueChanges?.subscribe(e=>{this.code=this.escapeHTML(e),this.init()}):this.initMutation()}ngOnDestroy(){this.destroy(),this.destroyMutation(),this.modelValue$&&this.modelValue$.unsubscribe()}initMutation(){typeof MutationObserver>"u"||this.ngZone.runOutsideAngular(()=>{this.observer=new MutationObserver(this.init.bind(this)),this.observer.observe(this.el.nativeElement,{characterData:!0,childList:!0,subtree:!0})})}destroyMutation(){this.observer&&this.observer.disconnect()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Yo,8),b(nt),b(iee,8),b(ze))},t.\u0275dir=Q({type:t,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(e,n){2&e&&ir("display","simple"===n.mode?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0}),t})(),nee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[P1]}),t})();const ree=["trigger"],oee=["panel"];function aee(t,i){if(1&t&&(v(0,"span",10),E(1),y()),2&t){const e=q();k(1),Xe(e.placeholder)}}function see(t,i){if(1&t&&(v(0,"span",14),E(1),y()),2&t){const e=q(2);k(1),Xe(e.triggerValue)}}function cee(t,i){1&t&&tt(0,0,["*ngSwitchCase","true"])}function lee(t,i){1&t&&(v(0,"span",11),H(1,see,2,1,"span",12),H(2,cee,1,0,"ng-content",13),y()),2&t&&(T("ngSwitch",!!q().customTrigger),k(2),T("ngSwitchCase",!0))}function dee(t,i){if(1&t){const e=Je();Wa(),Ll(),v(0,"div",15,16),X("@transformPanel.done",function(r){return Me(e),Ae(q()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return Me(e),Ae(q()._handleKeydown(r))}),tt(2,1),y()}if(2&t){const e=q();VE("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),T("ngClass",e.panelClass)("@transformPanel","showing"),ot("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const uee=[[["mat-select-trigger"]],"*"],hee=["mat-select-trigger","*"],fee={transformPanelWrap:vn("transformPanelWrap",[ai("* => void",Tg("@transformPanel",[Eg()],{optional:!0}))]),transformPanel:vn("transformPanel",[ii("void",rt({opacity:0,transform:"scale(1, 0.8)"})),ai("void => showing",fi("120ms cubic-bezier(0, 0, 0.2, 1)",rt({opacity:1,transform:"scale(1, 1)"}))),ai("* => void",fi("100ms linear",rt({opacity:0})))])};let sO=0;const cO=new ae("mat-select-scroll-strategy"),pee=new ae("MAT_SELECT_CONFIG"),gee={provide:cO,deps:[rr],useFactory:function mee(t){return()=>t.scrollStrategies.reposition()}},_ee=new ae("MatSelectTrigger");class bee{constructor(i,e){this.source=i,this.value=e}}const vee=Hs(Lh(rs(BI(class{constructor(t,i,e,n,r){this._elementRef=t,this._defaultErrorStateMatcher=i,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r,this.stateChanges=new ke}}))));let xee=(()=>{class t extends vee{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(qd.required)??!1}set required(e){this._required=je(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=je(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=je(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=In(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,n,r,o,a,s,c,l,d,u,h,f,m,g){super(a,o,c,l,u),this._viewportRuler=e,this._changeDetectorRef=n,this._ngZone=r,this._dir=s,this._parentFormField=d,this._liveAnnouncer=m,this._defaultOptions=g,this._panelOpen=!1,this._compareWith=(p,_)=>p===_,this._uid="mat-select-"+sO++,this._triggerAriaLabelledBy=null,this._destroy=new ke,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+sO++,this._panelDoneAnimatingStream=new ke,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=gd(()=>{const p=this.options;return p?p.changes.pipe(Hn(p),mn(()=>Vi(...p.map(_=>_.onSelectionChange)))):this._ngZone.onStable.pipe(ui(1),mn(()=>this.optionSelectionChanges))}),this.openedChange=new xe,this._openedStream=this.openedChange.pipe(hi(p=>p),Ke(()=>{})),this._closedStream=this.openedChange.pipe(hi(p=>!p),Ke(()=>{})),this.selectionChange=new xe,this.valueChange=new xe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=g?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=g.typeaheadDebounceInterval),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}ngOnInit(){this._selectionModel=new by(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Bc(),Tt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Tt(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Hn(null),Tt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(void 0!==this._previousControl&&null!==n.disabled&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const n=e.keyCode,r=40===n||38===n||37===n||39===n,o=13===n||32===n,a=this._keyManager;if(!a.isTyping()&&o&&!wr(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;a.onKeydown(e);const c=this.selected;c&&s!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){const n=this._keyManager,r=e.keyCode,o=40===r||38===r,a=n.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(a||13!==r&&32!==r||!n.activeItem||wr(e))if(!a&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(s?c.select():c.deselect())})}else{const s=n.activeItemIndex;n.onKeydown(e),this._multiple&&o&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}else e.preventDefault(),n.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ui(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{const n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const n=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new MI(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Vi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Tt(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Vi(...this.options.map(n=>n._stateChanges)).pipe(Tt(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((n,r)=>this.sortComparator?this.sortComparator(n,r,e):e.indexOf(n)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let n=null;n=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(b(ya),b(Gt),b(ze),b(VI),b(Fe),b(bn,8),b(Xc,8),b(Ws,8),b(f0,8),b(ka,10),fo("tabindex"),b(cO),b(Hy),b(pee,8))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(st(ree,5),st(oee,5),st(bF,5)),2&e){let r;ye(r=we())&&(n.trigger=r.first),ye(r=we())&&(n.panel=r.first),ye(r=we())&&(n._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[pe,Ei]}),t})(),cf=(()=>{class t extends xee{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Tt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const n=this.options.toArray()[e];if(n){const r=this.panel.nativeElement,o=qI(e,this.options,this.optionGroups),a=n._getHostElement();r.scrollTop=0===e&&1===o?0:XI(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new bee(this,e)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof t1?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=je(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-select"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,_ee,5),Bt(r,zs,5),Bt(r,Wy,5)),2&e){let o;ye(o=we())&&(n.customTrigger=o.first),ye(o=we())&&(n.options=o),ye(o=we())&&(n.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,n){1&e&&X("keydown",function(o){return n._handleKeydown(o)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&e&&(ot("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),Qe("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[We([{provide:h0,useExisting:t},{provide:jy,useExisting:t}]),pe],ngContentSelectors:hee,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,n){if(1&e&&(vi(uee),v(0,"div",0,1),X("click",function(){return n.toggle()}),v(3,"div",2),H(4,aee,2,1,"span",3),H(5,lee,3,2,"span",4),y(),v(6,"div",5)(7,"div",6),Wa(),v(8,"svg",7),Se(9,"path",8),y()()()(),H(10,dee,3,9,"ng-template",9),X("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&e){const r=Nt(1);ot("aria-owns",n.panelOpen?n.id+"-panel":null),k(3),T("ngSwitch",n.empty),ot("id",n._valueId),k(1),T("ngSwitchCase",!0),k(1),T("ngSwitchCase",!1),k(5),T("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)}},dependencies:[Ms,oh,Dx,oM,bF,t1],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[fee.transformPanel]},changeDetection:0}),t})(),yee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[gee],imports:[nr,zc,Dg,xt,Hc,m0,Dg,xt]}),t})();const wee=["tooltip"],lO=new ae("mat-tooltip-scroll-strategy"),Dee={provide:lO,deps:[rr],useFactory:function kee(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Eee=new ae("mat-tooltip-default-options",{providedIn:"root",factory:function See(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),dO="tooltip-panel",uO=Xo({passive:!0});let Ree=(()=>{class t{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=je(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=In(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=In(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,n,r,o,a,s,c,l,d,u,h,f){this._overlay=e,this._elementRef=n,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=a,this._platform=s,this._ariaDescriber=c,this._focusMonitor=l,this._dir=u,this._defaultOptions=h,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ke,this._scrollStrategy=d,this._document=f,h&&(h.position&&(this.position=h.position),h.positionAtOrigin&&(this.positionAtOrigin=h.positionAtOrigin),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe(Tt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Tt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,r])=>{e.removeEventListener(n,r,uO)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(n);this._detach(),this._portal=this._portal||new Od(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof Fe)return this._overlayRef;this._detach()}const n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return r.positionChanges.pipe(Tt(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${dO}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Tt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Tt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!wr(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const n=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();n.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,n=this.position;let r;"above"==n||"below"==n?r={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?r={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,n=this.position;let r;"above"==n?r={overlayX:"center",overlayY:"bottom"}:"below"==n?r={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?r={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(ui(1),Tt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return"above"===this.position||"below"===this.position?"top"===n?n="bottom":"bottom"===n&&(n="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){const{overlayY:n,originX:r,originY:o}=e;let a;if(a="center"===n?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===n&&"top"===o?"above":"below",a!==this._currentPosition){const s=this._overlayRef;if(s){const c=`${this._cssClassPrefix}-${dO}-`;s.removePanelClass(c+this._currentPosition),s.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let n;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(n=e),this.show(void 0,n)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const n=e.targetTouches?.[0],r=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",n=>{const r=n.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const n=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",n],["touchcancel",n])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([n,r])=>{this._elementRef.nativeElement.addEventListener(n,r,uO)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const n=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;n!==r&&!r.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const n=this._elementRef.nativeElement,r=n.style;("on"===e||"INPUT"!==n.nodeName&&"TEXTAREA"!==n.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!n.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),lf=(()=>{class t extends Ree{constructor(e,n,r,o,a,s,c,l,d,u,h,f){super(e,n,r,o,a,s,c,l,d,u,h,f),this._tooltipComponent=Pee,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const r=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=r?-8:8:"end"===e.originX&&(e.offsetX=r?8:-8),e}}return t.\u0275fac=function(e){return new(e||t)(b(rr),b(Fe),b(Pd),b(Fi),b(ze),b(xi),b(SI),b(yo),b(lO),b(bn,8),b(Eee,8),b(nt))},t.\u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[pe]}),t})(),Oee=(()=>{class t{constructor(e,n){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new ke,this._animationsDisabled="NoopAnimations"===n}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const n=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(n.classList.remove(e?o:r),n.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(n);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return t.\u0275fac=function(e){return new(e||t)(b(Gt),b(Ri,8))},t.\u0275dir=Q({type:t}),t})(),Pee=(()=>{class t extends Oee{constructor(e,n,r){super(e,r),this._elementRef=n,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}}return t.\u0275fac=function(e){return new(e||t)(b(Gt),b(Fe),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,n){if(1&e&&st(wee,7),2&e){let r;ye(r=we())&&(n._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,n){1&e&&X("mouseleave",function(o){return n._handleMouseLeave(o)}),2&e&&ir("zoom",n.isVisible()?1:null)},features:[pe],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(e,n){1&e&&(v(0,"div",0,1),X("animationend",function(o){return n._handleAnimationEnd(o)}),v(2,"div",2),E(3),y()()),2&e&&(Qe("mdc-tooltip--multiline",n._isMultiline),T("ngClass",n.tooltipClass),k(3),Xe(n.message))},dependencies:[Ms],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),t})(),Lee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[Dee],imports:[zy,nr,zc,xt,xt,Hc]}),t})();const Nee=["switch"],Bee=["*"],Vee=new ae("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),Hee={provide:Xn,useExisting:Xt(()=>fO),multi:!0};class hO{constructor(i,e){this.source=i,this.checked=e}}let Uee=0;const zee=Lh(Vs(Hs(rs(class{constructor(t){this._elementRef=t}}))));let $ee=(()=>{class t extends zee{get required(){return this._required}set required(e){this._required=je(e)}get checked(){return this._checked}set checked(e){this._checked=je(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,n,r,o,a,s,c){super(e),this._focusMonitor=n,this._changeDetectorRef=r,this.defaults=a,this._onChange=l=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new xe,this.toggleChange=new xe,this.tabIndex=parseInt(o)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===s,this.id=this._uniqueId=`${c}${++Uee}`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[pe]}),t})(),fO=(()=>{class t extends $ee{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(e,n,r,o,a,s){super(e,n,r,o,a,s,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new hO(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(e){return new hO(this,e)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(yo),b(Gt),fo("tabindex"),b(Vee),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,n){if(1&e&&st(Nee,5),2&e){let r;ye(r=we())&&(n._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(e,n){2&e&&(pa("id",n.id),ot("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Qe("mat-mdc-slide-toggle-focused",n._focused)("mat-mdc-slide-toggle-checked",n.checked)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[We([Hee]),pe],ngContentSelectors:Bee,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[3,"for","click"]],template:function(e,n){if(1&e&&(vi(),v(0,"div",0)(1,"button",1,2),X("click",function(){return n._handleClick()}),Se(3,"div",3),v(4,"div",4)(5,"div",5)(6,"div",6),Se(7,"div",7),y(),v(8,"div",8),Se(9,"div",9),y(),v(10,"div",10),Wa(),v(11,"svg",11),Se(12,"path",12),y(),v(13,"svg",13),Se(14,"path",14),y()()()()(),Ll(),v(15,"label",15),X("click",function(o){return o.stopPropagation()}),tt(16),y()()),2&e){const r=Nt(2);Qe("mdc-form-field--align-end","before"==n.labelPosition),k(1),Qe("mdc-switch--selected",n.checked)("mdc-switch--unselected",!n.checked)("mdc-switch--checked",n.checked)("mdc-switch--disabled",n.disabled),T("tabIndex",n.tabIndex)("disabled",n.disabled),ot("id",n.buttonId)("name",n.name)("aria-label",n.ariaLabel)("aria-labelledby",n._getAriaLabelledBy())("aria-describedby",n.ariaDescribedby)("aria-required",n.required||null)("aria-checked",n.checked),k(8),T("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),k(6),T("for",n.buttonId),ot("id",n._labelId)}},dependencies:[wo],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}'],encapsulation:2,changeDetection:0}),t})(),mO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})(),Gee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[mO,xt,Us,nr,mO,xt]}),t})();function qee(t,i){if(1&t){const e=Je();v(0,"button",14),X("click",function(){Me(e);const r=q().index;return Ae(q().removeReaction(r))}),v(1,"mat-icon"),E(2,"close"),y()()}}function Xee(t,i){if(1&t){const e=Je();v(0,"mat-option",15),X("click",function(){const o=Me(e).$implicit,a=q().$implicit;return Ae(q().reactionSeveritySelected(a,o))}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),Xe(e.display)}}function Qee(t,i){if(1&t){const e=Je();v(0,"div",2)(1,"div",3),H(2,qee,3,0,"button",4),y(),v(3,"div",5)(4,"div",6)(5,"app-autocomplete-binding",7),X("selectionChange",function(r){const a=Me(e).$implicit;return Ae(q().reactionManifestationSelected(a,r))}),y()(),v(6,"button",8)(7,"mat-icon"),E(8,"info"),y()(),v(9,"mat-menu",null,9)(11,"span",10),X("click",function(r){return r.stopPropagation()}),v(12,"p"),E(13,"Terminology binding:"),y(),v(14,"pre"),E(15),y()()()(),v(16,"mat-form-field",11)(17,"mat-label"),E(18,"Reaction Severity"),y(),v(19,"mat-select"),H(20,Xee,2,2,"mat-option",12),y()(),v(21,"div",5)(22,"div",6)(23,"app-autocomplete-binding",7),X("selectionChange",function(r){const a=Me(e).$implicit;return Ae(q().reactionRouteSelected(a,r))}),y()(),v(24,"button",8)(25,"mat-icon"),E(26,"info"),y()(),v(27,"mat-menu",null,13)(29,"span",10),X("click",function(r){return r.stopPropagation()}),v(30,"p"),E(31,"Terminology binding:"),y(),v(32,"pre"),E(33),y()()()()()}if(2&t){const e=i.index,n=Nt(10),r=Nt(28),o=q();k(2),T("ngIf",e>0),k(3),T("binding",o.reactionManifestationBinding),k(1),T("matMenuTriggerFor",n),k(5),T("disableRipple",!0),k(4),Xe(o.reactionManifestationBinding.ecl),k(5),T("ngForOf",o.severityOptions),k(3),T("binding",o.routeBinding),k(1),T("matMenuTriggerFor",r),k(5),T("disableRipple",!0),k(4),Xe(o.routeBinding.ecl)}}let Yee=(()=>{class t{constructor(){this.reactions=[],this.newManifestation=new xe,this.severityOptions=[{code:"mild",display:"Mild",sctCode:"255604002",sctDisplay:"Mild (qualifier value)"},{code:"moderate",display:"Moderate",sctCode:"6736007",sctDisplay:"Moderate (qualifier value)"},{code:"severe",display:"Severe",sctCode:"24484000",sctDisplay:"Severe (qualifier value)"}],this.selectedSeverity={},this.reactionManifestationBinding={ecl:"<<404684003 |Clinical finding|",title:"Reaction Manifestation"},this.routeBinding={ecl:"<<284009009 |Route of administration value|",title:"Exposure Route"},this.reaction={},this.onChangeCallback=()=>{},this.onTouchedCallback=()=>{}}writeValue(e){void 0!==e&&(this.reactions=e)}setDisabledState(e){}addNewReaction(){this.reactions.push(this.reaction),this.reaction={},this.onChangeCallback(this.reactions)}removeReaction(e){this.reactions.splice(e,1),this.onChangeCallback(this.reactions)}reactionManifestationSelected(e,n){e.manifestation=n,this.newManifestation.emit(n),this.onChangeCallback(this.reactions)}reactionSeveritySelected(e,n){e.severity=n,this.onChangeCallback(this.reactions)}reactionRouteSelected(e,n){e.route=n,this.onChangeCallback(this.reactions)}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ve({type:t,selectors:[["app-allergies-allergy-list-reaction"]],inputs:{reactions:"reactions"},outputs:{newManifestation:"newManifestation"},features:[We([{provide:Xn,useExisting:Xt(()=>t),multi:!0}])],decls:5,vars:1,consts:[["class","reaction",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","matTooltip","Add reaction",3,"click"],[1,"reaction"],[1,"button-container"],["mat-icon-button","","color","primary","class","remove","matTooltip","Remove reaction",3,"click",4,"ngIf"],[1,"row-centered"],[1,"small-form-field"],[3,"binding","selectionChange"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["reactionPopoverMenu","matMenu"],["mat-menu-item","",3,"disableRipple","click"],[1,"form-field"],[3,"value","click",4,"ngFor","ngForOf"],["routePopoverMenu","matMenu"],["mat-icon-button","","color","primary","matTooltip","Remove reaction",1,"remove",3,"click"],[3,"value","click"]],template:function(e,n){1&e&&(H(0,Qee,34,10,"div",0),v(1,"div")(2,"button",1),X("click",function(){return n.addNewReaction()}),v(3,"mat-icon"),E(4,"add"),y()()()),2&e&&T("ngForOf",n.reactions)},dependencies:[bo,fn,os,Qo,jc,wa,Wc,Da,ko,zs,cf,lf,p0],styles:["#main-card[_ngcontent-%COMP%]{padding:10px;width:100%}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:flex-start}.row-centered[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center}.column[_ngcontent-%COMP%]{flex:1;margin:5px;box-sizing:border-box}.form-field[_ngcontent-%COMP%]{width:100%}.smallest-form-field[_ngcontent-%COMP%]{width:60%;margin:5px}.small-form-field[_ngcontent-%COMP%]{width:90%;margin:5px}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;padding:4px 8px;height:36px}.mat-mdc-form-field-appearance-outline[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:0}.reaction[_ngcontent-%COMP%]{border-radius:10px;background-color:#a9bee9;padding:10px;margin-bottom:10px}#output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative}pre[_ngcontent-%COMP%] > code[_ngcontent-%COMP%]{width:45%;white-space:pre-wrap;word-wrap:break-word}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;width:100%}"]}),t})();function Kee(t,i){if(1&t){const e=Je();v(0,"mat-option",31),X("click",function(){return Me(e),Ae(q().updateAllergyStr())}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),Xe(e.display)}}function Zee(t,i){if(1&t){const e=Je();v(0,"mat-option",31),X("click",function(){return Me(e),Ae(q().updateAllergyStr())}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),Xe(e.display)}}function Jee(t,i){if(1&t){const e=Je();v(0,"mat-option",31),X("click",function(){return Me(e),Ae(q().updateAllergyStr())}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),Xe(e.display)}}function ete(t,i){if(1&t){const e=Je();v(0,"app-autocomplete-binding",10),X("selectionChange",function(r){return Me(e),Ae(q().substanceSelected(r,!0))}),y()}if(2&t){const e=q();T("binding",e.substanceBinding)("term",e.selectedSubstanceTerm)}}function tte(t,i){if(1&t){const e=Je();v(0,"app-autocomplete-binding",10),X("selectionChange",function(r){return Me(e),Ae(q().substanceSelected(r))}),y()}if(2&t){const e=q();T("binding",e.refinedSubstanceBinding)("term",e.selectedSubstanceTerm)}}function ite(t,i){if(1&t&&(v(0,"pre"),E(1),y()),2&t){const e=q();k(1),Xe(e.substanceBinding.ecl)}}function nte(t,i){if(1&t&&(v(0,"pre"),E(1),y()),2&t){const e=q();k(1),Xe(e.refinedSubstanceBinding.ecl)}}function rte(t,i){if(1&t){const e=Je();v(0,"mat-option",31),X("click",function(){return Me(e),Ae(q().updateAllergyStr())}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),Xe(e.display)}}function ote(t,i){if(1&t){const e=Je();v(0,"mat-option",31),X("click",function(){return Me(e),Ae(q().updateAllergyStr())}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),Xe(e.display)}}const ate=function(){return{}};let ste=(()=>{class t{constructor(e,n,r){this.terminologyService=e,this.clipboard=n,this._snackBar=r,this.newProblem=new xe,this.clinicalStatusOptions=[{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"active",display:"Active"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"inactive",display:"Inactive"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"resolved",display:"Resolved"}],this.selectedClinicalStatus=this.clinicalStatusOptions[0],this.verificationStatusOptions=[{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"unconfirmed",display:"Unconfirmed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"presumed",display:"Presumed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"confirmed",display:"Confirmed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"refuted",display:"Refuted"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"entered-in-error",display:"Entered in Error"}],this.selectedVerificationStatus=this.verificationStatusOptions[0],this.intoleranceTypeOptions=[{system:"http://hl7.org/fhir/allergy-intolerance-type",code:"609433001",display:"Hypersensitivity disposition (finding)",fhirCode:"allergy",fhirDisplay:"Allergy"},{system:"http://hl7.org/fhir/allergy-intolerance-type",code:"782197009",display:"Intolerance to substance (finding)",fhirCode:"intolerance",fhirDisplay:"Intolerance"}],this.selectedIntoleranceType=null,this.intoleranceCategoryOptions=[{code:"food",display:"Food"},{code:"medication",display:"Medication"},{code:"environment",display:"Environment"},{code:"biologic",display:"Biologic"}],this.selectedIntoleranceCategories=[],this.selectedIntoleranceCategoriesControl=new Br(this.selectedIntoleranceCategories),this.criticalityOptions=[{code:"low",display:"Low Risk"},{code:"high",display:"High Risk"},{code:"unable-to-assess",display:"Unable to Assess Risk"}],this.selectedCriticality=null,this.severityOptions=[{code:"mild",display:"Mild",sctCode:"255604002",sctDisplay:"Mild (qualifier value)"},{code:"moderate",display:"Moderate",sctCode:"6736007",sctDisplay:"Moderate (qualifier value)"},{code:"severe",display:"Severe",sctCode:"24484000",sctDisplay:"Severe (qualifier value)"}],this.selectedSeverity={},this.codeBinding={ecl:"<<418038007 |Propensity to adverse reactions to substance| OR <<420134006 |Propensity to adverse reaction (finding)|",title:"Allergy/Intolerance by propensity"},this.selectedCode=null,this.selectedCodeTerm="",this.recordPropensity=!1,this.substanceBinding={ecl:"<<105590001 | Substance (substance) | OR <<373873005 | Pharmaceutical / biologic product (product) |",title:"Allergy/Intolerance substance or product"},this.refinedSubstanceBinding={ecl:"<<105590001 | Substance (substance) |",title:"Allergy/Intolerance substance based on propensity"},this.selectedSubstanceTerm="",this.selectedSubstance=null,this.selectedReactions=[{suibstance:{},manifestation:{},severity:{},route:{}}],this.reactionManifestationBinding={ecl:"<<404684003 |Clinical finding|",title:"Reaction Manifestation"},this.selectedReactionManifestation=null,this.selectedReactionManifestationTerm="",this.routeBinding={ecl:"<<284009009 |Route of administration value|",title:"Exposure Route"},this.selectedRoute=null,this.selectedRouteTerm="",this.outputAllergyBase={resourceType:"AllergyIntolerance",id:"medication",text:{},clinicalStatus:{coding:[]},verificationStatus:{coding:[]},type:"",category:[],criticality:"high",code:{coding:[]},reaction:[{substance:[{coding:[]}],manifestation:[{coding:[]}],exposureRoute:{coding:[]},severity:""}],patient:{reference:"Patient/example"},recordedDate:"2010-03-01",participant:[{function:{coding:[{system:"http://terminology.hl7.org/CodeSystem/provenance-participant-type",code:"author",display:"Author"}]},actor:{reference:"Practitioner/example"}}]},this.outputAllergy=JSON.parse(JSON.stringify(this.outputAllergyBase)),this.outputAllergyStr=""}ngOnInit(){this.updateAllergyStr()}onReactionsChange(e){this.updateAllergyStr()}clear(){this.selectedClinicalStatus=this.clinicalStatusOptions[0],this.selectedVerificationStatus=this.verificationStatusOptions[0],this.selectedIntoleranceType=null,this.selectedIntoleranceCategories=[],this.selectedIntoleranceCategoriesControl=new Br(this.selectedIntoleranceCategories),this.selectedCriticality=null,this.selectedSeverity={},this.selectedCode=null,this.selectedCodeTerm="",this.recordPropensity=!1,this.selectedSubstanceTerm="",this.selectedReactionManifestation=null,this.selectedReactionManifestationTerm=" ",this.selectedRoute=null,this.selectedRouteTerm=" ",this.selectedReactions=[{suibstance:{},manifestation:{},severity:{},route:{}}],this.outputAllergy=JSON.parse(JSON.stringify(this.outputAllergyBase)),this.updateAllergyStr(),setTimeout(()=>{this.selectedReactionManifestationTerm="",this.selectedRouteTerm=""},100)}updateAllergyStr(){this.outputAllergy.clinicalStatus.coding=[this.selectedClinicalStatus],this.outputAllergy.verificationStatus.coding=[this.selectedVerificationStatus],this.outputAllergy.type=this.selectedIntoleranceType?this.selectedIntoleranceType.fhirCode:"",this.outputAllergy.category=this.selectedIntoleranceCategories.length?this.selectedIntoleranceCategories.map(e=>e.display):[],this.outputAllergy.criticality=this.selectedCriticality?.code?[this.selectedCriticality.code]:{},this.outputAllergy.reaction=[],this.selectedReactions.forEach(e=>{e.manifestation.code&&(e.manifestation.system="http://snomed.info/sct"),e.route.code&&(e.route.system="http://snomed.info/sct"),this.outputAllergy.reaction.push({substance:[{coding:[this.selectedSubstance]}],manifestation:[{coding:e.manifestation?[e.manifestation]:[{}]}],exposureRoute:{coding:e.route?[e.route]:[{}]},severity:e.severity?e.severity.code:""})}),setTimeout(()=>{this.outputAllergyStr=JSON.stringify(this.outputAllergy,null,2)},100)}substanceSelected(e,n){var r=this;return Oi(function*(){n&&(r.selectedCodeTerm=""),r.selectedSubstance=e,r.selectedIntoleranceCategories=[],e=Object.assign({system:"http://snomed.info/sct"},e),r.recordPropensity||(r.outputAllergy.code.coding=[e]),r.outputAllergy.reaction[0].substance[0].coding=[e],(yield r.getSubstanceCategories(e))?.expansion?.contains?.forEach(a=>{"762766007"==a.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[0]):"115668003"==a.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[3]):"410942007"==a.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[1]):"57795002"==a.code&&r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[2])}),r.selectedIntoleranceCategoriesControl.setValue(r.selectedIntoleranceCategories),r.updateAllergyStr()})()}propensityRecordChanged(){this.outputAllergy.code.coding=[],this.selectedCode&&this.codeSelected(this.selectedCode)}codeSelected(e){var n=this;return Oi(function*(){if(e=Object.assign({system:"http://snomed.info/sct"},e)){n.selectedCodeTerm=e.display,n.selectedCode=e,n.recordPropensity&&(n.outputAllergy.code.coding=[e]);let r=yield n.getTypes(e);if(r.expansion?.contains){const a=r.expansion?.contains[0];n.selectedIntoleranceType=n.intoleranceTypeOptions.find(s=>s.code===a.code)}let o=yield n.getAllergySubstance(e);if(o.expansion.contains||(o=yield n.getIntoleranceSubstance(e)),o.expansion?.contains){const a=o.expansion?.contains[0];n.refinedSubstanceBinding.ecl=`<<${a.code} | ${a.display} |`,n.substanceSelected(a),n.selectedSubstanceTerm=a.display}else n.refinedSubstanceBinding.ecl="<<105590001 | Substance (substance) |"}})()}getIntoleranceSubstance(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . 47429007 |Associated with (attribute)|`,"")).pipe(Ke(o=>o)))})()}getAllergySubstance(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . 246075003 |Causative agent (attribute)|`,"")).pipe(Ke(o=>o)))})()}getSubstanceCategories(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet(`> ${e.code} |${e.display}| AND (762766007 |Edible substance| OR 115668003 |Biological substance (substance)| OR 410942007 |Drug or medicament (substance)| OR 57795002 |Chemical element|)`,"")).pipe(Ke(o=>o)))})()}getTypes(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet(`> ${e.code} |${e.display}| AND (609433001 |Hypersensitivity disposition| OR 782197009 |Intolerance to substance|)`,"")).pipe(Ke(o=>o)))})()}saveFhirResource(){var e=new Blob([this.outputAllergyStr],{type:"text/plain;charset=utf-8"});(0,Zc.saveAs)(e,"AllergyIntolerance.json")}copyToClipboard(e){this.clipboard.copy(e)}addToProblemsList(){if(this.selectedCode)this.newProblem.emit(this.selectedCode);else if(this.selectedSubstance&&this.selectedIntoleranceType){let e="";"609433001"===this.selectedIntoleranceType.code?e="Allergy to ":"782197009"===this.selectedIntoleranceType.code&&(e="Intolerance to "),e+=this.selectedSubstance.display,this.newProblem.emit({code:`${this.selectedIntoleranceType.code}:246075003=${this.selectedSubstance.code}`,display:e,substance:this.selectedSubstance})}else this._snackBar.openFromComponent(Qi,{duration:1e3,data:"Nothing to add to problem list",panelClass:["yellow-snackbar"]});this.clear()}}return t.\u0275fac=function(e){return new(e||t)(b(Nr),b(aO),b(Nd))},t.\u0275cmp=Ve({type:t,selectors:[["app-allergies-allergy-list"]],outputs:{newProblem:"newProblem"},decls:105,vars:30,consts:[["id","main-card"],[1,"row"],[1,"column"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",1,"long-tooltip",3,"disableRipple","click"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],["mat-flat-button","","color","accent","id","clear",3,"click"],[1,"row-centered"],[1,"smallest-form-field"],[3,"binding","term","selectionChange"],["codePopoverMenu","matMenu"],["mat-menu-item","",3,"disableRipple","click"],["matTooltip","Defines wether to use a propensity based model or a substance based model. Defines which one is recorded in the code element of the AllergyIntolerance resource.",3,"ngModel","ngModelChange","click"],[1,"form-field"],[3,"ngModel","ngModelChange"],[3,"value","click",4,"ngFor","ngForOf"],[1,"small-form-field"],[3,"binding","term","selectionChange",4,"ngIf"],[4,"ngIf"],[3,"formControl","multiple"],[3,"ngModel","ngModelChange","newManifestation"],["mat-flat-button","","color","accent",3,"click"],["href","https://hl7.org/FHIR/allergyintolerance.html","target","_blank"],["id","output"],["id","save"],["mat-icon-button","","matTooltip","Download FHIR Resource",3,"click"],["fontIcon","cloud_download"],["mat-icon-button","","matTooltip","Copy FHIR Resource",3,"click"],["fontIcon","content_copy"],["highlight-js","","id","output","wrap","soft",3,"options","lang","innerHTML"],[3,"value","click"]],template:function(e,n){if(1&e&&(v(0,"mat-card",0)(1,"div",1)(2,"div",2)(3,"h4"),E(4,"Allergy Intolerance Form "),v(5,"button",3)(6,"mat-icon"),E(7,"info"),y()(),v(8,"mat-menu",null,4)(10,"span",5),X("click",function(o){return o.stopPropagation()}),v(11,"h4"),E(12,"Allergy list"),y(),v(13,"p"),E(14,"Allergy or intolerance can be recorded in a specific section (e.g., \u201cDrug Allergy and Intolerance\u201d) of the EHR, which records the causative agent together with other details, including type (allergy, non-allergic hypersensitivity, intolerance), certainty, manifestation, and severity. This corresponds to the FHIR substance based AllergyIntolerance resource data model."),y(),v(15,"p"),E(16,"In terms of documenting sensitivity type in the allergy list there is the option to map to 609433001 |Hypersensitivity disposition which in SNOMED CT represents both immune-mediated and non-immune mediated hypersensitivity or to map to 609328004 |Allergic disposition (finding)|which is common clinical parlance for what many clinicians would mean by allergic or non-allergic hypersensitivity. In addition, as recommended in the FHIR documentation if one is unclear as to whether a condition represents hypersensitivity or intolerance, one can just omit the type element from the resource."),y(),v(17,"p"),E(18,"If SNOMED CT concepts are used to document the causative agent, it is preferable to use concepts from the Substance rather than Pharmaceutical/biologic product hierarchy since this will facilitate the downstream use of data, e.g., clinical decision support, data exchange."),y(),v(19,"p"),E(20,"Almost all allergy and intolerance finding concepts are modeled using substance concepts in SNOMED CT. The SNOMED CT substance hierarchy has grouper concepts that are based on structure (e.g., Macrolide) or disposition (e.g., substance with histamine receptor antagonist mechanism of action). Clinical decision support systems can utilize these grouper concepts to access information at the desired level of granularity. Clinicians can also record a class of substance instead of a specific drug or substance (e.g., angiotensin II receptor antagonist). Note that substance grouper concepts based on therapeutic role (e.g., anticonvulsant) is not recommended for use because they are currently under review and may be retired in future."),y(),v(21,"p"),E(22,"There are situations in which it is difficult to determine the specific substance as a true cause or most likely cause of a condition. This is the case for allergy/intolerance to a product containing multiple substances."),y(),v(23,"p"),E(24,"Records of allergy to multiple substances or to multi-ingredient products should be recorded at the product level and updated when more specific information becomes available (e.g., positive sensitivity test to one specific ingredient of the mix)."),y(),v(25,"p"),E(26,"For more information check the "),v(27,"a",6),E(28,"Implementation Guide"),y(),E(29," developed by the SNOMED International Allergy Clinical Reference Group."),y()()()(),v(30,"button",7),X("click",function(){return n.clear()}),E(31,"Clear"),y(),v(32,"div",8)(33,"div",9)(34,"app-autocomplete-binding",10),X("selectionChange",function(o){return n.codeSelected(o)}),y()(),v(35,"button",3)(36,"mat-icon"),E(37,"info"),y()(),v(38,"mat-menu",null,11)(40,"span",12),X("click",function(o){return o.stopPropagation()}),v(41,"p"),E(42,"Terminology binding:"),y(),v(43,"pre"),E(44),y()()(),v(45,"mat-slide-toggle",13),X("ngModelChange",function(o){return n.recordPropensity=o})("click",function(){return n.propensityRecordChanged()}),E(46," Propensity based model "),y()(),v(47,"mat-form-field",14)(48,"mat-label"),E(49,"Allergy Intolerance Type"),y(),v(50,"mat-select",15),X("ngModelChange",function(o){return n.selectedIntoleranceType=o}),H(51,Kee,2,2,"mat-option",16),y()(),v(52,"div",8)(53,"mat-form-field",2)(54,"mat-label"),E(55,"Clinical Status"),y(),v(56,"mat-select",15),X("ngModelChange",function(o){return n.selectedClinicalStatus=o}),H(57,Zee,2,2,"mat-option",16),y()(),v(58,"mat-form-field",2)(59,"mat-label"),E(60,"Verification Status"),y(),v(61,"mat-select",15),X("ngModelChange",function(o){return n.selectedVerificationStatus=o}),H(62,Jee,2,2,"mat-option",16),y()()(),v(63,"div",8)(64,"div",17),H(65,ete,1,2,"app-autocomplete-binding",18),H(66,tte,1,2,"app-autocomplete-binding",18),y(),v(67,"button",3)(68,"mat-icon"),E(69,"info"),y()(),v(70,"mat-menu",null,4)(72,"span",12),X("click",function(o){return o.stopPropagation()}),v(73,"p"),E(74,"Terminology binding:"),y(),H(75,ite,2,1,"pre",19),H(76,nte,2,1,"pre",19),y()()(),v(77,"div",8)(78,"mat-form-field",2)(79,"mat-label"),E(80,"Substance Category"),y(),v(81,"mat-select",20),H(82,rte,2,2,"mat-option",16),y()(),v(83,"mat-form-field",2)(84,"mat-label"),E(85,"Allergy Criticality"),y(),v(86,"mat-select",15),X("ngModelChange",function(o){return n.selectedCriticality=o}),H(87,ote,2,2,"mat-option",16),y()()(),v(88,"app-allergies-allergy-list-reaction",21),X("ngModelChange",function(o){return n.selectedReactions=o})("ngModelChange",function(o){return n.onReactionsChange(o)})("newManifestation",function(o){return n.newProblem.emit(o)}),y(),v(89,"button",22),X("click",function(){return n.addToProblemsList()}),E(90,"Save"),y()(),v(91,"div",2)(92,"h4"),E(93,"AllergyIntolerance HL7 FHIR Resource ("),v(94,"a",23),E(95,"link"),y(),E(96,")"),y(),v(97,"div",24)(98,"div",25)(99,"button",26),X("click",function(){return n.saveFhirResource()}),Se(100,"mat-icon",27),y(),v(101,"button",28),X("click",function(){return n.copyToClipboard(n.outputAllergyStr)}),Se(102,"mat-icon",29),y()(),v(103,"textarea",30),E(104," "),y()()()()()),2&e){const r=Nt(9),o=Nt(39);k(5),T("matMenuTriggerFor",r),k(5),T("disableRipple",!0),k(24),T("binding",n.codeBinding)("term",n.selectedCodeTerm),k(1),T("matMenuTriggerFor",o),k(5),T("disableRipple",!0),k(4),Xe(n.codeBinding.ecl),k(1),T("ngModel",n.recordPropensity),k(5),T("ngModel",n.selectedIntoleranceType),k(1),T("ngForOf",n.intoleranceTypeOptions),k(5),T("ngModel",n.selectedClinicalStatus),k(1),T("ngForOf",n.clinicalStatusOptions),k(4),T("ngModel",n.selectedVerificationStatus),k(1),T("ngForOf",n.verificationStatusOptions),k(3),T("ngIf",!n.recordPropensity),k(1),T("ngIf",n.recordPropensity),k(1),T("matMenuTriggerFor",r),k(5),T("disableRipple",!0),k(3),T("ngIf",!n.recordPropensity),k(1),T("ngIf",n.recordPropensity),k(5),T("formControl",n.selectedIntoleranceCategoriesControl)("multiple",!0),k(1),T("ngForOf",n.intoleranceCategoryOptions),k(4),T("ngModel",n.selectedCriticality),k(1),T("ngForOf",n.criticalityOptions),k(1),T("ngModel",n.selectedReactions),k(15),T("options",Ec(29,ate))("lang","json")("innerHTML",n.outputAllergyStr,qm)}},dependencies:[bo,fn,N1,Lr,os,Qo,jc,wa,Wc,Da,ko,zs,Co,s0,a1,cf,Yo,lf,fO,p0,Yee],styles:["#main-card[_ngcontent-%COMP%]{padding:10px;width:100%}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:flex-start}.row-centered[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center}.column[_ngcontent-%COMP%]{position:relative;flex:1;margin:5px;box-sizing:border-box}.form-field[_ngcontent-%COMP%]{width:100%}.smallest-form-field[_ngcontent-%COMP%]{width:60%;margin:5px}.small-form-field[_ngcontent-%COMP%]{width:90%;margin:5px}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;padding:4px 8px;height:36px}.mat-mdc-form-field-appearance-outline[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:0}.reaction[_ngcontent-%COMP%]{border-radius:10px;background-color:#a9bee9;padding:10px}#output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative}pre[_ngcontent-%COMP%] > code[_ngcontent-%COMP%]{width:45%;white-space:pre-wrap;word-wrap:break-word}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}#clear[_ngcontent-%COMP%]{position:absolute;right:20px;top:20px}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]}),t})(),pO=(()=>{class t{constructor(e){this._snackBar=e}addProblem(e){var n=this;return Oi(function*(){n.allergiesProblemListComponent.addProblem(e),n._snackBar.openFromComponent(Qi,{duration:1e3,data:"Problem list updated",panelClass:["green-snackbar"]})})()}}return t.\u0275fac=function(e){return new(e||t)(b(Nd))},t.\u0275cmp=Ve({type:t,selectors:[["app-allergies"]],viewQuery:function(e,n){if(1&e&&st(KR,5),2&e){let r;ye(r=we())&&(n.allergiesProblemListComponent=r.first)}},decls:31,vars:2,consts:[["id","main-panel"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",1,"long-tooltip",3,"disableRipple","click"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Allergy List Approach (AllergyIntolerance FHIR resource)"],[3,"newProblem"],["label","Problem List Approach (Condition FHIR resource)"]],template:function(e,n){if(1&e&&(v(0,"div",0)(1,"h3"),E(2,"Allergy, Hypersensitivity and Intolerance "),v(3,"button",1)(4,"mat-icon"),E(5,"info"),y()(),v(6,"mat-menu",null,2)(8,"span",3),X("click",function(o){return o.stopPropagation()}),v(9,"h4"),E(10,"Allergy, Hypersensitivity and Intolerance Implementation Demo"),y(),v(11,"p"),E(12,"This is a demonstration of different implementation approaches for recording Allergies, Hypersensitivity and Intolerance."),y(),v(13,"p")(14,"b"),E(15,"Allergy list:"),y(),E(16," allergy or intolerance can be recorded in a specific section of the EHR, which records the causative agent together with other details, including type (allergy, non-allergic hypersensitivity, intolerance), certainty, manifestation, and severity. This corresponds to the FHIR substance based AllergyIntolerance resource data model."),y(),v(17,"p")(18,"b"),E(19,"Problem list:"),y(),E(20," Allergy or intolerance can also be recorded in the EHR as a problem. The problem list is normally restricted to SNOMED CT concepts from three hierarchies \u2013 Clinical finding, Event and Finding with explicit context. This corresponds either to the FHIR finding based AllergyIntolerance resource data model or the FHIR Condition resource."),y(),v(21,"p"),E(22,"For more information check the "),v(23,"a",4),E(24,"Implementation Guide"),y(),E(25," developed by the SNOMED International Allergy Clinical Reference Group."),y()()()(),v(26,"mat-tab-group",5)(27,"mat-tab",6)(28,"app-allergies-allergy-list",7),X("newProblem",function(o){return n.addProblem(o)}),y()(),v(29,"mat-tab",8),Se(30,"app-allergies-problem-list"),y()()()),2&e){const r=Nt(7);k(3),T("matMenuTriggerFor",r),k(5),T("disableRipple",!0)}},dependencies:[os,Qo,jc,wa,Wc,g0,sf,KR,ste],styles:["#main-panel[_ngcontent-%COMP%]{padding:10px}h3[_ngcontent-%COMP%]{margin-top:0}#guideLink[_ngcontent-%COMP%]{font-size:smaller}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]}),t})();function B1(t,i,e){for(let n in i)if(i.hasOwnProperty(n)){const r=i[n];r?t.setProperty(n,r,e?.has(n)?"important":""):t.removeProperty(n)}return t}function Yd(t,i){const e=i?"":"none";B1(t.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function gO(t,i,e){B1(t.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function _0(t,i){return i&&"none"!=i?t+" "+i:t}function _O(t){const i=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*i}function V1(t,i){return t.getPropertyValue(i).split(",").map(n=>n.trim())}function H1(t){const i=t.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function U1(t,i,e){const{top:n,bottom:r,left:o,right:a}=t;return e>=n&&e<=r&&i>=o&&i<=a}function df(t,i,e){t.top+=i,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function bO(t,i,e,n){const{top:r,right:o,bottom:a,left:s,width:c,height:l}=t,d=c*i,u=l*i;return n>r-u&&ns-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:H1(e)})})}handleScroll(i){const e=to(i),n=this.positions.get(e);if(!n)return null;const r=n.scrollPosition;let o,a;if(e===this._document){const l=this.getViewportScrollPosition();o=l.top,a=l.left}else o=e.scrollTop,a=e.scrollLeft;const s=r.top-o,c=r.left-a;return this.positions.forEach((l,d)=>{l.clientRect&&e!==d&&e.contains(d)&&df(l.clientRect,s,c)}),r.top=o,r.left=a,{top:s,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function xO(t){const i=t.cloneNode(!0),e=i.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();i.removeAttribute("id");for(let r=0;rYd(n,e)))}constructor(i,e,n,r,o,a){this._config=e,this._document=n,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new ke,this._pointerMoveSubscription=yt.EMPTY,this._pointerUpSubscription=yt.EMPTY,this._scrollSubscription=yt.EMPTY,this._resizeSubscription=yt.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new ke,this.started=new ke,this.released=new ke,this.ended=new ke,this.entered=new ke,this.exited=new ke,this.dropped=new ke,this.moved=this._moveEvents,this._pointerDown=s=>{if(this.beforeStarted.next(),this._handles.length){const c=this._getTargetHandle(s);c&&!this._disabledHandles.has(c)&&!this.disabled&&this._initializeDragSequence(c,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const c=this._getPointerPositionOnPage(s);if(!this._hasStartedDragging){if(Math.abs(c.x-this._pickupPositionOnPage.x)+Math.abs(c.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(s),m=this._dropContainer;if(!f)return void this._endDragSequence(s);(!m||!m.isDragging()&&!m.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}s.preventDefault();const l=this._getConstrainedPointerPosition(c);if(this._hasMoved=!0,this._lastKnownPointerPosition=c,this._updatePointerDirectionDelta(l),this._dropContainer)this._updateActiveDropContainer(l,c);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=l.x-d.x+this._passiveTransform.x,u.y=l.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:l,event:s,distance:this._getDragDistance(l),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this._nativeDragStart=s=>{if(this._handles.length){const c=this._getTargetHandle(s);c&&!this._disabledHandles.has(c)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(i).withParent(e.parentDragRef||null),this._parentPositions=new vO(n),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(n=>Zi(n)),this._handles.forEach(n=>Yd(n,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&e.add(n)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){const e=Zi(i);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,b0),e.addEventListener("touchstart",this._pointerDown,kO),e.addEventListener("dragstart",this._nativeDragStart,b0)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?Zi(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),Yd(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),Yd(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){const i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){const i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(i){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){uf(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const n=this._rootElement,r=n.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),gO(n,!1,z1),this._document.body.appendChild(r.replaceChild(o,n)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:i}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(i,e){this._parentDragRef&&e.stopPropagation();const n=this.isDragging(),r=uf(e),o=!r&&0!==e.button,a=this._rootElement,s=to(e),c=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=r?Cg(e):wg(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),n||o||c||l)return;if(this._handles.length){const h=a.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=H1(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,i,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){gO(this._rootElement,!0,z1),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,n=e.getItemIndex(this),r=this._getPointerPositionOnPage(i),o=this._getDragDistance(r),a=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:i}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r,event:i}),e.drop(this,n,this._initialIndex,this._initialContainer,a,o,r,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:e},{x:n,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,i,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(n,r),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,e):this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const i=this._previewTemplate,e=this.previewClass,n=i?i.template:null;let r;if(n&&i){const o=i.matchSize?this._initialClientRect:null,a=i.viewContainer.createEmbeddedView(n,i.context);a.detectChanges(),r=SO(a,this._document),this._previewRef=a,i.matchSize?EO(r,o):r.style.transform=v0(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=xO(this._rootElement),EO(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return B1(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},z1),Yd(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);const e=function lte(t){const i=getComputedStyle(t),e=V1(i,"transition-property"),n=e.find(s=>"transform"===s||"all"===s);if(!n)return 0;const r=e.indexOf(n),o=V1(i,"transition-duration"),a=V1(i,"transition-delay");return _O(o[r])+_O(a[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{const r=a=>{(!a||to(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",r),n(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const i=this._placeholderTemplate,e=i?i.template:null;let n;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),n=SO(this._placeholderRef,this._document)):n=xO(this._rootElement),n.style.pointerEvents="none",n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(i,e,n){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():i,a=uf(n)?n.targetTouches[0]:n,s=this._getViewportScrollPosition();return{x:o.left-i.left+(a.pageX-o.left-s.left),y:o.top-i.top+(a.pageY-o.top-s.top)}}_getPointerPositionOnPage(i){const e=this._getViewportScrollPosition(),n=uf(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,r=n.pageX-e.left,o=n.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=o,s.matrixTransform(a.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(i){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:r}=this.constrainPosition?this.constrainPosition(i,this,this._initialClientRect,this._pickupPositionInElement):i;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:a}=this._pickupPositionInElement,s=this._boundaryRect,{width:c,height:l}=this._getPreviewRect(),d=s.top+a,u=s.bottom-(l-a);n=DO(n,s.left+o,s.right-(c-o)),r=DO(r,d,u)}return{x:n,y:r}}_updatePointerDirectionDelta(i){const{x:e,y:n}=i,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-o.x),s=Math.abs(n-o.y);return a>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=n>o.y?1:-1,o.y=n),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,Yd(this._rootElement,i))}_removeRootElementListeners(i){i.removeEventListener("mousedown",this._pointerDown,b0),i.removeEventListener("touchstart",this._pointerDown,kO),i.removeEventListener("dragstart",this._nativeDragStart,b0)}_applyRootElementTransform(i,e){const n=v0(i,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=_0(n,this._initialTransform)}_applyPreviewTransform(i,e){const n=this._previewTemplate?.template?void 0:this._initialTransform,r=v0(i,e);this._preview.style.transform=_0(r,n)}_getDragDistance(i){const e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(0===i&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===n.width&&0===n.height)return;const o=r.left-n.left,a=n.right-r.right,s=r.top-n.top,c=n.bottom-r.bottom;r.width>n.width?(o>0&&(i+=o),a>0&&(i-=a)):i=0,r.height>n.height?(s>0&&(e+=s),c>0&&(e-=c)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){const e=this.dragStartDelay;return"number"==typeof e?e:uf(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){const e=this._parentPositions.handleScroll(i);if(e){const n=to(i);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&df(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Ty(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){const n=this._previewContainer||"global";if("parent"===n)return i;if("global"===n){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Zi(n)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(i){return this._handles.find(e=>i.target&&(i.target===e||e.contains(i.target)))}}function v0(t,i){return`translate3d(${Math.round(t)}px, ${Math.round(i)}px, 0)`}function DO(t,i,e){return Math.max(i,Math.min(e,t))}function uf(t){return"t"===t.type[0]}function SO(t,i){const e=t.rootNodes;if(1===e.length&&e[0].nodeType===i.ELEMENT_NODE)return e[0];const n=i.createElement("div");return e.forEach(r=>n.appendChild(r)),n}function EO(t,i){t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.transform=v0(i.left,i.top)}function $1(t,i,e){const n=hf(i,t.length-1),r=hf(e,t.length-1);if(n===r)return;const o=t[n],a=r0)return null;const s="horizontal"===this.orientation,c=o.findIndex(p=>p.drag===i),l=o[a],u=l.clientRect,h=c>a?1:-1,f=this._getItemOffsetPx(o[c].clientRect,u,h),m=this._getSiblingOffsetPx(c,o,h),g=o.slice();return $1(o,c,a),o.forEach((p,_)=>{if(g[_]===p)return;const w=p.drag===i,x=w?f:m,M=w?i.getPlaceholderElement():p.drag.getRootElement();p.offset+=x,s?(M.style.transform=_0(`translate3d(${Math.round(p.offset)}px, 0, 0)`,p.initialTransform),df(p.clientRect,0,x)):(M.style.transform=_0(`translate3d(0, ${Math.round(p.offset)}px, 0)`,p.initialTransform),df(p.clientRect,x,0))}),this._previousSwap.overlaps=U1(u,e,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:c,currentIndex:a}}enter(i,e,n,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(i,e,n):r,a=this._activeDraggables,s=a.indexOf(i),c=i.getPlaceholderElement();let l=a[o];if(l===i&&(l=a[o+1]),!l&&(null==o||-1===o||o-1&&a.splice(s,1),l&&!this._dragDropRegistry.isDragging(l)){const d=l.getRootElement();d.parentElement.insertBefore(c,d),a.splice(o,0,i)}else Zi(this._element).appendChild(c),a.push(i);c.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables.forEach(i=>{const e=i.getRootElement();if(e){const n=this._itemPositions.find(r=>r.drag===i)?.initialTransform;e.style.transform=n||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(n=>n.drag===i)}updateOnScroll(i,e){this._itemPositions.forEach(({clientRect:n})=>{df(n,i,e)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}_cacheItemPositions(){const i="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const n=e.getVisibleElement();return{drag:e,offset:0,initialTransform:n.style.transform||"",clientRect:H1(n)}}).sort((e,n)=>i?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_getItemOffsetPx(i,e,n){const r="horizontal"===this.orientation;let o=r?e.left-i.left:e.top-i.top;return-1===n&&(o+=r?e.width-i.width:e.height-i.height),o}_getSiblingOffsetPx(i,e,n){const r="horizontal"===this.orientation,o=e[i].clientRect,a=e[i+-1*n];let s=o[r?"width":"height"]*n;if(a){const c=r?"left":"top",l=r?"right":"bottom";-1===n?s-=a.clientRect[c]-o[l]:s+=o[c]-a.clientRect[l]}return s}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,r="horizontal"===this.orientation;if(n[0].drag!==this._activeDraggables[0]){const a=n[n.length-1].clientRect;return r?i>=a.right:e>=a.bottom}{const a=n[0].clientRect;return r?i<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(i,e,n,r){const o="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:s,clientRect:c})=>s!==i&&((!r||s!==this._previousSwap.drag||!this._previousSwap.overlaps||(o?r.x:r.y)!==this._previousSwap.delta)&&(o?e>=Math.floor(c.left)&&e=Math.floor(c.top)&&n!0,this.sortPredicate=()=>!0,this.beforeStarted=new ke,this.entered=new ke,this.exited=new ke,this.dropped=new ke,this.sorted=new ke,this.receivingStarted=new ke,this.receivingStopped=new ke,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=yt.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new ke,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function cte(t=0,i=Rh){return t<0&&(t=0),Fg(t,t,i)}(0,oF).pipe(Tt(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-s):2===this._verticalScrollDirection&&a.scrollBy(0,s),1===this._horizontalScrollDirection?a.scrollBy(-s,0):2===this._horizontalScrollDirection&&a.scrollBy(s,0)})},this.element=Zi(i),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new vO(n),this._sortStrategy=new fte(this.element,e),this._sortStrategy.withSortPredicate((a,s)=>this.sortPredicate(a,s,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(i,e,n,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(i)),this._sortStrategy.enter(i,e,n,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,n,r,o,a,s,c={}){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:n,container:this,previousContainer:r,isPointerOverContainer:o,distance:a,dropPoint:s,event:c})}withItems(i){const e=this._draggables;return this._draggables=i,i.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===i.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._sortStrategy.direction=i,this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){return this._sortStrategy.orientation=i,this}withScrollableParents(i){const e=Zi(this.element);return this._scrollableElements=-1===i.indexOf(e)?[e,...i]:i.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,n,r){if(this.sortingDisabled||!this._clientRect||!bO(this._clientRect,.05,e,n))return;const o=this._sortStrategy.sort(i,e,n,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let n,r=0,o=0;if(this._parentPositions.positions.forEach((a,s)=>{s===this._document||!a.clientRect||n||bO(a.clientRect,.05,i,e)&&([r,o]=function pte(t,i,e,n){const r=AO(i,n),o=IO(i,e);let a=0,s=0;if(r){const c=t.scrollTop;1===r?c>0&&(a=1):t.scrollHeight-c>t.clientHeight&&(a=2)}if(o){const c=t.scrollLeft;1===o?c>0&&(s=1):t.scrollWidth-c>t.clientWidth&&(s=2)}return[a,s]}(s,a.clientRect,i,e),(r||o)&&(n=s))}),!r&&!o){const{width:a,height:s}=this._viewportRuler.getViewportSize(),c={width:a,height:s,top:0,right:a,bottom:s,left:0};r=AO(c,e),o=IO(c,i),n=window}n&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=n,(r||o)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const i=Zi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const i=Zi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(i).clientRect}_reset(){this._isDragging=!1;const i=Zi(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(i,e){return null!=this._clientRect&&U1(this._clientRect,i,e)}_getSiblingContainerFromPosition(i,e,n){return this._siblings.find(r=>r._canReceive(i,e,n))}_canReceive(i,e,n){if(!this._clientRect||!U1(this._clientRect,e,n)||!this.enterPredicate(i,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,n);if(!r)return!1;const o=Zi(this.element);return r===o||o.contains(r)}_startReceiving(i,e){const n=this._activeSiblings;!n.has(i)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(n.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:e}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(i);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const i=Ty(Zi(this.element));this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const i=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}}function AO(t,i){const{top:e,bottom:n,height:r}=t,o=r*MO;return i>=e-o&&i<=e+o?1:i>=n-o&&i<=n+o?2:0}function IO(t,i){const{left:e,right:n,width:r}=t,o=r*MO;return i>=e-o&&i<=e+o?1:i>=n-o&&i<=n+o?2:0}const x0=Xo({passive:!1,capture:!0});let gte=(()=>{class t{constructor(e,n){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new ke,this.pointerUp=new ke,this.scroll=new ke,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=n}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,x0)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,x0)}startDragging(e,n){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=n.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:x0}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:x0}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(e){const n=this._activeDragInstances.indexOf(e);n>-1&&(this._activeDragInstances.splice(n,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const n=[this.scroll];return e&&e!==this._document&&n.push(new ni(r=>this._ngZone.runOutsideAngular(()=>{const a=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),Vi(...n)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,n)=>{this._document.removeEventListener(n,e.handler,e.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(G(ze),G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const _te={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let j1=(()=>{class t{constructor(e,n,r,o){this._document=e,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,n=_te){return new hte(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new mte(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(G(nt),G(ze),G(ya),G(gte))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const W1=new ae("CDK_DRAG_PARENT"),G1=new ae("CdkDropListGroup"),FO=new ae("CDK_DRAG_CONFIG");let vte=0;const RO=new ae("CdkDropList");let q1=(()=>{class t{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=je(e)}constructor(e,n,r,o,a,s,c){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new ke,this.connectedTo=[],this.id="cdk-drop-list-"+vte++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new xe,this.entered=new xe,this.exited=new xe,this.sorted=new xe,this._unsortedItems=new Set,this._dropListRef=n.createDropList(e),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=(l,d)=>this.enterPredicate(l.data,d.data),this._dropListRef.sortPredicate=(l,d,u)=>this.sortPredicate(l,d.data,u.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),s&&s._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,n)=>e._dragRef.getVisibleElement().compareDocumentPosition(n._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(Hn(this._dir.value),Tt(this._destroyed)).subscribe(n=>e.withDirection(n)),e.beforeStarted.subscribe(()=>{const n=Oh(this.connectedTo).map(r=>"string"==typeof r?t._dropLists.find(a=>a.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===n.indexOf(r)&&n.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=je(this.sortingDisabled),e.autoScrollDisabled=je(this.autoScrollDisabled),e.autoScrollStep=In(this.autoScrollStep,2),e.connectedTo(n.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:this,item:n.item.data,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:this,item:n.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(n=>{this.sorted.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:n.item.data})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,item:n.item.data,isPointerOverContainer:n.isPointerOverContainer,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),Vi(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){const{lockAxis:n,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:a,listOrientation:s}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=a??!1,this.orientation=s||"vertical",n&&(this.lockAxis=n)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return t._dropLists=[],t.\u0275fac=function(e){return new(e||t)(b(Fe),b(j1),b(Gt),b(Pd),b(bn,8),b(G1,12),b(FO,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,n){2&e&&(ot("id",n.id),Qe("cdk-drop-list-disabled",n.disabled)("cdk-drop-list-dragging",n._dropListRef.isDragging())("cdk-drop-list-receiving",n._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[We([{provide:G1,useValue:void 0},{provide:RO,useExisting:t}])]}),t})();const X1=new ae("CdkDragHandle");let OO=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._stateChanges.next(this)}constructor(e,n){this.element=e,this._stateChanges=new ke,this._disabled=!1,this._parentDrag=n}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(W1,12))},t.\u0275dir=Q({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[We([{provide:X1,useExisting:t}])]}),t})();const PO=new ae("CdkDragPlaceholder"),LO=new ae("CdkDragPreview");let Q1=(()=>{class t{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=je(e),this._dragRef.disabled=this._disabled}constructor(e,n,r,o,a,s,c,l,d,u,h){this.element=e,this.dropContainer=n,this._ngZone=o,this._viewContainerRef=a,this._dir=c,this._changeDetectorRef=d,this._selfHandle=u,this._parentDrag=h,this._destroyed=new ke,this.started=new xe,this.released=new xe,this.ended=new xe,this.entered=new xe,this.exited=new xe,this.dropped=new xe,this.moved=new ni(f=>{const m=this._dragRef.moved.pipe(Ke(g=>({source:this,pointerPosition:g.pointerPosition,event:g.event,delta:g.delta,distance:g.distance}))).subscribe(f);return()=>{m.unsubscribe()}}),this._dragRef=l.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:s?.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),s&&this._assignDefaults(s),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ui(1),Tt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const n=e.rootElementSelector,r=e.freeDragPosition;n&&!n.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let n=e;this.rootElementSelector&&(n=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(n||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Zi(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const n=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:In(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),n&&e.withDirection(n.value)}}),e.beforeStarted.pipe(ui(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let n=this.element.nativeElement.parentElement;for(;n;){if(n.classList.contains("cdk-drag")){e.withParent(t._dragInstances.find(r=>r.element.nativeElement===n)?._dragRef||null);break}n=n.parentElement}})}_handleEvents(e){e.started.subscribe(n=>{this.started.emit({source:this,event:n.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(n=>{this.released.emit({source:this,event:n.event})}),e.ended.subscribe(n=>{this.ended.emit({source:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:n.container.data,item:this,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:n.container.data,item:this})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,isPointerOverContainer:n.isPointerOverContainer,item:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event})})}_assignDefaults(e){const{lockAxis:n,dragStartDelay:r,constrainPosition:o,previewClass:a,boundaryElement:s,draggingDisabled:c,rootElementSelector:l,previewContainer:d}=e;this.disabled=c??!1,this.dragStartDelay=r||0,n&&(this.lockAxis=n),o&&(this.constrainPosition=o),a&&(this.previewClass=a),s&&(this.boundaryElement=s),l&&(this.rootElementSelector=l),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.changes.pipe(Hn(this._handles),zi(e=>{const n=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&n.push(this.element),this._dragRef.withHandles(n)}),mn(e=>Vi(...e.map(n=>n._stateChanges.pipe(Hn(n))))),Tt(this._destroyed)).subscribe(e=>{const n=this._dragRef,r=e.element.nativeElement;e.disabled?n.disableHandle(r):n.enableHandle(r)})}}return t._dragInstances=[],t.\u0275fac=function(e){return new(e||t)(b(Fe),b(RO,12),b(nt),b(ze),b(Fi),b(FO,8),b(bn,8),b(j1),b(Gt),b(X1,10),b(W1,12))},t.\u0275dir=Q({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,LO,5),Bt(r,PO,5),Bt(r,X1,5)),2&e){let o;ye(o=we())&&(n._previewTemplate=o.first),ye(o=we())&&(n._placeholderTemplate=o.first),ye(o=we())&&(n._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,n){2&e&&Qe("cdk-drag-disabled",n.disabled)("cdk-drag-dragging",n._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[We([{provide:W1,useExisting:t}]),Ei]}),t})(),Cte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[j1],imports:[Hc]}),t})();function kte(t,i){}class y0{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let NO=(()=>{class t extends Mg{constructor(e,n,r,o,a,s,c,l){super(),this._elementRef=e,this._focusTrapFactory=n,this._config=o,this._interactivityChecker=a,this._ngZone=s,this._overlayRef=c,this._focusMonitor=l,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(n)}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(n=>{n||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let n=null;if("string"==typeof e?n=this._document.querySelector(e):"boolean"==typeof e?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&"function"==typeof n.focus){const r=mg(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,n=mg();return e===n||e.contains(n)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=mg())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Vy),b(nt,8),b(y0),b(yg),b(ze),b(Hh),b(yo))},t.\u0275cmp=Ve({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(e,n){if(1&e&&st(cs,7),2&e){let r;ye(r=we())&&(n._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,n){2&e&&ot("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null)},features:[pe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){1&e&&H(0,kte,0,0,"ng-template",0)},dependencies:[cs],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),t})();class Y1{constructor(i,e){this.overlayRef=i,this.config=e,this.closed=new ke,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{27===n.keyCode&&!this.disableClose&&!wr(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=i.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(i,e){if(this.containerInstance){const n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}}const BO=new ae("DialogScrollStrategy"),Dte=new ae("DialogData"),Ste=new ae("DefaultDialogConfig"),Tte={provide:BO,deps:[rr],useFactory:function Ete(t){return()=>t.scrollStrategies.block()}};let Mte=0,VO=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,n,r,o,a,s){this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ke,this._afterOpenedAtThisLevel=new ke,this._ariaHiddenElements=new Map,this.afterAllClosed=gd(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Hn(void 0))),this._scrollStrategy=s}open(e,n){(n={...this._defaultOptions||new y0,...n}).id=n.id||"cdk-dialog-"+Mte++,n.id&&this.getDialogById(n.id);const o=this._getOverlayConfig(n),a=this._overlay.create(o),s=new Y1(a,n),c=this._attachContainer(a,s,n);return s.containerInstance=c,this._attachDialogContent(e,s,c,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){K1(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){K1(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),K1(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const n=new Ld({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,r){const o=r.injector||r.viewContainerRef?.injector,a=[{provide:y0,useValue:r},{provide:Y1,useValue:n},{provide:Hh,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=NO;const c=new Od(s,r.viewContainerRef,tn.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,n,r,o){if(e instanceof _i){const a=this._createInjector(o,n,r,void 0);let s={$implicit:o.data,dialogRef:n};o.templateContext&&(s={...s,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new ss(e,null,s,a))}else{const a=this._createInjector(o,n,r,this._injector),s=r.attachComponentPortal(new Od(e,o.viewContainerRef,a,o.componentFactoryResolver));n.componentInstance=s.instance}}_createInjector(e,n,r,o){const a=e.injector||e.viewContainerRef?.injector,s=[{provide:Dte,useValue:e.data},{provide:Y1,useValue:n}];return e.providers&&("function"==typeof e.providers?s.push(...e.providers(n,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(bn,null,{optional:!0}))&&s.push({provide:bn,useValue:{value:e.direction,change:$e()}}),tn.create({parent:a||o,providers:s})}_removeOpenDialog(e,n){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const n=e.parentElement.children;for(let r=n.length-1;r>-1;r--){const o=n[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return t.\u0275fac=function(e){return new(e||t)(G(rr),G(tn),G(Ste,8),G(t,12),G(Rg),G(BO))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();function K1(t,i){let e=t.length;for(;e--;)i(t[e])}let Ate=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[VO,Tte],imports:[zc,Vc,zy,Vc]}),t})();function Ite(t,i){}class w0{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Z1="mdc-dialog--open",HO="mdc-dialog--opening",UO="mdc-dialog--closing";let Ote=(()=>{class t extends NO{constructor(e,n,r,o,a,s,c,l){super(e,n,r,o,a,s,c,l),this._animationStateChanged=new xe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Vy),b(nt,8),b(w0),b(yg),b(ze),b(Hh),b(yo))},t.\u0275cmp=Ve({type:t,selectors:[["ng-component"]],features:[pe],decls:0,vars:0,template:function(e,n){},encapsulation:2}),t})();const zO="--mat-dialog-transition-duration";function $O(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?In(t.substring(0,t.length-2)):t.endsWith("s")?1e3*In(t.substring(0,t.length-1)):"0"===t?0:null}let Pte=(()=>{class t extends Ote{constructor(e,n,r,o,a,s,c,l,d){super(e,n,r,o,a,s,c,d),this._animationMode=l,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?$O(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?$O(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(zO,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(HO),this._hostElement.classList.add(Z1),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Z1),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(Z1),this._animationsEnabled?(this._hostElement.style.setProperty(zO,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(UO),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(HO),this._hostElement.classList.remove(UO)}_waitForAnimationToComplete(e,n){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Vy),b(nt,8),b(w0),b(yg),b(ze),b(Hh),b(Ri,8),b(yo))},t.\u0275cmp=Ve({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(e,n){2&e&&(pa("id",n._config.id),ot("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Qe("_mat-animation-noopable",!n._animationsEnabled))},features:[pe],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(e,n){1&e&&(v(0,"div",0)(1,"div",1),H(2,Ite,0,0,"ng-template",2),y()())},dependencies:[cs],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),t})();class Gs{constructor(i,e,n){this._ref=i,this._containerInstance=n,this._afterOpened=new ke,this._beforeClosed=new ke,this._state=0,this.disableClose=e.disableClose,this.id=i.id,n._animationStateChanged.pipe(hi(r=>"opened"===r.state),ui(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(hi(r=>"closed"===r.state),ui(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Vi(this.backdropClick(),this.keydownEvents().pipe(hi(r=>27===r.keyCode&&!this.disableClose&&!wr(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),jO(this,"keydown"===r.type?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(hi(e=>"closing"===e.state),ui(1)).subscribe(e=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function jO(t,i,e){return t._closeInteractionType=i,t.close(e)}const C0=new ae("MatMdcDialogData"),Lte=new ae("mat-mdc-dialog-default-options"),WO=new ae("mat-mdc-dialog-scroll-strategy"),Bte={provide:WO,deps:[rr],useFactory:function Nte(t){return()=>t.scrollStrategies.block()}};let Vte=0,Hte=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,n,r,o,a,s,c,l,d,u){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=c,this._dialogContainerType=l,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ke,this._afterOpenedAtThisLevel=new ke,this._idPrefix="mat-dialog-",this.dialogConfigClass=w0,this.afterAllClosed=gd(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Hn(void 0))),this._scrollStrategy=s,this._dialog=n.get(VO)}open(e,n){let r;(n={...this._defaultOptions||new w0,...n}).id=n.id||`${this._idPrefix}${Vte++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...n,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:y0,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(a,s,c)=>(r=new this._dialogRefConstructor(a,n,c),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}}return t.\u0275fac=function(e){da()},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Kd=(()=>{class t extends Hte{constructor(e,n,r,o,a,s,c,l){super(e,n,o,s,c,a,Gs,Pte,C0,l),this._idPrefix="mat-mdc-dialog-"}}return t.\u0275fac=function(e){return new(e||t)(G(rr),G(tn),G(ih,8),G(Lte,8),G(WO),G(t,12),G(Rg),G(Ri,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Ute=0,ff=(()=>{class t{constructor(e,n,r){this.dialogRef=e,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=qO(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){jO(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(b(Gs,8),b(Fe),b(Kd))},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,n){1&e&&X("click",function(o){return n._onButtonClick(o)}),2&e&&ot("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Ei]}),t})(),GO=(()=>{class t{constructor(e,n,r){this._dialogRef=e,this._elementRef=n,this._dialog=r,this.id="mat-mdc-dialog-title-"+Ute++}ngOnInit(){this._dialogRef||(this._dialogRef=qO(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(b(Gs,8),b(Fe),b(Kd))},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(e,n){2&e&&pa("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),k0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),t})(),D0=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(e,n){2&e&&Qe("mat-mdc-dialog-actions-align-center","center"===n.align)("mat-mdc-dialog-actions-align-end","end"===n.align)},inputs:{align:"align"}}),t})();function qO(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}let zte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[Kd,Bte],imports:[Ate,zc,Vc,xt,xt]}),t})(),$te=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.localEcl="",this.localEcl=n.ecl}onNoClick(){this.dialogRef.close()}eclChanged(e){this.data.ecl=e?.detail[0]}}return t.\u0275fac=function(e){return new(e||t)(b(Gs),b(C0))},t.\u0275cmp=Ve({type:t,selectors:[["app-ecl-builder-dialog"]],decls:7,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"full-height"],["apiurl","https://dev-is-browser.ihtsdotools.org/snowstorm/snomed-ct","branch","MAIN/2023-01-31","v-on:eclOutput","eclChange",3,"eclstring","eclOutput"],["mat-dialog-actions","",1,"actions"],["mat-flat-button","","color","accent","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,n){1&e&&(v(0,"h1",0),E(1,"ECL Builder"),y(),v(2,"div",1)(3,"snomed-ecl-builder",2),X("eclOutput",function(o){return n.eclChanged(o)}),y()(),v(4,"div",3)(5,"button",4),E(6,"Ok"),y()()),2&e&&(k(3),Wu("eclstring",n.localEcl),k(2),T("mat-dialog-close",n.data))},dependencies:[Lr,ff,GO,k0,D0],styles:[".full-height[_ngcontent-%COMP%]{height:78%}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),t})();const QO=new ae("CdkAccordion");let jte=0,Wte=(()=>{class t{get expanded(){return this._expanded}set expanded(e){e=je(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e)}constructor(e,n,r){this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=r,this._openCloseAllSubscription=yt.EMPTY,this.closed=new xe,this.opened=new xe,this.destroyed=new xe,this.expandedChange=new xe,this.id="cdk-accordion-child-"+jte++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return t.\u0275fac=function(e){return new(e||t)(b(QO,12),b(Gt),b(vy))},t.\u0275dir=Q({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[We([{provide:QO,useValue:void 0}])]}),t})(),Gte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const qte=["body"];function Xte(t,i){}const Qte=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Yte=["mat-expansion-panel-header","*","mat-action-row"];function Kte(t,i){1&t&&Se(0,"span",2),2&t&&T("@indicatorRotate",q()._getExpandedState())}const Zte=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Jte=["mat-panel-title","mat-panel-description","*"],YO=new ae("MAT_ACCORDION"),KO="225ms cubic-bezier(0.4,0.0,0.2,1)",ZO={indicatorRotate:vn("indicatorRotate",[ii("collapsed, void",rt({transform:"rotate(0deg)"})),ii("expanded",rt({transform:"rotate(180deg)"})),ai("expanded <=> collapsed, void => collapsed",fi(KO))]),bodyExpansion:vn("bodyExpansion",[ii("collapsed, void",rt({height:"0px",visibility:"hidden"})),ii("expanded",rt({height:"*",visibility:"visible"})),ai("expanded <=> collapsed, void => collapsed",fi(KO))])},JO=new ae("MAT_EXPANSION_PANEL");let eie=(()=>{class t{constructor(e,n){this._template=e,this._expansionPanel=n}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(JO,8))},t.\u0275dir=Q({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),tie=0;const eP=new ae("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let tP=(()=>{class t extends Wte{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=je(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,n,r,o,a,s,c){super(e,n,r),this._viewContainerRef=o,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new xe,this.afterCollapse=new xe,this._inputChanges=new ke,this._headerId="mat-expansion-panel-header-"+tie++,this._bodyAnimationDone=new ke,this.accordion=e,this._document=a,this._bodyAnimationDone.pipe(Bc((l,d)=>l.fromState===d.fromState&&l.toState===d.toState)).subscribe(l=>{"void"!==l.fromState&&("expanded"===l.toState?this.afterExpand.emit():"collapsed"===l.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Hn(null),hi(()=>this.expanded&&!this._portal),ui(1)).subscribe(()=>{this._portal=new ss(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,n=this._body.nativeElement;return e===n||n.contains(e)}return!1}}return t.\u0275fac=function(e){return new(e||t)(b(YO,12),b(Gt),b(vy),b(Fi),b(nt),b(Ri,8),b(eP,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,eie,5),2&e){let o;ye(o=we())&&(n._lazyContent=o.first)}},viewQuery:function(e,n){if(1&e&&st(qte,5),2&e){let r;ye(r=we())&&(n._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,n){2&e&&Qe("mat-expanded",n.expanded)("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-expansion-panel-spacing",n._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[We([{provide:YO,useValue:void 0},{provide:JO,useExisting:t}]),pe,Ei],ngContentSelectors:Yte,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,n){1&e&&(vi(Qte),tt(0),v(1,"div",0,1),X("@bodyExpansion.done",function(o){return n._bodyAnimationDone.next(o)}),v(3,"div",2),tt(4,1),H(5,Xte,0,0,"ng-template",3),y(),tt(6,2),y()),2&e&&(k(1),T("@bodyExpansion",n._getExpandedState())("id",n.id),ot("aria-labelledby",n._headerId),k(4),T("cdkPortalOutlet",n._portal))},dependencies:[cs],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[ZO.bodyExpansion]},changeDetection:0}),t})();class iie{}const nie=Lh(iie);let rie=(()=>{class t extends nie{constructor(e,n,r,o,a,s,c){super(),this.panel=e,this._element=n,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=s,this._parentChangeSubscription=yt.EMPTY;const l=e.accordion?e.accordion._stateChanges.pipe(hi(d=>!(!d.hideToggle&&!d.togglePosition))):Wr;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=Vi(e.opened,e.closed,l,e._inputChanges.pipe(hi(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(hi(()=>e._containsFocus())).subscribe(()=>r.focusVia(n,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:wr(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,n){e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(b(tP,1),b(Fe),b(yo),b(Gt),b(eP,8),b(Ri,8),fo("tabindex"))},t.\u0275cmp=Ve({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,n){1&e&&X("click",function(){return n._toggle()})("keydown",function(o){return n._keydown(o)}),2&e&&(ot("id",n.panel._headerId)("tabindex",n.tabIndex)("aria-controls",n._getPanelId())("aria-expanded",n._isExpanded())("aria-disabled",n.panel.disabled),ir("height",n._getHeaderHeight()),Qe("mat-expanded",n._isExpanded())("mat-expansion-toggle-indicator-after","after"===n._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===n._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===n._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[pe],ngContentSelectors:Jte,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,n){1&e&&(vi(Zte),v(0,"span",0),tt(1),tt(2,1),tt(3,2),y(),H(4,Kte,1,1,"span",1)),2&e&&(Qe("mat-content-hide-toggle",!n._showToggle()),k(4),T("ngIf",n._showToggle()))},dependencies:[fn],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[ZO.indicatorRotate]},changeDetection:0}),t})(),oie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),aie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),sie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[nr,xt,Gte,Vc]}),t})();function cie(t,i){if(1&t){const e=Je();v(0,"mat-option",2),X("click",function(){return Me(e),Ae(q().optionClicked())}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),It(" ",e.display," ")}}let lie=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new xe}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionClicked(){this.selectionChange.emit(this.selectedOptions)}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-dropdown-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:7,vars:5,consts:[[3,"multiple","ngModel","ngModelChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"]],template:function(e,n){1&e&&(v(0,"mat-form-field")(1,"mat-label"),E(2),y(),v(3,"mat-select",0),X("ngModelChange",function(o){return n.selectedOptions=o}),H(4,cie,2,2,"mat-option",1),y(),v(5,"mat-hint"),E(6),y()()),2&e&&(k(2),Xe(n.binding.title),k(1),T("multiple","Select (Multiple)"==n.binding.type)("ngModel",n.selectedOptions),k(1),T("ngForOf",n.options),k(2),Xe(n.binding.note))},dependencies:[bo,Da,ko,Yc,zs,Co,cf,Yo],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]}),t})();const die=["input"],uie=["*"];let iP=0;class nP{constructor(i,e){this.source=i,this.value=e}}const hie={provide:Xn,useExisting:Xt(()=>J1),multi:!0},rP=new ae("MatRadioGroup"),fie=new ae("mat-radio-default-options",{providedIn:"root",factory:function mie(){return{color:"accent"}}});let pie=(()=>{class t{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=je(e),this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+iP++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new xe}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(n=>{n.checked=this.value===n.value,n.checked&&(this._selected=n)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new nP(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(b(Gt))},t.\u0275dir=Q({type:t,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),t})();class gie{constructor(i){this._elementRef=i}}const _ie=Hs(Lh(gie));let bie=(()=>{class t extends _ie{get checked(){return this._checked}set checked(e){const n=je(e);this._checked!==n&&(this._checked=n,n&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!n&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),n&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(je(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=je(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,n,r,o,a,s,c,l){super(n),this._changeDetector=r,this._focusMonitor=o,this._radioDispatcher=a,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++iP,this.id=this._uniqueId,this.change=new xe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,l&&(this.tabIndex=In(l,0))}focus(e,n){n?this._focusMonitor.focusVia(this._inputElement,n,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,n)=>{e!==this.id&&n===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new nP(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const n=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),n&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let n;if(n=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,n!==this._previousTabIndex){const r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",n+""),this._previousTabIndex=n)}}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(die,5),2&e){let r;ye(r=we())&&(n._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[pe]}),t})(),J1=(()=>{class t extends pie{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,ew,5),2&e){let o;ye(o=we())&&(n._radios=o)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[We([hie,{provide:rP,useExisting:t}]),pe]}),t})(),ew=(()=>{class t extends bie{constructor(e,n,r,o,a,s,c,l){super(e,n,r,o,a,s,c,l)}}return t.\u0275fac=function(e){return new(e||t)(b(rP,8),b(Fe),b(Gt),b(yo),b(vy),b(Ri,8),b(fie,8),fo("tabindex"))},t.\u0275cmp=Ve({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(e,n){1&e&&X("focus",function(){return n._inputElement.nativeElement.focus()}),2&e&&(ot("id",n.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Qe("mat-primary","primary"===n.color)("mat-accent","accent"===n.color)("mat-warn","warn"===n.color)("mat-mdc-radio-checked",n.checked)("_mat-animation-noopable",n._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[pe],ngContentSelectors:uie,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[3,"for"]],template:function(e,n){if(1&e&&(vi(),v(0,"div",0,1)(2,"div",2)(3,"div",3),X("click",function(o){return n._onTouchTargetClick(o)}),y(),v(4,"input",4,5),X("change",function(o){return n._onInputInteraction(o)}),y(),v(6,"div",6),Se(7,"div",7)(8,"div",8),y(),v(9,"div",9),Se(10,"div",10),y()(),v(11,"label",11),tt(12),y()()),2&e){const r=Nt(1);Qe("mdc-form-field--align-end","before"==n.labelPosition),k(2),Qe("mdc-radio--disabled",n.disabled),k(2),T("id",n.inputId)("checked",n.checked)("disabled",n.disabled)("required",n.required),ot("name",n.name)("value",n.value)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),k(5),T("matRippleTrigger",r)("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0),k(2),T("for",n.inputId)}},dependencies:[wo],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-mdc-radio-ripple-color, transparent)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0}),t})(),vie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,nr,Us,xt]}),t})();function xie(t,i){if(1&t){const e=Je();v(0,"mat-radio-button",3),X("click",function(){const o=Me(e).$implicit;return Ae(q().optionSelected(o))}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e.code),k(1),It(" ",e.display," ")}}let yie=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new xe}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionSelected(e){this.selectionChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-radios-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:6,vars:3,consts:[["aria-label","Select an option",1,"radio-group"],["class","radio-button",3,"value","click",4,"ngFor","ngForOf"],["id","hint"],[1,"radio-button",3,"value","click"]],template:function(e,n){1&e&&(v(0,"div"),E(1),y(),v(2,"mat-radio-group",0),H(3,xie,2,2,"mat-radio-button",1),y(),v(4,"div",2),E(5),y()),2&e&&(k(1),Xe(n.binding.title),k(2),T("ngForOf",n.options),k(2),Xe(n.binding.note))},dependencies:[bo,J1,ew],styles:["#hint[_ngcontent-%COMP%]{font-size:12px}.radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:20px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:0}"]}),t})(),wie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new xe,this.text=""}ngOnInit(){}onTextChange(e){this.text=e,this.textChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-textbox-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","placeholder","Enter text...",3,"ngModel","ngModelChange"]],template:function(e,n){1&e&&(v(0,"mat-form-field",0)(1,"mat-label"),E(2),y(),v(3,"textarea",1),X("ngModelChange",function(o){return n.text=o})("ngModelChange",function(o){return n.onTextChange(o)}),y(),v(4,"mat-hint"),E(5),y()()),2&e&&(k(2),Xe(n.binding.title),k(1),T("ngModel",n.text),k(2),Xe(n.binding.note))},dependencies:[Da,ko,Yc,Kc,Ca,Co,Yo],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]}),t})();const Cie=["input"],kie=["label"],Die=["*"],Sie=new ae("mat-checkbox-default-options",{providedIn:"root",factory:oP});function oP(){return{color:"accent",clickAction:"check-indeterminate"}}const Eie={provide:Xn,useExisting:Xt(()=>sP),multi:!0};class Tie{}let Mie=0;const aP=oP(),Aie=Lh(Vs(Hs(rs(class{constructor(t){this._elementRef=t}}))));let Iie=(()=>{class t extends Aie{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=je(e)}constructor(e,n,r,o,a,s,c){super(n),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=s,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new xe,this.indeterminateChange=new xe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||aP,this.color=this.defaultColor=this._options.color||aP.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++Mie}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const n=je(e);n!=this.checked&&(this._checked=n,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const n=je(e);n!==this.disabled&&(this._disabled=n,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const n=e!=this._indeterminate;this._indeterminate=je(e),n&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_transitionCheckState(e){let n=this._currentCheckState,r=this._getAnimationTargetElement();if(n!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===n)return this._animationClasses.uncheckedToChecked;if(3==n)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===n?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===n?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===n?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(st(Cie,5),st(kie,5),st(wo,5)),2&e){let r;ye(r=we())&&(n._inputElement=r.first),ye(r=we())&&(n._labelElement=r.first),ye(r=we())&&(n.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[pe]}),t})(),sP=(()=>{class t extends Iie{constructor(e,n,r,o,a,s){super("mat-mdc-checkbox-",e,n,r,o,a,s),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const n=new Tie;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(ze),fo("tabindex"),b(Ri,8),b(Sie,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(e,n){2&e&&(pa("id",n.id),ot("tabindex",null)("aria-label",null)("aria-labelledby",null),Qe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mdc-checkbox--disabled",n.disabled)("mat-mdc-checkbox-disabled",n.disabled)("mat-mdc-checkbox-checked",n.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[We([Eie]),pe],ngContentSelectors:Die,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(e,n){if(1&e&&(vi(),v(0,"div",0),X("click",function(o){return n._preventBubblingFromLabel(o)}),v(1,"div",1,2)(3,"div",3),X("click",function(){return n._onTouchTargetClick()}),y(),v(4,"input",4,5),X("blur",function(){return n._onBlur()})("click",function(){return n._onInputClick()})("change",function(o){return n._onInteractionEvent(o)}),y(),Se(6,"div",6),v(7,"div",7),Wa(),v(8,"svg",8),Se(9,"path",9),y(),Ll(),Se(10,"div",10),y(),Se(11,"div",11),y(),v(12,"label",12,13),tt(14),y()()),2&e){const r=Nt(2);Qe("mdc-form-field--align-end","before"==n.labelPosition),k(4),Qe("mdc-checkbox--selected",n.checked),T("checked",n.checked)("indeterminate",n.indeterminate)("disabled",n.disabled)("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex),ot("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby)("name",n.name)("value",n.value),k(7),T("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),k(1),T("for",n.inputId)}},dependencies:[wo],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})(),cP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})(),Oie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,Us,cP,xt,cP]}),t})();function Pie(t,i){if(1&t){const e=Je();v(0,"mat-checkbox",3),X("click",function(){return Me(e),Ae(q().optionClicked())}),E(1),y()}if(2&t){const e=i.$implicit;Wu("formControlName",e.display),k(1),It(" ",e.display," ")}}let Lie=(()=>{class t{constructor(e,n){this.terminologyService=e,this._formBuilder=n,this.selectionChange=new xe,this.checkboxes=this._formBuilder.group([]),this.present={display:"Known present (qualifier value)",system:"http://snomed.info/sct",code:"410515003"},this.absent={display:"Known absent (qualifier value)",system:"http://snomed.info/sct",code:"410516002"}}ngOnInit(){this.options=[{display:this.binding.title}],this.options?.forEach(e=>{this.checkboxes.addControl(e.display,this._formBuilder.control(!1))})}optionClicked(){let e=[];e.push({title:this.binding.title,code:this.binding.ecl,value:this.checkboxes.value[this.binding.title]?this.present:this.absent}),this.selectionChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Nr),b(PR))},t.\u0275cmp=Ve({type:t,selectors:[["app-checkbox-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:4,vars:3,consts:[[1,"check-group",3,"formGroup"],["class","check","labelPosition","before",3,"formControlName","click",4,"ngFor","ngForOf"],[1,"hint"],["labelPosition","before",1,"check",3,"formControlName","click"]],template:function(e,n){1&e&&(v(0,"form",0),H(1,Pie,2,2,"mat-checkbox",1),v(2,"span",2),E(3),y()()),2&e&&(T("formGroup",n.checkboxes),k(1),T("ngForOf",n.options),k(2),Xe(n.binding.note))},dependencies:[bo,rf,Co,Kh,Ws,af,sP],styles:["#hint[_ngcontent-%COMP%]{font-size:12px}.check-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:20px 0;align-items:flex-start}.check[_ngcontent-%COMP%]{margin:0}.hint[_ngcontent-%COMP%]{font-size:.8rem;color:#999;padding:0;margin:0 0 0 5px}"]}),t})(),Nie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new xe,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-integer-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","type","number","placeholder","Enter integer value...","pattern","^-?[0-9]\\d*$","title","Only integer values are allowed",3,"ngModel","ngModelChange"]],template:function(e,n){1&e&&(v(0,"mat-form-field",0)(1,"mat-label"),E(2),y(),v(3,"input",1),X("ngModelChange",function(o){return n.value=o})("ngModelChange",function(o){return n.onValueChange(o)}),y(),v(4,"mat-hint"),E(5),y()()),2&e&&(k(2),Xe(n.binding.title),k(1),T("ngModel",n.value),k(2),Xe(n.binding.note))},dependencies:[Da,ko,Yc,Kc,Ca,a0,Co,d0,Yo],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]}),t})(),Bie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new xe,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-decimal-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","type","number","placeholder","Enter decimal value...","pattern","^-?[0-9]*\\.?[0-9]+$","title","Only decimal values are allowed","step","any",3,"ngModel","ngModelChange"]],template:function(e,n){1&e&&(v(0,"mat-form-field",0)(1,"mat-label"),E(2),y(),v(3,"input",1),X("ngModelChange",function(o){return n.value=o})("ngModelChange",function(o){return n.onValueChange(o)}),y(),v(4,"mat-hint"),E(5),y()()),2&e&&(k(2),Xe(n.binding.title),k(1),T("ngModel",n.value),k(2),Xe(n.binding.note))},dependencies:[Da,ko,Yc,Kc,Ca,a0,Co,d0,Yo],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]}),t})();const Vie=["newPanel"];function Hie(t,i){if(1&t){const e=Je();v(0,"button",12),X("click",function(){Me(e);const r=q();return Ae(r.showRightContainer=!r.showRightContainer)}),E(1),y()}if(2&t){const e=q();k(1),It(" ",e.showRightContainer?"Close data panel":"Open data panel"," ")}}function Uie(t,i){1&t&&(v(0,"button",38),E(1," Download form "),y()),2&t&&(q(),T("matMenuTriggerFor",Nt(19)))}function zie(t,i){1&t&&(v(0,"mat-panel-description"),E(1," Click to add new binding "),y())}function $ie(t,i){if(1&t){const e=Je();v(0,"button",39),X("click",function(){let o;return Me(e),Ae(null==(o=q().newBindingForm.get("title"))?null:o.reset())}),v(1,"mat-icon"),E(2,"close"),y()()}}function jie(t,i){if(1&t&&(v(0,"mat-option",40),E(1),y()),2&t){const e=i.$implicit;T("value",e),k(1),It(" ",e," ")}}function Wie(t,i){if(1&t){const e=Je();v(0,"button",39),X("click",function(){let o;return Me(e),Ae(null==(o=q(2).newBindingForm.get("ecl"))?null:o.reset())}),v(1,"mat-icon"),E(2,"close"),y()()}}function Gie(t,i){if(1&t){const e=Je();v(0,"mat-form-field",17)(1,"mat-label"),E(2,"Answer options: ECL Expression"),y(),Se(3,"input",41),v(4,"a",42),X("click",function(){Me(e);const r=q();let o;return Ae(r.openEclBuilder(null==(o=r.newBindingForm.get("ecl"))?null:o.value,"ecl"))}),E(5,"ECL Builder"),y(),H(6,Wie,3,0,"button",19),v(7,"mat-error"),E(8),y()()}if(2&t){const e=q();let n;k(6),T("ngIf",null==(n=e.newBindingForm.get("ecl"))?null:n.value),k(2),Xe(e.getErrorMessage("ecl"))}}function qie(t,i){if(1&t&&(v(0,"mat-form-field",17),Se(1,"app-autocomplete-binding",43),v(2,"mat-error"),E(3),y()()),2&t){const e=q();k(1),T("binding",e.checkboxBinding),k(2),Xe(e.getErrorMessage("ecl"))}}function Xie(t,i){if(1&t){const e=Je();v(0,"button",39),X("click",function(){let o;return Me(e),Ae(null==(o=q(2).newBindingForm.get("note"))?null:o.reset())}),v(1,"mat-icon"),E(2,"close"),y()()}}function Qie(t,i){if(1&t&&(v(0,"mat-form-field",17)(1,"mat-label"),E(2,"Note"),y(),Se(3,"input",44),H(4,Xie,3,0,"button",19),v(5,"mat-error"),E(6),y()()),2&t){const e=q();let n;k(4),T("ngIf",null==(n=e.newBindingForm.get("note"))?null:n.value),k(2),Xe(e.getErrorMessage("note"))}}function Yie(t,i){if(1&t){const e=Je();v(0,"button",28),X("click",function(){return Me(e),Ae(q().addBinding())}),E(1,"Add binding"),y()}}function Kie(t,i){if(1&t){const e=Je();v(0,"button",28),X("click",function(){Me(e);const r=q();return r.addBinding(),Ae(r.clearOutput())}),E(1,"Update binding"),y()}}function Zie(t,i){if(1&t){const e=Je();v(0,"div",45)(1,"p",46),E(2),y(),v(3,"button",47),X("click",function(){return Me(e),Ae(q().titleEditMode=!0)}),v(4,"mat-icon"),E(5,"edit"),y()()()}if(2&t){const e=q();k(2),Xe(e.formTitle)}}const Jie=function(){return{standalone:!0}};function ene(t,i){if(1&t){const e=Je();v(0,"div",45)(1,"form",48)(2,"mat-form-field")(3,"mat-label"),E(4,"Title"),y(),v(5,"input",49),X("ngModelChange",function(r){return Me(e),Ae(q().formTitle=r)})("ngModelChange",function(){return Me(e),Ae(q().refreshFhirQuestionnaire())}),y(),v(6,"button",39),X("click",function(){return Me(e),Ae(q().formTitle="")}),v(7,"mat-icon"),E(8,"close"),y()()()(),v(9,"button",47),X("click",function(){return Me(e),Ae(q().titleEditMode=!1)}),v(10,"mat-icon"),E(11,"save"),y()()()}if(2&t){const e=q();k(5),T("ngModel",e.formTitle)("ngModelOptions",Ec(2,Jie))}}function tne(t,i){if(1&t){const e=Je();v(0,"app-autocomplete-binding",57),X("selectionChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function ine(t,i){if(1&t){const e=Je();v(0,"app-dropdown-binding",57),X("selectionChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function nne(t,i){if(1&t){const e=Je();v(0,"app-radios-binding",57),X("selectionChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function rne(t,i){if(1&t&&(v(0,"span",58),E(1),y()),2&t){const e=q().$implicit;k(1),Xe(e.title)}}function one(t,i){if(1&t){const e=Je();v(0,"app-textbox-binding",59),X("textChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function ane(t,i){if(1&t){const e=Je();v(0,"app-integer-binding",59),X("textChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function sne(t,i){if(1&t){const e=Je();v(0,"app-decimal-binding",59),X("textChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function cne(t,i){if(1&t){const e=Je();v(0,"app-checkbox-binding",57),X("selectionChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function lne(t,i){if(1&t&&(v(0,"button",60)(1,"mat-icon"),E(2,"info"),y()()),2&t){const e=q().$implicit;T("matMenuTriggerFor",Nt(14))("disabled","Text box"==e.type)}}function dne(t,i){if(1&t){const e=Je();v(0,"div",50)(1,"div",51)(2,"mat-icon",52),E(3,"drag_indicator"),y(),H(4,tne,1,1,"app-autocomplete-binding",53),H(5,ine,1,1,"app-dropdown-binding",53),H(6,nne,1,1,"app-radios-binding",53),H(7,rne,2,1,"span",54),H(8,one,1,1,"app-textbox-binding",55),H(9,ane,1,1,"app-integer-binding",55),H(10,sne,1,1,"app-decimal-binding",55),H(11,cne,1,1,"app-checkbox-binding",53),H(12,lne,3,2,"button",56),v(13,"mat-menu",null,2)(15,"span",3),X("click",function(r){return r.stopPropagation()}),v(16,"h4"),E(17,"Terminology binding"),y(),v(18,"pre"),E(19),y()()(),v(20,"button",47),X("click",function(){const o=Me(e).index;return Ae(q().bindings.splice(o,1))}),v(21,"mat-icon"),E(22,"delete"),y()(),v(23,"button",47),X("click",function(){const o=Me(e).index;return Ae(q().edit(o))}),v(24,"mat-icon"),E(25,"edit"),y()()()()}if(2&t){const e=i.$implicit;k(4),T("ngIf","Autocomplete"==e.type),k(1),T("ngIf","Select (Single)"==e.type||"Select (Multiple)"==e.type),k(1),T("ngIf","Options"==e.type),k(1),T("ngIf","Section header"==e.type),k(1),T("ngIf","Text box"==e.type),k(1),T("ngIf","Integer"==e.type),k(1),T("ngIf","Decimal"==e.type),k(1),T("ngIf","Checkbox"==e.type),k(1),T("ngIf","Section header"!=e.type),k(3),T("disableRipple",!0),k(4),Xe(e.ecl)}}function une(t,i){if(1&t){const e=Je();v(0,"div",64)(1,"button",65),X("click",function(){Me(e);const r=q(2);return Ae(r.saveOutput(r.outputStr))}),Se(2,"mat-icon",66),y(),v(3,"button",67),X("click",function(){Me(e);const r=q(2);return Ae(r.copyOutputToClipboard(r.outputStr))}),Se(4,"mat-icon",68),y()()}}const lP=function(){return{}};function hne(t,i){if(1&t&&(v(0,"div",61),H(1,une,5,0,"div",62),v(2,"textarea",63),E(3," "),y()()),2&t){const e=q();k(1),T("ngIf",e.showRightContainer),k(1),T("options",Ec(4,lP))("lang","json")("innerHTML",e.responseStr,qm)}}function fne(t,i){if(1&t){const e=Je();v(0,"div",64)(1,"button",65),X("click",function(){Me(e);const r=q(2);return Ae(r.saveOutput(r.fhirQuestionnaireStr))}),Se(2,"mat-icon",66),y(),v(3,"button",67),X("click",function(){Me(e);const r=q(2);return Ae(r.copyOutputToClipboard(r.fhirQuestionnaireStr))}),Se(4,"mat-icon",68),y()()}}function mne(t,i){if(1&t&&(v(0,"div",61),H(1,fne,5,0,"div",62),v(2,"textarea",63),E(3," "),y()()),2&t){const e=q();k(1),T("ngIf",e.showRightContainer),k(1),T("options",Ec(4,lP))("lang","json")("innerHTML",e.fhirQuestionnaireStr,qm)}}let pne=(()=>{class t{constructor(e,n,r){this.terminologyService=e,this.clipboard=n,this.dialog=r,this.formTitle="My new form",this.titleEditMode=!1,this.bindings=[],this.output={},this.outputStr="{}",this.response={},this.responseStr="{}",this.fhirQuestionnaire={},this.fhirQuestionnaireStr="{}",this.observableBinding={title:"Question code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)|",value:""},this.codeBinding={title:"Question code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)| OR << 404684003 |Clinical finding (finding)| OR << 71388002 |Procedure (procedure)|",value:""},this.checkboxBinding={title:"Checkbox code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)| OR << 404684003 |Clinical finding (finding)| OR << 71388002 |Procedure (procedure)|",value:""},this.example1={title:"Appendicitis data entry form (example)",bindings:[{title:"Diagnosis (type of appendicitis)",type:"Autocomplete",ecl:"<< 74400008 |Appendicitis|",value:"",note:"An autocomplete field to select between all descendants of appendicitis."},{title:"Clinical note",type:"Text box",ecl:"74400008 |Appendicitis|",value:"",note:"A text box for entering free text clinical information."},{title:"Appendicitis type",type:"Select (Single)",ecl:"<< 196781001 |Acute appendicitis with peritonitis (disorder)|",value:"",note:"A single selection dropdown field for a shorter selection of the type of appendicitis."},{title:"Appendicitis type (M)",type:"Select (Multiple)",ecl:"<< 196781001 |Acute appendicitis with peritonitis (disorder)|",value:"",note:"A multiple selection dropdown field for a shorter selection of the type of appendicitis."},{title:"Appendicectomy type",type:"Options",ecl:"<< 174036004 |Emergency appendectomy (procedure)|",value:"",note:"A radio buttons selector for the type of appendicectomy procedure."}]},this.newBindingForm=new Qd({title:new Br("",[qd.required,qd.maxLength(50)]),code:new Br("",[]),type:new Br("",[qd.required]),ecl:new Br("",[]),value:new Br("",[]),note:new Br("",[qd.maxLength(500)])}),this.indexInEdit=-1,this.panelOpenState=!1,this.maxSelectCount=50,this.maxOptionsCount=10,this.controlTypes=["Autocomplete","Select (Single)","Select (Multiple)","Options","Section header","Text box","Integer","Decimal","Checkbox"].sort((o,a)=>o.localeCompare(a)),this.showRightContainer=!1}get stateName(){return this.showRightContainer?"open":"closed"}addBinding(){var e=this;return Oi(function*(){if(e.newBindingForm.markAllAsTouched(),e.newBindingForm.invalid)return;const{title:n,code:r,type:o,ecl:a,value:s,note:c}=e.newBindingForm.controls;let l={title:n.value,code:r.value,type:o.value,ecl:a.value,value:s.value,note:c.value},d=!1;a.value?typeof l.type?.indexOf("Select")<"u"&&l.type?.indexOf("Select")>-1?(yield e.getEclPreview(a.value)).expansion.contains.length>e.maxSelectCount&&(d=!0,a.setErrors({selectTooManyResults:!0})):typeof l.type?.indexOf("Options")<"u"&&l.type?.indexOf("Options")>-1&&(yield e.getEclPreview(a.value)).expansion.contains.length>e.maxOptionsCount&&(d=!0,a.setErrors({optionsTooManyResults:!0})):"Section header"!=l.type&&"Text box"!=l.type&&"Integer"!=l.type&&"Decimal"!=l.type&&(d=!0,a.setErrors({required:!0})),!d&&(e.indexInEdit>-1?e.bindings[e.indexInEdit]=l:e.bindings.push(l),e.newBindingForm.reset(),e.newPanel.close(),e.indexInEdit=-1,setTimeout(()=>{e.refreshFhirQuestionnaire(),e.refreshResponse()},100))})()}refreshFhirQuestionnaire(){console.log("refreshFhirQuestionnaire"),this.fhirQuestionnaire={resourceType:"Questionnaire",title:this.formTitle,status:"draft",item:[]};for(let[e,n]of this.bindings.entries()){if("Section header"==n.type){let r={linkId:e+1,type:"display",text:n.title};n.code&&(r.code=[{system:"http://snomed.info/sct",code:n.code.code,display:n.code.display}]),this.fhirQuestionnaire.item.push(r)}if("Select (Single)"==n.type||"Options"==n.type){let r={linkId:e+1,type:"choice",extension:[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"}],text:n.title,answerValueSet:`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(n.ecl)}`};n.code&&(r.code=[{system:"http://snomed.info/sct",code:n.code.code,display:n.code.display}]),this.fhirQuestionnaire.item.push(r)}if("Select (Multiple)"==n.type){let r={linkId:e+1,type:"choice",repeats:!0,extension:[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"}],text:n.title,answerValueSet:`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(n.ecl)}`};n.code&&(r.code=[{system:"http://snomed.info/sct",code:n.code.code,display:n.code.display}]),this.fhirQuestionnaire.item.push(r)}if("Autocomplete"==n.type){let r={linkId:e+1,type:"choice",extension:[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"},{url:"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",valueCodeableConcept:{coding:[{system:"http://hl7.org/fhir/questionnaire-item-control",code:"autocomplete",display:"Auto-complete"}]}}],text:n.title,answerValueSet:`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(n.ecl)}`};n.code&&(r.code=[{system:"http://snomed.info/sct",code:n.code.code,display:n.code.display}]),this.fhirQuestionnaire.item.push(r)}if("Text box"==n.type){let r={linkId:e+1,type:"text",text:n.title};n.code&&(r.code=[{system:"http://snomed.info/sct",code:n.code.code,display:n.code.display}]),this.fhirQuestionnaire.item.push(r)}if("Checkbox"==n.type){let r={linkId:e+1,type:"boolean",text:n.title,code:[{system:"http://snomed.info/sct",code:n.ecl.code,display:n.ecl.display}]};n.code&&(r.code=[{system:"http://snomed.info/sct",code:n.code.code,display:n.code.display}]),this.fhirQuestionnaire.item.push(r)}}this.fhirQuestionnaireStr=JSON.stringify(this.fhirQuestionnaire,null,2)}getEclPreview(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet(e,"")).pipe(Ke(o=>o)))})()}edit(e){this.indexInEdit=e;const n=this.bindings[e];this.newBindingForm.setValue({title:n.title,code:n.code,type:n.type,ecl:n.ecl,value:n.value,note:n.note}),this.newPanel.open()}onDrop(e){$1(this.bindings,e.previousIndex,e.currentIndex)}getErrors(e){const n=this.newBindingForm.get(e);return n?n.errors:null}getErrorMessage(e){const n=this.getErrors(e);if(n){if(n.required)return"This field is required";if(n.maxlength)return`This field must be less than ${n.maxlength.requiredLength} characters`;if(n.selectTooManyResults)return`Too many results (Max = ${this.maxSelectCount})`;if(n.optionsTooManyResults)return`Too many results (Max = ${this.maxOptionsCount})`}return null}refreshResponse(){console.log("refreshResponse"),this.response={};for(let e of this.bindings)this.response[e.title]={},e.code&&(this.response[e.title].code=e.code);for(let[e,n]of Object.entries(this.output))this.output[e].code&&(this.response[e].code=this.output[e].code),this.output[e].value&&(this.response[e].value=this.output[e].value);this.responseStr=JSON.stringify(this.response,null,2)}optionSelected(e,n,r){this.output[e]={code:n,value:r},n||delete this.output[e].code,this.outputStr=JSON.stringify(this.output,null,2),this.refreshResponse()}loadExample1(){this.formTitle=this.example1.title,this.bindings=this.example1.bindings,this.refreshFhirQuestionnaire(),this.clearOutput(),this.refreshResponse()}cancelEdit(){this.newBindingForm.reset(),this.newPanel.close(),this.indexInEdit=-1}clear(){this.bindings=[],this.clearOutput(),this.newBindingForm.reset(),this.formTitle="My new form",this.showRightContainer=!1}clearOutput(){this.output={},this.outputStr="{}";const e=JSON.parse(JSON.stringify(this.bindings));this.bindings=[],this.bindings=e}saveForm(){var e=new Blob([JSON.stringify({title:this.formTitle,bindings:this.bindings},null,2)],{type:"text/plain;charset=utf-8"});(0,Zc.saveAs)(e,`${this.formTitle}.json`)}saveOutput(e){var n=new Blob([e],{type:"text/plain;charset=utf-8"});(0,Zc.saveAs)(n,`${this.formTitle}-fhir.json`)}copyOutputToClipboard(e){this.clipboard.copy(e)}uploadFile(e){if(1!==e.target.files.length)console.error("No file selected");else{const n=new FileReader;n.onloadend=r=>{if(n.result){const o=JSON.parse(n.result?.toString());Array.isArray(o)?(this.bindings=o,this.formTitle="My new form"):(this.bindings=[],this.bindings=o.bindings,this.formTitle=o.title),this.clearOutput(),this.refreshResponse(),this.refreshFhirQuestionnaire()}},n.readAsText(e.target.files[0])}}openEclBuilder(e,n){this.dialog.open($te,{data:{ecl:e},width:"80%",height:"80%"}).afterClosed().subscribe(o=>{if(o){const a=this.newBindingForm.get(n);a&&a.setValue(o.ecl)}})}}return t.\u0275fac=function(e){return new(e||t)(b(Nr),b(aO),b(Kd))},t.\u0275cmp=Ve({type:t,selectors:[["app-bindings-sandbox"]],viewQuery:function(e,n){if(1&e&&st(Vie,5),2&e){let r;ye(r=we())&&(n.newPanel=r.first)}},decls:79,vars:24,consts:[["id","main-panel"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",3,"disableRipple","click"],[1,"action-button"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["hidden","","type","file","id","file",3,"change"],["fileInput",""],["mat-flat-button","","color","accent",3,"matMenuTriggerFor",4,"ngIf"],[1,"wide-menu"],["demosMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","accent",3,"click"],[1,"editPanel",3,"opened","closed"],["newPanel",""],[4,"ngIf"],[1,"row",3,"formGroup"],[1,"input-field"],["matInput","","type","text","formControlName","title","placeholder","Enter title..."],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"input-field","autocomplete-field"],["formControlName","code",1,"grow",3,"binding"],["formControlName","type"],[3,"value",4,"ngFor","ngForOf"],["class","input-field",4,"ngIf"],[1,"row"],[1,"grow"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["mat-flat-button","","color","primary",3,"click"],["class","compact-row-container",4,"ngIf"],[1,"row-container"],[1,"row-container-item"],["cdkDropList","",3,"cdkDropListDropped"],["class","output-panel","cdkDrag","",4,"ngFor","ngForOf"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Data collected from form"],["class","output",4,"ngIf"],["label","FHIR Questionnaire"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"value"],["matInput","","type","text","formControlName","ecl","placeholder","Enter ECL..."],["href","javascript:void(0)",1,"top-right-link",3,"click"],["formControlName","ecl",1,"grow",3,"binding"],["matInput","","type","text","formControlName","note","placeholder","Enter a description..."],[1,"compact-row-container"],[1,"title"],["mat-icon-button","","color","primary",1,"tool",3,"click"],[1,"row","form-title"],["matInput","","type","text","placeholder","Enter title...",3,"ngModel","ngModelOptions","ngModelChange"],["cdkDrag","",1,"output-panel"],[1,"row","control"],["cdkDragHandle","",1,"tool","drag-handle"],["class","grow",3,"binding","selectionChange",4,"ngIf"],["class","title grow",4,"ngIf"],["class","grow",3,"binding","textChange",4,"ngIf"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor","disabled",4,"ngIf"],[1,"grow",3,"binding","selectionChange"],[1,"title","grow"],[1,"grow",3,"binding","textChange"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor","disabled"],[1,"output"],["id","save",4,"ngIf"],["highlight-js","","id","output","wrap","soft",3,"options","lang","innerHTML"],["id","save"],["mat-icon-button","","matTooltip","Download",3,"click"],["fontIcon","cloud_download"],["mat-icon-button","","matTooltip","Copy",3,"click"],["fontIcon","content_copy"]],template:function(e,n){if(1&e){const r=Je();v(0,"div",0)(1,"h3"),E(2,"Terminology Bindings Sandbox "),v(3,"button",1)(4,"mat-icon"),E(5,"info"),y()(),v(6,"mat-menu",null,2)(8,"span",3),X("click",function(a){return a.stopPropagation()}),v(9,"h4"),E(10,"Terminology Bindings Sandbox"),y(),v(11,"p"),E(12,"This is a sandbox for creating terminology bindings, designed to support education activities."),y()()()(),v(13,"div",4),H(14,Hie,2,1,"button",5),v(15,"input",6,7),X("change",function(a){return n.uploadFile(a)}),y(),H(17,Uie,2,1,"button",8),v(18,"mat-menu",9,10)(20,"button",11),X("click",function(){return n.saveForm()}),E(21,"Download"),y(),v(22,"button",11),X("click",function(){return n.saveOutput(n.fhirQuestionnaireStr)}),E(23,"Download as FHIR Questionnaire"),y()(),v(24,"button",12),X("click",function(){return Me(r),Ae(Nt(16).click())}),E(25,"Upload form"),y(),v(26,"button",12),X("click",function(){return n.loadExample1()}),E(27,"Example"),y(),v(28,"button",12),X("click",function(){return n.clear()}),E(29,"Clear"),y()(),v(30,"mat-expansion-panel",13,14),X("opened",function(){return n.panelOpenState=!0})("closed",function(){return n.panelOpenState=!1}),v(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"h4"),E(35,"New binding:"),y()(),H(36,zie,2,0,"mat-panel-description",15),y(),v(37,"div")(38,"form",16)(39,"mat-form-field",17)(40,"mat-label"),E(41,"Question text"),y(),Se(42,"input",18),H(43,$ie,3,0,"button",19),v(44,"mat-error"),E(45),y()(),v(46,"mat-form-field",20),Se(47,"app-autocomplete-binding",21),v(48,"mat-error"),E(49),y()(),v(50,"mat-form-field",17)(51,"mat-label"),E(52,"Answer Type"),y(),v(53,"mat-select",22),H(54,jie,2,2,"mat-option",23),y(),v(55,"mat-error"),E(56),y()(),H(57,Gie,9,2,"mat-form-field",24),H(58,qie,4,2,"mat-form-field",24),H(59,Qie,7,2,"mat-form-field",24),y(),Se(60,"br"),v(61,"div",25),Se(62,"span",26),H(63,Yie,2,0,"button",27),H(64,Kie,2,0,"button",27),v(65,"button",28),X("click",function(){return n.cancelEdit()}),E(66,"Cancel"),y()()()(),H(67,Zie,6,1,"div",29),H(68,ene,12,3,"div",29),v(69,"div",30)(70,"div",31)(71,"div",32),X("cdkDropListDropped",function(a){return n.onDrop(a)}),H(72,dne,26,11,"div",33),y()(),v(73,"div",31)(74,"mat-tab-group",34)(75,"mat-tab",35),H(76,hne,4,5,"div",36),y(),v(77,"mat-tab",37),H(78,mne,4,5,"div",36),y()()()()()}if(2&e){const r=Nt(7);let o;k(3),T("matMenuTriggerFor",r),k(5),T("disableRipple",!0),k(6),T("ngIf",n.bindings.length),k(3),T("ngIf",n.bindings.length),k(19),T("ngIf",!n.panelOpenState),k(2),T("formGroup",n.newBindingForm),k(5),T("ngIf",null==(o=n.newBindingForm.get("title"))?null:o.value),k(2),Xe(n.getErrorMessage("title")),k(2),T("binding",n.codeBinding),k(2),Xe(n.getErrorMessage("code")),k(5),T("ngForOf",n.controlTypes),k(2),Xe(n.getErrorMessage("type")),k(1),T("ngIf","Section header"!=n.newBindingForm.controls.type.value&&"Text box"!=n.newBindingForm.controls.type.value&&"Checkbox"!=n.newBindingForm.controls.type.value&&"Integer"!=n.newBindingForm.controls.type.value&&"Decimal"!=n.newBindingForm.controls.type.value),k(1),T("ngIf","Checkbox"==n.newBindingForm.controls.type.value),k(1),T("ngIf","Section header"!=n.newBindingForm.controls.type.value),k(4),T("ngIf",-1==n.indexInEdit),k(1),T("ngIf",n.indexInEdit>-1),k(3),T("ngIf",!n.titleEditMode),k(1),T("ngIf",n.titleEditMode),k(2),T("@growShrink",n.stateName),k(2),T("ngForOf",n.bindings),k(1),T("@openClose",n.stateName),k(3),T("ngIf",n.bindings.length>0),k(2),T("ngIf",n.bindings.length>0)}},dependencies:[bo,fn,N1,q1,Q1,OO,Lr,os,Qo,jc,wa,Wc,Da,ko,NR,VR,zs,Kc,rf,Ca,Co,Kh,Ws,af,g0,sf,cf,Yo,Xc,lf,tP,rie,aie,oie,p0,lie,yie,wie,Lie,Nie,Bie],styles:["#main-panel[_ngcontent-%COMP%]{padding:10px}h3[_ngcontent-%COMP%]{margin-top:0}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center;gap:10px}.grow[_ngcontent-%COMP%]{flex-grow:4}.input-field[_ngcontent-%COMP%]{width:calc(50% - 5px)}mat-hint[_ngcontent-%COMP%], mat-error[_ngcontent-%COMP%]{font-size:12px}.editPanel[_ngcontent-%COMP%]{width:calc(50% - 5px);margin:5px 5px 25px;padding:10px;border:1px solid #cccccc00;border-radius:5px;background-color:#a0c8e5}.control[_ngcontent-%COMP%]{margin-bottom:30px}.output-panel[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%] .tool[_ngcontent-%COMP%]{opacity:0;transition:opacity .5s}.row[_ngcontent-%COMP%]:hover .tool[_ngcontent-%COMP%]{opacity:1}.drag-handle[_ngcontent-%COMP%]{cursor:move;color:#616161}.title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;margin-bottom:10px;margin-left:2rem}.action-button[_ngcontent-%COMP%]{position:absolute;right:0;margin-right:20px}.action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:5px}.row-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.compact-row-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:1rem}.row-container-item[_ngcontent-%COMP%]{width:100%;padding:10px}.output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative;margin:2rem}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}.top-right-link[_ngcontent-%COMP%]{position:absolute;top:5px;right:0;font-size:smaller}.form-title[_ngcontent-%COMP%]{margin-left:1rem}.mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding:0!important}"],data:{animation:[vn("openClose",[ii("open",rt({opacity:1,width:"50%"})),ii("closed",rt({opacity:0,width:"0"})),ai("open <=> closed",[fi("0.5s")])]),vn("growShrink",[ii("open",rt({width:"50%"})),ii("closed",rt({width:"100%"})),ai("open <=> closed",[fi("0.5s")])])]}}),t})(),gne=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ve({type:t,selectors:[["app-prescription-main"]],decls:2,vars:0,template:function(e,n){1&e&&(v(0,"p"),E(1,"prescription-main works!, no?"),y())}}),t})();const _ne=["mat-sort-header",""];function bne(t,i){if(1&t){const e=Je();v(0,"div",3),X("@arrowPosition.start",function(){return Me(e),Ae(q()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return Me(e),Ae(q()._disableViewStateAnimation=!1)}),Se(1,"div",4),v(2,"div",5),Se(3,"div",6)(4,"div",7)(5,"div",8),y()()}if(2&t){const e=q();T("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),k(2),T("@indicator",e._getArrowDirectionState()),k(1),T("@leftPointer",e._getArrowDirectionState()),k(1),T("@rightPointer",e._getArrowDirectionState())}}const vne=["*"],dP=new ae("MAT_SORT_DEFAULT_OPTIONS"),xne=Yq(rs(class{}));let Jc=(()=>{class t extends xne{get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(e)}constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new ke,this.start="asc",this._direction="",this.sortChange=new xe}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let r=function yne(t,i){let e=["asc","desc"];return"desc"==t&&e.reverse(),i||e.push(""),e}(e.start||this.start,e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(b(dP,8))},t.\u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[pe,Ei]}),t})();const qs=qq.ENTERING+" "+Gq.STANDARD_CURVE,Zd={indicator:vn("indicator",[ii("active-asc, asc",rt({transform:"translateY(0px)"})),ii("active-desc, desc",rt({transform:"translateY(10px)"})),ai("active-asc <=> active-desc",fi(qs))]),leftPointer:vn("leftPointer",[ii("active-asc, asc",rt({transform:"rotate(-45deg)"})),ii("active-desc, desc",rt({transform:"rotate(45deg)"})),ai("active-asc <=> active-desc",fi(qs))]),rightPointer:vn("rightPointer",[ii("active-asc, asc",rt({transform:"rotate(45deg)"})),ii("active-desc, desc",rt({transform:"rotate(-45deg)"})),ai("active-asc <=> active-desc",fi(qs))]),arrowOpacity:vn("arrowOpacity",[ii("desc-to-active, asc-to-active, active",rt({opacity:1})),ii("desc-to-hint, asc-to-hint, hint",rt({opacity:.54})),ii("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",rt({opacity:0})),ai("* => asc, * => desc, * => active, * => hint, * => void",fi("0ms")),ai("* <=> *",fi(qs))]),arrowPosition:vn("arrowPosition",[ai("* => desc-to-hint, * => desc-to-active",fi(qs,Sg([rt({transform:"translateY(-25%)"}),rt({transform:"translateY(0)"})]))),ai("* => hint-to-desc, * => active-to-desc",fi(qs,Sg([rt({transform:"translateY(0)"}),rt({transform:"translateY(25%)"})]))),ai("* => asc-to-hint, * => asc-to-active",fi(qs,Sg([rt({transform:"translateY(25%)"}),rt({transform:"translateY(0)"})]))),ai("* => hint-to-asc, * => active-to-asc",fi(qs,Sg([rt({transform:"translateY(0)"}),rt({transform:"translateY(-25%)"})]))),ii("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",rt({transform:"translateY(0)"})),ii("hint-to-desc, active-to-desc, desc",rt({transform:"translateY(-25%)"})),ii("hint-to-asc, active-to-asc, asc",rt({transform:"translateY(25%)"}))]),allowChildren:vn("allowChildren",[ai("* <=> *",[Tg("@*",Eg(),{optional:!0})])])};let S0=(()=>{class t{constructor(){this.changes=new ke}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Cne={provide:S0,deps:[[new sa,new vc,S0]],useFactory:function wne(t){return t||new S0}},kne=rs(class{});let uP=(()=>{class t extends kne{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(e)}constructor(e,n,r,o,a,s,c,l){super(),this._intl=e,this._changeDetectorRef=n,this._sort=r,this._columnDef=o,this._focusMonitor=a,this._elementRef=s,this._ariaDescriber=c,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",l?.arrowPosition&&(this.arrowPosition=l?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const n=!!e;n!==this._showIndicatorHint&&(this._setIndicatorHintVisible(n),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=Vi(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(b(S0),b(Gt),b(Jc,8),b("MAT_SORT_HEADER_COLUMN_DEF",8),b(yo),b(Fe),b(SI,8),b(dP,8))},t.\u0275cmp=Ve({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,n){1&e&&X("click",function(){return n._handleClick()})("keydown",function(o){return n._handleKeydown(o)})("mouseenter",function(){return n._setIndicatorHintVisible(!0)})("mouseleave",function(){return n._setIndicatorHintVisible(!1)}),2&e&&(ot("aria-sort",n._getAriaSortAttribute()),Qe("mat-sort-header-disabled",n._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[pe],attrs:_ne,ngContentSelectors:vne,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,n){1&e&&(vi(),v(0,"div",0)(1,"div",1),tt(2),y(),H(3,bne,6,6,"div",2),y()),2&e&&(Qe("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"===n.arrowPosition),ot("tabindex",n._isDisabled()?null:0)("role",n._isDisabled()?null:"button"),k(3),T("ngIf",n._renderArrow()))},dependencies:[fn],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Zd.indicator,Zd.leftPointer,Zd.rightPointer,Zd.arrowOpacity,Zd.arrowPosition,Zd.allowChildren]},changeDetection:0}),t})(),Dne=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[Cne],imports:[nr,xt]}),t})(),Sne=(()=>{class t{saveItem(e,n){localStorage.setItem(e,n)}getItem(e){return localStorage.getItem(e)}removeItem(e){localStorage.removeItem(e)}isLocalStorageSupported(){try{const e="__test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mf=(()=>{class t{constructor(e,n){this.http=e,this.storageService=n,this.baseUrlSubject=new Vn("https://hapi.fhir.org/baseR4"),this.baseUrl$=this.baseUrlSubject.asObservable(),this.userTagSubject=new Vn(""),this.userTag$=this.userTagSubject.asObservable(),this.initialize()}initialize(){if(this.storageService.isLocalStorageSupported()){const e=this.storageService.getItem("baseUrl");e&&this.baseUrlSubject.next(e);const n=this.storageService.getItem("userTag");n&&this.userTagSubject.next(n)}}setBaseUrl(e){this.baseUrlSubject.next(e),this.storageService.saveItem("baseUrl",e)}getBaseUrl(){return this.baseUrlSubject.getValue()}setUserTag(e){this.userTagSubject.next(e),this.storageService.saveItem("userTag",e)}getUserTag(){return this.userTagSubject.getValue()}postQuestionnaire(e){return this.http.post(`${this.baseUrlSubject.value}/Questionnaire`,e)}getQuestionnairesByTag(e){return this.http.get(`${this.baseUrlSubject.value}/Questionnaire?_tag=${e}`)}tagQuestionnaire(e,n){return this.http.post(`${this.baseUrlSubject.value}/Questionnaire/${e}/$meta-add`,{resourceType:"Parameters",parameter:[{name:"meta",valueMeta:{tag:[{system:"http://snomed.org/tags",code:n}]}}]})}deleteQuestionnaire(e){return this.http.delete(`${this.baseUrlSubject.value}/Questionnaire/${e}`)}updateOrCreateQuestionnaire(e,n){return e.id?this.http.put(`${this.baseUrlSubject.value}/Questionnaire?_id=${e.id}&_tag=${n}`,e).pipe(pn(o=>404===o.status?this.postQuestionnaire(e):Rc(o))):this.postQuestionnaire(e)}}return t.\u0275fac=function(e){return new(e||t)(G(Ns),G(Sne))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ene(t,i){if(1&t&&(v(0,"mat-option",15),E(1),y()),2&t){const e=i.$implicit;T("value",e),k(1),It(" ",e.title," ")}}function Tne(t,i){1&t&&Se(0,"mat-spinner",16)}function Mne(t,i){if(1&t){const e=Je();v(0,"div",17)(1,"span",18),E(2,"\u2261"),y(),E(3),v(4,"button",19),X("click",function(){const o=Me(e).index;return Ae(q().deleteQuestionnaire(o))}),v(5,"mat-icon"),E(6,"delete"),y()()()}if(2&t){const e=i.$implicit;k(3),It(" ",e.title," ")}}let hP=(()=>{class t{constructor(e,n,r,o){this.fb=e,this.fhirService=n,this.data=r,this.dialogRef=o,this.allQuestionnaires=[],this.availableQuestionnaires=[],this.addedQuestionnaires=[],this.userTag="",this.loading=!1}ngOnInit(){this.questionnaireForm=this.fb.group({selectedQuestionnaire:[{value:"",disabled:!0}],assignedName:[{value:"",disabled:!0}]}),this.data&&(this.addedQuestionnaires=this.data.questionnaires,this.questionnaireForm.get("assignedName")?.setValue(this.data.title)),this.questionnaireForm.get("selectedQuestionnaire"),this.userTag=this.fhirService.getUserTag(),this.loadAvailableQuestionnaires()}updateAvailableQuestionnaires(){this.availableQuestionnaires=this.addedQuestionnaires?this.allQuestionnaires.filter(e=>!this.addedQuestionnaires.some(n=>n.id===e.id)):this.allQuestionnaires,this.availableQuestionnaires=this.availableQuestionnaires.filter(e=>!e.extension||!e.extension.some(n=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===n.url&&"assemble-root"===n.valueCode))}loadAvailableQuestionnaires(){this.loading=!0,this.fhirService.getQuestionnairesByTag(this.userTag).subscribe(e=>{this.allQuestionnaires=e.entry.map(n=>n.resource),this.allQuestionnaires.sort((n,r)=>n.title.localeCompare(r.title)),this.updateAvailableQuestionnaires(),this.loading=!1,this.questionnaireForm?.get("selectedQuestionnaire")?.enable(),this.questionnaireForm?.get("assignedName")?.enable()})}addQuestionnaire(){const e=this.questionnaireForm.value;e.selectedQuestionnaire&&(this.addedQuestionnaires.push({...e.selectedQuestionnaire,assignedName:e.assignedName}),this.questionnaireForm.get("selectedQuestionnaire")?.reset(),this.updateAvailableQuestionnaires())}drop(e){$1(this.addedQuestionnaires,e.previousIndex,e.currentIndex)}deleteQuestionnaire(e){e>-1&&(this.addedQuestionnaires.splice(e,1),this.updateAvailableQuestionnaires())}isSaveDisabled(){return!this.questionnaireForm.get("assignedName")?.value||!this.addedQuestionnaires.length}closeModal(){this.dialogRef.close({title:this.questionnaireForm.get("assignedName")?.value,questionnaires:this.addedQuestionnaires})}}return t.\u0275fac=function(e){return new(e||t)(b(PR),b(mf),b(C0),b(Gs))},t.\u0275cmp=Ve({type:t,selectors:[["app-create-root-module"]],decls:26,vars:6,consts:[[1,"form-layout",3,"formGroup"],[1,"form-row"],[1,"full-width"],["matInput","","formControlName","assignedName"],[1,"half-width"],["formControlName","selectedQuestionnaire"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",1,"add-button",3,"disabled","click"],["diameter","35","class","loading-spinner",4,"ngIf"],[1,"questionnaire-list"],[1,"list",3,"cdkDropListDropped"],["cdkDrag","","class","cdk-drag",4,"ngFor","ngForOf"],[1,"button-container"],["mat-flat-button","","color","primary","mat-dialog-close",""],["mat-flat-button","","color","accent",3,"disabled","click"],[3,"value"],["diameter","35",1,"loading-spinner"],["cdkDrag","",1,"cdk-drag"],[1,"drag-handle"],["mat-icon-button","","aria-label","Delete questionnaire",3,"click"]],template:function(e,n){1&e&&(v(0,"mat-dialog-content")(1,"h2"),E(2,"Create a modular Questionnaire"),y(),v(3,"form",0)(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),E(7,"Assign Name"),y(),Se(8,"input",3),y()(),v(9,"div",1)(10,"mat-form-field",4)(11,"mat-label"),E(12,"Select Child Questionnaire"),y(),v(13,"mat-select",5),H(14,Ene,2,2,"mat-option",6),y()(),v(15,"button",7),X("click",function(){return n.addQuestionnaire()}),E(16,"Add questionnaire"),y(),H(17,Tne,1,0,"mat-spinner",8),y()(),v(18,"div",9)(19,"cdk-drop-list",10),X("cdkDropListDropped",function(o){return n.drop(o)}),H(20,Mne,7,1,"div",11),y()()(),v(21,"mat-dialog-actions",12)(22,"button",13),E(23,"Cancel"),y(),v(24,"button",14),X("click",function(){return n.closeModal()}),E(25,"Save"),y()()),2&e&&(k(3),T("formGroup",n.questionnaireForm),k(11),T("ngForOf",n.availableQuestionnaires),k(1),T("disabled",n.loading),k(2),T("ngIf",n.loading),k(3),T("ngForOf",n.addedQuestionnaires),k(4),T("disabled",n.isSaveDisabled()||n.loading))},dependencies:[bo,fn,q1,Q1,Lr,os,Qo,Da,ko,zs,Bd,Kc,rf,Ca,Co,Kh,Ws,af,cf,ff,k0,D0],styles:[".questionnaire-list[_ngcontent-%COMP%]{width:100%;max-height:400px;overflow:auto;border:1px solid #ccc;border-radius:4px;background-color:#f9f9f9;padding:10px}.list[_ngcontent-%COMP%] .cdk-drag[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#fff;margin-bottom:10px;padding:10px;display:flex;align-items:center;justify-content:left;box-shadow:0 2px 4px #0000001a}.drag-handle[_ngcontent-%COMP%]{cursor:move;margin-right:15px;font-size:20px;color:#666}.cdk-drag-preview[_ngcontent-%COMP%]{background-color:#e0e0e0}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.form-layout[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:15px}.form-layout[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-layout[_ngcontent-%COMP%] .half-width[_ngcontent-%COMP%]{width:50%;margin-right:15px}"]}),t})(),fP=(()=>{class t{constructor(e,n){this.http=e,this.fhirService=n}generateRootQuestionnaire(e,n){var r=this;return Oi(function*(){try{let a=yield qo(r.http.get("assets/questionnaires/root-questionnaire-template.json"));a.title=e;let s=0,c=r.fhirService.getBaseUrl();return r.fhirService.getUserTag(),n.forEach(d=>{s++,d.url=c+"/Questionnaire/"+d.id,a.item.push({linkId:s.toString(),text:d.title,type:"group",required:!1,item:[{extension:[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire",valueCanonical:d.url}],linkId:s.toString()+".1",text:"Unable to resolve sub-questionnaire",type:"display"}]})}),a}catch(o){throw console.error("Error generating root questionnaire:",o),o}})()}getRootQuestionnaireData(e){var n=this;return Oi(function*(){if(!e||!Array.isArray(e.item))throw new Error("Invalid root questionnaire");const r=e.title,o=e.item.filter(s=>"group"===s.type&&s.item&&Array.isArray(s.item)).flatMap(s=>s.item).map(function(){var s=Oi(function*(c){const l=c.extension?.find(d=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===d.url);return l?n.getQuestionnaireFromUrl(l.valueCanonical):null});return function(c){return s.apply(this,arguments)}}());return{title:r,questionnaires:(yield Promise.all(o)).filter(s=>null!==s)}})()}checkForAssembleRoot(e){return!!(e&&e.extension&&Array.isArray(e.extension))&&e.extension.some(n=>"assemble-root"===n.valueCode)}assembleQuestionnaire(e){var n=this;return Oi(function*(){if(e=JSON.parse(JSON.stringify(e)),!n.checkForAssembleRoot(e))return null;for(let r of e.item)if("group"==r.type){r.extension=[];for(let o of r.item)if(o.extension&&Array.isArray(o.extension))for(let a of o.extension)if("http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===a.url){let s=yield n.getQuestionnaireFromUrl(a.valueCanonical);s&&(r.item=s.item),r.extension||(r.extension=[]),r.extension.push({url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",valueCanonical:a.valueCanonical})}}return e.extension=e.extension.filter(r=>"assemble-root"!==r.valueCode),e})()}disassembleQuestionnaire(e){var n=this;return Oi(function*(){if(!e||!e.item||!Array.isArray(e.item))throw new Error("Invalid root questionnaire");const r=e.title,o=[];for(const a of e.item)if("group"===a.type&&a.extension&&Array.isArray(a.extension)){const s=a.extension.find(c=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom"===c.url);if(s){const c=s.valueCanonical,l=yield n.getQuestionnaireFromUrl(c);l&&o.push(l)}}return{title:r,questionnaires:o}})()}getQuestionnaireFromUrl(e){var n=this;return Oi(function*(){try{return yield qo(n.http.get(e))}catch(r){return console.error("Error fetching questionnaire:",r),null}})()}}return t.\u0275fac=function(e){return new(e||t)(G(Ns),G(mf))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ane(t,i){1&t&&(v(0,"th",17),E(1," Title "),y())}function Ine(t,i){if(1&t&&(v(0,"td",18),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.title," ")}}function Fne(t,i){1&t&&(v(0,"th",17),E(1," Status "),y())}const Rne=function(t){return["status-pill",t]};function One(t,i){if(1&t&&(v(0,"td",18)(1,"span",19),E(2),pp(3,"uppercase"),y()()),2&t){const e=i.$implicit;k(1),T("ngClass",Bv(4,Rne,e.status)),k(1),Xe(Vv(3,2,e.status))}}function Pne(t,i){1&t&&(v(0,"th",17),E(1," Version "),y())}function Lne(t,i){if(1&t&&(v(0,"td",18),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.meta.versionId," ")}}function Nne(t,i){1&t&&(v(0,"th",17),E(1," Type "),y())}const Bne=function(){return["status-pill","active"]};function Vne(t,i){1&t&&(v(0,"span",19),E(1,"QUESTIONNAIRE"),y()),2&t&&T("ngClass",Ec(1,Bne))}const Hne=function(){return["status-pill","draft"]};function Une(t,i){1&t&&(v(0,"span",19),E(1,"MODULAR ROOT"),y()),2&t&&T("ngClass",Ec(1,Hne))}function zne(t,i){if(1&t&&(v(0,"td",18),H(1,Vne,2,2,"span",20),H(2,Une,2,2,"span",20),y()),2&t){const e=i.$implicit,n=q();k(1),T("ngIf",!n.isRootQuestionnaire(e)),k(1),T("ngIf",n.isRootQuestionnaire(e))}}function $ne(t,i){1&t&&(v(0,"th",21),E(1," Actions "),y())}function jne(t,i){if(1&t){const e=Je();v(0,"button",30),X("click",function(){Me(e);const r=q().$implicit;return Ae(q().validate(r))}),v(1,"mat-icon"),E(2,"done"),y()()}if(2&t){const e=q().$implicit;T("disabled",q().isRootQuestionnaire(e))}}function Wne(t,i){if(1&t){const e=Je();v(0,"button",31),X("click",function(){Me(e);const r=q().$implicit;return Ae(q().assemble(r))}),v(1,"mat-icon"),E(2,"build"),y()()}}function Gne(t,i){if(1&t){const e=Je();v(0,"button",32),X("click",function(){Me(e);const r=q().$implicit;return Ae(q().preview(r))}),v(1,"mat-icon"),E(2,"visibility"),y()()}}function qne(t,i){if(1&t){const e=Je();v(0,"button",33),X("click",function(){Me(e);const r=q().$implicit;return Ae(q().openInNewTab(r))}),v(1,"mat-icon"),E(2,"open_in_new"),y()()}}function Xne(t,i){if(1&t){const e=Je();v(0,"button",34),X("click",function(){Me(e);const r=q().$implicit;return Ae(q().editQuestionnaire(r))}),v(1,"mat-icon"),E(2,"edit"),y()()}}function Qne(t,i){if(1&t){const e=Je();v(0,"button",35),X("click",function(){Me(e);const r=q().$implicit;return Ae(q().openModularQuestionnaireModal(r))}),v(1,"mat-icon"),E(2,"edit"),y()()}}function Yne(t,i){if(1&t){const e=Je();v(0,"td",18),H(1,jne,3,1,"button",22),H(2,Wne,3,0,"button",23),H(3,Gne,3,0,"button",24),H(4,qne,3,0,"button",25),v(5,"button",26),X("click",function(){const o=Me(e).$implicit;return Ae(q().saveQuestionnaire(o))}),v(6,"mat-icon"),E(7,"cloud_download"),y()(),H(8,Xne,3,0,"button",27),H(9,Qne,3,0,"button",28),v(10,"button",29),X("click",function(){const o=Me(e).$implicit;return Ae(q().deleteQuestionnaire(o))}),v(11,"mat-icon"),E(12,"delete"),y()()()}if(2&t){const e=i.$implicit,n=q();k(1),T("ngIf",n.config.validate),k(1),T("ngIf",n.isRootQuestionnaire(e)),k(1),T("ngIf",n.config.preview&&!n.isRootQuestionnaire(e)),k(1),T("ngIf",n.config.preview),k(4),T("ngIf",!n.isRootQuestionnaire(e)),k(1),T("ngIf",n.isRootQuestionnaire(e))}}function Kne(t,i){1&t&&Se(0,"tr",36)}function Zne(t,i){1&t&&Se(0,"tr",37)}function Jne(t,i){1&t&&(v(0,"p",38)(1,"i"),E(2," No questionnaires found. Upload your questionnaires to start. "),y()())}function ere(t,i){1&t&&Se(0,"mat-spinner",39)}function tre(t,i){if(1&t){const e=Je();v(0,"button",40),X("click",function(){return Me(e),Ae(q().downloadAllQuestionnaires())}),E(1," Download bundle "),y()}}let mP=(()=>{class t{constructor(e,n,r,o){this.fhirService=e,this.questionnaireService=n,this.dialog=r,this._snackBar=o,this.questionnaireSelected=new xe,this.validateQuestionnaire=new xe,this.previewQuestionnaire=new xe,this.config={},this.displayedColumns=["title","status","version","type","actions"],this.dataSource=new Yh,this.questionnaires=[],this.loading=!1,this.selectedFhirServer="",this.selectedUserTag="",this.notFound=!1,this.baseUrlChanged=new ke,this.userTagChanged=new ke}ngOnInit(){Fc([this.fhirService.baseUrl$.pipe(Ad(1e3),Bc()),this.fhirService.userTag$.pipe(Ad(1e3),Bc())]).subscribe(([e,n])=>{(this.selectedFhirServer!==e||this.selectedUserTag!==n)&&(this.selectedFhirServer=e,this.selectedUserTag=n,this.selectedUserTag&&this.selectedFhirServer&&this.loadQuestionnaires())})}ngOnChanges(e){}ngAfterViewInit(){this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(e,n)=>{switch(n){case"type":return this.isRootQuestionnaire(e)?"Modular root":"Questionnaire";case"version":return e.meta&&e.meta.versionId?e.meta.versionId:"";default:return e[n]}},this.selectedUserTag&&this.selectedFhirServer&&this.loadQuestionnaires()}loadQuestionnaires(){this.loading=!0,this.notFound=!1,this.questionnaires=[],this.fhirService.getQuestionnairesByTag(this.selectedUserTag).subscribe(e=>{e.entry?(this.questionnaires=e.entry.map(n=>n.resource),this.dataSource.data=this.questionnaires,this.dataSource.sort=this.sort,this.loading=!1):(this.questionnaires=[],this.dataSource.data=this.questionnaires,this.loading=!1,this.notFound=!0)})}updateQuestionnairesList(e){const n=this.questionnaires.findIndex(r=>r.id===e.id);-1!==n?(this.questionnaires[n]=e,this.dataSource.data=this.questionnaires):(this.questionnaires.push(e),this.dataSource.data=this.questionnaires)}addQuestionnaire(e){this.updateQuestionnairesList(e)}deleteQuestionnaire(e){this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Deleting Questionnaire...",panelClass:["green-snackbar"]}),this.fhirService.deleteQuestionnaire(e.id).subscribe(()=>{this.questionnaires=this.questionnaires.filter(n=>n.id!==e.id),this.dataSource.data=this.questionnaires,this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Questionnaire deleted successfully",panelClass:["green-snackbar"]})})}selectQuestionnaire(e){this.questionnaireSelected.emit(e)}validate(e){this.validateQuestionnaire.emit(e)}preview(e){this.previewQuestionnaire.emit(e)}openInNewTab(e){window.open(this.selectedFhirServer+"/Questionnaire/"+e.id,"_blank")}saveQuestionnaire(e){var n=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});Zc(n,`${e.title}-v${e.meta.versionId}.json`)}isRootQuestionnaire(e){return!(!e.extension||!Array.isArray(e.extension))&&e.extension.some(n=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===n.url&&"assemble-root"===n.valueCode)}assemble(e){this._snackBar.openFromComponent(Qi,{duration:2e3,data:"Assembling Questionnaire...",panelClass:["green-snackbar"]}),this.questionnaireService.assembleQuestionnaire(e).then(n=>{n.title=e.title+" (assembled)",this.previewQuestionnaire.emit(n),this._snackBar.openFromComponent(Qi,{duration:2e3,data:"Questionnaire ready",panelClass:["green-snackbar"]})}).catch(n=>{console.error("Error assembling questionnaire:",n)})}editQuestionnaire(e){this.saveQuestionnaire(e),window.open("https://lhcformbuilder.nlm.nih.gov/","_blank")}openModularQuestionnaireModal(e){var n=this;return Oi(function*(){let r=yield n.questionnaireService.getRootQuestionnaireData(e);n.dialog.open(hP,{data:r,width:"75%"}).afterClosed().subscribe(a=>{a&&n.handleDialogResult(a,e)})})()}handleDialogResult(e,n){var r=this;return Oi(function*(){r._snackBar.openFromComponent(Qi,{duration:5e3,data:"Updating questionnaire...",panelClass:["green-snackbar"]});try{let o=yield r.questionnaireService.generateRootQuestionnaire(e.title,e.questionnaires);o&&(n.title=e.title,n.item=o.item,r.addQuestionnaire(n),r.fhirService.updateOrCreateQuestionnaire(n,r.selectedUserTag).pipe(vo()).subscribe(a=>{r._snackBar.openFromComponent(Qi,{duration:5e3,data:"Questionnaire updated successfully",panelClass:["green-snackbar"]}),r.updateQuestionnairesList(a)},a=>{r._snackBar.openFromComponent(Qi,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})}))}catch(o){console.error("Error handling dialog result:",o)}})()}downloadAllQuestionnaires(){this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Downloading Questionnaires...",panelClass:["green-snackbar"]}),this.fhirService.getQuestionnairesByTag(this.selectedUserTag).subscribe(e=>{var n=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});Zc(n,"questionnaires-bundle.json"),this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Questionnaires downloaded successfully",panelClass:["green-snackbar"]})})}}return t.\u0275fac=function(e){return new(e||t)(b(mf),b(fP),b(Kd),b(Nd))},t.\u0275cmp=Ve({type:t,selectors:[["app-list-questionnaires"]],viewQuery:function(e,n){if(1&e&&st(Jc,5),2&e){let r;ye(r=we())&&(n.sort=r.first)}},inputs:{config:"config"},outputs:{questionnaireSelected:"questionnaireSelected",validateQuestionnaire:"validateQuestionnaire",previewQuestionnaire:"previewQuestionnaire"},features:[Ei],decls:24,vars:6,consts:[["id","table-container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","version"],["matColumnDef","type"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","not-found",4,"ngIf"],["diameter","35","class","loading-spinner",4,"ngIf"],["id","outer-container"],[1,"download-button-container"],["mat-flat-button","","color","accent","matTooltip","Dowload all Questionnaires",3,"click",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"ngClass"],[3,"ngClass",4,"ngIf"],["mat-header-cell",""],["mat-icon-button","","color","accent","class","action-button","matTooltip","Validate Questionnaire",3,"disabled","click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Assemble Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Preview Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Open resource in new tab",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","matTooltip","Download Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Edit Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Edit Modular Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","matTooltip","Delete Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Validate Questionnaire",1,"action-button",3,"disabled","click"],["mat-icon-button","","color","accent","matTooltip","Assemble Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Preview Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Open resource in new tab",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Modular Questionnaire",1,"action-button",3,"click"],["mat-header-row",""],["mat-row",""],[1,"not-found"],["diameter","35",1,"loading-spinner"],["mat-flat-button","","color","accent","matTooltip","Dowload all Questionnaires",3,"click"]],template:function(e,n){1&e&&(v(0,"div",0)(1,"table",1),Ai(2,2),H(3,Ane,2,0,"th",3),H(4,Ine,2,1,"td",4),Ii(),Ai(5,5),H(6,Fne,2,0,"th",3),H(7,One,4,6,"td",4),Ii(),Ai(8,6),H(9,Pne,2,0,"th",3),H(10,Lne,2,1,"td",4),Ii(),Ai(11,7),H(12,Nne,2,0,"th",3),H(13,zne,3,2,"td",4),Ii(),Ai(14,8),H(15,$ne,2,0,"th",9),H(16,Yne,13,6,"td",4),Ii(),H(17,Kne,1,0,"tr",10),H(18,Zne,1,0,"tr",11),y(),H(19,Jne,3,0,"p",12),H(20,ere,1,0,"mat-spinner",13),y(),v(21,"div",14)(22,"div",15),H(23,tre,2,0,"button",16),y()()),2&e&&(k(1),T("dataSource",n.dataSource),k(16),T("matHeaderRowDef",n.displayedColumns),k(1),T("matRowDefColumns",n.displayedColumns),k(1),T("ngIf",n.notFound&&!n.questionnaires.length),k(1),T("ngIf",n.loading),k(3),T("ngIf",!n.loading&&n.questionnaires.length>0))},dependencies:[Ms,fn,Lr,os,Qo,Bd,Wh,$d,Gh,jd,zd,qh,Wd,Gd,Xh,Qh,lf,Jc,uP,cM],styles:[".list-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.list-text[_ngcontent-%COMP%]{flex-grow:1}.list-subtext[_ngcontent-%COMP%]{font-size:.8rem;color:#666;margin-left:1rem}.action-button[_ngcontent-%COMP%]{margin-left:8px}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.list-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.status-pill[_ngcontent-%COMP%]{display:inline-block;padding:3px 8px;border-radius:15px;font-size:10px;color:#fff;text-align:center;margin-left:1rem}.status-pill.draft[_ngcontent-%COMP%]{background-color:#007bff}.status-pill.unknown[_ngcontent-%COMP%]{background-color:#ffc107}.status-pill.active[_ngcontent-%COMP%]{background-color:#28a745}.status-pill.retired[_ngcontent-%COMP%]{background-color:#dc3545}#table-container[_ngcontent-%COMP%]{padding-bottom:2rem}.not-found[_ngcontent-%COMP%]{margin-top:2rem}#outer-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.download-button-container[_ngcontent-%COMP%]{margin-top:10px}"]}),t})(),ire=(()=>{class t{constructor(e){this.dialogRef=e,this.listConfig={select:!0}}selectAndDownload(e){this.dialogRef.close(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Gs))},t.\u0275cmp=Ve({type:t,selectors:[["app-load-questionnaire-modal"]],decls:7,vars:1,consts:[[3,"config","questionnaireSelected"],["align","end"],["mat-flat-button","","color","accent","mat-dialog-close",""]],template:function(e,n){1&e&&(v(0,"mat-dialog-content")(1,"h2"),E(2,"Available Questionnaires"),y(),v(3,"app-list-questionnaires",0),X("questionnaireSelected",function(o){return n.selectAndDownload(o)}),y()(),v(4,"mat-dialog-actions",1)(5,"button",2),E(6,"Close"),y()()),2&e&&(k(3),T("config",n.listConfig))},dependencies:[Lr,ff,k0,D0,mP]}),t})();const nre=["settingsForm"];function rre(t,i){1&t&&(v(0,"mat-error"),E(1,"Base URL is required"),y())}function ore(t,i){1&t&&(v(0,"mat-error"),E(1,"User Tag is required and must be at least 3 characters"),y())}let tw=(()=>{class t{constructor(e,n){this.fhirService=e,this.dialogRef=n,this.baseUrl="",this.userTag=""}ngAfterViewInit(){this.triggerValidation()}triggerValidation(){Object.keys(this.settingsForm.controls).forEach(e=>{const n=this.settingsForm.control.get(e);n?.markAsTouched({onlySelf:!0}),n?.markAsDirty({onlySelf:!0})})}ngOnInit(){this.baseUrl=this.fhirService.getBaseUrl(),this.userTag=this.fhirService.getUserTag()}updateSettings(){this.settingsForm.valid&&(this.fhirService.setBaseUrl(this.baseUrl),this.fhirService.setUserTag(this.userTag),this.dialogRef.close("save"))}}return t.\u0275fac=function(e){return new(e||t)(b(mf),b(Gs))},t.\u0275cmp=Ve({type:t,selectors:[["app-fhir-server-settings-modal"]],viewQuery:function(e,n){if(1&e&&st(nre,5),2&e){let r;ye(r=we())&&(n.settingsForm=r.first)}},decls:29,vars:5,consts:[[1,"form-container"],[1,"warning"],[3,"ngSubmit"],["settingsForm","ngForm"],["matInput","","name","baseUrl","required","",3,"ngModel","ngModelChange"],["baseUrlField","ngModel"],[4,"ngIf"],["matInput","","name","userTag","required","","minlength","3",3,"ngModel","ngModelChange"],["userTagField","ngModel"],[1,"button-container"],["mat-flat-button","","color","accent","type","submit",3,"disabled"],["mat-flat-button","","color","primary","mat-dialog-close",""]],template:function(e,n){if(1&e&&(v(0,"div",0)(1,"h2"),E(2,"FHIR Server Connection"),y(),v(3,"p"),E(4,"Manager mode allows you to store questionnares in a FHIR Server. Enter the FHIR server URL and your "),v(5,"b"),E(6,"User Tag"),y(),E(7,", this value will be used to identify your questionnaires."),y(),v(8,"p",1),E(9,"Warning: using the default public FHIR server will not ensure the persistence of your information, always save your questionnaires to your computer as a backup."),y(),v(10,"form",2,3),X("ngSubmit",function(){return n.updateSettings()}),v(12,"mat-form-field")(13,"mat-label"),E(14,"Base URL of the FHIR Server"),y(),v(15,"input",4,5),X("ngModelChange",function(o){return n.baseUrl=o}),y(),H(17,rre,2,0,"mat-error",6),y(),v(18,"mat-form-field")(19,"mat-label"),E(20,"User Tag"),y(),v(21,"input",7,8),X("ngModelChange",function(o){return n.userTag=o}),y(),H(23,ore,2,0,"mat-error",6),y(),v(24,"div",9)(25,"button",10),E(26,"Open FHIR Repository"),y(),v(27,"button",11),E(28,"Close"),y()()()()),2&e){const r=Nt(11),o=Nt(16),a=Nt(22);k(15),T("ngModel",n.baseUrl),k(2),T("ngIf",o.invalid&&o.touched),k(4),T("ngModel",n.userTag),k(2),T("ngIf",a.invalid&&a.touched),k(2),T("disabled",!r.valid)}},dependencies:[fn,Lr,Da,ko,NR,Kc,rf,Ca,Co,Kh,c0,O1,Yo,Xc,ff],styles:[".form-container[_ngcontent-%COMP%]{margin:auto;padding:20px}mat-form-field[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.warning[_ngcontent-%COMP%]{color:#ff9500;font-weight:lighter;font-style:italic}"]}),t})(),pP=(()=>{class t{constructor(e,n){this.data=e,this.dialogRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(C0),b(Gs))},t.\u0275cmp=Ve({type:t,selectors:[["app-confirmation-dialog"]],decls:10,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",1,"button-container"],["mat-button","",3,"mat-dialog-close"]],template:function(e,n){1&e&&(v(0,"h1",0),E(1),y(),v(2,"div",1)(3,"p"),E(4),y()(),v(5,"div",2)(6,"button",3),E(7,"Yes"),y(),v(8,"button",3),E(9,"No"),y()()),2&e&&(k(1),Xe(n.data.title),k(3),Xe(n.data.message),k(2),T("mat-dialog-close",!0),k(2),T("mat-dialog-close",!1))},dependencies:[Lr,ff,GO,k0,D0],encapsulation:2}),t})();const are=new ae("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),cre=Vs(class{constructor(t){this._elementRef=t}},"primary");let lre=(()=>{class t extends cre{constructor(e,n,r,o,a){super(e),this._ngZone=n,this._changeDetectorRef=r,this._animationMode=o,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new xe,this._mode="determinate",this._transitionendHandler=s=>{0===this.animationEnd.observers.length||!s.target||!s.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===o,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(e){this._value=gP(In(e)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=gP(In(e)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(ze),b(Gt),b(Ri,8),b(are,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(e,n){2&e&&(ot("aria-valuenow",n._isIndeterminate()?null:n.value)("mode",n.mode),Qe("_mat-animation-noopable",n._isNoopAnimation)("mdc-linear-progress--animation-ready",!n._isNoopAnimation)("mdc-linear-progress--indeterminate",n._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[pe],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(e,n){1&e&&(v(0,"div",0),Se(1,"div",1)(2,"div",2),y(),v(3,"div",3),Se(4,"span",4),y(),v(5,"div",5),Se(6,"span",4),y()),2&e&&(k(1),ir("flex-basis",n._getBufferBarFlexBasis()),k(2),ir("transform",n._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half, 83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full, 200.611057%))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter, 37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half, 84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full, 160.277782%))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(-10px)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg, -83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg, -200.611057%))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg, -37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg, -84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg, -160.277782%))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;width:100%;height:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;width:100%;height:100%}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color, #6200ee)}.mdc-linear-progress__buffer-dots{background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E\")}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6}.mdc-linear-progress{height:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height, 4px)}.mat-mdc-progress-bar{display:block}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0}),t})();function gP(t,i=0,e=100){return Math.max(i,Math.min(e,t))}let dre=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt]}),t})();const ure=["questionnairesList"];function hre(t,i){if(1&t&&(v(0,"div",20),Se(1,"mat-progress-bar",21),v(2,"div",22),E(3),y()()),2&t){const e=q();k(1),T("value",e.validatingProgress),k(2),It("",e.validatingProgress,"%")}}function fre(t,i){1&t&&(v(0,"span"),E(1,"Run validation"),y())}function mre(t,i){1&t&&Se(0,"mat-spinner",23)}function pre(t,i){if(1&t&&(v(0,"span",29),E(1),y()),2&t){const e=q(2);k(1),It("Error: ",e.loadResults.error,"")}}function gre(t,i){if(1&t&&(v(0,"span",30),E(1),y()),2&t){const e=q(2);k(1),It("Inactive: ",e.loadResults.inactive,"")}}function _re(t,i){if(1&t&&(v(0,"span",31),E(1),y()),2&t){const e=q(2);k(1),It("Active: ",e.loadResults.active,"")}}function bre(t,i){if(1&t&&(v(0,"p",24)(1,"b"),E(2,"Questionnaire:"),y(),E(3),v(4,"i"),E(5),y(),E(6,") - "),v(7,"span",25),E(8),y(),H(9,pre,2,1,"span",26),H(10,gre,2,1,"span",27),H(11,_re,2,1,"span",28),y()),2&t){const e=q();k(3),It(" ",e.questionnaire.title," ("),k(2),Xe(e.questionnaire.url),k(3),It("",e.dataSource.data.length," bindings"),k(1),T("ngIf",e.loadResults.total>0),k(1),T("ngIf",e.loadResults.total>0),k(1),T("ngIf",e.loadResults.total>0)}}function vre(t,i){1&t&&(v(0,"th",32),E(1," # "),y())}function xre(t,i){if(1&t&&(v(0,"td",33),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.order," ")}}function yre(t,i){1&t&&(v(0,"th",32),E(1," FHIRPath "),y())}function wre(t,i){if(1&t&&(v(0,"td",33),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.path," ")}}function Cre(t,i){1&t&&(v(0,"th",32),E(1," Path "),y())}function kre(t,i){if(1&t&&(v(0,"td",33),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.readablePath," ")}}function Dre(t,i){1&t&&(v(0,"th",32),E(1,"Code "),y())}function Sre(t,i){if(1&t&&(v(0,"td",33)(1,"a",34),E(2),y()()),2&t){const e=i.$implicit;k(1),sp("href","http://snomed.info/id/",e.code,"",Wb),k(1),Xe(e.code)}}function Ere(t,i){1&t&&(v(0,"th",32),E(1," Display "),y())}function Tre(t,i){if(1&t&&(v(0,"p",38),E(1),y()),2&t){const e=q().$implicit;k(1),It("Concept FSN: ",e.serverDisplay,"")}}function Mre(t,i){1&t&&(v(0,"p",39),E(1,"Concept is inactive"),y())}function Are(t,i){if(1&t){const e=Je();v(0,"p",40),E(1),v(2,"button",41),X("click",function(){const o=Me(e).$implicit,a=q().$implicit;return Ae(q().replaceInactiveConcept(a,o.replacement))}),v(3,"mat-icon"),E(4,"arrow_forward"),y()()()}if(2&t){const e=i.$implicit,n=q(2);k(1),Ev(" Replacement: ",e.equivalence," to ",e.replacement.code," |",e.replacement.display,"| "),k(1),T("disabled",n.validating)}}function Ire(t,i){if(1&t&&(v(0,"td",33),E(1),H(2,Tre,2,1,"p",35),H(3,Mre,2,0,"p",36),H(4,Are,5,4,"p",37),y()),2&t){const e=i.$implicit;k(1),It(" ",e.display," "),k(1),T("ngIf",e.serverDisplay),k(1),T("ngIf","Inactive"==e.status),k(1),T("ngForOf",e.replacements)}}function Fre(t,i){1&t&&(v(0,"th",32),E(1," System "),y())}function Rre(t,i){if(1&t&&(v(0,"td",33),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.system," ")}}function Ore(t,i){1&t&&(v(0,"th",32),E(1," Status "),y())}function Pre(t,i){1&t&&(v(0,"span"),Se(1,"mat-progress-bar",42),y())}function Lre(t,i){if(1&t&&(v(0,"span")(1,"span",43),E(2),y()()),2&t){const e=q().$implicit;k(1),T("ngClass",e.status),k(1),Xe(e.status)}}function Nre(t,i){if(1&t&&(v(0,"td",33),H(1,Pre,2,0,"span",3),H(2,Lre,3,2,"span",3),y()),2&t){const e=i.$implicit;k(1),T("ngIf","Validating"==e.status),k(1),T("ngIf","Validating"!=e.status)}}function Bre(t,i){1&t&&Se(0,"tr",44)}function Vre(t,i){1&t&&Se(0,"tr",45)}function Hre(t,i){1&t&&Se(0,"mat-spinner",46)}let Ure=(()=>{class t{constructor(e){this.terminologyService=e,this.questionnaireUpdated=new xe,this.validatingQuestionnaire=new xe,this.loading=!1,this.validating=!1,this.displayedColumns=["order","readablePath","code","display","system","status"],this.dataSource=new Yh,this.validatingProgress=0,this.orderCounter=0,this.loadResults={total:0,active:0,inactive:0,error:0}}ngOnChanges(e){e.questionnaire&&(this.questionnaire?this.loadQuestionnaire(this.questionnaire):this.clearQuestionnaire())}clearQuestionnaire(){this.questionnaire=null,this.dataSource.data=[],this.orderCounter=0,this.validatingProgress=0,this.loadResults={total:0,active:0,inactive:0,error:0}}loadQuestionnaire(e){this.loading=!0,this.clearQuestionnaire(),setTimeout(()=>{this.loading=!1,this.questionnaire=e;let n=this.extractObjects(e);this.dataSource.data=n,this.dataSource.sort=this.sort},700)}validate(){var e=this;this.loadResults={total:0,active:0,inactive:0,error:0},this.dataSource.data.forEach(o=>{o.status="Not checked"}),this.validating=!0,this.validatingQuestionnaire.emit(!0);let n=this.dataSource.data.length,r=0;this.asyncForEach(this.dataSource.data,function(){var o=Oi(function*(a){e.loadResults.total++,a.status="Validating",r++,e.validatingProgress=Math.round(r/n*100);try{const s=yield e.terminologyService.lookupConcept(a.code,a.system).pipe(vo()).toPromise();let c=[],l="";for(const d of s.parameter){if("designation"===d.name){let u="",h="";for(const f of d.part)"value"===f.name&&(u=f.valueString),"use"===f.name&&(h=f.valueCoding?.code);c.push(u),"900000000000003001"===h&&(l=u)}"inactive"===d.name&&(d.valueBoolean?(a.status="Inactive",e.loadResults.inactive++):(a.status="Active",e.loadResults.active++))}if((!a.display||!c.includes(a.display))&&(a.serverDisplay=l),"Inactive"==a.status){const d=yield e.getHistoricalAssociationsTarget("900000000000527005",a.code),u=yield e.getHistoricalAssociationsTarget("900000000000530003",a.code),h=yield e.getHistoricalAssociationsTarget("900000000000523009",a.code),f=yield e.getHistoricalAssociationsTarget("900000000000526001",a.code),m=d.concat(u,h,f);a.replacements=m}}catch{a.status="Error",e.loadResults.error++}});return function(a){return o.apply(this,arguments)}}()).then(()=>{this.validating=!1,this.validatingQuestionnaire.emit(!1)})}getHistoricalAssociationsTarget(e,n){var r=this;return Oi(function*(){let o=[];const a=r.terminologyService.translate(e,n);let s=yield qo(a.pipe(Ke(c=>c)));if(s.parameter)for(const c of s.parameter)if("match"===c.name){let l={replacement:{},equivalence:""};for(const d of c.part)"concept"===d.name&&d.valueCoding&&(l.replacement={code:d.valueCoding.code,display:d.valueCoding.display,system:d.valueCoding.system}),"equivalence"===d.name&&d.valueCode&&(l.equivalence=d.valueCode);o.push(l)}return o})()}removeSemanticTag(e){return e.replace(/\s*\([^)]+\)\s*$/,"").trim().toLowerCase()}asyncForEach(e,n){return Oi(function*(){for(let r=0;r ${e.text}`:e.text),e.system&&e.system.startsWith("http://snomed.info/sct")&&e.code&&e.display){this.orderCounter++;const a={order:this.orderCounter,system:e.system,code:e.code,display:e.display,path:n,readablePath:r,status:"Not checked"};o.some(s=>s.system===a.system&&s.code===a.code&&s.display===a.display)||o.push(a)}if(Array.isArray(e))for(let a in e)o=o.concat(this.extractObjects(e[a],`${n}[${a}]`,r));else for(let a in e)e.hasOwnProperty(a)&&(o=o.concat(this.extractObjects(e[a],n?`${n}.${a}`:a,r)));if(e.answerValueSet){const s=new URL(e.answerValueSet).searchParams.get("fhir_vs");if(s){const c=decodeURIComponent(s),l=/(\d{5,})(?:\s*\|\s*([^|]*)\s*\|)?/g;let d;for(;null!==(d=l.exec(c));)this.orderCounter++,o.push({order:this.orderCounter,code:d[1],display:d[2]?d[2].trim():void 0,system:"http://snomed.info/sct",path:n+".answerValueSet",readablePath:r+" -> answerValueSet [ECL]",status:"Not checked"})}}return o}replaceInactiveConcept(e,n){this.searchAndReplace(this.questionnaire,e,n,!1)&&(this.loadQuestionnaire(this.questionnaire),this.questionnaireUpdated.emit(this.questionnaire))}searchAndReplace(e,n,r,o){if("object"!=typeof e||null===e)return o;if(e.system==n.system&&e.code==n.code&&e.display==n.display&&(e.system=r.system,e.code=r.code,e.display=r.display,o=!0),e.answerValueSet){const a=new URL(e.answerValueSet),s=a.searchParams.get("fhir_vs");if(s){const c=decodeURIComponent(s),l=new RegExp(`(\\s|^)${n.code}(\\s|$|\\|)`,"g");if(l.test(c)){const d=c.replace(l,`$1${r.code}$2`);o=!0;const u=new RegExp(`\\|\\s*${n.display}\\s*\\|`,"g");if(u.test(d)){const h=d.replace(u,`| ${r.display} |`);a.searchParams.set("fhir_vs",encodeURIComponent(h)),e.answerValueSet=a.toString()}a.searchParams.set("fhir_vs",encodeURIComponent(d)),e.answerValueSet=a.toString()}}}if(Array.isArray(e))for(let a in e)o=this.searchAndReplace(e[a],n,r,o);else for(let a in e)e.hasOwnProperty(a)&&(o=this.searchAndReplace(e[a],n,r,o));return o}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-validate-questionnaire"]],viewQuery:function(e,n){if(1&e&&(st(Jc,5),st(sf,5),st(ure,5)),2&e){let r;ye(r=we())&&(n.sort=r.first),ye(r=we())&&(n.tabGroup=r.first),ye(r=we())&&(n.questionnairesList=r.first)}},inputs:{questionnaire:"questionnaire"},outputs:{questionnaireUpdated:"questionnaireUpdated",validatingQuestionnaire:"validatingQuestionnaire"},features:[Ei],decls:32,vars:9,consts:[[1,"button-container","bottom-spacer"],["class","progress-container",4,"ngIf"],["mat-flat-button","","color","accent",3,"disabled","click"],[4,"ngIf"],["diameter","20",4,"ngIf"],["class","header","id","tab-header",4,"ngIf"],[1,"table-container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","order"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","path"],["matColumnDef","readablePath"],["matColumnDef","code"],["matColumnDef","display"],["matColumnDef","system"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["diameter","35","class","loading-spinner",4,"ngIf"],[1,"progress-container"],["mode","determinate",3,"value"],[1,"progress-label"],["diameter","20"],["id","tab-header",1,"header"],[1,"bindingsCount"],["class","mini-pill Error",4,"ngIf"],["class","mini-pill Inactive",4,"ngIf"],["class","mini-pill Active",4,"ngIf"],[1,"mini-pill","Error"],[1,"mini-pill","Inactive"],[1,"mini-pill","Active"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["target","_blank",1,"code-link",3,"href"],["class","server-name",4,"ngIf"],["class","concept-is-inactive",4,"ngIf"],["class","replacement",4,"ngFor","ngForOf"],[1,"server-name"],[1,"concept-is-inactive"],[1,"replacement"],["mat-icon-button","","color","primary","matTooltip","Replace using this concept",3,"disabled","click"],["mode","indeterminate"],[1,"pill",3,"ngClass"],["mat-header-row",""],["mat-row",""],["diameter","35",1,"loading-spinner"]],template:function(e,n){1&e&&(v(0,"div",0),H(1,hre,4,2,"div",1),v(2,"button",2),X("click",function(){return n.validate()}),H(3,fre,2,0,"span",3),H(4,mre,1,0,"mat-spinner",4),y()(),H(5,bre,12,6,"p",5),v(6,"div",6)(7,"table",7),Ai(8,8),H(9,vre,2,0,"th",9),H(10,xre,2,1,"td",10),Ii(),Ai(11,11),H(12,yre,2,0,"th",9),H(13,wre,2,1,"td",10),Ii(),Ai(14,12),H(15,Cre,2,0,"th",9),H(16,kre,2,1,"td",10),Ii(),Ai(17,13),H(18,Dre,2,0,"th",9),H(19,Sre,3,2,"td",10),Ii(),Ai(20,14),H(21,Ere,2,0,"th",9),H(22,Ire,5,4,"td",10),Ii(),Ai(23,15),H(24,Fre,2,0,"th",9),H(25,Rre,2,1,"td",10),Ii(),Ai(26,16),H(27,Ore,2,0,"th",9),H(28,Nre,3,2,"td",10),Ii(),H(29,Bre,1,0,"tr",17),H(30,Vre,1,0,"tr",18),y(),H(31,Hre,1,0,"mat-spinner",19),y()),2&e&&(k(1),T("ngIf",n.validating),k(1),T("disabled",n.validating||!n.questionnaire),k(1),T("ngIf",!n.validating),k(1),T("ngIf",n.validating),k(1),T("ngIf",n.questionnaire),k(2),T("dataSource",n.dataSource),k(22),T("matHeaderRowDef",n.displayedColumns),k(1),T("matRowDefColumns",n.displayedColumns),k(1),T("ngIf",n.loading))},dependencies:[Ms,bo,fn,Lr,os,Qo,lre,Bd,Wh,$d,Gh,jd,zd,qh,Wd,Gd,Xh,Qh,lf,Jc,uP],styles:[".header[_ngcontent-%COMP%]{margin-left:2rem;margin-top:1rem}.table-container[_ngcontent-%COMP%]{margin-left:2rem;margin-right:2rem;padding-bottom:2rem}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.bottom-spacer[_ngcontent-%COMP%]{margin-bottom:1rem}.pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;font-weight:700;text-align:center;display:inline-block;font-size:.8rem}.pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.mini-pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;text-align:center;font-weight:700;font-size:.9rem;margin-right:2rem;float:right}.mini-pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.mini-pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.mini-pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.progress-container[_ngcontent-%COMP%]{margin-top:1rem;position:relative;width:30%}.progress-label[_ngcontent-%COMP%]{position:absolute;width:100%;text-align:center;top:60%;transform:translateY(-50%);font-size:.9rem;font-weight:700}.bindingsCount[_ngcontent-%COMP%]{font-size:1rem;font-weight:lighter}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.code-link[_ngcontent-%COMP%]{font-size:.8rem}.server-name[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:maroon}.replacement[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:#00800b;display:flex;align-items:center;font-size:.9rem;margin-left:2rem}.concept-is-inactive[_ngcontent-%COMP%]{color:maroon;font-size:.9rem;margin-bottom:0rem}#myFormContainer[_ngcontent-%COMP%], #tab-header[_ngcontent-%COMP%]{margin-top:1rem}.tab-container[_ngcontent-%COMP%]{padding:2rem}.outgoing-link[_ngcontent-%COMP%]{font-size:.8rem;float:right;margin-right:2rem}"]}),t})();const zre=["questionnairesList"],$re=["fileInput"];function jre(t,i){1&t&&(v(0,"span"),E(1," / Validator"),y())}function Wre(t,i){1&t&&(v(0,"span"),E(1," / Questionnaires repository"),y())}function Gre(t,i){if(1&t){const e=Je();v(0,"span",15)(1,"a",16),X("click",function(){return Me(e),Ae(q(2).mode="Manager")}),v(2,"mat-icon"),E(3,"play_arrow"),y(),v(4,"span"),E(5,"Reconnect to last FHIR Server"),y()(),v(6,"span",17),E(7),v(8,"i"),E(9),y(),E(10,'" )'),y()()}if(2&t){const e=q(2);k(7),It(" ( ",e.selectedFhirServer,' as "'),k(2),Xe(e.selectedUserTag)}}function qre(t,i){if(1&t){const e=Je();v(0,"div",6)(1,"p"),E(2,"What do you want to do today?"),y(),v(3,"mat-radio-group",7),X("ngModelChange",function(r){return Me(e),Ae(q().step1Response=r)}),v(4,"mat-radio-button",8),E(5,"Edit a questionnaire in the NLM Form Builder"),y(),v(6,"mat-radio-button",9),E(7,"Load an example questionnaire"),y(),v(8,"mat-radio-button",10),E(9,"Upload and validate a questionnaire"),y(),v(10,"mat-radio-button",11),E(11,"Work with your questionnaires from a FHIR server"),y(),H(12,Gre,11,2,"span",12),y(),v(13,"div",13)(14,"button",14),X("click",function(){return Me(e),Ae(q().advanceFromStep1())}),E(15,"Next"),y()()()}if(2&t){const e=q();k(3),T("ngModel",e.step1Response),k(9),T("ngIf",e.selectedFhirServer&&e.selectedUserTag),k(2),T("disabled",!e.step1Response)}}function Xre(t,i){if(1&t&&(v(0,"span"),E(1," Connected to "),v(2,"a",30),E(3),y(),E(4,' as "'),v(5,"i"),E(6),y(),E(7,'" '),y()),2&t){const e=q(2);k(3),Xe(e.selectedFhirServer),k(3),Xe(e.selectedUserTag)}}function Qre(t,i){if(1&t){const e=Je();v(0,"button",14),X("click",function(){return Me(e),Ae(q(2).openModularQuestionnaireModal())}),E(1," Create Modular Questionnaire "),y()}2&t&&T("disabled",q(2).validating)}function Yre(t,i){if(1&t){const e=Je();v(0,"mat-tab",31)(1,"div",25)(2,"app-list-questionnaires",32,33),X("validateQuestionnaire",function(r){return Me(e),Ae(q(2).switchToValidateTab(r))})("previewQuestionnaire",function(r){return Me(e),Ae(q(2).switchToPreviewTab(r))}),y()()()}if(2&t){const e=q(2);k(2),T("config",e.listConfig)}}function Kre(t,i){if(1&t){const e=Je();v(0,"div")(1,"div",18),H(2,Xre,8,2,"span",4),v(3,"input",19,20),X("change",function(r){return Me(e),Ae(q().onFileSelected(r))}),y(),v(5,"button",14),X("click",function(){return Me(e),Ae(Nt(4).click())}),E(6," Upload "),y(),v(7,"button",14),X("click",function(){return Me(e),Ae(q().saveQuestionnaireToDisk())}),E(8,"Download"),y(),H(9,Qre,2,1,"button",21),y(),v(10,"mat-tab-group",22),X("selectedIndexChange",function(r){return Me(e),Ae(q().onTabChange(r))}),H(11,Yre,4,1,"mat-tab",23),v(12,"mat-tab",24)(13,"div",25),Se(14,"div",26),y()(),v(15,"mat-tab",27)(16,"app-validate-questionnaire",28,29),X("questionnaireUpdated",function(r){return Me(e),Ae(q().loadQuestionnaire(r))})("validatingQuestionnaire",function(r){return Me(e),Ae(q().validating=r)}),y()()()()}if(2&t){const e=q();k(2),T("ngIf","Manager"==e.mode),k(3),T("disabled",e.validating),k(2),T("disabled",e.validating||!e.questionnaire),k(2),T("ngIf","Manager"==e.mode),k(2),T("ngIf","Manager"===e.mode),k(3),Qe("hidden",!e.questionnaire),k(2),T("questionnaire",e.questionnaire)}}function Jre(t,i){if(1&t&&(v(0,"p",19),E(1),y()),2&t){const e=q();k(1),Xe(e.studentSubsetDefinition)}}function eoe(t,i){1&t&&Se(0,"mat-spinner",20)}function toe(t,i){if(1&t&&(v(0,"div",21)(1,"h4"),E(2,"Validation Results"),y(),v(3,"p",22),E(4),y(),v(5,"p",22),E(6),y(),v(7,"p",22),E(8),y()()),2&t){const e=q();k(4),Xe(e.definitionVsMembersValudationResult),k(2),Xe(e.definitionValidationResult),k(2),Xe(e.membersValidationResult)}}function ioe(t,i){1&t&&(v(0,"th",33),E(1,"ID"),y())}function noe(t,i){if(1&t&&(v(0,"td",34),E(1),y()),2&t){const e=i.$implicit;k(1),Xe(e.referencedComponentId)}}function roe(t,i){1&t&&(v(0,"th",33),E(1,"Name"),y())}function ooe(t,i){if(1&t&&(v(0,"td",34),E(1),y()),2&t){const e=i.$implicit;k(1),Xe(e.name)}}function aoe(t,i){1&t&&(v(0,"th",33),E(1,"Result"),y())}function soe(t,i){if(1&t&&(v(0,"td",34),E(1),y()),2&t){const e=i.$implicit;k(1),Xe(e.result.value)}}function coe(t,i){1&t&&(v(0,"th",33),E(1,"Definition"),y())}function loe(t,i){if(1&t&&(v(0,"td",34),E(1),y()),2&t){const e=i.$implicit;k(1),Xe(e.scope.value)}}function doe(t,i){1&t&&Se(0,"tr",35)}function uoe(t,i){1&t&&Se(0,"tr",36)}function hoe(t,i){if(1&t&&(v(0,"div",23)(1,"table",24),Ai(2,25),H(3,ioe,2,0,"th",26),H(4,noe,2,1,"td",27),Ii(),Ai(5,28),H(6,roe,2,0,"th",26),H(7,ooe,2,1,"td",27),Ii(),Ai(8,29),H(9,aoe,2,0,"th",26),H(10,soe,2,1,"td",27),Ii(),Ai(11,30),H(12,coe,2,0,"th",26),H(13,loe,2,1,"td",27),Ii(),H(14,doe,1,0,"tr",31),H(15,uoe,1,0,"tr",32),y()()),2&t){const e=q();k(1),T("dataSource",e.studentSubsetMembersDataSource),k(13),T("matHeaderRowDef",e.studentSubsetMembersDisplayedColumns),k(1),T("matRowDefColumns",e.studentSubsetMembersDisplayedColumns)}}const foe=[{path:"",component:pO},{path:"allergies",component:pO},{path:"sandbox",component:pne},{path:"prescription",component:gne},{path:"questionnaires",component:(()=>{class t{constructor(e,n,r,o,a,s){this.http=e,this.terminologyService=n,this.fhirService=r,this.questionnaireService=o,this.dialog=a,this._snackBar=s,this.loading=!1,this.validating=!1,this.orderCounter=0,this.savingQuestionnaire=!1,this.selectedFhirServer="",this.selectedUserTag="",this.showFhirSetupModal=!1,this.listConfig={validate:!0,preview:!0},this.mode="step1"}ngOnInit(){this.fhirService.baseUrl$.subscribe(e=>{this.selectedFhirServer=e}),this.fhirService.userTag$.subscribe(e=>{this.selectedUserTag=e}),this.loadScript()}loadScript(){const e=document.createElement("script");e.src="https://clinicaltables.nlm.nih.gov/lforms-versions/34.3.1/webcomponent/lhc-forms.js",e.onload=()=>{const n=document.createElement("script");n.src="https://clinicaltables.nlm.nih.gov/lforms-versions/34.0.0/fhir/R4/lformsFHIR.min.js",n.onload=()=>{},document.head.appendChild(n)},document.head.appendChild(e)}toggleMode(){"Validator"===this.mode?this.dialog.open(tw,{width:"60%",disableClose:!0}).afterClosed().subscribe(n=>{"save"===n&&(this.mode="Manager",setTimeout(()=>{this.tabGroup.selectedIndex=0},500))}):this.mode="Validator"}previewForm(){"Preview"==this.getCurrentTabName()&&(this.questionnaire?LForms.Util.addFormToPage(this.questionnaire,"myFormContainer"):LForms.Util.addFormToPage({},"myFormContainer"))}loadExampleQuestionnaire(){qo(this.http.get("assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json")).then(e=>{this.loadQuestionnaire(e),"Manager"===this.mode&&(this.tabGroup.selectedIndex=1)})}clearQuestionnaire(){this.questionnaire=null,this.orderCounter=0,this.previewForm()}loadQuestionnaire(e){this.loading=!0,this.clearQuestionnaire(),setTimeout(()=>{this.loading=!1,this.questionnaire=e,this.previewForm()},700)}saveQuestionnaireToDisk(){var e=new Blob([JSON.stringify(this.questionnaire,null,2)],{type:"text/plain;charset=utf-8"});Zc(e,`${this.questionnaire.title}.json`)}onFileSelected(e){const n=e.target.files?.[0];if(n){const r=new FileReader;r.onload=o=>{try{const a=JSON.parse(o.target?.result);"Questionnaire"===a.resourceType?(this.loadQuestionnaire(a),setTimeout(()=>{"Manager"===this.mode?this.postCurrentQuestionnaire():this.tabGroup.selectedIndex=1},1e3)):this._snackBar.openFromComponent(Qi,{duration:5e3,data:"The file is not a FHIR Questionnaire Resource",panelClass:["red-snackbar"]})}catch(a){console.error(a),this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Invalid JSON file",panelClass:["red-snackbar"]})}},r.readAsText(n)}}postCurrentQuestionnaire(){this.postQuestionnaire(this.questionnaire)}postQuestionnaire(e){if(-1!==this.questionnairesList.questionnaires.findIndex(r=>r.title===e.title&&r.id!==e.id))this.dialog.open(pP,{width:"400px",data:{title:"Confirm Action",message:"A questionnaire with the same title and different ID already exists. Do you want to proceed?"}}).afterClosed().subscribe(o=>{o?this.saveQuestionnaire(e):(this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Questionnaire save action cancelled",panelClass:["red-snackbar"]}),console.log("User cancelled the action"))});else{-1!==this.questionnairesList.questionnaires.findIndex(a=>a.title===e.title&&a.id===e.id&&a.meta.versionId>e.meta.versionId)?this.dialog.open(pP,{width:"400px",data:{title:"Confirm Action",message:"A newer version of this questionnaire already exists. Do you want to proceed?"}}).afterClosed().subscribe(s=>{s?this.saveQuestionnaire(e):(this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Questionnaire save action cancelled",panelClass:["red-snackbar"]}),console.log("User cancelled the action"))}):this.saveQuestionnaire(e)}}saveQuestionnaire(e){this.savingQuestionnaire=!0,this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Saving Questionnaire...",panelClass:["green-snackbar"]}),e.meta||(e.meta={}),e.meta.tag=[{system:"http://snomed.org/tags",code:this.selectedUserTag,display:this.selectedUserTag},{system:"http://snomed.org/tags",code:"questionnaireManagerTool",display:"questionnaireManagerTool"}],this.fhirService.updateOrCreateQuestionnaire(e,this.selectedUserTag).pipe(vo()).subscribe(n=>{setTimeout(()=>{this.tabGroup.selectedIndex=0,setTimeout(()=>{this.savingQuestionnaire=!1,this.questionnairesList.addQuestionnaire(n)},300)},300),this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Questionnaire saved successfully",panelClass:["green-snackbar"]})},n=>{this.savingQuestionnaire=!1,this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})})}listQuestionnaires(){this.fhirService.getQuestionnairesByTag(this.selectedUserTag).pipe(vo()).subscribe(e=>{},e=>{console.error(e)})}openLoadQuestionnairesDialog(){this.dialog.open(ire,{width:"70%"}).afterClosed().subscribe(n=>{this.loadQuestionnaire(n)})}setFhirServer(){this.fhirService.setBaseUrl(this.selectedFhirServer),this.fhirService.setUserTag(this.selectedUserTag)}setupFhirServer(){this.dialog.open(tw,{width:"60%"})}switchToValidateTab(e){this.loadQuestionnaire(e),this.tabGroup.selectedIndex=2}switchToPreviewTab(e){this.loadQuestionnaire(e),this.tabGroup.selectedIndex=1}advanceFromStep1(){"edit"==this.step1Response?window.open("https://lhcformbuilder.nlm.nih.gov/","_blank"):"validate"==this.step1Response?(this.mode="Validator",setTimeout(()=>{this.uploadInput.nativeElement.click()},200)):"repository"==this.step1Response?this.dialog.open(tw,{width:"60%"}).afterClosed().subscribe(n=>{n&&(this.mode="Manager")}):"example"==this.step1Response?(this.mode="Validator",setTimeout(()=>{this.loadExampleQuestionnaire()},300)):"reconnect"==this.step1Response&&(this.mode="Manager"),this.step1Response=""}getCurrentTabName(){const e=this.tabGroup.selectedIndex;return null!=e?this.tabGroup._tabs.toArray()[e].textLabel:""}onTabChange(e){"Preview"===this.tabGroup._tabs.toArray()[e].textLabel&&setTimeout(()=>{this.previewForm()},300)}openModularQuestionnaireModal(){this.dialog.open(hP,{width:"75%"}).afterClosed().subscribe(n=>{n&&this.questionnaireService.generateRootQuestionnaire(n.title,n.questionnaires).then(r=>{this.postQuestionnaire(r)}).catch(r=>{console.error("Error:",r)})})}}return t.\u0275fac=function(e){return new(e||t)(b(Ns),b(Nr),b(mf),b(fP),b(Kd),b(Nd))},t.\u0275cmp=Ve({type:t,selectors:[["app-questionnaires-main"]],viewQuery:function(e,n){if(1&e&&(st(Jc,5),st(sf,5),st(zre,5),st($re,5)),2&e){let r;ye(r=we())&&(n.sort=r.first),ye(r=we())&&(n.tabGroup=r.first),ye(r=we())&&(n.questionnairesList=r.first),ye(r=we())&&(n.uploadInput=r.first)}},decls:11,vars:4,consts:[[1,"header-container"],[1,"header"],[1,"breadcrumb"],["href","javascript:void(0)",3,"click"],[4,"ngIf"],["id","step1",4,"ngIf"],["id","step1"],["aria-label","Select an option",3,"ngModel","ngModelChange"],["value","edit"],["value","example"],["value","validate"],["value","repository"],["id","reconnect",4,"ngIf"],[1,"step-button-container"],["mat-flat-button","","color","accent",3,"disabled","click"],["id","reconnect"],["href","javascript:void(0)","id","reconnect-link",3,"click"],[1,"muted"],[1,"button-container","bottom-spacer"],["type","file","hidden","",3,"change"],["fileInput",""],["mat-flat-button","","color","accent",3,"disabled","click",4,"ngIf"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange"],["label","My Questionnaires",4,"ngIf"],["label","Preview"],[1,"tab-container"],["id","myFormContainer"],["label","Validate SNOMED Bindings"],[3,"questionnaire","questionnaireUpdated","validatingQuestionnaire"],["validateQuestionnaire",""],["href","selectedFhirServer"],["label","My Questionnaires"],[3,"config","validateQuestionnaire","previewQuestionnaire"],["questionnairesList",""]],template:function(e,n){1&e&&(v(0,"div",0)(1,"h2",1),E(2," SNOMED CT Terminology Bindings Validator - FHIR Questionnaire Manager "),y(),v(3,"div",2)(4,"span")(5,"a",3),X("click",function(){return n.mode="step1"}),E(6,"Home"),y(),H(7,jre,2,0,"span",4),H(8,Wre,2,0,"span",4),y()()(),H(9,qre,16,3,"div",5),H(10,Kre,18,8,"div",4)),2&e&&(k(7),T("ngIf","Validator"==n.mode),k(1),T("ngIf","Manager"==n.mode),k(1),T("ngIf","step1"==n.mode),k(1),T("ngIf","Manager"==n.mode||"Validator"==n.mode))},dependencies:[fn,Lr,Qo,Co,g0,sf,Yo,J1,ew,mP,Ure],styles:[".header[_ngcontent-%COMP%]{margin-left:2rem;margin-top:1rem}.table-container[_ngcontent-%COMP%]{margin-left:2rem;margin-right:2rem}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.bottom-spacer[_ngcontent-%COMP%]{margin-bottom:1rem}.pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;font-weight:700;text-align:center;display:inline-block;font-size:.8rem}.pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.mini-pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;text-align:center;font-weight:700;font-size:.9rem;margin-right:2rem;float:right}.mini-pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.mini-pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.mini-pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.progress-container[_ngcontent-%COMP%]{margin-top:1rem;position:relative;width:30%}.progress-label[_ngcontent-%COMP%]{position:absolute;width:100%;text-align:center;top:60%;transform:translateY(-50%);font-size:.9rem;font-weight:700}.bindingsCount[_ngcontent-%COMP%]{font-size:1rem;font-weight:lighter}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.code-link[_ngcontent-%COMP%]{font-size:.8rem}.server-name[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:maroon}.replacement[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:#00800b;display:flex;align-items:center;font-size:.9rem;margin-left:2rem}.concept-is-inactive[_ngcontent-%COMP%]{color:maroon;font-size:.9rem;margin-bottom:0rem}#myFormContainer[_ngcontent-%COMP%], #tab-header[_ngcontent-%COMP%]{margin-top:1rem}.tab-container[_ngcontent-%COMP%]{padding-top:1rem;padding-left:2rem;padding-right:2rem}.outgoing-link[_ngcontent-%COMP%]{font-size:.8rem;float:right;margin-right:2rem}#step1[_ngcontent-%COMP%]{margin-top:2rem;margin-left:2rem;font-size:large}#step1[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%]{margin-left:2rem;display:flex;flex-direction:column;align-items:flex-start}.step-button-container[_ngcontent-%COMP%]{margin-left:30rem;margin-top:2rem}.breadcrumb[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:2rem}.header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.hidden[_ngcontent-%COMP%]{visibility:hidden}.muted[_ngcontent-%COMP%]{color:#8f9397}#reconnect[_ngcontent-%COMP%]{margin-left:5rem}#reconnect-link[_ngcontent-%COMP%]{display:flex;vertical-align:middle;flex-direction:row}"]}),t})()},{path:"implementation-course/subset-validator",component:(()=>{class t{constructor(e,n,r){this.http=e,this.terminologyService=n,this._snackBar=r,this.studentSubsetMembersDisplayedColumns=["referencedComponentId","name","result","scope"],this.studentSubsetMembersDataSource=new Yh,this.studentSubsetmembers=[],this.studentSubsetDefinition="",this.definitionValidationResult="",this.definitionVsMembersValudationResult="",this.membersValidationResult="",this.validatingMembers=!1,this.validatingDefinition=!1,this.loading=!1,this.ok="\u2705",this.error="\u{1f7e5}",this.referenceData=[],this.moduleDReferenceData=[{referencedComponentId:"403197009",name:"Sun-induced wrinkles"},{referencedComponentId:"279002006",name:"Lichenification of skin"},{referencedComponentId:"274672009",name:"Changes in skin texture"},{referencedComponentId:"271767006",name:"Peeling of skin"},{referencedComponentId:"271761007",name:"Scaly skin"},{referencedComponentId:"247434009",name:"Wrinkled skin"}],this.referenceDataDisplayedColumns=["referencedComponentId","name"],this.referenceDataDataSource=new Yh(this.referenceData),this.referenceDefinition="",this.moduleDReferenceDefinition="< 185823004 |Finding of skin texture (finding)|",this.selectedAssignment="Module D"}ngAfterViewInit(){this.setAssignment("Module D")}setAssignment(e){"Module D"===e&&(this.referenceData=this.moduleDReferenceData,this.referenceDefinition=this.moduleDReferenceDefinition)}validateSubsetMembers(){var e=this;return Oi(function*(){e.validatingMembers=!0,e.membersValidationResult="",e.studentSubsetDefinition&&e.validateExpansion();let n=0,r=0;const a=(yield e.terminologyService.expandValueSet(e.studentSubsetDefinition,"").toPromise()).expansion.contains.map(d=>d.code);a.sort((d,u)=>d.localeCompare(u));const s=e.studentSubsetMembersDataSource.data.map(d=>d.referencedComponentId);s.sort((d,u)=>d.localeCompare(u)),e.definitionVsMembersValudationResult=a.length===s.length&&a.every((d,u)=>d===s[u])?`${e.ok} The members list contains exactly the same concepts as the definition expansion`:`${e.error} The members list does not contain exactly the same concepts as the definition expansion`,e.studentSubsetMembersDataSource.data.forEach(d=>{e.referenceData.find(h=>h.referencedComponentId===d.referencedComponentId)?(d.result={value:"Correct",message:""},n++):(d.result={value:"Not acceptable",message:"Subset member not found in reference data"},r++)}),e.validatingMembers=!1,e.membersValidationResult=`${r>0?e.error:e.ok} The student Members list contains ${n} correct concepts, and ${r} incorrect concepts, based on the exercise reference data`})()}validateExpansion(){var e=this;return Oi(function*(){e.validatingDefinition=!0,e.definitionValidationResult="";let n=yield e.terminologyService.expandValueSet(e.studentSubsetDefinition,"").toPromise(),r=yield e.terminologyService.expandValueSet(e.referenceDefinition,"").toPromise(),o=0;e.studentSubsetMembersDataSource.data.forEach(c=>{r.expansion.contains.find(d=>d.code===c.referencedComponentId)?c.scope={value:"Not in expansion",message:""}:(c.scope={value:"In expansion",message:""},o++)});const a=Math.round(o/n.expansion.contains.length*100);e.validatingDefinition=!1,e.definitionValidationResult=`${o>0?e.error:e.ok} The student ECL Definition Expasion contains ${o} concepts that out of scope from expected answer (${a}%)`})()}onSubsetmembersFileSelected(e){this.studentSubsetmembers=[],this.studentSubsetMembersDataSource=new Yh,this.studentSubsetMembersDataSource.sort=this.sort,this.loading=!0;const n=e.target.files?.[0];if(n){const r=new FileReader;r.onload=o=>{try{const s=r.result.split("\n"),c=s[0].split("\t");if(c.length<2)throw new Error("Invalid file format");const l=c.indexOf("referencedComponentId"),d=c.indexOf("name");if(l<0||d<0)throw new Error("Invalid file format");const u=[];for(let h=1;hh.name.localeCompare(f.name)),this.studentSubsetMembersDataSource.data=u,this.loading=!1}catch(a){this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Error reading file: "+a.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(n)}else this.loading=!1}onDefinitionFileSelected(e){this.studentSubsetDefinition="",this.loading=!0;const n=e.target.files?.[0];if(n){const r=new FileReader;r.onload=o=>{try{const c=r.result.replace(/\r/g,"").split("\n"),l=c[0].split("\t");if(l.length<2)throw new Error("Invalid file format");const d=l.indexOf("referencedComponentId"),u=l.indexOf("definition");if(d<0||u<0)throw new Error("Invalid file format");this.studentSubsetDefinition=c[1].split("\t")[u],this.loading=!1}catch(a){this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Error reading file: "+a.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(n)}else this.loading=!1}}return t.\u0275fac=function(e){return new(e||t)(b(Ns),b(Nr),b(Nd))},t.\u0275cmp=Ve({type:t,selectors:[["app-subset-validator"]],viewQuery:function(e,n){if(1&e&&st(Jc,5),2&e){let r;ye(r=we())&&(n.sort=r.first)}},decls:43,vars:8,consts:[[1,"layout-container"],[1,"left-column"],[1,"upload-controls"],["class","terminal-style",4,"ngIf"],["type","file",2,"display","none",3,"change"],["fileInput",""],["fileInputDefinition",""],[1,"buttons-panel"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","primary",3,"disabled","click"],["class","spinner","diameter","30",4,"ngIf"],["class","blue-rounded-div",4,"ngIf"],["class","table-container",4,"ngIf"],[1,"right-column"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],[1,"wide-menu"],["demosMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"instructions"],[1,"terminal-style"],["diameter","30",1,"spinner"],[1,"blue-rounded-div"],[1,"validation-result"],[1,"table-container"],["mat-table","",3,"dataSource"],["matColumnDef","referencedComponentId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","result"],["matColumnDef","scope"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(e,n){if(1&e){const r=Je();v(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3"),E(4,"Subset Members Validator"),y(),v(5,"p"),E(6),y(),H(7,Jre,2,1,"p",3),v(8,"input",4,5),X("change",function(a){return n.onSubsetmembersFileSelected(a)}),y(),v(10,"input",4,6),X("change",function(a){return n.onDefinitionFileSelected(a)}),y(),v(12,"div",7)(13,"button",8),X("click",function(){return Me(r),Ae(Nt(11).click())}),E(14,"Upload Definition File"),y(),v(15,"button",8),X("click",function(){return Me(r),Ae(Nt(9).click())}),E(16,"Upload Members File"),y(),v(17,"button",9),X("click",function(){return n.validateSubsetMembers()}),E(18,"Validate"),y(),H(19,eoe,1,0,"mat-spinner",10),y(),H(20,toe,9,3,"div",11),y(),H(21,hoe,16,3,"div",12),y(),v(22,"div",13)(23,"h3"),E(24,"Assignment"),y(),v(25,"button",14),E(26),y(),v(27,"mat-menu",15,16)(29,"button",17),X("click",function(){return n.setAssignment("moduleD")}),E(30,"Module D Assignment"),y()(),v(31,"h3"),E(32,"Instructions"),y(),v(33,"div",18)(34,"ol")(35,"li"),E(36,"Select assignment"),y(),v(37,"li"),E(38,"Upload definition file"),y(),v(39,"li"),E(40,"Upload members file"),y(),v(41,"li"),E(42,"Click validate"),y()()()()()}if(2&e){const r=Nt(28);k(6),It("Validating against ",n.terminologyService.getFhirUrlParam(),""),k(1),T("ngIf",n.studentSubsetDefinition),k(10),T("disabled",!n.studentSubsetDefinition||!n.studentSubsetMembersDataSource.data.length),k(2),T("ngIf",n.loading||n.validatingMembers||n.validatingDefinition),k(1),T("ngIf",n.definitionValidationResult||n.membersValidationResult),k(1),T("ngIf",!n.loading&&n.studentSubsetMembersDataSource.data.length),k(4),T("matMenuTriggerFor",r),k(1),It("Selected assignment: ",n.selectedAssignment,"")}},dependencies:[fn,Lr,jc,wa,Wc,Bd,Wh,$d,Gh,jd,zd,qh,Wd,Gd,Xh,Qh],styles:["[_nghost-%COMP%]{display:block;height:calc(100% - 65px)}.layout-container[_ngcontent-%COMP%]{display:flex;height:100%}.left-column[_ngcontent-%COMP%]{flex:0 0 68%;display:flex;flex-direction:column;height:100%}.right-column[_ngcontent-%COMP%]{flex:0 0 28%}.buttons-panel[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1rem}.upload-controls[_ngcontent-%COMP%], .table-container[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.table-container[_ngcontent-%COMP%]{overflow-y:auto}.upload-controls[_ngcontent-%COMP%]{margin-left:20px}table[_ngcontent-%COMP%]{width:100%}.validation-result[_ngcontent-%COMP%]{font-weight:400;font-size:smaller}.blue-rounded-div[_ngcontent-%COMP%]{border-radius:10px;background-color:#4d7fb4;padding:10px;width:80%;color:#f5f5f5;margin-top:20px}.terminal-style[_ngcontent-%COMP%]{font-family:monospace;font-size:.9rem;background-color:#000;color:#fff;padding:10px;border-radius:10px;margin-top:20px;width:80%}h4[_ngcontent-%COMP%]{margin-top:10px}.instructions[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px;font-weight:lighter;font-size:larger}"]}),t})()}];let moe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[KA.forRoot(foe,{useHash:!0}),KA]}),t})();const poe=[{title:"GROUP 1",description:"The first group of bindings in the coding demonstration",bindings:[{title:"Medicinal product + groupers",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n [0..0] 1142139005 |Count of base of active ingredient| = *,\n [0..0] 411116001 |Has manufactured dose form| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, contain at least provided ingredientes (open world assuption), no information on form."},{title:"Gender",type:"dropdown",ecl:"< 365873007 |Gender finding (finding)|",value:"",note:"Patient gender."},{title:"Medicinal product form + groupers",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n [0..0] 1142139005 |Count of base of active ingredient| = *,\n 411116001 |Has manufactured dose form| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, with form details."}]},{title:"GROUP 2",description:"The second group of bindings in the coding demonstration",bindings:[{title:"Medicinal product only",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n 1142139005 |Count of base of active ingredient| = *,\n [0..0] 411116001 |Has manufactured dose form| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, containing only the provided ingredientes (close world assuption), with no information on form."},{title:"Medicinal product form only",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n 1142139005 |Count of base of active ingredient| = *,\n 411116001 |Has manufactured dose form| = *,\n [0..0] 732943007 |Has basis of strength substance (attribute)| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, with form details, containing only the provided ingredientes (close world assuption)."}]}];let goe=(()=>{class t{constructor(){}getCodingSpec(){return poe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Mt,pf={version:"0.19.3"},Fn=1200,el=1252,_oe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],iw={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},E0=function(t){-1!=_oe.indexOf(t)&&(el=iw[0]=t)},Do=function(t){Fn=t,E0(t)};var gf=function(i){return String.fromCharCode(i)},nw=function(i){return String.fromCharCode(i)},an=null,vP=!0,So="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function A0(t){for(var i="",e=0,n=0,r=0,o=0,a=0,s=0,c=0,l=0;l>2,a=(3&e)<<4|(n=t.charCodeAt(l++))>>4,s=(15&n)<<2|(r=t.charCodeAt(l++))>>6,c=63&r,isNaN(n)?s=c=64:isNaN(r)&&(c=64),i+=So.charAt(o)+So.charAt(a)+So.charAt(s)+So.charAt(c);return i}function io(t){var i="",o=0,a=0,s=0,c=0;t=t.replace(/^data:([^\/]+\/[^\/]+)?;base64\,/,"").replace(/[^\w\+\/\=]/g,"");for(var l=0;l>4),64!==(s=So.indexOf(t.charAt(l++)))&&(i+=String.fromCharCode((15&a)<<4|s>>2)),64!==(c=So.indexOf(t.charAt(l++)))&&(i+=String.fromCharCode((3&s)<<6|c));return i}var Vt=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Sa=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(i,e){return e?new Buffer(i,e):new Buffer(i)}:Buffer.from.bind(Buffer)}return function(){}}(),_f=function(){if(typeof Buffer>"u")return!1;var t=Sa([65,0]);return!!t&&1==t.toString("utf16le").length}();function Xs(t){return Vt?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function xP(t){return Vt?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var kr=function(i){return Vt?Sa(i,"binary"):i.split("").map(function(e){return 255&e.charCodeAt(0)})};function bf(t){if(typeof ArrayBuffer>"u")return kr(t);for(var i=new ArrayBuffer(t.length),e=new Uint8Array(i),n=0;n!=t.length;++n)e[n]=255&t.charCodeAt(n);return i}function Ea(t){if(Array.isArray(t))return t.map(function(n){return String.fromCharCode(n)}).join("");for(var i=[],e=0;e=0;)i+=t.charAt(e--);return i}function Ko(t,i){var e=""+t;return e.length>=i?e:ri("0",i-e.length)+e}function ow(t,i){var e=""+t;return e.length>=i?e:ri(" ",i-e.length)+e}function I0(t,i){var e=""+t;return e.length>=i?e:e+ri(" ",i-e.length)}var yP=Math.pow(2,32);function tu(t,i){return t>yP||t<-yP?function koe(t,i){var e=""+Math.round(t);return e.length>=i?e:ri("0",i-e.length)+e}(t,i):function Doe(t,i){var e=""+t;return e.length>=i?e:ri("0",i-e.length)+e}(Math.round(t),i)}function F0(t,i){return t.length>=7+(i=i||0)&&103==(32|t.charCodeAt(i))&&101==(32|t.charCodeAt(i+1))&&110==(32|t.charCodeAt(i+2))&&101==(32|t.charCodeAt(i+3))&&114==(32|t.charCodeAt(i+4))&&97==(32|t.charCodeAt(i+5))&&108==(32|t.charCodeAt(i+6))}var wP=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],aw=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],ut={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "'},CP={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Eoe={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function R0(t,i,e){for(var n=t<0?-1:1,r=t*n,o=0,a=1,s=0,c=1,l=0,d=0,u=Math.floor(r);li&&(l>i?(d=c,s=o):(d=l,s=a)),!e)return[0,n*s,d];var h=Math.floor(n*s/d);return[h,n*s-h*d,d]}function Qs(t,i,e){if(t>2958465||t<0)return null;var n=0|t,r=Math.floor(86400*(t-n)),o=0,a=[],s={D:n,T:r,u:86400*(t-n)-r,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),i&&i.date1904&&(n+=1462),s.u>.9999&&(s.u=0,86400==++r&&(s.T=r=0,++n,++s.D)),60===n)a=e?[1317,10,29]:[1900,2,29],o=3;else if(0===n)a=e?[1317,8,29]:[1900,1,0],o=6;else{n>60&&--n;var c=new Date(1900,0,1);c.setDate(c.getDate()+n-1),a=[c.getFullYear(),c.getMonth()+1,c.getDate()],o=c.getDay(),n<60&&(o=(o+6)%7),e&&(o=function Roe(t,i){i[0]-=581;var e=t.getDay();return t<60&&(e=(e+6)%7),e}(c,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=r%60,r=Math.floor(r/60),s.M=r%60,r=Math.floor(r/60),s.H=r,s.q=o,s}var kP=new Date(1899,11,31,0,0,0),Toe=kP.getTime(),Moe=new Date(1900,2,1,0,0,0);function DP(t,i){var e=t.getTime();return i?e-=1262304e5:t>=Moe&&(e+=864e5),(e-(Toe+6e4*(t.getTimezoneOffset()-kP.getTimezoneOffset())))/864e5}function sw(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function tl(t,i){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):function xf(t){var e,i=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return e=i>=-4&&i<=-1?t.toPrecision(10+i):Math.abs(i)<=9?function Ioe(t){var i=t<0?12:11,e=sw(t.toFixed(12));return e.length<=i||(e=t.toPrecision(10)).length<=i?e:t.toExponential(5)}(t):10===i?t.toFixed(10).substr(0,12):function Foe(t){var i=sw(t.toFixed(11));return i.length>(t<0?12:11)||"0"===i||"-0"===i?t.toPrecision(6):i}(t),sw(function Aoe(t){return-1==t.indexOf("E")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(e.toUpperCase()))}(t);case"undefined":return"";case"object":if(null==t)return"";if(t instanceof Date)return Vr(14,DP(t,i&&i.date1904),i)}throw new Error("unsupported value in General format: "+t)}function Ooe(t,i,e,n){var c,r="",o=0,a=0,s=e.y,l=0;switch(t){case 98:s=e.y+543;case 121:switch(i.length){case 1:case 2:c=s%100,l=2;break;default:c=s%1e4,l=4}break;case 109:switch(i.length){case 1:case 2:c=e.m,l=i.length;break;case 3:return aw[e.m-1][1];case 5:return aw[e.m-1][0];default:return aw[e.m-1][2]}break;case 100:switch(i.length){case 1:case 2:c=e.d,l=i.length;break;case 3:return wP[e.q][0];default:return wP[e.q][1]}break;case 104:switch(i.length){case 1:case 2:c=1+(e.H+11)%12,l=i.length;break;default:throw"bad hour format: "+i}break;case 72:switch(i.length){case 1:case 2:c=e.H,l=i.length;break;default:throw"bad hour format: "+i}break;case 77:switch(i.length){case 1:case 2:c=e.M,l=i.length;break;default:throw"bad minute format: "+i}break;case 115:if("s"!=i&&"ss"!=i&&".0"!=i&&".00"!=i&&".000"!=i)throw"bad second format: "+i;return 0!==e.u||"s"!=i&&"ss"!=i?(a=n>=2?3===n?1e3:100:1===n?10:1,(o=Math.round(a*(e.S+e.u)))>=60*a&&(o=0),"s"===i?0===o?"0":""+o/a:(r=Ko(o,2+n),"ss"===i?r.substr(0,2):"."+r.substr(2,i.length-1))):Ko(e.S,i.length);case 90:switch(i){case"[h]":case"[hh]":c=24*e.D+e.H;break;case"[m]":case"[mm]":c=60*(24*e.D+e.H)+e.M;break;case"[s]":case"[ss]":c=60*(60*(24*e.D+e.H)+e.M)+Math.round(e.S+e.u);break;default:throw"bad abstime format: "+i}l=3===i.length?1:2;break;case 101:c=s,l=1}return l>0?Ko(c,l):""}function us(t){if(t.length<=3)return t;for(var e=t.length%3,n=t.substr(0,e);e!=t.length;e+=3)n+=(n.length>0?",":"")+t.substr(e,3);return n}var SP=/%/g;function EP(t,i){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==i)return"0.0E+0";if(i<0)return"-"+EP(t,-i);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var o=Math.floor(Math.log(i)*Math.LOG10E)%r;if(o<0&&(o+=r),-1===(e=(i/Math.pow(10,o)).toPrecision(n+1+(r+o)%r)).indexOf("e")){var a=Math.floor(Math.log(i)*Math.LOG10E);for(-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(a-e.length+o):e+="E+"+(a-o);"0."===e.substr(0,2);)e=(e=e.charAt(0)+e.substr(2,r)+"."+e.substr(2+r)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,c,l,d){return c+l+d.substr(0,(r+o)%r)+"."+d.substr(o)+"E"})}else e=i.toExponential(n);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}var TP=/# (\?+)( ?)\/( ?)(\d+)/,MP=/^#*0*\.([0#]+)/,AP=/\).*[0#]/,IP=/\(###\) ###\\?-####/;function Dr(t){for(var e,i="",n=0;n!=t.length;++n)switch(e=t.charCodeAt(n)){case 35:break;case 63:i+=" ";break;case 48:i+="0";break;default:i+=String.fromCharCode(e)}return i}function FP(t,i){var e=Math.pow(10,i);return""+Math.round(t*e)/e}function RP(t,i){var e=t-Math.floor(t),n=Math.pow(10,i);return i<(""+Math.round(e*n)).length?0:Math.round(e*n)}function Eo(t,i,e){if(40===t.charCodeAt(0)&&!i.match(AP)){var n=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Eo("n",n,e):"("+Eo("n",n,-e)+")"}if(44===i.charCodeAt(i.length-1))return function Loe(t,i,e){for(var n=i.length-1;44===i.charCodeAt(n-1);)--n;return hs(t,i.substr(0,n),e/Math.pow(10,3*(i.length-n)))}(t,i,e);if(-1!==i.indexOf("%"))return function Poe(t,i,e){var n=i.replace(SP,""),r=i.length-n.length;return hs(t,n,e*Math.pow(10,2*r))+ri("%",r)}(t,i,e);if(-1!==i.indexOf("E"))return EP(i,e);if(36===i.charCodeAt(0))return"$"+Eo(t,i.substr(" "==i.charAt(1)?2:1),e);var r,o,a,s,c=Math.abs(e),l=e<0?"-":"";if(i.match(/^00+$/))return l+tu(c,i.length);if(i.match(/^[#?]+$/))return"0"===(r=tu(e,0))&&(r=""),r.length>i.length?r:Dr(i.substr(0,i.length-r.length))+r;if(o=i.match(TP))return function Noe(t,i,e){var n=parseInt(t[4],10),r=Math.round(i*n),o=Math.floor(r/n),a=r-o*n,s=n;return e+(0===o?"":""+o)+" "+(0===a?ri(" ",t[1].length+1+t[4].length):ow(a,t[1].length)+t[2]+"/"+t[3]+Ko(s,t[4].length))}(o,c,l);if(i.match(/^#+0+$/))return l+tu(c,i.length-i.indexOf("0"));if(o=i.match(MP))return r=FP(e,o[1].length).replace(/^([^\.]+)$/,"$1."+Dr(o[1])).replace(/\.$/,"."+Dr(o[1])).replace(/\.(\d*)$/,function(m,g){return"."+g+ri("0",Dr(o[1]).length-g.length)}),-1!==i.indexOf("0.")?r:r.replace(/^0\./,".");if(i=i.replace(/^#+([0.])/,"$1"),o=i.match(/^(0*)\.(#*)$/))return l+FP(c,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=i.match(/^#{1,3},##0(\.?)$/))return l+us(tu(c,0));if(o=i.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Eo(t,i,-e):us(""+(Math.floor(e)+function Voe(t,i){return i<(""+Math.round((t-Math.floor(t))*Math.pow(10,i))).length?1:0}(e,o[1].length)))+"."+Ko(RP(e,o[1].length),o[1].length);if(o=i.match(/^#,#*,#0/))return Eo(t,i.replace(/^#,#*,/,""),e);if(o=i.match(/^([0#]+)(\\?-([0#]+))+$/))return r=eu(Eo(t,i.replace(/[\\-]/g,""),e)),a=0,eu(eu(i.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}(e)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Ko(0,3-m.length):"")+m})+"."+Ko(a,o[1].length);switch(i){case"###,##0.00":return Eo(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var f=us(tu(c,0));return"0"!==f?l+f:"";case"###,###.00":return Eo(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return Eo(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+i+"|")}function OP(t,i){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==i)return"0.0E+0";if(i<0)return"-"+OP(t,-i);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var o=Math.floor(Math.log(i)*Math.LOG10E)%r;if(o<0&&(o+=r),!(e=(i/Math.pow(10,o)).toPrecision(n+1+(r+o)%r)).match(/[Ee]/)){var a=Math.floor(Math.log(i)*Math.LOG10E);-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(a-e.length+o):e+="E+"+(a-o),e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,c,l,d){return c+l+d.substr(0,(r+o)%r)+"."+d.substr(o)+"E"})}else e=i.toExponential(n);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}function Ta(t,i,e){if(40===t.charCodeAt(0)&&!i.match(AP)){var n=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Ta("n",n,e):"("+Ta("n",n,-e)+")"}if(44===i.charCodeAt(i.length-1))return function Uoe(t,i,e){for(var n=i.length-1;44===i.charCodeAt(n-1);)--n;return hs(t,i.substr(0,n),e/Math.pow(10,3*(i.length-n)))}(t,i,e);if(-1!==i.indexOf("%"))return function zoe(t,i,e){var n=i.replace(SP,""),r=i.length-n.length;return hs(t,n,e*Math.pow(10,2*r))+ri("%",r)}(t,i,e);if(-1!==i.indexOf("E"))return OP(i,e);if(36===i.charCodeAt(0))return"$"+Ta(t,i.substr(" "==i.charAt(1)?2:1),e);var r,o,a,s,c=Math.abs(e),l=e<0?"-":"";if(i.match(/^00+$/))return l+Ko(c,i.length);if(i.match(/^[#?]+$/))return r=""+e,0===e&&(r=""),r.length>i.length?r:Dr(i.substr(0,i.length-r.length))+r;if(o=i.match(TP))return function Boe(t,i,e){return e+(0===i?"":""+i)+ri(" ",t[1].length+2+t[4].length)}(o,c,l);if(i.match(/^#+0+$/))return l+Ko(c,i.length-i.indexOf("0"));if(o=i.match(MP))return r=(r=(""+e).replace(/^([^\.]+)$/,"$1."+Dr(o[1])).replace(/\.$/,"."+Dr(o[1]))).replace(/\.(\d*)$/,function(m,g){return"."+g+ri("0",Dr(o[1]).length-g.length)}),-1!==i.indexOf("0.")?r:r.replace(/^0\./,".");if(i=i.replace(/^#+([0.])/,"$1"),o=i.match(/^(0*)\.(#*)$/))return l+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=i.match(/^#{1,3},##0(\.?)$/))return l+us(""+c);if(o=i.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Ta(t,i,-e):us(""+e)+"."+ri("0",o[1].length);if(o=i.match(/^#,#*,#0/))return Ta(t,i.replace(/^#,#*,/,""),e);if(o=i.match(/^([0#]+)(\\?-([0#]+))+$/))return r=eu(Ta(t,i.replace(/[\\-]/g,""),e)),a=0,eu(eu(i.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a-1||"\\"==e&&"-"==t.charAt(i+1)&&"0#".indexOf(t.charAt(i+2))>-1););break;case"?":for(;t.charAt(++i)===e;);break;case"*":++i,(" "==t.charAt(i)||"*"==t.charAt(i))&&++i;break;case"(":case")":++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;i-1;);break;default:++i}return!1}var LP=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function NP(t,i){if(null==i)return!1;var e=parseFloat(i[2]);switch(i[1]){case"=":if(t==e)return!0;break;case">":if(t>e)return!0;break;case"<":if(t":if(t!=e)return!0;break;case">=":if(t>=e)return!0;break;case"<=":if(t<=e)return!0}return!1}function Vr(t,i,e){null==e&&(e={});var n="";switch(typeof t){case"string":n="m/d/yy"==t&&e.dateNF?e.dateNF:t;break;case"number":null==(n=14==t&&e.dateNF?e.dateNF:(null!=e.table?e.table:ut)[t])&&(n=e.table&&e.table[CP[t]]||ut[CP[t]]),null==n&&(n=Eoe[t]||"General")}if(F0(n,0))return tl(i,e);i instanceof Date&&(i=DP(i,e.date1904));var r=function Woe(t,i){var e=function $oe(t){for(var i=[],e=!1,n=0,r=0;n-1&&--n,e.length>4)throw new Error("cannot find right format for |"+e.join("|")+"|");if("number"!=typeof i)return[4,4===e.length||r>-1?e[e.length-1]:"@"];switch(e.length){case 1:e=r>-1?["General","General","General",e[0]]:[e[0],e[0],e[0],"@"];break;case 2:e=r>-1?[e[0],e[0],e[0],e[1]]:[e[0],e[1],e[0],"@"];break;case 3:e=r>-1?[e[0],e[1],e[0],e[2]]:[e[0],e[1],e[2],"@"]}var o=i>0?e[0]:i<0?e[1]:e[2];if(-1===e[0].indexOf("[")&&-1===e[1].indexOf("["))return[n,o];if(null!=e[0].match(/\[[=<>]/)||null!=e[1].match(/\[[=<>]/)){var a=e[0].match(LP),s=e[1].match(LP);return NP(i,a)?[n,e[0]]:NP(i,s)?[n,e[1]]:[n,e[null!=a&&null!=s?2:1]]}return[n,o]}(n,i);if(F0(r[1]))return tl(i,e);if(!0===i)i="TRUE";else if(!1===i)i="FALSE";else if(""===i||null==i)return"";return function joe(t,i,e,n){for(var l,d,u,r=[],o="",a=0,s="",c="t",h="H";a=12?t.charAt(a+2):s),g.t="T",h="h",a+=3):"AM/PM"===t.substr(a,5).toUpperCase()?(null!=l&&(g.v=l.H>=12?"PM":"AM"),g.t="T",a+=5,h="h"):"\u4e0a\u5348/\u4e0b\u5348"===t.substr(a,5).toUpperCase()?(null!=l&&(g.v=l.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),g.t="T",a+=5,h="h"):(g.t="t",++a),null==l&&"T"===g.t)return"";r[r.length]=g,c=s;break;case"[":for(o=s;"]"!==t.charAt(a++)&&a-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",Ys(t)||(r[r.length]={t:"t",v:o}));break;case".":if(null!=l){for(o=s;++a-1;)o+=s;r[r.length]={t:"n",v:o};break;case"?":for(o=s;t.charAt(++a)===s;)o+=s;r[r.length]={t:s,v:o},c=s;break;case"*":++a,(" "==t.charAt(a)||"*"==t.charAt(a))&&++a;break;case"(":case")":r[r.length]={t:1===n?"t":s,v:s},++a;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=s;a-1;)o+=t.charAt(a);r[r.length]={t:"D",v:o};break;case" ":r[r.length]={t:s,v:s},++a;break;case"$":r[r.length]={t:"t",v:"$"},++a;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(s))throw new Error("unrecognized character "+s+" in "+t);r[r.length]={t:"t",v:s},++a}var w,p=0,_=0;for(a=r.length-1,c="t";a>=0;--a)switch(r[a].t){case"h":case"H":r[a].t=h,c="h",p<1&&(p=1);break;case"s":(w=r[a].v.match(/\.0+$/))&&(_=Math.max(_,w[0].length-1)),p<3&&(p=3);case"d":case"y":case"M":case"e":c=r[a].t;break;case"m":"s"===c&&(r[a].t="M",p<2&&(p=2));break;case"X":break;case"Z":p<1&&r[a].v.match(/[Hh]/)&&(p=1),p<2&&r[a].v.match(/[Mm]/)&&(p=2),p<3&&r[a].v.match(/[Ss]/)&&(p=3)}switch(p){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M)}var M,x="";for(a=0;a0){40==x.charCodeAt(0)?(L=i<0&&45===x.charCodeAt(0)?-i:i,D=hs("n",x,L)):(D=hs("n",x,L=i<0&&n>1?-i:i),L<0&&r[0]&&"t"==r[0].t&&(D=D.substr(1),r[0].v="-"+r[0].v)),M=D.length-1;var B=r.length;for(a=0;a-1){B=a;break}var N=r.length;if(B===r.length&&-1===D.indexOf("E")){for(a=r.length-1;a>=0;--a)null==r[a]||-1==="n?".indexOf(r[a].t)||(M>=r[a].v.length-1?r[a].v=D.substr(1+(M-=r[a].v.length),r[a].v.length):M<0?r[a].v="":(r[a].v=D.substr(0,M+1),M=-1),r[a].t="t",N=a);M>=0&&N=0;--a)if(null!=r[a]&&-1!=="n?".indexOf(r[a].t)){for(d=r[a].v.indexOf(".")>-1&&a===B?r[a].v.indexOf(".")-1:r[a].v.length-1,W=r[a].v.substr(d+1);d>=0;--d)M>=0&&("0"===r[a].v.charAt(d)||"#"===r[a].v.charAt(d))&&(W=D.charAt(M--)+W);r[a].v=W,r[a].t="t",N=a}for(M>=0&&N-1&&a===B?r[a].v.indexOf(".")+1:0,W=r[a].v.substr(0,d);d-1&&(r[a].v=hs(r[a].t,r[a].v,L=n>1&&i<0&&a>0&&"-"===r[a-1].v?-i:i),r[a].t="t");var j="";for(a=0;a!==r.length;++a)null!=r[a]&&(j+=r[a].v);return j}(r[1],i,e,r[0])}function cw(t,i){if("number"!=typeof i){i=+i||-1;for(var e=0;e<392;++e)if(null!=ut[e]){if(ut[e]==t){i=e;break}}else i<0&&(i=e);i<0&&(i=391)}return ut[i]=t,i}function yf(t){for(var i=0;392!=i;++i)void 0!==t[i]&&cw(t[i],i)}function iu(){ut=function Soe(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "',t}()}var VP=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,Qoe={"d.m":"d\\.m"};function Ks(t,i){return cw(Qoe[t]||t,i)}var fs,HP=function(){var t={version:"1.2.0"},e=function i(){for(var D=0,B=new Array(256),N=0;256!=N;++N)B[N]=D=1&(D=1&(D=1&(D=1&(D=1&(D=1&(D=1&(D=1&(D=N)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1;return typeof Int32Array<"u"?new Int32Array(B):B}(),r=function n(D){var B=0,N=0,j=0,Z=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(j=0;256!=j;++j)Z[j]=D[j];for(j=0;256!=j;++j)for(N=D[j],B=256+j;B<4096;B+=256)N=Z[B]=N>>>8^D[255&N];var U=[];for(j=1;16!=j;++j)U[j-1]=typeof Int32Array<"u"&&"function"==typeof Z.subarray?Z.subarray(256*j,256*j+256):Z.slice(256*j,256*j+256);return U}(e),o=r[0],a=r[1],s=r[2],c=r[3],l=r[4],d=r[5],u=r[6],h=r[7],f=r[8],m=r[9],g=r[10],p=r[11],_=r[12],w=r[13],x=r[14];return t.table=e,t.bstr=function M(D,B){for(var N=-1^B,j=0,Z=D.length;j>>8^e[255&(N^D.charCodeAt(j++))];return~N},t.buf=function W(D,B){for(var N=-1^B,j=D.length-15,Z=0;Z>8&255]^_[D[Z++]^N>>16&255]^p[D[Z++]^N>>>24]^g[D[Z++]]^m[D[Z++]]^f[D[Z++]]^h[D[Z++]]^u[D[Z++]]^d[D[Z++]]^l[D[Z++]]^c[D[Z++]]^s[D[Z++]]^a[D[Z++]]^o[D[Z++]]^e[D[Z++]];for(j+=15;Z>>8^e[255&(N^D[Z++])];return~N},t.str=function L(D,B){for(var N=-1^B,j=0,Z=D.length,U=0,me=0;j>>8^e[255&(N^U)]:U<2048?N=(N=N>>>8^e[255&(N^(192|U>>6&31))])>>>8^e[255&(N^(128|63&U))]:U>=55296&&U<57344?(U=64+(1023&U),me=1023&D.charCodeAt(j++),N=(N=(N=(N=N>>>8^e[255&(N^(240|U>>8&7))])>>>8^e[255&(N^(128|U>>2&63))])>>>8^e[255&(N^(128|me>>6&15|(3&U)<<4))])>>>8^e[255&(N^(128|63&me))]):N=(N=(N=N>>>8^e[255&(N^(224|U>>12&15))])>>>8^e[255&(N^(128|U>>6&63))])>>>8^e[255&(N^(128|63&U))];return~N},t}(),lt=function(){var c,i={};function n(C){if("/"==C.charAt(C.length-1))return-1===C.slice(0,-1).indexOf("/")?C:n(C.slice(0,-1));var R=C.lastIndexOf("/");return-1===R?C:C.slice(0,R+1)}function r(C){if("/"==C.charAt(C.length-1))return r(C.slice(0,-1));var R=C.lastIndexOf("/");return-1===R?C:C.slice(R+1)}function o(C,R){"string"==typeof R&&(R=new Date(R));var S=R.getHours();S=(S=S<<6|R.getMinutes())<<5|R.getSeconds()>>>1,C.write_shift(2,S);var I=R.getFullYear()-1980;I=(I=I<<4|R.getMonth()+1)<<5|R.getDate(),C.write_shift(2,I)}function s(C){On(C,0);for(var R={},S=0;C.l<=C.length-4;){var I=C.read_shift(2),O=C.read_shift(2),P=C.l+O,ee={};switch(I){case 21589:1&(S=C.read_shift(1))&&(ee.mtime=C.read_shift(4)),O>5&&(2&S&&(ee.atime=C.read_shift(4)),4&S&&(ee.ctime=C.read_shift(4))),ee.mtime&&(ee.mt=new Date(1e3*ee.mtime));break;case 1:var le=C.read_shift(4),J=C.read_shift(4);ee.usz=J*Math.pow(2,32)+le,le=C.read_shift(4),J=C.read_shift(4),ee.csz=J*Math.pow(2,32)+le}C.l=P,R[I]=ee}return R}function l(){return c||(c=fs)}function d(C,R){if(80==C[0]&&75==C[1])return O3(C,R);if(109==(32|C[0])&&105==(32|C[1]))return function Vve(C,R){if("mime-version:"!=se(C.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var S=R&&R.root||"",I=(Vt&&Buffer.isBuffer(C)?C.toString("binary"):se(C)).split("\r\n"),O=0,P="";for(O=0;O0&&(S=(S=S.slice(0,S.length-1)).slice(0,S.lastIndexOf("/")+1),P.slice(0,S.length)!=S););var ee=(I[1]||"").match(/boundary="(.*?)"/);if(!ee)throw new Error("MAD cannot find boundary");var le="--"+(ee[1]||""),ie={FileIndex:[],FullPaths:[]};D(ie);var De,Te=0;for(O=0;O=O&&(Te-=O),!ee[Te]){J=[];var Oe=[];for(De=Te;De>=0;){Oe[De]=!0,ee[De]=!0,le[le.length]=De,J.push(C[De]);var Ce=S[Math.floor(4*De/I)];if(I<4+(Ye=4*De&te))throw new Error("FAT boundary crossed: "+De+" 4 "+I);if(!C[Ce]||Oe[De=rl(C[Ce],Ye)])break}P[Te]={nodes:le,data:l4([J])}}return P}(Dt,ee,te,I);ee0&&le!==me&&(Ni[le].name="!MiniFAT"),Ni[te[0]].name="!FAT",Ni.fat_addrs=te,Ni.ssz=I;var Sn=[],so=[],sm=[];(function x(C,R,S,I,O,P,ee,le){for(var Ye,J=0,te=I.length?2:0,ie=R[C].data,De=0,Te=0;De0&&J!==me&&(R[J].name="!StreamData")):Ce.size>=4096?(Ce.storage="fat",void 0===R[Ce.start]&&(R[Ce.start]=_(S,Ce.start,R.fat_addrs,R.ssz)),R[Ce.start].name=Ce.name,Ce.content=R[Ce.start].data.slice(0,Ce.size)):(Ce.storage="minifat",Ce.size<0?Ce.size=0:J!==me&&Ce.start!==me&&R[J]&&(Ce.content=g(Ce,R[J].data,(R[le]||{}).data))),Ce.content&&On(Ce.content,0),P[Ye]=Ce,ee.push(Ce)}})(ee,Ni,Dt,Sn,O,{},so,le),function m(C,R,S){for(var I=0,O=0,P=0,ee=0,le=0,J=S.length,te=[],ie=[];I0&&ee>=0;)P.push(R.slice(ee*U,ee*U+U)),O-=U,ee=rl(S,4*ee);return 0===P.length?re(0):xn(P).slice(0,C.size)}function p(C,R,S,I,O){var P=me;if(C===me){if(0!==R)throw new Error("DIFAT chain shorter than expected")}else if(-1!==C){var ee=S[C],le=(I>>>2)-1;if(!ee)return;for(var J=0;J=1&&p(rl(ee,I-4),R-1,S,I,O)}}function _(C,R,S,I,O){var P=[],ee=[];O||(O=[]);var le=I-1,J=0,te=0;for(J=R;J>=0;){O[J]=!0,P[P.length]=J,ee.push(C[J]);var ie=S[Math.floor(4*J/I)];if(I<4+(te=4*J&le))throw new Error("FAT boundary crossed: "+J+" 4 "+I);if(!C[ie])break;J=rl(C[ie],te)}return{nodes:P,data:l4([ee])}}function M(C,R){return new Date(1e3*(zn(C,R+4)/1e7*Math.pow(2,32)+zn(C,R)/1e7-11644473600))}function D(C,R){var S=R||{},I=S.root||"Root Entry";if(C.FullPaths||(C.FullPaths=[]),C.FileIndex||(C.FileIndex=[]),C.FullPaths.length!==C.FileIndex.length)throw new Error("inconsistent CFB structure");0===C.FullPaths.length&&(C.FullPaths[0]=I+"/",C.FileIndex[0]={name:I,type:5}),S.CLSID&&(C.FileIndex[0].clsid=S.CLSID),function B(C){var R="\x01Sh33tJ5";if(!lt.find(C,"/"+R)){var S=re(4);S[0]=55,S[1]=S[3]=50,S[2]=54,C.FileIndex.push({name:R,type:2,content:S,size:4,L:69,R:69,C:69}),C.FullPaths.push(C.FullPaths[0]+R),N(C)}}(C)}function N(C,R){D(C);for(var S=!1,I=!1,O=C.FullPaths.length-1;O>=0;--O){var P=C.FileIndex[O];switch(P.type){case 0:I?S=!0:(C.FileIndex.pop(),C.FullPaths.pop());break;case 1:case 2:case 5:I=!0,isNaN(P.R*P.L*P.C)&&(S=!0),P.R>-1&&P.L>-1&&P.R==P.L&&(S=!0);break;default:S=!0}}if(S||R){var ee=new Date(1987,1,19),le=0,J=Object.create?Object.create(null):{},te=[];for(O=0;O1?1:-1,De.size=0,De.type=5;else if("/"==Te.slice(-1)){for(le=O+1;le=te.length?-1:le,le=O+1;le=te.length?-1:le,De.type=1}else n(C.FullPaths[O+1]||"")==n(Te)&&(De.R=O+1),De.type=2}}}function j(C,R){var S=R||{};if("mad"==S.fileType)return function Hve(C,R){for(var S=R||{},I=S.boundary||"SheetJS",O=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(I="------="+I).slice(2)+'"',"","",""],P=C.FullPaths[0],ee=P,le=C.FileIndex[0],J=1;J=32&&Ye<128&&++De;var Ce=De>=4*Te/5;O.push(I),O.push("Content-Location: "+(S.root||"file:///C:/SheetJS/")+ee),O.push("Content-Transfer-Encoding: "+(Ce?"quoted-printable":"base64")),O.push("Content-Type: "+Ove(le,ee)),O.push(""),O.push(Ce?Lve(ie):Pve(ie))}return O.push(I+"--\r\n"),O.join("\r\n")}(C,S);if("zip"===(N(C),S.fileType))return function Rve(C,R){var S=R||{},I=[],O=[],P=re(1),ee=S.compression?8:0,le=0,te=0,ie=0,De=0,Te=0,Ye=C.FullPaths[0],Oe=Ye,Ce=C.FileIndex[0],Dt=[],Ni=0;for(te=1;te0&&($r<4096?Oe+=$r+63>>6:Ce+=$r+511>>9)}}for(var Sn=Ye.FullPaths.length+3>>2,sm=Oe+127>>7,cm=(Oe+7>>3)+Ce+Sn+sm,Cl=cm+127>>7,$C=Cl<=109?0:Math.ceil((Cl-109)/127);cm+Cl+$C+127>>7>Cl;)$C=++Cl<=109?0:Math.ceil((Cl-109)/127);var ws=[1,$C,Cl,sm,Sn,Ce,Oe,0];return Ye.FileIndex[0].size=Oe<<6,ws[7]=(Ye.FileIndex[0].start=ws[0]+ws[1]+ws[2]+ws[3]+ws[4]+ws[5])+(ws[6]+7>>3),ws}(C),O=re(I[7]<<9),P=0,ee=0;for(P=0;P<8;++P)O.write_shift(1,de[P]);for(P=0;P<8;++P)O.write_shift(2,0);for(O.write_shift(2,62),O.write_shift(2,3),O.write_shift(2,65534),O.write_shift(2,9),O.write_shift(2,6),P=0;P<3;++P)O.write_shift(2,0);for(O.write_shift(4,0),O.write_shift(4,I[2]),O.write_shift(4,I[0]+I[1]+I[2]+I[3]-1),O.write_shift(4,0),O.write_shift(4,4096),O.write_shift(4,I[3]?I[0]+I[1]+I[2]-1:me),O.write_shift(4,I[3]),O.write_shift(-4,I[1]?I[0]-1:me),O.write_shift(4,I[1]),P=0;P<109;++P)O.write_shift(-4,P>9));for(le(I[6]+7>>3);511&O.l;)O.write_shift(-4,Y.ENDOFCHAIN);for(ee=P=0,J=0;J=4096)&&(ie.start=ee,le(te+63>>6));for(;511&O.l;)O.write_shift(-4,Y.ENDOFCHAIN);for(P=0;P32&&(console.error("Name "+Te+" will be truncated to "+Te.slice(0,32)),Te=Te.slice(0,32)),te=2*(Te.length+1),O.write_shift(64,Te,"utf16le"),O.write_shift(2,te),O.write_shift(1,ie.type),O.write_shift(1,ie.color),O.write_shift(-4,ie.L),O.write_shift(-4,ie.R),O.write_shift(-4,ie.C),ie.clsid)O.write_shift(16,ie.clsid,"hex");else for(J=0;J<4;++J)O.write_shift(4,0);O.write_shift(4,ie.state||0),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(4,ie.start),O.write_shift(4,ie.size),O.write_shift(4,0)}else{for(J=0;J<17;++J)O.write_shift(4,0);for(J=0;J<3;++J)O.write_shift(4,-1);for(J=0;J<12;++J)O.write_shift(4,0)}}for(P=1;P=4096)if(O.l=ie.start+1<<9,Vt&&Buffer.isBuffer(ie.content))ie.content.copy(O,O.l,0,ie.size),O.l+=ie.size+511&-512;else{for(J=0;J0&&ie.size<4096)if(Vt&&Buffer.isBuffer(ie.content))ie.content.copy(O,O.l,0,ie.size),O.l+=ie.size+63&-64;else{for(J=0;J>16|R>>8|R));function A(C,R){var S=Re[255&C];return R<=8?S>>>8-R:(S=S<<8|Re[C>>8&255],R<=16?S>>>16-R:(S=S<<8|Re[C>>16&255])>>>24-R)}function bt(C,R){var S=7&R,I=R>>>3;return(C[I]|(S<=6?0:C[I+1]<<8))>>>S&3}function Jt(C,R){var S=7&R,I=R>>>3;return(C[I]|(S<=5?0:C[I+1]<<8))>>>S&7}function $t(C,R){var S=7&R,I=R>>>3;return(C[I]|(S<=3?0:C[I+1]<<8))>>>S&31}function Wi(C,R){var S=7&R,I=R>>>3;return(C[I]|(S<=1?0:C[I+1]<<8))>>>S&127}function si(C,R,S){var I=7&R,O=R>>>3,ee=C[O]>>>I;return S<8-I||(ee|=C[O+1]<<8-I,S<16-I)||(ee|=C[O+2]<<16-I,S<24-I)||(ee|=C[O+3]<<24-I),ee&(1<>>3;return I<=5?C[O]|=(7&S)<>8-I),R+3}function Ne(C,R,S){return C[R>>>3]|=S=(1&S)<<(7&R),R+1}function fr(C,R,S){var O=R>>>3;return C[O]|=255&(S<<=7&R),C[O+1]=S>>>=8,R+8}function oi(C,R,S){var O=R>>>3;return C[O]|=255&(S<<=7&R),C[O+1]=255&(S>>>=8),C[O+2]=S>>>8,R+16}function Si(C,R){var S=C.length,I=2*S>R?2*S:R+5,O=0;if(S>=R)return C;if(Vt){var P=xP(I);if(C.copy)C.copy(P);else for(;O>I-De,ee=(1<=0;--ee)R[le|ee<0;)J[J.l++]=le[te++]}return J.l}(J,te):function ee(le,J){for(var te=0,ie=0,De=_e?new Uint16Array(32768):[];ie0;)J[J.l++]=le[ie++];te=8*J.l}else{te=et(J,te,+(ie+Te==le.length)+2);for(var Ye=0;Te-- >0;){var Oe=le[ie],Ce=-1,Dt=0;if((Ce=De[Ye=32767&(Ye<<5^Oe)])&&((Ce|=-32768&ie)>ie&&(Ce-=32768),Ce2){(Oe=O[Dt])<=22?te=fr(J,te,Re[Oe+1]>>1)-1:(fr(J,te,3),fr(J,te+=5,Re[Oe-23]>>5),te+=3);var Ni=Oe<8?0:Oe-4>>2;Ni>0&&(oi(J,te,Dt-z[Oe]),te+=Ni),te=fr(J,te,Re[Oe=R[ie-Ce]]>>3),te-=3;var $r=Oe<4?0:Oe-2>>1;$r>0&&(oi(J,te,ie-Ce-V[Oe]),te+=$r);for(var Sn=0;Sn>>3;return(C[I]|(S<=4?0:C[I+1]<<8))>>>S&15}(C,R+=5)+4;R+=4;for(var P=0,ee=_e?new Uint8Array(19):Er(19),le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],J=1,te=_e?new Uint8Array(8):Er(8),ie=_e?new Uint8Array(8):Er(8),De=ee.length,Te=0;Te>8-Oe;for(var Ce=(1<<7-Oe)-1;Ce>=0;--Ce)Bn[Ye|Ce<>>=3){case 16:for(P=3+bt(C,R),R+=2,Ye=Dt[Dt.length-1];P-- >0;)Dt.push(Ye);break;case 17:for(P=3+Jt(C,R),R+=3;P-- >0;)Dt.push(0);break;case 18:for(P=11+Wi(C,R),R+=7;P-- >0;)Dt.push(0);break;default:Dt.push(Ye),J>>0,le=0,J=0;!(1&I);)if(I=Jt(C,S),S+=3,I>>>1)for(I>>1==1?(le=9,J=5):(S=Ave(C,S),le=wl,J=I3);;){!R&&ee>>1==1?cc[ie]:dn[ie];if(S+=15&De,(De>>>=4)>>>8&255){if(256==De)break;var Te=(De-=257)<8?0:De-4>>2;Te>5&&(Te=0);var Ye=P+z[De];Te>0&&(Ye+=si(C,S,Te),S+=Te),ie=si(C,S,J),S+=15&(De=I>>>1==1?am[ie]:Po[ie]);var Oe=(De>>>=4)<4?0:De-2>>1,Ce=V[De];for(Oe>0&&(Ce+=si(C,S,Oe),S+=Oe),!R&&ee>>3]|C[1+(S>>>3)]<<8;if(S+=32,te>0)for(!R&&ee0;)O[P++]=C[S>>>3],S+=8}return R?[O,S+7>>>3]:[O.slice(0,P),S+7>>>3]}(C.slice(C.l||0),R);return C.l+=I[1],I[0]}function R3(C,R){if(!C)throw new Error(R);typeof console<"u"&&console.error(R)}function O3(C,R){var S=C;On(S,0);var P={FileIndex:[],FullPaths:[]};D(P,{root:R.root});for(var ee=S.length-4;(80!=S[ee]||75!=S[ee+1]||5!=S[ee+2]||6!=S[ee+3])&&ee>=0;)--ee;S.l=ee+4,S.l+=4;var le=S.read_shift(2);S.l+=6;var J=S.read_shift(4);for(S.l=J,ee=0;ee>>=5);S>>>=4,I.setMilliseconds(0),I.setFullYear(S+1980),I.setMonth(P-1),I.setDate(O);var ee=31&R,le=63&(R>>>=5);return I.setHours(R>>>=6),I.setMinutes(le),I.setSeconds(ee<<1),I}(C);if(8257&P)throw new Error("Unsupported ZIP encryption");C.read_shift(4);for(var te=C.read_shift(4),ie=C.read_shift(4),De=C.read_shift(2),Te=C.read_shift(2),Ye="",Oe=0;Oe"u")throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function wf(t,i,e){if(typeof fs<"u"&&fs.writeFileSync)return e?fs.writeFileSync(t,i,e):fs.writeFileSync(t,i);if(typeof Deno<"u"){if(e&&"string"==typeof i)switch(e){case"utf8":i=new TextEncoder(e).encode(i);break;case"binary":i=bf(i);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,i)}var n="utf8"==e?Ma(i):i;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var r=new Blob([Koe(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(r,t);if(typeof saveAs<"u")return saveAs(r,t);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(r);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),chrome.downloads.download({url:o,filename:t,saveAs:!0});var a=document.createElement("a");if(null!=a.download)return a.download=t,a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),o}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(t);return s.open("w"),s.encoding="binary",Array.isArray(i)&&(i=Ea(i)),s.write(i),s.close(),i}catch(c){if(!c.message||!c.message.match(/onstruct/))throw c}throw new Error("cannot save file "+t)}function $i(t){for(var i=Object.keys(t),e=[],n=0;n0?e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3):i<0&&e.setTime(e.getTime()-60*e.getTimezoneOffset()*1e3),e;if(t instanceof Date)return t;if(1917==WP.getFullYear()&&!isNaN(e.getFullYear())){var n=e.getFullYear();return t.indexOf(""+n)>-1||e.setFullYear(e.getFullYear()+100),e}var r=t.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+r[0],+r[1]-1,+r[2],+r[3]||0,+r[4]||0,+r[5]||0);return t.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function il(t,i){if(Vt&&Buffer.isBuffer(t)){if(i&&_f){if(255==t[0]&&254==t[1])return Ma(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Ma(function bP(t){for(var i=[],e=0;e>1;++e)i[e]=String.fromCharCode(t.charCodeAt(2*e+1)+(t.charCodeAt(2*e)<<8));return i.join("")}(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(i){if(255==t[0]&&254==t[1])return Ma(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Ma(new TextDecoder("utf-16be").decode(t.slice(2)))}var e={"\u20ac":"\x80","\u201a":"\x82",\u0192:"\x83","\u201e":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87",\u02c6:"\x88","\u2030":"\x89",\u0160:"\x8a","\u2039":"\x8b",\u0152:"\x8c",\u017d:"\x8e","\u2018":"\x91","\u2019":"\x92","\u201c":"\x93","\u201d":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02dc":"\x98","\u2122":"\x99",\u0161:"\x9a","\u203a":"\x9b",\u0153:"\x9c",\u017e:"\x9e",\u0178:"\x9f"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\u017d\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\u017e\u0178]/g,function(o){return e[o]||o})}catch{}for(var n=[],r=0;r!=t.length;++r)n.push(String.fromCharCode(t[r]));return n.join("")}function yi(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if("object"!=typeof t||null==t)return t;if(t instanceof Date)return new Date(t.getTime());var i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=yi(t[e]));return i}function ri(t,i){for(var e="";e.length3&&-1==oae.indexOf(i))return o}else if(i.replace(/[ap]m?/,"").match(/[a-z]/))return o;return a<0||a>8099||t.match(/[^-0-9:,\/\\]/)?o:r}function Rt(t,i,e){if(t.FullPaths){var n;if("string"==typeof e)return n=Vt?Sa(e):function Coe(t){for(var i=[],e=0,n=t.length+250,r=Xs(t.length+255),o=0;o>6&31,r[e++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var s=1023&t.charCodeAt(++o);r[e++]=240|a>>8&7,r[e++]=128|a>>2&63,r[e++]=128|s>>6&15|(3&a)<<4,r[e++]=128|63&s}else r[e++]=224|a>>12&15,r[e++]=128|a>>6&63,r[e++]=128|63&a;e>n&&(i.push(r.slice(0,e)),e=0,r=Xs(65535),n=65530)}return i.push(r.slice(0,e)),xn(i)}(e),lt.utils.cfb_add(t,i,n);lt.utils.cfb_add(t,i,e)}else t.file(i,e)}function dw(){return lt.utils.cfb_new()}var sn='\r\n',uw=O0({""":'"',"'":"'",">":">","<":"<","&":"&"}),hw=/[&<>'"]/g,hae=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function Ot(t){return(t+"").replace(hw,function(e){return uw[e]}).replace(hae,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function JP(t){return Ot(t).replace(/ /g,"_x0020_")}var e4=/[\u0000-\u001f]/g;function B0(t){return(t+"").replace(hw,function(e){return uw[e]}).replace(/\n/g,"
").replace(e4,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function fw(t){for(var i="",e=0,n=0,r=0,o=0,a=0,s=0;e191&&n<224?(a=(31&n)<<6,a|=63&r,i+=String.fromCharCode(a)):(o=t.charCodeAt(e++),n<240?i+=String.fromCharCode((15&n)<<12|(63&r)<<6|63&o):(s=((7&n)<<18|(63&r)<<12|(63&o)<<6|63&(a=t.charCodeAt(e++)))-65536,i+=String.fromCharCode(55296+(s>>>10&1023)),i+=String.fromCharCode(56320+(1023&s)))));return i}function n4(t){var e,n,s,i=Xs(2*t.length),r=1,o=0,a=0;for(n=0;n>>10&1023),e=56320+(1023&e)),0!==a&&(i[o++]=255&a,i[o++]=a>>>8,a=0),i[o++]=e%256,i[o++]=e>>>8;return i.slice(0,o).toString("ucs2")}function r4(t){return Sa(t,"binary").toString("utf8")}var V0="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",Ci=Vt&&(r4(V0)==fw(V0)&&r4||n4(V0)==fw(V0)&&n4)||fw,Ma=Vt?function(t){return Sa(t,"utf8").toString("binary")}:function(t){for(var i=[],e=0,n=0,r=0;e>6))),i.push(String.fromCharCode(128+(63&n)));break;case n>=55296&&n<57344:n-=55296,r=t.charCodeAt(e++)-56320+(n<<10),i.push(String.fromCharCode(240+(r>>18&7))),i.push(String.fromCharCode(144+(r>>12&63))),i.push(String.fromCharCode(128+(r>>6&63))),i.push(String.fromCharCode(128+(63&r)));break;default:i.push(String.fromCharCode(224+(n>>12))),i.push(String.fromCharCode(128+(n>>6&63))),i.push(String.fromCharCode(128+(63&n)))}return i.join("")},s4=/(^\s|\s$|\n)/;function Qn(t,i){return"<"+t+(i.match(s4)?' xml:space="preserve"':"")+">"+i+""}function Df(t){return $i(t).map(function(i){return" "+i+'="'+t[i]+'"'}).join("")}function Ee(t,i,e){return"<"+t+(null!=e?Df(e):"")+(null!=i?(i.match(s4)?' xml:space="preserve"':"")+">"+i+""}function mw(t,i){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(i)throw e}return""}var Rn={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},nl=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],ro={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"},c4=function(t){for(var i=[],n=0;n0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(i){return Buffer.isBuffer(i)?i:Sa(i)})):c4(t)}:c4,d4=function(t,i,e){for(var n=[],r=i;r0?ru(t,i+4,i+4+e-1):""},pw=m4,p4=function(t,i){var e=zn(t,i);return e>0?ru(t,i+4,i+4+e-1):""},gw=p4,g4=function(t,i){var e=2*zn(t,i);return e>0?ru(t,i+4,i+4+e-1):""},_w=g4,_4=function(i,e){var n=zn(i,e);return n>0?U0(i,e+4,e+4+n):""},bw=_4,b4=function(t,i){var e=zn(t,i);return e>0?ru(t,i+4,i+4+e):""},vw=b4,v4=function(t,i){return function vae(t,i){for(var e=1-2*(t[i+7]>>>7),n=((127&t[i+7])<<4)+(t[i+6]>>>4&15),r=15&t[i+6],o=5;o>=0;--o)r=256*r+t[i+o];return 2047==n?0==r?e*(1/0):NaN:(0==n?n=-1022:(n-=1023,r+=Math.pow(2,52)),e*Math.pow(2,n-52)*r)}(t,i)},z0=v4,xw=function(i){return Array.isArray(i)||typeof Uint8Array<"u"&&i instanceof Uint8Array};Vt&&(pw=function(i,e){if(!Buffer.isBuffer(i))return m4(i,e);var n=i.readUInt32LE(e);return n>0?i.toString("utf8",e+4,e+4+n-1):""},gw=function(i,e){if(!Buffer.isBuffer(i))return p4(i,e);var n=i.readUInt32LE(e);return n>0?i.toString("utf8",e+4,e+4+n-1):""},_w=function(i,e){if(!Buffer.isBuffer(i)||!_f)return g4(i,e);var n=2*i.readUInt32LE(e);return i.toString("utf16le",e+4,e+4+n-1)},bw=function(i,e){if(!Buffer.isBuffer(i)||!_f)return _4(i,e);var n=i.readUInt32LE(e);return i.toString("utf16le",e+4,e+4+n)},vw=function(i,e){if(!Buffer.isBuffer(i))return b4(i,e);var n=i.readUInt32LE(e);return i.toString("utf8",e+4,e+4+n)},z0=function(i,e){return Buffer.isBuffer(i)?i.readDoubleLE(e):v4(i,e)},xw=function(i){return Buffer.isBuffer(i)||Array.isArray(i)||typeof Uint8Array<"u"&&i instanceof Uint8Array}),typeof Mt<"u"&&function x4(){U0=function(t,i,e){return Mt.utils.decode(1200,t.slice(i,e)).replace(or,"")},ru=function(t,i,e){return Mt.utils.decode(65001,t.slice(i,e))},pw=function(t,i){var e=zn(t,i);return e>0?Mt.utils.decode(el,t.slice(i+4,i+4+e-1)):""},gw=function(t,i){var e=zn(t,i);return e>0?Mt.utils.decode(Fn,t.slice(i+4,i+4+e-1)):""},_w=function(t,i){var e=2*zn(t,i);return e>0?Mt.utils.decode(1200,t.slice(i+4,i+4+e-1)):""},bw=function(t,i){var e=zn(t,i);return e>0?Mt.utils.decode(1200,t.slice(i+4,i+4+e)):""},vw=function(t,i){var e=zn(t,i);return e>0?Mt.utils.decode(65001,t.slice(i+4,i+4+e)):""}}();var ou=function(t,i){return t[i]},ms=function(t,i){return 256*t[i+1]+t[i]},yae=function(t,i){var e=256*t[i+1]+t[i];return e<32768?e:-1*(65535-e+1)},zn=function(t,i){return t[i+3]*(1<<24)+(t[i+2]<<16)+(t[i+1]<<8)+t[i]},rl=function(t,i){return t[i+3]<<24|t[i+2]<<16|t[i+1]<<8|t[i]},wae=function(t,i){return t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]};function Sf(t,i){var n,r,a,s,c,l,e="",o=[];switch(i){case"dbcs":if(l=this.l,Vt&&Buffer.isBuffer(this)&&_f)e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(c=0;c0?rl:wae)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===i)return r=8==t?z0(this,this.l):z0([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;t=8;case 16:e=h4(this,this.l,t)}}return this.l+=t,e}var Cae=function(t,i,e){t[e]=255&i,t[e+1]=i>>>8&255,t[e+2]=i>>>16&255,t[e+3]=i>>>24&255},kae=function(t,i,e){t[e]=255&i,t[e+1]=i>>8&255,t[e+2]=i>>16&255,t[e+3]=i>>24&255},Dae=function(t,i,e){t[e]=255&i,t[e+1]=i>>>8&255};function Sae(t,i,e){var n=0,r=0;if("dbcs"===e){for(r=0;r!=i.length;++r)Dae(this,i.charCodeAt(r),this.l+2*r);n=2*i.length}else if("sbcs"===e||"cpstr"==e)if(typeof Mt<"u"&&874==el){for(r=0;r!=i.length;++r){var o=Mt.utils.encode(el,i.charAt(r));this[this.l+r]=o[0]}n=i.length}else if(typeof Mt<"u"&&"cpstr"==e){if((o=Mt.utils.encode(Fn,i)).length==i.length)for(r=0;r>8}for(;this.l>>=8);break;case 3:n=3,this[this.l]=255&i,this[this.l+1]=255&(i>>>=8),this[this.l+2]=255&(i>>>=8);break;case 4:n=4,Cae(this,i,this.l);break;case 8:if(n=8,"f"===e){!function xae(t,i,e){var n=(i<0||1/i==-1/0?1:0)<<7,r=0,o=0,a=n?-i:i;isFinite(a)?0==a?r=o=0:(r=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-r),r<=-1023&&(!isFinite(o)||o>4|n}(this,i,this.l);break}case 16:break;case-4:n=4,kae(this,i,this.l)}}return this.l+=n,this}function y4(t,i){var e=h4(this,this.l,t.length>>1);if(e!==t)throw new Error(i+"Expected "+t+" saw "+e);this.l+=t.length>>1}function On(t,i){t.l=i,t.read_shift=Sf,t.chk=y4,t.write_shift=Sae}function sr(t,i){t.l+=i}function re(t){var i=Xs(t);return On(i,0),i}function Ur(){var t=[],i=Vt?256:2048,e=function(l){var d=re(l);return On(d,0),d},n=e(i),r=function(){n&&(n.l&&(n.length>n.l&&((n=n.slice(0,n.l)).l=n.length),n.length>0&&t.push(n)),n=null)},o=function(l){return n&&l=128?1:0)+1,n>=128&&++o,n>=16384&&++o,n>=2097152&&++o;var a=t.next(o);r<=127?a.write_shift(1,r):(a.write_shift(1,128+(127&r)),a.write_shift(1,r>>7));for(var s=0;4!=s;++s){if(!(n>=128)){a.write_shift(1,n);break}a.write_shift(1,128+(127&n)),n>>=7}n>0&&xw(e)&&t.push(e)}}function Ef(t,i,e){var n=yi(t);if(i.s?(n.cRel&&(n.c+=i.s.c),n.rRel&&(n.r+=i.s.r)):(n.cRel&&(n.c+=i.c),n.rRel&&(n.r+=i.r)),!e||e.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function w4(t,i,e){var n=yi(t);return n.s=Ef(n.s,i.s,e),n.e=Ef(n.e,i.s,e),n}function Tf(t,i){if(t.cRel&&t.c<0)for(t=yi(t);t.c<0;)t.c+=i>8?16384:256;if(t.rRel&&t.r<0)for(t=yi(t);t.r<0;)t.r+=i>8?1048576:i>5?65536:16384;var e=zt(t);return!t.cRel&&null!=t.cRel&&(e=function Mae(t){return t.replace(/^([A-Z])/,"$$$1")}(e)),!t.rRel&&null!=t.rRel&&(e=function Eae(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function yw(t,i){return 0!=t.s.r||t.s.rRel||t.e.r!=(i.biff>=12?1048575:i.biff>=8?65536:16384)||t.e.rRel?0!=t.s.c||t.s.cRel||t.e.c!=(i.biff>=12?16383:255)||t.e.cRel?Tf(t.s,i.biff)+":"+Tf(t.e,i.biff):(t.s.rRel?"":"$")+Yt(t.s.r)+":"+(t.e.rRel?"":"$")+Yt(t.e.r):(t.s.cRel?"":"$")+Ht(t.s.c)+":"+(t.e.cRel?"":"$")+Ht(t.e.c)}function ww(t){return parseInt(function Tae(t){return t.replace(/\$(\d+)$/,"$1")}(t),10)-1}function Yt(t){return""+(t+1)}function Cw(t){for(var i=function Aae(t){return t.replace(/^\$([A-Z])/,"$1")}(t),e=0,n=0;n!==i.length;++n)e=26*e+i.charCodeAt(n)-64;return e-1}function Ht(t){if(t<0)throw new Error("invalid column "+t);var i="";for(++t;t;t=Math.floor((t-1)/26))i=String.fromCharCode((t-1)%26+65)+i;return i}function bi(t){for(var i=0,e=0,n=0;n=48&&r<=57?i=10*i+(r-48):r>=65&&r<=90&&(e=26*e+(r-64))}return{c:e-1,r:i-1}}function zt(t){for(var i=t.c+1,e="";i;i=(i-1)/26|0)e=String.fromCharCode((i-1)%26+65)+e;return e+(t.r+1)}function Pn(t){var i=t.indexOf(":");return-1==i?{s:bi(t),e:bi(t)}:{s:bi(t.slice(0,i)),e:bi(t.slice(i+1))}}function Et(t,i){return typeof i>"u"||"number"==typeof i?Et(t.s,t.e):("string"!=typeof t&&(t=zt(t)),"string"!=typeof i&&(i=zt(i)),t==i?t:t+":"+i)}function Mf(t){var i=Pn(t);return"$"+Ht(i.s.c)+"$"+Yt(i.s.r)+":$"+Ht(i.e.c)+"$"+Yt(i.e.r)}function Af(t,i){if(!(t||i&&i.biff<=5&&i.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t.replace(/'/g,"''")+"'":t}function Kt(t){var i={s:{c:0,r:0},e:{c:0,r:0}},e=0,n=0,r=0,o=t.length;for(e=0;n26);++n)e=26*e+r;for(i.s.c=--e,e=0;n9);++n)e=10*e+r;if(i.s.r=--e,n===o||10!=r)return i.e.c=i.s.c,i.e.r=i.s.r,i;for(++n,e=0;n!=o&&!((r=t.charCodeAt(n)-64)<1||r>26);++n)e=26*e+r;for(i.e.c=--e,e=0;n!=o&&!((r=t.charCodeAt(n)-48)<0||r>9);++n)e=10*e+r;return i.e.r=--e,i}function Aa(t,i,e){return null==t||null==t.t||"z"==t.t?"":void 0!==t.w?t.w:("d"==t.t&&!t.z&&e&&e.dateNF&&(t.z=e.dateNF),"e"==t.t?gs[t.v]||t.v:function C4(t,i){var e="d"==t.t&&i instanceof Date;if(null!=t.z)try{return t.w=Vr(t.z,e?yn(i):i)}catch{}try{return t.w=Vr((t.XF||{}).numFmtId||(e?14:0),e?yn(i):i)}catch{return""+i}}(t,null==i?t.v:i))}function Zs(t,i){var e=i&&i.sheet?i.sheet:"Sheet1",n={};return n[e]=t,{SheetNames:[e],Sheets:n}}function k4(t,i,e){var n=e||{},r=t?null!=t["!data"]:n.dense;null!=an&&null==r&&(r=an);var o=t||{};r&&!o["!data"]&&(o["!data"]=[]);var a=0,s=0;if(o&&null!=n.origin){if("number"==typeof n.origin)a=n.origin;else{var c="string"==typeof n.origin?bi(n.origin):n.origin;a=c.r,s=c.c}o["!ref"]||(o["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var d=Kt(o["!ref"]);l.s.c=d.s.c,l.s.r=d.s.r,l.e.c=Math.max(l.e.c,d.e.c),l.e.r=Math.max(l.e.r,d.e.r),-1==a&&(l.e.r=a=d.e.r+1)}for(var u=[],h=0;h!=i.length;++h)if(i[h]){if(!Array.isArray(i[h]))throw new Error("aoa_to_sheet expects an array of arrays");var f=a+h,m=""+(f+1);r&&(o["!data"][f]||(o["!data"][f]=[]),u=o["!data"][f]);for(var g=0;g!=i[h].length;++g)if(!(typeof i[h][g]>"u")){var p={v:i[h][g]},_=s+g;if(l.s.r>f&&(l.s.r=f),l.s.c>_&&(l.s.c=_),l.e.r0&&i.write_shift(0,t,"dbcs"),e?i.slice(0,i.l):i}function Rae(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function kw(t,i){var e=t.l,n=t.read_shift(1),r=cr(t),o=[],a={t:r,h:r};if(1&n){for(var s=t.read_shift(4),c=0;c!=s;++c)o.push(Rae(t));a.r=o}else a.r=[{ich:0,ifnt:0}];return t.l=e+i,a}var Lae=kw;function Mo(t){var i=t.read_shift(4),e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:i,iStyleRef:e}}function ol(t,i){return null==i&&(i=re(8)),i.write_shift(-4,t.c),i.write_shift(3,t.iStyleRef||t.s),i.write_shift(1,0),i}function al(t){var i=t.read_shift(2);return i+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:i}}function sl(t,i){return null==i&&(i=re(4)),i.write_shift(3,t.iStyleRef||t.s),i.write_shift(1,0),i}var Bae=cr,D4=Ln;function Dw(t){var i=t.read_shift(4);return 0===i||4294967295===i?"":t.read_shift(i,"dbcs")}function If(t,i){var e=!1;return null==i&&(e=!0,i=re(127)),i.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&i.write_shift(0,t,"dbcs"),e?i.slice(0,i.l):i}var Vae=cr,Sw=Dw,Ew=If;function Tw(t){var i=t.slice(t.l,t.l+4),e=1&i[0],n=2&i[0];t.l+=4;var r=0===n?z0([0,0,0,0,252&i[0],i[1],i[2],i[3]],0):rl(i,0)>>2;return e?r/100:r}function S4(t,i){null==i&&(i=re(4));var e=0,n=0,r=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?n=1:r==(0|r)&&r>=-(1<<29)&&r<1<<29&&(n=1,e=1),!n)throw new Error("unsupported RkNumber "+t);i.write_shift(-4,((e?r:t)<<2)+(e+2))}function E4(t){var i={s:{},e:{}};return i.s.r=t.read_shift(4),i.e.r=t.read_shift(4),i.s.c=t.read_shift(4),i.e.c=t.read_shift(4),i}var cl=E4,su=function Hae(t,i){return i||(i=re(16)),i.write_shift(4,t.s.r),i.write_shift(4,t.e.r),i.write_shift(4,t.s.c),i.write_shift(4,t.e.c),i};function lr(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function ll(t,i){return(i||re(8)).write_shift(8,t,"f")}function $0(t,i){if(i||(i=re(8)),!t||t.auto)return i.write_shift(4,0),i.write_shift(4,0),i;null!=t.index?(i.write_shift(1,2),i.write_shift(1,t.index)):null!=t.theme?(i.write_shift(1,6),i.write_shift(1,t.theme)):(i.write_shift(1,5),i.write_shift(1,0));var e=t.tint||0;if(e>0?e*=32767:e<0&&(e*=32768),i.write_shift(2,e),t.rgb&&null==t.theme){var n=t.rgb||"FFFFFF";"number"==typeof n&&(n=("000000"+n.toString(16)).slice(-6)),i.write_shift(1,parseInt(n.slice(0,2),16)),i.write_shift(1,parseInt(n.slice(2,4),16)),i.write_shift(1,parseInt(n.slice(4,6),16)),i.write_shift(1,255)}else i.write_shift(2,0),i.write_shift(1,0),i.write_shift(1,0);return i}var Aw={1:{n:"CodePage",t:2},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:80},15:{n:"Company",t:80},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:80},27:{n:"ContentStatus",t:80},28:{n:"Language",t:80},29:{n:"Version",t:80},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Iw={1:{n:"CodePage",t:2},2:{n:"Title",t:80},3:{n:"Subject",t:80},4:{n:"Author",t:80},5:{n:"Keywords",t:80},6:{n:"Comments",t:80},7:{n:"Template",t:80},8:{n:"LastAuthor",t:80},9:{n:"RevNumber",t:80},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:80},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function Zae(t){return t.map(function(i){return[i>>16&255,i>>8&255,255&i]})}var dl=yi(Zae([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,0,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),gs={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Fw={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Rw=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"],Ow={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},q0={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function F4(t,i,e){var o,n=function Joe(t){for(var i=[],e=$i(t),n=0;n!==e.length;++n)null==i[t[e[n]]]&&(i[t[e[n]]]=[]),i[t[e[n]]].push(e[n]);return i}(Ow),r=[];e||(r[r.length]=sn,r[r.length]=Ee("Types",null,{xmlns:Rn.CT,"xmlns:xsd":Rn.xsd,"xmlns:xsi":Rn.xsi}),r=r.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Ee("Default",null,{Extension:l[0],ContentType:l[1]})})));var a=function(l){t[l]&&t[l].length>0&&(r[r.length]=Ee("Override",null,{PartName:("/"==(o=t[l][0])[0]?"":"/")+o,ContentType:q0[l][i.bookType]||q0[l].xlsx}))},s=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Ee("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:q0[l][i.bookType]||q0[l].xlsx})})},c=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Ee("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:n[l][0]})})};return a("workbooks"),s("sheets"),s("charts"),c("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(c),c("vba"),c("comments"),c("threadedcomments"),c("drawings"),s("metadata"),c("people"),!e&&r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}var Pt={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",CONN:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Ff(t){var i=t.lastIndexOf("/");return t.slice(0,i+1)+"_rels/"+t.slice(i+1)+".rels"}function cu(t){var i=[sn,Ee("Relationships",null,{xmlns:Rn.RELS})];return $i(t["!id"]).forEach(function(e){i[i.length]=Ee("Relationship",null,t["!id"][e])}),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function ki(t,i,e,n,r,o){if(r||(r={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),i<0)for(i=t["!idx"];t["!id"]["rId"+i];++i);if(t["!idx"]=i+1,r.Id="rId"+i,r.Type=n,r.Target=e,o?r.TargetMode=o:[Pt.HLINK,Pt.XPATH,Pt.XMISS].indexOf(r.Type)>-1&&(r.TargetMode="External"),t["!id"][r.Id])throw new Error("Cannot rewrite rId "+i);return t["!id"][r.Id]=r,t[("/"+r.Target).replace("//","/")]=r,i}function R4(t,i,e){return[' \n',' \n'," \n"].join("")}function rse(t,i){return[' \n',' \n'," \n"].join("")}function O4(t,i){return'SheetJS '+pf.version+""}var Ao=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Lw(t,i,e,n,r){null!=r[t]||null==i||""===i||(r[t]=i,i=Ot(i),n[n.length]=e?Ee(t,i,e):Qn(t,i))}function L4(t,i){var e=i||{},n=[sn,Ee("cp:coreProperties",null,{"xmlns:cp":Rn.CORE_PROPS,"xmlns:dc":Rn.dc,"xmlns:dcterms":Rn.dcterms,"xmlns:dcmitype":Rn.dcmitype,"xmlns:xsi":Rn.xsi})],r={};if(!t&&!e.Props)return n.join("");t&&(null!=t.CreatedDate&&Lw("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:mw(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,r),null!=t.ModifiedDate&&Lw("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:mw(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,r));for(var o=0;o!=Ao.length;++o){var a=Ao[o],s=e.Props&&null!=e.Props[a[1]]?e.Props[a[1]]:t?t[a[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&Lw(a[0],s,null,n,r)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var ul=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],N4=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function V4(t){var i=[],e=Ee;return t||(t={}),t.Application="SheetJS",i[i.length]=sn,i[i.length]=Ee("Properties",null,{xmlns:Rn.EXT_PROPS,"xmlns:vt":Rn.vt}),ul.forEach(function(n){if(void 0!==t[n[1]]){var r;switch(n[2]){case"string":r=Ot(String(t[n[1]]));break;case"bool":r=t[n[1]]?"true":"false"}void 0!==r&&(i[i.length]=e(n[0],r))}}),i[i.length]=e("HeadingPairs",e("vt:vector",e("vt:variant","Worksheets")+e("vt:variant",e("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),i[i.length]=e("TitlesOfParts",e("vt:vector",t.SheetNames.map(function(n){return""+Ot(n)+""}).join(""),{size:t.Worksheets,baseType:"lpstr"})),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function H4(t){var i=[sn,Ee("Properties",null,{xmlns:Rn.CUST_PROPS,"xmlns:vt":Rn.vt})];if(!t)return i.join("");var e=1;return $i(t).forEach(function(r){++e,i[i.length]=Ee("property",function bae(t,i){switch(typeof t){case"string":var e=Ee("vt:lpwstr",Ot(t));return i&&(e=e.replace(/"/g,"_x0022_")),e;case"number":return Ee((0|t)==t?"vt:i4":"vt:r8",Ot(String(t)));case"boolean":return Ee("vt:bool",t?"true":"false")}if(t instanceof Date)return Ee("vt:filetime",mw(t));throw new Error("Unable to serialize "+t)}(t[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:Ot(r)})}),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}var Nw={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function G4(t,i){var e=re(4),n=re(4);switch(e.write_shift(4,80==t?31:t),t){case 3:n.write_shift(-4,i);break;case 5:(n=re(8)).write_shift(8,i,"f");break;case 11:n.write_shift(4,i?1:0);break;case 64:n=function fse(t){var e=("string"==typeof t?new Date(Date.parse(t)):t).getTime()/1e3+11644473600,n=e%Math.pow(2,32),r=(e-n)/Math.pow(2,32);r*=1e7;var o=(n*=1e7)/Math.pow(2,32)|0;o>0&&(n%=Math.pow(2,32),r+=o);var a=re(8);return a.write_shift(4,n),a.write_shift(4,r),a}(i);break;case 31:case 80:for((n=re(4+2*(i.length+1)+(i.length%2?0:2))).write_shift(4,i.length+1),n.write_shift(0,i,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+i)}return xn([e,n])}var X4=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function xse(t){switch(typeof t){case"boolean":return 11;case"number":return(0|t)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64}return-1}function Q4(t,i,e){var n=re(8),r=[],o=[],a=8,s=0,c=re(8),l=re(8);if(c.write_shift(4,2),c.write_shift(4,1200),l.write_shift(4,1),o.push(c),r.push(l),a+=8+c.length,!i){(l=re(8)).write_shift(4,0),r.unshift(l);var d=[re(4)];for(d[0].write_shift(4,t.length),s=0;s-1||N4.indexOf(t[s][0])>-1)&&null!=t[s][1]){var h=t[s][1],f=0;if(i){var m=e[f=+i[t[s][0]]];if("version"==m.p&&"string"==typeof h){var g=h.split(".");h=(+g[0]<<16)+(+g[1]||0)}c=G4(m.t,h)}else{var p=xse(h);-1==p&&(p=31,h=String(h)),c=G4(p,h)}o.push(c),(l=re(8)).write_shift(4,i?f:2+s),r.push(l),a+=8+c.length}var _=8*(o.length+1);for(s=0;s=12?2:1),r="sbcs-cont",o=Fn;e&&e.biff>=8&&(Fn=1200),e&&8!=e.biff?12==e.biff&&(r="wstr"):t.read_shift(1)&&(r="dbcs-cont"),e.biff>=2&&e.biff<=5&&(r="cpstr");var s=n?t.read_shift(n,r):"";return Fn=o,s}function Dse(t){var i=t.t||"",n=re(3);n.write_shift(2,i.length),n.write_shift(1,1);var r=re(2*i.length);return r.write_shift(2*i.length,i,"utf16le"),xn([n,r])}function eL(t,i,e){return e||(e=re(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function tL(t,i){i||(i=re(6+2*t.length)),i.write_shift(4,1+t.length);for(var e=0;e-1?31:23;switch(n.charAt(0)){case"#":o=28;break;case".":o&=-3}i.write_shift(4,2),i.write_shift(4,o);var a=[8,6815827,6619237,4849780,83];for(e=0;e-1?n.slice(0,r):n;for(i.write_shift(4,2*(s.length+1)),e=0;e-1?n.slice(r+1):"",i)}else{for(a="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),e=0;e8?4:2;return[t.read_shift(n),t.read_shift(n,"i"),t.read_shift(n,"i")]}function Y0(t){var i=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(2),r:i},e:{c:t.read_shift(2),r:e}}}function oL(t,i){return i||(i=re(8)),i.write_shift(2,t.s.r),i.write_shift(2,t.e.r),i.write_shift(2,t.s.c),i.write_shift(2,t.e.c),i}function Uw(t,i,e){var n=1536,r=16;switch(e.bookType){case"biff8":case"xla":break;case"biff5":n=1280,r=8;break;case"biff4":n=4,r=6;break;case"biff3":n=3,r=6;break;case"biff2":n=2,r=4;break;default:throw new Error("unsupported BIFF version")}var o=re(r);return o.write_shift(2,n),o.write_shift(2,i),r>4&&o.write_shift(2,29282),r>6&&o.write_shift(2,1997),r>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function Gse(t,i){var e=!i||i.biff>=8?2:1,n=re(8+e*t.name.length);n.write_shift(4,t.pos),n.write_shift(1,t.hs||0),n.write_shift(1,t.dt),n.write_shift(1,t.name.length),i.biff>=8&&n.write_shift(1,1),n.write_shift(e*t.name.length,t.name,i.biff<8?"sbcs":"utf16le");var r=n.slice(0,n.l);return r.l=n.l,r}function uce(t,i,e,n){var r=e&&5==e.biff;n||(n=re(r?3+i.length:5+2*i.length)),n.write_shift(2,t),n.write_shift(r?1:2,i.length),r||n.write_shift(1,1),n.write_shift((r?1:2)*i.length,i,r?"sbcs":"utf16le");var o=n.length>n.l?n.slice(0,n.l):n;return null==o.l&&(o.l=o.length),o}function dL(t,i,e,n){var r=e&&5==e.biff;n||(n=re(r?16:20)),n.write_shift(2,0),t.style?(n.write_shift(2,t.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,t.numFmtId||0),n.write_shift(2,i<<4));var o=0;return t.numFmtId>0&&r&&(o|=1024),n.write_shift(4,o),n.write_shift(4,0),r||n.write_shift(4,0),n.write_shift(2,0),n}function Nce(t){var i=re(24),e=bi(t[0]);i.write_shift(2,e.r),i.write_shift(2,e.r),i.write_shift(2,e.c),i.write_shift(2,e.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<16;++r)i.write_shift(1,parseInt(n[r],16));return xn([i,Ise(t[1])])}function Vce(t){var i=t[1].Tooltip,e=re(10+2*(i.length+1));e.write_shift(2,2048);var n=bi(t[0]);e.write_shift(2,n.r),e.write_shift(2,n.r),e.write_shift(2,n.c),e.write_shift(2,n.c);for(var r=0;r1048576&&(g=1e6),2!=u&&(p=d.read_shift(2));var _=d.read_shift(2),w=c.codepage||1252;2!=u&&(d.l+=16,d.read_shift(1),0!==d[d.l]&&(w=t[d[d.l]]),d.l+=1,d.l+=2),m&&(d.l+=36);for(var x=[],M={},W=Math.min(d.length,2==u?521:p-10-(f?264:0)),L=m?32:11;d.l0;)if(42!==d[d.l])for(++d.l,l[++D]=[],B=0,B=0;B!=x.length;++B){var N=d.slice(d.l,d.l+x[B].len);d.l+=x[B].len,On(N,0);var j=typeof Mt<"u"?Mt.utils.decode(w,N):Ea(N);switch(x[B].type){case"C":j.trim().length&&(l[D][B]=j.replace(/\s+$/,""));break;case"D":l[D][B]=8===j.length?new Date(+j.slice(0,4),+j.slice(4,6)-1,+j.slice(6,8)):j;break;case"F":l[D][B]=parseFloat(j.trim());break;case"+":case"I":l[D][B]=m?2147483648^N.read_shift(-4,"i"):N.read_shift(4,"i");break;case"L":switch(j.trim().toUpperCase()){case"Y":case"T":l[D][B]=!0;break;case"N":case"F":l[D][B]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+j+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+u.toString(16));l[D][B]="##MEMO##"+(m?parseInt(j.trim(),10):N.read_shift(4));break;case"N":(j=j.replace(/\u0000/g,"").trim())&&"."!=j&&(l[D][B]=+j||0);break;case"@":l[D][B]=new Date(N.read_shift(-8,"f")-621356832e5);break;case"T":l[D][B]=new Date(864e5*(N.read_shift(4)-2440588)+N.read_shift(4));break;case"Y":l[D][B]=N.read_shift(4,"i")/1e4+N.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[D][B]=-N.read_shift(-8,"f");break;case"B":if(f&&8==x[B].len){l[D][B]=N.read_shift(8,"f");break}case"G":case"P":N.l+=x[B].len;break;case"0":if("_NullFlags"===x[B].name)break;default:throw new Error("DBF Unsupported data type "+x[B].type)}}else d.l+=_;if(2!=u&&d.l=0&&Do(+l.codepage),"string"==l.type)throw new Error("Cannot write DBF to JS string");var u=Ur(),h=h_(s,{header:1,raw:!0,cellDates:!0}),f=h[0],m=h.slice(1),g=s["!cols"]||[],p=0,_=0,w=0,x=1;for(p=0;p250&&(j=250),"C"==(N=((g[p]||{}).DBF||{}).type)&&g[p].DBF.len>j&&(j=g[p].DBF.len),"B"==B&&"N"==N&&(B="N",D[p]=g[p].DBF.dec,j=g[p].DBF.len),L[p]="C"==B||"N"==N?j:o[B]||0,x+=L[p],W[p]=B}else W[p]="?"}var U=u.next(32);for(U.write_shift(4,318902576),U.write_shift(4,m.length),U.write_shift(2,296+32*w),U.write_shift(2,x),p=0;p<4;++p)U.write_shift(4,0);var me=+i[Fn]||3;for(U.write_shift(4,0|me<<8),t[me]!=+l.codepage&&(l.codepage&&console.error("DBF Unsupported codepage "+Fn+", using 1252"),Fn=1252),p=0,_=0;pL[_]&&(he=he.slice(0,L[_])),w=0;w":190,"?":191,"{":223},i=new RegExp("\x1bN("+$i(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(u,h){var f=t[h];return"number"==typeof f?nw(f):f},n=function(u,h,f){var m=h.charCodeAt(0)-32<<4|f.charCodeAt(0)-48;return 59==m?u:nw(m)};function o(u,h){var j,f=u.split(/[\n\r]+/),m=-1,g=-1,p=0,_=0,w=[],x=[],M=null,W={},L=[],D=[],B=[],N=0,Z={Workbook:{WBProps:{},Names:[]}};for(+h.codepage>=0&&Do(+h.codepage);p!==f.length;++p){N=0;var de,U=f[p].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(i,e),me=U.replace(/;;/g,"\0").split(";").map(function(oe){return oe.replace(/\u0000/g,";")});if(U.length>0)switch(me[0]){case"ID":case"E":case"B":case"W":break;case"O":for(_=1;_=1&&ne<=4&&(Z.Workbook.WBProps.date1904=!0)}break;case"P":"P"===me[1].charAt(0)&&x.push(U.slice(3).replace(/;;/g,";"));break;case"NN":var Y={Sheet:0};for(_=1;_-1&&w[qe][mt];if(!z||!z[1])throw new Error("SYLK shared formula cannot find base");F=RL(z[1],{r:m-qe,c:g-mt})}F&&(w[m][g]?w[m][g].f=F:w[m][g]={t:"n",f:F});break;case"F":var V=0;for(_=1;_0?(L[m].hpt=N,L[m].hpx=du(N)):0===N&&(L[m].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+U)}V<1&&(M=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+U)}}return L.length>0&&(W["!rows"]=L),D.length>0&&(W["!cols"]=D),D.forEach(function(oe){ec(oe)}),h&&h.sheetRows&&(w=w.slice(0,h.sheetRows)),[w,W,Z]}function s(u,h,f,m){var g="C;Y"+(f+1)+";X"+(m+1)+";K";switch(u.t){case"n":g+=u.v||0,u.f&&!u.F&&(g+=";E"+n_(u.f,{r:f,c:m}));break;case"b":g+=u.v?"TRUE":"FALSE";break;case"e":g+=u.w||u.v;break;case"d":g+='"'+(u.w||u.v)+'"';break;case"s":g+='"'+(null==u.v?"":String(u.v)).replace(/"/g,"").replace(/;/g,";;")+'"'}return g}return t["|"]=254,{to_workbook:function a(u,h){var f=function r(u,h){switch(h.type){case"base64":return o(io(u),h);case"binary":return o(u,h);case"buffer":return o(Vt&&Buffer.isBuffer(u)?u.toString("binary"):Ea(u),h);case"array":return o(il(u),h)}throw new Error("Unrecognized type "+h.type)}(u,h),m=f[0],g=f[1],p=f[2],_=yi(h);_.date1904=(((p||{}).Workbook||{}).WBProps||{}).date1904;var w=au(m,_);$i(g).forEach(function(M){w[M]=g[M]});var x=Zs(w,h);return $i(p).forEach(function(M){x[M]=p[M]}),x.bookType="sylk",x},from_sheet:function d(u,h,f){var _,m=["ID;PSheetJS;N;E"],g=[],p=Kt(u["!ref"]),w=null!=u["!data"],x="\r\n",M=(((f||{}).Workbook||{}).WBProps||{}).date1904;m.push("P;PGeneral"),m.push("F;P0;DG0G8;M255"),u["!cols"]&&function c(u,h){h.forEach(function(f,m){var g="F;W"+(m+1)+" "+(m+1)+" ";f.hidden?g+="0":("number"==typeof f.width&&!f.wpx&&(f.wpx=Nf(f.width)),"number"==typeof f.wpx&&!f.wch&&(f.wch=Bf(f.wpx)),"number"==typeof f.wch&&(g+=Math.round(f.wch)))," "!=g.charAt(g.length-1)&&u.push(g)})}(m,u["!cols"]),u["!rows"]&&function l(u,h){h.forEach(function(f,m){var g="F;";f.hidden?g+="M0;":f.hpt?g+="M"+20*f.hpt+";":f.hpx&&(g+="M"+20*Vf(f.hpx)+";"),g.length>2&&u.push(g+"R"+(m+1))})}(m,u["!rows"]),m.push("B;Y"+(p.e.r-p.s.r+1)+";X"+(p.e.c-p.s.c+1)+";D"+[p.s.c,p.s.r,p.e.c,p.e.r].join(" ")),m.push("O;L;D;B"+(M?";V4":"")+";K47;G100 0.001");for(var W=p.s.r;W<=p.e.r;++W)if(!w||u["!data"][W]){for(var L=[],D=p.s.c;D<=p.e.c;++D)(_=w?u["!data"][W][D]:u[Ht(D)+Yt(W)])&&(null!=_.v||_.f&&!_.F)&&L.push(s(_,0,W,D));g.push(L.join(x))}return m.join(x)+x+g.join(x)+x+"E"+x}}}(),xL=function(){function i(s,c){for(var l=s.split("\n"),d=-1,u=-1,h=0,f=[];h!==l.length;++h)if("BOT"!==l[h].trim()){if(!(d<0)){for(var m=l[h].trim().split(","),g=m[0],p=m[1],_=l[++h]||"";1&(_.match(/["]/g)||[]).length&&h=0||d.indexOf(",")>=0||d.indexOf(";")>=0?function o(d,u){var h=u||{},f="";null!=an&&null==h.dense&&(h.dense=an);var m={};h.dense&&(m["!data"]=[]);var g={s:{c:0,r:0},e:{c:0,r:0}};"sep="==d.slice(0,4)?13==d.charCodeAt(5)&&10==d.charCodeAt(6)?(f=d.charAt(4),d=d.slice(7)):13==d.charCodeAt(5)||10==d.charCodeAt(5)?(f=d.charAt(4),d=d.slice(6)):f=r(d.slice(0,1024)):f=h&&h.FS?h.FS:r(d.slice(0,1024));var p=0,_=0,w=0,x=0,M=0,W=f.charCodeAt(0),L=!1,D=0,B=d.charCodeAt(0),N=null!=h.dateNF?function qoe(t){var i="number"==typeof t?ut[t]:t;return i=i.replace(VP,"(\\d+)"),new RegExp("^"+i+"$")}(h.dateNF):null;function j(){var Z=d.slice(x,M);"\r"==Z.slice(-1)&&(Z=Z.slice(0,-1));var U={};if('"'==Z.charAt(0)&&'"'==Z.charAt(Z.length-1)&&(Z=Z.slice(1,-1).replace(/""/g,'"')),0===Z.length?U.t="z":h.raw||0===Z.trim().length?(U.t="s",U.v=Z):61==Z.charCodeAt(0)?34==Z.charCodeAt(1)&&34==Z.charCodeAt(Z.length-1)?(U.t="s",U.v=Z.slice(2,-1).replace(/""/g,'"')):function Iue(t){return 1!=t.length}(Z)?(U.t="n",U.f=Z.slice(1)):(U.t="s",U.v=Z):"TRUE"==Z?(U.t="b",U.v=!0):"FALSE"==Z?(U.t="b",U.v=!1):isNaN(w=no(Z))?!isNaN((w=nu(Z)).getDate())||N&&Z.match(N)?(U.z=h.dateNF||ut[14],N&&Z.match(N)&&(Z=function Xoe(t,i,e){var n=-1,r=-1,o=-1,a=-1,s=-1,c=-1;(i.match(VP)||[]).forEach(function(u,h){var f=parseInt(e[h+1],10);switch(u.toLowerCase().charAt(0)){case"y":n=f;break;case"d":o=f;break;case"h":a=f;break;case"s":c=f;break;case"m":a>=0?s=f:r=f}}),c>=0&&-1==s&&r>=0&&(s=r,r=-1);var l=(""+(n>=0?n:(new Date).getFullYear())).slice(-4)+"-"+("00"+(r>=1?r:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);7==l.length&&(l="0"+l),8==l.length&&(l="20"+l);var d=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return-1==a&&-1==s&&-1==c?l:-1==n&&-1==r&&-1==o?d:l+"T"+d}(0,h.dateNF,Z.match(N)||[]),w=ji(Z,1)),h.cellDates?(U.t="d",U.v=w):(U.t="n",U.v=yn(w)),!1!==h.cellText&&(U.w=Vr(U.z,U.v instanceof Date?yn(U.v):U.v)),h.cellNF||delete U.z):(U.t="s",U.v=Z):(U.t="n",!1!==h.cellText&&(U.w=Z),U.v=w),"z"==U.t||(h.dense?(m["!data"][p]||(m["!data"][p]=[]),m["!data"][p][_]=U):m[zt({c:_,r:p})]=U),B=d.charCodeAt(x=M+1),g.e.c<_&&(g.e.c=_),g.e.r0&&j(),m["!ref"]=Et(g),m}(d,u):au(function i(d,u){var h=u||{},f=[];if(!d||0===d.length)return f;for(var m=d.split(/[\r\n]/),g=m.length-1;g>=0&&0===m[g].length;)--g;for(var p=10,_=0,w=0;w<=g;++w)-1==(_=m[w].indexOf(" "))?_=m[w].length:_++,p=Math.max(p,_);for(w=0;w<=g;++w){f[w]=[];var x=0;for(t(m[w].slice(0,p).trim(),f,w,x,h),x=1;x<=(m[w].length-p)/10+1;++x)t(m[w].slice(p+10*(x-1),p+10*x).trim(),f,w,x,h)}return h.sheetRows&&(f=f.slice(0,h.sheetRows)),f}(d,u),u)}function s(d,u){var h="",f="string"==u.type?[0,0,0,0]:function dC(t,i){var e="";switch((i||{}).type||"base64"){case"buffer":case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":e=io(t.slice(0,12));break;case"binary":e=t;break;default:throw new Error("Unrecognized type "+(i&&i.type||"undefined"))}return[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3),e.charCodeAt(4),e.charCodeAt(5),e.charCodeAt(6),e.charCodeAt(7)]}(d,u);switch(u.type){case"base64":h=io(d);break;case"binary":case"string":h=d;break;case"buffer":h=65001==u.codepage?d.toString("utf8"):u.codepage&&typeof Mt<"u"?Mt.utils.decode(u.codepage,d):Vt&&Buffer.isBuffer(d)?d.toString("binary"):Ea(d);break;case"array":h=il(d);break;default:throw new Error("Unrecognized type "+u.type)}return 239==f[0]&&187==f[1]&&191==f[2]?h=Ci(h.slice(3)):"string"!=u.type&&"buffer"!=u.type&&65001==u.codepage?h=Ci(h):"binary"==u.type&&typeof Mt<"u"&&u.codepage&&(h=Mt.utils.decode(u.codepage,Mt.utils.encode(28591,h))),"socialcalc:version:"==h.slice(0,19)?yL.to_sheet("string"==u.type?h:Ci(h),u):a(h,u)}return{to_workbook:function c(d,u){return Zs(s(d,u),u)},to_sheet:s,from_sheet:function l(d){for(var f,u=[],h=Kt(d["!ref"]),m=null!=d["!data"],g=h.s.r;g<=h.e.r;++g){for(var p=[],_=h.s.c;_<=h.e.c;++_){var w=zt({r:g,c:_});if((f=m?(d["!data"][g]||[])[_]:d[w])&&null!=f.v){for(var x=(f.w||(Aa(f),f.w)||"").slice(0,10);x.length<10;)x+=" ";p.push(x+(0===_?" ":""))}else p.push(" ")}u.push(p.join(""))}return u.join("\n")}}}(),pl=function(){function t(F,K,z){if(F){On(F,F.l||0);for(var V=z.Enum||ce;F.l255||Pe.s.r>999999)break;Pe.e.cJt&&(Pe.s.c=Jt),He=et.read_shift(4),Pe.s.r>He&&(Pe.s.r=He),He=et.read_shift(4),Pe.e.rHe&&(Pe.s.r=He),Pe.e.r0&&A>=0;){if(32&Si)switch(31&Si){case 2:oi={t:"n",v:oi.v+mr&65535};break;case 3:(oi={t:"n",v:oi.v+mr&65535}).v>32767&&(oi.v-=65536);break;case 7:oi={t:"s",v:oe[bt=bt+mr>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(31&Si)}else switch(31&Si){case 1:oi={t:"z"};break;case 2:oi={t:"n",v:et.read_shift(2)};break;case 7:oi={t:"s",v:oe[bt=et.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(31&Si)}!z.sheetStubs&&"z"==oi.t||(null!=V["!data"]?(V["!data"][He]||(V["!data"][He]=[]),V["!data"][He][Jt]=oi):V[fr+Yt(He)]=oi),++He,--A}}}F.l+=si}return $t}(F,K);if(0==F[2]&&(8==F[3]||9==F[3])&&F.length>=16&&5==F[14]&&108===F[15])throw new Error("Unsupported Works 3 for Mac file");if(2==F[2])z.Enum=ce,t(F,function(Ne,fr,oi){switch(oi){case 0:z.vers=Ne,Ne>=4096&&(z.qpro=!0);break;case 255:z.vers=Ne,z.works=!0;break;case 6:He=Ne;break;case 204:Ne&&(_e=Ne);break;case 222:_e=Ne;break;case 15:case 51:(!z.qpro&&!z.works||51==oi)&&Ne[1].v.charCodeAt(0)<48&&(Ne[1].v=Ne[1].v.slice(1)),(z.works||z.works2)&&(Ne[1].v=Ne[1].v.replace(/\r\n/g,"\n"));case 13:case 14:case 16:14==oi&&112==(112&Ne[2])&&(15&Ne[2])>1&&(15&Ne[2])<15&&(Ne[1].z=z.dateNF||ut[14],z.cellDates&&(Ne[1].t="d",Ne[1].v=N0(Ne[1].v))),z.qpro&&Ne[3]>Re&&(V["!ref"]=Et(He),Pe[oe]=V,A.push(oe),V={},z.dense&&(Jt=V["!data"]=[]),He={s:{r:0,c:0},e:{r:0,c:0}},Re=Ne[3],oe=_e||"Sheet"+(Re+1),_e="");var Si=z.dense?(Jt[Ne[0].r]||[])[Ne[0].c]:V[zt(Ne[0])];if(Si){Si.t=Ne[1].t,Si.v=Ne[1].v,null!=Ne[1].z&&(Si.z=Ne[1].z),null!=Ne[1].f&&(Si.f=Ne[1].f);break}z.dense?(Jt[Ne[0].r]||(Jt[Ne[0].r]=[]),Jt[Ne[0].r][Ne[0].c]=Ne[1]):V[zt(Ne[0])]=Ne[1];break;case 21509:z.works2=!0}},z);else{if(26!=F[2]&&14!=F[2])throw new Error("Unrecognized LOTUS BOF "+F[2]);z.Enum=qe,14==F[2]&&(z.qpro=!0,F.l=0),t(F,function(Ne,fr,oi){switch(oi){case 204:oe=Ne;break;case 22:Ne[1].v.charCodeAt(0)<48&&(Ne[1].v=Ne[1].v.slice(1)),Ne[1].v=Ne[1].v.replace(/\x0F./g,function(Si){return String.fromCharCode(Si.charCodeAt(1)-32)}).replace(/\r\n/g,"\n");case 23:case 24:case 25:case 37:case 39:case 40:if(Ne[3]>Re&&(V["!ref"]=Et(He),Pe[oe]=V,A.push(oe),V={},z.dense&&(Jt=V["!data"]=[]),He={s:{r:0,c:0},e:{r:0,c:0}},oe="Sheet"+((Re=Ne[3])+1)),$t>0&&Ne[0].r>=$t)break;z.dense?(Jt[Ne[0].r]||(Jt[Ne[0].r]=[]),Jt[Ne[0].r][Ne[0].c]=Ne[1]):V[zt(Ne[0])]=Ne[1],He.e.c=128?95:_e)}return V.write_shift(1,0),V}function m(F,K,z){var V=re(7);return V.write_shift(1,255),V.write_shift(2,K),V.write_shift(2,F),V.write_shift(2,z,"i"),V}function p(F,K,z){var V=re(13);return V.write_shift(1,255),V.write_shift(2,K),V.write_shift(2,F),V.write_shift(8,z,"f"),V}function w(F,K,z){var V=32768&K;return K=(V?F:0)+((K&=-32769)>=8192?K-16384:K),(V?"":"$")+(z?Ht(K):Yt(K))}var x={31:["NA",0],33:["ABS",1],34:["TRUNC",1],35:["SQRT",1],36:["LOG",1],37:["LN",1],38:["PI",0],39:["SIN",1],40:["COS",1],41:["TAN",1],42:["ATAN2",2],43:["ATAN",1],44:["ASIN",1],45:["ACOS",1],46:["EXP",1],47:["MOD",2],49:["ISNA",1],50:["ISERR",1],51:["FALSE",0],52:["TRUE",0],53:["RAND",0],63:["ROUND",2],68:["ISNUMBER",1],69:["ISTEXT",1],70:["LEN",1],71:["VALUE",1],73:["MID",3],74:["CHAR",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],102:["UPPER",1],103:["LOWER",1],107:["PROPER",1],109:["TRIM",1],111:["T",1]},M=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function L(F){var K=[{c:0,r:0},{t:"n",v:0},0];return K[0].r=F.read_shift(2),K[3]=F[F.l++],K[0].c=F[F.l++],K}function B(F,K,z,V){var oe=re(6+V.length);oe.write_shift(2,F),oe.write_shift(1,z),oe.write_shift(1,K),oe.write_shift(1,39);for(var _e=0;_e=128?95:Re)}return oe.write_shift(1,0),oe}function j(F,K){var z=L(F),V=F.read_shift(4),oe=F.read_shift(4),_e=F.read_shift(2);if(65535==_e)return 0===V&&3221225472===oe?(z[1].t="e",z[1].v=15):0===V&&3489660928===oe?(z[1].t="e",z[1].v=42):z[1].v=0,z;var Re=32768&_e;return _e=(32767&_e)-16446,z[1].v=(1-2*Re)*(oe*Math.pow(2,_e+32)+V*Math.pow(2,_e)),z}function Z(F,K,z,V){var oe=re(14);if(oe.write_shift(2,F),oe.write_shift(1,z),oe.write_shift(1,K),0==V)return oe.write_shift(4,0),oe.write_shift(4,0),oe.write_shift(2,65535),oe;var _e=0,Re=0,A=0;return V<0&&(_e=1,V=-V),Re=0|Math.log2(V),2147483648&(A=(V/=Math.pow(2,Re-31))>>>0)||(++Re,A=(V/=2)>>>0),V-=A,A|=2147483648,A>>>=0,V*=Math.pow(2,32),oe.write_shift(4,V>>>0),oe.write_shift(4,A),oe.write_shift(2,Re+=16383+(_e?32768:0)),oe}function be(F,K){var z=L(F),V=F.read_shift(8,"f");return z[1].v=V,z}function ne(F,K){return 0==F[F.l+K-1]?F.read_shift(K,"cstr"):""}function Le(F,K){var z=re(5+F.length);z.write_shift(2,14e3),z.write_shift(2,K);for(var V=0;V127?95:oe}return z[z.l++]=0,z}var ce={0:{n:"BOF",f:ln},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function s(F,K,z){var V={s:{c:0,r:0},e:{c:0,r:0}};return 8==K&&z.qpro?(V.s.c=F.read_shift(1),F.l++,V.s.r=F.read_shift(2),V.e.c=F.read_shift(1),F.l++,V.e.r=F.read_shift(2),V):(V.s.c=F.read_shift(2),V.s.r=F.read_shift(2),12==K&&z.qpro&&(F.l+=2),V.e.c=F.read_shift(2),V.e.r=F.read_shift(2),12==K&&z.qpro&&(F.l+=2),65535==V.s.c&&(V.s.c=V.e.c=V.s.r=V.e.r=0),V)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function f(F,K,z){var V=l(F,0,z);return V[1].v=F.read_shift(2,"i"),V}},14:{n:"NUMBER",f:function g(F,K,z){var V=l(F,0,z);return V[1].v=F.read_shift(8,"f"),V}},15:{n:"LABEL",f:function d(F,K,z){var V=F.l+K,oe=l(F,0,z);if(oe[1].t="s",20768==z.vers){F.l++;var _e=F.read_shift(1);return oe[1].v=F.read_shift(_e,"utf8"),oe}return z.qpro&&F.l++,oe[1].v=F.read_shift(V-F.l,"cstr"),oe}},16:{n:"FORMULA",f:function _(F,K,z){var V=F.l+K,oe=l(F,0,z);if(oe[1].v=F.read_shift(8,"f"),z.qpro)F.l=V;else{var _e=F.read_shift(2);(function W(F,K){On(F,0);for(var z=[],V=0,oe="",_e="",Re="",Pe="";F.lz.length)return void console.error("WK1 bad formula parse 0x"+A.toString(16)+":|"+z.join("|")+"|");var $t=z.slice(-V);z.length-=V,z.push(x[A][0]+"("+$t.join(",")+")")}}}1==z.length?K[1].f=""+z[0]:console.error("WK1 bad formula parse |"+z.join("|")+"|")})(F.slice(F.l,F.l+_e),oe),F.l+=_e}return oe}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:function h(F,K,z){var V=F.l+K,oe=l(F,0,z);if(oe[1].t="s",20768==z.vers){var _e=F.read_shift(1);return oe[1].v=F.read_shift(_e,"utf8"),oe}return oe[1].v=F.read_shift(V-F.l,"cstr"),oe}},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ne},222:{n:"SHEETNAMELP",f:function Y(F,K){var z=F[F.l++];z>K-1&&(z=K-1);for(var V="";V.length>1;if(1&z[1].v)switch(7&V){case 0:V=5e3*(V>>3);break;case 1:V=500*(V>>3);break;case 2:V=(V>>3)/20;break;case 3:V=(V>>3)/200;break;case 4:V=(V>>3)/2e3;break;case 5:V=(V>>3)/2e4;break;case 6:V=(V>>3)/16;break;case 7:V=(V>>3)/64}return z[1].v=V,z}},25:{n:"FORMULA19",f:function U(F,K){var z=j(F);return F.l+=K-14,z}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function se(F,K){for(var z={},V=F.l+K;F.l>6,z}},38:{n:"??"},39:{n:"NUMBER27",f:be},40:{n:"FORMULA28",f:function de(F,K){var z=be(F);return F.l+=K-12,z}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ne},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function he(F,K,z){if(z.qpro&&!(K<21)){var V=F.read_shift(1);return F.l+=17,F.l+=1,F.l+=2,[V,F.read_shift(K-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function n(F,K){var z=K||{};if(+z.codepage>=0&&Do(+z.codepage),"string"==z.type)throw new Error("Cannot write WK1 to JS string");var V=Ur(),oe=Kt(F["!ref"]),_e=null!=F["!data"],Re=[];Ie(V,0,function o(F){var K=re(2);return K.write_shift(2,F),K}(1030)),Ie(V,6,function c(F){var K=re(8);return K.write_shift(2,F.s.c),K.write_shift(2,F.s.r),K.write_shift(2,F.e.c),K.write_shift(2,F.e.r),K}(oe));for(var Pe=Math.min(oe.e.r,8191),A=oe.s.c;A<=oe.e.c;++A)Re[A]=Ht(A);for(var bt=oe.s.r;bt<=Pe;++bt){var Jt=Yt(bt);for(A=oe.s.c;A<=oe.e.c;++A){var He=_e?(F["!data"][bt]||[])[A]:F[Re[A]+Jt];He&&"z"!=He.t&&("n"==He.t?(0|He.v)==He.v&&He.v>=-32768&&He.v<=32767?Ie(V,13,m(bt,A,He.v)):Ie(V,14,p(bt,A,He.v)):Ie(V,15,u(bt,A,Aa(He).slice(0,239))))}}return Ie(V,1),V.end()},book_to_wk3:function r(F,K){var z=K||{};if(+z.codepage>=0&&Do(+z.codepage),"string"==z.type)throw new Error("Cannot write WK3 to JS string");var V=Ur();Ie(V,0,function a(F){var K=re(26);K.write_shift(2,4096),K.write_shift(2,4),K.write_shift(4,0);for(var z=0,V=0,oe=0,_e=0;_e8191&&(z=8191),K.write_shift(2,z),K.write_shift(1,oe),K.write_shift(1,V),K.write_shift(2,0),K.write_shift(2,0),K.write_shift(1,1),K.write_shift(1,2),K.write_shift(4,0),K.write_shift(4,0),K}(F));for(var oe=0,_e=0;oe=0;--o)i=((16384&i?1:0)|i<<1&32767)^e[o];return 52811^i}function Lf(t){for(var i=0,e=1;3!=i;++i)e=256*e+(t[i]>255?255:t[i]<0?0:t[i]);return e.toString(16).toUpperCase().slice(1)}var ur=6;function Nf(t){return Math.floor((t+Math.round(128/ur)/256)*ur)}function Bf(t){return Math.floor((t-5)/ur*100+.5)/100}function e_(t){return Math.round((t*ur+5)/ur*256)/256}function ec(t){t.width?(t.wpx=Nf(t.width),t.wch=Bf(t.wpx),t.MDW=ur):t.wpx?(t.wch=Bf(t.wpx),t.width=e_(t.wch),t.MDW=ur):"number"==typeof t.wch&&(t.width=e_(t.wch),t.wpx=Nf(t.width),t.MDW=ur),t.customWidth&&delete t.customWidth}var EL=96;function Vf(t){return 96*t/EL}function du(t){return t*EL/96}function lde(t,i,e){e||(e=re(6+4*i.length)),e.write_shift(2,t),Ln(i,e);var n=e.length>e.l?e.slice(0,e.l):e;return null==e.l&&(e.l=e.length),n}var qw,hde=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],fde=sr;function TL(t,i){i||(i=re(84)),qw||(qw=O0(hde));var e=qw[t.patternType];null==e&&(e=40),i.write_shift(4,e);var n=0;if(40!=e)for($0({auto:1},i),$0({auto:1},i);n<12;++n)i.write_shift(4,0);else{for(;n<4;++n)i.write_shift(4,0);for(;n<12;++n)i.write_shift(4,0)}return i.length>i.l?i.slice(0,i.l):i}function ML(t,i,e){return e||(e=re(16)),e.write_shift(2,i||0),e.write_shift(2,t.numFmtId||0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e}function Hf(t,i){return i||(i=re(10)),i.write_shift(1,0),i.write_shift(1,0),i.write_shift(4,0),i.write_shift(4,0),i}var pde=sr;function Mde(t,i){var e=Ur();return fe(e,278),function xde(t,i){if(i){var e=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)null!=i[r]&&++e}),0!=e&&(fe(t,615,Jo(e)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)null!=i[r]&&fe(t,44,lde(r,i[r]))}),fe(t,616))}}(e,t.SSF),function yde(t){fe(t,611,Jo(1)),fe(t,43,function ude(t,i){i||(i=re(153)),i.write_shift(2,20*t.sz),function $ae(t,i){i||(i=re(2)),i.write_shift(1,(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0)),i.write_shift(1,0)}(t,i),i.write_shift(2,t.bold?700:400);var e=0;"superscript"==t.vertAlign?e=1:"subscript"==t.vertAlign&&(e=2),i.write_shift(2,e),i.write_shift(1,t.underline||0),i.write_shift(1,t.family||0),i.write_shift(1,t.charset||0),i.write_shift(1,0),$0(t.color,i);var n=0;return"major"==t.scheme&&(n=1),"minor"==t.scheme&&(n=2),i.write_shift(1,n),Ln(t.name,i),i.length>i.l?i.slice(0,i.l):i}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),fe(t,612)}(e),function wde(t){fe(t,603,Jo(2)),fe(t,45,TL({patternType:"none"})),fe(t,45,TL({patternType:"gray125"})),fe(t,604)}(e),function Cde(t){fe(t,613,Jo(1)),fe(t,46,function gde(t,i){return i||(i=re(51)),i.write_shift(1,0),Hf(0,i),Hf(0,i),Hf(0,i),Hf(0,i),Hf(0,i),i.length>i.l?i.slice(0,i.l):i}()),fe(t,614)}(e),function kde(t){fe(t,626,Jo(1)),fe(t,47,ML({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),fe(t,627)}(e),function Dde(t,i){fe(t,617,Jo(i.length)),i.forEach(function(e){fe(t,47,ML(e,0))}),fe(t,618)}(e,i.cellXfs),function Sde(t){fe(t,619,Jo(1)),fe(t,48,function _de(t,i){return i||(i=re(52)),i.write_shift(4,t.xfId),i.write_shift(2,1),i.write_shift(1,+t.builtinId),i.write_shift(1,0),If(t.name||"",i),i.length>i.l?i.slice(0,i.l):i}({xfId:0,builtinId:0,name:"Normal"})),fe(t,620)}(e),function Ede(t){fe(t,505,Jo(0)),fe(t,506)}(e),function Tde(t){fe(t,508,function bde(t,i,e){var n=re(2052);return n.write_shift(4,t),If(i,n),If(e,n),n.length>n.l?n.slice(0,n.l):n}(0,"TableStyleMedium9","PivotStyleMedium4")),fe(t,509)}(e),fe(e,279),e.end()}function Xw(t,i){if(i&&i.themeXLSX)return i.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var e=[sn];return e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e.join("")}function IL(t,i){var e=[21600,21600],n=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),r=[Ee("xml",null,{"xmlns:v":ro.v,"xmlns:o":ro.o,"xmlns:x":ro.x,"xmlns:mv":ro.mv}).replace(/\/>/,">"),Ee("o:shapelayout",Ee("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"})],o=65536*t,a=i||[];return a.length>0&&r.push(Ee("v:shapetype",[Ee("v:stroke",null,{joinstyle:"miter"}),Ee("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202",coordsize:e.join(","),"o:spt":202,path:n})),a.forEach(function(s){++o,r.push(function lue(t,i){var e=bi(t[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?Ee("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=Ee("v:fill",r,n);return["",o,Ee("v:shadow",null,{on:"t",obscured:"t"}),Ee("v:path",null,{"o:connecttype":"none"}),'
','',"","",Qn("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),Qn("x:AutoFill","False"),Qn("x:Row",String(e.r)),Qn("x:Column",String(e.c)),t[1].hidden?"":"","",""].join("")}(s,o))}),r.push(""),r.join("")}function uue(t){var i=[sn,Ee("comments",null,{xmlns:nl[0]})],e=[];return i.push(""),t.forEach(function(n){n[1].forEach(function(r){var o=Ot(r.a);-1==e.indexOf(o)&&(e.push(o),i.push(""+o+"")),r.T&&r.ID&&-1==e.indexOf("tc="+r.ID)&&(e.push("tc="+r.ID),i.push("tc="+r.ID+""))})}),0==e.length&&(e.push("SheetJ5"),i.push("SheetJ5")),i.push(""),i.push(""),t.forEach(function(n){var r=0,o=[],a=0;if(n[1][0]&&n[1][0].T&&n[1][0].ID&&(r=e.indexOf("tc="+n[1][0].ID)),n[1].forEach(function(l){l.a&&(r=e.indexOf(Ot(l.a))),l.T&&++a,o.push(null==l.t?"":Ot(l.t))}),0===a)n[1].forEach(function(l){i.push(''),i.push(Qn("t",null==l.t?"":Ot(l.t))),i.push("")});else{i.push('');for(var s="Comment:\n "+o[0]+"\n",c=1;c")}}),i.push(""),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function fue(t,i,e){var n=[sn,Ee("ThreadedComments",null,{xmlns:Rn.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(r){var o="";(r[1]||[]).forEach(function(a,s){if(a.T){a.a&&-1==i.indexOf(a.a)&&i.push(a.a);var c={ref:r[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+e.tcid++).slice(-12)+"}"};0==s?o=c.id:c.parentId=o,a.ID=c.id,a.a&&(c.personId="{54EE7950-7262-4200-6969-"+("000000000000"+i.indexOf(a.a)).slice(-12)+"}"),n.push(Ee("threadedComment",Qn("text",a.t||""),c))}else delete a.ID})}),n.push(""),n.join("")}var bue=cr;function yue(t){var i=Ur(),e=[];return fe(i,628),fe(i,630),t.forEach(function(n){n[1].forEach(function(r){e.indexOf(r.a)>-1||(e.push(r.a.slice(0,54)),fe(i,632,function vue(t){return Ln(t.slice(0,54))}(r.a)))})}),fe(i,631),fe(i,633),t.forEach(function(n){n[1].forEach(function(r){r.iauthor=e.indexOf(r.a);var o={s:bi(n[0]),e:bi(n[0])};fe(i,635,function _ue(t,i){return null==i&&(i=re(36)),i.write_shift(4,t[1].iauthor),su(t[0],i),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i}([o,r])),r.t&&r.t.length>0&&fe(i,637,function Nae(t,i){var e=!1;return null==i&&(e=!0,i=re(23+4*t.t.length)),i.write_shift(1,1),Ln(t.t,i),i.write_shift(4,1),function Oae(t,i){i||(i=re(4)),i.write_shift(2,t.ich||0),i.write_shift(2,t.ifnt||0)}({ich:0,ifnt:0},i),e?i.slice(0,i.l):i}(r)),fe(i,636),delete r.iauthor})}),fe(i,634),fe(i,629),i.end()}var Due=["xlsb","xlsm","xlam","biff8","xla"],gl=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,i={r:0,c:0};function e(n,r,o,a){var s=!1,c=!1;0==o.length?c=!0:"["==o.charAt(0)&&(c=!0,o=o.slice(1,-1)),0==a.length?s=!0:"["==a.charAt(0)&&(s=!0,a=a.slice(1,-1));var l=o.length>0?0|parseInt(o,10):0,d=a.length>0?0|parseInt(a,10):0;return s?d+=i.c:--d,c?l+=i.r:--l,r+(s?"":"$")+Ht(d)+(c?"":"$")+Yt(l)}return function(r,o){return i=o,r.replace(t,e)}}(),Qw=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,n_=function(){return function(i,e){return i.replace(Qw,function(n,r,o,a,s,c){var l=Cw(a)-(o?0:e.c),d=ww(c)-(s?0:e.r);return r+"R"+("$"==s?d+1:0==d?"":"["+d+"]")+"C"+("$"==o?l+1:0==l?"":"["+l+"]")})}}();function RL(t,i){return t.replace(Qw,function(e,n,r,o,a,s){return n+("$"==r?r+o:Ht(Cw(o)+i.c))+("$"==a?a+s:Yt(ww(s)+i.r))})}function kn(t){t.l+=1}function tc(t,i){var e=t.read_shift(1==i?1:2);return[16383&e,e>>14&1,e>>15&1]}function PL(t,i,e){var n=2;if(e){if(e.biff>=2&&e.biff<=5)return LL(t);12==e.biff&&(n=4)}var r=t.read_shift(n),o=t.read_shift(n),a=tc(t,2),s=tc(t,2);return{s:{r,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function LL(t){var i=tc(t,2),e=tc(t,2),n=t.read_shift(1),r=t.read_shift(1);return{s:{r:i[0],c:n,cRel:i[1],rRel:i[2]},e:{r:e[0],c:r,cRel:e[1],rRel:e[2]}}}function NL(t,i,e){if(e&&e.biff>=2&&e.biff<=5)return function Rue(t){var i=tc(t,2),e=t.read_shift(1);return{r:i[0],c:e,cRel:i[1],rRel:i[2]}}(t);var n=t.read_shift(e&&12==e.biff?4:2),r=tc(t,2);return{r:n,c:r[0],cRel:r[1],rRel:r[2]}}function Oue(t){var i=t.read_shift(2),e=t.read_shift(2);return{r:i,c:255&e,fQuoted:!!(16384&e),cRel:e>>15,rRel:e>>15}}function BL(t){var i=1&t[t.l+1];return t.l+=4,[i,1]}function VL(t){return[t.read_shift(1),t.read_shift(1)]}function lhe(t,i){var e=[t.read_shift(1)];if(12==i)switch(e[0]){case 2:e[0]=4;break;case 4:e[0]=16;break;case 0:e[0]=1;break;case 1:e[0]=2}switch(e[0]){case 4:e[1]=function cn(t,i){return 1===t.read_shift(i)}(t,1)?"TRUE":"FALSE",12!=i&&(t.l+=7);break;case 37:case 16:e[1]=gs[t[t.l]],t.l+=12==i?4:8;break;case 0:t.l+=8;break;case 1:e[1]=lr(t);break;case 2:e[1]=function fl(t,i,e){if(e.biff>5)return function Pf(t,i,e){var n=t.read_shift(e&&2==e.biff?1:2);return 0===n?(t.l++,""):function hl(t,i,e){if(e){if(e.biff>=2&&e.biff<=5)return t.read_shift(i,"cpstr");if(e.biff>=12)return t.read_shift(i,"dbcs-cont")}var r=t.read_shift(1);return t.read_shift(i,0===r?"sbcs-cont":"dbcs-cont")}(t,n,e)}(t,0,e);var n=t.read_shift(1);return 0===n?(t.l++,""):t.read_shift(n,e.biff<=4||!t.lens?"cpstr":"sbcs-cont")}(t,0,{biff:i>0&&i<8?2:i});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function dhe(t,i,e){for(var n=t.read_shift(12==e.biff?4:2),r=[],o=0;o!=n;++o)r.push((12==e.biff?cl:Y0)(t,8));return r}function uhe(t,i,e){var n=0,r=0;12==e.biff?(n=t.read_shift(4),r=t.read_shift(4)):(r=1+t.read_shift(1),n=1+t.read_shift(2)),e.biff>=2&&e.biff<8&&(--n,0==--r&&(r=256));for(var o=0,a=[];o!=n&&(a[o]=[]);++o)for(var s=0;s!=r;++s)a[o][s]=lhe(t,e.biff);return a}function Uf(t,i,e){return t.l+=2,[Oue(t)]}function Yw(t){return t.l+=6,[]}function HL(t){return t.l+=2,[ln(t),1&t.read_shift(2)]}var Ihe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],UL={1:{n:"PtgExp",f:function nhe(t,i,e){return t.l++,e&&12==e.biff?[t.read_shift(4,"i"),0]:[t.read_shift(2),t.read_shift(e&&2==e.biff?1:2)]}},2:{n:"PtgTbl",f:sr},3:{n:"PtgAdd",f:kn},4:{n:"PtgSub",f:kn},5:{n:"PtgMul",f:kn},6:{n:"PtgDiv",f:kn},7:{n:"PtgPower",f:kn},8:{n:"PtgConcat",f:kn},9:{n:"PtgLt",f:kn},10:{n:"PtgLe",f:kn},11:{n:"PtgEq",f:kn},12:{n:"PtgGe",f:kn},13:{n:"PtgGt",f:kn},14:{n:"PtgNe",f:kn},15:{n:"PtgIsect",f:kn},16:{n:"PtgUnion",f:kn},17:{n:"PtgRange",f:kn},18:{n:"PtgUplus",f:kn},19:{n:"PtgUminus",f:kn},20:{n:"PtgPercent",f:kn},21:{n:"PtgParen",f:kn},22:{n:"PtgMissArg",f:kn},23:{n:"PtgStr",f:function che(t,i,e){return t.l++,Of(t,0,e)}},26:{n:"PtgSheet",f:function Ohe(t,i,e){return t.l+=5,t.l+=2,t.l+=2==e.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function Phe(t,i,e){return t.l+=2==e.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function rhe(t){return t.l++,gs[t.read_shift(1)]}},29:{n:"PtgBool",f:function ahe(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function ohe(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function she(t){return t.l++,lr(t)}},32:{n:"PtgArray",f:function zue(t,i,e){var n=(96&t[t.l++])>>5;return t.l+=2==e.biff?6:12==e.biff?14:7,[n]}},33:{n:"PtgFunc",f:function Jue(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(e&&e.biff<=3?1:2);return[ffe[r],WL[r],n]}},34:{n:"PtgFuncVar",f:function ehe(t,i,e){var n=t[t.l++],r=t.read_shift(1),o=e&&e.biff<=3?[88==n?-1:0,t.read_shift(1)]:function the(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[r,(0===o[0]?WL:hfe)[o[1]]]}},35:{n:"PtgName",f:function hhe(t,i,e){var n=t.read_shift(1)>>>5&3,o=t.read_shift(!e||e.biff>=8?4:2);switch(e.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12}return[n,0,o]}},36:{n:"PtgRef",f:function Yue(t,i,e){var n=(96&t[t.l])>>5;return t.l+=1,[n,NL(t,0,e)]}},37:{n:"PtgArea",f:function Nue(t,i,e){return[(96&t[t.l++])>>5,PL(t,0,e)]}},38:{n:"PtgMemArea",f:function phe(t,i,e){var n=t.read_shift(1)>>>5&3;return t.l+=e&&2==e.biff?3:4,[n,t.read_shift(e&&2==e.biff?1:2)]}},39:{n:"PtgMemErr",f:sr},40:{n:"PtgMemNoMem",f:sr},41:{n:"PtgMemFunc",f:function ghe(t,i,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&2==e.biff?1:2)]}},42:{n:"PtgRefErr",f:function _he(t,i,e){var n=t.read_shift(1)>>>5&3;return t.l+=4,e.biff<8&&t.l--,12==e.biff&&(t.l+=2),[n]}},43:{n:"PtgAreaErr",f:function Vue(t,i,e){var n=(96&t[t.l++])>>5;return t.l+=e&&e.biff>8?12:e.biff<8?6:8,[n]}},44:{n:"PtgRefN",f:function Kue(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=function Pue(t,i,e){var n=e&&e.biff?e.biff:8;if(n>=2&&n<=5)return function Lue(t){var i=t.read_shift(2),e=t.read_shift(1),n=(32768&i)>>15,r=(16384&i)>>14;return i&=16383,1==n&&i>=8192&&(i-=16384),1==r&&e>=128&&(e-=256),{r:i,c:e,cRel:r,rRel:n}}(t);var r=t.read_shift(n>=12?4:2),o=t.read_shift(2),a=(16384&o)>>14,s=(32768&o)>>15;if(o&=16383,1==s)for(;r>524287;)r-=1048576;if(1==a)for(;o>8191;)o-=16384;return{r,c:o,cRel:a,rRel:s}}(t,0,e);return[n,r]}},45:{n:"PtgAreaN",f:function Uue(t,i,e){var n=(96&t[t.l++])>>5,r=function Fue(t,i,e){if(e.biff<8)return LL(t);var n=t.read_shift(12==e.biff?4:2),r=t.read_shift(12==e.biff?4:2),o=tc(t,2),a=tc(t,2);return{s:{r:n,c:o[0],cRel:o[1],rRel:o[2]},e:{r,c:a[0],cRel:a[1],rRel:a[2]}}}(t,0,e);return[n,r]}},46:{n:"PtgMemAreaN",f:function Lhe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function Nhe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function fhe(t,i,e){return 5==e.biff?function mhe(t){var i=t.read_shift(1)>>>5&3,e=t.read_shift(2,"i");t.l+=8;var n=t.read_shift(2);return t.l+=12,[i,e,n]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function Zue(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(2);return e&&5==e.biff&&(t.l+=12),[n,r,NL(t,0,e)]}},59:{n:"PtgArea3d",f:function Bue(t,i,e){var n=(96&t[t.l++])>>5,r=t.read_shift(2,"i");if(e&&5===e.biff)t.l+=12;return[n,r,PL(t,0,e)]}},60:{n:"PtgRefErr3d",f:function bhe(t,i,e){var n=(96&t[t.l++])>>5,r=t.read_shift(2),o=4;if(e)switch(e.biff){case 5:o=15;break;case 12:o=6}return t.l+=o,[n,r]}},61:{n:"PtgAreaErr3d",f:function Hue(t,i,e){var n=(96&t[t.l++])>>5,r=t.read_shift(2),o=8;if(e)switch(e.biff){case 5:t.l+=12,o=6;break;case 12:o=12}return t.l+=o,[n,r]}},255:{}},Vhe={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Hhe={1:{n:"PtgElfLel",f:HL},2:{n:"PtgElfRw",f:Uf},3:{n:"PtgElfCol",f:Uf},6:{n:"PtgElfRwV",f:Uf},7:{n:"PtgElfColV",f:Uf},10:{n:"PtgElfRadical",f:Uf},11:{n:"PtgElfRadicalS",f:Yw},13:{n:"PtgElfColS",f:Yw},15:{n:"PtgElfColSV",f:Yw},16:{n:"PtgElfRadicalLel",f:HL},25:{n:"PtgList",f:function Fhe(t){t.l+=2;var i=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(4),r=t.read_shift(2),o=t.read_shift(2);return{ixti:i,coltype:3&e,rt:Ihe[e>>2&31],idx:n,c:r,C:o}}},29:{n:"PtgSxName",f:function Rhe(t){return t.l+=2,[t.read_shift(4)]}},255:{}},Uhe={0:{n:"PtgAttrNoop",f:function Bhe(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function que(t,i,e){var n=255&t[t.l+1]?1:0;return t.l+=e&&2==e.biff?3:4,[n]}},2:{n:"PtgAttrIf",f:function Wue(t,i,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&2==e.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function $ue(t,i,e){t.l+=2;for(var n=t.read_shift(e&&2==e.biff?1:2),r=[],o=0;o<=n;++o)r.push(t.read_shift(e&&2==e.biff?1:2));return r}},8:{n:"PtgAttrGoto",f:function jue(t,i,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&2==e.biff?1:2)]}},16:{n:"PtgAttrSum",f:function ihe(t,i,e){t.l+=e&&2==e.biff?3:4}},32:{n:"PtgAttrBaxcel",f:BL},33:{n:"PtgAttrBaxcel",f:BL},64:{n:"PtgAttrSpace",f:function Xue(t){return t.read_shift(2),VL(t)}},65:{n:"PtgAttrSpaceSemi",f:function Que(t){return t.read_shift(2),VL(t)}},128:{n:"PtgAttrIfError",f:function Gue(t){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(2)]}},255:{}};function zf(t,i,e,n){if(n.biff<8)return sr(t,i);for(var r=t.l+i,o=[],a=0;a!==e.length;++a)switch(e[a][0]){case"PtgArray":e[a][1]=uhe(t,0,n),o.push(e[a][1]);break;case"PtgMemArea":e[a][2]=dhe(t,0,n),o.push(e[a][2]);break;case"PtgExp":n&&12==n.biff&&(e[a][1][1]=t.read_shift(4),o.push(e[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[a][0]}return 0!=(i=r-t.l)&&o.push(sr(t,i)),o}function zhe(t){for(var i=[],e=0;e=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function jhe(t,i){var e=t.lastIndexOf("!"),n=i.lastIndexOf("!");return-1==e&&-1==n?t+":"+i:e>0&&n>0&&t.slice(0,e).toLowerCase()==i.slice(0,n).toLowerCase()?t+":"+i.slice(n+1):(console.error("Cannot hydrate range",t,i),t+":"+i)}function zL(t,i,e){if(!t)return"SH33TJSERR0";if(e.biff>8&&(!t.XTI||!t.XTI[i]))return t.SheetNames[i];if(!t.XTI)return"SH33TJSERR6";var n=t.XTI[i];if(e.biff<8)return i>1e4&&(i-=65536),i<0&&(i=-i),0==i?"":t.XTI[i-1];if(!n)return"SH33TJSERR1";var r="";if(e.biff>8)switch(t[n[0]][0]){case 357:return r=-1==n[1]?"#REF":t.SheetNames[n[1]],n[1]==n[2]?r:r+":"+t.SheetNames[n[2]];case 358:return null!=e.SID?t.SheetNames[e.SID]:"SH33TJSSAME"+t[n[0]][0];default:return"SH33TJSSRC"+t[n[0]][0]}switch(t[n[0]][0][0]){case 1025:return r=-1==n[1]?"#REF":t.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?r:r+":"+t.SheetNames[n[2]];case 14849:return t[n[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return t[n[0]][0][3]?(r=-1==n[1]?"#REF":t[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?r:r+":"+t[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function $L(t,i,e){var n=zL(t,i,e);return"#REF"==n?n:Af(n,e)}function hr(t,i,e,n,r){var c,l,d,f,o=r&&r.biff||8,a={s:{c:0,r:0},e:{c:0,r:0}},s=[],u=0,h=0,m="";if(!t[0]||!t[0][0])return"";for(var g=-1,p="",_=0,w=t[0].length;_=0){switch(t[0][g][1][0]){case 0:p=ri(" ",t[0][g][1][1]);break;case 1:p=ri("\r",t[0][g][1][1]);break;default:if(p="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}l+=p,g=-1}s.push(l+$he[x[0]]+c);break;case"PtgIsect":c=s.pop(),l=s.pop(),s.push(l+" "+c);break;case"PtgUnion":c=s.pop(),l=s.pop(),s.push(l+","+c);break;case"PtgRange":c=s.pop(),l=s.pop(),s.push(jhe(l,c));break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":d=Ef(x[1][1],a,r),s.push(Tf(d,o));break;case"PtgRefN":d=e?Ef(x[1][1],e,r):x[1][1],s.push(Tf(d,o));break;case"PtgRef3d":u=x[1][1],d=Ef(x[1][2],a,r),m=$L(n,u,r),s.push(m+"!"+Tf(d,o));break;case"PtgFunc":case"PtgFuncVar":var W=x[1][0],L=x[1][1];W||(W=0);var D=0==(W&=127)?[]:s.slice(-W);s.length-=W,"User"===L&&(L=D.shift()),s.push(L+"("+D.join(",")+")");break;case"PtgBool":s.push(x[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":s.push(x[1]);break;case"PtgNum":s.push(String(x[1]));break;case"PtgStr":s.push('"'+x[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":f=w4(x[1][1],e?{s:e}:a,r),s.push(yw(f,r));break;case"PtgArea":f=w4(x[1][1],a,r),s.push(yw(f,r));break;case"PtgArea3d":f=x[1][2],m=$L(n,u=x[1][1],r),s.push(m+"!"+yw(f,r));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgName":var B=(n.names||[])[(h=x[1][2])-1]||(n[0]||[])[h],N=B?B.Name:"SH33TJSNAME"+String(h);N&&"_xlfn."==N.slice(0,6)&&!r.xlfn&&(N=N.slice(6)),s.push(N);break;case"PtgNameX":var Z,j=x[1][1];if(h=x[1][2],!(r.biff<=5)){var U="";if(14849==((n[j]||[])[0]||[])[0]||(1025==((n[j]||[])[0]||[])[0]?n[j][h]&&n[j][h].itab>0&&(U=n.SheetNames[n[j][h].itab-1]+"!"):U=n.SheetNames[h-1]+"!"),n[j]&&n[j][h])U+=n[j][h].Name;else if(n[0]&&n[0][h])U+=n[0][h].Name;else{var me=(zL(n,j,r)||"").split(";;");me[h-1]?U=me[h-1]:U+="SH33TJSERRX"}s.push(U);break}j<0&&(j=-j),n[j]&&(Z=n[j][h]),Z||(Z={Name:"SH33TJSERRY"}),s.push(Z.Name);break;case"PtgParen":var be="(",de=")";if(g>=0){switch(p="",t[0][g][1][0]){case 2:be=ri(" ",t[0][g][1][1])+be;break;case 3:be=ri("\r",t[0][g][1][1])+be;break;case 4:de=ri(" ",t[0][g][1][1])+de;break;case 5:de=ri("\r",t[0][g][1][1])+de;break;default:if(r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}g=-1}s.push(be+s.pop()+de);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":s.push("#REF!");break;case"PtgExp":var ne={c:e.c,r:e.r};if(n.sharedf[zt(d={c:x[1][1],r:x[1][0]})]){var Y=n.sharedf[zt(d)];s.push(hr(Y,0,ne,n,r))}else{var he=!1;for(c=0;c!=n.arrayf.length;++c)if(!(d.c<(l=n.arrayf[c])[0].s.c||d.c>l[0].e.c||d.rl[0].e.r)){s.push(hr(l[1],0,ne,n,r)),he=!0;break}he||s.push(x[1])}break;case"PtgArray":s.push("{"+zhe(x[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=_;break;case"PtgMissArg":s.push("");break;case"PtgList":s.push("Table"+x[1].idx+"[#"+x[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(x))}if(3!=r.biff&&g>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][_][0])){var Le=!0;switch((x=t[0][g])[1][0]){case 4:Le=!1;case 0:p=ri(" ",x[1][1]);break;case 5:Le=!1;case 1:p=ri("\r",x[1][1]);break;default:if(p="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+x[1][0])}s.push((Le?p:"")+s.pop()+(Le?"":p)),g=-1}}if(s.length>1&&r.WTF)throw new Error("bad formula stack");return"TRUE"==s[0]||"FALSE"!=s[0]&&s[0]}function r_(t,i,e){var n=t.read_shift(4),r=function $f(t,i,e){for(var r,o,n=t.l+i,a=[];n!=t.l;)i=n-t.l,r=UL[o=t[t.l]]||UL[Vhe[o]],(24===o||25===o)&&(r=(24===o?Hhe:Uhe)[t[t.l+1]]),r&&r.f?a.push([r.n,r.f(t,i,e)]):sr(t,i);return a}(t,n,e),o=t.read_shift(4);return[r,o>0?zf(t,o,r,e):null]}var Zhe=r_,o_=r_,Jhe=r_,efe=r_;function jL(t){if((0|t)==t&&t=0){var i=re(11);return i.write_shift(4,3),i.write_shift(1,30),i.write_shift(2,t),i.write_shift(4,0),i}var e=re(17);return e.write_shift(4,11),e.write_shift(1,31),e.write_shift(8,t),e.write_shift(4,0),e}var ufe=function dfe(t,i){if("number"==typeof t)return jL(t);if("boolean"==typeof t)return function ife(t){var i=re(10);return i.write_shift(4,2),i.write_shift(1,29),i.write_shift(1,t?1:0),i.write_shift(4,0),i}(t);if(/^#(DIV\/0!|GETTING_DATA|N\/A|NAME\?|NULL!|NUM!|REF!|VALUE!)$/.test(t))return function tfe(t){var i=re(10);return i.write_shift(4,2),i.write_shift(1,28),i.write_shift(1,t),i.write_shift(4,0),i}(+Fw[t]);if(t.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function rfe(t){var i=bi(t),e=re(15);return e.write_shift(4,7),e.write_shift(1,36),e.write_shift(4,i.r),e.write_shift(2,i.c|("$"==t.charAt(0)?0:1)<<14|(t.match(/\$\d/)?0:1)<<15),e.write_shift(4,0),e}(t);if(t.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function sfe(t){var i=t.split(":"),e=i[0],n=re(23);n.write_shift(4,15);var r=bi(e=i[0]);return n.write_shift(1,36),n.write_shift(4,r.r),n.write_shift(2,r.c|("$"==e.charAt(0)?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),n.write_shift(4,0),r=bi(e=i[1]),n.write_shift(1,36),n.write_shift(4,r.r),n.write_shift(2,r.c|("$"==e.charAt(0)?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),n.write_shift(4,0),n.write_shift(1,17),n.write_shift(4,0),n}(t);if(t.match(/^#REF!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function lfe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e);t=t.slice(e+1),"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var r=Pn(t),o=re(23);return o.write_shift(4,15),o.write_shift(1,59),o.write_shift(2,2+i.SheetNames.map(function(a){return a.toLowerCase()}).indexOf(n.toLowerCase())),o.write_shift(4,r.s.r),o.write_shift(4,r.e.r),o.write_shift(2,r.s.c),o.write_shift(2,r.e.c),o.write_shift(4,0),o}(t,i);if(t.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function ofe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e),r=bi(t=t.slice(e+1));"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var o=re(17);return o.write_shift(4,9),o.write_shift(1,58),o.write_shift(2,2+i.SheetNames.map(function(a){return a.toLowerCase()}).indexOf(n.toLowerCase())),o.write_shift(4,r.r),o.write_shift(2,r.c|("$"==t.charAt(0)?0:1)<<14|(t.match(/\$\d/)?0:1)<<15),o.write_shift(4,0),o}(t,i);if(t.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function cfe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e);t=t.slice(e+1),"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var r=t.split(":");a=r[0];var o=re(27);o.write_shift(4,19);var a=r[0],s=bi(a);return o.write_shift(1,58),o.write_shift(2,2+i.SheetNames.map(function(c){return c.toLowerCase()}).indexOf(n.toLowerCase())),o.write_shift(4,s.r),o.write_shift(2,s.c|("$"==a.charAt(0)?0:1)<<14|(a.match(/\$\d/)?0:1)<<15),s=bi(a=r[1]),o.write_shift(1,58),o.write_shift(2,2+i.SheetNames.map(function(c){return c.toLowerCase()}).indexOf(n.toLowerCase())),o.write_shift(4,s.r),o.write_shift(2,s.c|("$"==a.charAt(0)?0:1)<<14|(a.match(/\$\d/)?0:1)<<15),o.write_shift(1,17),o.write_shift(4,0),o}(t,i);if(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!#REF!$/.test(t))return function afe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e);t=t.slice(e+1),"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var r=re(17);return r.write_shift(4,9),r.write_shift(1,60),r.write_shift(2,2+i.SheetNames.map(function(o){return o.toLowerCase()}).indexOf(n.toLowerCase())),r.write_shift(4,0),r.write_shift(2,0),r.write_shift(4,0),r}(t,i);if(/^".*"$/.test(t))return function nfe(t){var i=re(7);i.write_shift(4,3+2*t.length),i.write_shift(1,23),i.write_shift(2,t.length);var e=re(2*t.length);e.write_shift(2*t.length,t,"utf16le");var n=re(4);return n.write_shift(4,0),xn([i,e,n])}(t);if(/^[+-]\d+$/.test(t))return jL(parseInt(t,10));throw"Formula |"+t+"| not supported for XLSB"},hfe={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},WL={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},ffe={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function mfe(t){return("of:="+t.replace(Qw,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function qL(t){return t.replace(/!/,".")}var Wf=typeof Map<"u";function Jw(t,i,e){var n=0,r=t.length;if(e){if(Wf?e.has(i):Object.prototype.hasOwnProperty.call(e,i))for(var o=Wf?e.get(i):e[i];n-1?(e.width=e_(n),e.customWidth=1):null!=i.width&&(e.width=i.width),i.hidden&&(e.hidden=!0),null!=i.level&&(e.outlineLevel=e.level=i.level),e}function _l(t,i){if(t){var e=[.7,.7,.75,.75,.3,.3];"xlml"==i&&(e=[1,1,1,1,.5,.5]),null==t.left&&(t.left=e[0]),null==t.right&&(t.right=e[1]),null==t.top&&(t.top=e[2]),null==t.bottom&&(t.bottom=e[3]),null==t.header&&(t.header=e[4]),null==t.footer&&(t.footer=e[5])}}function ic(t,i,e){var n=e.revssf[null!=i.z?i.z:"General"],r=60,o=t.length;if(null==n&&e.ssf)for(;r<392;++r)if(null==e.ssf[r]){Ks(i.z,r),e.ssf[r]=i.z,e.revssf[i.z]=n=r;break}for(r=0;r!=o;++r)if(t[r].numFmtId===n)return r;return t[o]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function pfe(t,i,e){if(t&&t["!ref"]){var n=Kt(t["!ref"]);if(n.e.c"u")return"";var r="",o=t.t,a=t.v;if("z"!==t.t)switch(t.t){case"b":r=t.v?"1":"0";break;case"n":r=""+t.v;break;case"e":r=gs[t.v];break;case"d":n&&n.cellDates?r=ji(t.v,-1).toISOString():((t=yi(t)).t="n",r=""+(t.v=yn(ji(t.v)))),typeof t.z>"u"&&(t.z=ut[14]);break;default:r=t.v}var s="z"==t.t||null==t.v?"":Qn("v",Ot(r)),c={r:i},l=ic(n.cellXfs,t,n);switch(0!==l&&(c.s=l),t.t){case"n":case"z":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;default:if(null==t.v){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=Qn("v",""+Jw(n.Strings,t.v,n.revStrings)),c.t="s";break}c.t="str"}if(t.t!=o&&(t.t=o,t.v=a),"string"==typeof t.f&&t.f){var d=t.F&&t.F.slice(0,i.length)==i?{t:"array",ref:t.F}:null;s=Ee("f",Ot(t.f),d)+(null!=t.v?s:"")}return t.l&&(t.l.display=Ot(r),e["!links"].push([i,t.l])),t.D&&(c.cm=1),Ee("c",s,c)}function Gfe(t,i,e,n){var a,r=[sn,Ee("worksheet",null,{xmlns:nl[0],"xmlns:r":Rn.r})],s="",c=e.Sheets[e.SheetNames[t]];null==c&&(c={});var l=c["!ref"]||"A1",d=Kt(l);if(d.e.c>16383||d.e.r>1048575){if(i.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575),l=Et(d)}n||(n={}),c["!comments"]=[];var u=[];(function Mfe(t,i,e,n,r){var o=!1,a={},s=null;if("xlsx"!==n.bookType&&i.vbaraw){var c=i.SheetNames[e];try{i.Workbook&&(c=i.Workbook.Sheets[e].CodeName||c)}catch{}o=!0,a.codeName=Ma(Ot(c))}if(t&&t["!outline"]){var l={summaryBelow:1,summaryRight:1};t["!outline"].above&&(l.summaryBelow=0),t["!outline"].left&&(l.summaryRight=0),s=(s||"")+Ee("outlinePr",null,l)}!o&&!s||(r[r.length]=Ee("sheetPr",s,a))})(c,e,t,i,r),r[r.length]=Ee("dimension",null,{ref:l}),r[r.length]=function zfe(t,i,e,n){var r={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(r.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Ee("sheetViews",Ee("sheetView",null,r),{})}(0,0,0,e),i.sheetFormat&&(r[r.length]=Ee("sheetFormatPr",null,{defaultRowHeight:i.sheetFormat.defaultRowHeight||"16",baseColWidth:i.sheetFormat.baseColWidth||"10",outlineLevelRow:i.sheetFormat.outlineLevelRow||"7"})),null!=c["!cols"]&&c["!cols"].length>0&&(r[r.length]=function Nfe(t,i){for(var n,e=[""],r=0;r!=i.length;++r)(n=i[r])&&(e[e.length]=Ee("col",null,a_(r,n)));return e[e.length]="",e.join("")}(0,c["!cols"])),r[a=r.length]="",c["!links"]=[],null!=c["!ref"]&&(s=function Wfe(t,i,e,n){var c,p,r=[],o=[],a=Kt(t["!ref"]),s="",l="",d=[],u=0,h=0,f=t["!rows"],m=null!=t["!data"],g={r:l},_=-1;for(h=a.s.c;h<=a.e.c;++h)d[h]=Ht(h);for(u=a.s.r;u<=a.e.r;++u){for(o=[],l=Yt(u),h=a.s.c;h<=a.e.c;++h){c=d[h]+l;var w=m?(t["!data"][u]||[])[h]:t[c];void 0!==w&&null!=(s=$fe(w,c,t,i))&&o.push(s)}(o.length>0||f&&f[u])&&(g={r:l},f&&f[u]&&((p=f[u]).hidden&&(g.hidden=1),_=-1,p.hpx?_=Vf(p.hpx):p.hpt&&(_=p.hpt),_>-1&&(g.ht=_,g.customHeight=1),p.level&&(g.outlineLevel=p.level)),r[r.length]=Ee("row",o.join(""),g))}if(f)for(;u-1&&(g.ht=_,g.customHeight=1),p.level&&(g.outlineLevel=p.level),r[r.length]=Ee("row","",g));return r.join("")}(c,i),s.length>0&&(r[r.length]=s)),r.length>a+1&&(r[r.length]="",r[a]=r[a].replace("/>",">")),c["!protect"]&&(r[r.length]=function Ffe(t){var i={sheet:1};return Afe.forEach(function(e){null!=t[e]&&t[e]&&(i[e]="1")}),Ife.forEach(function(e){null!=t[e]&&!t[e]&&(i[e]="0")}),t.password&&(i.password=jw(t.password).toString(16).toUpperCase()),Ee("sheetProtection",null,i)}(c["!protect"])),null!=c["!autofilter"]&&(r[r.length]=function Vfe(t,i,e,n){var r="string"==typeof t.ref?t.ref:Et(t.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var o=e.Workbook.Names,a=Pn(r);a.s.r==a.e.r&&(a.e.r=Pn(i["!ref"]).e.r,r=Et(a));for(var s=0;s0&&(r[r.length]=function Efe(t){if(0===t.length)return"";for(var i='',e=0;e!=t.length;++e)i+='';return i+""}(c["!merges"]));var f,h=-1,m=-1;return c["!links"].length>0&&(r[r.length]="",c["!links"].forEach(function(g){g[1].Target&&(f={ref:g[0]},"#"!=g[1].Target.charAt(0)&&(m=ki(n,-1,Ot(g[1].Target).replace(/#.*$/,""),Pt.HLINK),f["r:id"]="rId"+m),(h=g[1].Target.indexOf("#"))>-1&&(f.location=Ot(g[1].Target.slice(h+1))),g[1].Tooltip&&(f.tooltip=Ot(g[1].Tooltip)),f.display=g[1].display,r[r.length]=Ee("hyperlink",null,f))}),r[r.length]=""),delete c["!links"],null!=c["!margins"]&&(r[r.length]=function Pfe(t){return _l(t),Ee("pageMargins",null,t)}(c["!margins"])),(!i||i.ignoreEC||null==i.ignoreEC)&&(r[r.length]=Qn("ignoredErrors",Ee("ignoredError",null,{numberStoredAsText:1,sqref:l}))),u.length>0&&(m=ki(n,-1,"../drawings/drawing"+(t+1)+".xml",Pt.DRAW),r[r.length]=Ee("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=u),c["!comments"].length>0&&(m=ki(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Pt.VML),r[r.length]=Ee("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),r.length>1&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Qfe(t,i,e,n){var r=function Xfe(t,i,e){var n=re(145),r=(e["!rows"]||[])[t]||{};n.write_shift(4,t),n.write_shift(4,0);var o=320;r.hpx?o=20*Vf(r.hpx):r.hpt&&(o=20*r.hpt),n.write_shift(2,o),n.write_shift(1,0);var a=0;r.level&&(a|=r.level),r.hidden&&(a|=16),(r.hpx||r.hpt)&&(a|=32),n.write_shift(1,a),n.write_shift(1,0);var s=0,c=n.l;n.l+=4;for(var l={r:t,c:0},d=null!=e["!data"],u=0;u<16;++u)if(!(i.s.c>u+1<<10||i.e.cn.l?n.slice(0,n.l):n}(n,e,i);(r.length>17||(i["!rows"]||[])[n])&&fe(t,0,r)}var Yfe=cl,Kfe=su;var Rme=cl,Ome=su,KL=["left","right","top","bottom","header","footer"];function Kme(t,i,e,n,r,o,a){var s={r:e,c:n};if(i.c&&o["!comments"].push([zt(s),i.c]),void 0===i.v)return!1;var c="";switch(i.t){case"b":c=i.v?"1":"0";break;case"d":(i=yi(i)).z=i.z||ut[14],i.v=yn(ji(i.v)),i.t="n";break;case"n":case"e":c=""+i.v;break;default:c=i.v}switch(s.s=ic(r.cellXfs,i,r),i.l&&o["!links"].push([zt(s),i.l]),i.t){case"s":case"str":return r.bookSST?(c=Jw(r.Strings,null==i.v?"":String(i.v),r.revStrings),s.t="s",s.v=c,a?fe(t,18,function gme(t,i,e){return null==e&&(e=re(8)),sl(i,e),e.write_shift(4,i.v),e}(0,s)):fe(t,7,function mme(t,i,e){return null==e&&(e=re(12)),ol(i,e),e.write_shift(4,i.v),e}(0,s))):(s.t="str",a?fe(t,17,function Tme(t,i,e){var n=null==t.v?"":String(t.v);return null==e&&(e=re(8+4*n.length)),sl(i,e),Ln(n,e),e.length>e.l?e.slice(0,e.l):e}(i,s)):fe(t,6,function Sme(t,i,e){var n=null==t.v?"":String(t.v);return null==e&&(e=re(12+4*t.v.length)),ol(i,e),Ln(n,e),e.length>e.l?e.slice(0,e.l):e}(i,s))),!0;case"n":return i.v==(0|i.v)&&i.v>-1e3&&i.v<1e3?a?fe(t,13,function Cme(t,i,e){return null==e&&(e=re(8)),sl(i,e),S4(t.v,e),e}(i,s)):fe(t,2,function yme(t,i,e){return null==e&&(e=re(12)),ol(i,e),S4(t.v,e),e}(i,s)):a?fe(t,16,function vme(t,i,e){return null==e&&(e=re(12)),sl(i,e),ll(t.v,e),e}(i,s)):fe(t,5,function bme(t,i,e){return null==e&&(e=re(16)),ol(i,e),ll(t.v,e),e}(i,s)),!0;case"b":return s.t="b",a?fe(t,15,function cme(t,i,e){return null==e&&(e=re(5)),sl(i,e),e.write_shift(1,t.v?1:0),e}(i,s)):fe(t,4,function ame(t,i,e){return null==e&&(e=re(9)),ol(i,e),e.write_shift(1,t.v?1:0),e}(i,s)),!0;case"e":return s.t="e",a?fe(t,14,function hme(t,i,e){return null==e&&(e=re(8)),sl(i,e),e.write_shift(1,t.v),e.write_shift(2,0),e.write_shift(1,0),e}(i,s)):fe(t,3,function dme(t,i,e){return null==e&&(e=re(9)),ol(i,e),e.write_shift(1,t.v),e}(i,s)),!0}return a?fe(t,12,function rme(t,i,e){return null==e&&(e=re(4)),sl(i,e)}(0,s)):fe(t,1,function ime(t,i,e){return null==e&&(e=re(8)),ol(i,e)}(0,s)),!0}function spe(t,i,e,n){var r=Ur(),o=e.SheetNames[t],a=e.Sheets[o]||{},s=o;try{e&&e.Workbook&&(s=e.Workbook.Sheets[t].CodeName||s)}catch{}var c=Kt(a["!ref"]||"A1");if(c.e.c>16383||c.e.r>1048575){if(i.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575)}return a["!links"]=[],a["!comments"]=[],fe(r,129),(e.vbaraw||a["!outline"])&&fe(r,147,function eme(t,i,e){null==e&&(e=re(84+4*t.length));var n=192;i&&(i.above&&(n&=-65),i.left&&(n&=-129)),e.write_shift(1,n);for(var r=1;r<3;++r)e.write_shift(1,0);return $0({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),D4(t,e),e.slice(0,e.l)}(s,a["!outline"])),fe(r,148,Kfe(c)),function ope(t,i,e){fe(t,133),fe(t,137,function Wme(t,i,e){null==e&&(e=re(30));var n=924;return(((i||{}).Views||[])[0]||{}).RTL&&(n|=32),e.write_shift(2,n),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,100),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(4,0),e}(0,e)),fe(t,138),fe(t,134)}(r,0,e.Workbook),function epe(t,i){!i||!i["!cols"]||(fe(t,390),i["!cols"].forEach(function(e,n){e&&fe(t,60,function Ume(t,i,e){null==e&&(e=re(18));var n=a_(t,i);e.write_shift(-4,t),e.write_shift(-4,t),e.write_shift(4,256*(n.width||10)),e.write_shift(4,0);var r=0;return i.hidden&&(r|=1),"number"==typeof n.width&&(r|=2),i.level&&(r|=i.level<<8),e.write_shift(2,r),e}(n,e))}),fe(t,391))}(r,a),function Zme(t,i,e,n){var r=Kt(i["!ref"]||"A1"),a="",s=[];fe(t,145);var c=null!=i["!data"],l=r.e.r;i["!rows"]&&(l=Math.max(r.e.r,i["!rows"].length-1));for(var d=r.s.r;d<=l;++d){a=Yt(d),Qfe(t,i,r,d);var u=!1;if(d<=r.e.r)for(var h=r.s.c;h<=r.e.c;++h){d===r.s.r&&(s[h]=Ht(h));var f=c?(i["!data"][d]||[])[h]:i[s[h]+a];u=!!f&&Kme(t,f,d,h,n,i,u)}}fe(t,146)}(r,a,0,i),function ape(t,i){i["!protect"]&&fe(t,535,function qme(t,i){return null==i&&(i=re(66)),i.write_shift(2,t.password?jw(t.password):0),i.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(e){i.write_shift(4,e[1]?null==t[e[0]]||t[e[0]]?0:1:null!=t[e[0]]&&t[e[0]]?0:1)}),i}(i["!protect"]))}(r,a),function rpe(t,i,e,n){if(i["!autofilter"]){var r=i["!autofilter"],o="string"==typeof r.ref?r.ref:Et(r.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var a=e.Workbook.Names,s=Pn(o);s.s.r==s.e.r&&(s.e.r=Pn(i["!ref"]).e.r,o=Et(s));for(var c=0;c0){var r=ki(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Pt.VML);fe(t,551,Ew("rId"+r)),i["!legacy"]=r}}(r,a,t,n),fe(r,130),r.end()}var tC=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],_pe=":][*?/\\".split("");function tN(t,i){try{if(""==t)throw new Error("Sheet name cannot be blank");if(t.length>31)throw new Error("Sheet name cannot exceed 31 chars");if(39==t.charCodeAt(0)||39==t.charCodeAt(t.length-1))throw new Error("Sheet name cannot start or end with apostrophe (')");if("history"==t.toLowerCase())throw new Error("Sheet name cannot be 'History'");_pe.forEach(function(e){if(-1!=t.indexOf(e))throw new Error("Sheet name cannot contain : \\ / ? * [ ]")})}catch(e){if(i)return!1;throw e}return!0}function Cpe(t,i){return i||(i=re(127)),i.write_shift(4,t.Hidden),i.write_shift(4,t.iTabID),Ew(t.strRelID,i),Ln(t.name.slice(0,31),i),i.length>i.l?i.slice(0,i.l):i}function Npe(t,i){var e=Ur();return fe(e,131),fe(e,128,function Ipe(t,i){i||(i=re(127));for(var e=0;4!=e;++e)i.write_shift(4,0);return Ln("SheetJS",i),Ln(pf.version,i),Ln(pf.version,i),Ln("7262",i),i.length>i.l?i.slice(0,i.l):i}()),fe(e,153,function Dpe(t,i){i||(i=re(72));var e=0;return t&&(t.date1904&&(e|=1),t.filterPrivacy&&(e|=8)),i.write_shift(4,e),i.write_shift(4,0),D4(t&&t.CodeName||"ThisWorkbook",i),i.slice(0,i.l)}(t.Workbook&&t.Workbook.WBProps||null)),function Rpe(t,i){if(i.Workbook&&i.Workbook.Sheets){for(var e=i.Workbook.Sheets,n=0,r=-1,o=-1;nr||(fe(t,135),fe(t,158,function Fpe(t,i){return i||(i=re(29)),i.write_shift(-4,0),i.write_shift(-4,460),i.write_shift(4,28800),i.write_shift(4,17600),i.write_shift(4,500),i.write_shift(4,t),i.write_shift(4,t),i.write_shift(1,120),i.length>i.l?i.slice(0,i.l):i}(r)),fe(t,136))}}(e,t),function Ape(t,i){fe(t,143);for(var e=0;e!=i.SheetNames.length;++e)fe(t,156,Cpe({Hidden:i.Workbook&&i.Workbook.Sheets&&i.Workbook.Sheets[e]&&i.Workbook.Sheets[e].Hidden||0,iTabID:e+1,strRelID:"rId"+(e+1),name:i.SheetNames[e]}));fe(t,144)}(e,t),function Lpe(t,i){fe(t,353),fe(t,357),fe(t,362,function Ppe(t){var i=t.SheetNames.length,e=re(12*i+28);e.write_shift(4,i+2),e.write_shift(4,0),e.write_shift(4,-2),e.write_shift(4,-2),e.write_shift(4,0),e.write_shift(4,-1),e.write_shift(4,-1);for(var n=0;n-1&&(n|=32,r=r.slice(6)),e.write_shift(4,n),e.write_shift(1,0),e.write_shift(4,null==t.Sheet?4294967295:t.Sheet);var o=[e,Ln(r),ufe(t.Ref,i)];if(t.Comment)o.push(If(t.Comment));else{var a=re(4);a.write_shift(4,4294967295),o.push(a)}return xn(o)}(e,i))}catch{console.error("Could not serialize defined name "+JSON.stringify(e))}})}(e,t),fe(e,132),e.end()}function oN(t){return Ee("NamedRange",null,{"ss:Name":"_xlnm."==t.Name.slice(0,6)?t.Name.slice(6):t.Name,"ss:RefersTo":"="+n_(t.Ref,{r:0,c:0})})}function dge(t,i,e,n,r,o,a){if(!t||null==t.v&&null==t.f)return"";var s={};if(t.f&&(s["ss:Formula"]="="+Ot(n_(t.f,a))),t.F&&t.F.slice(0,i.length)==i){var c=bi(t.F.slice(i.length+1));s["ss:ArrayRange"]="RC:R"+(c.r==a.r?"":"["+(c.r-a.r)+"]")+"C"+(c.c==a.c?"":"["+(c.c-a.c)+"]")}if(t.l&&t.l.Target&&(s["ss:HRef"]=Ot(t.l.Target),t.l.Tooltip&&(s["x:HRefScreenTip"]=Ot(t.l.Tooltip))),e["!merges"])for(var l=e["!merges"],d=0;d!=l.length;++d)l[d].s.c!=a.c||l[d].s.r!=a.r||(l[d].e.c>l[d].s.c&&(s["ss:MergeAcross"]=l[d].e.c-l[d].s.c),l[d].e.r>l[d].s.r&&(s["ss:MergeDown"]=l[d].e.r-l[d].s.r));var u="",h="";switch(t.t){case"z":if(!n.sheetStubs)return"";break;case"n":u="Number",h=String(t.v);break;case"b":u="Boolean",h=t.v?"1":"0";break;case"e":u="Error",h=gs[t.v];break;case"d":u="DateTime",h=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||ut[14]);break;case"s":u="String",h=function fae(t){return(t+"").replace(hw,function(e){return uw[e]}).replace(e4,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}(t.v||"")}var f=ic(n.cellXfs,t,n);s["ss:StyleID"]="s"+(21+f),s["ss:Index"]=a.c+1;var g="z"==t.t?"":''+(null!=t.v?h:"")+"";return(t.c||[]).length>0&&(g+=function lge(t){return t.map(function(i){var e=function mae(t){return t.replace(/(\r\n|[\r\n])/g," ")}(i.t||""),n=Ee("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ee("Comment",n,{"ss:Author":i.a})}).join("")}(t.c)),Ee("Cell",g,s)}function uge(t,i){var e='"}function fge(t,i,e){var n=[],o=e.Sheets[e.SheetNames[t]],a=o?function sge(t,i,e,n){if(!t||!((n||{}).Workbook||{}).Names)return"";for(var r=n.Workbook.Names,o=[],a=0;a0&&n.push(""+a+""),a=o?function hge(t,i,e,n){if(!t["!ref"])return"";var r=Kt(t["!ref"]),o=t["!merges"]||[],a=0,s=[];t["!cols"]&&t["!cols"].forEach(function(p,_){ec(p);var w=!!p.width,x=a_(_,p),M={"ss:Index":_+1};w&&(M["ss:Width"]=Nf(x.width)),p.hidden&&(M["ss:Hidden"]="1"),s.push(Ee("Column",null,M))});for(var c=null!=t["!data"],l=r.s.r;l<=r.e.r;++l){for(var d=[uge(l,(t["!rows"]||[])[l])],u=r.s.c;u<=r.e.c;++u){var h=!1;for(a=0;a!=o.length;++a)if(!(o[a].s.c>u||o[a].s.r>l||o[a].e.c"),d.length>2&&s.push(d.join(""))}return s.join("")}(o,i):"",a.length>0&&n.push(""+a+"
"),n.push(function cge(t,i,e,n){if(!t)return"";var r=[];if(t["!margins"]&&(r.push(""),t["!margins"].header&&r.push(Ee("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&r.push(Ee("Footer",null,{"x:Margin":t["!margins"].footer})),r.push(Ee("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),r.push("")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[e])if(n.Workbook.Sheets[e].Hidden)r.push(Ee("Visible",1==n.Workbook.Sheets[e].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&r.push(""),t["!protect"]&&(r.push(Qn("ProtectContents","True")),t["!protect"].objects&&r.push(Qn("ProtectObjects","True")),t["!protect"].scenarios&&r.push(Qn("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null!=t["!protect"].selectUnlockedCells&&!t["!protect"].selectUnlockedCells&&r.push(Qn("EnableSelection","UnlockedCells")):r.push(Qn("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(a){t["!protect"][a[0]]&&r.push("<"+a[1]+"/>")})),0==r.length?"":Ee("WorksheetOptions",r.join(""),{xmlns:ro.x})}(o,0,t,e)),o["!autofilter"]&&n.push(''),n.join("")}function mge(t,i){i||(i={}),t.SSF||(t.SSF=yi(ut)),t.SSF&&(iu(),yf(t.SSF),i.revssf=P0(t.SSF),i.revssf[t.SSF[65535]]=0,i.ssf=t.SSF,i.cellXfs=[],ic(i.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(function nge(t,i){var e=[];return t.Props&&e.push(function use(t,i){var e=[];return $i(Nw).map(function(n){for(var r=0;r'+r.join("")+""}(t.Props,t.Custprops)),e.join("")}(t,i)),e.push(function rge(t){return(((t||{}).Workbook||{}).WBProps||{}).date1904?'':""}(t)),e.push(""),e.push("");for(var n=0;n'];return i.cellXfs.forEach(function(n,r){var o=[];o.push(Ee("NumberFormat",null,{"ss:Format":Ot(ut[n.numFmtId])}));var a={"ss:ID":"s"+(21+r)};e.push(Ee("Style",o.join(""),a))}),Ee("Styles",e.join(""))}(0,i),e[3]=function age(t){if(!((t||{}).Workbook||{}).Names)return"";for(var i=t.Workbook.Names,e=[],n=0;n0&&(n.family=s);var c=t.read_shift(1);switch(c>0&&(n.charset=c),t.l++,n.color=function Uae(t){var i={},n=t.read_shift(1)>>>1,r=t.read_shift(1),o=t.read_shift(2,"i"),a=t.read_shift(1),s=t.read_shift(1),c=t.read_shift(1);switch(t.l++,n){case 0:i.auto=1;break;case 1:i.index=r;var l=dl[r];l&&(i.rgb=Lf(l));break;case 2:i.rgb=Lf([a,s,c]);break;case 3:i.theme=r}return 0!=o&&(i.tint=o>0?o/32767:o/32768),i}(t),t.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor"}return n.name=cr(t),n}},44:{f:function cde(t,i){return[t.read_shift(2),cr(t)]}},45:{f:fde},46:{f:pde},47:{f:function mde(t,i){var e=t.l+i,n=t.read_shift(2),r=t.read_shift(2);return t.l=e,{ixfe:n,numFmtId:r}}},48:{},49:{f:function Fae(t){return t.read_shift(4,"i")}},50:{},51:{f:function Qde(t){for(var i=[],e=t.read_shift(4);e-- >0;)i.push([t.read_shift(4),t.read_shift(4)]);return i}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function bL(t,i,e){if(!e.cellStyles)return sr(t,i);var n=e&&e.biff>=12?4:2,r=t.read_shift(n),o=t.read_shift(n),a=t.read_shift(n),s=t.read_shift(n),c=t.read_shift(2);2==n&&(t.l+=2);var l={s:r,e:o,w:a,ixfe:s,flags:c};return(e.biff>=5||!e.biff)&&(l.level=c>>8&7),l}},62:{f:function kme(t){return[Mo(t),kw(t),"is"]}},63:{f:function oue(t){var i={};i.i=t.read_shift(4);var e={};e.r=t.read_shift(4),e.c=t.read_shift(4),i.r=zt(e);var n=t.read_shift(1);return 2&n&&(i.l="1"),8&n&&(i.a="1"),i}},64:{f:function Xme(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:sr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function jme(t){var i=t.read_shift(2);return t.l+=28,{RTL:32&i}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function Jfe(t,i){var e={},n=t[t.l];return++t.l,e.above=!(64&n),e.left=!(128&n),t.l+=18,e.name=Bae(t,i-19),e}},148:{f:Yfe,p:16},151:{f:function Bme(){}},152:{},153:{f:function kpe(t,i){var e={},n=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var r=i>8?cr(t):"";return r.length>0&&(e.CodeName=r),e.autoCompressPictures=!!(65536&n),e.backupFile=!!(64&n),e.checkCompatibility=!!(4096&n),e.date1904=!!(1&n),e.filterPrivacy=!!(8&n),e.hidePivotFieldList=!!(1024&n),e.promptedSolutions=!!(16&n),e.publishItems=!!(2048&n),e.refreshAllConnections=!!(262144&n),e.saveExternalLinkValues=!!(128&n),e.showBorderUnselectedTables=!!(4&n),e.showInkAnnotation=!!(32&n),e.showObjects=["all","placeholders","none"][n>>13&3],e.showPivotChartFilter=!!(32768&n),e.updateLinks=["userSet","never","always"][n>>8&3],e}},154:{},155:{},156:{f:function wpe(t,i){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=Sw(t,i-8),e.name=cr(t),e}},157:{},158:{},159:{T:1,f:function yle(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:cl},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Rme},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function qde(t,i){return{flags:t.read_shift(4),version:t.read_shift(4),name:cr(t)}}},336:{T:-1},337:{f:function Zde(t){return t.l+=4,0!=t.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Sw},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function pL(t,i,e){if(e.biff<8||!(e.biff>8)&&i==t[t.l]+(3==t[t.l+1]?1:0)+1)return function gL(t,i,e){3==t[t.l+1]&&t[t.l]++;var n=Of(t,0,e);return 3==n.charCodeAt(0)?n.slice(1):n}(t,0,e);for(var n=[],r=t.l+i,o=t.read_shift(e.biff>8?4:2);0!=o--;)n.push(Ose(t,0,e));if(t.l!=r)throw new Error("Bad ExternSheet: "+t.l+" != "+r);return n}},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function Vme(t,i,e){var n=t.l+i,r=E4(t),o=t.read_shift(1),a=[r];if(a[2]=o,e.cellFormula){var s=Zhe(t,n-t.l,e);a[1]=s}else t.l=n;return a}},427:{f:function Hme(t,i,e){var n=t.l+i,o=[cl(t,16)];if(e.cellFormula){var a=efe(t,n-t.l,e);o[1]=a,t.l=n}else t.l=n;return o}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function zme(t){var i={};return KL.forEach(function(e){i[e]=lr(t)}),i}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function Zfe(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function Lme(t,i){var e=t.l+i,n=cl(t,16),r=Dw(t),o=cr(t),a=cr(t),s=cr(t);t.l=e;var c={rfx:n,relId:r,loc:o,display:s};return a&&(c.Tooltip=a),c}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Sw},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:bue},633:{T:1},634:{T:-1},635:{T:1,f:function gue(t){var i={};i.iauthor=t.read_shift(4);var e=cl(t,16);return i.rfx=e.s,i.ref=zt(e.s),t.l+=16,i}},636:{T:-1},637:{f:Lae},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function upe(t,i){return t.l+=10,{name:cr(t)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function Qme(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function Ie(t,i,e,n){var r=i;if(!isNaN(r)){var o=n||(e||[]).length||0,a=t.next(4);a.write_shift(2,r),a.write_shift(2,o),o>0&&xw(e)&&t.push(e)}}function Qf(t,i,e){return t||(t=re(7)),t.write_shift(2,i),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function Dge(t,i,e,n){if(null!=i.v)switch(i.t){case"d":case"n":var r="d"==i.t?yn(ji(i.v)):i.v;return void(r==(0|r)&&r>=0&&r<65536?Ie(t,2,function nle(t,i,e){var n=re(9);return Qf(n,t,i),n.write_shift(2,e),n}(e,n,r)):Ie(t,3,function tle(t,i,e){var n=re(15);return Qf(n,t,i),n.write_shift(8,e,"f"),n}(e,n,r)));case"b":case"e":return void Ie(t,5,function Cge(t,i,e,n){var r=re(9);return Qf(r,t,i),J4(e,n||"b",r),r}(e,n,i.v,i.t));case"s":case"str":return void Ie(t,4,function kge(t,i,e){var n=re(8+2*e.length);return Qf(n,t,i),n.write_shift(1,e.length),n.write_shift(e.length,e,"sbcs"),n.l255||f.e.r>=m){if(i.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");f.e.c=Math.min(f.e.c,255),f.e.r=Math.min(f.e.c,m-1)}Ie(n,2057,Uw(0,16,i)),Ie(n,13,Io(1)),Ie(n,12,Io(100)),Ie(n,15,Sr(!0)),Ie(n,17,Sr(!1)),Ie(n,16,ll(.001)),Ie(n,95,Sr(!0)),Ie(n,42,Sr(!1)),Ie(n,43,Sr(!1)),Ie(n,130,Io(1)),Ie(n,128,function xce(t){var i=re(8);return i.write_shift(4,0),i.write_shift(2,t[0]?t[0]+1:0),i.write_shift(2,t[1]?t[1]+1:0),i}([0,0])),Ie(n,131,Sr(!1)),Ie(n,132,Sr(!1)),l&&function Rge(t,i){if(i){var e=0;i.forEach(function(n,r){++e<=256&&n&&Ie(t,125,function Wce(t,i){var e=re(12);e.write_shift(2,i),e.write_shift(2,i),e.write_shift(2,256*t.width),e.write_shift(2,0);var n=0;return t.hidden&&(n|=1),e.write_shift(1,n),e.write_shift(1,n=t.level||0),e.write_shift(2,0),e}(a_(r,n),r))})}}(n,o["!cols"]),Ie(n,512,function fce(t,i){var e=8!=i.biff&&i.biff?2:4,n=re(2*e+6);return n.write_shift(e,t.s.r),n.write_shift(e,t.e.r+1),n.write_shift(2,t.s.c),n.write_shift(2,t.e.c+1),n.write_shift(2,0),n}(f,i)),l&&(o["!links"]=[]);for(var g=[],p=[],_=f.s.c;_<=f.e.c;++_)h[_]=Ht(_);for(var w=f.s.r;w<=f.e.r;++w)for(c&&(p=o["!data"][w]||[]),u=Yt(w),_=f.s.c;_<=f.e.c;++_){d=h[_]+u;var x=c?p[_]:o[d];x&&(Oge(n,x,w,_,i),l&&x.l&&o["!links"].push([d,x.l]),l&&x.c&&g.push([d,x.c]))}var M=s.CodeName||s.name||r;return l&&Ie(n,574,function ice(t){var i=re(18),e=1718;return t&&t.RTL&&(e|=64),i.write_shift(2,e),i.write_shift(4,0),i.write_shift(4,64),i.write_shift(4,0),i.write_shift(4,0),i}((a.Views||[])[0])),l&&(o["!merges"]||[]).length&&Ie(n,229,function Ice(t){var i=re(2+8*t.length);i.write_shift(2,t.length);for(var e=0;e255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[e]+"' extends beyond column IV (255). Data may be lost.")}var o=i||{};switch(o.biff||2){case 8:case 5:return function Nge(t,i){var e=i||{},n=[];t&&!t.SSF&&(t.SSF=yi(ut)),t&&t.SSF&&(iu(),yf(t.SSF),e.revssf=P0(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,lC(e),e.cellXfs=[],ic(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var r=0;r255||o.e.r>16383){if(n.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383)}for(var l=[],d=o.s.c;d<=o.e.c;++d)c[d]=Ht(d);for(var u=o.s.r;u<=o.e.r;++u)for(r&&(l=i["!data"][u]||[]),s=Yt(u),d=o.s.c;d<=o.e.c;++d){var h=r?l[d]:i[c[d]+s];h&&Dge(t,h,u,d)}}(n,t.Sheets[t.SheetNames[r]],0,e),Ie(n,10),n.end()}(t,i)}throw new Error("invalid type "+o.bookType+" for BIFF")}function cN(t,i,e,n){for(var r=t["!merges"]||[],o=[],a={},s=null!=t["!data"],c=i.s.c;c<=i.e.c;++c){for(var l=0,d=0,u=0;ue||r[u].s.c>c||r[u].e.r1&&(a.rowspan=l),d>1&&(a.colspan=d),n.editable?m=''+m+"":f&&(a["data-t"]=f&&f.t||"z",null!=f.v&&(a["data-v"]=f.v),null!=f.z&&(a["data-z"]=f.z),f.l&&"#"!=(f.l.Target||"#").charAt(0)&&(m=''+m+"")),a.id=(n.id||"sjs")+"-"+h,o.push(Ee("td",m,a))}}return""+o.join("")+""}var lN='SheetJS Table Export',dN="";function hN(t,i){var e=i||{},r=null!=e.footer?e.footer:dN,o=[null!=e.header?e.header:lN],a=Pn(t["!ref"]);o.push(function uN(t,i,e){return[].join("")+""}(0,0,e));for(var s=a.s.r;s<=a.e.r;++s)o.push(cN(t,a,s,e));return o.push(""+r),o.join("")}var zge=function(){var t=["",'',"",'',"",'',"",""].join(""),i=""+t+"";return function(){return sn+i}}();function $ge(t,i){var e="number",n="",r={"style:name":i},o="",a=0;e:if((t=t.replace(/"[$]"/g,"$")).indexOf(";")>-1&&(console.error("Unsupported ODS Style Map exported. Using first branch of "+t),t=t.slice(0,t.indexOf(";"))),"@"!=t){if(t.indexOf(/\$/)>-1&&(e="currency"),'"'==t[a]){for(o="";'"'!=t[++a]||'"'==t[++a];)o+=t[a];"*"==t[1+--a]?(a++,n+=""+Ot(o.replace(/""/g,'"'))+""):n+=""+Ot(o.replace(/""/g,'"'))+"",t=t.slice(a+1),a=0}var s=t.match(/# (\?+)\/(\?+)/);if(s)n+=Ee("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":s[1].length,"number:max-denominator-value":Math.max(+s[1].replace(/./g,"9"),+s[2].replace(/./g,"9"))});else if(s=t.match(/# (\?+)\/(\d+)/))n+=Ee("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":s[1].length,"number:denominator-value":+s[2]});else if(s=t.match(/(\d+)(|\.\d+)%/))e="percentage",n+=Ee("number:number",null,{"number:decimal-places":s[2]&&s.length-1||0,"number:min-decimal-places":s[2]&&s.length-1||0,"number:min-integer-digits":s[1].length})+"%";else{var c=!1;if(["y","m","d"].indexOf(t[0])>-1){e="date";t:for(;a";break;case"yyy":case"yyyy":n+='';break;case"mmmmm":console.error("ODS has no equivalent of format |mmmmm|");case"m":case"mm":case"mmm":case"mmmm":n+='';break;case"d":case"dd":n+='';break;case"ddd":case"dddd":n+=''}break;case'"':for(;'"'!=t[++a]||'"'==t[++a];)o+=t[a];--a,n+=""+Ot(o.slice(1).replace(/""/g,'"'))+"";break;case"/":n+=""+Ot(o)+"";break;default:console.error("unrecognized character "+o+" in ODF format "+t)}if(!c)break e;t=t.slice(a+1),a=0}if(t.match(/^\[?[hms]/))for("number"==e&&(e="time"),t.match(/\[/)&&(t=t.replace(/[\[\]]/g,""),r["number:truncate-on-overflow"]="false");a';break;case"m":case"mm":n+='';break;case"s":case"ss":if("."==t[a+1])do{o+=t[a+1],++a}while("0"==t[a+1]);n+='"}break;case'"':for(;'"'!=t[++a]||'"'==t[++a];)o+=t[a];--a,n+=""+Ot(o.slice(1).replace(/""/g,'"'))+"";break;case"/":n+=""+Ot(o)+"";break;case"a":if("a/p"==t.slice(a,a+3).toLowerCase()){n+="",a+=2;break}if("am/pm"==t.slice(a,a+5).toLowerCase()){n+="",a+=4;break}default:console.error("unrecognized character "+o+" in ODF format "+t)}else{if(t.indexOf(/\$/)>-1&&(e="currency"),"$"==t[0]&&(n+='$',t=t.slice(1),a=0),'"'==t[a=0]){for(;'"'!=t[++a]||'"'==t[++a];)o+=t[a];"*"==t[1+--a]?(a++,n+=""+Ot(o.replace(/""/g,'"'))+""):n+=""+Ot(o.replace(/""/g,'"'))+"",t=t.slice(a+1),a=0}var d=t.match(/([#0][0#,]*)(\.[0#]*|)(E[+]?0*|)/i);if(d&&d[0]){var u=d[1].replace(/,/g,"");n+="-1?' number:grouping="true"':"")+(d[2]&&' number:decimal-places="'+(d[2].length-1)+'"'||' number:decimal-places="0"')+(d[3]&&d[3].indexOf("+")>-1?' number:forced-exponent-sign="true"':"")+(d[3]?' number:min-exponent-digits="'+d[3].match(/0+/)[0].length+'"':"")+">",a=d.index+d[0].length}else console.error("Could not find numeric part of "+t);if('"'==t[a]){for(o="";'"'!=t[++a]||'"'==t[++a];)o+=t[a];--a,n+=""+Ot(o.replace(/""/g,'"'))+""}}}}else e="text",n="";return n?Ee("number:"+e+"-style",n,r):(console.error("Could not generate ODS number format for |"+t+"|"),"")}function xN(t,i,e){var n=t.filter(function(r){return r.Sheet==(-1==e?null:e)});return n.length?" \n"+n.map(function(r){var o=qL(r.Ref);return" "+Ee("table:named-range",null,{"table:name":r.Name,"table:cell-range-address":o,"table:base-cell-address":o.replace(/[\.]?[^\.]*$/,".$A$1")})}).join("\n")+"\n \n":""}var yN=function(){var t=function(o){return Ot(o).replace(/ +/g,function(a){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")},i=" \n",n=function(o,a,s,c,l){var d=[];d.push(' \n');var u=0,h=0,f=Pn(o["!ref"]||"A1"),m=o["!merges"]||[],g=0,p=null!=o["!data"];if(o["!cols"])for(h=0;h<=f.e.c;++h)d.push(" \n");var w=o["!rows"]||[];for(u=0;u\n");for(;u<=f.e.r;++u){for(d.push(" \n"),h=0;hh||m[g].s.r>u||m[g].e.c\n");else{var L=zt({r:u,c:h}),D=p?(o["!data"][u]||[])[h]:o[L];if(D&&D.f&&(M["table:formula"]=Ot(mfe(D.f)),D.F&&D.F.slice(0,L.length)==L)){var B=Pn(D.F);M["table:number-matrix-columns-spanned"]=B.e.c-B.s.c+1,M["table:number-matrix-rows-spanned"]=B.e.r-B.s.r+1}if(D){switch(D.t){case"b":W=D.v?"TRUE":"FALSE",M["office:value-type"]="boolean",M["office:boolean-value"]=D.v?"true":"false";break;case"n":W=D.w||String(D.v||0),M["office:value-type"]="float",M["office:value"]=D.v||0;break;case"s":case"str":W=null==D.v?"":D.v,M["office:value-type"]="string";break;case"d":W=D.w||ji(D.v).toISOString(),M["office:value-type"]="date",M["office:date-value"]=ji(D.v).toISOString(),M["table:style-name"]="ce1";break;default:d.push(i);continue}var N=t(W);if(D.l&&D.l.Target){var j=D.l.Target;"#"!=(j="#"==j.charAt(0)?"#"+qL(j.slice(1)):j).charAt(0)&&!j.match(/^\w+:/)&&(j="../"+j),N=Ee("text:a",N,{"xlink:href":j.replace(/&/g,"&")})}l[D.z]&&(M["table:style-name"]="ce"+l[D.z].slice(1)),d.push(" "+Ee("table:table-cell",Ee("text:p",N,{}),M)+"\n")}else d.push(i)}}d.push(" \n")}return(a.Workbook||{}).Names&&d.push(xN(a.Workbook.Names,0,s)),d.push(" \n"),d.join("")};return function(a,s){var c=[sn],l=Df({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),d=Df({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==s.bookType?(c.push("\n"),c.push(O4().replace(//,"").replace(/<\/office:document-meta>/,"")+"\n")):c.push("\n");var u=function(o,a){o.push(" \n");var s=0;a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u&&u["!cols"])for(var h=0;h\n'),o.push(' \n'),o.push(" \n"),++s}});var c=0;a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u&&u["!rows"])for(var h=0;h\n'),o.push(' \n'),o.push(" \n"),++c}}),o.push(' \n'),o.push(' \n'),o.push(" \n"),o.push(' \n'),o.push(' \n'),o.push(" /\n"),o.push(' \n'),o.push(" /\n"),o.push(" \n"),o.push(" \n");var l={},d=69;return a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u)for(var h=null!=u["!data"],f=Pn(u["!ref"]),m=0;m<=f.e.r;++m)for(var g=0;g<=f.e.c;++g){var p=h?(u["!data"][m]||[])[g]:u[zt({r:m,c:g})];if(p&&p.z&&"general"!=p.z.toLowerCase()&&!l[p.z]){var _=$ge(p.z,"N"+d);_&&(l[p.z]="N"+d,++d,o.push(_+"\n"))}}}),o.push(' \n'),$i(l).forEach(function(u){o.push('\n')}),o.push(" \n"),l}(c,a);c.push(" \n"),c.push(" \n"),((a.Workbook||{}).WBProps||{}).date1904&&c.push(' \n \n \n');for(var h=0;h!=a.SheetNames.length;++h)c.push(n(a.Sheets[a.SheetNames[h]],a,h,0,u));return(a.Workbook||{}).Names&&c.push(xN(a.Workbook.Names,0,-1)),c.push(" \n"),c.push(" \n"),c.push("fods"==s.bookType?"":""),c.join("")}}();function wN(t,i){if("fods"==i.bookType)return yN(t,i);var e=dw(),n="",r=[],o=[];return Rt(e,n="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Rt(e,n="content.xml",yN(t,i)),r.push([n,"text/xml"]),o.push([n,"ContentFile"]),Rt(e,n="styles.xml",zge(t,i)),r.push([n,"text/xml"]),o.push([n,"StylesFile"]),Rt(e,n="meta.xml",sn+O4()),r.push([n,"text/xml"]),o.push([n,"MetadataFile"]),Rt(e,n="manifest.rdf",function ose(t){var i=[sn];i.push('\n');for(var e=0;e!=t.length;++e)i.push(R4(t[e][0],t[e][1])),i.push(rse("",t[e][0]));return i.push(R4("","Document","pkg")),i.push(""),i.join("")}(o)),r.push([n,"application/rdf+xml"]),Rt(e,n="META-INF/manifest.xml",function nse(t){var i=[sn];i.push('\n'),i.push(' \n');for(var e=0;e\n');return i.push(""),i.join("")}(r)),e}var Dn=function(){try{return typeof Uint8Array>"u"||typeof Uint8Array.prototype.subarray>"u"?"slice":typeof Buffer<"u"?typeof Buffer.prototype.subarray>"u"?"slice":("function"==typeof Buffer.from?Buffer.from([72,62]):new Buffer([72,62]))instanceof Uint8Array?"subarray":"slice":"subarray"}catch{return"slice"}}();function bs(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function jn(t){return typeof TextDecoder<"u"?(new TextDecoder).decode(t):Ci(Ea(t))}function ta(t){return typeof TextEncoder<"u"?(new TextEncoder).encode(t):kr(Ma(t))}function nc(t){for(var i=0,e=0;e=128&&(n|=(127&t[e])<<7,t[e++]<128||(n|=(127&t[e])<<14,t[e++]<128)||(n|=(127&t[e])<<21,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,28),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,35),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,42),++e,t[e++]<128)))break e;return i.l=e,n}function it(t){var i=new Uint8Array(7);i[0]=127&t;var e=1;e:if(t>127){if(i[e-1]|=128,i[e]=t>>7&127,++e,t<=16383||(i[e-1]|=128,i[e]=t>>14&127,++e,t<=2097151)||(i[e-1]|=128,i[e]=t>>21&127,++e,t<=268435455)||(i[e-1]|=128,i[e]=t/256>>>21&127,++e,t<=34359738367)||(i[e-1]|=128,i[e]=t/65536>>>21&127,++e,t<=4398046511103))break e;i[e-1]|=128,i[e]=t/16777216>>>21&127,++e}return i[Dn](0,e)}function CN(t){for(var i={l:0},e=[];i.l=128){if(e|=(127&t[i])<<7,t[i++]<128||(e|=(127&t[i])<<14,t[i++]<128)||(e|=(127&t[i])<<21,t[i++]<128))break e;e|=(127&t[i])<<28}return e}function Be(t){for(var i=[],e={l:0};e.l=128;);a=t[Dn](e.l,s),e.l=s;break;case 1:a=t[Dn](s,s+8),e.l=s+8;break;case 2:var c=Yf(t,e);a=t[Dn](e.l,e.l+c),e.l+=c;break;case 5:a=t[Dn](s,s+4),e.l=s+4;break;default:throw new Error("PB Type ".concat(o," for Field ").concat(r," at offset ").concat(n))}var l={data:a,type:o};null==i[r]&&(i[r]=[]),i[r].push(l)}return i}function dt(t){var i=[];return t.forEach(function(e,n){0!=n&&e.forEach(function(r){r.data&&(i.push(it(8*n+r.type)),2==r.type&&i.push(it(r.data.length)),i.push(r.data))})}),nc(i)}function bl(t,i){return t?.map(function(e){return i(e.data)})||[]}function Kf(t){for(var i,e=[],n={l:0};n.l>>0>0),e.push(a)}return e}function Zf(t){var i=[];return t.forEach(function(e){var n=[[],[{data:it(e.id),type:0}],[]];null!=e.merge&&(n[3]=[{data:it(+!!e.merge),type:0}]);var r=[];e.messages.forEach(function(a){r.push(a.data),a.meta[3]=[{type:0,data:it(a.data.length)}],n[2].push({data:dt(a.meta),type:2})});var o=dt(n);i.push(it(o.length)),i.push(o),r.forEach(function(a){return i.push(a)})}),nc(i)}function Gge(t,i){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e={l:0},n=Yf(i,e),r=[],o=e.l;o>2&7),l=(224&i[o++])<<3,l|=i[o++]):(d=1+(i[o++]>>2),2==a?(l=i[o]|i[o+1]<<8,o+=2):(l=(i[o]|i[o+1]<<8|i[o+2]<<16|i[o+3]<<24)>>>0,o+=4)),0==l)throw new Error("Invalid offset 0");for(var u=r.length-1,h=l;u>=0&&h>=r[u].length;)h-=r[u].length,--u;if(u<0){if(0!=h)throw new Error("Invalid offset beyond length");h=r[u=0].length}if(d0&&(r.push(r[u][Dn](r[u].length-h)),d-=h),++u;d>=r[u].length;)r.push(r[u]),d-=r[u].length,++u;d&&r.push(r[u][Dn](0,d))}r.length>25&&(r=[nc(r)])}else{var s=i[o++]>>2;if(s<60)++s;else{var c=s-59;s=i[o],c>1&&(s|=i[o+1]<<8),c>2&&(s|=i[o+2]<<16),c>3&&(s|=i[o+3]<<24),s>>>=0,s++,o+=c}r.push(i[Dn](o,o+s)),o+=s}}for(var f=0,m=0;m>8&255]))):n<=16777216?(a+=4,i.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(a+=5,i.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),i.push(t[Dn](e,e+n)),a+=n,r[0]=0,r[1]=255&a,r[2]=a>>8&255,r[3]=a>>16&255,e+=n}return nc(i)}function c_(t,i){var e=new Uint8Array(32),n=bs(e),r=12,o=0;switch(e[0]=5,t.t){case"n":e[1]=2,function Wge(t,i,e){var n=Math.floor(0==e?0:Math.LOG10E*Math.log(Math.abs(e)))+6176-16,r=e/Math.pow(10,n-6176);t[i+15]|=n>>7,t[i+14]|=(127&n)<<1;for(var o=0;r>=1;++o,r/=256)t[i+o]=255&r;t[i+15]|=e>=0?0:128}(e,r,t.v),o|=1,r+=16;break;case"b":e[1]=6,n.setFloat64(r,t.v?1:0,!0),o|=2,r+=8;break;case"s":var a=null==t.v?"":String(t.v),s=i.indexOf(a);-1==s&&(i[s=i.length]=a),e[1]=3,n.setUint32(r,s,!0),o|=8,r+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,o,!0),e[Dn](0,r)}function l_(t,i){var e=new Uint8Array(32),n=bs(e),r=12,o=0;switch(e[0]=4,t.t){case"n":e[2]=2,n.setFloat64(r,t.v,!0),o|=32,r+=8;break;case"b":e[2]=6,n.setFloat64(r,t.v?1:0,!0),o|=32,r+=8;break;case"s":var a=null==t.v?"":String(t.v),s=i.indexOf(a);-1==s&&(i[s=i.length]=a),e[2]=3,n.setUint32(r,s,!0),o|=16,r+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,o,!0),e[Dn](0,r)}function Di(t){return Zt(Be(t)[1][0].data)}function vs(t){return dt([[],[{type:0,data:it(t)}]])}function rc(t,i){var e,n=null!=(e=t.messages[0].meta[5])&&e[0]?CN(t.messages[0].meta[5][0].data):[];-1==n.indexOf(i)&&(n.push(i),t.messages[0].meta[5]=[{type:2,data:kN(n)}])}function xs(t,i){var e,n=null!=(e=t.messages[0].meta[5])&&e[0]?CN(t.messages[0].meta[5][0].data):[];t.messages[0].meta[5]=[{type:2,data:kN(n.filter(function(r){return r!=i}))}]}function n0e(t,i,e){var n,r,o=[[],[{type:0,data:it(0)}],[{type:0,data:it(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:it(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:it(1)}]];if(null==(n=o[6])||!n[0]||null==(r=o[7])||!r[0])throw"Mutation only works on post-BNC storages!";var a=0;if(o[7][0].data.length<2*t.length){var s=new Uint8Array(2*t.length);s.set(o[7][0].data),o[7][0].data=s}if(o[4][0].data.length<2*t.length){var c=new Uint8Array(2*t.length);c.set(o[4][0].data),o[4][0].data=c}for(var l=bs(o[7][0].data),d=0,u=[],h=bs(o[4][0].data),f=0,m=[],g=e?4:1,p=0;p-1,r={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};lC(i=i||{});var o=dw(),a="",s=0;if(i.cellXfs=[],ic(i.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),Rt(o,a="docProps/core.xml",L4(t.Props,i)),r.coreprops.push(a),ki(i.rels,2,a,Pt.CORE_PROPS),a="docProps/app.xml",!t.Props||!t.Props.SheetNames)if(t.Workbook&&t.Workbook.Sheets){for(var c=[],l=0;l0&&(Rt(o,a="docProps/custom.xml",H4(t.Custprops)),r.custprops.push(a),ki(i.rels,4,a,Pt.CUST_PROPS));var d=["SheetJ5"];for(i.tcid=0,s=1;s<=t.SheetNames.length;++s){var u={"!id":{}},h=t.Sheets[t.SheetNames[s-1]];if(Rt(o,a="xl/worksheets/sheet"+s+"."+e,Gfe(s-1,i,t,u)),r.sheets.push(a),ki(i.wbrels,-1,"worksheets/sheet"+s+"."+e,Pt.WS[0]),h){var m=h["!comments"],g=!1,p="";if(m&&m.length>0){var _=!1;m.forEach(function(w){w[1].forEach(function(x){1==x.T&&(_=!0)})}),_&&(Rt(o,p="xl/threadedComments/threadedComment"+s+".xml",fue(m,d,i)),r.threadedcomments.push(p),ki(u,-1,"../threadedComments/threadedComment"+s+".xml",Pt.TCMNT)),Rt(o,p="xl/comments"+s+"."+e,uue(m)),r.comments.push(p),ki(u,-1,"../comments"+s+"."+e,Pt.CMNT),g=!0}h["!legacy"]&&g&&Rt(o,"xl/drawings/vmlDrawing"+s+".vml",IL(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&Rt(o,Ff(a),cu(u))}return null!=i.Strings&&i.Strings.length>0&&(Rt(o,a="xl/sharedStrings."+e,function xle(t,i){if(!i.bookSST)return"";var e=[sn];e[e.length]=Ee("sst",null,{xmlns:nl[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(null!=t[n]){var r=t[n],o="";r.r?o+=r.r:(o+=""),e[e.length]=o+=""}return e.length>2&&(e[e.length]="",e[1]=e[1].replace("/>",">")),e.join("")}(i.Strings,i)),r.strs.push(a),ki(i.wbrels,-1,"sharedStrings."+e,Pt.SST)),Rt(o,a="xl/workbook."+e,function ype(t){var i=[sn];i[i.length]=Ee("workbook",null,{xmlns:nl[0],"xmlns:r":Rn.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(tC.forEach(function(s){null!=t.Workbook.WBProps[s[0]]&&t.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=t.Workbook.WBProps[s[0]])}),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),i[i.length]=Ee("workbookPr",null,n);var r=t.Workbook&&t.Workbook.Sheets||[],o=0;if(r&&r[0]&&r[0].Hidden){for(i[i.length]="",o=0;o!=t.SheetNames.length&&r[o]&&r[o].Hidden;++o);o==t.SheetNames.length&&(o=0),i[i.length]='',i[i.length]=""}for(i[i.length]="",o=0;o!=t.SheetNames.length;++o){var a={name:Ot(t.SheetNames[o].slice(0,31))};if(a.sheetId=""+(o+1),a["r:id"]="rId"+(o+1),r[o])switch(r[o].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden"}i[i.length]=Ee("sheet",null,a)}return i[i.length]="",e&&(i[i.length]="",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(s){var c={name:s.Name};s.Comment&&(c.comment=s.Comment),null!=s.Sheet&&(c.localSheetId=""+s.Sheet),s.Hidden&&(c.hidden="1"),s.Ref&&(i[i.length]=Ee("definedName",Ot(s.Ref),c))}),i[i.length]=""),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}(t)),r.workbooks.push(a),ki(i.rels,1,a,Pt.WB),Rt(o,a="xl/theme/theme1.xml",Xw(t.Themes,i)),r.themes.push(a),ki(i.wbrels,-1,"theme/theme1.xml",Pt.THEME),Rt(o,a="xl/styles."+e,function sde(t,i){var n,e=[sn,Ee("styleSheet",null,{xmlns:nl[0],"xmlns:vt":Rn.vt})];return t.SSF&&null!=(n=function nde(t){var i=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var n=e[0];n<=e[1];++n)null!=t[n]&&(i[i.length]=Ee("numFmt",null,{numFmtId:n,formatCode:Ot(t[n])}))}),1===i.length?"":(i[i.length]="",i[0]=Ee("numFmts",null,{count:i.length-2}).replace("/>",">"),i.join(""))}(t.SSF))&&(e[e.length]=n),e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',(n=function ode(t){var i=[];return i[i.length]=Ee("cellXfs",null),t.forEach(function(e){i[i.length]=Ee("xf",null,e)}),i[i.length]="",2===i.length?"":(i[0]=Ee("cellXfs",null,{count:i.length-2}).replace("/>",">"),i.join(""))}(i.cellXfs))&&(e[e.length]=n),e[e.length]='',e[e.length]='',e[e.length]='',e.length>2&&(e[e.length]="",e[1]=e[1].replace("/>",">")),e.join("")}(t,i)),r.styles.push(a),ki(i.wbrels,-1,"styles."+e,Pt.STY),t.vbaraw&&n&&(Rt(o,a="xl/vbaProject.bin",t.vbaraw),r.vba.push(a),ki(i.wbrels,-1,"vbaProject.bin",Pt.VBA)),Rt(o,a="xl/metadata."+e,function nue(){var t=[sn];return t.push('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),t.join("")}()),r.metadata.push(a),ki(i.wbrels,-1,"metadata."+e,Pt.XLMETA),d.length>1&&(Rt(o,a="xl/persons/person.xml",function pue(t){var i=[sn,Ee("personList",null,{xmlns:Rn.TCMNT,"xmlns:x":nl[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,n){i.push(Ee("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))}),i.push(""),i.join("")}(d)),r.people.push(a),ki(i.wbrels,-1,"persons/person.xml",Pt.PEOPLE)),Rt(o,"[Content_Types].xml",F4(r,i)),Rt(o,"_rels/.rels",cu(i.rels)),Rt(o,"xl/_rels/workbook.xml.rels",cu(i.wbrels)),delete i.revssf,delete i.ssf,o}function RN(t,i){switch(i.type){case"base64":case"binary":break;case"buffer":case"array":i.type="";break;case"file":return wf(i.file,lt.write(t,{type:Vt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+i.bookType+"' files");default:throw new Error("Unrecognized type "+i.type)}return lt.write(t,i)}function v0e(t,i){switch(i.bookType){case"ods":return wN(t,i);case"numbers":return function o0e(t,i){if(!i||!i.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=lt.read(i.numbers,{type:"base64"}),n=function r0e(t){var i={},e=[];return t.FileIndex.map(function(n,r){return[n,t.FullPaths[r]]}).forEach(function(n){var r=n[0],o=n[1];2==r.type&&r.name.match(/\.iwa/)&&0==r.content[0]&&Kf(Jf(r.content)).forEach(function(a){e.push(a.id),i[a.id]={deps:[],location:o,type:Zt(a.messages[0].meta[1][0].data)}})}),t.FileIndex.forEach(function(n){n.name.match(/\.iwa/)&&0==n.content[0]&&Kf(Jf(n.content)).forEach(function(r){r.messages.forEach(function(o){[5,6].forEach(function(a){o.meta[a]&&o.meta[a].forEach(function(s){i[r.id].deps.push(Zt(s.data))})})})})}),i}(e),r=Ra(e,n,1);if(null==r)throw"Could not find message ".concat(1," in Numbers template");var o=bl(Be(r.messages[0].data)[1],Di);if(o.length>1)throw new Error("Template NUMBERS file must have exactly one sheet");return t.SheetNames.forEach(function(a,s){s>=1&&(function a0e(t,i,e){var n=-1,r=-1,o={};Nn(t,i,1,function(l,d){var u=Be(l.messages[0].data);n=Di(Be(l.messages[0].data)[1][0].data),r=oc({deps:[1],location:i[n].location,type:2},i),o[n]=r,rc(l,r),u[1].push({type:2,data:vs(r)});var h=Ra(t,i,n);h.id=r,i[1].location==i[r].location?d.push(h):Nn(t,i,r,function(f,m){return m.push(h)}),l.messages[0].data=dt(u)});var a=-1;Nn(t,i,r,function(l,d){for(var u=Be(l.messages[0].data),h=3;h<=69;++h)delete u[h];var f=bl(u[2],Di);f.forEach(function(p){return xs(l,p)}),a=oc({deps:[r],location:i[f[0]].location,type:i[f[0]].type},i),rc(l,a),o[f[0]]=a,u[2]=[{type:2,data:vs(a)}];var m=Ra(t,i,f[0]);if(m.id=a,i[f[0]].location==i[r].location)d.push(m);else{var g=i[r].location;g=(g=g.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nn(t,i,2,function(p){var _=Be(p.messages[0].data),w=_[3].findIndex(function(M){var W,L,D=Be(M.data);return null!=(W=D[3])&&W[0]?jn(D[3][0].data)==g:!(null==(L=D[2])||!L[0]||jn(D[2][0].data)!=g)}),x=Be(_[3][w].data);x[6]||(x[6]=[]),x[6].push({type:2,data:dt([[],[{type:0,data:it(a)}]])}),_[3][w].data=dt(x),p.messages[0].data=dt(_)}),Nn(t,i,a,function(p,_){return _.push(m)})}l.messages[0].data=dt(u)});var s=-1;Nn(t,i,a,function(l,d){for(var u=Be(l.messages[0].data),h=Be(u[1][0].data),f=3;f<=69;++f)delete h[f];var m=Di(h[2][0].data);h[2][0].data=vs(o[m]),u[1][0].data=dt(h);var g=Di(u[2][0].data);xs(l,g),rc(l,s=oc({deps:[a],location:i[g].location,type:i[g].type},i)),o[g]=s,u[2][0].data=vs(s);var p=Ra(t,i,g);p.id=s,i[a].location==i[s].location?d.push(p):Nn(t,i,s,function(_,w){return w.push(p)}),l.messages[0].data=dt(u)});var c=i[s].location;c=(c=c.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nn(t,i,s,function(l,d){var u,h,f=Be(l.messages[0].data),g=jn(f[1][0].data).replace(/-[A-Z0-9]*/,"-".concat(e.toString(16).padStart(4,"0")));if(f[1][0].data=ta(g),[12,13,29,31,32,33,39,44,47,81,82,84].forEach(function(L){return delete f[L]}),f[45]){var _=Di(Be(f[45][0].data)[1][0].data);xs(l,_),delete f[45]}f[70]&&(null==(u=Be(f[70][0].data)[2])||u.forEach(function(L){var D=Be(L.data);[2,3].map(function(B){return D[B][0]}).forEach(function(B){var N=Be(B.data);if(N[8]){var j=Di(N[8][0].data);xs(l,j)}})}),delete f[70]),[46,30,34,35,36,38,48,49,60,61,62,63,64,71,72,73,74,75,85,86,87,88,89].forEach(function(L){if(f[L]){var D=Di(f[L][0].data);delete f[L],xs(l,D)}});var x=Be(f[4][0].data);[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach(function(L){var D;if(null!=(D=x[L])&&D[0]){var B=Di(x[L][0].data),N=oc({deps:[s],location:i[B].location,type:i[B].type},i);xs(l,B),rc(l,N),o[B]=N;var j=Ra(t,i,B);if(j.id=N,i[B].location==i[s].location)d.push(j);else{i[N].location=i[B].location.replace(B.toString(),N.toString()),i[N].location==i[B].location&&(i[N].location=i[N].location.replace(/\.iwa/,"-".concat(N,".iwa"))),lt.utils.cfb_add(t,i[N].location,em(Zf([j])));var Z=i[N].location;Z=(Z=Z.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nn(t,i,2,function(U){var me=Be(U.messages[0].data);me[3].push({type:2,data:dt([[],[{type:0,data:it(N)}],[{type:2,data:ta(Z.replace(/-.*$/,""))}],[{type:2,data:ta(Z)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:it(0)}],[],[{type:0,data:it(0)}]])}),me[1]=[{type:0,data:it(Math.max(N+1,Zt(me[1][0].data)))}];var be=me[3].findIndex(function(ne){var Y,he,se=Be(ne.data);return null!=(Y=se[3])&&Y[0]?jn(se[3][0].data)==c:!(null==(he=se[2])||!he[0]||jn(se[2][0].data)!=c)}),de=Be(me[3][be].data);de[6]||(de[6]=[]),de[6].push({type:2,data:dt([[],[{type:0,data:it(N)}]])}),me[3][be].data=dt(de),U.messages[0].data=dt(me)})}x[L][0].data=vs(N)}});var M=Be(x[1][0].data);null==(h=M[2])||h.forEach(function(L){var D=Di(L.data),B=oc({deps:[s],location:i[D].location,type:i[D].type},i);xs(l,D),rc(l,B),o[D]=B;var N=Ra(t,i,D);if(N.id=B,i[D].location==i[s].location)d.push(N);else{i[B].location=i[D].location.replace(D.toString(),B.toString()),i[B].location==i[D].location&&(i[B].location=i[B].location.replace(/\.iwa/,"-".concat(B,".iwa"))),lt.utils.cfb_add(t,i[B].location,em(Zf([N])));var j=i[B].location;j=(j=j.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nn(t,i,2,function(Z){var U=Be(Z.messages[0].data);U[3].push({type:2,data:dt([[],[{type:0,data:it(B)}],[{type:2,data:ta(j.replace(/-.*$/,""))}],[{type:2,data:ta(j)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:it(0)}],[],[{type:0,data:it(0)}]])}),U[1]=[{type:0,data:it(Math.max(B+1,Zt(U[1][0].data)))}];var me=U[3].findIndex(function(de){var ne,Y,he=Be(de.data);return null!=(ne=he[3])&&ne[0]?jn(he[3][0].data)==c:!(null==(Y=he[2])||!Y[0]||jn(he[2][0].data)!=c)}),be=Be(U[3][me].data);be[6]||(be[6]=[]),be[6].push({type:2,data:dt([[],[{type:0,data:it(B)}]])}),U[3][me].data=dt(be),Z.messages[0].data=dt(U)})}L.data=vs(B)}),x[1][0].data=dt(M);var W=Be(x[3][0].data);W[1].forEach(function(L){var D=Be(L.data),B=Di(D[2][0].data),N=o[B];if(!o[B]){N=oc({deps:[s],location:"",type:i[B].type},i),i[N].location="Root Entry/Index/Tables/Tile-".concat(N,".iwa"),o[B]=N;var j=Ra(t,i,B);j.id=N,xs(l,B),rc(l,N),lt.utils.cfb_add(t,"/Index/Tables/Tile-".concat(N,".iwa"),em(Zf([j]))),Nn(t,i,2,function(Z){var U=Be(Z.messages[0].data);U[3].push({type:2,data:dt([[],[{type:0,data:it(N)}],[{type:2,data:ta("Tables/Tile")}],[{type:2,data:ta("Tables/Tile-".concat(N))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:it(0)}],[],[{type:0,data:it(0)}]])}),U[1]=[{type:0,data:it(Math.max(N+1,Zt(U[1][0].data)))}];var me=U[3].findIndex(function(de){var ne,Y,he=Be(de.data);return null!=(ne=he[3])&&ne[0]?jn(he[3][0].data)==c:!(null==(Y=he[2])||!Y[0]||jn(he[2][0].data)!=c)}),be=Be(U[3][me].data);be[6]||(be[6]=[]),be[6].push({type:2,data:dt([[],[{type:0,data:it(N)}]])}),U[3][me].data=dt(be),Z.messages[0].data=dt(U)})}D[2][0].data=vs(N),L.data=dt(D)}),x[3][0].data=dt(W),f[4][0].data=dt(x),l.messages[0].data=dt(f)})}(e,n,s+1),r=Ra(e,n,1),o=bl(Be(r.messages[0].data)[1],Di)),function s0e(t,i,e,n,r,o){var a=[];Nn(t,i,o,function(l){var d=Be(l.messages[0].data);d[1]=[{type:2,data:ta(n)}],a=bl(d[2],Di),l.messages[0].data=dt(d)});var c=Di(Be(Ra(t,i,a[0]).messages[0].data)[2][0].data);Nn(t,i,c,function(l,d){return function c0e(t,i,e,n,r,o){var a=Pn(e["!ref"]);a.s.r=a.s.c=0;var s=!1;a.e.c>999&&(s=!0,a.e.c=999),a.e.r>999999&&(s=!0,a.e.r=999999),s&&console.error("Truncating to ".concat(Et(a)));var c=h_(e,{range:a,header:1}),l=["~Sh33tJ5~"],d=i[o].location;d=(d=d.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,"");var u=Be(n.messages[0].data);u[6][0].data=it(a.e.r+1),u[7][0].data=it(a.e.c+1),delete u[46];var h=Be(u[4][0].data);Nn(t,i,Di(Be(h[1][0].data)[2][0].data),function(be,de){var ne,Y=Be(be.messages[0].data);if(null!=(ne=Y?.[2])&&ne[0])for(var he=0;he0&&(Rt(o,a="docProps/custom.xml",H4(t.Custprops)),r.custprops.push(a),ki(i.rels,4,a,Pt.CUST_PROPS)),s=1;s<=t.SheetNames.length;++s){var d={"!id":{}},u=t.Sheets[t.SheetNames[s-1]];if(Rt(o,a="xl/worksheets/sheet"+s+"."+e,spe(s-1,i,t,d)),r.sheets.push(a),ki(i.wbrels,-1,"worksheets/sheet"+s+"."+e,Pt.WS[0]),u){var f=u["!comments"],m=!1,g="";f&&f.length>0&&(Rt(o,g="xl/comments"+s+"."+e,yue(f)),r.comments.push(g),ki(d,-1,"../comments"+s+"."+e,Pt.CMNT),m=!0),u["!legacy"]&&m&&Rt(o,"xl/drawings/vmlDrawing"+s+".vml",IL(s,u["!comments"])),delete u["!comments"],delete u["!legacy"]}d["!id"].rId1&&Rt(o,Ff(a),cu(d))}return null!=i.Strings&&i.Strings.length>0&&(Rt(o,a="xl/sharedStrings."+e,function Dle(t){var i=Ur();fe(i,159,function Cle(t,i){return i||(i=re(8)),i.write_shift(4,t.Count),i.write_shift(4,t.Unique),i}(t));for(var e=0;e22)throw new Error("Bad Code Name: Worksheet"+a)}})}(t.SheetNames,t.Workbook&&t.Workbook.Sheets||[],!!t.vbaraw);for(var e=0;e255&&(e=95),o=e>>2,(n=t.charCodeAt(l++))>255&&(n=95),a=(3&e)<<4|n>>4,(r=t.charCodeAt(l++))>255&&(r=95),s=(15&n)<<2|r>>6,c=63&r,isNaN(n)?s=c=64:isNaN(r)&&(c=64),i+=So.charAt(o)+So.charAt(a)+So.charAt(s)+So.charAt(c);return i}(t);case"binary":case"string":return t;case"file":return wf(i.file,t,"binary");case"buffer":return Vt?Sa(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+i.type)}(VN(t.Sheets[t.SheetNames[r]],e),e);case"csv":return Oa(mC(t.Sheets[t.SheetNames[r]],e),e,"\ufeff");case"dif":return Oa(xL.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"dbf":return u_(zw.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"prn":return Oa(lu.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"rtf":return Oa(function Wle(t,i){var e=["{\\rtf1\\ansi"];if(!t["!ref"])return e[0]+"}";for(var r,n=Kt(t["!ref"]),o=null!=t["!data"],a=[],s=n.s.r;s<=n.e.r;++s){e.push("\\trowd\\trautofit1");for(var c=n.s.c;c<=n.e.c;++c)e.push("\\cellx"+(c+1));for(e.push("\\pard\\intbl"),o&&(a=t["!data"][s]||[]),c=n.s.c;c<=n.e.c;++c){var l=zt({r:s,c});(r=o?a[c]:t[l])&&(null!=r.v||r.f&&!r.F)?(e.push(" "+(r.w||(Aa(r),r.w)||"").replace(/[\r\n]/g,"\\par ")),e.push("\\cell")):e.push(" \\cell")}e.push("\\pard\\intbl\\row")}return e.join("")+"}"}(t.Sheets[t.SheetNames[r]]),e);case"eth":return Oa(yL.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"fods":return Oa(wN(t,e),e);case"wk1":return u_(pl.sheet_to_wk1(t.Sheets[t.SheetNames[r]],e),e);case"wk3":return u_(pl.book_to_wk3(t,e),e);case"biff2":e.biff||(e.biff=2);case"biff3":e.biff||(e.biff=3);case"biff4":return e.biff||(e.biff=4),u_(aN(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function w0e(t,i){var e=i||{};return RN(function yge(t,i){var e=i||{},n=lt.utils.cfb_new({root:"R"}),r="/Workbook";switch(e.bookType||"xls"){case"xls":e.bookType="biff8";case"xla":e.bookType||(e.bookType="xla");case"biff8":r="/Workbook",e.biff=8;break;case"biff5":r="/Book",e.biff=5;break;default:throw new Error("invalid type "+e.bookType+" for XLS CFB")}return lt.utils.cfb_add(n,r,aN(t,e)),8==e.biff&&(t.Props||t.Custprops)&&function xge(t,i){var a,e=[],n=[],r=[],o=0,s=UP(Aw,"n"),c=UP(Iw,"n");if(t.Props)for(a=$i(t.Props),o=0;o-1||N4.indexOf(r[o][0])>-1||null!=r[o][1]&&l.push(r[o]);n.length&<.utils.cfb_add(i,"/\x05SummaryInformation",K4(n,qf.SI,c,Iw)),(e.length||l.length)&<.utils.cfb_add(i,"/\x05DocumentSummaryInformation",K4(e,qf.DSI,s,Aw,l.length?l:null,qf.UDI))}(t,n),8==e.biff&&t.vbaraw&&function kue(t,i){i.FullPaths.forEach(function(e,n){if(0!=n){var r=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==r.slice(-1)&<.utils.cfb_add(t,r,i.FileIndex[n].content)}})}(n,lt.read(t.vbaraw,{type:"string"==typeof t.vbaraw?"binary":"buffer"})),n}(t,e),e)}(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function x0e(t,i){var e=yi(i||{});return function ON(t,i){var e={},n=Vt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(i.compression&&(e.compression="DEFLATE"),i.password)e.type=n;else switch(i.type){case"base64":e.type="base64";break;case"binary":e.type="string";break;case"string":throw new Error("'string' output type invalid for '"+i.bookType+"' files");case"buffer":case"file":e.type=n;break;default:throw new Error("Unrecognized type "+i.type)}var r=t.FullPaths?lt.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[e.type]||e.type,compression:!!i.compression}):t.generate(e);if(typeof Deno<"u"&&"string"==typeof r){if("binary"==i.type||"base64"==i.type)return r;r=new Uint8Array(bf(r))}return i.password&&typeof encrypt_agile<"u"?RN(encrypt_agile(r,i.password),i):"file"===i.type?wf(i.file,r):"string"==i.type?Ci(r):r}(v0e(t,e),e)}(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function LN(t,i,e,n,r,o,a){var s=Yt(e),c=a.defval,l=a.raw||!Object.prototype.hasOwnProperty.call(a,"raw"),d=!0,u=null!=t["!data"],h=1===r?[]:{};if(1!==r)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:e,enumerable:!1})}catch{h.__rowNum__=e}else h.__rowNum__=e;if(!u||t["!data"][e])for(var f=i.s.c;f<=i.e.c;++f){var m=u?(t["!data"][e]||[])[f]:t[n[f]+s];if(void 0!==m&&void 0!==m.t){var g=m.v;switch(m.t){case"z":if(null==g)break;continue;case"e":g=0==g?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+m.t)}if(null!=o[f]){if(null==g)if("e"==m.t&&null===g)h[o[f]]=null;else if(void 0!==c)h[o[f]]=c;else{if(!l||null!==g)continue;h[o[f]]=null}else h[o[f]]=l&&("n"!==m.t||"n"===m.t&&!1!==a.rawNumbers)?g:Aa(m,g,a);null!=g&&(d=!1)}}else{if(void 0===c)continue;null!=o[f]&&(h[o[f]]=c)}}return{row:h,isempty:d}}function h_(t,i){if(null==t||null==t["!ref"])return[];var e={t:"n",v:0},n=0,r=1,o=[],a=0,s="",c={s:{r:0,c:0},e:{r:0,c:0}},l=i||{},d=null!=l.range?l.range:t["!ref"];switch(1===l.header?n=1:"A"===l.header?n=2:Array.isArray(l.header)?n=3:null==l.header&&(n=0),typeof d){case"string":c=Kt(d);break;case"number":(c=Kt(t["!ref"])).s.r=d;break;default:c=d}n>0&&(r=0);var u=Yt(c.s.r),h=[],f=[],m=0,g=0,p=null!=t["!data"],_=c.s.r,w=0,x={};p&&!t["!data"][_]&&(t["!data"][_]=[]);var M=l.skipHidden&&t["!cols"]||[],W=l.skipHidden&&t["!rows"]||[];for(w=c.s.c;w<=c.e.c;++w)if(!(M[w]||{}).hidden)switch(h[w]=Ht(w),e=p?t["!data"][_][w]:t[h[w]+u],n){case 1:o[w]=w-c.s.c;break;case 2:o[w]=h[w];break;case 3:o[w]=l.header[w-c.s.c];break;default:if(null==e&&(e={w:"__EMPTY",t:"s"}),s=a=Aa(e,null,l),g=x[a]||0){do{s=a+"_"+g++}while(x[s]);x[a]=g,x[s]=1}else x[a]=1;o[w]=s}for(_=c.s.r+r;_<=c.e.r;++_)if(!(W[_]||{}).hidden){var L=LN(t,c,_,h,n,o,l);(!1===L.isempty||(1===n?!1!==l.blankrows:l.blankrows))&&(f[m++]=L.row)}return f.length=m,f}var NN=/"/g;function BN(t,i,e,n,r,o,a,s){for(var c=!0,l=[],d="",u=Yt(e),h=null!=t["!data"],f=h&&t["!data"][e]||[],m=i.s.c;m<=i.e.c;++m)if(n[m]){var g=h?f[m]:t[n[m]+u];if(null==g)d="";else if(null!=g.v){c=!1,d=""+(s.rawNumbers&&"n"==g.t?g.v:Aa(g,null,s));for(var p=0,_=0;p!==d.length;++p)if((_=d.charCodeAt(p))===r||_===o||34===_||s.forceQuotes){d='"'+d.replace(NN,'""')+'"';break}"ID"==d&&(d='"ID"')}else null==g.f||g.F?d="":(c=!1,(d="="+g.f).indexOf(",")>=0&&(d='"'+d.replace(NN,'""')+'"'));l.push(d)}return!1===s.blankrows&&c?null:l.join(a)}function mC(t,i){var e=[],n=i??{};if(null==t||null==t["!ref"])return"";for(var r=Kt(t["!ref"]),o=void 0!==n.FS?n.FS:",",a=o.charCodeAt(0),s=void 0!==n.RS?n.RS:"\n",c=s.charCodeAt(0),l=new RegExp(("|"==o?"\\|":o)+"+$"),d="",u=[],h=n.skipHidden&&t["!cols"]||[],f=n.skipHidden&&t["!rows"]||[],m=r.s.c;m<=r.e.c;++m)(h[m]||{}).hidden||(u[m]=Ht(m));for(var g=0,p=r.s.r;p<=r.e.r;++p)(f[p]||{}).hidden||null!=(d=BN(t,r,p,u,a,c,o,n))&&(n.strip&&(d=d.replace(l,"")),(d||!1!==n.blankrows)&&e.push((g++?s:"")+d));return e.join("")}function VN(t,i){i||(i={}),i.FS="\t",i.RS="\n";var e=mC(t,i);if(typeof Mt>"u"||"string"==i.type)return e;var n=Mt.utils.encode(1200,e,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function HN(t,i,e){var n=e||{},r=t?null!=t["!data"]:n.dense;null!=an&&null==r&&(r=an);var o=+!n.skipHeader,a=t||{};!t&&r&&(a["!data"]=[]);var s=0,c=0;if(a&&null!=n.origin)if("number"==typeof n.origin)s=n.origin;else{var l="string"==typeof n.origin?bi(n.origin):n.origin;s=l.r,c=l.c}var d={s:{c:0,r:0},e:{c,r:s+i.length-1+o}};if(a["!ref"]){var u=Kt(a["!ref"]);d.e.c=Math.max(d.e.c,u.e.c),d.e.r=Math.max(d.e.r,u.e.r),-1==s&&(d.e.r=(s=u.e.r+1)+i.length-1+o)}else-1==s&&(s=0,d.e.r=i.length-1+o);var h=n.header||[],f=0,m=[];i.forEach(function(p,_){r&&!a["!data"][s+_+o]&&(a["!data"][s+_+o]=[]),r&&(m=a["!data"][s+_+o]),$i(p).forEach(function(w){-1==(f=h.indexOf(w))&&(h[f=h.length]=w);var x=p[w],M="z",W="",L=r?"":Ht(c+f)+Yt(s+_+o),D=r?m[c+f]:a[L];!x||"object"!=typeof x||x instanceof Date?("number"==typeof x?M="n":"boolean"==typeof x?M="b":"string"==typeof x?M="s":x instanceof Date?(M="d",n.cellDates||(M="n",x=yn(x)),W=null!=D&&D.z&&Ys(D.z)?D.z:n.dateNF||ut[14]):null===x&&n.nullError&&(M="e",x=0),D?(D.t=M,D.v=x,delete D.w,delete D.R,W&&(D.z=W)):r?m[c+f]=D={t:M,v:x}:a[L]=D={t:M,v:x},W&&(D.z=W)):r?m[c+f]=x:a[L]=x})}),d.e.c=Math.max(d.e.c,c+h.length-1);var g=Yt(s);if(r&&!a["!data"][s]&&(a["!data"][s]=[]),o)for(f=0;f=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(e)>=0){var o=e.match(/(^.*?)(\d+)$/);r=o&&+o[2]||0;var a=o&&o[1]||e;for(++r;r<=65535&&-1!=t.SheetNames.indexOf(e=a+r);++r);}if(tN(e),t.SheetNames.indexOf(e)>=0)throw new Error("Worksheet with name |"+e+"| already exists!");return t.SheetNames.push(e),t.Sheets[e]=i,e}var zN_json_to_sheet=function E0e(t,i){return HN(null,t,i)};let U0e=(()=>{class t{constructor(){}exportAsExcelFile(e,n){const a=tm({Sheets:{data:zN_json_to_sheet(e)},SheetNames:["data"]},{bookType:"xlsx",type:"array"});this.saveAsExcelFile(a,n)}saveAsExcelFile(e,n){const r=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});Zc.saveAs(r,n+"_export_"+(new Date).getTime()+".xlsx")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const z0e=["*",[["mat-toolbar-row"]]],$0e=["*","mat-toolbar-row"],j0e=Vs(class{constructor(t){this._elementRef=t}});let W0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),G0e=(()=>{class t extends j0e{constructor(e,n,r){super(e),this._platform=n,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(xi),b(nt))},t.\u0275cmp=Ve({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,W0e,5),2&e){let o;ye(o=we())&&(n._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,n){2&e&&Qe("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[pe],ngContentSelectors:$0e,decls:2,vars:0,template:function(e,n){1&e&&(vi(z0e),tt(0),tt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),t})(),q0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,xt]}),t})();function X0e(t,i){if(1&t){const e=Je();v(0,"button",6),X("click",function(){const o=Me(e).$implicit;return Ae(q().setFhirServer(o))}),E(1),y()}if(2&t){const e=i.$implicit;k(1),Xe(e.name)}}function Q0e(t,i){if(1&t){const e=Je();v(0,"button",6),X("click",function(){const o=Me(e).$implicit;return Ae(q(2).setEdition(o))}),E(1),y()}if(2&t){const e=i.$implicit;k(1),Xe(e.resource.version)}}function Y0e(t,i){if(1&t&&(Ai(0),v(1,"button",14),E(2),y(),v(3,"mat-menu",null,15),H(5,Q0e,2,1,"button",9),y(),Ii()),2&t){const e=i.$implicit,n=Nt(4);k(1),T("matMenuTriggerFor",n),k(1),Xe(e.editionName),k(3),T("ngForOf",e.editions)}}function K0e(t,i){if(1&t){const e=Je();v(0,"button",6),X("click",function(){const o=Me(e).$implicit;return Ae(q().setLanguage(o))}),E(1),y()}if(2&t){const e=i.$implicit;k(1),Xe(e)}}let Z0e=(()=>{class t{constructor(e,n,r,o){this.codingSpecService=e,this.excelService=n,this.terminologyService=r,this.router=o,this.title="sct-implementation-demonstrator",this.bindingsForExport=[],this.editions=[],this.editionsDetails=[],this.languages=["be","en","es","fr","no"],this.selectedEdition="Edition",this.selectedLanguage="en",this.fhirServers=[{name:"SNOMED Dev IS",url:"https://dev-is-browser.ihtsdotools.org/fhir"},{name:"SNOMED Public",url:"https://snowstorm.ihtsdotools.org/fhir"},{name:"SNOMED Dev 2",url:"https://snowstorm-temp.kaicode.io/fhir"}],this.selectedServer=this.fhirServers[1],this.router.events.subscribe(a=>{a instanceof Os&>ag("config","G-7SK998GPMX",{page_path:a.urlAfterRedirects})})}ngOnInit(){this.setFhirServer(this.selectedServer),this.bindingsForExport=[];let e=this.codingSpecService.getCodingSpec();for(const n of e)for(const r of n.bindings)this.bindingsForExport.push({section:n.title,title:r.title,ecl:r.ecl.replace(/\s\s+/g," ")});this.updateCodeSystemOptions()}navigate(e){this.router.navigate([e])}updateCodeSystemOptions(){this.terminologyService.getCodeSystems().subscribe(e=>{this.editionsDetails=[],this.editions=e.entry;let n=new Set;this.editions.forEach(o=>{n.add(o.resource.title)}),n.forEach(o=>{this.editionsDetails.push({editionName:o,editions:this.editions.filter(a=>a.resource.title.includes(o)).sort(this.compare)})});const r=this.editionsDetails.findIndex(o=>"International Edition"===o.editionName);this.setEdition(r>=0?this.editionsDetails[r].editions[0]:this.editions[0])})}compare(e,n){return e.resource.daten.resource.date?-1:0}setFhirServer(e){this.selectedServer=e,this.terminologyService.setSnowstormFhirBase(e.url),this.selectedEdition="Edition",this.editions=[],this.editionsDetails=[],this.updateCodeSystemOptions()}setEdition(e){this.selectedEdition=e.resource.title?.replace("SNOMED CT release ",""),this.terminologyService.setFhirUrlParam(e.resource.version)}setLanguage(e){this.selectedLanguage=e,this.terminologyService.setLang(e)}}return t.\u0275fac=function(e){return new(e||t)(b(goe),b(U0e),b(Nr),b(Pr))},t.\u0275cmp=Ve({type:t,selectors:[["app-root"]],decls:34,vars:10,consts:[["src","assets/img/small_logo.png","height","60px"],["id","title"],[1,"example-spacer"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],[1,"wide-menu"],["demosMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","primary",3,"matMenuTriggerFor"],["serverMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["editionsMenu","matMenu"],[4,"ngFor","ngForOf"],["menu","matMenu"],["mat-flat-button","","href","https://github.com/IHTSDO/sct-implementation-demonstrator","target","_blank","color","primary"],["mat-menu-item","",3,"matMenuTriggerFor"],["sub_menu","matMenu"]],template:function(e,n){if(1&e&&(v(0,"mat-toolbar"),Se(1,"img",0),v(2,"span",1),E(3,"SNOMED CT Implementation Demos"),y(),Se(4,"span",2),v(5,"button",3),E(6,"Select Demonstrator"),y(),v(7,"mat-menu",4,5)(9,"button",6),X("click",function(){return n.navigate("/allergies")}),E(10,"Allergies CRG"),y(),v(11,"button",6),X("click",function(){return n.navigate("/sandbox")}),E(12,"Terminology Bindings Sandbox"),y(),v(13,"button",6),X("click",function(){return n.navigate("/questionnaires")}),E(14,"FHIR Questionnaire Validation Tool"),y()(),v(15,"button",7),E(16),y(),v(17,"mat-menu",null,8),H(19,X0e,2,1,"button",9),y(),v(20,"button",7),E(21),y(),v(22,"mat-menu",4,10),H(24,Y0e,6,3,"ng-container",11),y(),v(25,"button",7),E(26),y(),v(27,"mat-menu",null,12),H(29,K0e,2,1,"button",9),y(),v(30,"a",13)(31,"mat-icon"),E(32,"info"),y()()(),Se(33,"router-outlet")),2&e){const r=Nt(8),o=Nt(18),a=Nt(23),s=Nt(28);k(5),T("matMenuTriggerFor",r),k(10),T("matMenuTriggerFor",o),k(1),It("FHIR Server: ",n.selectedServer.name,""),k(3),T("ngForOf",n.fhirServers),k(1),T("matMenuTriggerFor",a),k(1),Xe(n.selectedEdition),k(3),T("ngForOf",n.editionsDetails),k(1),T("matMenuTriggerFor",s),k(1),Xe(n.selectedLanguage),k(3),T("ngForOf",n.languages)}},dependencies:[bo,iy,G0e,hX,Lr,Qo,jc,wa,Wc],styles:[".mat-toolbar[_ngcontent-%COMP%]{background-color:#000;color:#fff;font-size:1.8rem;font-weight:700}button[_ngcontent-%COMP%]{font-weight:700;font-size:medium}#title[_ngcontent-%COMP%]{margin-left:15px;font-size:1.4rem}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}button[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{margin-left:15px} .mat-mdc-menu-panel{max-width:-moz-fit-content!important;max-width:fit-content!important;overflow-x:hidden!important}.mat-mdc-unelevated-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .mat-mdc-raised-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .mat-mdc-outlined-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{margin:0!important}#demo-selector[_ngcontent-%COMP%]{margin:5px 15px;padding:10px}"]}),t})();function $N(t){return new ue(3e3,!1)}function R_e(){return typeof window<"u"&&typeof window.document<"u"}function gC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ac(t){switch(t.length){case 0:return new Bh;case 1:return t[0];default:return new nF(t)}}function jN(t,i,e,n,r=new Map,o=new Map){const a=[],s=[];let c=-1,l=null;if(n.forEach(d=>{const u=d.get("offset"),h=u==c,f=h&&l||new Map;d.forEach((m,g)=>{let p=g,_=m;if("offset"!==g)switch(p=i.normalizePropertyName(p,a),_){case Xy:_=r.get(g);break;case as:_=o.get(g);break;default:_=i.normalizeStyleValue(g,p,_,a)}f.set(p,_)}),h||s.push(f),l=f,c=u}),a.length)throw function y_e(t){return new ue(3502,!1)}();return s}function _C(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&bC(e,"start",t)));break;case"done":t.onDone(()=>n(e&&bC(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&bC(e,"destroy",t)))}}function bC(t,i,e){const o=vC(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(o._data=a),o}function vC(t,i,e,n,r="",o=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function oo(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function WN(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}let xC=(t,i)=>!1,GN=(t,i,e)=>[],qN=null;function yC(t){const i=t.parentNode||t.host;return i===qN?null:i}(gC()||typeof Element<"u")&&(R_e()?(qN=(()=>document.documentElement)(),xC=(t,i)=>{for(;i;){if(i===t)return!0;i=yC(i)}return!1}):xC=(t,i)=>t.contains(i),GN=(t,i,e)=>{if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]});let vl=null,XN=!1;const QN=xC,YN=GN;let KN=(()=>{class t{validateStyleProperty(e){return function P_e(t){vl||(vl=function L_e(){return typeof document<"u"?document.body:null}()||{},XN=!!vl.style&&"WebkitAppearance"in vl.style);let i=!0;return vl.style&&!function O_e(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in vl.style,!i&&XN&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in vl.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return QN(e,n)}getParentElement(e){return yC(e)}query(e,n,r){return YN(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,o,a,s=[],c){return new Bh(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),wC=(()=>{class t{}return t.NOOP=new KN,t})();const N_e=1e3,CC="ng-enter",g_="ng-leave",__="ng-trigger",b_=".ng-trigger",JN="ng-animating",kC=".ng-animating";function ys(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:DC(parseFloat(i[1]),i[2])}function DC(t,i){return"s"===i?t*N_e:t}function v_(t,i,e){return t.hasOwnProperty("duration")?t:function V_e(t,i,e){let r,o=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return i.push($N()),{duration:0,delay:0,easing:""};r=DC(parseFloat(s[1]),s[2]);const c=s[3];null!=c&&(o=DC(parseFloat(c),s[4]));const l=s[5];l&&(a=l)}else r=t;if(!e){let s=!1,c=i.length;r<0&&(i.push(function J0e(){return new ue(3100,!1)}()),s=!0),o<0&&(i.push(function e_e(){return new ue(3101,!1)}()),s=!0),s&&i.splice(c,0,$N())}return{duration:r,delay:o,easing:a}}(t,i,e)}function im(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function e3(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function sc(t,i=new Map,e){if(e)for(let[n,r]of e)i.set(n,r);for(let[n,r]of t)i.set(n,r);return i}function n3(t,i,e){return e?i+":"+e+";":""}function r3(t){let i="";for(let e=0;e{const o=EC(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=n}),gC()&&r3(t))}function xl(t,i){t.style&&(i.forEach((e,n)=>{const r=EC(n);t.style[r]=""}),gC()&&r3(t))}function nm(t){return Array.isArray(t)?1==t.length?t[0]:tF(t):t}const SC=new RegExp("{{\\s*(.+?)\\s*}}","g");function o3(t){let i=[];if("string"==typeof t){let e;for(;e=SC.exec(t);)i.push(e[1]);SC.lastIndex=0}return i}function rm(t,i,e){const n=t.toString(),r=n.replace(SC,(o,a)=>{let s=i[a];return null==s&&(e.push(function i_e(t){return new ue(3003,!1)}()),s=""),s.toString()});return r==n?t:r}function x_(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const z_e=/-+([a-z0-9])/g;function EC(t){return t.replace(z_e,(...i)=>i[1].toUpperCase())}function $_e(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ao(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function n_e(t){return new ue(3004,!1)}()}}function a3(t,i){return window.getComputedStyle(t)[i]}const C_="*";function Q_e(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function Y_e(t,i,e){if(":"==t[0]){const c=function K_e(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof c)return void i.push(c);t=c}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function g_e(t){return new ue(3015,!1)}()),i;const r=n[1],o=n[2],a=n[3];i.push(s3(r,a));"<"==o[0]&&!(r==C_&&a==C_)&&i.push(s3(a,r))}(n,e,i)):e.push(t),e}const k_=new Set(["true","1"]),D_=new Set(["false","0"]);function s3(t,i){const e=k_.has(t)||D_.has(t),n=k_.has(i)||D_.has(i);return(r,o)=>{let a=t==C_||t==r,s=i==C_||i==o;return!a&&e&&"boolean"==typeof r&&(a=r?k_.has(t):D_.has(t)),!s&&n&&"boolean"==typeof o&&(s=o?k_.has(i):D_.has(i)),a&&s}}const Z_e=new RegExp("s*:selfs*,?","g");function TC(t,i,e,n){return new J_e(t).build(i,e,n)}class J_e{constructor(i){this._driver=i}build(i,e,n){const r=new ibe(e);return this._resetContextStyleTimingState(r),ao(this,nm(i),r)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,r=e.depCount=0;const o=[],a=[];return"@"==i.name.charAt(0)&&e.errors.push(function o_e(){return new ue(3006,!1)}()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const c=s,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,o.push(this.visitState(c,e))}),c.name=l}else if(1==s.type){const c=this.visitTransition(s,e);n+=c.queryCount,r+=c.depCount,a.push(c)}else e.errors.push(function a_e(){return new ue(3007,!1)}())}),{type:7,name:i.name,states:o,transitions:a,queryCount:n,depCount:r,options:null}}visitState(i,e){const n=this.visitStyle(i.styles,e),r=i.options&&i.options.params||null;if(n.containsDynamicStyles){const o=new Set,a=r||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(c=>{o3(c).forEach(l=>{a.hasOwnProperty(l)||o.add(l)})})}),o.size&&(x_(o.values()),e.errors.push(function s_e(t,i){return new ue(3008,!1)}()))}return{type:0,name:i.name,style:n,options:r?{params:r}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const n=ao(this,nm(i.animation),e);return{type:1,matchers:Q_e(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:yl(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>ao(this,n,e)),options:yl(i.options)}}visitGroup(i,e){const n=e.currentTime;let r=0;const o=i.steps.map(a=>{e.currentTime=n;const s=ao(this,a,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:o,options:yl(i.options)}}visitAnimate(i,e){const n=function rbe(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return MC(v_(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=MC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=v_(e,i);return MC(r.duration,r.delay,r.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let r,o=i.styles?i.styles:rt({});if(5==o.type)r=this.visitKeyframes(o,e);else{let a=i.styles,s=!1;if(!a){s=!0;const l={};n.easing&&(l.easing=n.easing),a=rt(l)}e.currentTime+=n.duration+n.delay;const c=this.visitStyle(a,e);c.isEmptyStep=s,r=c}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(i,e){const n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const n=[],r=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of r)"string"==typeof s?s===as?n.push(s):e.errors.push(new ue(3002,!1)):n.push(e3(s));let o=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o))for(let c of s.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:n,easing:a,offset:i.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(i,e){const n=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),i.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,c)=>{const l=e.collectedStyles.get(e.currentQuerySelector),d=l.get(c);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push(function l_e(t,i,e,n,r){return new ue(3010,!1)}()),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),e.options&&function U_e(t,i,e){const n=i.params||{},r=o3(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(function t_e(t){return new ue(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(i,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function d_e(){return new ue(3011,!1)}()),n;let o=0;const a=[];let s=!1,c=!1,l=0;const d=i.steps.map(_=>{const w=this._makeStyleAst(_,e);let x=null!=w.offset?w.offset:function nbe(t){if("string"==typeof t)return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}(w.styles),M=0;return null!=x&&(o++,M=w.offset=x),c=c||M<0||M>1,s=s||M0&&o{const x=h>0?w==f?1:h*w:a[w],M=x*p;e.currentTime=m+g.delay+M,g.duration=M,this._validateStyleAst(_,e),_.offset=x,n.styles.push(_)}),n}visitReference(i,e){return{type:8,animation:ao(this,nm(i.animation),e),options:yl(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:yl(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:yl(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,r=i.options||{};e.queryCount++,e.currentQuery=i;const[o,a]=function ebe(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(Z_e,"")),t=t.replace(/@\*/g,b_).replace(/@\w+/g,e=>b_+"-"+e.slice(1)).replace(/:animating/g,kC),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+o:o,oo(e.collectedStyles,e.currentQuerySelector,new Map);const s=ao(this,nm(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:yl(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function m_e(){return new ue(3013,!1)}());const n="full"===i.timings?{duration:0,delay:0,easing:"full"}:v_(i.timings,e.errors,!0);return{type:12,animation:ao(this,nm(i.animation),e),timings:n,options:null}}}class ibe{constructor(i){this.errors=i,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 yl(t){return t?(t=im(t)).params&&(t.params=function tbe(t){return t?im(t):null}(t.params)):t={},t}function MC(t,i,e){return{duration:t,delay:i,easing:e}}function AC(t,i,e,n,r,o,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}class S_{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const sbe=new RegExp(":enter","g"),lbe=new RegExp(":leave","g");function IC(t,i,e,n,r,o=new Map,a=new Map,s,c,l=[]){return(new dbe).buildKeyframes(t,i,e,n,r,o,a,s,c,l)}class dbe{buildKeyframes(i,e,n,r,o,a,s,c,l,d=[]){l=l||new S_;const u=new FC(i,e,l,r,o,d,[]);u.options=c;const h=c.delay?ys(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([a],null,u.errors,c),ao(this,n,u);const f=u.timelines.filter(m=>m.containsAnimation());if(f.length&&s.size){let m;for(let g=f.length-1;g>=0;g--){const p=f[g];if(p.element===e){m=p;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([s],null,u.errors,c)}return f.length?f.map(m=>m.buildKeyframes()):[AC(e,[],[],[],0,h,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const n=e.subInstructions.get(e.element);if(n){const r=e.createSubContext(i.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){const n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(const r of i){const o=r?.delay;if(o){const a="number"==typeof o?o:ys(rm(o,r?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let o=e.currentTimeline.currentTime;const a=null!=n.duration?ys(n.duration):null,s=null!=n.delay?ys(n.delay):null;return 0!==a&&i.forEach(c=>{const l=e.appendInstructionToTimeline(c,a,s);o=Math.max(o,l.duration+l.delay)}),o}visitReference(i,e){e.updateOptions(i.options,!0),ao(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const n=e.subContextCount;let r=e;const o=i.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=E_);const a=ys(o.delay);r.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>ao(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const n=[];let r=e.currentTimeline.currentTime;const o=i.options&&i.options.delay?ys(i.options.delay):0;i.steps.forEach(a=>{const s=e.createSubContext(i.options);o&&s.delayNextStep(o),ao(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const n=i.strValue;return v_(e.params?rm(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const n=e.currentAnimateTimings=this._visitTiming(i.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const o=i.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=r&&r.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(o):n.setStyles(i.styles,o,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(c=>{s.forwardTime((c.offset||0)*o),s.setStyles(c.styles,c.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+o),e.previousNode=i}visitQuery(i,e){const n=e.currentTimeline.currentTime,r=i.options||{},o=r.delay?ys(r.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=E_);let a=n;const s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let c=null;s.forEach((l,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(i.options,l);o&&u.delayNextStep(o),l===e.element&&(c=u.currentTimeline),ao(this,i.animation,u),u.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const n=e.parentContext,r=e.currentTimeline,o=i.timings,a=Math.abs(o.duration),s=a*(e.currentQueryTotal-1);let c=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=s-c;break;case"full":c=n.currentStaggerTime}const d=e.currentTimeline;c&&d.delayNextStep(c);const u=d.currentTime;ao(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const E_={};class FC{constructor(i,e,n,r,o,a,s,c){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=E_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new T_(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const n=i;let r=this.options;null!=n.duration&&(r.duration=ys(n.duration)),null!=n.delay&&(r.delay=ys(n.delay));const o=n.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=rm(o[s],a,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const n=i.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return i}createSubContext(i=null,e,n){const r=e||this.element,o=new FC(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(i),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(i){return this.previousNode=E_,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const r={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},o=new ube(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,r,i.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,r,o,a){let s=[];if(r&&s.push(this.element),i.length>0){i=(i=i.replace(sbe,"."+this._enterClassName)).replace(lbe,"."+this._leaveClassName);let l=this._driver.query(this.element,i,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),s.push(...l)}return!o&&0==s.length&&a.push(function p_e(t){return new ue(3014,!1)}()),s}}class T_{constructor(i,e,n,r){this._driver=i,this.element=e,this.startTime=n,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(i){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new T_(this._driver,i,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(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||as),this._currentKeyframe.set(e,as);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function hbe(t,i){const e=new Map;let n;return t.forEach(r=>{if("*"===r){n=n||i.keys();for(let o of n)e.set(o,as)}else sc(r,e)}),e}(i,this._globalTimelineStyles);for(let[s,c]of a){const l=rm(c,o,n);this._pendingStyles.set(s,l),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??as),this._updateStyle(s,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{const r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,c)=>{const l=sc(s,new Map,this._backFill);l.forEach((d,u)=>{d===Xy?i.add(u):d===as&&e.add(u)}),n||l.set("offset",c/this.duration),r.push(l)});const o=i.size?x_(i.values()):[],a=e.size?x_(e.values()):[];if(n){const s=r[0],c=new Map(s);s.set("offset",0),c.set("offset",1),r=[s,c]}return AC(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class ube extends T_{constructor(i,e,n,r,o,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],a=n+e,s=e/a,c=sc(i[0]);c.set("offset",0),o.push(c);const l=sc(i[0]);l.set("offset",d3(s)),o.push(l);const d=i.length-1;for(let u=1;u<=d;u++){let h=sc(i[u]);const f=h.get("offset");h.set("offset",d3((e+f*n)/a)),o.push(h)}n=a,e=0,r="",i=o}return AC(this.element,i,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function d3(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class RC{}const fbe=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 mbe extends RC{normalizePropertyName(i,e){return EC(i)}normalizeStyleValue(i,e,n,r){let o="";const a=n.toString().trim();if(fbe.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(function r_e(t,i){return new ue(3005,!1)}())}return a+o}}function u3(t,i,e,n,r,o,a,s,c,l,d,u,h){return{type:0,element:t,triggerName:i,isRemovalTransition:r,fromState:e,fromStyles:o,toState:n,toStyles:a,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:h}}const OC={};class h3{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,r){return function pbe(t,i,e,n,r){return t.some(o=>o(i,e,n,r))}(this.ast.matchers,i,e,n,r)}buildStyles(i,e,n){let r=this._stateStyles.get("*");return void 0!==i&&(r=this._stateStyles.get(i?.toString())||r),r?r.buildStyles(e,n):new Map}build(i,e,n,r,o,a,s,c,l,d){const u=[],h=this.ast.options&&this.ast.options.params||OC,m=this.buildStyles(n,s&&s.params||OC,u),g=c&&c.params||OC,p=this.buildStyles(r,g,u),_=new Set,w=new Map,x=new Map,M="void"===r,W={params:gbe(g,h),delay:this.ast.options?.delay},L=d?[]:IC(i,e,this.ast.animation,o,a,m,p,W,l,u);let D=0;if(L.forEach(N=>{D=Math.max(N.duration+N.delay,D)}),u.length)return u3(e,this._triggerName,n,r,M,m,p,[],[],w,x,D,u);L.forEach(N=>{const j=N.element,Z=oo(w,j,new Set);N.preStyleProps.forEach(me=>Z.add(me));const U=oo(x,j,new Set);N.postStyleProps.forEach(me=>U.add(me)),j!==e&&_.add(j)});const B=x_(_.values());return u3(e,this._triggerName,n,r,M,m,p,L,B,w,x,D)}}function gbe(t,i){const e=im(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class _be{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,r=im(this.defaultParams);return Object.keys(i).forEach(o=>{const a=i[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,s)=>{a&&(a=rm(a,r,e));const c=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,c,a,e),n.set(s,a)})}),n}}class vbe{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new _be(r.style,r.options&&r.options.params||{},n))}),f3(this.states,"true","1"),f3(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new h3(i,r,this.states))}),this.fallbackTransition=function xbe(t,i,e){return new h3(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,r){return this.transitionFactories.find(a=>a.match(i,e,n,r))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}}function f3(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}const ybe=new S_;class wbe{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){const n=[],r=[],o=TC(this._driver,e,n,r);if(n.length)throw function w_e(t){return new ue(3503,!1)}();this._animations.set(i,o)}_buildPlayer(i,e,n){const r=i.element,o=jN(0,this._normalizer,0,i.keyframes,e,n);return this._driver.animate(r,o,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const r=[],o=this._animations.get(i);let a;const s=new Map;if(o?(a=IC(this._driver,e,o,CC,g_,new Map,new Map,n,ybe,r),a.forEach(d=>{const u=oo(s,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function C_e(){return new ue(3300,!1)}()),a=[]),r.length)throw function k_e(t){return new ue(3504,!1)}();s.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,as))})});const l=ac(a.map(d=>{const u=s.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(i,l),l.onDestroy(()=>this.destroy(i)),this.players.push(l),l}destroy(i){const e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const e=this._playersById.get(i);if(!e)throw function D_e(t){return new ue(3301,!1)}();return e}listen(i,e,n,r){const o=vC(e,"","","");return _C(this._getPlayer(i),n,o,r),()=>{}}command(i,e,n,r){if("register"==n)return void this.register(i,r[0]);if("create"==n)return void this.create(i,e,r[0]||{});const o=this._getPlayer(i);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(i)}}}const m3="ng-animate-queued",PC="ng-animate-disabled",Ebe=[],p3={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Tbe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ro="__ng_removed";class LC{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function Fbe(t){return t??null}(n?i.value:i),n){const o=im(i);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const e=i.params;if(e){const n=this.options.params;Object.keys(e).forEach(r=>{null==n[r]&&(n[r]=e[r])})}}}const om="void",NC=new LC(om);class Mbe{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Oo(e,this._hostClassName)}listen(i,e,n,r){if(!this._triggers.has(e))throw function S_e(t,i){return new ue(3302,!1)}();if(null==n||0==n.length)throw function E_e(t){return new ue(3303,!1)}();if(!function Rbe(t){return"start"==t||"done"==t}(n))throw function T_e(t,i){return new ue(3400,!1)}();const o=oo(this._elementListeners,i,[]),a={name:e,phase:n,callback:r};o.push(a);const s=oo(this._engine.statesByElement,i,new Map);return s.has(e)||(Oo(i,__),Oo(i,__+"-"+e),s.set(e,NC)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(a);c>=0&&o.splice(c,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return!this._triggers.has(i)&&(this._triggers.set(i,e),!0)}_getTrigger(i){const e=this._triggers.get(i);if(!e)throw function M_e(t){return new ue(3401,!1)}();return e}trigger(i,e,n,r=!0){const o=this._getTrigger(e),a=new BC(this.id,e,i);let s=this._engine.statesByElement.get(i);s||(Oo(i,__),Oo(i,__+"-"+e),this._engine.statesByElement.set(i,s=new Map));let c=s.get(e);const l=new LC(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s.set(e,l),c||(c=NC),l.value!==om&&c.value===l.value){if(!function Lbe(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let r=0;r{xl(i,p),Pa(i,_)})}return}const h=oo(this._engine.playersByElement,i,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let f=o.matchTransition(c.value,l.value,i,l.params),m=!1;if(!f){if(!r)return;f=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:f,fromState:c,toState:l,player:a,isFallbackTransition:m}),m||(Oo(i,m3),a.onStart(()=>{fu(i,m3)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);const p=this._engine.playersByElement.get(i);if(p){let _=p.indexOf(a);_>=0&&p.splice(_,1)}}),this.players.push(a),h.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const n=this._engine.driver.query(i,b_,!0);n.forEach(r=>{if(r[Ro])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(i,e,n,r){const o=this._engine.statesByElement.get(i),a=new Map;if(o){const s=[];if(o.forEach((c,l)=>{if(a.set(l,c.value),this._triggers.has(l)){const d=this.trigger(i,l,om,r);d&&s.push(d)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&ac(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const r=new Set;e.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const c=this._triggers.get(a).fallbackTransition,l=n.get(a)||NC,d=new LC(om),u=new BC(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(i,e){const n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let r=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(i):[];if(o&&o.length)r=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(i),r)n.markElementAsRemoved(this.id,i,!1,e);else{const o=i[Ro];(!o||o===p3)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Oo(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const o=n.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==n.triggerName){const c=vC(o,n.triggerName,n.fromState.value,n.toState.value);c._data=i,_C(n.player,s.phase,c,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{const o=n.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}elementContainsData(i){let e=!1;return this._elementListeners.has(i)&&(e=!0),e=!!this._queue.find(n=>n.element===i)||e,e}}class Abe{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const n=new Mbe(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const c=r.get(s);if(c){const l=n.indexOf(c);n.splice(l+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return r.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let r=this._namespaceLookup[i];r&&r.register(e,n)&&this.totalAnimations++}destroy(i,e){if(!i)return;const n=this._fetchNamespace(i);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[i];const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,n=this.statesByElement.get(i);if(n)for(let r of n.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(i,e,n,r){if(M_(e)){const o=this._fetchNamespace(i);if(o)return o.trigger(e,n,r),!0}return!1}insertNode(i,e,n,r){if(!M_(e))return;const o=e[Ro];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){const a=this._fetchNamespace(i);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Oo(i,PC)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),fu(i,PC))}removeNode(i,e,n,r){if(M_(e)){const o=i?this._fetchNamespace(i):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(i,e,!1,r),n){const a=this.namespacesByHostElement.get(e);a&&a.id!==i&&a.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(i,e,n,r,o){this.collectedLeaveElements.push(e),e[Ro]={namespaceId:i,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(i,e,n,r,o){return M_(e)?this._fetchNamespace(i).listen(e,n,r,o):()=>{}}_buildInstruction(i,e,n,r,o){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,r,i.fromState.options,i.toState.options,e,o)}destroyInnerAnimations(i){let e=this.driver.query(i,b_,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,kC,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return ac(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Ro];if(e&&e.setForRemoval){if(i[Ro]=p3,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(PC)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?ac(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(i){throw function A_e(t){return new ue(3402,!1)}()}_flushAnimations(i,e){const n=new S_,r=[],o=new Map,a=[],s=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(ne=>{d.add(ne);const Y=this.driver.query(ne,".ng-animate-queued",!0);for(let he=0;he{const he=CC+g++;m.set(Y,he),ne.forEach(se=>Oo(se,he))});const p=[],_=new Set,w=new Set;for(let ne=0;ne_.add(se)):w.add(Y))}const x=new Map,M=b3(h,Array.from(_));M.forEach((ne,Y)=>{const he=g_+g++;x.set(Y,he),ne.forEach(se=>Oo(se,he))}),i.push(()=>{f.forEach((ne,Y)=>{const he=m.get(Y);ne.forEach(se=>fu(se,he))}),M.forEach((ne,Y)=>{const he=x.get(Y);ne.forEach(se=>fu(se,he))}),p.forEach(ne=>{this.processLeaveNode(ne)})});const W=[],L=[];for(let ne=this._namespaceList.length-1;ne>=0;ne--)this._namespaceList[ne].drainQueuedTransitions(e).forEach(he=>{const se=he.player,Le=he.element;if(W.push(se),this.collectedEnterElements.length){const V=Le[Ro];if(V&&V.setForMove){if(V.previousTriggersValues&&V.previousTriggersValues.has(he.triggerName)){const oe=V.previousTriggersValues.get(he.triggerName),_e=this.statesByElement.get(he.element);if(_e&&_e.has(he.triggerName)){const Re=_e.get(he.triggerName);Re.value=oe,_e.set(he.triggerName,Re)}}return void se.destroy()}}const ce=!u||!this.driver.containsElement(u,Le),qe=x.get(Le),mt=m.get(Le),F=this._buildInstruction(he,n,mt,qe,ce);if(F.errors&&F.errors.length)return void L.push(F);if(ce)return se.onStart(()=>xl(Le,F.fromStyles)),se.onDestroy(()=>Pa(Le,F.toStyles)),void r.push(se);if(he.isFallbackTransition)return se.onStart(()=>xl(Le,F.fromStyles)),se.onDestroy(()=>Pa(Le,F.toStyles)),void r.push(se);const K=[];F.timelines.forEach(V=>{V.stretchStartingKeyframe=!0,this.disabledNodes.has(V.element)||K.push(V)}),F.timelines=K,n.append(Le,F.timelines),a.push({instruction:F,player:se,element:Le}),F.queriedElements.forEach(V=>oo(s,V,[]).push(se)),F.preStyleProps.forEach((V,oe)=>{if(V.size){let _e=c.get(oe);_e||c.set(oe,_e=new Set),V.forEach((Re,Pe)=>_e.add(Pe))}}),F.postStyleProps.forEach((V,oe)=>{let _e=l.get(oe);_e||l.set(oe,_e=new Set),V.forEach((Re,Pe)=>_e.add(Pe))})});if(L.length){const ne=[];L.forEach(Y=>{ne.push(function I_e(t,i){return new ue(3505,!1)}())}),W.forEach(Y=>Y.destroy()),this.reportError(ne)}const D=new Map,B=new Map;a.forEach(ne=>{const Y=ne.element;n.has(Y)&&(B.set(Y,Y),this._beforeAnimationBuild(ne.player.namespaceId,ne.instruction,D))}),r.forEach(ne=>{const Y=ne.element;this._getPreviousPlayers(Y,!1,ne.namespaceId,ne.triggerName,null).forEach(se=>{oo(D,Y,[]).push(se),se.destroy()})});const N=p.filter(ne=>x3(ne,c,l)),j=new Map;_3(j,this.driver,w,l,as).forEach(ne=>{x3(ne,c,l)&&N.push(ne)});const U=new Map;f.forEach((ne,Y)=>{_3(U,this.driver,new Set(ne),c,Xy)}),N.forEach(ne=>{const Y=j.get(ne),he=U.get(ne);j.set(ne,new Map([...Array.from(Y?.entries()??[]),...Array.from(he?.entries()??[])]))});const me=[],be=[],de={};a.forEach(ne=>{const{element:Y,player:he,instruction:se}=ne;if(n.has(Y)){if(d.has(Y))return he.onDestroy(()=>Pa(Y,se.toStyles)),he.disabled=!0,he.overrideTotalTime(se.totalTime),void r.push(he);let Le=de;if(B.size>1){let qe=Y;const mt=[];for(;qe=qe.parentNode;){const F=B.get(qe);if(F){Le=F;break}mt.push(qe)}mt.forEach(F=>B.set(F,Le))}const ce=this._buildAnimation(he.namespaceId,se,D,o,U,j);if(he.setRealPlayer(ce),Le===de)me.push(he);else{const qe=this.playersByElement.get(Le);qe&&qe.length&&(he.parentPlayer=ac(qe)),r.push(he)}}else xl(Y,se.fromStyles),he.onDestroy(()=>Pa(Y,se.toStyles)),be.push(he),d.has(Y)&&r.push(he)}),be.forEach(ne=>{const Y=o.get(ne.element);if(Y&&Y.length){const he=ac(Y);ne.setRealPlayer(he)}}),r.forEach(ne=>{ne.parentPlayer?ne.syncPlayerEvents(ne.parentPlayer):ne.destroy()});for(let ne=0;ne!ce.destroyed);Le.length?Obe(this,Y,Le):this.processLeaveNode(Y)}return p.length=0,me.forEach(ne=>{this.players.push(ne),ne.onDone(()=>{ne.destroy();const Y=this.players.indexOf(ne);this.players.splice(Y,1)}),ne.play()}),me}elementContainsData(i,e){let n=!1;const r=e[Ro];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(i).elementContainsData(e)||n}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,r,o){let a=[];if(e){const s=this.playersByQueriedElement.get(i);s&&(a=s)}else{const s=this.playersByElement.get(i);if(s){const c=!o||o==om;s.forEach(l=>{l.queued||!c&&l.triggerName!=r||a.push(l)})}}return(n||r)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||r&&r!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){const o=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:e.triggerName;for(const c of e.timelines){const l=c.element,d=l!==o,u=oo(n,l,[]);this._getPreviousPlayers(l,d,a,s,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),u.push(f)})}xl(o,e.fromStyles)}_buildAnimation(i,e,n,r,o,a){const s=e.triggerName,c=e.element,l=[],d=new Set,u=new Set,h=e.timelines.map(m=>{const g=m.element;d.add(g);const p=g[Ro];if(p&&p.removedBeforeQueried)return new Bh(m.duration,m.delay);const _=g!==c,w=function Pbe(t){const i=[];return v3(t,i),i}((n.get(g)||Ebe).map(D=>D.getRealPlayer())).filter(D=>!!D.element&&D.element===g),x=o.get(g),M=a.get(g),W=jN(0,this._normalizer,0,m.keyframes,x,M),L=this._buildPlayer(m,W,w);if(m.subTimeline&&r&&u.add(g),_){const D=new BC(i,s,g);D.setRealPlayer(L),l.push(D)}return L});l.forEach(m=>{oo(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function Ibe(t,i,e){let n=t.get(i);if(n){if(n.length){const r=n.indexOf(e);n.splice(r,1)}0==n.length&&t.delete(i)}return n}(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>Oo(m,JN));const f=ac(h);return f.onDestroy(()=>{d.forEach(m=>fu(m,JN)),Pa(c,e.toStyles)}),u.forEach(m=>{oo(r,m,[]).push(f)}),f}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new Bh(i.duration,i.delay)}}class BC{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new Bh,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(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>_C(i,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){oo(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function M_(t){return t&&1===t.nodeType}function g3(t,i){const e=t.style.display;return t.style.display=i??"none",e}function _3(t,i,e,n,r){const o=[];e.forEach(c=>o.push(g3(c)));const a=[];n.forEach((c,l)=>{const d=new Map;c.forEach(u=>{const h=i.computeStyle(l,u,r);d.set(u,h),(!h||0==h.length)&&(l[Ro]=Tbe,a.push(l))}),t.set(l,d)});let s=0;return e.forEach(c=>g3(c,o[s++])),a}function b3(t,i){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==i.length)return e;const n=1,r=new Set(i),o=new Map;function a(s){if(!s)return n;let c=o.get(s);if(c)return c;const l=s.parentNode;return c=e.has(l)?l:r.has(l)?n:a(l),o.set(s,c),c}return i.forEach(s=>{const c=a(s);c!==n&&e.get(c).push(s)}),e}function Oo(t,i){t.classList?.add(i)}function fu(t,i){t.classList?.remove(i)}function Obe(t,i,e){ac(e).onDone(()=>t.processLeaveNode(i))}function v3(t,i){for(let e=0;er.add(o)):i.set(t,n),e.delete(t),!0}class A_{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new Abe(i,e,n),this._timelineEngine=new wbe(i,e,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(i,e,n,r,o){const a=i+"-"+r;let s=this._triggerCache[a];if(!s){const c=[],l=[],d=TC(this._driver,o,c,l);if(c.length)throw function x_e(t,i){return new ue(3404,!1)}();s=function bbe(t,i,e){return new vbe(t,i,e)}(r,d,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,r,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,r){this._transitionEngine.insertNode(i,e,n,r)}onRemove(i,e,n,r){this._transitionEngine.removeNode(i,e,r||!1,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,r){if("@"==n.charAt(0)){const[o,a]=WN(n);this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(i,e,n,r)}listen(i,e,n,r,o){if("@"==n.charAt(0)){const[a,s]=WN(n);return this._timelineEngine.listen(a,e,s,o)}return this._transitionEngine.listen(i,e,n,r,o)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Bbe=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Pa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Pa(this._element,this._initialStyles),this._endStyles&&(Pa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(xl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xl(this._element,this._endStyles),this._endStyles=null),Pa(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function VC(t){let i=null;return t.forEach((e,n)=>{(function Vbe(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class y3{constructor(i,e,n,r){this.element=i,this.keyframes=e,this.options=n,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){const e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),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(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{"offset"!==r&&i.set(r,this._finished?n:a3(this.element,r))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Hbe{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return QN(i,e)}getParentElement(i){return yC(i)}query(i,e,n){return YN(i,e,n)}computeStyle(i,e,n){return window.getComputedStyle(i)[e]}animate(i,e,n,r,o,a=[]){const c={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(c.easing=o);const l=new Map,d=a.filter(f=>f instanceof y3);(function j_e(t,i){return 0===t||0===i})(n,r)&&d.forEach(f=>{f.currentSnapshot.forEach((m,g)=>l.set(g,m))});let u=function H_e(t){return t.length?t[0]instanceof Map?t:t.map(i=>e3(i)):[]}(e).map(f=>sc(f));u=function W_e(t,i,e){if(e.size&&i.length){let n=i[0],r=[];if(e.forEach((o,a)=>{n.has(a)||r.push(a),n.set(a,o)}),r.length)for(let o=1;oa.set(s,a3(t,s)))}}return i}(i,u,l);const h=function Nbe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=VC(i[0]),i.length>1&&(n=VC(i[i.length-1]))):i instanceof Map&&(e=VC(i)),e||n?new Bbe(t,e,n):null}(i,u);return new y3(i,u,c,h)}}let Ube=(()=>{class t extends eF{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:No.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?tF(e):e;return w3(this._renderer,null,n,"register",[r]),new zbe(n,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(G(Vu),G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();class zbe extends mX{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new $be(this._id,i,e||{},this._renderer)}}class $be{constructor(i,e,n,r){this.id=i,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return w3(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}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(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function w3(t,i,e,n,r){return t.setProperty(i,`@@${e}:${n}`,r)}const C3="@.disabled";let jbe=(()=>{class t{constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(o,a)=>{const s=a?.parentNode(o);s&&a.removeChild(s,o)}}createRenderer(e,n){const o=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let d=this._rendererCache.get(o);return d||(d=new k3("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,d)),d}const a=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const c=d=>{Array.isArray(d)?d.forEach(c):this.engine.registerTrigger(a,s,e,d.name,d)};return n.data.animation.forEach(c),new Wbe(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){e>=0&&en(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(G(Vu),G(A_),G(ze))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();class k3{constructor(i,e,n,r){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,r=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,r)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,r){this.delegate.setAttribute(i,e,n,r)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,r){this.delegate.setStyle(i,e,n,r)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==C3?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class Wbe extends k3{constructor(i,e,n,r,o){super(e,n,r,o),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==C3?this.disableAnimations(i,n=void 0===n||!!n):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const r=function Gbe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i);let o=e.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function qbe(t){const i=t.indexOf(".");return[t.substring(0,i),t.slice(i+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,n,s)})}return this.delegate.listen(i,e,n)}}const D3=[{provide:eF,useClass:Ube},{provide:RC,useFactory:function Qbe(){return new mbe}},{provide:A_,useClass:(()=>{class t extends A_{constructor(e,n,r,o){super(e.body,n,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(G(nt),G(wC),G(RC),G(md))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})()},{provide:Vu,useFactory:function Ybe(t,i,e){return new jbe(t,i,e)},deps:[Up,A_,ze]}],HC=[{provide:wC,useFactory:()=>new Hbe},{provide:Ri,useValue:"BrowserAnimations"},...D3],S3=[{provide:wC,useClass:KN},{provide:Ri,useValue:"NoopAnimations"},...D3];let Kbe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?S3:HC}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:HC,imports:[PM]}),t})(),Zbe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,xt]}),t})(),Tve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[bg,nr,xt,Us,WI,Zbe]}),t})(),Mve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t,bootstrap:[Z0e]}),t.\u0275inj=at({imports:[jG,PM,nee,moe,Kbe,Cte,q0e,JI,MQ,jQ,vF,dre,m0,NZ,KQ,jZ,jK,eee,_Y,jY,yee,P1,Lee,Gee,sie,vie,zte,Oie,Tve,Dne,P1]}),t})();N$().bootstrapModule(Mve).catch(t=>console.error(t))},327:function(kl,lm){var lc,dc;void 0!==(dc="function"==typeof(lc=function(){"use strict";function ia(ei,ci,pr){var Ti=new XMLHttpRequest;Ti.open("GET",ei),Ti.responseType="blob",Ti.onload=function(){co(Ti.response,ci,pr)},Ti.onerror=function(){console.error("could not download file")},Ti.send()}function yt(ei){var ci=new XMLHttpRequest;ci.open("HEAD",ei,!1);try{ci.send()}catch{}return 200<=ci.status&&299>=ci.status}function uc(ei){try{ei.dispatchEvent(new MouseEvent("click"))}catch{var ci=document.createEvent("MouseEvents");ci.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ei.dispatchEvent(ci)}}var jr="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,mu=jr.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),co=jr.saveAs||("object"!=typeof window||window!==jr?function(){}:"download"in HTMLAnchorElement.prototype&&!mu?function(ei,ci,pr){var Ti=jr.URL||jr.webkitURL,gr=document.createElement("a");gr.download=ci=ci||ei.name||"download",gr.rel="noopener","string"==typeof ei?(gr.href=ei,gr.origin===location.origin?uc(gr):yt(gr.href)?ia(ei,ci,pr):uc(gr,gr.target="_blank")):(gr.href=Ti.createObjectURL(ei),setTimeout(function(){Ti.revokeObjectURL(gr.href)},4e4),setTimeout(function(){uc(gr)},0))}:"msSaveOrOpenBlob"in navigator?function(ei,ci,pr){if(ci=ci||ei.name||"download","string"!=typeof ei)navigator.msSaveOrOpenBlob(function Dl(ei,ci){return typeof ci>"u"?ci={autoBom:!1}:"object"!=typeof ci&&(console.warn("Deprecated: Expected third argument to be a object"),ci={autoBom:!ci}),ci.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ei.type)?new Blob(["\ufeff",ei],{type:ei.type}):ei}(ei,pr),ci);else if(yt(ei))ia(ei,ci,pr);else{var Ti=document.createElement("a");Ti.href=ei,Ti.target="_blank",setTimeout(function(){uc(Ti)})}}:function(ei,ci,pr,Ti){if((Ti=Ti||open("","_blank"))&&(Ti.document.title=Ti.document.body.innerText="downloading..."),"string"==typeof ei)return ia(ei,ci,pr);var gr="application/octet-stream"===ei.type,R_=/constructor/i.test(jr.HTMLElement)||jr.safari,Sl=/CriOS\/[\d]+/.test(navigator.userAgent);if((Sl||gr&&R_||mu)&&typeof FileReader<"u"){var Lo=new FileReader;Lo.onloadend=function(){var Na=Lo.result;Na=Sl?Na:Na.replace(/^data:[^;]*;/,"data:attachment/file;"),Ti?Ti.location.href=Na:location=Na,Ti=null},Lo.readAsDataURL(ei)}else{var hc=jr.URL||jr.webkitURL,pu=hc.createObjectURL(ei);Ti?Ti.location=pu:location.href=pu,Ti=null,setTimeout(function(){hc.revokeObjectURL(pu)},4e4)}});jr.saveAs=co.saveAs=co,kl.exports=co})?lc.apply(lm,[]):lc)&&(kl.exports=dc)}},kl=>{kl(kl.s=450)}]); \ No newline at end of file +(self.webpackChunksct_implementation_demonstrator=self.webpackChunksct_implementation_demonstrator||[]).push([[179],{450:(kl,lm,lc)=>{"use strict";function Wt(t){return"function"==typeof t}function dc(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Dl=dc(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ia(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class yt{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:n}=this;if(Wt(n))try{n()}catch(o){i=o instanceof Dl?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{mu(o)}catch(a){i=i??[],a instanceof Dl?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Dl(i)}}add(i){var e;if(i&&i!==this)if(this.closed)mu(i);else{if(i instanceof yt){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(i)}}_hasParent(i){const{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){const{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&ia(e,i)}remove(i){const{_finalizers:e}=this;e&&ia(e,i),i instanceof yt&&i._removeParent(this)}}yt.EMPTY=(()=>{const t=new yt;return t.closed=!0,t})();const uc=yt.EMPTY;function jr(t){return t instanceof yt||t&&"closed"in t&&Wt(t.remove)&&Wt(t.add)&&Wt(t.unsubscribe)}function mu(t){Wt(t)?t():t.unsubscribe()}const co={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ei={setTimeout(t,i,...e){const{delegate:n}=ei;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=ei;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ci(t){ei.setTimeout(()=>{const{onUnhandledError:i}=co;if(!i)throw t;i(t)})}function pr(){}const Ti=Sl("C",void 0,void 0);function Sl(t,i,e){return{kind:t,value:i,error:e}}let Lo=null;function hc(t){if(co.useDeprecatedSynchronousErrorHandling){const i=!Lo;if(i&&(Lo={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=Lo;if(Lo=null,e)throw n}}else t()}class Na extends yt{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,jr(i)&&i.add(this)):this.destination=B3}static create(i,e,n){return new gu(i,e,n)}next(i){this.isStopped?P_(function R_(t){return Sl("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?P_(function gr(t){return Sl("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?P_(Ti,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const P3=Function.prototype.bind;function O_(t,i){return P3.call(t,i)}class L3{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){dm(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){dm(n)}else dm(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){dm(e)}}}class gu extends Na{constructor(i,e,n){let r;if(super(),Wt(i)||!i)r={next:i??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&co.useDeprecatedNextContext?(o=Object.create(i),o.unsubscribe=()=>this.unsubscribe(),r={next:i.next&&O_(i.next,o),error:i.error&&O_(i.error,o),complete:i.complete&&O_(i.complete,o)}):r=i}this.destination=new L3(r)}}function dm(t){co.useDeprecatedSynchronousErrorHandling?function pu(t){co.useDeprecatedSynchronousErrorHandling&&Lo&&(Lo.errorThrown=!0,Lo.error=t)}(t):ci(t)}function P_(t,i){const{onStoppedNotification:e}=co;e&&ei.setTimeout(()=>e(t,i))}const B3={closed:!0,next:pr,error:function N3(t){throw t},complete:pr},L_="function"==typeof Symbol&&Symbol.observable||"@@observable";function Cs(t){return t}function jC(t){return 0===t.length?Cs:1===t.length?t[0]:function(e){return t.reduce((n,r)=>r(n),e)}}let ni=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,r){const o=function U3(t){return t&&t instanceof Na||function H3(t){return t&&Wt(t.next)&&Wt(t.error)&&Wt(t.complete)}(t)&&jr(t)}(e)?e:new gu(e,n,r);return hc(()=>{const{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=WC(n))((r,o)=>{const a=new gu({next:s=>{try{e(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[L_](){return this}pipe(...e){return jC(e)(this)}toPromise(e){return new(e=WC(e))((n,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>n(o))})}}return t.create=i=>new t(i),t})();function WC(t){var i;return null!==(i=t??co.Promise)&&void 0!==i?i:Promise}const z3=dc(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ke=(()=>{class t extends ni{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new GC(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new z3}next(e){hc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){hc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){hc(()=>{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:n,isStopped:r,observers:o}=this;return n||r?uc:(this.currentObservers=null,o.push(e),new yt(()=>{this.currentObservers=null,ia(o,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete()}asObservable(){const e=new ni;return e.source=this,e}}return t.create=(i,e)=>new GC(i,e),t})();class GC extends ke{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,i)}error(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,i)}complete(){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===e||e.call(i)}_subscribe(i){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(i))&&void 0!==n?n:uc}}function qC(t){return Wt(t?.lift)}function Gi(t){return i=>{if(qC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Bi(t,i,e,n,r){return new $3(t,i,e,n,r)}class $3 extends Na{constructor(i,e,n,r,o,a){super(i),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){i.error(c)}}:super._next,this._error=r?function(s){try{r(s)}catch(c){i.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function Ke(t,i){return Gi((e,n)=>{let r=0;e.subscribe(Bi(n,o=>{n.next(t.call(i,o,r++))}))})}function fc(t){return this instanceof fc?(this.v=t,this):new fc(t)}function q3(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=function YC(t){var i="function"==typeof Symbol&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(a){return new Promise(function(s,c){!function r(o,a,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},a)}(s,c,(a=t[o](a)).done,a.value)})}}}const B_=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function KC(t){return Wt(t?.then)}function ZC(t){return Wt(t[L_])}function JC(t){return Symbol.asyncIterator&&Wt(t?.[Symbol.asyncIterator])}function ek(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 tk=function Q3(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function ik(t){return Wt(t?.[tk])}function nk(t){return function G3(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=e.apply(t,i||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(h){n[h]&&(r[h]=function(f){return new Promise(function(m,g){o.push([h,f,m,g])>1||s(h,f)})})}function s(h,f){try{!function c(h){h.value instanceof fc?Promise.resolve(h.value.v).then(l,d):u(o[0][2],h)}(n[h](f))}catch(m){u(o[0][3],m)}}function l(h){s("next",h)}function d(h){s("throw",h)}function u(h,f){h(f),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:r}=yield fc(e.read());if(r)return yield fc(void 0);yield yield fc(n)}}finally{e.releaseLock()}})}function rk(t){return Wt(t?.getReader)}function Yn(t){if(t instanceof ni)return t;if(null!=t){if(ZC(t))return function Y3(t){return new ni(i=>{const e=t[L_]();if(Wt(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(B_(t))return function K3(t){return new ni(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,ci)})}(t);if(JC(t))return ok(t);if(ik(t))return function J3(t){return new ni(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(rk(t))return function e8(t){return ok(nk(t))}(t)}throw ek(t)}function ok(t){return new ni(i=>{(function t8(t,i){var e,n,r,o;return function j3(t,i,e,n){return new(e||(e=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):function r(o){return o instanceof e?o:new e(function(a){a(o)})}(d.value).then(s,c)}l((n=n.apply(t,i||[])).next())})}(this,void 0,void 0,function*(){try{for(e=q3(t);!(n=yield e.next()).done;)if(i.next(n.value),i.closed)return}catch(a){r={error:a}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}i.complete()})})(t,i).catch(e=>i.error(e))})}function Ba(t,i,e,n=0,r=!1){const o=i.schedule(function(){e(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!r)return o}function En(t,i,e=1/0){return Wt(i)?En((n,r)=>Ke((o,a)=>i(n,o,r,a))(Yn(t(n,r))),e):("number"==typeof i&&(e=i),Gi((n,r)=>function i8(t,i,e,n,r,o,a,s){const c=[];let l=0,d=0,u=!1;const h=()=>{u&&!c.length&&!l&&i.complete()},f=g=>l{o&&i.next(g),l++;let p=!1;Yn(e(g,d++)).subscribe(Bi(i,_=>{r?.(_),o?f(_):i.next(_)},()=>{p=!0},void 0,()=>{if(p)try{for(l--;c.length&&lm(_)):m(_)}h()}catch(_){i.error(_)}}))};return t.subscribe(Bi(i,f,()=>{u=!0,h()})),()=>{s?.()}}(n,r,t,e)))}function El(t=1/0){return En(Cs,t)}const Wr=new ni(t=>t.complete());function ak(t){return t&&Wt(t.schedule)}function V_(t){return t[t.length-1]}function sk(t){return Wt(V_(t))?t.pop():void 0}function _u(t){return ak(V_(t))?t.pop():void 0}function ck(t,i=0){return Gi((e,n)=>{e.subscribe(Bi(n,r=>Ba(n,t,()=>n.next(r),i),()=>Ba(n,t,()=>n.complete(),i),r=>Ba(n,t,()=>n.error(r),i)))})}function lk(t,i=0){return Gi((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function dk(t,i){if(!t)throw new Error("Iterable cannot be null");return new ni(e=>{Ba(e,i,()=>{const n=t[Symbol.asyncIterator]();Ba(e,i,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Ji(t,i){return i?function d8(t,i){if(null!=t){if(ZC(t))return function o8(t,i){return Yn(t).pipe(lk(i),ck(i))}(t,i);if(B_(t))return function s8(t,i){return new ni(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(KC(t))return function a8(t,i){return Yn(t).pipe(lk(i),ck(i))}(t,i);if(JC(t))return dk(t,i);if(ik(t))return function c8(t,i){return new ni(e=>{let n;return Ba(e,i,()=>{n=t[tk](),Ba(e,i,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(a){return void e.error(a)}o?e.complete():e.next(r)},0,!0)}),()=>Wt(n?.return)&&n.return()})}(t,i);if(rk(t))return function l8(t,i){return dk(nk(t),i)}(t,i)}throw ek(t)}(t,i):Yn(t)}function Vi(...t){const i=_u(t),e=function r8(t,i){return"number"==typeof V_(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?Yn(n[0]):El(e)(Ji(n,i)):Wr}function uk(t={}){const{connector:i=(()=>new ke),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,c,l=0,d=!1,u=!1;const h=()=>{s?.unsubscribe(),s=void 0},f=()=>{h(),a=c=void 0,d=u=!1},m=()=>{const g=a;f(),g?.unsubscribe()};return Gi((g,p)=>{l++,!u&&!d&&h();const _=c=c??i();p.add(()=>{l--,0===l&&!u&&!d&&(s=H_(m,r))}),_.subscribe(p),!a&&l>0&&(a=new gu({next:w=>_.next(w),error:w=>{u=!0,h(),s=H_(f,e,w),_.error(w)},complete:()=>{d=!0,h(),s=H_(f,n),_.complete()}}),Yn(g).subscribe(a))})(o)}}function H_(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new gu({next:()=>{n.unsubscribe(),t()}});return Yn(i(...e)).subscribe(n)}function Mi(t){for(let i in t)if(t[i]===Mi)return i;throw Error("Could not find renamed property on target object.")}function U_(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function Pi(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Pi).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function z_(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const u8=Mi({__forward_ref__:Mi});function Xt(t){return t.__forward_ref__=Xt,t.toString=function(){return Pi(this())},t}function pt(t){return $_(t)?t():t}function $_(t){return"function"==typeof t&&t.hasOwnProperty(u8)&&t.__forward_ref__===Xt}function j_(t){return t&&!!t.\u0275providers}const um="https://g.co/ng/security#xss";class ue extends Error{constructor(i,e){super(hm(i,e)),this.code=i}}function hm(t,i){return`NG0${Math.abs(t)}${i?": "+i.trim():""}`}function wt(t){return"string"==typeof t?t:null==t?"":String(t)}function fm(t,i){throw new ue(-201,!1)}function lo(t,i){null==t&&function pi(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function ve(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function at(t){return{providers:t.providers||[],imports:t.imports||[]}}function mm(t){return hk(t,pm)||hk(t,mk)}function hk(t,i){return t.hasOwnProperty(i)?t[i]:null}function fk(t){return t&&(t.hasOwnProperty(W_)||t.hasOwnProperty(v8))?t[W_]:null}const pm=Mi({\u0275prov:Mi}),W_=Mi({\u0275inj:Mi}),mk=Mi({ngInjectableDef:Mi}),v8=Mi({ngInjectorDef:Mi});var gt=(()=>((gt=gt||{})[gt.Default=0]="Default",gt[gt.Host=1]="Host",gt[gt.Self=2]="Self",gt[gt.SkipSelf=4]="SkipSelf",gt[gt.Optional=8]="Optional",gt))();let G_;function uo(t){const i=G_;return G_=t,i}function pk(t,i,e){const n=mm(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e>.Optional?null:void 0!==i?i:void fm(Pi(t))}const Hi=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),bu={},q_="__NG_DI_FLAG__",gm="ngTempTokenPath",y8="ngTokenPath",w8=/\n/gm,C8="\u0275",gk="__source";let vu;function Tl(t){const i=vu;return vu=t,i}function k8(t,i=gt.Default){if(void 0===vu)throw new ue(-203,!1);return null===vu?pk(t,void 0,i):vu.get(t,i>.Optional?null:void 0,i)}function G(t,i=gt.Default){return(function x8(){return G_}()||k8)(pt(t),i)}function ht(t,i=gt.Default){return G(t,_m(i))}function _m(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function X_(t){const i=[];for(let e=0;e((na=na||{})[na.OnPush=0]="OnPush",na[na.Default=1]="Default",na))(),No=(()=>{return(t=No||(No={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",No;var t})();const Ha={},li=[],bm=Mi({\u0275cmp:Mi}),Q_=Mi({\u0275dir:Mi}),Y_=Mi({\u0275pipe:Mi}),bk=Mi({\u0275mod:Mi}),Ua=Mi({\u0275fac:Mi}),yu=Mi({__NG_ELEMENT_ID__:Mi});let T8=0;function Ve(t){return Va(()=>{const i=xk(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===na.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||No.Emulated,id:"c"+T8++,styles:t.styles||li,_:null,schemas:t.schemas||null,tView:null};yk(e);const n=t.dependencies;return e.directiveDefs=vm(n,!1),e.pipeDefs=vm(n,!0),e})}function A8(t){return gi(t)||Kn(t)}function I8(t){return null!==t}function ct(t){return Va(()=>({type:t.type,bootstrap:t.bootstrap||li,declarations:t.declarations||li,imports:t.imports||li,exports:t.exports||li,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function vk(t,i){if(null==t)return Ha;const e={};for(const n in t)if(t.hasOwnProperty(n)){let r=t[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=n,i&&(i[r]=o)}return e}function Q(t){return Va(()=>{const i=xk(t);return yk(i),i})}function Mr(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 gi(t){return t[bm]||null}function Kn(t){return t[Q_]||null}function Ar(t){return t[Y_]||null}function qr(t,i){const e=t[bk]||null;if(!e&&!0===i)throw new Error(`Type ${Pi(t)} does not have '\u0275mod' property.`);return e}function xk(t){const i={};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:i,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||li,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:vk(t.inputs,i),outputs:vk(t.outputs)}}function yk(t){t.features?.forEach(i=>i(t))}function vm(t,i){if(!t)return null;const e=i?Ar:A8;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(I8)}const za=0,Ge=1,At=2,Yi=3,Bo=4,mc=5,Zn=6,Al=7,en=8,xm=9,ym=10,Lt=11,K_=12,wu=13,wk=14,Il=15,Jn=16,Cu=17,Fl=18,ra=19,ku=20,Ck=21,Ui=22,Z_=1,kk=2,wm=7,Cm=8,Rl=9,_r=10;function Xr(t){return Array.isArray(t)&&"object"==typeof t[Z_]}function Vo(t){return Array.isArray(t)&&!0===t[Z_]}function J_(t){return 0!=(4&t.flags)}function Du(t){return t.componentOffset>-1}function km(t){return 1==(1&t.flags)}function Ho(t){return!!t.template}function R8(t){return 0!=(256&t[At])}function pc(t,i){return t.hasOwnProperty(Ua)?t[Ua]:null}class L8{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ei(){return Ek}function Ek(t){return t.type.prototype.ngOnChanges&&(t.setInput=B8),N8}function N8(){const t=Mk(this),i=t?.current;if(i){const e=t.previous;if(e===Ha)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function B8(t,i,e,n){const r=this.declaredInputs[e],o=Mk(t)||function V8(t,i){return t[Tk]=i}(t,{previous:Ha,current:null}),a=o.current||(o.current={}),s=o.previous,c=s[r];a[r]=new L8(c&&c.currentValue,i,s===Ha),t[n]=i}Ei.ngInherit=!0;const Tk="__ngSimpleChanges__";function Mk(t){return t[Tk]||null}const ho=function(t,i,e){},Ak="svg";function Wn(t){for(;Array.isArray(t);)t=t[za];return t}function Dm(t,i){return Wn(i[t])}function Qr(t,i){return Wn(i[t.index])}function Fk(t,i){return t.data[i]}function Ol(t,i){return t[i]}function Ir(t,i){const e=i[t];return Xr(e)?e:e[za]}function Sm(t){return 64==(64&t[At])}function Ds(t,i){return null==i?null:t[i]}function Rk(t){t[Fl]=0}function tb(t,i){t[mc]+=i;let e=t,n=t[Yi];for(;null!==n&&(1===i&&1===e[mc]||-1===i&&0===e[mc]);)n[mc]+=i,e=n,n=n[Yi]}const Ct={lFrame:$k(null),bindingsEnabled:!0};function Pk(){return Ct.bindingsEnabled}function ge(){return Ct.lFrame.lView}function ti(){return Ct.lFrame.tView}function Me(t){return Ct.lFrame.contextLView=t,t[en]}function Ae(t){return Ct.lFrame.contextLView=null,t}function Gn(){let t=Lk();for(;null!==t&&64===t.type;)t=t.parent;return t}function Lk(){return Ct.lFrame.currentTNode}function oa(t,i){const e=Ct.lFrame;e.currentTNode=t,e.isParent=i}function ib(){return Ct.lFrame.isParent}function nb(){Ct.lFrame.isParent=!1}function br(){const t=Ct.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Pl(){return Ct.lFrame.bindingIndex++}function ja(t){const i=Ct.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function Z8(t,i){const e=Ct.lFrame;e.bindingIndex=e.bindingRootIndex=t,rb(i)}function rb(t){Ct.lFrame.currentDirectiveIndex=t}function ob(t){const i=Ct.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}function Hk(){return Ct.lFrame.currentQueryIndex}function ab(t){Ct.lFrame.currentQueryIndex=t}function eB(t){const i=t[Ge];return 2===i.type?i.declTNode:1===i.type?t[Zn]:null}function Uk(t,i,e){if(e>.SkipSelf){let r=i,o=t;for(;!(r=r.parent,null!==r||e>.Host||(r=eB(o),null===r||(o=o[Il],10&r.type))););if(null===r)return!1;i=r,t=o}const n=Ct.lFrame=zk();return n.currentTNode=i,n.lView=t,!0}function sb(t){const i=zk(),e=t[Ge];Ct.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function zk(){const t=Ct.lFrame,i=null===t?null:t.child;return null===i?$k(t):i}function $k(t){const i={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=i),i}function jk(){const t=Ct.lFrame;return Ct.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Wk=jk;function cb(){const t=jk();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 vr(){return Ct.lFrame.selectedIndex}function gc(t){Ct.lFrame.selectedIndex=t}function qi(){const t=Ct.lFrame;return Fk(t.tView,t.selectedIndex)}function Wa(){Ct.lFrame.currentNamespace=Ak}function Ll(){!function rB(){Ct.lFrame.currentNamespace=null}()}function Em(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[c]<0&&(t[Fl]+=65536),(s>11>16&&(3&t[At])===i){t[At]+=2048,ho(4,s,o);try{o.call(s)}finally{ho(5,s,o)}}}else{ho(4,s,o);try{o.call(s)}finally{ho(5,s,o)}}}const Nl=-1;class Eu{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function ub(t,i,e){let n=0;for(;ni){a=o-1;break}}}for(;o>16}(t),n=i;for(;e>0;)n=n[Il],e--;return n}let hb=!0;function Fm(t){const i=hb;return hb=t,i}const Kk=255,Zk=5;let hB=0;const aa={};function Rm(t,i){const e=Jk(t,i);if(-1!==e)return e;const n=i[Ge];n.firstCreatePass&&(t.injectorIndex=i.length,fb(n.data,t),fb(i,null),fb(n.blueprint,null));const r=mb(t,i),o=t.injectorIndex;if(Yk(r)){const a=Am(r),s=Im(r,i),c=s[Ge].data;for(let l=0;l<8;l++)i[o+l]=s[a+l]|c[a+l]}return i[o+8]=r,o}function fb(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Jk(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function mb(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,r=i;for(;null!==r;){if(n=aD(r),null===n)return Nl;if(e++,r=r[Il],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return Nl}function pb(t,i,e){!function fB(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(yu)&&(n=e[yu]),null==n&&(n=e[yu]=hB++);const r=n&Kk;i.data[t+(r>>Zk)]|=1<=0?i&Kk:_B:i}(e);if("function"==typeof o){if(!Uk(i,t,n))return n>.Host?eD(r,0,n):tD(i,e,n,r);try{const a=o(n);if(null!=a||n>.Optional)return a;fm()}finally{Wk()}}else if("number"==typeof o){let a=null,s=Jk(t,i),c=Nl,l=n>.Host?i[Jn][Zn]:null;for((-1===s||n>.SkipSelf)&&(c=-1===s?mb(t,i):i[s+8],c!==Nl&&oD(n,!1)?(a=i[Ge],s=Am(c),i=Im(c,i)):s=-1);-1!==s;){const d=i[Ge];if(rD(o,s,d.data)){const u=pB(s,i,e,a,n,l);if(u!==aa)return u}c=i[s+8],c!==Nl&&oD(n,i[Ge].data[s+8]===l)&&rD(o,s,i)?(a=d,s=Am(c),i=Im(c,i)):s=-1}}return r}function pB(t,i,e,n,r,o){const a=i[Ge],s=a.data[t+8],d=Om(s,a,e,null==n?Du(s)&&hb:n!=a&&0!=(3&s.type),r>.Host&&o===s);return null!==d?_c(i,a,d,s):aa}function Om(t,i,e,n,r){const o=t.providerIndexes,a=i.data,s=1048575&o,c=t.directiveStart,d=o>>20,h=r?s+d:t.directiveEnd;for(let f=n?s:s+d;f=c&&m.type===e)return f}if(r){const f=a[c];if(f&&Ho(f)&&f.type===e)return c}return null}function _c(t,i,e,n){let r=t[e];const o=i.data;if(function cB(t){return t instanceof Eu}(r)){const a=r;a.resolving&&function h8(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new ue(-200,`Circular dependency in DI detected for ${t}${e}`)}(function mi(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():wt(t)}(o[e]));const s=Fm(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?uo(a.injectImpl):null;Uk(t,n,gt.Default);try{r=t[e]=a.factory(void 0,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&function aB(t,i,e){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=i.type.prototype;if(n){const a=Ek(i);(e.preOrderHooks??(e.preOrderHooks=[])).push(t,a),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,a)}r&&(e.preOrderHooks??(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks??(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],i)}finally{null!==c&&uo(c),Fm(s),a.resolving=!1,Wk()}}return r}function rD(t,i,e){return!!(e[i+(t>>Zk)]&1<{const i=t.prototype.constructor,e=i[Ua]||gb(i),n=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){const o=r[Ua]||gb(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function gb(t){return $_(t)?()=>{const i=gb(pt(t));return i&&i()}:pc(t)}function aD(t){const i=t[Ge],e=i.type;return 2===e?i.declTNode:1===e?t[Zn]:null}function fo(t){return function mB(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const e=t.attrs;if(e){const n=e.length;let r=0;for(;r{const n=function _b(t){return function(...e){if(t){const n=t(...e);for(const r in n)this[r]=n[r]}}}(i);function r(...o){if(this instanceof r)return n.apply(this,o),this;const a=new r(...o);return s.annotation=a,s;function s(c,l,d){const u=c.hasOwnProperty(Hl)?c[Hl]:Object.defineProperty(c,Hl,{value:[]})[Hl];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(a),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class ae{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ve({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function bc(t,i){t.forEach(e=>Array.isArray(e)?bc(e,i):i(e))}function cD(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Pm(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function Iu(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function wB(t,i,e,n){let r=t.length;if(r==i)t.push(e,n);else if(1===r)t.push(n,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>i;)t[r]=t[r-2],r--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function vb(t,i){const e=$l(t,i);if(e>=0)return t[1|e]}function $l(t,i){return function lD(t,i,e){let n=0,r=t.length>>e;for(;r!==n;){const o=n+(r-n>>1),a=t[o<i?r=o:n=o+1}return~(r<({token:t})),-1),sa=xu(zl("Optional"),8),vc=xu(zl("SkipSelf"),4);var Fr=(()=>((Fr=Fr||{})[Fr.Important=1]="Important",Fr[Fr.DashCase=2]="DashCase",Fr))();const kb=new Map;let jB=0;const Sb="__ngContext__";function er(t,i){Xr(i)?(t[Sb]=i[ku],function GB(t){kb.set(t[ku],t)}(i)):t[Sb]=i}let Eb;function Tb(t,i){return Eb(t,i)}function Pu(t){const i=t[Yi];return Vo(i)?i[Yi]:i}function Mb(t){return MD(t[wu])}function Ab(t){return MD(t[Bo])}function MD(t){for(;null!==t&&!Vo(t);)t=t[Bo];return t}function Wl(t,i,e,n,r){if(null!=n){let o,a=!1;Vo(n)?o=n:Xr(n)&&(a=!0,n=n[za]);const s=Wn(n);0===t&&null!==e?null==r?PD(i,e,s):xc(i,e,s,r||null,!0):1===t&&null!==e?xc(i,e,s,r||null,!0):2===t?function Nb(t,i,e){const n=Hm(t,i);n&&function f5(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,s,a):3===t&&i.destroyNode(s),null!=o&&function g5(t,i,e,n,r){const o=e[wm];o!==Wn(e)&&Wl(i,t,n,o,r);for(let s=_r;s0&&(t[e-1][Bo]=n[Bo]);const o=Pm(t,_r+i);!function o5(t,i){Lu(t,i,i[Lt],2,null,null),i[za]=null,i[Zn]=null}(n[Ge],n);const a=o[ra];null!==a&&a.detachView(o[Ge]),n[Yi]=null,n[Bo]=null,n[At]&=-65}return n}function FD(t,i){if(!(128&i[At])){const e=i[Lt];e.destroyNode&&Lu(t,i,e,3,null,null),function c5(t){let i=t[wu];if(!i)return Ob(t[Ge],t);for(;i;){let e=null;if(Xr(i))e=i[wu];else{const n=i[_r];n&&(e=n)}if(!e){for(;i&&!i[Bo]&&i!==t;)Xr(i)&&Ob(i[Ge],i),i=i[Yi];null===i&&(i=t),Xr(i)&&Ob(i[Ge],i),e=i&&i[Bo]}i=e}}(i)}}function Ob(t,i){if(!(128&i[At])){i[At]&=-65,i[At]|=128,function h5(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[r=a]():n[r=-a].unsubscribe(),o+=2}else{const a=n[r=e[o+1]];e[o].call(a)}if(null!==n){for(let o=r+1;o-1){const{encapsulation:o}=t.data[n.directiveStart+r];if(o===No.None||o===No.Emulated)return null}return Qr(n,e)}}(t,i.parent,e)}function xc(t,i,e,n,r){t.insertBefore(i,e,n,r)}function PD(t,i,e){t.appendChild(i,e)}function LD(t,i,e,n,r){null!==n?xc(t,i,e,n,r):PD(t,i,e)}function Hm(t,i){return t.parentNode(i)}function ND(t,i,e){return VD(t,i,e)}let Pb,$m,Hb,jm,VD=function BD(t,i,e){return 40&t.type?Qr(t,e):null};function Um(t,i,e,n){const r=RD(t,n,i),o=i[Lt],s=ND(n.parent||i[Zn],n,i);if(null!=r)if(Array.isArray(e))for(let c=0;ct,createScript:t=>t,createScriptURL:t=>t})}catch{}return $m}()?.createHTML(t)||t}function GD(t){return function Ub(){if(void 0===jm&&(jm=null,Hi.trustedTypes))try{jm=Hi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return jm}()?.createHTML(t)||t}class yc{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${um})`}}class C5 extends yc{getTypeName(){return"HTML"}}class k5 extends yc{getTypeName(){return"Style"}}class D5 extends yc{getTypeName(){return"Script"}}class S5 extends yc{getTypeName(){return"URL"}}class E5 extends yc{getTypeName(){return"ResourceURL"}}function Kr(t){return t instanceof yc?t.changingThisBreaksApplicationSecurity:t}function ca(t,i){const e=function T5(t){return t instanceof yc&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${um})`)}return e===i}class O5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString(Gl(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class P5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=Gl(i),e}}const N5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wm(t){return(t=String(t)).match(N5)?t:"unsafe:"+t}function Ga(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Nu(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const YD=Ga("area,br,col,hr,img,wbr"),KD=Ga("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ZD=Ga("rp,rt"),zb=Nu(YD,Nu(KD,Ga("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")),Nu(ZD,Ga("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")),Nu(ZD,KD)),$b=Ga("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),JD=Nu($b,Ga("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"),Ga("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")),B5=Ga("script,style,template");class V5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&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(i){const e=i.nodeName.toLowerCase();if(!zb.hasOwnProperty(e))return this.sanitizedSomething=!0,!B5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let r=0;r"),!0}endElement(i){const e=i.nodeName.toLowerCase();zb.hasOwnProperty(e)&&!YD.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(eS(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const H5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,U5=/([^\#-~ |!])/g;function eS(t){return t.replace(/&/g,"&").replace(H5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(U5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let Gm;function tS(t,i){let e=null;try{Gm=Gm||function QD(t){const i=new P5(t);return function L5(){try{return!!(new window.DOMParser).parseFromString(Gl(""),"text/html")}catch{return!1}}()?new O5(i):i}(t);let n=i?String(i):"";e=Gm.getInertBodyElement(n);let r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=e.innerHTML,e=Gm.getInertBodyElement(n)}while(n!==o);return Gl((new V5).sanitizeChildren(jb(e)||e))}finally{if(e){const n=jb(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function jb(t){return"content"in t&&function z5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var di=(()=>((di=di||{})[di.NONE=0]="NONE",di[di.HTML=1]="HTML",di[di.STYLE=2]="STYLE",di[di.SCRIPT=3]="SCRIPT",di[di.URL=4]="URL",di[di.RESOURCE_URL=5]="RESOURCE_URL",di))();function qm(t){const i=Bu();return i?GD(i.sanitize(di.HTML,t)||""):ca(t,"HTML")?GD(Kr(t)):tS(function WD(){return void 0!==Hb?Hb:typeof document<"u"?document:void 0}(),wt(t))}function Wb(t){const i=Bu();return i?i.sanitize(di.URL,t)||"":ca(t,"URL")?Kr(t):Wm(wt(t))}function Bu(){const t=ge();return t&&t[K_]}const Xm=new ae("ENVIRONMENT_INITIALIZER"),rS=new ae("INJECTOR",-1),oS=new ae("INJECTOR_DEF_TYPES");class aS{get(i,e=bu){if(e===bu){const n=new Error(`NullInjectorError: No provider for ${Pi(i)}!`);throw n.name="NullInjectorError",n}return e}}function Q5(...t){return{\u0275providers:sS(0,t),\u0275fromNgModule:!0}}function sS(t,...i){const e=[],n=new Set;let r;return bc(i,o=>{const a=o;Gb(a,e,[],n)&&(r||(r=[]),r.push(a))}),void 0!==r&&cS(r,e),e}function cS(t,i){for(let e=0;e{i.push(o)})}}function Gb(t,i,e,n){if(!(t=pt(t)))return!1;let r=null,o=fk(t);const a=!o&&gi(t);if(o||a){if(a&&!a.standalone)return!1;r=t}else{const c=t.ngModule;if(o=fk(c),!o)return!1;r=c}const s=n.has(r);if(a){if(s)return!1;if(n.add(r),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const l of c)Gb(l,i,e,n)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let l;n.add(r);try{bc(o.imports,d=>{Gb(d,i,e,n)&&(l||(l=[]),l.push(d))})}finally{}void 0!==l&&cS(l,i)}if(!s){const l=pc(r)||(()=>new r);i.push({provide:r,useFactory:l,deps:li},{provide:oS,useValue:r,multi:!0},{provide:Xm,useValue:()=>G(r),multi:!0})}const c=o.providers;null==c||s||qb(c,d=>{i.push(d)})}}return r!==t&&void 0!==t.providers}function qb(t,i){for(let e of t)j_(e)&&(e=e.\u0275providers),Array.isArray(e)?qb(e,i):i(e)}const Y5=Mi({provide:String,useValue:Mi});function Xb(t){return null!==t&&"object"==typeof t&&Y5 in t}function wc(t){return"function"==typeof t}const Qb=new ae("Set Injector scope."),Qm={},Z5={};let Yb;function Ym(){return void 0===Yb&&(Yb=new aS),Yb}class la{}class uS extends la{get destroyed(){return this._destroyed}constructor(i,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Zb(i,a=>this.processProvider(a)),this.records.set(rS,ql(void 0,this)),r.has("environment")&&this.records.set(la,ql(void 0,this));const o=this.records.get(Qb);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(oS.multi,li,gt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();for(const i of this._onDestroyHooks)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(i){this._onDestroyHooks.push(i)}runInContext(i){this.assertNotDestroyed();const e=Tl(this),n=uo(void 0);try{return i()}finally{Tl(e),uo(n)}}get(i,e=bu,n=gt.Default){this.assertNotDestroyed(),n=_m(n);const r=Tl(this),o=uo(void 0);try{if(!(n>.SkipSelf)){let s=this.records.get(i);if(void 0===s){const c=function n6(t){return"function"==typeof t||"object"==typeof t&&t instanceof ae}(i)&&mm(i);s=c&&this.injectableDefInScope(c)?ql(Kb(i),Qm):null,this.records.set(i,s)}if(null!=s)return this.hydrate(i,s)}return(n>.Self?Ym():this.parent).get(i,e=n>.Optional&&e===bu?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[gm]=a[gm]||[]).unshift(Pi(i)),r)throw a;return function S8(t,i,e,n){const r=t[gm];throw i[gk]&&r.unshift(i[gk]),t.message=function E8(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==C8?t.slice(2):t;let r=Pi(i);if(Array.isArray(i))r=i.map(Pi).join(" -> ");else if("object"==typeof i){let o=[];for(let a in i)if(i.hasOwnProperty(a)){let s=i[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Pi(s)))}r=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(w8,"\n ")}`}("\n"+t.message,r,e,n),t[y8]=r,t[gm]=null,t}(a,i,"R3InjectorError",this.source)}throw a}finally{uo(o),Tl(r)}}resolveInjectorInitializers(){const i=Tl(this),e=uo(void 0);try{const n=this.get(Xm.multi,li,gt.Self);for(const r of n)r()}finally{Tl(i),uo(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(Pi(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ue(205,!1)}processProvider(i){let e=wc(i=pt(i))?i:pt(i&&i.provide);const n=function e6(t){return Xb(t)?ql(void 0,t.useValue):ql(hS(t),Qm)}(i);if(wc(i)||!0!==i.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=ql(void 0,Qm,!0),r.factory=()=>X_(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===Qm&&(e.value=Z5,e.value=e.factory()),"object"==typeof e.value&&e.value&&function i6(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=pt(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Kb(t){const i=mm(t),e=null!==i?i.factory:pc(t);if(null!==e)return e;if(t instanceof ae)throw new ue(204,!1);if(t instanceof Function)return function J5(t){const i=t.length;if(i>0)throw Iu(i,"?"),new ue(204,!1);const e=function b8(t){return t&&(t[pm]||t[mk])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new ue(204,!1)}function hS(t,i,e){let n;if(wc(t)){const r=pt(t);return pc(r)||Kb(r)}if(Xb(t))n=()=>pt(t.useValue);else if(function dS(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...X_(t.deps||[]));else if(function lS(t){return!(!t||!t.useExisting)}(t))n=()=>G(pt(t.useExisting));else{const r=pt(t&&(t.useClass||t.provide));if(!function t6(t){return!!t.deps}(t))return pc(r)||Kb(r);n=()=>new r(...X_(t.deps))}return n}function ql(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Zb(t,i){for(const e of t)Array.isArray(e)?Zb(e,i):e&&j_(e)?Zb(e.\u0275providers,i):i(e)}class r6{}class fS{}class a6{resolveComponentFactory(i){throw function o6(t){const i=Error(`No component factory found for ${Pi(t)}. Did you add it to @NgModule.entryComponents?`);return i.ngComponent=t,i}(i)}}let Ss=(()=>{class t{}return t.NULL=new a6,t})();function s6(){return Xl(Gn(),ge())}function Xl(t,i){return new Fe(Qr(t,i))}let Fe=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=s6,t})();function c6(t){return t instanceof Fe?t.nativeElement:t}class Vu{}let qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function l6(){const t=ge(),e=Ir(Gn().index,t);return(Xr(e)?e:t)[Lt]}(),t})(),d6=(()=>{class t{}return t.\u0275prov=ve({token:t,providedIn:"root",factory:()=>null}),t})();class Cc{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const u6=new Cc("15.2.8"),Jb={},ev="ngOriginalError";function tv(t){return t[ev]}class Xa{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&tv(i);for(;e&&tv(e);)e=tv(e);return e||null}}function Qa(t){return t instanceof Function?t():t}function gS(t,i,e){let n=t.length;for(;;){const r=t.indexOf(i,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=i.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}e=r+1}}const _S="ng-template";function w6(t,i,e){let n=0,r=!0;for(;no?"":r[u+1].toLowerCase();const f=8&n?h:null;if(f&&-1!==gS(f,l,0)||2&n&&l!==h){if(Uo(n))return!1;a=!0}}}}else{if(!a&&!Uo(n)&&!Uo(c))return!1;if(a&&Uo(c))continue;a=!1,n=c|1&n}}return Uo(n)||a}function Uo(t){return 0==(1&t)}function D6(t,i,e,n){if(null===i)return-1;let r=0;if(n||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""!==r&&!Uo(a)&&(i+=xS(o,r),r=""),n=a,o=o||!Uo(n);e++}return""!==r&&(i+=xS(o,r)),i}const kt={};function k(t){yS(ti(),ge(),vr()+t,!1)}function yS(t,i,e,n){if(!n)if(3==(3&i[At])){const o=t.preOrderCheckHooks;null!==o&&Tm(i,o,e)}else{const o=t.preOrderHooks;null!==o&&Mm(i,o,0,e)}gc(e)}function DS(t,i=null,e=null,n){const r=SS(t,i,e,n);return r.resolveInjectorInitializers(),r}function SS(t,i=null,e=null,n,r=new Set){const o=[e||li,Q5(t)];return n=n||("object"==typeof t?void 0:Pi(t)),new uS(o,i||Ym(),n||null,r)}let tn=(()=>{class t{static create(e,n){if(Array.isArray(e))return DS({name:""},n,e,"");{const r=e.name??"";return DS({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=bu,t.NULL=new aS,t.\u0275prov=ve({token:t,providedIn:"any",factory:()=>G(rS)}),t.__NG_ELEMENT_ID__=-1,t})();function b(t,i=gt.Default){const e=ge();return null===e?G(t,i):iD(Gn(),e,pt(t),i)}function da(){throw new Error("invalid")}function RS(t,i){const e=t.contentQueries;if(null!==e)for(let n=0;nUi&&yS(t,i,Ui,!1),ho(a?2:0,r),e(n,r)}finally{gc(o),ho(a?3:1,r)}}function cv(t,i,e){if(J_(i)){const r=i.directiveEnd;for(let o=i.directiveStart;o0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,n,o)}}(t,i,n,Hu(t,e,r.hostVars,kt),r)}function ua(t,i,e,n,r,o){const a=Qr(t,i);!function mv(t,i,e,n,r,o,a){if(null==o)t.removeAttribute(i,r,e);else{const s=null==a?wt(o):a(o,n||"",r);t.setAttribute(i,r,s,e)}}(i[Lt],a,o,t.value,e,n,r)}function _V(t,i,e,n,r,o){const a=o[i];if(null!==a){const s=n.setInput;for(let c=0;c0&&pv(e)}}function pv(t){for(let n=Mb(t);null!==n;n=Ab(n))for(let r=_r;r0&&pv(o)}const e=t[Ge].components;if(null!==e)for(let n=0;n0&&pv(r)}}function wV(t,i){const e=Ir(i,t),n=e[Ge];(function CV(t,i){for(let e=i.length;e-1&&(Rb(i,n),Pm(e,n))}this._attachedToViewContainer=!1}FD(this._lView[Ge],this._lView)}onDestroy(i){LS(this._lView[Ge],this._lView,null,i)}markForCheck(){tp(this._cdRefInjectingView||this._lView)}detach(){this._lView[At]&=-65}reattach(){this._lView[At]|=64}detectChanges(){ip(this._lView[Ge],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function s5(t,i){Lu(t,i,i[Lt],2,null,null)}(this._lView[Ge],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=i}}class kV extends Uu{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;ip(i[Ge],i,i[en],!1)}checkNoChanges(){}get context(){return null}}class GS extends Ss{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=gi(i);return new zu(e,this.ngModule)}}function qS(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class SV{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=_m(n);const r=this.injector.get(i,Jb,n);return r!==Jb||e===Jb?r:this.parentInjector.get(i,e,n)}}class zu extends fS{get inputs(){return qS(this.componentDef.inputs)}get outputs(){return qS(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function I6(t){return t.map(A6).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,r){let o=(r=r||this.ngModule)instanceof la?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new SV(i,o):i,s=a.get(Vu,null);if(null===s)throw new ue(407,!1);const c=a.get(d6,null),l=s.createRenderer(null,this.componentDef),d=this.componentDef.selectors[0][0]||"div",u=n?function tV(t,i,e){return t.selectRootElement(i,e===No.ShadowDom)}(l,n,this.componentDef.encapsulation):Fb(l,d,function DV(t){const i=t.toLowerCase();return"svg"===i?Ak:"math"===i?"math":null}(d)),h=this.componentDef.onPush?288:272,f=uv(0,null,null,1,0,null,null,null,null,null),m=Zm(null,f,null,h,null,null,s,l,c,a,null);let g,p;sb(m);try{const _=this.componentDef;let w,x=null;_.findHostDirectiveDefs?(w=[],x=new Map,_.findHostDirectiveDefs(_,w,x),w.push(_)):w=[_];const M=function TV(t,i){const e=t[Ge],n=Ui;return t[n]=i,Kl(e,n,2,"#host",null)}(m,u),W=function MV(t,i,e,n,r,o,a,s){const c=r[Ge];!function AV(t,i,e,n){for(const r of t)i.mergedAttrs=Tu(i.mergedAttrs,r.hostAttrs);null!==i.mergedAttrs&&(np(i,i.mergedAttrs,!0),null!==e&&jD(n,e,i))}(n,t,i,a);const l=o.createRenderer(i,e),d=Zm(r,PS(e),null,e.onPush?32:16,r[t.index],t,o,l,s||null,null,null);return c.firstCreatePass&&fv(c,t,n.length-1),ep(r,d),r[t.index]=d}(M,u,_,w,m,s,l);p=Fk(f,Ui),u&&function FV(t,i,e,n){if(n)ub(t,e,["ng-version",u6.full]);else{const{attrs:r,classes:o}=function F6(t){const i=[],e=[];let n=1,r=2;for(;n0&&$D(t,e,o.join(" "))}}(l,_,u,n),void 0!==e&&function RV(t,i,e){const n=t.projection=[];for(let r=0;r=0;n--){const r=t[n];r.hostVars=i+=r.hostVars,r.hostAttrs=Tu(r.hostAttrs,e=Tu(e,r.hostAttrs))}}(n)}function bv(t){return t===Ha?{}:t===li?[]:t}function LV(t,i){const e=t.viewQuery;t.viewQuery=e?(n,r)=>{i(n,r),e(n,r)}:i}function NV(t,i){const e=t.contentQueries;t.contentQueries=e?(n,r,o)=>{i(n,r,o),e(n,r,o)}:i}function BV(t,i){const e=t.hostBindings;t.hostBindings=e?(n,r)=>{i(n,r),e(n,r)}:i}function op(t){return!!vv(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function vv(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ha(t,i,e){return t[i]=e}function tr(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function kc(t,i,e,n){const r=tr(t,i,e);return tr(t,i+1,n)||r}function ot(t,i,e,n){const r=ge();return tr(r,Pl(),i)&&(ti(),ua(qi(),r,t,i,e,n)),ot}function Jl(t,i,e,n){return tr(t,Pl(),e)?i+wt(e)+n:kt}function td(t,i,e,n,r,o,a,s){const l=function ap(t,i,e,n,r){const o=kc(t,i,e,n);return tr(t,i+2,r)||o}(t,function $a(){return Ct.lFrame.bindingIndex}(),e,r,a);return ja(3),l?i+wt(e)+n+wt(r)+o+wt(a)+s:kt}function H(t,i,e,n,r,o,a,s){const c=ge(),l=ti(),d=t+Ui,u=l.firstCreatePass?function XV(t,i,e,n,r,o,a,s,c){const l=i.consts,d=Kl(i,t,4,a||null,Ds(l,s));hv(i,e,d,Ds(l,c)),Em(i,d);const u=d.tView=uv(2,d,n,r,o,i.directiveRegistry,i.pipeRegistry,null,i.schemas,l);return null!==i.queries&&(i.queries.template(i,d),u.queries=i.queries.embeddedTView(d)),d}(d,l,c,i,e,n,r,o,a):l.data[d];oa(u,!1);const h=c[Lt].createComment("");Um(l,c,h,u),er(h,c),ep(c,c[d]=US(h,c,h,u)),km(u)&&lv(l,c,u),null!=a&&dv(c,u,s)}function Nt(t){return Ol(function Y8(){return Ct.lFrame.contextLView}(),Ui+t)}function T(t,i,e){const n=ge();return tr(n,Pl(),i)&&Zr(ti(),qi(),n,t,i,n[Lt],e,!1),T}function xv(t,i,e,n,r){const a=r?"class":"style";_v(t,e,i.inputs[a],a,n)}function v(t,i,e,n){const r=ge(),o=ti(),a=Ui+t,s=r[Lt],c=o.firstCreatePass?function YV(t,i,e,n,r,o){const a=i.consts,c=Kl(i,t,2,n,Ds(a,r));return hv(i,e,c,Ds(a,o)),null!==c.attrs&&np(c,c.attrs,!1),null!==c.mergedAttrs&&np(c,c.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,c),c}(a,o,r,i,e,n):o.data[a],l=r[a]=Fb(s,i,function oB(){return Ct.lFrame.currentNamespace}()),d=km(c);return oa(c,!0),jD(s,l,c),32!=(32&c.flags)&&Um(o,r,l,c),0===function W8(){return Ct.lFrame.elementDepthCount}()&&er(l,r),function G8(){Ct.lFrame.elementDepthCount++}(),d&&(lv(o,r,c),cv(o,c,r)),null!==n&&dv(r,c),v}function y(){let t=Gn();ib()?nb():(t=t.parent,oa(t,!1));const i=t;!function q8(){Ct.lFrame.elementDepthCount--}();const e=ti();return e.firstCreatePass&&(Em(e,t),J_(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function lB(t){return 0!=(8&t.flags)}(i)&&xv(e,i,ge(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function dB(t){return 0!=(16&t.flags)}(i)&&xv(e,i,ge(),i.stylesWithoutHost,!1),y}function Se(t,i,e,n){return v(t,i,e,n),y(),Se}function Ai(t,i,e){const n=ge(),r=ti(),o=t+Ui,a=r.firstCreatePass?function KV(t,i,e,n,r){const o=i.consts,a=Ds(o,n),s=Kl(i,t,8,"ng-container",a);return null!==a&&np(s,a,!0),hv(i,e,s,Ds(o,r)),null!==i.queries&&i.queries.elementStart(i,s),s}(o,r,n,i,e):r.data[o];oa(a,!0);const s=n[o]=n[Lt].createComment("");return Um(r,n,s,a),er(s,n),km(a)&&(lv(r,n,a),cv(r,a,n)),null!=e&&dv(n,a),Ai}function Ii(){let t=Gn();const i=ti();return ib()?nb():(t=t.parent,oa(t,!1)),i.firstCreatePass&&(Em(i,t),J_(t)&&i.queries.elementEnd(t)),Ii}function Jr(t,i,e){return Ai(t,i,e),Ii(),Jr}function Je(){return ge()}function ju(t){return!!t&&"function"==typeof t.then}function sE(t){return!!t&&"function"==typeof t.subscribe}const yv=sE;function X(t,i,e,n){const r=ge(),o=ti(),a=Gn();return cE(o,r,r[Lt],a,t,i,n),X}function wv(t,i){const e=Gn(),n=ge(),r=ti();return cE(r,n,jS(ob(r.data),e,n),e,t,i),wv}function cE(t,i,e,n,r,o,a){const s=km(n),l=t.firstCreatePass&&$S(t),d=i[en],u=zS(i);let h=!0;if(3&n.type||a){const g=Qr(n,i),p=a?a(g):g,_=u.length,w=a?M=>a(Wn(M[n.index])):n.index;let x=null;if(!a&&s&&(x=function ZV(t,i,e,n){const r=t.cleanup;if(null!=r)for(let o=0;oc?s[c]:null}"string"==typeof a&&(o+=2)}return null}(t,i,r,n.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=o,x.__ngLastListenerFn__=o,h=!1;else{o=dE(n,i,d,o,!1);const M=e.listen(p,r,o);u.push(o,M),l&&l.push(r,w,_,_+1)}}else o=dE(n,i,d,o,!1);const f=n.outputs;let m;if(h&&null!==f&&(m=f[r])){const g=m.length;if(g)for(let p=0;p-1?Ir(t.index,i):i);let c=lE(i,e,n,a),l=o.__ngNextListenerFn__;for(;l;)c=lE(i,e,l,a)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&(a.preventDefault(),a.returnValue=!1),c}}function q(t=1){return function tB(t){return(Ct.lFrame.contextLView=function iB(t,i){for(;t>0;)i=i[Il],t--;return i}(t,Ct.lFrame.contextLView))[en]}(t)}function JV(t,i){let e=null;const n=function S6(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(!(1&e))return i[e+1]}return null}(t);for(let r=0;r>17&32767}function Cv(t){return 2|t}function Dc(t){return(131068&t)>>2}function kv(t,i){return-131069&t|i<<2}function Dv(t){return 1|t}function vE(t,i,e,n,r){const o=t[e+1],a=null===i;let s=n?Es(o):Dc(o),c=!1;for(;0!==s&&(!1===c||a);){const d=t[s+1];o7(t[s],i)&&(c=!0,t[s+1]=n?Dv(d):Cv(d)),s=n?Es(d):Dc(d)}c&&(t[e+1]=n?Cv(o):Dv(o))}function o7(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&$l(t,i)>=0}const Mn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function xE(t){return t.substring(Mn.key,Mn.keyEnd)}function yE(t,i){const e=Mn.textEnd;return e===i?-1:(i=Mn.keyEnd=function l7(t,i,e){for(;i32;)i++;return i}(t,Mn.key=i,e),sd(t,i,e))}function sd(t,i,e){for(;i=0;e=yE(i,e))Yr(t,xE(i),!0)}function zo(t,i,e,n){const r=ge(),o=ti(),a=ja(2);o.firstUpdatePass&&EE(o,t,a,n),i!==kt&&tr(r,a,i)&&ME(o,o.data[vr()],r,r[Lt],t,r[a+1]=function y7(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=Pi(Kr(t)))),t}(i,e),n,a)}function SE(t,i){return i>=t.expandoStartIndex}function EE(t,i,e,n){const r=t.data;if(null===r[e+1]){const o=r[vr()],a=SE(t,e);IE(o,n)&&null===i&&!a&&(i=!1),i=function m7(t,i,e,n){const r=ob(t);let o=n?i.residualClasses:i.residualStyles;if(null===r)0===(n?i.classBindings:i.styleBindings)&&(e=Gu(e=Sv(null,t,i,e,n),i.attrs,n),o=null);else{const a=i.directiveStylingLast;if(-1===a||t[a]!==r)if(e=Sv(r,t,i,e,n),null===o){let c=function p7(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==Dc(n))return t[Es(n)]}(t,i,n);void 0!==c&&Array.isArray(c)&&(c=Sv(null,t,i,c[1],n),c=Gu(c,i.attrs,n),function g7(t,i,e,n){t[Es(e?i.classBindings:i.styleBindings)]=n}(t,i,n,c))}else o=function _7(t,i,e){let n;const r=i.directiveEnd;for(let o=1+i.directiveStylingLast;o0)&&(l=!0)):d=e,r)if(0!==c){const h=Es(t[s+1]);t[n+1]=cp(h,s),0!==h&&(t[h+1]=kv(t[h+1],n)),t[s+1]=function t7(t,i){return 131071&t|i<<17}(t[s+1],n)}else t[n+1]=cp(s,0),0!==s&&(t[s+1]=kv(t[s+1],n)),s=n;else t[n+1]=cp(c,0),0===s?s=n:t[c+1]=kv(t[c+1],n),c=n;l&&(t[n+1]=Cv(t[n+1])),vE(t,d,n,!0),vE(t,d,n,!1),function r7(t,i,e,n,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof i&&$l(o,i)>=0&&(e[n+1]=Dv(e[n+1]))}(i,d,t,n,o),a=cp(s,c),o?i.classBindings=a:i.styleBindings=a}(r,o,i,e,a,n)}}function Sv(t,i,e,n,r){let o=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const c=t[r],l=Array.isArray(c),d=l?c[1]:c,u=null===d;let h=e[r+1];h===kt&&(h=u?li:void 0);let f=u?vb(h,n):d===n?h:void 0;if(l&&!lp(f)&&(f=vb(c,n)),lp(f)&&(s=f,a))return s;const m=t[r+1];r=a?Es(m):Dc(m)}if(null!==i){let c=o?i.residualClasses:i.residualStyles;null!=c&&(s=vb(c,n))}return s}function lp(t){return void 0!==t}function IE(t,i){return 0!=(t.flags&(i?8:16))}function E(t,i=""){const e=ge(),n=ti(),r=t+Ui,o=n.firstCreatePass?Kl(n,r,1,i,null):n.data[r],a=e[r]=function Ib(t,i){return t.createText(i)}(e[Lt],i);Um(n,e,a,o),oa(o,!1)}function Xe(t){return It("",t,""),Xe}function It(t,i,e){const n=ge(),r=Jl(n,t,i,e);return r!==kt&&Ya(n,vr(),r),It}function Ev(t,i,e,n,r,o,a){const s=ge(),c=td(s,t,i,e,n,r,o,a);return c!==kt&&Ya(s,vr(),c),Ev}function VE(t,i,e){!function $o(t,i,e,n){const r=ti(),o=ja(2);r.firstUpdatePass&&EE(r,null,o,n);const a=ge();if(e!==kt&&tr(a,o,e)){const s=r.data[vr()];if(IE(s,n)&&!SE(r,o)){let c=n?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=z_(c,e||"")),xv(r,s,a,e,n)}else!function x7(t,i,e,n,r,o,a,s){r===kt&&(r=li);let c=0,l=0,d=0((Ue=Ue||{})[Ue.LocaleId=0]="LocaleId",Ue[Ue.DayPeriodsFormat=1]="DayPeriodsFormat",Ue[Ue.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ue[Ue.DaysFormat=3]="DaysFormat",Ue[Ue.DaysStandalone=4]="DaysStandalone",Ue[Ue.MonthsFormat=5]="MonthsFormat",Ue[Ue.MonthsStandalone=6]="MonthsStandalone",Ue[Ue.Eras=7]="Eras",Ue[Ue.FirstDayOfWeek=8]="FirstDayOfWeek",Ue[Ue.WeekendRange=9]="WeekendRange",Ue[Ue.DateFormat=10]="DateFormat",Ue[Ue.TimeFormat=11]="TimeFormat",Ue[Ue.DateTimeFormat=12]="DateTimeFormat",Ue[Ue.NumberSymbols=13]="NumberSymbols",Ue[Ue.NumberFormats=14]="NumberFormats",Ue[Ue.CurrencyCode=15]="CurrencyCode",Ue[Ue.CurrencySymbol=16]="CurrencySymbol",Ue[Ue.CurrencyName=17]="CurrencyName",Ue[Ue.Currencies=18]="Currencies",Ue[Ue.Directionality=19]="Directionality",Ue[Ue.PluralCase=20]="PluralCase",Ue[Ue.ExtraData=21]="ExtraData",Ue))();const ld="en-US";let KE=ld;function Iv(t,i,e,n,r){if(t=pt(t),Array.isArray(t))for(let o=0;o>20;if(wc(t)||!t.multi){const f=new Eu(c,r,b),m=Rv(s,i,r?d:d+h,u);-1===m?(pb(Rm(l,a),o,s),Fv(o,t,i.length),i.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),e.push(f),a.push(f)):(e[m]=f,a[m]=f)}else{const f=Rv(s,i,d+h,u),m=Rv(s,i,d,d+h),p=m>=0&&e[m];if(r&&!p||!r&&!(f>=0&&e[f])){pb(Rm(l,a),o,s);const _=function BH(t,i,e,n,r){const o=new Eu(t,e,b);return o.multi=[],o.index=i,o.componentProviders=0,wT(o,r,n&&!e),o}(r?NH:LH,e.length,r,n,c);!r&&p&&(e[m].providerFactory=_),Fv(o,t,i.length,0),i.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),e.push(_),a.push(_)}else Fv(o,t,f>-1?f:m,wT(e[r?m:f],c,!r&&n));!r&&n&&p&&e[m].componentProviders++}}}function Fv(t,i,e,n){const r=wc(i),o=function K5(t){return!!t.useClass}(i);if(r||o){const c=(o?pt(i.useClass):i).prototype.ngOnDestroy;if(c){const l=t.destroyHooks||(t.destroyHooks=[]);if(!r&&i.multi){const d=l.indexOf(e);-1===d?l.push(e,[n,c]):l[d+1].push(n,c)}else l.push(e,c)}}}function wT(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Rv(t,i,e,n){for(let r=e;r{e.providersResolver=(n,r)=>function PH(t,i,e){const n=ti();if(n.firstCreatePass){const r=Ho(t);Iv(e,n.data,n.blueprint,r,!0),Iv(i,n.data,n.blueprint,r,!1)}}(n,r?r(t):t,i)}}class dd{}class CT{}class kT extends dd{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new GS(this);const n=qr(i);this._bootstrapComponents=Qa(n.bootstrap),this._r3Injector=SS(i,e,[{provide:dd,useValue:this},{provide:Ss,useValue:this.componentFactoryResolver}],Pi(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class Pv extends CT{constructor(i){super(),this.moduleType=i}create(i){return new kT(this.moduleType,i)}}class HH extends dd{constructor(i,e,n){super(),this.componentFactoryResolver=new GS(this),this.instance=null;const r=new uS([...i,{provide:dd,useValue:this},{provide:Ss,useValue:this.componentFactoryResolver}],e||Ym(),n,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function mp(t,i,e=null){return new HH(t,i,e).injector}let UH=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const n=sS(0,e.type),r=n.length>0?mp([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=ve({token:t,providedIn:"environment",factory:()=>new t(G(la))}),t})();function Lv(t){t.getStandaloneInjector=i=>i.get(UH).getOrCreateStandaloneInjector(t)}function Ec(t,i,e){const n=br()+t,r=ge();return r[n]===kt?ha(r,n,e?i.call(e):i()):function $u(t,i){return t[i]}(r,n)}function Bv(t,i,e,n){return FT(ge(),br(),t,i,e,n)}function Zu(t,i){const e=t[i];return e===kt?void 0:e}function FT(t,i,e,n,r,o){const a=i+e;return tr(t,a,r)?ha(t,a+1,o?n.call(o,r):n(r)):Zu(t,a+1)}function RT(t,i,e,n,r,o,a){const s=i+e;return kc(t,s,r,o)?ha(t,s+2,a?n.call(a,r,o):n(r,o)):Zu(t,s+2)}function pp(t,i){const e=ti();let n;const r=t+Ui;e.firstCreatePass?(n=function nU(t,i){if(i)for(let e=i.length-1;e>=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks??(e.destroyHooks=[])).push(r,n.onDestroy)):n=e.data[r];const o=n.factory||(n.factory=pc(n.type)),a=uo(b);try{const s=Fm(!1),c=o();return Fm(s),function QV(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,ge(),r,c),c}finally{uo(a)}}function Vv(t,i,e){const n=t+Ui,r=ge(),o=Ol(r,n);return Ju(r,n)?FT(r,br(),i,o.transform,e,o):o.transform(e)}function Ju(t,i){return t[Ge].data[i].pure}function Hv(t){return i=>{setTimeout(t,void 0,i)}}const xe=class sU extends ke{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){let r=i,o=e||(()=>null),a=n;if(i&&"object"==typeof i){const c=i;r=c.next?.bind(c),o=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(o=Hv(o),r&&(r=Hv(r)),a&&(a=Hv(a)));const s=super.subscribe({next:r,error:o,complete:a});return i instanceof yt&&i.add(s),s}};function cU(){return this._results[Symbol.iterator]()}class Tc{get changes(){return this._changes||(this._changes=new xe)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Tc.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=cU)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const r=function mo(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function xB(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n{class t{}return t.__NG_ELEMENT_ID__=uU,t})();const lU=_i,dU=class extends lU{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i,e){const n=this._declarationTContainer.tView,r=Zm(this._declarationLView,n,i,16,null,n.declTNode,null,null,null,null,e||null);r[Cu]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[ra];return null!==a&&(r[ra]=a.createEmbeddedView(n)),sv(n,r,i),new Uu(r)}};function uU(){return gp(Gn(),ge())}function gp(t,i){return 4&t.type?new dU(i,t,Xl(t,i)):null}let Fi=(()=>{class t{}return t.__NG_ELEMENT_ID__=hU,t})();function hU(){return HT(Gn(),ge())}const fU=Fi,BT=class extends fU{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Xl(this._hostTNode,this._hostLView)}get injector(){return new Bl(this._hostTNode,this._hostLView)}get parentInjector(){const i=mb(this._hostTNode,this._hostLView);if(Yk(i)){const e=Im(i,this._hostLView),n=Am(i);return new Bl(e[Ge].data[n+8],e)}return new Bl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=VT(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-_r}createEmbeddedView(i,e,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const a=i.createEmbeddedView(e||{},o);return this.insert(a,r),a}createComponent(i,e,n,r,o){const a=i&&!function Au(t){return"function"==typeof t}(i);let s;if(a)s=e;else{const u=e||{};s=u.index,n=u.injector,r=u.projectableNodes,o=u.environmentInjector||u.ngModuleRef}const c=a?i:new zu(gi(i)),l=n||this.parentInjector;if(!o&&null==c.ngModule){const h=(a?l:this.parentInjector).get(la,null);h&&(o=h)}const d=c.create(l,r,void 0,o);return this.insert(d.hostView,s),d}insert(i,e){const n=i._lView,r=n[Ge];if(function j8(t){return Vo(t[Yi])}(n)){const d=this.indexOf(i);if(-1!==d)this.detach(d);else{const u=n[Yi],h=new BT(u,u[Zn],u[Yi]);h.detach(h.indexOf(i))}}const o=this._adjustIndex(e),a=this._lContainer;!function l5(t,i,e,n){const r=_r+n,o=e.length;n>0&&(e[r-1][Bo]=i),n0)n.push(a[s/2]);else{const l=o[s+1],d=i[-c];for(let u=_r;u{class t{constructor(e){this.appInits=e,this.resolve=bp,this.reject=bp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:s,error:c})});e.push(a)}}Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),0===e.length&&n(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(G(vp,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const fd=new ae("AppId",{providedIn:"root",factory:function d2(){return`${Zv()}${Zv()}${Zv()}`}});function Zv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const u2=new ae("Platform Initializer"),yp=new ae("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ri=new ae("AnimationModuleType");let VU=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const ga=new ae("LocaleId",{providedIn:"root",factory:()=>ht(ga,gt.Optional|gt.SkipSelf)||function HU(){return typeof $localize<"u"&&$localize.locale||ld}()});class zU{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let h2=(()=>{class t{compileModuleSync(e){return new Pv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),o=Qa(qr(e).declarations).reduce((a,s)=>{const c=gi(s);return c&&a.push(new zu(c)),a},[]);return new zU(n,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const WU=(()=>Promise.resolve(0))();function Jv(t){typeof Zone>"u"?WU.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ze{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xe(!1),this.onMicrotaskEmpty=new xe(!1),this.onStable=new xe(!1),this.onError=new xe(!1),typeof Zone>"u")throw new ue(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)),i&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function GU(){let t=Hi.requestAnimationFrame,i=Hi.cancelAnimationFrame;if(typeof Zone<"u"&&t&&i){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function QU(t){const i=()=>{!function XU(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Hi,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,tx(t),t.isCheckStableRunning=!0,ex(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),tx(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,o,a,s)=>{try{return p2(t),e.invokeTask(r,o,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&i(),g2(t)}},onInvoke:(e,n,r,o,a,s,c)=>{try{return p2(t),e.invoke(r,o,a,s,c)}finally{t.shouldCoalesceRunChangeDetection&&i(),g2(t)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,tx(t),ex(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ze.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(ze.isInAngularZone())throw new ue(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,i,qU,bp,bp);try{return o.runTask(a,e,n)}finally{o.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const qU={};function ex(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 tx(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function p2(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function g2(t){t._nesting--,ex(t)}class YU{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xe,this.onMicrotaskEmpty=new xe,this.onStable=new xe,this.onError=new xe}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,r){return i.apply(e,n)}}const _2=new ae(""),wp=new ae("");let rx,ix=(()=>{class t{constructor(e,n,r){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,rx||(function KU(t){rx=t}(r),r.addToWindow(n)),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:()=>{ze.assertNotInAngularZone(),Jv(()=>{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())Jv(()=>{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(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.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,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,n,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,n,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(G(ze),G(nx),G(wp))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),nx=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}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,n=!0){return rx?.findTestabilityInTree(this,e,n)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Ka=!1;let Ts=null;const b2=new ae("AllowMultipleToken"),ox=new ae("PlatformDestroyListeners"),v2=new ae("appBootstrapListener");class x2{constructor(i,e){this.name=i,this.token=e}}function w2(t,i,e=[]){const n=`Platform: ${i}`,r=new ae(n);return(o=[])=>{let a=ax();if(!a||a.injector.get(b2,!1)){const s=[...e,...o,{provide:r,useValue:!0}];t?t(s):function e9(t){if(Ts&&!Ts.get(b2,!1))throw new ue(400,!1);Ts=t;const i=t.get(k2);(function y2(t){const i=t.get(u2,null);i&&i.forEach(e=>e())})(t)}(function C2(t=[],i){return tn.create({name:i,providers:[{provide:Qb,useValue:"platform"},{provide:ox,useValue:new Set([()=>Ts=null])},...t]})}(s,n))}return function i9(t){const i=ax();if(!i)throw new ue(401,!1);return i}()}}function ax(){return Ts?.get(k2)??null}let k2=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const r=function S2(t,i){let e;return e="noop"===t?new YU:("zone.js"===t?void 0:t)||new ze(i),e}(n?.ngZone,function D2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(n)),o=[{provide:ze,useValue:r}];return r.run(()=>{const a=tn.create({providers:o,parent:this.injector,name:e.moduleType.name}),s=e.create(a),c=s.injector.get(Xa,null);if(!c)throw new ue(402,!1);return r.runOutsideAngular(()=>{const l=r.onError.subscribe({next:d=>{c.handleError(d)}});s.onDestroy(()=>{Cp(this._modules,s),l.unsubscribe()})}),function E2(t,i,e){try{const n=e();return ju(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(c,r,()=>{const l=s.injector.get(xp);return l.runInitializers(),l.donePromise.then(()=>(function ZE(t){lo(t,"Expected localeId to be defined"),"string"==typeof t&&(KE=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(ga,ld)||ld),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,n=[]){const r=T2({},n);return function ZU(t,i,e){const n=new Pv(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const n=e.injector.get(md);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new ue(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ue(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(ox,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(G(tn))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function T2(t,i){return Array.isArray(i)?i.reduce(T2,t):{...t,...i}}let md=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,n,r){this._zone=e,this._injector=n,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new ni(s=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{s.next(this._stable),s.complete()})}),a=new ni(s=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ze.assertNotInAngularZone(),Jv(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{ze.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{c.unsubscribe(),l.unsubscribe()}});this.isStable=Vi(o,a.pipe(uk()))}bootstrap(e,n){const r=e instanceof fS;if(!this._injector.get(xp).done){!r&&function Ml(t){const i=gi(t)||Kn(t)||Ar(t);return null!==i&&i.standalone}(e);throw new ue(405,Ka)}let a;a=r?e:this._injector.get(Ss).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function JU(t){return t.isBoundToModule}(a)?void 0:this._injector.get(dd),l=a.create(tn.NULL,[],n||a.selector,s),d=l.location.nativeElement,u=l.injector.get(_2,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Cp(this.components,l),u?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new ue(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;Cp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(v2,[]);n.push(...this._bootstrapListeners),n.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Cp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(G(ze),G(la),G(Xa))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Cp(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let Gt=(()=>{class t{}return t.__NG_ELEMENT_ID__=r9,t})();function r9(t){return function o9(t,i,e){if(Du(t)&&!e){const n=Ir(t.index,i);return new Uu(n,n)}return 47&t.type?new Uu(i[Jn],i):null}(Gn(),ge(),16==(16&t))}class R2{constructor(){}supports(i){return op(i)}create(i){return new u9(i)}}const d9=(t,i)=>i;class u9{constructor(i){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=i||d9}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){const a=!n||e&&e.currentIndex{a=this._trackByFn(r,s),null!==e&&Object.is(e.trackById,a)?(n&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,r),n=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,r){let o;return null===i?o=this._itTail:(o=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,o,r)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,o,r)):i=this._addAfter(new h9(e,n),o,r),i}_verifyReinsertion(i,e,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?i=this._reinsertAfter(o,i._prev,r):i.currentIndex!=r&&(i.currentIndex=r,this._addToMoves(i,r)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=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(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const r=i._prevRemoved,o=i._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const r=null===e?this._itHead:e._next;return i._next=r,i._prev=e,null===r?this._itTail=i:r._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new O2),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new O2),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class h9{constructor(i,e){this.item=i,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 f9{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class O2{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new f9,this.map.set(e,n)),n.add(i)}get(i,e){const r=this.map.get(i);return r?r.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function P2(t,i,e){const n=t.previousIndex;if(null===n)return n;let r=0;return e&&n{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const r=this._records.get(i);this._maybeAddToChanges(r,e);const o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}const n=new p9(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class p9{constructor(i){this.key=i,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 N2(){return new Za([new R2])}let Za=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(null!=n){const r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||N2()),deps:[[t,new vc,new sa]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(null!=n)return n;throw new ue(901,!1)}}return t.\u0275prov=ve({token:t,providedIn:"root",factory:N2}),t})();function B2(){return new th([new L2])}let th=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(n){const r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||B2()),deps:[[t,new vc,new sa]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return n;throw new ue(901,!1)}}return t.\u0275prov=ve({token:t,providedIn:"root",factory:B2}),t})();const b9=w2(null,"core",[]);let v9=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(G(md))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();function pd(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let ux=null;function Ja(){return ux}class w9{}const nt=new ae("DocumentToken");let hx=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return function C9(){return G(V2)}()},providedIn:"platform"}),t})();const k9=new ae("Location Initialized");let V2=(()=>{class t extends hx{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ja().getBaseHref(this._doc)}onPopState(e){const n=Ja().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=Ja().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.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,n,r){H2()?this._history.pushState(e,n,r):this._location.hash=r}replaceState(e,n,r){H2()?this._history.replaceState(e,n,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:function(){return function D9(){return new V2(G(nt))}()},providedIn:"platform"}),t})();function H2(){return!!window.history.pushState}function fx(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function U2(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function es(t){return t&&"?"!==t[0]?"?"+t:t}let Ic=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht($2)},providedIn:"root"}),t})();const z2=new ae("appBaseHref");let $2=(()=>{class t extends Ic{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??ht(nt).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 fx(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+es(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,o){const a=this.prepareExternalUrl(r+es(o));this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){const a=this.prepareExternalUrl(r+es(o));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(G(hx),G(z2,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),S9=(()=>{class t extends Ic{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=fx(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,o){let a=this.prepareExternalUrl(r+es(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){let a=this.prepareExternalUrl(r+es(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(G(hx),G(z2,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),ih=(()=>{class t{constructor(e){this._subject=new xe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function M9(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(U2(j2(n))),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,n=""){return this.path()==this.normalize(e+es(n))}normalize(e){return t.stripTrailingSlash(function T9(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,j2(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+es(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+es(n)),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(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n,complete:r})}}return t.normalizeQueryParams=es,t.joinWithSlash=fx,t.stripTrailingSlash=U2,t.\u0275fac=function(e){return new(e||t)(G(Ic))},t.\u0275prov=ve({token:t,factory:function(){return function E9(){return new ih(G(Ic))}()},providedIn:"root"}),t})();function j2(t){return t.replace(/\/index.html$/,"")}var nn=(()=>((nn=nn||{})[nn.Format=0]="Format",nn[nn.Standalone=1]="Standalone",nn))(),qt=(()=>((qt=qt||{})[qt.Narrow=0]="Narrow",qt[qt.Abbreviated=1]="Abbreviated",qt[qt.Wide=2]="Wide",qt[qt.Short=3]="Short",qt))(),Xi=(()=>((Xi=Xi||{})[Xi.Short=0]="Short",Xi[Xi.Medium=1]="Medium",Xi[Xi.Long=2]="Long",Xi[Xi.Full=3]="Full",Xi))(),ft=(()=>((ft=ft||{})[ft.Decimal=0]="Decimal",ft[ft.Group=1]="Group",ft[ft.List=2]="List",ft[ft.PercentSign=3]="PercentSign",ft[ft.PlusSign=4]="PlusSign",ft[ft.MinusSign=5]="MinusSign",ft[ft.Exponential=6]="Exponential",ft[ft.SuperscriptingExponent=7]="SuperscriptingExponent",ft[ft.PerMille=8]="PerMille",ft[ft.Infinity=9]="Infinity",ft[ft.NaN=10]="NaN",ft[ft.TimeSeparator=11]="TimeSeparator",ft[ft.CurrencyDecimal=12]="CurrencyDecimal",ft[ft.CurrencyGroup=13]="CurrencyGroup",ft))();function Sp(t,i){return _o(xr(t)[Ue.DateFormat],i)}function Ep(t,i){return _o(xr(t)[Ue.TimeFormat],i)}function Tp(t,i){return _o(xr(t)[Ue.DateTimeFormat],i)}function go(t,i){const e=xr(t),n=e[Ue.NumberSymbols][i];if(typeof n>"u"){if(i===ft.CurrencyDecimal)return e[Ue.NumberSymbols][ft.Decimal];if(i===ft.CurrencyGroup)return e[Ue.NumberSymbols][ft.Group]}return n}function G2(t){if(!t[Ue.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Ue.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function _o(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function px(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const z9=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nh={},$9=/((?:[^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 An=(()=>((An=An||{})[An.Short=0]="Short",An[An.ShortGMT=1]="ShortGMT",An[An.Long=2]="Long",An[An.Extended=3]="Extended",An))(),_t=(()=>((_t=_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))(),Ft=(()=>((Ft=Ft||{})[Ft.DayPeriods=0]="DayPeriods",Ft[Ft.Days=1]="Days",Ft[Ft.Months=2]="Months",Ft[Ft.Eras=3]="Eras",Ft))();function j9(t,i,e,n){let r=function J9(t){if(Q2(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,o=1,a=1]=t.split("-").map(s=>+s);return Mp(r,o-1,a)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(z9))return function ez(t){const i=new Date(0);let e=0,n=0;const r=t[8]?i.setUTCFullYear:i.setFullYear,o=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-e,s=Number(t[5]||0)-n,c=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(i,a,s,c,l),i}(n)}const i=new Date(t);if(!Q2(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=ts(e,i)||i;let s,a=[];for(;i;){if(s=$9.exec(i),!s){a.push(i);break}{a=a.concat(s.slice(1));const d=a.pop();if(!d)break;i=d}}let c=r.getTimezoneOffset();n&&(c=X2(n,c),r=function Z9(t,i,e){const n=e?-1:1,r=t.getTimezoneOffset();return function K9(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(X2(i,r)-r))}(r,n,!0));let l="";return a.forEach(d=>{const u=function Y9(t){if(_x[t])return _x[t];let i;switch(t){case"G":case"GG":case"GGG":i=Li(Ft.Eras,qt.Abbreviated);break;case"GGGG":i=Li(Ft.Eras,qt.Wide);break;case"GGGGG":i=Li(Ft.Eras,qt.Narrow);break;case"y":i=hn(_t.FullYear,1,0,!1,!0);break;case"yy":i=hn(_t.FullYear,2,0,!0,!0);break;case"yyy":i=hn(_t.FullYear,3,0,!1,!0);break;case"yyyy":i=hn(_t.FullYear,4,0,!1,!0);break;case"Y":i=Rp(1);break;case"YY":i=Rp(2,!0);break;case"YYY":i=Rp(3);break;case"YYYY":i=Rp(4);break;case"M":case"L":i=hn(_t.Month,1,1);break;case"MM":case"LL":i=hn(_t.Month,2,1);break;case"MMM":i=Li(Ft.Months,qt.Abbreviated);break;case"MMMM":i=Li(Ft.Months,qt.Wide);break;case"MMMMM":i=Li(Ft.Months,qt.Narrow);break;case"LLL":i=Li(Ft.Months,qt.Abbreviated,nn.Standalone);break;case"LLLL":i=Li(Ft.Months,qt.Wide,nn.Standalone);break;case"LLLLL":i=Li(Ft.Months,qt.Narrow,nn.Standalone);break;case"w":i=gx(1);break;case"ww":i=gx(2);break;case"W":i=gx(1,!0);break;case"d":i=hn(_t.Date,1);break;case"dd":i=hn(_t.Date,2);break;case"c":case"cc":i=hn(_t.Day,1);break;case"ccc":i=Li(Ft.Days,qt.Abbreviated,nn.Standalone);break;case"cccc":i=Li(Ft.Days,qt.Wide,nn.Standalone);break;case"ccccc":i=Li(Ft.Days,qt.Narrow,nn.Standalone);break;case"cccccc":i=Li(Ft.Days,qt.Short,nn.Standalone);break;case"E":case"EE":case"EEE":i=Li(Ft.Days,qt.Abbreviated);break;case"EEEE":i=Li(Ft.Days,qt.Wide);break;case"EEEEE":i=Li(Ft.Days,qt.Narrow);break;case"EEEEEE":i=Li(Ft.Days,qt.Short);break;case"a":case"aa":case"aaa":i=Li(Ft.DayPeriods,qt.Abbreviated);break;case"aaaa":i=Li(Ft.DayPeriods,qt.Wide);break;case"aaaaa":i=Li(Ft.DayPeriods,qt.Narrow);break;case"b":case"bb":case"bbb":i=Li(Ft.DayPeriods,qt.Abbreviated,nn.Standalone,!0);break;case"bbbb":i=Li(Ft.DayPeriods,qt.Wide,nn.Standalone,!0);break;case"bbbbb":i=Li(Ft.DayPeriods,qt.Narrow,nn.Standalone,!0);break;case"B":case"BB":case"BBB":i=Li(Ft.DayPeriods,qt.Abbreviated,nn.Format,!0);break;case"BBBB":i=Li(Ft.DayPeriods,qt.Wide,nn.Format,!0);break;case"BBBBB":i=Li(Ft.DayPeriods,qt.Narrow,nn.Format,!0);break;case"h":i=hn(_t.Hours,1,-12);break;case"hh":i=hn(_t.Hours,2,-12);break;case"H":i=hn(_t.Hours,1);break;case"HH":i=hn(_t.Hours,2);break;case"m":i=hn(_t.Minutes,1);break;case"mm":i=hn(_t.Minutes,2);break;case"s":i=hn(_t.Seconds,1);break;case"ss":i=hn(_t.Seconds,2);break;case"S":i=hn(_t.FractionalSeconds,1);break;case"SS":i=hn(_t.FractionalSeconds,2);break;case"SSS":i=hn(_t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=Ip(An.Short);break;case"ZZZZZ":i=Ip(An.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=Ip(An.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=Ip(An.Long);break;default:return null}return _x[t]=i,i}(d);l+=u?u(r,e,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Mp(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function ts(t,i){const e=function A9(t){return xr(t)[Ue.LocaleId]}(t);if(nh[e]=nh[e]||{},nh[e][i])return nh[e][i];let n="";switch(i){case"shortDate":n=Sp(t,Xi.Short);break;case"mediumDate":n=Sp(t,Xi.Medium);break;case"longDate":n=Sp(t,Xi.Long);break;case"fullDate":n=Sp(t,Xi.Full);break;case"shortTime":n=Ep(t,Xi.Short);break;case"mediumTime":n=Ep(t,Xi.Medium);break;case"longTime":n=Ep(t,Xi.Long);break;case"fullTime":n=Ep(t,Xi.Full);break;case"short":const r=ts(t,"shortTime"),o=ts(t,"shortDate");n=Ap(Tp(t,Xi.Short),[r,o]);break;case"medium":const a=ts(t,"mediumTime"),s=ts(t,"mediumDate");n=Ap(Tp(t,Xi.Medium),[a,s]);break;case"long":const c=ts(t,"longTime"),l=ts(t,"longDate");n=Ap(Tp(t,Xi.Long),[c,l]);break;case"full":const d=ts(t,"fullTime"),u=ts(t,"fullDate");n=Ap(Tp(t,Xi.Full),[d,u])}return n&&(nh[e][i]=n),n}function Ap(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function Wo(t,i,e="-",n,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===_t.Hours)0===s&&-12===e&&(s=12);else if(t===_t.FractionalSeconds)return function W9(t,i){return Wo(t,3).substring(0,i)}(s,i);const c=go(a,ft.MinusSign);return Wo(s,i,c,n,r)}}function Li(t,i,e=nn.Format,n=!1){return function(r,o){return function q9(t,i,e,n,r,o){switch(e){case Ft.Months:return function R9(t,i,e){const n=xr(t),o=_o([n[Ue.MonthsFormat],n[Ue.MonthsStandalone]],i);return _o(o,e)}(i,r,n)[t.getMonth()];case Ft.Days:return function F9(t,i,e){const n=xr(t),o=_o([n[Ue.DaysFormat],n[Ue.DaysStandalone]],i);return _o(o,e)}(i,r,n)[t.getDay()];case Ft.DayPeriods:const a=t.getHours(),s=t.getMinutes();if(o){const l=function N9(t){const i=xr(t);return G2(i),(i[Ue.ExtraData][2]||[]).map(n=>"string"==typeof n?px(n):[px(n[0]),px(n[1])])}(i),d=function B9(t,i,e){const n=xr(t);G2(n);const o=_o([n[Ue.ExtraData][0],n[Ue.ExtraData][1]],i)||[];return _o(o,e)||[]}(i,r,n),u=l.findIndex(h=>{if(Array.isArray(h)){const[f,m]=h,g=a>=f.hours&&s>=f.minutes,p=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case An.Short:return(r>=0?"+":"")+Wo(a,2,o)+Wo(Math.abs(r%60),2,o);case An.ShortGMT:return"GMT"+(r>=0?"+":"")+Wo(a,1,o);case An.Long:return"GMT"+(r>=0?"+":"")+Wo(a,2,o)+":"+Wo(Math.abs(r%60),2,o);case An.Extended:return 0===n?"Z":(r>=0?"+":"")+Wo(a,2,o)+":"+Wo(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const X9=0,Fp=4;function q2(t){return Mp(t.getFullYear(),t.getMonth(),t.getDate()+(Fp-t.getDay()))}function gx(t,i=!1){return function(e,n){let r;if(i){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{const o=q2(e),a=function Q9(t){const i=Mp(t,X9,1).getDay();return Mp(t,0,1+(i<=Fp?Fp:Fp+7)-i)}(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Wo(r,t,go(n,ft.MinusSign))}}function Rp(t,i=!1){return function(e,n){return Wo(q2(e).getFullYear(),t,go(n,ft.MinusSign),i)}}const _x={};function X2(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function Q2(t){return t instanceof Date&&!isNaN(t.valueOf())}function J2(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[r,o]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===i)return decodeURIComponent(o)}return null}const Cx=/\s+/,eM=[];let Ms=(()=>{class t{constructor(e,n,r,o){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=o,this.initialClasses=eM,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Cx):eM}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Cx):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,Boolean(e[n]));this._applyStateDiff()}_updateState(e,n){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],r=e[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(Cx).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(b(Za),b(th),b(Fe),b(qa))},t.\u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class fz{constructor(i,e,n,r){this.$implicit=i,this.ngForOf=e,this.index=n,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 bo=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,r){this._viewContainer=e,this._template=n,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 n=this._viewContainer;e.forEachOperation((r,o,a)=>{if(null==r.previousIndex)n.createEmbeddedView(this._template,new fz(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)n.remove(null===o?void 0:o);else if(null!==o){const s=n.get(o);n.move(s,a),nM(s,r)}});for(let r=0,o=n.length;r{nM(n.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i),b(Za))},t.\u0275dir=Q({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function nM(t,i){t.context.$implicit=i.item}let fn=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new pz,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){rM("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){rM("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,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i))},t.\u0275dir=Q({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class pz{constructor(){this.$implicit=null,this.ngIf=null}}function rM(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Pi(i)}'.`)}class kx{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let oh=(()=>{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 n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),Dx=(()=>{class t{constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new kx(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i),b(oh,9))},t.\u0275dir=Q({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),oM=(()=>{class t{constructor(e,n,r){r._addDefault(new kx(e,n))}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i),b(oh,9))},t.\u0275dir=Q({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),Pp=(()=>{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 n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:a}=this;this._viewRef=n.createEmbeddedView(r,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(b(Fi))},t.\u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ei]}),t})();function Go(t,i){return new ue(2100,!1)}class bz{createSubscription(i,e){return i.subscribe({next:e,error:n=>{throw n}})}dispose(i){i.unsubscribe()}}class vz{createSubscription(i,e){return i.then(e,n=>{throw n})}dispose(i){}}const xz=new vz,yz=new bz;let sM=(()=>{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,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(ju(e))return xz;if(sE(e))return yz;throw Go()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(b(Gt,16))},t.\u0275pipe=Mr({name:"async",type:t,pure:!1,standalone:!0}),t})(),cM=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Go();return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Mr({name:"uppercase",type:t,pure:!0,standalone:!0}),t})();const Sz=new ae("DATE_PIPE_DEFAULT_TIMEZONE"),Ez=new ae("DATE_PIPE_DEFAULT_OPTIONS");let lM=(()=>{class t{constructor(e,n,r){this.locale=e,this.defaultTimezone=n,this.defaultOptions=r}transform(e,n,r,o){if(null==e||""===e||e!=e)return null;try{return j9(e,n??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw Go()}}}return t.\u0275fac=function(e){return new(e||t)(b(ga,16),b(Sz,24),b(Ez,24))},t.\u0275pipe=Mr({name:"date",type:t,pure:!0,standalone:!0}),t})(),nr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const uM="browser";let Uz=(()=>{class t{}return t.\u0275prov=ve({token:t,providedIn:"root",factory:()=>new zz(G(nt),window)}),t})();class zz{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function $z(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const o=r.shadowRoot;if(o){const a=o.getElementById(i)||o.querySelector(`[name="${i}"]`);if(a)return a}r=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=i)}}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const i=hM(this.window.history)||hM(Object.getPrototypeOf(this.window.history));return!(!i||!i.writable&&!i.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function hM(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class fM{}class g$ extends w9{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Ax extends g${static makeCurrent(){!function y9(t){ux||(ux=t)}(new Ax)}onAndCancel(i,e,n){return i.addEventListener(e,n,!1),()=>{i.removeEventListener(e,n,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function _$(){return sh=sh||document.querySelector("base"),sh?sh.getAttribute("href"):null}();return null==e?null:function b$(t){Bp=Bp||document.createElement("a"),Bp.setAttribute("href",t);const i=Bp.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){sh=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return J2(document.cookie,i)}}let Bp,sh=null;const bM=new ae("TRANSITION_ID"),x$=[{provide:vp,useFactory:function v$(t,i,e){return()=>{e.get(xp).donePromise.then(()=>{const n=Ja(),r=i.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const Vp=new ae("EventManagerPlugins");let Hp=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,r){return this._findPluginFor(n).addEventListener(e,n,r)}addGlobalEventListener(e,n,r){return this._findPluginFor(n).addGlobalEventListener(e,n,r)}getZone(){return this._zone}_findPluginFor(e){const n=this._eventNameToPlugin.get(e);if(n)return n;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)0===this.changeUsageCount(n,-1)&&this.onStyleRemoved(n)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,n){const r=this.usageCount;let o=r.get(e)??0;return o+=n,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),ch=(()=>{class t extends xM{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.forEach(o=>o.remove()),n.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,n){const r=this.doc.createElement("style");r.textContent=n,e.appendChild(r);const o=this.styleRef.get(n);o?o.push(r):this.styleRef.set(n,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const Ix={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/"},Fx=/%COMP%/g,CM=new ae("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function kM(t,i){return i.flat(100).map(e=>e.replace(Fx,t))}function DM(t){return i=>{if("__ngUnwrap__"===i)return t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let Up=(()=>{class t{constructor(e,n,r,o){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new Rx(e)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,n);return r instanceof TM?r.applyToHost(e):r instanceof Ox&&r.applyStyles(),r}getOrCreateRenderer(e,n){const r=this.rendererByCompId;let o=r.get(n.id);if(!o){const a=this.eventManager,s=this.sharedStylesHost,c=this.removeStylesOnCompDestory;switch(n.encapsulation){case No.Emulated:o=new TM(a,s,n,this.appId,c);break;case No.ShadowDom:return new M$(a,s,e,n);default:o=new Ox(a,s,n,c)}o.onDestroy=()=>r.delete(n.id),r.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(G(Hp),G(ch),G(fd),G(CM))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();class Rx{constructor(i){this.eventManager=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?document.createElementNS(Ix[e]||e,i):document.createElement(i)}createComment(i){return document.createComment(i)}createText(i){return document.createTextNode(i)}appendChild(i,e){(EM(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(EM(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?document.querySelector(i):i;if(!n)throw new Error(`The selector "${i}" did not match any elements`);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,r){if(r){e=r+":"+e;const o=Ix[r];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const r=Ix[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,r){r&(Fr.DashCase|Fr.Important)?i.style.setProperty(e,n,r&Fr.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Fr.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){return"string"==typeof i?this.eventManager.addGlobalEventListener(i,e,DM(n)):this.eventManager.addEventListener(i,e,DM(n))}}function EM(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class M$ extends Rx{constructor(i,e,n,r){super(i),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=kM(r.id,r.styles);for(const a of o){const s=document.createElement("style");s.textContent=a,this.shadowRoot.appendChild(s)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Ox extends Rx{constructor(i,e,n,r,o=n.id){super(i),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=kM(o,n.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class TM extends Ox{constructor(i,e,n,r,o){const a=r+"-"+n.id;super(i,e,n,o,a),this.contentAttr=function S$(t){return"_ngcontent-%COMP%".replace(Fx,t)}(a),this.hostAttr=function E$(t){return"_nghost-%COMP%".replace(Fx,t)}(a)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}let A$=(()=>{class t extends vM{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r){return e.addEventListener(n,r,!1),()=>this.removeEventListener(e,n,r)}removeEventListener(e,n,r){return e.removeEventListener(n,r)}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const MM=["alt","control","meta","shift"],I$={"\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"},F$={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let R$=(()=>{class t extends vM{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const o=t.parseEventName(n),a=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ja().onAndCancel(e,o.domEventName,a))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(n.pop());let a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),MM.forEach(l=>{const d=n.indexOf(l);d>-1&&(n.splice(d,1),a+=l+".")}),a+=o,0!=n.length||0===o.length)return null;const c={};return c.domEventName=r,c.fullKey=a,c}static matchEventFullKeyCode(e,n){let r=I$[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),MM.forEach(a=>{a!==r&&(0,F$[a])(e)&&(o+=a+".")}),o+=r,o===n)}static eventCallback(e,n,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const N$=w2(b9,"browser",[{provide:yp,useValue:uM},{provide:u2,useValue:function O$(){Ax.makeCurrent()},multi:!0},{provide:nt,useFactory:function L$(){return function w5(t){Hb=t}(document),document},deps:[]}]),FM=new ae(""),RM=[{provide:wp,useClass:class y${addToWindow(i){Hi.getAngularTestability=(n,r=!0)=>{const o=i.findTestabilityInTree(n,r);if(null==o)throw new Error("Could not find testability for element.");return o},Hi.getAllAngularTestabilities=()=>i.getAllTestabilities(),Hi.getAllAngularRootElements=()=>i.getAllRootElements(),Hi.frameworkStabilizers||(Hi.frameworkStabilizers=[]),Hi.frameworkStabilizers.push(n=>{const r=Hi.getAllAngularTestabilities();let o=r.length,a=!1;const s=function(c){a=a||c,o--,0==o&&n(a)};r.forEach(function(c){c.whenStable(s)})})}findTestabilityInTree(i,e,n){return null==e?null:i.getTestability(e)??(n?Ja().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:_2,useClass:ix,deps:[ze,nx,wp]},{provide:ix,useClass:ix,deps:[ze,nx,wp]}],OM=[{provide:Qb,useValue:"root"},{provide:Xa,useFactory:function P$(){return new Xa},deps:[]},{provide:Vp,useClass:A$,multi:!0,deps:[nt,ze,yp]},{provide:Vp,useClass:R$,multi:!0,deps:[nt]},{provide:Up,useClass:Up,deps:[Hp,ch,fd,CM]},{provide:Vu,useExisting:Up},{provide:xM,useExisting:ch},{provide:ch,useClass:ch,deps:[nt]},{provide:Hp,useClass:Hp,deps:[Vp,ze]},{provide:fM,useClass:w$,deps:[]},[]];let PM=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:fd,useValue:e.appId},{provide:bM,useExisting:fd},x$]}}}return t.\u0275fac=function(e){return new(e||t)(G(FM,12))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[...OM,...RM],imports:[nr,v9]}),t})(),LM=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:function(e){let n=null;return n=e?new e:function V$(){return new LM(G(nt))}(),n},providedIn:"root"}),t})();typeof window<"u"&&window;let Nx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(e){let n=null;return n=e?new(e||t):G(VM),n},providedIn:"root"}),t})(),VM=(()=>{class t extends Nx{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case di.NONE:return n;case di.HTML:return ca(n,"HTML")?Kr(n):tS(this._doc,String(n)).toString();case di.STYLE:return ca(n,"Style")?Kr(n):n;case di.SCRIPT:if(ca(n,"Script"))return Kr(n);throw new Error("unsafe value used in a script context");case di.URL:return ca(n,"URL")?Kr(n):Wm(String(n));case di.RESOURCE_URL:if(ca(n,"ResourceURL"))return Kr(n);throw new Error(`unsafe value used in a resource URL context (see ${um})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${um})`)}}bypassSecurityTrustHtml(e){return function M5(t){return new C5(t)}(e)}bypassSecurityTrustStyle(e){return function A5(t){return new k5(t)}(e)}bypassSecurityTrustScript(e){return function I5(t){return new D5(t)}(e)}bypassSecurityTrustUrl(e){return function F5(t){return new S5(t)}(e)}bypassSecurityTrustResourceUrl(e){return function R5(t){return new E5(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:function(e){let n=null;return n=e?new e:function j$(t){return new VM(t.get(nt))}(G(tn)),n},providedIn:"root"}),t})();function $e(...t){return Ji(t,_u(t))}class Vn extends ke{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){const{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}}const lh=dc(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:W$}=Array,{getPrototypeOf:G$,prototype:q$,keys:X$}=Object;function HM(t){if(1===t.length){const i=t[0];if(W$(i))return{args:i,keys:null};if(function Q$(t){return t&&"object"==typeof t&&G$(t)===q$}(i)){const e=X$(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}const{isArray:Y$}=Array;function Bx(t){return Ke(i=>function K$(t,i){return Y$(i)?t(...i):t(i)}(t,i))}function UM(t,i){return t.reduce((e,n,r)=>(e[n]=i[r],e),{})}function Fc(...t){const i=_u(t),e=sk(t),{args:n,keys:r}=HM(t);if(0===n.length)return Ji([],i);const o=new ni(function Z$(t,i,e=Cs){return n=>{zM(i,()=>{const{length:r}=t,o=new Array(r);let a=r,s=r;for(let c=0;c{const l=Ji(t[c],i);let d=!1;l.subscribe(Bi(n,u=>{o[c]=u,d||(d=!0,s--),s||n.next(e(o.slice()))},()=>{--a||n.complete()}))},n)},n)}}(n,i,r?a=>UM(r,a):Cs));return e?o.pipe(Bx(e)):o}function zM(t,i,e){t?Ba(e,t,i):i()}function dh(...t){return function J$(){return El(1)}()(Ji(t,_u(t)))}function gd(t){return new ni(i=>{Yn(t()).subscribe(i)})}function Rc(t,i){const e=Wt(t)?t:()=>t,n=r=>r.error(e());return new ni(i?r=>i.schedule(n,0,r):n)}function Vx(){return Gi((t,i)=>{let e=null;t._refCount++;const n=Bi(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}class Hx extends ni{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,qC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new yt;const e=this.getSubject();i.add(this.source.subscribe(Bi(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=yt.EMPTY)}return i}refCount(){return Vx()(this)}}function mn(t,i){return Gi((e,n)=>{let r=null,o=0,a=!1;const s=()=>a&&!r&&n.complete();e.subscribe(Bi(n,c=>{r?.unsubscribe();let l=0;const d=o++;Yn(t(c,d)).subscribe(r=Bi(n,u=>n.next(i?i(c,u,d,l++):u),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function ui(t){return t<=0?()=>Wr:Gi((i,e)=>{let n=0;i.subscribe(Bi(e,r=>{++n<=t&&(e.next(r),t<=n&&e.complete())}))})}function Hn(...t){const i=_u(t);return Gi((e,n)=>{(i?dh(t,e,i):dh(t,e)).subscribe(n)})}function hi(t,i){return Gi((e,n)=>{let r=0;e.subscribe(Bi(n,o=>t.call(i,o,r++)&&n.next(o)))})}function zp(t){return Gi((i,e)=>{let n=!1;i.subscribe(Bi(e,r=>{n=!0,e.next(r)},()=>{n||e.next(t),e.complete()}))})}function $M(t=ej){return Gi((i,e)=>{let n=!1;i.subscribe(Bi(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(t())))})}function ej(){return new lh}function vo(t,i){const e=arguments.length>=2;return n=>n.pipe(t?hi((r,o)=>t(r,o,n)):Cs,ui(1),e?zp(i):$M(()=>new lh))}function Is(t,i){return Wt(i)?En(t,i,1):En(t,1)}function zi(t,i,e){const n=Wt(t)||i||e?{next:t,error:i,complete:e}:t;return n?Gi((r,o)=>{var a;null===(a=n.subscribe)||void 0===a||a.call(n);let s=!0;r.subscribe(Bi(o,c=>{var l;null===(l=n.next)||void 0===l||l.call(n,c),o.next(c)},()=>{var c;s=!1,null===(c=n.complete)||void 0===c||c.call(n),o.complete()},c=>{var l;s=!1,null===(l=n.error)||void 0===l||l.call(n,c),o.error(c)},()=>{var c,l;s&&(null===(c=n.unsubscribe)||void 0===c||c.call(n)),null===(l=n.finalize)||void 0===l||l.call(n)}))}):Cs}function pn(t){return Gi((i,e)=>{let o,n=null,r=!1;n=i.subscribe(Bi(e,void 0,void 0,a=>{o=Yn(t(a,pn(t)(i))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(e))})}function jM(t,i){return Gi(function tj(t,i,e,n,r){return(o,a)=>{let s=e,c=i,l=0;o.subscribe(Bi(a,d=>{const u=l++;c=s?t(c,d,u):(s=!0,d),n&&a.next(c)},r&&(()=>{s&&a.next(c),a.complete()})))}}(t,i,arguments.length>=2,!0))}function Ux(t){return t<=0?()=>Wr:Gi((i,e)=>{let n=[];i.subscribe(Bi(e,r=>{n.push(r),t{for(const r of n)e.next(r);e.complete()},void 0,()=>{n=null}))})}function WM(t,i){const e=arguments.length>=2;return n=>n.pipe(t?hi((r,o)=>t(r,o,n)):Cs,Ux(1),e?zp(i):$M(()=>new lh))}function GM(t,i=!1){return Gi((e,n)=>{let r=0;e.subscribe(Bi(n,o=>{const a=t(o,r++);(a||i)&&n.next(o),!a&&n.complete()}))})}function qM(t){return Ke(()=>t)}function $p(t){return Gi((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}const St="primary",uh=Symbol("RouteTitle");class ij{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function _d(t){return new ij(t)}function nj(t,i,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.lengthn[o]===r)}return t===i}function QM(t){return Array.prototype.concat.apply([],t)}function YM(t){return t.length>0?t[t.length-1]:null}function qn(t,i){for(const e in t)t.hasOwnProperty(e)&&i(t[e],e)}function Fs(t){return yv(t)?t:ju(t)?Ji(Promise.resolve(t)):$e(t)}const jp=!1,oj={exact:function JM(t,i,e){if(!Oc(t.segments,i.segments)||!Wp(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!JM(t.children[n],i.children[n],e))return!1;return!0},subset:eA},KM={exact:function aj(t,i){return _a(t,i)},subset:function sj(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>XM(t[e],i[e]))},ignored:()=>!0};function ZM(t,i,e){return oj[e.paths](t.root,i.root,e.matrixParams)&&KM[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function eA(t,i,e){return tA(t,i,i.segments,e)}function tA(t,i,e,n){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Oc(r,e)||i.hasChildren()||!Wp(r,e,n))}if(t.segments.length===e.length){if(!Oc(t.segments,e)||!Wp(t.segments,e,n))return!1;for(const r in i.children)if(!t.children[r]||!eA(t.children[r],i.children[r],n))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Oc(t.segments,r)&&Wp(t.segments,r,n)&&t.children[St])&&tA(t.children[St],i,o,n)}}function Wp(t,i,e){return i.every((n,r)=>KM[e](t[r].parameters,n.parameters))}class Rs{constructor(i=new Ut([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_d(this.queryParams)),this._queryParamMap}toString(){return dj.serialize(this)}}class Ut{constructor(i,e){this.segments=i,this.children=e,this.parent=null,qn(e,(n,r)=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gp(this)}}class hh{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=_d(this.parameters)),this._parameterMap}toString(){return rA(this)}}function Oc(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let fh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return new zx},providedIn:"root"}),t})();class zx{parse(i){const e=new vj(i);return new Rs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${mh(i.root,!0)}`,n=function fj(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(r=>`${qp(e)}=${qp(r)}`).join("&"):`${qp(e)}=${qp(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function uj(t){return encodeURI(t)}(i.fragment)}`:""}`}}const dj=new zx;function Gp(t){return t.segments.map(i=>rA(i)).join("/")}function mh(t,i){if(!t.hasChildren())return Gp(t);if(i){const e=t.children[St]?mh(t.children[St],!1):"",n=[];return qn(t.children,(r,o)=>{o!==St&&n.push(`${o}:${mh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function lj(t,i){let e=[];return qn(t.children,(n,r)=>{r===St&&(e=e.concat(i(n,r)))}),qn(t.children,(n,r)=>{r!==St&&(e=e.concat(i(n,r)))}),e}(t,(n,r)=>r===St?[mh(t.children[St],!1)]:[`${r}:${mh(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[St]?`${Gp(t)}/${e[0]}`:`${Gp(t)}/(${e.join("//")})`}}function iA(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qp(t){return iA(t).replace(/%3B/gi,";")}function $x(t){return iA(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xp(t){return decodeURIComponent(t)}function nA(t){return Xp(t.replace(/\+/g,"%20"))}function rA(t){return`${$x(t.path)}${function hj(t){return Object.keys(t).map(i=>`;${$x(i)}=${$x(t[i])}`).join("")}(t.parameters)}`}const mj=/^[^\/()?;=#]+/;function Qp(t){const i=t.match(mj);return i?i[0]:""}const pj=/^[^=?&#]+/,_j=/^[^&#]+/;class vj{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ut([],{}):new Ut([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[St]=new Ut(i,e)),n}parseSegment(){const i=Qp(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new ue(4009,jp);return this.capture(i),new hh(Xp(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=Qp(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=Qp(this.remaining);r&&(n=r,this.capture(n))}i[Xp(e)]=Xp(n)}parseQueryParam(i){const e=function gj(t){const i=t.match(pj);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const a=function bj(t){const i=t.match(_j);return i?i[0]:""}(this.remaining);a&&(n=a,this.capture(n))}const r=nA(e),o=nA(n);if(i.hasOwnProperty(r)){let a=i[r];Array.isArray(a)||(a=[a],i[r]=a),a.push(o)}else i[r]=o}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Qp(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new ue(4010,jp);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):i&&(o=St);const a=this.parseChildren();e[o]=1===Object.keys(a).length?a[St]:new Ut([],a),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new ue(4011,jp)}}function jx(t){return t.segments.length>0?new Ut([],{[St]:t}):t}function Yp(t){const i={};for(const n of Object.keys(t.children)){const o=Yp(t.children[n]);(o.segments.length>0||o.hasChildren())&&(i[n]=o)}return function xj(t){if(1===t.numberOfChildren&&t.children[St]){const i=t.children[St];return new Ut(t.segments.concat(i.segments),i.children)}return t}(new Ut(t.segments,i))}function Pc(t){return t instanceof Rs}const Wx=!1;function yj(t,i,e,n,r){if(0===e.length)return bd(i.root,i.root,i.root,n,r);const o=function lA(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new cA(!0,0,t);let i=0,e=!1;const n=t.reduce((r,o,a)=>{if("object"==typeof o&&null!=o){if(o.outlets){const s={};return qn(o.outlets,(c,l)=>{s[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===a?(o.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?e=!0:".."===s?i++:""!=s&&r.push(s))}),r):[...r,o]},[]);return new cA(e,i,n)}(e);return o.toRoot()?bd(i.root,i.root,new Ut([],{}),n,r):function a(c){const l=function Cj(t,i,e,n){if(t.isAbsolute)return new vd(i.root,!0,0);if(-1===n)return new vd(e,e===i.root,0);return function dA(t,i,e){let n=t,r=i,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new ue(4005,Wx&&"Invalid number of '../'");r=n.segments.length}return new vd(n,!1,r-o)}(e,n+(ph(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,i,t.snapshot?._urlSegment,c),d=l.processChildren?xd(l.segmentGroup,l.index,o.commands):Gx(l.segmentGroup,l.index,o.commands);return bd(i.root,l.segmentGroup,d,n,r)}(t.snapshot?._lastPathIndex)}function ph(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function gh(t){return"object"==typeof t&&null!=t&&t.outlets}function bd(t,i,e,n,r){let a,o={};n&&qn(n,(c,l)=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`}),a=t===i?e:sA(t,i,e);const s=jx(Yp(a));return new Rs(s,o,r)}function sA(t,i,e){const n={};return qn(t.children,(r,o)=>{n[o]=r===i?e:sA(r,i,e)}),new Ut(t.segments,n)}class cA{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&ph(n[0]))throw new ue(4003,Wx&&"Root segment cannot have matrix parameters");const r=n.find(gh);if(r&&r!==YM(n))throw new ue(4004,Wx&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class vd{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function Gx(t,i,e){if(t||(t=new Ut([],{})),0===t.segments.length&&t.hasChildren())return xd(t,i,e);const n=function Dj(t,i,e){let n=0,r=i;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const a=t.segments[r],s=e[n];if(gh(s))break;const c=`${s}`,l=n0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!hA(c,l,a))return o;n+=2}else{if(!hA(c,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,i,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[a]=Gx(t.children[a],i,o))}),qn(t.children,(o,a)=>{void 0===n[a]&&(r[a]=o)}),new Ut(t.segments,r)}}function qx(t,i,e){const n=t.segments.slice(0,i);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(i[n]=qx(new Ut([],{}),0,e))}),i}function uA(t){const i={};return qn(t,(e,n)=>i[n]=`${e}`),i}function hA(t,i,e){return t==e.path&&_a(i,e.parameters)}const _h="imperative";class ba{constructor(i,e){this.id=i,this.url=e}}class Xx extends ba{constructor(i,e,n="imperative",r=null){super(i,e),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Os extends ba{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Kp extends ba{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Zp extends ba{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=16}}class Qx extends ba{constructor(i,e,n,r){super(i,e),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ej extends ba{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Tj extends ba{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mj extends ba{constructor(i,e,n,r,o){super(i,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Aj extends ba{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ij extends ba{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fj{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Rj{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Oj{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pj{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Lj{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Nj{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fA{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Hj=(()=>{class t{createUrlTree(e,n,r,o,a,s){return yj(e||n.root,r,o,a,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),zj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(i){return Hj.\u0275fac(i)},providedIn:"root"}),t})();class mA{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=Yx(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=Yx(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=Kx(i,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==i)}pathFromRoot(i){return Kx(i,this._root).map(e=>e.value)}}function Yx(t,i){if(t===i.value)return i;for(const e of i.children){const n=Yx(t,e);if(n)return n}return null}function Kx(t,i){if(t===i.value)return[i];for(const e of i.children){const n=Kx(t,e);if(n.length)return n.unshift(i),n}return[]}class is{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function yd(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class pA extends mA{constructor(i,e){super(i),this.snapshot=e,Zx(this,i)}toString(){return this.snapshot.toString()}}function gA(t,i){const e=function $j(t,i){const a=new Jp([],{},{},"",{},St,i,null,t.root,-1,{});return new bA("",new is(a,[]))}(t,i),n=new Vn([new hh("",{})]),r=new Vn({}),o=new Vn({}),a=new Vn({}),s=new Vn(""),c=new wd(n,r,a,s,o,St,i,e.root);return c.snapshot=e.root,new pA(new is(c,[]),e)}class wd{constructor(i,e,n,r,o,a,s,c){this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.title=this.data?.pipe(Ke(l=>l[uh]))??$e(void 0),this._futureSnapshot=c}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Ke(i=>_d(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ke(i=>_d(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function _A(t,i="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==i)for(n=e.length-1;n>=1;){const r=e[n],o=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function jj(t){return t.reduce((i,e)=>({params:{...i.params,...e.params},data:{...i.data,...e.data},resolve:{...e.data,...i.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class Jp{get title(){return this.data?.[uh]}constructor(i,e,n,r,o,a,s,c,l,d,u){this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=_d(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_d(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class bA extends mA{constructor(i,e){super(e),this.url=i,Zx(this,e)}toString(){return vA(this._root)}}function Zx(t,i){i.value._routerState=t,i.children.forEach(e=>Zx(t,e))}function vA(t){const i=t.children.length>0?` { ${t.children.map(vA).join(", ")} } `:"";return`${t.value}${i}`}function Jx(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_a(i.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),i.fragment!==e.fragment&&t.fragment.next(e.fragment),_a(i.params,e.params)||t.params.next(e.params),function rj(t,i){if(t.length!==i.length)return!1;for(let e=0;e_a(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||ey(t.parent,i.parent))}function bh(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const r=function Gj(t,i,e){return i.children.map(n=>{for(const r of e.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return bh(t,n,r);return bh(t,n)})}(t,i,e);return new is(n,r)}{if(t.shouldAttach(i.value)){const o=t.retrieve(i.value);if(null!==o){const a=o.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>bh(t,s)),a}}const n=function qj(t){return new wd(new Vn(t.url),new Vn(t.params),new Vn(t.queryParams),new Vn(t.fragment),new Vn(t.data),t.outlet,t.component,t)}(i.value),r=i.children.map(o=>bh(t,o));return new is(n,r)}}const ty="ngNavigationCancelingError";function xA(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=Pc(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,r=yA(!1,0,i);return r.url=e,r.navigationBehaviorOptions=n,r}function yA(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[ty]=!0,n.cancellationCode=i,e&&(n.url=e),n}function wA(t){return CA(t)&&Pc(t.url)}function CA(t){return t&&t[ty]}class Xj{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new vh,this.attachRef=null}}let vh=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Xj,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const eg=!1;let iy=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=St,this.activateEvents=new xe,this.deactivateEvents=new xe,this.attachEvents=new xe,this.detachEvents=new xe,this.parentContexts=ht(vh),this.location=ht(Fi),this.changeDetector=ht(Gt),this.environmentInjector=ht(la)}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:r}=e.name;if(n)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ue(4012,eg);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,eg);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,eg);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ue(4013,eg);this._activatedRoute=e;const r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new Qj(e,s,r.injector);if(n&&function Yj(t){return!!t.resolveComponentFactory}(n)){const l=n.resolveComponentFactory(a);this.activated=r.createComponent(l,r.length,c)}else this.activated=r.createComponent(a,{index:r.length,injector:c,environmentInjector:n??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ei]}),t})();class Qj{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===wd?this.route:i===vh?this.childContexts:this.parent.get(i,e)}}let ny=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ve({type:t,selectors:[["ng-component"]],standalone:!0,features:[Lv],decls:1,vars:0,template:function(e,n){1&e&&Se(0,"router-outlet")},dependencies:[iy],encapsulation:2}),t})();function kA(t,i){return t.providers&&!t._injector&&(t._injector=mp(t.providers,i,`Route: ${t.path}`)),t._injector??i}function oy(t){const i=t.children&&t.children.map(oy),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==St&&(e.component=ny),e}function xo(t){return t.outlet||St}function DA(t,i){const e=t.filter(n=>xo(n)===i);return e.push(...t.filter(n=>xo(n)!==i)),e}function xh(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class tW{constructor(i,e,n,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(i){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),Jx(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const r=yd(e);i.children.forEach(o=>{const a=o.value.outlet;this.deactivateRoutes(o,r[a],n),delete r[a]}),qn(r,(o,a)=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(i,e,n){const r=i.value,o=e?e.value:null;if(r===o)if(r.component){const a=n.getContext(r.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=yd(i);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);if(n&&n.outlet){const a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){const n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=yd(i);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(i,e,n){const r=yd(e);i.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Nj(o.value.snapshot))}),i.children.length&&this.forwardEvent(new Pj(i.value.snapshot))}activateRoutes(i,e,n){const r=i.value,o=e?e.value:null;if(Jx(r),r===o)if(r.component){const a=n.getOrCreateContext(r.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(r.component){const a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Jx(s.route.value),this.activateChildRoutes(i,null,a.children)}else{const s=xh(r.snapshot),c=s?.get(Ss)??null;a.attachRef=null,a.route=r,a.resolver=c,a.injector=s,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(i,null,a.children)}}else this.activateChildRoutes(i,null,n)}}class SA{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class tg{constructor(i,e){this.component=i,this.route=e}}function iW(t,i,e){const n=t._root;return yh(n,i?i._root:null,e,[n.value])}function Cd(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function _8(t){return null!==mm(t)}(t)?i.get(t):t:n}function yh(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=yd(i);return t.children.forEach(a=>{(function rW(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function oW(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!Oc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Oc(t.url,i.url)||!_a(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ey(t,i)||!_a(t.queryParams,i.queryParams);default:return!ey(t,i)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new SA(n)):(o.data=a.data,o._resolvedData=a._resolvedData),yh(t,i,o.component?s?s.children:null:e,n,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new tg(s.outlet.component,a))}else a&&wh(i,s,r),r.canActivateChecks.push(new SA(n)),yh(t,null,o.component?s?s.children:null:e,n,r)})(a,o[a.value.outlet],e,n.concat([a.value]),r),delete o[a.value.outlet]}),qn(o,(a,s)=>wh(a,e.getContext(s),r)),r}function wh(t,i,e){const n=yd(t),r=t.value;qn(n,(o,a)=>{wh(o,r.component?i?i.children.getContext(a):null:i,e)}),e.canDeactivateChecks.push(new tg(r.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,r))}function Ch(t){return"function"==typeof t}function ay(t){return t instanceof lh||"EmptyError"===t?.name}const ig=Symbol("INITIAL_VALUE");function kd(){return mn(t=>Fc(t.map(i=>i.pipe(ui(1),Hn(ig)))).pipe(Ke(i=>{for(const e of i)if(!0!==e){if(e===ig)return ig;if(!1===e||e instanceof Rs)return e}return!0}),hi(i=>i!==ig),ui(1)))}function EA(t){return function V3(...t){return jC(t)}(zi(i=>{if(Pc(i))throw xA(0,i)}),Ke(i=>!0===i))}const sy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function TA(t,i,e,n,r){const o=cy(t,i,e);return o.matched?function wW(t,i,e,n){const r=i.canMatch;return r&&0!==r.length?$e(r.map(a=>{const s=Cd(a,t);return Fs(function uW(t){return t&&Ch(t.canMatch)}(s)?s.canMatch(i,e):t.runInContext(()=>s(i,e)))})).pipe(kd(),EA()):$e(!0)}(n=kA(i,n),i,e).pipe(Ke(a=>!0===a?o:{...sy})):$e(o)}function cy(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...sy}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(i.matcher||nj)(e,t,i);if(!r)return{...sy};const o={};qn(r.posParams,(s,c)=>{o[c]=s.path});const a=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function ng(t,i,e,n){if(e.length>0&&function DW(t,i,e){return e.some(n=>rg(t,i,n)&&xo(n)!==St)}(t,e,n)){const o=new Ut(i,function kW(t,i,e,n){const r={};r[St]=n,n._sourceSegment=t,n._segmentIndexShift=i.length;for(const o of e)if(""===o.path&&xo(o)!==St){const a=new Ut([],{});a._sourceSegment=t,a._segmentIndexShift=i.length,r[xo(o)]=a}return r}(t,i,n,new Ut(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function SW(t,i,e){return e.some(n=>rg(t,i,n))}(t,e,n)){const o=new Ut(t.segments,function CW(t,i,e,n,r){const o={};for(const a of n)if(rg(t,e,a)&&!r[xo(a)]){const s=new Ut([],{});s._sourceSegment=t,s._segmentIndexShift=i.length,o[xo(a)]=s}return{...r,...o}}(t,i,e,n,t.children));return o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:e}}const r=new Ut(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:e}}function rg(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function MA(t,i,e,n){return!!(xo(t)===n||n!==St&&rg(i,e,t))&&("**"===t.path||cy(i,t,e).matched)}function AA(t,i,e){return 0===i.length&&!t.children[e]}const og=!1;class ag{constructor(i){this.segmentGroup=i||null}}class IA{constructor(i){this.urlTree=i}}function kh(t){return Rc(new ag(t))}function FA(t){return Rc(new IA(t))}class AW{constructor(i,e,n,r,o){this.injector=i,this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const i=ng(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ut(i.segments,i.children);return this.expandSegmentGroup(this.injector,this.config,e,St).pipe(Ke(o=>this.createUrlTree(Yp(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(pn(o=>{if(o instanceof IA)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof ag?this.noMatchError(o):o}))}match(i){return this.expandSegmentGroup(this.injector,this.config,i.root,St).pipe(Ke(r=>this.createUrlTree(Yp(r),i.queryParams,i.fragment))).pipe(pn(r=>{throw r instanceof ag?this.noMatchError(r):r}))}noMatchError(i){return new ue(4002,og)}createUrlTree(i,e,n){const r=jx(i);return new Rs(r,e,n)}expandSegmentGroup(i,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(i,e,n).pipe(Ke(o=>new Ut([],o))):this.expandSegment(i,n,e,n.segments,r,!0)}expandChildren(i,e,n){const r=[];for(const o of Object.keys(n.children))"primary"===o?r.unshift(o):r.push(o);return Ji(r).pipe(Is(o=>{const a=n.children[o],s=DA(e,o);return this.expandSegmentGroup(i,s,a,o).pipe(Ke(c=>({segment:c,outlet:o})))}),jM((o,a)=>(o[a.outlet]=a.segment,o),{}),WM())}expandSegment(i,e,n,r,o,a){return Ji(n).pipe(Is(s=>this.expandSegmentAgainstRoute(i,e,n,s,r,o,a).pipe(pn(l=>{if(l instanceof ag)return $e(null);throw l}))),vo(s=>!!s),pn((s,c)=>{if(ay(s))return AA(e,r,o)?$e(new Ut([],{})):kh(e);throw s}))}expandSegmentAgainstRoute(i,e,n,r,o,a,s){return MA(r,e,o,a)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(i,e,r,o,a):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a):kh(e):kh(e)}expandSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,r){const o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?FA(o):this.lineralizeSegments(n,o).pipe(En(a=>{const s=new Ut(a,{});return this.expandSegment(i,s,e,a,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a){const{matched:s,consumedSegments:c,remainingSegments:l,positionalParamSegments:d}=cy(e,r,o);if(!s)return kh(e);const u=this.applyRedirectCommands(c,r.redirectTo,d);return r.redirectTo.startsWith("/")?FA(u):this.lineralizeSegments(r,u).pipe(En(h=>this.expandSegment(i,e,n,h.concat(l),a,!1)))}matchSegmentAgainstRoute(i,e,n,r,o){return"**"===n.path?(i=kA(n,i),n.loadChildren?(n._loadedRoutes?$e({routes:n._loadedRoutes,injector:n._loadedInjector}):this.configLoader.loadChildren(i,n)).pipe(Ke(s=>(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,new Ut(r,{})))):$e(new Ut(r,{}))):TA(e,n,r,i).pipe(mn(({matched:a,consumedSegments:s,remainingSegments:c})=>a?this.getChildConfig(i=n._injector??i,n,r).pipe(En(d=>{const u=d.injector??i,h=d.routes,{segmentGroup:f,slicedSegments:m}=ng(e,s,c,h),g=new Ut(f.segments,f.children);if(0===m.length&&g.hasChildren())return this.expandChildren(u,h,g).pipe(Ke(x=>new Ut(s,x)));if(0===h.length&&0===m.length)return $e(new Ut(s,{}));const p=xo(n)===o;return this.expandSegment(u,g,h,m,p?St:o,!0).pipe(Ke(w=>new Ut(s.concat(w.segments),w.children)))})):kh(e)))}getChildConfig(i,e,n){return e.children?$e({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?$e({routes:e._loadedRoutes,injector:e._loadedInjector}):function yW(t,i,e,n){const r=i.canLoad;return void 0===r||0===r.length?$e(!0):$e(r.map(a=>{const s=Cd(a,t);return Fs(function sW(t){return t&&Ch(t.canLoad)}(s)?s.canLoad(i,e):t.runInContext(()=>s(i,e)))})).pipe(kd(),EA())}(i,e,n).pipe(En(r=>r?this.configLoader.loadChildren(i,e).pipe(zi(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function TW(t){return Rc(yA(og,3))}())):$e({routes:[],injector:i})}lineralizeSegments(i,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return $e(n);if(r.numberOfChildren>1||!r.children[St])return i.redirectTo,Rc(new ue(4e3,og));r=r.children[St]}}applyRedirectCommands(i,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreateUrlTree(i,e,n,r){const o=this.createSegmentGroup(i,e.root,n,r);return new Rs(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const n={};return qn(i,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,r){const o=this.createSegments(i,e.segments,n,r);let a={};return qn(e.children,(s,c)=>{a[c]=this.createSegmentGroup(i,s,n,r)}),new Ut(o,a)}createSegments(i,e,n,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(i,o,r):this.findOrReturn(o,n))}findPosParam(i,e,n){const r=n[e.path.substring(1)];if(!r)throw new ue(4001,og);return r}findOrReturn(i,e){let n=0;for(const r of e){if(r.path===i.path)return e.splice(n),r;n++}return i}}class FW{}class PW{constructor(i,e,n,r,o,a,s){this.injector=i,this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s}recognize(){const i=ng(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,St).pipe(Ke(e=>{if(null===e)return null;const n=new Jp([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},St,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new is(n,e),o=new bA(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(i){const e=i.value,n=_A(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(i,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(i,e,n):this.processSegment(i,e,n,n.segments,r)}processChildren(i,e,n){return Ji(Object.keys(n.children)).pipe(Is(r=>{const o=n.children[r],a=DA(e,r);return this.processSegmentGroup(i,a,o,r)}),jM((r,o)=>r&&o?(r.push(...o),r):null),GM(r=>null!==r),zp(null),WM(),Ke(r=>{if(null===r)return null;const o=OA(r);return function LW(t){t.sort((i,e)=>i.value.outlet===St?-1:e.value.outlet===St?1:i.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(i,e,n,r,o){return Ji(e).pipe(Is(a=>this.processSegmentAgainstRoute(a._injector??i,a,n,r,o)),vo(a=>!!a),pn(a=>{if(ay(a))return AA(n,r,o)?$e([]):$e(null);throw a}))}processSegmentAgainstRoute(i,e,n,r,o){if(e.redirectTo||!MA(e,n,r,o))return $e(null);let a;if("**"===e.path){const s=r.length>0?YM(r).parameters:{},c=LA(n)+r.length;a=$e({snapshot:new Jp(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,NA(e),xo(e),e.component??e._loadedComponent??null,e,PA(n),c,BA(e)),consumedSegments:[],remainingSegments:[]})}else a=TA(n,e,r,i).pipe(Ke(({matched:s,consumedSegments:c,remainingSegments:l,parameters:d})=>{if(!s)return null;const u=LA(n)+c.length;return{snapshot:new Jp(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,NA(e),xo(e),e.component??e._loadedComponent??null,e,PA(n),u,BA(e)),consumedSegments:c,remainingSegments:l}}));return a.pipe(mn(s=>{if(null===s)return $e(null);const{snapshot:c,consumedSegments:l,remainingSegments:d}=s;i=e._injector??i;const u=e._loadedInjector??i,h=function NW(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:m}=ng(n,l,d,h.filter(p=>void 0===p.redirectTo));if(0===m.length&&f.hasChildren())return this.processChildren(u,h,f).pipe(Ke(p=>null===p?null:[new is(c,p)]));if(0===h.length&&0===m.length)return $e([new is(c,[])]);const g=xo(e)===o;return this.processSegment(u,h,f,m,g?St:o).pipe(Ke(p=>null===p?null:[new is(c,p)]))}))}}function BW(t){const i=t.value.routeConfig;return i&&""===i.path&&void 0===i.redirectTo}function OA(t){const i=[],e=new Set;for(const n of t){if(!BW(n)){i.push(n);continue}const r=i.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...n.children),e.add(r)):i.push(n)}for(const n of e){const r=OA(n.children);i.push(new is(n.value,r))}return i.filter(n=>!e.has(n))}function PA(t){let i=t;for(;i._sourceSegment;)i=i._sourceSegment;return i}function LA(t){let i=t,e=i._segmentIndexShift??0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift??0;return e-1}function NA(t){return t.data||{}}function BA(t){return t.resolve||{}}function VA(t){return"string"==typeof t.title||null===t.title}function ly(t){return mn(i=>{const e=t(i);return e?Ji(e).pipe(Ke(()=>i)):$e(i)})}const Dd=new ae("ROUTES");let dy=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=ht(h2)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return $e(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=Fs(e.loadComponent()).pipe(Ke(UA),zi(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),$p(()=>{this.componentLoaders.delete(e)})),r=new Hx(n,()=>new ke).pipe(Vx());return this.componentLoaders.set(e,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return $e({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactoryOrRoutes(n.loadChildren).pipe(Ke(s=>{this.onLoadEndListener&&this.onLoadEndListener(n);let c,l,d=!1;Array.isArray(s)?l=s:(c=s.create(e).injector,l=QM(c.get(Dd,[],gt.Self|gt.Optional)));return{routes:l.map(oy),injector:c}}),$p(()=>{this.childrenLoaders.delete(n)})),a=new Hx(o,()=>new ke).pipe(Vx());return this.childrenLoaders.set(n,a),a}loadModuleFactoryOrRoutes(e){return Fs(e()).pipe(Ke(UA),En(n=>n instanceof CT||Array.isArray(n)?$e(n):Ji(this.compiler.compileModuleAsync(n))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function UA(t){return function GW(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let cg=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new ke,this.configLoader=ht(dy),this.environmentInjector=ht(la),this.urlSerializer=ht(fh),this.rootContexts=ht(vh),this.navigationId=0,this.afterPreactivation=()=>$e(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new Rj(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new Fj(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e){return this.transitions=new Vn({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:_h,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(hi(n=>0!==n.id),Ke(n=>({...n,extractedUrl:e.urlHandlingStrategy.extract(n.rawUrl)})),mn(n=>{let r=!1,o=!1;return $e(n).pipe(zi(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),mn(a=>{const s=e.browserUrlTree.toString(),c=!e.navigated||a.extractedUrl.toString()!==s||s!==e.currentUrlTree.toString();if(!c&&"reload"!==(a.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new Zp(a.id,e.serializeUrl(n.rawUrl),d,0)),e.rawUrlTree=a.rawUrl,a.resolve(null),Wr}if(e.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return zA(a.source)&&(e.browserUrlTree=a.extractedUrl),$e(a).pipe(mn(d=>{const u=this.transitions?.getValue();return this.events.next(new Xx(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),u!==this.transitions?.getValue()?Wr:Promise.resolve(d)}),function IW(t,i,e,n){return mn(r=>function MW(t,i,e,n,r){return new AW(t,i,e,n,r).apply()}(t,i,e,r.extractedUrl,n).pipe(Ke(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),zi(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},n.urlAfterRedirects=d.urlAfterRedirects}),function HW(t,i,e,n,r){return En(o=>function OW(t,i,e,n,r,o,a="emptyOnly"){return new PW(t,i,e,n,r,a,o).recognize().pipe(mn(s=>null===s?function RW(t){return new ni(i=>i.error(t))}(new FW):$e(s)))}(t,i,e,o.urlAfterRedirects,n.serialize(o.urlAfterRedirects),n,r).pipe(Ke(a=>({...o,targetSnapshot:a}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),zi(d=>{if(n.targetSnapshot=d.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=e.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);e.setBrowserUrl(h,d)}e.browserUrlTree=d.urlAfterRedirects}const u=new Ej(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}));if(c&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:d,extractedUrl:u,source:h,restoredState:f,extras:m}=a,g=new Xx(d,this.urlSerializer.serialize(u),h,f);this.events.next(g);const p=gA(u,this.rootComponentType).snapshot;return $e(n={...a,targetSnapshot:p,urlAfterRedirects:u,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}{const d="";return this.events.next(new Zp(a.id,e.serializeUrl(n.extractedUrl),d,1)),e.rawUrlTree=a.rawUrl,a.resolve(null),Wr}}),zi(a=>{const s=new Tj(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),Ke(a=>n={...a,guards:iW(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function fW(t,i){return En(e=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return 0===a.length&&0===o.length?$e({...e,guardsResult:!0}):function mW(t,i,e,n){return Ji(t).pipe(En(r=>function xW(t,i,e,n,r){const o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return o&&0!==o.length?$e(o.map(s=>{const c=xh(i)??r,l=Cd(s,c);return Fs(function dW(t){return t&&Ch(t.canDeactivate)}(l)?l.canDeactivate(t,i,e,n):c.runInContext(()=>l(t,i,e,n))).pipe(vo())})).pipe(kd()):$e(!0)}(r.component,r.route,e,i,n)),vo(r=>!0!==r,!0))}(a,n,r,t).pipe(En(s=>s&&function aW(t){return"boolean"==typeof t}(s)?function pW(t,i,e,n){return Ji(i).pipe(Is(r=>dh(function _W(t,i){return null!==t&&i&&i(new Oj(t)),$e(!0)}(r.route.parent,n),function gW(t,i){return null!==t&&i&&i(new Lj(t)),$e(!0)}(r.route,n),function vW(t,i,e){const n=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(a=>function nW(t){const i=t.routeConfig?t.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:t,guards:i}:null}(a)).filter(a=>null!==a).map(a=>gd(()=>$e(a.guards.map(c=>{const l=xh(a.node)??e,d=Cd(c,l);return Fs(function lW(t){return t&&Ch(t.canActivateChild)}(d)?d.canActivateChild(n,t):l.runInContext(()=>d(n,t))).pipe(vo())})).pipe(kd())));return $e(o).pipe(kd())}(t,r.path,e),function bW(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return $e(!0);const r=n.map(o=>gd(()=>{const a=xh(i)??e,s=Cd(o,a);return Fs(function cW(t){return t&&Ch(t.canActivate)}(s)?s.canActivate(i,t):a.runInContext(()=>s(i,t))).pipe(vo())}));return $e(r).pipe(kd())}(t,r.route,e))),vo(r=>!0!==r,!0))}(n,o,t,i):$e(s)),Ke(s=>({...e,guardsResult:s})))})}(this.environmentInjector,a=>this.events.next(a)),zi(a=>{if(n.guardsResult=a.guardsResult,Pc(a.guardsResult))throw xA(0,a.guardsResult);const s=new Mj(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),hi(a=>!!a.guardsResult||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),ly(a=>{if(a.guards.canActivateChecks.length)return $e(a).pipe(zi(s=>{const c=new Aj(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}),mn(s=>{let c=!1;return $e(s).pipe(function UW(t,i){return En(e=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return $e(e);let o=0;return Ji(r).pipe(Is(a=>function zW(t,i,e,n){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!VA(r)&&(o[uh]=r.title),function $W(t,i,e,n){const r=function jW(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return $e({});const o={};return Ji(r).pipe(En(a=>function WW(t,i,e,n){const r=xh(i)??n,o=Cd(t,r);return Fs(o.resolve?o.resolve(i,e):r.runInContext(()=>o(i,e)))}(t[a],i,e,n).pipe(vo(),zi(s=>{o[a]=s}))),Ux(1),qM(o),pn(a=>ay(a)?Wr:Rc(a)))}(o,t,i,n).pipe(Ke(a=>(t._resolvedData=a,t.data=_A(t,e).resolve,r&&VA(r)&&(t.data[uh]=r.title),null)))}(a.route,n,t,i)),zi(()=>o++),Ux(1),En(a=>o===r.length?$e(e):Wr))})}(e.paramsInheritanceStrategy,this.environmentInjector),zi({next:()=>c=!0,complete:()=>{c||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",2))}}))}),zi(s=>{const c=new Ij(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}))}),ly(a=>{const s=c=>{const l=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(c.routeConfig).pipe(zi(d=>{c.component=d}),Ke(()=>{})));for(const d of c.children)l.push(...s(d));return l};return Fc(s(a.targetSnapshot.root)).pipe(zp(),ui(1))}),ly(()=>this.afterPreactivation()),Ke(a=>{const s=function Wj(t,i,e){const n=bh(t,i._root,e?e._root:void 0);return new pA(n,i)}(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return n={...a,targetRouterState:s}}),zi(a=>{e.currentUrlTree=a.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),e.routerState=a.targetRouterState,"deferred"===e.urlUpdateStrategy&&(a.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,a),e.browserUrlTree=a.urlAfterRedirects)}),((t,i,e)=>Ke(n=>(new tW(i,n.targetRouterState,n.currentRouterState,e).activate(t),n)))(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a)),ui(1),zi({next:a=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Os(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{r=!0}}),$p(()=>{r||o||this.cancelNavigationTransition(n,"",1),this.currentNavigation?.id===n.id&&(this.currentNavigation=null)}),pn(a=>{if(o=!0,CA(a)){wA(a)||(e.navigated=!0,e.restoreHistory(n,!0));const s=new Kp(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode);if(this.events.next(s),wA(a)){const c=e.urlHandlingStrategy.merge(a.url,e.rawUrlTree),l={skipLocationChange:n.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||zA(n.source)};e.scheduleNavigation(c,_h,null,l,{resolve:n.resolve,reject:n.reject,promise:n.promise})}else n.resolve(!1)}else{e.restoreHistory(n,!0);const s=new Qx(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);this.events.next(s);try{n.resolve(e.errorHandler(a))}catch(c){n.reject(c)}}return Wr}))}))}cancelNavigationTransition(e,n,r){const o=new Kp(e.id,this.urlSerializer.serialize(e.extractedUrl),n,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function zA(t){return t!==_h}let $A=(()=>{class t{buildTitle(e){let n,r=e.root;for(;void 0!==r;)n=this.getResolvedTitleForRoute(r)??n,r=r.children.find(o=>o.outlet===St);return n}getResolvedTitleForRoute(e){return e.data[uh]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(qW)},providedIn:"root"}),t})(),qW=(()=>{class t extends $A{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}}return t.\u0275fac=function(e){return new(e||t)(G(LM))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),XW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(YW)},providedIn:"root"}),t})();class QW{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let YW=(()=>{class t extends QW{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const lg=new ae("",{providedIn:"root",factory:()=>({})});let ZW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(JW)},providedIn:"root"}),t})(),JW=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function eG(t){throw t}function tG(t,i,e){return i.parse("/")}const iG={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},nG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Pr=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=ht(VU),this.isNgZoneEnabled=!1,this.options=ht(lg,{optional:!0})||{},this.errorHandler=this.options.errorHandler||eG,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||tG,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ht(ZW),this.routeReuseStrategy=ht(XW),this.urlCreationStrategy=ht(zj),this.titleStrategy=ht($A),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=QM(ht(Dd,{optional:!0})??[]),this.navigationTransitions=ht(cg),this.urlSerializer=ht(fh),this.location=ht(ih),this.isNgZoneEnabled=ht(ze)instanceof ze&&ze.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Rs,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=gA(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),_h,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,n,e.state)},0)}))}navigateToSyncWithBrowser(e,n,r){const o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){const c={...r};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const s=this.parseUrl(e);this.scheduleNavigation(s,n,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(oy),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:c}=n,l=c?this.currentUrlTree.fragment:a;let d=null;switch(s){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,d,l??null)}navigateByUrl(e,n={skipLocationChange:!1}){const r=Pc(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,_h,null,n)}navigate(e,n={skipLocationChange:!1}){return function rG(t){for(let i=0;i{const o=e[r];return null!=o&&(n[r]=o),n},{})}scheduleNavigation(e,n,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,c,l,d;return a?(s=a.resolve,c=a.reject,l=a.promise):l=new Promise((u,h)=>{s=u,c=h}),d="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:d,source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(u=>Promise.reject(u))}setBrowserUrl(e,n){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||n.extras.replaceUrl){const a={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(r,"",a)}else{const o={...n.extras.state,...this.generateNgRouterState(n.id,n.targetPageId)};this.location.go(r,"",o)}}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class jA{}let sG=(()=>{class t{constructor(e,n,r,o,a){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(hi(e=>e instanceof Os),Is(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const r=[];for(const o of n){o.providers&&!o._injector&&(o._injector=mp(o.providers,e,`Route: ${o.path}`));const a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Ji(r).pipe(El())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let r;r=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):$e(null);const o=r.pipe(En(a=>null===a?$e(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return n.loadComponent&&!n._loadedComponent?Ji([o,this.loader.loadComponent(n)]).pipe(El()):o})}}return t.\u0275fac=function(e){return new(e||t)(G(Pr),G(h2),G(la),G(jA),G(dy))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const fy=new ae("");let WA=(()=>{class t{constructor(e,n,r,o,a={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=r,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Xx?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Os&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof fA&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new fA(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){da()},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();var eo=(()=>((eo=eo||{})[eo.COMPLETE=0]="COMPLETE",eo[eo.FAILED=1]="FAILED",eo[eo.REDIRECTING=2]="REDIRECTING",eo))();const Sd=!1;function Ps(t,i){return{\u0275kind:t,\u0275providers:i}}const my=new ae("",{providedIn:"root",factory:()=>!1});function qA(){const t=ht(tn);return i=>{const e=t.get(md);if(i!==e.components[0])return;const n=t.get(Pr),r=t.get(XA);1===t.get(py)&&n.initialNavigation(),t.get(QA,null,gt.Optional)?.setUpPreloading(),t.get(fy,null,gt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const XA=new ae(Sd?"bootstrap done indicator":"",{factory:()=>new ke}),py=new ae(Sd?"initial navigation":"",{providedIn:"root",factory:()=>1});function hG(){let t=[];return t=Sd?[{provide:Xm,multi:!0,useFactory:()=>{const i=ht(Pr);return()=>i.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function Bj(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Ps(1,t)}const QA=new ae(Sd?"router preloader":"");function fG(t){return Ps(0,[{provide:QA,useExisting:sG},{provide:jA,useExisting:t}])}const Dh=!1,YA=new ae(Dh?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),mG=[ih,{provide:fh,useClass:zx},Pr,vh,{provide:wd,useFactory:function GA(t){return t.routerState.root},deps:[Pr]},dy,Dh?{provide:my,useValue:!0}:[]];function pG(){return new x2("Router",Pr)}let KA=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[mG,Dh&&n?.enableTracing?hG().\u0275providers:[],{provide:Dd,multi:!0,useValue:e},{provide:YA,useFactory:vG,deps:[[Pr,new sa,new vc]]},{provide:lg,useValue:n||{}},n?.useHash?{provide:Ic,useClass:S9}:{provide:Ic,useClass:$2},{provide:fy,useFactory:()=>{const t=ht(Uz),i=ht(ze),e=ht(lg),n=ht(cg),r=ht(fh);return e.scrollOffset&&t.setOffset(e.scrollOffset),new WA(r,n,t,i,e)}},n?.preloadingStrategy?fG(n.preloadingStrategy).\u0275providers:[],{provide:x2,multi:!0,useFactory:pG},n?.initialNavigation?xG(n):[],[{provide:ZA,useFactory:qA},{provide:v2,multi:!0,useExisting:ZA}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Dd,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(G(YA,8))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[ny]}),t})();function vG(t){if(Dh&&t)throw new ue(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function xG(t){return["disabled"===t.initialNavigation?Ps(3,[{provide:vp,multi:!0,useFactory:()=>{const i=ht(Pr);return()=>{i.setUpLocationChangeListener()}}},{provide:py,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Ps(2,[{provide:py,useValue:0},{provide:vp,multi:!0,deps:[tn],useFactory:i=>{const e=i.get(k9,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const r=i.get(Pr),o=i.get(XA);(function cG(t,i){t.events.pipe(hi(e=>e instanceof Os||e instanceof Kp||e instanceof Qx||e instanceof Zp),Ke(e=>e instanceof Os||e instanceof Zp?eo.COMPLETE:e instanceof Kp&&(0===e.code||1===e.code)?eo.REDIRECTING:eo.FAILED),hi(e=>e!==eo.REDIRECTING),ui(1)).subscribe(()=>{i()})})(r,()=>{n(!0)}),i.get(cg).afterPreactivation=()=>(n(!0),o.closed?$e(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const ZA=new ae(Dh?"Router Initializer":"");function JA(t,i,e,n,r,o,a){try{var s=t[o](a),c=s.value}catch(l){return void e(l)}s.done?i(c):Promise.resolve(c).then(n,r)}function Oi(t){return function(){var i=this,e=arguments;return new Promise(function(n,r){var o=t.apply(i,e);function a(c){JA(o,n,r,a,s,"next",c)}function s(c){JA(o,n,r,a,s,"throw",c)}a(void 0)})}}class gy{}function _y(t){return t&&"function"==typeof t.connect&&!(t instanceof Hx)}class eI{applyChanges(i,e,n,r,o){i.forEachOperation((a,s,c)=>{let l,d;if(null==a.previousIndex){const u=n(a,s,c);l=e.createEmbeddedView(u.templateRef,u.context,u.index),d=1}else null==c?(e.remove(s),d=3):(l=e.get(s),e.move(l,c),d=2);o&&o({context:l?.context,operation:d,record:a})})}detach(){}}class by{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(i=!1,e,n=!0,r){this._multiple=i,this._emitChanges=n,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ke,e&&e.length&&(i?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);const e=this.selected,n=new Set(i);i.forEach(o=>this._markSelected(o)),e.filter(o=>!n.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();const e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(i){if(this.compareWith){for(let e of this._selection)if(this.compareWith(i,e))return e;return i}return i}}let vy=(()=>{class t{constructor(){this._listeners=[]}notify(e,n){for(let r of this._listeners)r(e,n)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(n=>e!==n)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Sh=new ae("_ViewRepeater");function qo(t,i){const e="object"==typeof i;return new Promise((n,r)=>{let a,o=!1;t.subscribe({next:s=>{a=s,o=!0},error:r,complete:()=>{o?n(a):e?n(i.defaultValue):r(new lh)}})})}const xy={now:()=>(xy.delegate||Date).now(),delegate:void 0};class iI extends ke{constructor(i=1/0,e=1/0,n=xy){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){const{isStopped:e,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(n.push(i),!r&&n.push(o.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let a=0;a{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const r=e.slice(0,n),o=r.toLowerCase(),a=e.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{let r;if(r="string"==typeof n?[n]:"number"==typeof n?[n.toString()]:n.map(o=>o.toString()),r.length>0){const o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof va?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new va;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof va?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const r=("a"===i.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const o=i.value;if(o){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===o.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class wG{encodeKey(i){return nI(i)}encodeValue(i){return nI(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const kG=/%(\d[a-f0-9])/gi,DG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function nI(t){return encodeURIComponent(t).replace(kG,(i,e)=>DG[e]??i)}function ug(t){return`${t}`}class Ls{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new wG,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function CG(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[a,s]=-1==o?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,o)),i.decodeValue(r.slice(o+1))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e],r=Array.isArray(n)?n.map(ug):[ug(n)];this.map.set(e,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(n=>{const r=i[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new Ls({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(ug(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const r=n.indexOf(ug(i.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class SG{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function rI(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function oI(t){return typeof Blob<"u"&&t instanceof Blob}function aI(t){return typeof FormData<"u"&&t instanceof FormData}class Eh{constructor(i,e,n,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function EG(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!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new va),this.context||(this.context=new SG),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":su.set(h,i.setHeaders[h]),c)),i.setParams&&(l=Object.keys(i.setParams).reduce((u,h)=>u.set(h,i.setParams[h]),l)),new Eh(e,n,o,{params:l,headers:c,context:d,reportProgress:s,responseType:r,withCredentials:a})}}var gn=(()=>((gn=gn||{})[gn.Sent=0]="Sent",gn[gn.UploadProgress=1]="UploadProgress",gn[gn.ResponseHeader=2]="ResponseHeader",gn[gn.DownloadProgress=3]="DownloadProgress",gn[gn.Response=4]="Response",gn[gn.User=5]="User",gn))();class wy{constructor(i,e=200,n="OK"){this.headers=i.headers||new va,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class Cy extends wy{constructor(i={}){super(i),this.type=gn.ResponseHeader}clone(i={}){return new Cy({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class hg extends wy{constructor(i={}){super(i),this.type=gn.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new hg({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class sI extends wy{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function ky(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Ns=(()=>{class t{constructor(e){this.handler=e}request(e,n,r={}){let o;if(e instanceof Eh)o=e;else{let c,l;c=r.headers instanceof va?r.headers:new va(r.headers),r.params&&(l=r.params instanceof Ls?r.params:new Ls({fromObject:r.params})),o=new Eh(e,n,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=$e(o).pipe(Is(c=>this.handler.handle(c)));if(e instanceof Eh||"events"===r.observe)return a;const s=a.pipe(hi(c=>c instanceof hg));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(Ke(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return s.pipe(Ke(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return s.pipe(Ke(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return s.pipe(Ke(c=>c.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new Ls).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,ky(r,n))}post(e,n,r={}){return this.request("POST",e,ky(r,n))}put(e,n,r={}){return this.request("PUT",e,ky(r,n))}}return t.\u0275fac=function(e){return new(e||t)(G(dg))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();function cI(t,i){return i(t)}function MG(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}const IG=new ae("HTTP_INTERCEPTORS"),Th=new ae("HTTP_INTERCEPTOR_FNS");function FG(){let t=null;return(i,e)=>(null===t&&(t=(ht(IG,{optional:!0})??[]).reduceRight(MG,cI)),t(i,e))}let lI=(()=>{class t extends dg{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const n=Array.from(new Set(this.injector.get(Th)));this.chain=n.reduceRight((r,o)=>function AG(t,i,e){return(n,r)=>e.runInContext(()=>i(n,o=>t(o,r)))}(r,o,this.injector),cI)}return this.chain(e,n=>this.backend.handle(n))}}return t.\u0275fac=function(e){return new(e||t)(G(yy),G(la))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const LG=/^\)\]\}',?\n/;let uI=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ni(n=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,m)=>r.setRequestHeader(f,m.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let a=null;const s=()=>{if(null!==a)return a;const f=r.statusText||"OK",m=new va(r.getAllResponseHeaders()),g=function NG(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new Cy({headers:m,status:r.status,statusText:f,url:g}),a},c=()=>{let{headers:f,status:m,statusText:g,url:p}=s(),_=null;204!==m&&(_=typeof r.response>"u"?r.responseText:r.response),0===m&&(m=_?200:0);let w=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof _){const x=_;_=_.replace(LG,"");try{_=""!==_?JSON.parse(_):null}catch(M){_=x,w&&(w=!1,_={error:M,text:_})}}w?(n.next(new hg({body:_,headers:f,status:m,statusText:g,url:p||void 0})),n.complete()):n.error(new sI({error:_,headers:f,status:m,statusText:g,url:p||void 0}))},l=f=>{const{url:m}=s(),g=new sI({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:m||void 0});n.error(g)};let d=!1;const u=f=>{d||(n.next(s()),d=!0);let m={type:gn.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),"text"===e.responseType&&r.responseText&&(m.partialText=r.responseText),n.next(m)},h=f=>{let m={type:gn.UploadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),n.next(m)};return r.addEventListener("load",c),r.addEventListener("error",l),r.addEventListener("timeout",l),r.addEventListener("abort",l),e.reportProgress&&(r.addEventListener("progress",u),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),n.next({type:gn.Sent}),()=>{r.removeEventListener("error",l),r.removeEventListener("abort",l),r.removeEventListener("load",c),r.removeEventListener("timeout",l),e.reportProgress&&(r.removeEventListener("progress",u),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(G(fM))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const Dy=new ae("XSRF_ENABLED"),hI=new ae("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),fI=new ae("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class mI{}let HG=(()=>{class t{constructor(e,n,r){this.doc=e,this.platform=n,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=J2(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(G(nt),G(yp),G(hI))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();function UG(t,i){const e=t.url.toLowerCase();if(!ht(Dy)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=ht(mI).getToken(),r=ht(fI);return null!=n&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var on=(()=>((on=on||{})[on.Interceptors=0]="Interceptors",on[on.LegacyInterceptors=1]="LegacyInterceptors",on[on.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",on[on.NoXsrfProtection=3]="NoXsrfProtection",on[on.JsonpSupport=4]="JsonpSupport",on[on.RequestsMadeViaParent=5]="RequestsMadeViaParent",on))();function Ed(t,i){return{\u0275kind:t,\u0275providers:i}}function zG(...t){const i=[Ns,uI,lI,{provide:dg,useExisting:lI},{provide:yy,useExisting:uI},{provide:Th,useValue:UG,multi:!0},{provide:Dy,useValue:!0},{provide:mI,useClass:HG}];for(const e of t)i.push(...e.\u0275providers);return function X5(t){return{\u0275providers:t}}(i)}const pI=new ae("LEGACY_INTERCEPTOR_FN");let Sy,jG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[zG(Ed(on.LegacyInterceptors,[{provide:pI,useFactory:FG},{provide:Th,useExisting:pI,multi:!0}]))]}),t})();try{Sy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Sy=!1}let Td,xi=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function Hz(t){return t===uM}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Sy)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(G(yp))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const gI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function _I(){if(Td)return Td;if("object"!=typeof document||!document)return Td=new Set(gI),Td;let t=document.createElement("input");return Td=new Set(gI.filter(i=>(t.setAttribute("type",i),t.type===i))),Td}let Mh,fg,Lc,Ey;function Xo(t){return function WG(){if(null==Mh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Mh=!0}))}finally{Mh=Mh||!1}return Mh}()?t:!!t.capture}function bI(){if(null==Lc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Lc=!1,Lc;if("scrollBehavior"in document.documentElement.style)Lc=!0;else{const t=Element.prototype.scrollTo;Lc=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Lc}function Ah(){if("object"!=typeof document||!document)return 0;if(null==fg){const t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),fg=0,0===t.scrollLeft&&(t.scrollLeft=1,fg=0===t.scrollLeft?1:2),t.remove()}return fg}function Ty(t){if(function GG(){if(null==Ey){const t=typeof document<"u"?document.head:null;Ey=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Ey}()){const i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function mg(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function to(t){return t.composedPath?t.composedPath()[0]:t.target}function My(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function wr(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class oq extends yt{constructor(i,e){super()}schedule(i,e=0){return this}}const _g={setInterval(t,i,...e){const{delegate:n}=_g;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=_g;return(i?.clearInterval||clearInterval)(t)},delegate:void 0};class Iy extends oq{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,e),this}requestAsyncId(i,e,n=0){return _g.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&_g.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let r,n=!1;try{this.work(i)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ia(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}class Fh{constructor(i,e=Fh.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}Fh.now=xy.now;class Fy extends Fh{constructor(i,e=Fh.now){super(i,e),this.actions=[],this._active=!1}flush(i){const{actions:e}=this;if(this._active)return void e.push(i);let n;this._active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}const Rh=new Fy(Iy),aq=Rh;function Ad(t,i=Rh){return Gi((e,n)=>{let r=null,o=null,a=null;const s=()=>{if(r){r.unsubscribe(),r=null;const l=o;o=null,n.next(l)}};function c(){const l=a+t,d=i.now();if(d{o=l,a=i.now(),r||(r=i.schedule(c,t),n.add(r))},()=>{s(),n.complete()},void 0,()=>{o=r=null}))})}function Ry(t){return hi((i,e)=>t<=e)}function Bc(t,i=Cs){return t=t??sq,Gi((e,n)=>{let r,o=!0;e.subscribe(Bi(n,a=>{const s=i(a);(o||!t(r,s))&&(o=!1,r=s,n.next(a))}))})}function sq(t,i){return t===i}function Tt(t){return Gi((i,e)=>{Yn(t).subscribe(Bi(e,()=>e.complete(),pr)),!e.closed&&i.subscribe(e)})}function je(t){return null!=t&&"false"!=`${t}`}function In(t,i=0){return xI(t)?Number(t):i}function xI(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Oh(t){return Array.isArray(t)?t:[t]}function _n(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Zi(t){return t instanceof Fe?t.nativeElement:t}let yI=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lq=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){const n=Zi(e);return new ni(r=>{const a=this._observeElement(n).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const n=new ke,r=this._mutationObserverFactory.create(o=>n.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(G(yI))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Oy=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=In(e),this._subscribe()}constructor(e,n,r){this._contentObserver=e,this._elementRef=n,this._ngZone=r,this.event=new xe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Ad(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(lq),b(Fe),b(ze))},t.\u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),bg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[yI]}),t})();const wI=new Set;let Id,dq=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):hq}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function uq(t){if(!wI.has(t))try{Id||(Id=document.createElement("style"),Id.setAttribute("type","text/css"),document.head.appendChild(Id)),Id.sheet&&(Id.sheet.insertRule(`@media ${t} {body{ }}`,0),wI.add(t))}catch(i){console.error(i)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(G(xi))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function hq(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Py=(()=>{class t{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new ke}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return CI(Oh(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Fc(CI(Oh(e)).map(a=>this._registerQuery(a).observable));return o=dh(o.pipe(ui(1)),o.pipe(Ry(1),Ad(0))),o.pipe(Ke(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:l})=>{s.matches=s.matches||c,s.breakpoints[l]=c}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const n=this._mediaMatcher.matchMedia(e),o={observable:new ni(a=>{const s=c=>this._zone.run(()=>a.next(c));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(Hn(n),Ke(({matches:a})=>({query:e,matches:a})),Tt(this._destroySubject)),mql:n};return this._queries.set(e,o),o}}return t.\u0275fac=function(e){return new(e||t)(G(dq),G(ze))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function CI(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function vg(t,i){return(t.getAttribute(i)||"").match(/\S+/g)||[]}const DI="cdk-describedby-message",xg="cdk-describedby-host";let Ly=0,SI=(()=>{class t{constructor(e,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ly++,this._document=e,this._id=ht(fd)+"-"+Ly++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;const o=Ny(n,r);"string"!=typeof n?(EI(n,this._id),this._messageRegistry.set(o,{messageElement:n,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;const o=Ny(n,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof n){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${xg}="${this._id}"]`);for(let n=0;n0!=r.indexOf(DI));e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){const r=this._messageRegistry.get(n);(function mq(t,i,e){const n=vg(t,i);n.some(r=>r.trim()==e.trim())||(n.push(e.trim()),t.setAttribute(i,n.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(xg,this._id),r.referenceCount++}_removeMessageReference(e,n){const r=this._messageRegistry.get(n);r.referenceCount--,function pq(t,i,e){const r=vg(t,i).filter(o=>o!=e.trim());r.length?t.setAttribute(i,r.join(" ")):t.removeAttribute(i)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(xg)}_isElementDescribedByMessage(e,n){const r=vg(e,"aria-describedby"),o=this._messageRegistry.get(n),a=o&&o.messageElement.id;return!!a&&-1!=r.indexOf(a)}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&"object"==typeof n)return!0;const r=null==n?"":`${n}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(G(nt),G(xi))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ny(t,i){return"string"==typeof t?`${i||""}/${t}`:t}function EI(t,i){t.id||(t.id=`${DI}-${i}-${Ly++}`)}class TI{constructor(i){this._items=i,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ke,this._typeaheadSubscription=yt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new ke,this.change=new ke,i instanceof Tc&&(this._itemChangesSubscription=i.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zi(e=>this._pressedLetters.push(e)),Ad(i),hi(()=>this._pressedLetters.length>0),Ke(()=>this._pressedLetters.join(""))).subscribe(e=>{const n=this._getItemsArray();for(let r=1;r!i[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],i.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){const e=this._getItemsArray(),n="number"==typeof i?i:e.indexOf(i);this._activeItem=e[n]??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const r=(this._activeItemIndex+i*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,e){const n=this._getItemsArray();if(n[i]){for(;this._skipPredicateFn(n[i]);)if(!n[i+=e])return;this.setActiveItem(i)}}_getItemsArray(){return this._items instanceof Tc?this._items.toArray():this._items}}class MI extends TI{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}}class By extends TI{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}}let yg=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function _q(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const n=function gq(t){try{return t.frameElement}catch{return null}}(function Dq(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(n&&(-1===II(n)||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=II(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function Cq(t){let i=t.nodeName.toLowerCase(),e="input"===i&&t.type;return"text"===e||"password"===e||"select"===i||"textarea"===i}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,n){return function kq(t){return!function vq(t){return function yq(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function bq(t){let i=t.nodeName.toLowerCase();return"input"===i||"select"===i||"button"===i||"textarea"===i}(t)||function xq(t){return function wq(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||AI(t))}(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(G(xi))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function AI(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let i=t.getAttribute("tabindex");return!(!i||isNaN(parseInt(i,10)))}function II(t){if(!AI(t))return null;const i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}class Sq{get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}constructor(i,e,n,r,o=!1){this._element=i,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){const e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return"start"==i?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){const e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){const e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;const e=i.children;for(let n=0;n=0;n--){const r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){const i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._ngZone.isStable?i():this._ngZone.onStable.pipe(ui(1)).subscribe(i)}}let Vy=(()=>{class t{constructor(e,n,r){this._checker=e,this._ngZone=n,this._document=r}create(e,n=!1){return new Sq(e,this._checker,this._ngZone,this._document,n)}}return t.\u0275fac=function(e){return new(e||t)(G(yg),G(ze),G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function wg(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function Cg(t){const i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!i||-1!==i.identifier||null!=i.radiusX&&1!==i.radiusX||null!=i.radiusY&&1!==i.radiusY)}const Eq=new ae("cdk-input-modality-detector-options"),Tq={ignoreKeys:[18,17,224,91,16]},Fd=Xo({passive:!0,capture:!0});let Mq=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,n,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Vn(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=to(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(wg(a)?"keyboard":"mouse"),this._mostRecentTarget=to(a))},this._onTouchstart=a=>{Cg(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=to(a))},this._options={...Tq,...o},this.modalityDetected=this._modality.pipe(Ry(1)),this.modalityChanged=this.modalityDetected.pipe(Bc()),e.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Fd),r.addEventListener("mousedown",this._onMousedown,Fd),r.addEventListener("touchstart",this._onTouchstart,Fd)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Fd),document.removeEventListener("mousedown",this._onMousedown,Fd),document.removeEventListener("touchstart",this._onTouchstart,Fd))}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(ze),G(nt),G(Eq,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Aq=new ae("liveAnnouncerElement",{providedIn:"root",factory:function Iq(){return null}}),Fq=new ae("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Rq=0,Hy=(()=>{class t{constructor(e,n,r,o){this._ngZone=n,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...n){const r=this._defaultOptions;let o,a;return 1===n.length&&"number"==typeof n[0]?a=n[0]:[o,a]=n,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==a&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{constructor(e,n,r,o,a){this._ngZone=e,this._platform=n,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ke,this._rootNodeFocusAndBlurListener=s=>{for(let l=to(s);l;l=l.parentElement)"focus"===s.type?this._onFocus(s,l):this._onBlur(s,l)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(e,n=!1){const r=Zi(e);if(!this._platform.isBrowser||1!==r.nodeType)return $e(null);const o=Ty(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return n&&(a.checkChildren=!0),a.subject;const s={checkChildren:n,subject:new ke,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const n=Zi(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){const o=Zi(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([s,c])=>this._originChanged(s,n,c)):(this._setOrigin(n),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused","touch"===n),e.classList.toggle("cdk-keyboard-focused","keyboard"===n),e.classList.toggle("cdk-mouse-focused","mouse"===n),e.classList.toggle("cdk-program-focused","program"===n)}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&n,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,n){const r=this._elementInfo.get(n),o=to(e);!r||!r.checkChildren&&n!==o||this._originChanged(n,this._getFocusOrigin(o),r)}_onBlur(e,n){const r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,kg),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,kg)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Tt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){const r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,kg),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,kg),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){const n=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&n.push([o,r])}),n}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!n||n===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let a=0;a{class t{constructor(e,n){this._elementRef=e,this._focusMonitor=n,this._focusOrigin=null,this.cdkFocusChange=new xe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(yo))},t.\u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),t})();const RI="cdk-high-contrast-black-on-white",OI="cdk-high-contrast-white-on-black",Uy="cdk-high-contrast-active";let PI=(()=>{class t{constructor(e,n){this._platform=e,this._document=n,this._breakpointSubscription=ht(Py).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Uy,RI,OI),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?e.add(Uy,RI):2===n&&e.add(Uy,OI)}}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),zy=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(G(PI))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[bg]}),t})();const Lq=new ae("cdk-dir-doc",{providedIn:"root",factory:function Nq(){return ht(nt)}}),Bq=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let bn=(()=>{class t{constructor(e){this.value="ltr",this.change=new xe,e&&(this.value=function Vq(t){const i=t?.toLowerCase()||"";return"auto"===i&&typeof navigator<"u"&&navigator?.language?Bq.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(G(Lq,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ph=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const Hq=["text"];function Uq(t,i){if(1&t&&Se(0,"mat-pseudo-checkbox",6),2&t){const e=q();T("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function zq(t,i){1&t&&Se(0,"mat-pseudo-checkbox",7),2&t&&T("disabled",q().disabled)}function $q(t,i){if(1&t&&(v(0,"span",8),E(1),y()),2&t){const e=q();k(1),It("(",e.group.label,")")}}const jq=[[["mat-icon"]],"*"],Wq=["mat-icon","*"];let Gq=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),qq=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const Qq=new ae("mat-sanity-checks",{providedIn:"root",factory:function Xq(){return!0}});let xt=(()=>{class t{constructor(e,n,r){this._sanityChecks=n,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!My()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(G(PI),G(Qq,8),G(nt))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Ph,Ph]}),t})();function rs(t){return class extends t{get disabled(){return this._disabled}set disabled(i){this._disabled=je(i)}constructor(...i){super(...i),this._disabled=!1}}}function Vs(t,i){return class extends t{get color(){return this._color}set color(e){const n=e||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}constructor(...e){super(...e),this.defaultColor=i,this.color=i}}}function Hs(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=je(i)}constructor(...i){super(...i),this._disableRipple=!1}}}function Lh(t,i=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?In(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=i,this.defaultTabIndex=i}}}function BI(t){return class extends t{updateErrorState(){const i=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==i&&(this.errorState=o,this.stateChanges.next())}constructor(...i){super(...i),this.errorState=!1}}}function Yq(t){return class extends t{constructor(...i){super(...i),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ni(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(i){i.next(),i.complete()}}}let VI=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Zq{constructor(i,e,n,r=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const HI=Xo({passive:!0,capture:!0});class Jq{constructor(){this._events=new Map,this._delegateEventHandler=i=>{const e=to(i);e&&this._events.get(i.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(o=>o.handleEvent(i))})}}addHandler(i,e,n,r){const o=this._events.get(e);if(o){const a=o.get(n);a?a.add(r):o.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,HI)})}removeHandler(i,e,n){const r=this._events.get(i);if(!r)return;const o=r.get(e);o&&(o.delete(n),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,HI)))}}const UI={enterDuration:225,exitDuration:150},zI=Xo({passive:!0,capture:!0}),$I=["mousedown","touchstart"],jI=["mouseup","mouseleave","touchend","touchcancel"];class Rd{constructor(i,e,n,r){this._target=i,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Zi(n))}fadeInRipple(i,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...UI,...n.animation};n.centered&&(i=r.left+r.width/2,e=r.top+r.height/2);const a=n.radius||function tX(t,i,e){const n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+r*r)}(i,e,r),s=i-r.left,c=e-r.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=s-a+"px",d.style.top=c-a+"px",d.style.height=2*a+"px",d.style.width=2*a+"px",null!=n.color&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,m="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,g=new Zq(this,d,n,m);d.style.transform="scale3d(1, 1, 1)",g.state=0,n.persistent||(this._mostRecentTransientRipple=g);let p=null;return!m&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _=()=>this._finishRippleTransition(g),w=()=>this._destroyRipple(g);d.addEventListener("transitionend",_),d.addEventListener("transitioncancel",w),p={onTransitionEnd:_,onTransitionCancel:w}}),this._activeRipples.set(g,p),(m||!l)&&this._finishRippleTransition(g),g}fadeOutRipple(i){if(2===i.state||3===i.state)return;const e=i.element,n={...UI,...i.config.animation};e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=2,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){const e=Zi(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,$I.forEach(n=>{Rd._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){"mousedown"===i.type?this._onMousedown(i):"touchstart"===i.type?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{jI.forEach(e=>{this._triggerElement.addEventListener(e,this,zI)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){0===i.state?this._startFadeOutTransition(i):2===i.state&&this._destroyRipple(i)}_startFadeOutTransition(i){const e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=1,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){const e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=3,null!==e&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel)),i.element.remove()}_onMousedown(i){const e=wg(i),n=this._lastTouchStartEvent&&Date.now(){!i.config.persistent&&(1===i.state||i.config.terminateOnPointerUp&&0===i.state)&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const i=this._triggerElement;i&&($I.forEach(e=>Rd._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&jI.forEach(e=>i.removeEventListener(e,this,zI)))}}Rd._eventManager=new Jq;const $y=new ae("mat-ripple-global-options");let wo=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,n,r,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Rd(this,n,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,n,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(ze),b(xi),b($y,8),b(Ri,8))},t.\u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,n){2&e&&Qe("mat-ripple-unbounded",n.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),Us=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,xt]}),t})(),iX=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return t.\u0275fac=function(e){return new(e||t)(b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,n){2&e&&Qe("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("mat-pseudo-checkbox-minimal","minimal"===n.appearance)("mat-pseudo-checkbox-full","full"===n.appearance)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,n){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),t})(),WI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt]}),t})();const jy=new ae("MAT_OPTION_PARENT_COMPONENT"),Wy=new ae("MatOptgroup");let nX=0;class GI{constructor(i,e=!1){this.source=i,this.isUserInput=e}}let rX=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=je(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,n,r,o){this._element=e,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+nX++,this.onSelectionChange=new xe,this._stateChanges=new ke}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,n){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!wr(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new GI(this,e))}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(Hq,7),2&e){let r;ye(r=we())&&(n._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),zs=(()=>{class t extends rX{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(jy,8),b(Wy,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(e,n){1&e&&X("click",function(){return n._selectViaInteraction()})("keydown",function(o){return n._handleKeydown(o)}),2&e&&(pa("id",n.id),ot("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),Qe("mdc-list-item--selected",n.selected)("mat-mdc-option-multiple",n.multiple)("mat-mdc-option-active",n.active)("mdc-list-item--disabled",n.disabled))},exportAs:["matOption"],features:[pe],ngContentSelectors:Wq,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(e,n){1&e&&(vi(jq),H(0,Uq,1,2,"mat-pseudo-checkbox",0),tt(1),v(2,"span",1,2),tt(4,1),y(),H(5,zq,1,1,"mat-pseudo-checkbox",3),H(6,$q,2,1,"span",4),Se(7,"div",5)),2&e&&(T("ngIf",n.multiple),k(5),T("ngIf",!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator),k(1),T("ngIf",n.group&&n.group._inert),k(1),T("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[wo,fn,iX],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})();function qI(t,i,e){if(e.length){let n=i.toArray(),r=e.toArray(),o=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}let Dg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Us,nr,xt,WI]}),t})();const QI=["mat-button",""],YI=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],KI=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],ZI=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",aX=["mat-icon-button",""],sX=["*"],cX=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],lX=Vs(rs(Hs(class{constructor(t){this._elementRef=t}})));let Gy=(()=>{class t extends lX{constructor(e,n,r,o){super(e),this._platform=n,this._ngZone=r,this._animationMode=o,this._focusMonitor=ht(yo),this._isFab=!1;const a=e.nativeElement.classList;for(const s of cX)this._hasHostAttributes(s.selector)&&s.mdcClasses.forEach(c=>{a.add(c)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_hasHostAttributes(...e){return e.some(n=>this._elementRef.nativeElement.hasAttribute(n))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(wo,5),2&e){let r;ye(r=we())&&(n.ripple=r.first)}},features:[pe]}),t})(),uX=(()=>{class t extends Gy{constructor(e,n,r,o){super(e,n,r,o),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,features:[pe]}),t})(),Lr=(()=>{class t extends Gy{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(xi),b(ze),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(e,n){2&e&&(ot("disabled",n.disabled||null),Qe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[pe],attrs:QI,ngContentSelectors:KI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,n){1&e&&(vi(YI),Se(0,"span",0),tt(1),v(2,"span",1),tt(3,1),y(),tt(4,2),Se(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Qe("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab),k(6),T("matRippleDisabled",n._isRippleDisabled())("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[wo],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),t})(),hX=(()=>{class t extends uX{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(xi),b(ze),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:9,hostBindings:function(e,n){2&e&&(ot("disabled",n.disabled||null)("tabindex",n.disabled?-1:n.tabIndex)("aria-disabled",n.disabled.toString()),Qe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[pe],attrs:QI,ngContentSelectors:KI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,n){1&e&&(vi(YI),Se(0,"span",0),tt(1),v(2,"span",1),tt(3,1),y(),tt(4,2),Se(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Qe("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab),k(6),T("matRippleDisabled",n._isRippleDisabled())("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[wo],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',ZI],encapsulation:2,changeDetection:0}),t})(),os=(()=>{class t extends Gy{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(xi),b(ze),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(e,n){2&e&&(ot("disabled",n.disabled||null),Qe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[pe],attrs:aX,ngContentSelectors:sX,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,n){1&e&&(vi(),Se(0,"span",0),tt(1),Se(2,"span",1)(3,"span",2)(4,"span",3)),2&e&&(k(3),T("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[wo],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',ZI],encapsulation:2,changeDetection:0}),t})(),JI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,Us,xt]}),t})();class eF{}class mX{}const as="*";function vn(t,i){return{type:7,name:t,definitions:i,options:{}}}function fi(t,i=null){return{type:4,styles:i,timings:t}}function qy(t,i=null){return{type:3,steps:t,options:i}}function tF(t,i=null){return{type:2,steps:t,options:i}}function rt(t){return{type:6,styles:t,offset:null}}function ii(t,i,e){return{type:0,name:t,styles:i,options:e}}function Sg(t){return{type:5,steps:t}}function ai(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function Eg(t=null){return{type:9,options:t}}function Tg(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}function iF(t){Promise.resolve().then(t)}class Bh{constructor(i=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=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){iF(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class nF{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,r=0;const o=this.players.length;0==o?iF(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++n==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r)})}getPosition(){const i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const Xy="!";class Qy{attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;null!=i&&(this._attachedHost=null,i.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(i){this._attachedHost=i}}class Od extends Qy{constructor(i,e,n,r,o){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}}class ss extends Qy{constructor(i,e,n,r){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}}class pX extends Qy{constructor(i){super(),this.element=i instanceof Fe?i.nativeElement:i}}class Mg{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(i){return i instanceof Od?(this._attachedPortal=i,this.attachComponentPortal(i)):i instanceof ss?(this._attachedPortal=i,this.attachTemplatePortal(i)):this.attachDomPortal&&i instanceof pX?(this._attachedPortal=i,this.attachDomPortal(i)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class gX extends Mg{constructor(i,e,n,r,o){super(),this.outletElement=i,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=a=>{const s=a.element,c=this._document.createComment("dom-portal");s.parentNode.insertBefore(c,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=o}attachComponentPortal(i){const n=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);let r;return i.viewContainerRef?(r=i.viewContainerRef.createComponent(n,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector,i.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(i.injector||this._defaultInjector||tn.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=i,r}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);-1!==r&&e.remove(r)}),this._attachedPortal=i,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}}let _X=(()=>{class t extends ss{constructor(e,n){super(e,n)}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Fi))},t.\u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[pe]}),t})(),cs=(()=>{class t extends Mg{constructor(e,n,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new xe,this.attachDomPortal=o=>{const a=o.element,s=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=n.createComponent(o,n.length,e.injector||n.injector,e.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return t.\u0275fac=function(e){return new(e||t)(b(Ss),b(Fi),b(nt))},t.\u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[pe]}),t})(),Vc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const bX=["addListener","removeListener"],vX=["addEventListener","removeEventListener"],xX=["on","off"];function xa(t,i,e,n){if(Wt(e)&&(n=e,e=void 0),n)return xa(t,i,e).pipe(Bx(n));const[r,o]=function CX(t){return Wt(t.addEventListener)&&Wt(t.removeEventListener)}(t)?vX.map(a=>s=>t[a](i,s,e)):function yX(t){return Wt(t.addListener)&&Wt(t.removeListener)}(t)?bX.map(rF(t,i)):function wX(t){return Wt(t.on)&&Wt(t.off)}(t)?xX.map(rF(t,i)):[];if(!r&&B_(t))return En(a=>xa(a,i,e))(Yn(t));if(!r)throw new TypeError("Invalid event target");return new ni(a=>{const s=(...c)=>a.next(1o(s)})}function rF(t,i){return e=>n=>t[e](i,n)}const Vh={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:n}=Vh;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);const r=i(o=>{e=void 0,t(o)});return new yt(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:i}=Vh;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:i}=Vh;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},oF=new class DX extends Fy{flush(i){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;i=i||n.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,r){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw r}}}(class kX extends Iy{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=Vh.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);const{actions:o}=i;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Vh.cancelAnimationFrame(e),i._scheduled=void 0)}});let Yy,SX=1;const Ag={};function aF(t){return t in Ag&&(delete Ag[t],!0)}const EX={setImmediate(t){const i=SX++;return Ag[i]=!0,Yy||(Yy=Promise.resolve()),Yy.then(()=>aF(i)&&t()),i},clearImmediate(t){aF(t)}},{setImmediate:TX,clearImmediate:MX}=EX,Ig={setImmediate(...t){const{delegate:i}=Ig;return(i?.setImmediate||TX)(...t)},clearImmediate(t){const{delegate:i}=Ig;return(i?.clearImmediate||MX)(t)},delegate:void 0},Ky=new class IX extends Fy{flush(i){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;i=i||n.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,r){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw r}}}(class AX extends Iy{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=Ig.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);const{actions:o}=i;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Ig.clearImmediate(e),i._scheduled=void 0)}});function Fg(t=0,i,e=aq){let n=-1;return null!=i&&(ak(i)?e=i:n=i),new ni(r=>{let o=function RX(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function Zy(t,i=Rh){return function FX(t){return Gi((i,e)=>{let n=!1,r=null,o=null,a=!1;const s=()=>{if(o?.unsubscribe(),o=null,n){n=!1;const l=r;r=null,e.next(l)}a&&e.complete()},c=()=>{o=null,a&&e.complete()};i.subscribe(Bi(e,l=>{n=!0,r=l,o||Yn(t(l)).subscribe(o=Bi(e,s,c))},()=>{a=!0,(!n||!o||o.closed)&&e.complete()}))})}(()=>Fg(t,i))}const OX=["contentWrapper"],PX=["*"],LX=new ae("VIRTUAL_SCROLL_STRATEGY");let Pd=(()=>{class t{constructor(e,n,r){this._ngZone=e,this._platform=n,this._scrolled=new ke,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ni(n=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Zy(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):$e()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(hi(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const n=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&n.push(o)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let r=Zi(n),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>xa(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(G(ze),G(xi),G(nt,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),sF=(()=>{class t{constructor(e,n,r,o){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=r,this.dir=o,this._destroyed=new ke,this._elementScrolled=new ni(a=>this.ngZone.runOutsideAngular(()=>xa(this.elementRef.nativeElement,"scroll").pipe(Tt(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const n=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),r&&0!=Ah()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==Ah()?e.left=e.right:1==Ah()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const n=this.elementRef.nativeElement;bI()?n.scrollTo(e):(null!=e.top&&(n.scrollTop=e.top),null!=e.left&&(n.scrollLeft=e.left))}measureScrollOffset(e){const n="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?r:n:"end"==e&&(e=a?n:r),a&&2==Ah()?e==n?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==Ah()?e==n?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==n?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Pd),b(ze),b(bn,8))},t.\u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),t})(),ya=(()=>{class t{constructor(e,n,r){this._platform=e,this._change=new ke,this._changeListener=o=>{this._change.next(o)},this._document=r,n.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,n=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Zy(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(ze),G(nt,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const cF=new ae("VIRTUAL_SCROLLABLE");let VX=(()=>{class t extends sF{constructor(e,n,r,o){super(e,n,r,o)}measureViewportSize(e){const n=this.elementRef.nativeElement;return"horizontal"===e?n.clientWidth:n.clientHeight}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Pd),b(ze),b(bn,8))},t.\u0275dir=Q({type:t,features:[pe]}),t})();const UX=typeof requestAnimationFrame<"u"?oF:Ky;let zX=(()=>{class t extends VX{get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=je(e)}constructor(e,n,r,o,a,s,c,l){super(e,s,r,a),this.elementRef=e,this._changeDetectorRef=n,this._scrollStrategy=o,this.scrollable=l,this._platform=ht(xi),this._detachedSubject=new ke,this._renderedRangeSubject=new ke,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ni(d=>this._scrollStrategy.scrolledIndexChange.subscribe(u=>Promise.resolve().then(()=>this.ngZone.run(()=>d.next(u))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=yt.EMPTY,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Hn(null),Zy(0,UX)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Tt(this._detachedSubject)).subscribe(n=>{const r=n.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function HX(t,i){return t.start==i.start&&t.end==i.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,n="to-start"){e=this.appendOnly&&"to-start"===n?0:e;const o="horizontal"==this.orientation,a=o?"X":"Y";let c=`translate${a}(${Number((o&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===n&&(c+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,n="auto"){const r={behavior:n};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,n="auto"){this._scrollStrategy.scrollToIndex(e,n)}measureScrollOffset(e){let n;return n=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,n(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let n;const r="left",o="right",a="rtl"==this.dir?.value;n="start"==e?a?o:r:"end"==e?a?r:o:e||("horizontal"===this.orientation?"left":"top");const s=this.scrollable.measureBoundingClientRectWithScrollOffset(n);return this.elementRef.nativeElement.getBoundingClientRect()[n]-s}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const n of e)n()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(ze),b(LX,8),b(bn,8),b(Pd),b(ya),b(cF,8))},t.\u0275cmp=Ve({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,n){if(1&e&&st(OX,7),2&e){let r;ye(r=we())&&(n._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,n){2&e&&Qe("cdk-virtual-scroll-orientation-horizontal","horizontal"===n.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==n.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[We([{provide:sF,useFactory:(i,e)=>i||e,deps:[[new sa,new Nm(cF)],t]}]),pe,Lv],ngContentSelectors:PX,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,n){1&e&&(vi(),v(0,"div",0,1),tt(2),y(),Se(3,"div",2)),2&e&&(k(3),ir("width",n._totalContentWidth)("height",n._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),t})(),Hc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})(),Jy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Ph,Hc,zX,Ph,Hc]}),t})();const lF=bI();class $X{constructor(i,e){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=_n(-this._previousScrollPosition.left),i.style.top=_n(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const i=this._document.documentElement,n=i.style,r=this._document.body.style,o=n.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),lF&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),lF&&(n.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}}class jX{constructor(i,e,n,r){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(i){this._overlayRef=i}enable(){if(this._scrollSubscription)return;const i=this._scrollDispatcher.scrolled(0).pipe(hi(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class dF{enable(){}disable(){}attach(){}}function e1(t,i){return i.some(e=>t.bottome.bottom||t.righte.right)}function uF(t,i){return i.some(e=>t.tope.bottom||t.lefte.right)}class WX{constructor(i,e,n,r){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(i){this._overlayRef=i}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();e1(e,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let GX=(()=>{class t{constructor(e,n,r,o){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new dF,this.close=a=>new jX(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new $X(this._viewportRuler,this._document),this.reposition=a=>new WX(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return t.\u0275fac=function(e){return new(e||t)(G(Pd),G(ya),G(ze),G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Ld{constructor(i){if(this.scrollStrategy=new dF,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){const e=Object.keys(i);for(const n of e)void 0!==i[n]&&(this[n]=i[n])}}}class qX{constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}}let hF=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),XX=(()=>{class t extends hF{constructor(e,n){super(e),this._ngZone=n,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const s=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(G(nt),G(ze,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QX=(()=>{class t extends hF{constructor(e,n,r){super(e),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=to(o)},this._clickListener=o=>{const a=to(o),s="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let l=c.length-1;l>-1;l--){const d=c[l];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(a)||d.overlayElement.contains(s))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(e){if(super.add(e),!this._isAttached){const n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return t.\u0275fac=function(e){return new(e||t)(G(nt),G(xi),G(ze,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Rg=(()=>{class t{constructor(e,n){this._platform=n,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||My()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new ke,this._outsidePointerEvents=new ke,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ui(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){const i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,i&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config={...this._config,...i},this._updateElementSize()}setDirection(i){this._config={...this._config,direction:i},this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){const i=this._config.direction;return i?"string"==typeof i?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const i=this._pane.style;i.width=_n(this._config.width),i.height=_n(this._config.height),i.minWidth=_n(this._config.minWidth),i.minHeight=_n(this._config.minHeight),i.maxWidth=_n(this._config.maxWidth),i.maxHeight=_n(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){const i="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const i=this._backdropElement;if(i){if(this._animationsDisabled)return void this._disposeBackdrop(i);i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,e,n){const r=Oh(e||[]).filter(o=>!!o);r.length&&(n?i.classList.add(...r):i.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const i=this._ngZone.onStable.pipe(Tt(Vi(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe())})})}_disposeScrollStrategy(){const i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const fF="cdk-overlay-connected-position-bounding-box",YX=/([A-Za-z%]+)$/;class KX{get positions(){return this._preferredPositions}constructor(i,e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ke,this._resizeSubscription=yt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}attach(i){this._validatePositions(),i.hostElement.classList.add(fF),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const i=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[];let a;for(let s of this._preferredPositions){let c=this._getOriginPoint(i,r,s),l=this._getOverlayPoint(c,e,s),d=this._getOverlayFit(l,e,n,s);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(d,l,n)?o.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!a||a.overlayFit.visibleAreac&&(c=d,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Uc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(fF),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,-1===i.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,n){let r,o;if("center"==n.originX)r=i.left+i.width/2;else{const a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;r="start"==n.originX?a:s}return e.left<0&&(r-=e.left),o="center"==n.originY?i.top+i.height/2:"top"==n.originY?i.top:i.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(i,e,n){let r,o;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:i.x+r,y:i.y+o}}_getOverlayFit(i,e,n,r){const o=pF(e);let{x:a,y:s}=i,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(a+=c),l&&(s+=l);let h=0-s,f=s+o.height-n.height,m=this._subtractOverflows(o.width,0-a,a+o.width-n.width),g=this._subtractOverflows(o.height,h,f),p=m*g;return{visibleArea:p,isCompletelyWithinViewport:o.width*o.height===p,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:m==o.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){const r=n.bottom-e.y,o=n.right-e.x,a=mF(this._overlayRef.getConfig().minHeight),s=mF(this._overlayRef.getConfig().minWidth);return(i.fitsInViewportVertically||null!=a&&a<=r)&&(i.fitsInViewportHorizontally||null!=s&&s<=o)}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};const r=pF(e),o=this._viewportRect,a=Math.max(i.x+r.width-o.width,0),s=Math.max(i.y+r.height-o.height,0),c=Math.max(o.top-n.top-i.y,0),l=Math.max(o.left-n.left-i.x,0);let d=0,u=0;return d=r.width<=o.width?l||-a:i.xm&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-m/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=n.width-i.x+this._viewportMargin,d=i.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)u=i.x,d=n.right-i.x;else{const f=Math.min(n.right-i.x+n.left,i.x),m=this._lastBoundingBoxSize.width;d=2*f,u=i.x-f,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=i.x-m/2)}return{top:a,left:u,bottom:s,right:h,width:d,height:o}}_setBoundingBoxStyles(i,e){const n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=_n(n.height),r.top=_n(n.top),r.bottom=_n(n.bottom),r.width=_n(n.width),r.left=_n(n.left),r.right=_n(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=_n(o)),a&&(r.maxWidth=_n(a))}this._lastBoundingBoxSize=n,Uc(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Uc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Uc(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){const n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();Uc(n,this._getExactOverlayY(e,i,d)),Uc(n,this._getExactOverlayX(e,i,d))}else n.position="static";let s="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),l&&(s+=`translateY(${l}px)`),n.transform=s.trim(),a.maxHeight&&(r?n.maxHeight=_n(a.maxHeight):o&&(n.maxHeight="")),a.maxWidth&&(r?n.maxWidth=_n(a.maxWidth):o&&(n.maxWidth="")),Uc(this._pane.style,n)}_getExactOverlayY(i,e,n){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"bottom"===i.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=_n(o.y),r}_getExactOverlayX(i,e,n){let a,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),a=this._isRtl()?"end"===i.overlayX?"left":"right":"end"===i.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=_n(o.x),r}_getScrollVisibility(){const i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:uF(i,n),isOriginOutsideView:e1(i,n),isOverlayClipped:uF(e,n),isOverlayOutsideView:e1(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,r)=>n-Math.max(r,0),i)}_getNarrowedViewportRect(){const i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+i-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return"x"===e?null==i.offsetX?this._offsetX:i.offsetX:null==i.offsetY?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Oh(i).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){const i=this._origin;if(i instanceof Fe)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();const e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}}function Uc(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function mF(t){if("number"!=typeof t&&null!=t){const[i,e]=t.split(YX);return e&&"px"!==e?null:parseFloat(i)}return t||null}function pF(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const gF="cdk-global-overlay-wrapper";class ZX{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(i){const e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(gF),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=n,c=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==o&&"100vh"!==o||s&&"100%"!==s&&"100vh"!==s),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",m="",g="";c?g="flex-start":"center"===d?(g="center",h?m=u:f=u):h?"left"===d||"end"===d?(g="flex-end",f=u):("right"===d||"start"===d)&&(g="flex-start",m=u):"left"===d||"start"===d?(g="flex-start",f=u):("right"===d||"end"===d)&&(g="flex-end",m=u),i.position=this._cssPosition,i.marginLeft=c?"0":f,i.marginTop=l?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":m,e.justifyContent=g,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(gF),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let JX=(()=>{class t{constructor(e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new ZX}flexibleConnectedTo(e){return new KX(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(G(ya),G(nt),G(xi),G(Rg))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),eQ=0,rr=(()=>{class t{constructor(e,n,r,o,a,s,c,l,d,u,h,f){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=s,this._ngZone=c,this._document=l,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),a=new Ld(e);return a.direction=a.direction||this._directionality.value,new Hh(o,n,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const n=this._document.createElement("div");return n.id="cdk-overlay-"+eQ++,n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(md)),new gX(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(G(GX),G(Rg),G(Ss),G(JX),G(XX),G(tn),G(ze),G(nt),G(bn),G(ih),G(QX),G(Ri,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const tQ=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],_F=new ae("cdk-connected-overlay-scroll-strategy");let t1=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(b(Fe))},t.\u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),t})(),bF=(()=>{class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=je(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=je(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=je(e)}get push(){return this._push}set push(e){this._push=je(e)}constructor(e,n,r,o,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=yt.EMPTY,this._attachSubscription=yt.EMPTY,this._detachSubscription=yt.EMPTY,this._positionSubscription=yt.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new xe,this.positionChange=new xe,this.attach=new xe,this.detach=new xe,this.overlayKeydown=new xe,this.overlayOutsideClick=new xe,this._templatePortal=new ss(n,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=tQ);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),27===n.keyCode&&!this.disableClose&&!wr(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{this.overlayOutsideClick.next(n)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Ld({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(n.width=this.width),(this.height||0===this.height)&&(n.height=this.height),(this.minWidth||0===this.minWidth)&&(n.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){const n=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof t1?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(GM(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(rr),b(_i),b(Fi),b(_F),b(bn,8))},t.\u0275dir=Q({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Ei]}),t})();const nQ={provide:_F,deps:[rr],useFactory:function iQ(t){return()=>t.scrollStrategies.reposition()}};let zc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[rr,nQ],imports:[Ph,Vc,Jy,Jy]}),t})();function rQ(t,i){if(1&t){const e=Je();v(0,"div",2)(1,"button",3),X("click",function(){return Me(e),Ae(q().action())}),E(2),y()()}if(2&t){const e=q();k(2),It(" ",e.data.action," ")}}const oQ=["label"];function aQ(t,i){}const sQ=Math.pow(2,31)-1;class Og{constructor(i,e){this._overlayRef=e,this._afterDismissed=new ke,this._afterOpened=new ke,this._onAction=new ke,this._dismissedByAction=!1,this.containerInstance=i,i._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,sQ))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const n1=new ae("MatSnackBarData");class Pg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let cQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),t})(),lQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),t})(),dQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),t})(),uQ=(()=>{class t{constructor(e,n){this.snackBarRef=e,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(b(Og),b(n1))},t.\u0275cmp=Ve({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(e,n){1&e&&(v(0,"div",0),E(1),y(),H(2,rQ,3,1,"div",1)),2&e&&(k(1),It(" ",n.data.message,"\n"),k(1),T("ngIf",n.hasAction))},dependencies:[fn,Lr,cQ,lQ,dQ],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),t})();const hQ={snackBarState:vn("state",[ii("void, hidden",rt({transform:"scale(0.8)",opacity:0})),ii("visible",rt({transform:"scale(1)",opacity:1})),ai("* => visible",fi("150ms cubic-bezier(0, 0, 0.2, 1)")),ai("* => void, * => hidden",fi("75ms cubic-bezier(0.4, 0.0, 1, 1)",rt({opacity:0})))])};let fQ=0,mQ=(()=>{class t extends Mg{constructor(e,n,r,o,a){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=ht(nt),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new ke,this._onExit=new ke,this._onEnter=new ke,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+fQ++,this.attachDomPortal=s=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(s);return this._afterPortalAttached(),c},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();const n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}onAnimationEnd(e){const{fromState:n,toState:r}=e;if(("void"===r&&"void"!==n||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(ui(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(r=>e.classList.add(r)):e.classList.add(n)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const n=e.getAttribute("aria-owns");if(n){const r=n.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(b(ze),b(Fe),b(Gt),b(xi),b(Pg))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(cs,7),2&e){let r;ye(r=we())&&(n._portalOutlet=r.first)}},features:[pe]}),t})(),pQ=(()=>{class t extends mQ{_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,n="mdc-snackbar__label";e.classList.toggle(n,!e.querySelector(`.${n}`))}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,n){if(1&e&&st(oQ,7),2&e){let r;ye(r=we())&&(n._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,n){1&e&&wv("@state.done",function(o){return n.onAnimationEnd(o)}),2&e&&Tv("@state",n._animationState)},features:[pe],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,n){1&e&&(v(0,"div",0)(1,"div",1,2)(3,"div",3),H(4,aQ,0,0,"ng-template",4),y(),Se(5,"div"),y()()),2&e&&(k(5),ot("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[cs],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[hQ.snackBarState]}}),t})(),vF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[zc,Vc,nr,JI,xt,xt]}),t})();const xF=new ae("mat-snack-bar-default-options",{providedIn:"root",factory:function gQ(){return new Pg}});let _Q=(()=>{class t{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,n,r,o,a,s){this._overlay=e,this._live=n,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:n},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){const o=tn.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Pg,useValue:n}]}),a=new Od(this.snackBarContainerComponent,n.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){const r={...new Pg,...this._defaultConfig,...n},o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new Og(a,o);if(e instanceof _i){const c=new ss(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(r,s),l=new Od(e,void 0,c),d=a.attachComponentPortal(l);s.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Tt(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration))}_createOverlay(e){const n=new Ld;n.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,s=!a&&"center"!==e.horizontalPosition;return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),n.positionStrategy=r,this._overlay.create(n)}_createInjector(e,n){return tn.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Og,useValue:n},{provide:n1,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(G(rr),G(Hy),G(tn),G(Py),G(t,12),G(xF))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Nd=(()=>{class t extends _Q{constructor(e,n,r,o,a,s){super(e,n,r,o,a,s),this.simpleSnackBarComponent=uQ,this.snackBarContainerComponent=pQ,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(G(rr),G(Hy),G(tn),G(Py),G(t,12),G(xF))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:vF}),t})(),Qi=(()=>{class t{constructor(e,n){this.sbRef=e,this.data=n}}return t.\u0275fac=function(e){return new(e||t)(b(Og),b(n1))},t.\u0275cmp=Ve({type:t,selectors:[["snack-alert"]],decls:2,vars:1,consts:[[1,"example-alert"]],template:function(e,n){1&e&&(v(0,"span",0),E(1),y()),2&e&&(k(1),Xe(n.data))},styles:[".example-alert[_ngcontent-%COMP%]{color:#fff}"]}),t})(),Nr=(()=>{class t{constructor(e,n){this.http=e,this._snackBar=n,this.snowstormFhirBase="https://snowstorm.ihtsdotools.org/fhir",this.defaultFhirUrlParam="http://snomed.info/sct",this.fhirUrlParam=this.defaultFhirUrlParam,this.lang="en",this.conceptCache=new Map}setSnowstormFhirBase(e){this.snowstormFhirBase=e}setFhirUrlParam(e){this.fhirUrlParam=e}getFhirUrlParam(){return this.fhirUrlParam}setLang(e){this.lang=e}getCodeSystems(){return this.http.get(`${this.snowstormFhirBase}/CodeSystem`).pipe(pn(this.handleError("getCodeSystems",{})))}getValueSetExpansionUrl(e,n,r,o){return r||(r=0),o||(o=20),"string"!=typeof n&&(n=""),`${this.snowstormFhirBase}/ValueSet/$expand?url=${this.fhirUrlParam}?fhir_vs=ecl/${encodeURIComponent(e)}&count=${o}&offset=${r}&filter=${n}&language=${this.lang}&displayLanguage=${this.lang}`}expandValueSet(e,n,r,o){let a=this.getValueSetExpansionUrl(e,n,r,o);return this.http.get(a).pipe(pn(this.handleError("expandValueSet",{})))}translate(e,n,r){return r||(r=this.defaultFhirUrlParam),this.http.get(`${this.snowstormFhirBase}/ConceptMap/$translate?url=http://snomed.info/sct?fhir_cm=${e}&code=${n}&system=${r}`).pipe(pn(this.handleError("translate",{})))}expandValueSetFromServer(e,n,r,o,a,s){a||(a=0),s||(s=20),e||(e=this.snowstormFhirBase),n||(n=this.fhirUrlParam),"string"!=typeof o&&(o="");let c=`${e}/ValueSet/$expand?url=${n}?fhir_vs=ecl/${encodeURIComponent(r)}&count=${s}&offset=${a}&filter=${o}&language=${this.lang}&displayLanguage=${this.lang}`;return this.http.get(c).pipe(pn(this.handleError("expandValueSet",{})))}handleError(e="operation",n){return r=>(console.error("There was an error!"),console.error(r),this._snackBar.openFromComponent(Qi,{duration:5e3,data:r.message,panelClass:["red-snackbar"]}),$e(n))}lookupConcept(e,n){n||(n=this.fhirUrlParam);const r=`${n}:${e}`,o=this.conceptCache.get(r);return o?$e(o):this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${n}&code=${e}&property=normalForm`).pipe(zi(s=>{this.conceptCache.set(r,s)}),pn(this.handleError("lookupConcept",{})))}getMRCMAttributes(e){let n=`${this.snowstormFhirBase.replace("fhir","snowstorm/snomed-ct")}mrcm/MAIN/domain-attributes?parentIds=${e}&proximalPrimitiveModeling=false&contentType=POSTCOORDINATED`;return this.http.get(n).pipe(pn(this.handleError("getMRCMAttributes",{})))}addPostcoordinatedExpression(e){let n=`${this.snowstormFhirBase}/CodeSystem/sct_11000003104_EXP`;const r={headers:new va({"Content-Type":"application/fhir+json"})};return this.http.patch(n,{resourceType:"CodeSystem",concept:[{code:e}]},r).pipe(pn(this.handleError("addPostcoordinatedExpression",{})))}runEclLegacy(e){let n=`https://browser.ihtsdotools.org/snowstorm/snomed-ct/MAIN/SNOMEDCT-ES/2022-10-31/concepts?offset=0&limit=100&termActive=true&ecl=${encodeURIComponent(e)}`;return this.http.get(n).pipe(pn(this.handleError("expandValueSet",{})))}getIcd10MapTargets(e){return this.http.get(`${this.snowstormFhirBase}/ConceptMap/$translate?code=${e}&system=http://snomed.info/sct&source=http://snomed.info/sct?fhir_vs&target=http://hl7.org/fhir/sid/icd-10&url=http://snomed.info/sct/900000000000207008/version/20200131?fhir_cm=447562003`).pipe(pn(this.handleError("translate",{})))}lookupOtherCodeSystems(e,n){return this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${e}&code=${n}`).pipe(pn(this.handleError("lookup",{})))}}return t.\u0275fac=function(e){return new(e||t)(G(Ns),G(Nd))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function yF(...t){const i=sk(t),{args:e,keys:n}=HM(t),r=new ni(o=>{const{length:a}=e;if(!a)return void o.complete();const s=new Array(a);let c=a,l=a;for(let d=0;d{u||(u=!0,l--),s[d]=h},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(n?UM(n,s):s),o.complete())}))}});return i?r.pipe(Bx(i)):r}const bQ=["*"];let Lg;function Uh(t){return function vQ(){if(void 0===Lg&&(Lg=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(Lg=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return Lg}()?.createHTML(t)||t}function wF(t){return Error(`Unable to find icon with the name "${t}"`)}function CF(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function kF(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class $c{constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}}let Ng=(()=>{class t{constructor(e,n,r,o){this._httpClient=e,this._sanitizer=n,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,n,r){return this.addSvgIconInNamespace("",e,n,r)}addSvgIconLiteral(e,n,r){return this.addSvgIconLiteralInNamespace("",e,n,r)}addSvgIconInNamespace(e,n,r,o){return this._addSvgIconConfig(e,n,new $c(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,r,o){const a=this._sanitizer.sanitize(di.HTML,r);if(!a)throw kF(r);const s=Uh(a);return this._addSvgIconConfig(e,n,new $c("",s,o))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,r){return this._addSvgIconSetConfig(e,new $c(n,null,r))}addSvgIconSetLiteralInNamespace(e,n,r){const o=this._sanitizer.sanitize(di.HTML,n);if(!o)throw kF(n);const a=Uh(o);return this._addSvgIconSetConfig(e,new $c("",a,r))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const n=this._sanitizer.sanitize(di.RESOURCE_URL,e);if(!n)throw CF(e);const r=this._cachedIconsByUrl.get(n);return r?$e(Bg(r)):this._loadSvgIconFromConfig(new $c(e,null)).pipe(zi(o=>this._cachedIconsByUrl.set(n,o)),Ke(o=>Bg(o)))}getNamedSvgIcon(e,n=""){const r=DF(n,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(n,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):Rc(wF(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?$e(Bg(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ke(n=>Bg(n)))}_getSvgFromIconSetConfigs(e,n){const r=this._extractIconWithNameFromAnySet(e,n);return r?$e(r):yF(n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(pn(s=>{const l=`Loading icon set URL: ${this._sanitizer.sanitize(di.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(l)),$e(null)})))).pipe(Ke(()=>{const a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw wF(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let r=n.length-1;r>=0;r--){const o=n[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(zi(n=>e.svgText=n),Ke(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?$e(null):this._fetchIcon(e).pipe(zi(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,r){const o=e.querySelector(`[id="${n}"]`);if(!o)return null;const a=o.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,r);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),r);const s=this._svgElementFromString(Uh(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){const n=this._document.createElement("DIV");n.innerHTML=e;const r=n.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const n=this._svgElementFromString(Uh("")),r=e.attributes;for(let o=0;oUh(l)),$p(()=>this._inProgressUrlFetches.delete(a)),uk());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(DF(e,n),r),this}_addSvgIconSetConfig(e,n){const r=this._iconSetConfigs.get(e);return r?r.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){const n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let r=0;ri?i.pathname+i.search:""}}}),SF=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],EQ=SF.map(t=>`[${t}]`).join(", "),TQ=/^url\(['"]?#(.*?)['"]?\)$/;let Qo=(()=>{class t extends CQ{get inline(){return this._inline}set inline(e){this._inline=je(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(e,n,r,o,a,s){super(e),this._iconRegistry=n,this._location=o,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=yt.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){const r=e.childNodes[n];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),n.forEach(r=>e.classList.add(r)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const n=this._elementsWithExternalReferences;n&&n.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const n=e.querySelectorAll(EQ),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const s=n[o],c=s.getAttribute(a),l=c?c.match(TQ):null;if(l){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[n,r]=this._splitIconName(e);n&&(this._svgNamespace=n),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,n).pipe(ui(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${n}:${r}! ${o.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Ng),fo("aria-hidden"),b(DQ),b(Xa),b(kQ,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,n){2&e&&(ot("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),Qe("mat-icon-inline",n.inline)("mat-icon-no-color","primary"!==n.color&&"accent"!==n.color&&"warn"!==n.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[pe],ngContentSelectors:bQ,decls:1,vars:0,template:function(e,n){1&e&&(vi(),tt(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),t})(),MQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,xt]}),t})();function EF(t,i){return i?e=>dh(i.pipe(ui(1),function AQ(){return Gi((t,i)=>{t.subscribe(Bi(i,pr))})}()),e.pipe(EF(t))):En((e,n)=>Yn(t(e,n)).pipe(ui(1),qM(e)))}function r1(t,i=Rh){const e=Fg(t,i);return EF(()=>e)}const IQ=["mat-menu-item",""];function FQ(t,i){1&t&&(Wa(),v(0,"svg",3),Se(1,"polygon",4),y())}const RQ=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],OQ=["mat-icon, [matMenuItemIcon]","*"];function PQ(t,i){if(1&t){const e=Je();v(0,"div",0),X("keydown",function(r){return Me(e),Ae(q()._handleKeydown(r))})("click",function(){return Me(e),Ae(q().closed.emit("click"))})("@transformMenu.start",function(r){return Me(e),Ae(q()._onAnimationStart(r))})("@transformMenu.done",function(r){return Me(e),Ae(q()._onAnimationDone(r))}),v(1,"div",1),tt(2),y()()}if(2&t){const e=q();T("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),ot("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const LQ=["*"],o1=new ae("MAT_MENU_PANEL"),NQ=Hs(rs(class{}));let wa=(()=>{class t extends NQ{constructor(e,n,r,o,a){super(),this._elementRef=e,this._document=n,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new ke,this._focused=new ke,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",fi("120ms cubic-bezier(0, 0, 0.2, 1)",rt({opacity:1,transform:"scale(1)"}))),ai("* => void",fi("100ms 25ms linear",rt({opacity:0})))]),fadeInItems:vn("fadeInItems",[ii("showing",rt({opacity:1})),ai("void => *",[rt({opacity:0}),fi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let VQ=0;const TF=new ae("mat-menu-default-options",{providedIn:"root",factory:function HQ(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let zh=(()=>{class t{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=je(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(e)}set panelClass(e){const n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,n,r,o){this._elementRef=e,this._ngZone=n,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Tc,this._classList={},this._panelAnimationState="void",this._animationDone=new ke,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new xe,this.close=this.closed,this.panelId="mat-menu-panel-"+VQ++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new By(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Hn(this._directDescendantItems),mn(e=>Vi(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const n=this._keyManager;if("enter"===this._panelAnimationState&&n.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,n.activeItemIndex||0));r[o]&&!r[o].disabled?n.setActiveItem(o):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Hn(this._directDescendantItems),mn(n=>Vi(...n.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const n=e.keyCode,r=this._keyManager;switch(n){case 27:wr(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===n||40===n)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(ui(1)).subscribe(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&n&&n.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const n=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${n}`,o=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,n=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===n,r["mat-menu-below"]="below"===n,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Hn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(ze),b(TF),b(Gt))},t.\u0275dir=Q({type:t,contentQueries:function(e,n,r){if(1&e&&(Bt(r,BQ,5),Bt(r,wa,5),Bt(r,wa,4)),2&e){let o;ye(o=we())&&(n.lazyContent=o.first),ye(o=we())&&(n._allItems=o),ye(o=we())&&(n.items=o)}},viewQuery:function(e,n){if(1&e&&st(_i,5),2&e){let r;ye(r=we())&&(n.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t})(),jc=(()=>{class t extends zh{constructor(e,n,r,o){super(e,n,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(ze),b(TF),b(Gt))},t.\u0275cmp=Ve({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,n){2&e&&ot("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[We([{provide:o1,useExisting:t}]),pe],ngContentSelectors:LQ,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(e,n){1&e&&(vi(),H(0,PQ,3,6,"ng-template"))},dependencies:[Ms],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Vg.transformMenu,Vg.fadeInItems]},changeDetection:0}),t})();const MF=new ae("mat-menu-scroll-strategy"),zQ={provide:MF,deps:[rr],useFactory:function UQ(t){return()=>t.scrollStrategies.reposition()}},AF=Xo({passive:!0});let $Q=(()=>{class t{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),("click"===n||"tab"===n)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,n,r,o,a,s,c,l,d){this._overlay=e,this._element=n,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=c,this._focusMonitor=l,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=yt.EMPTY,this._hoverSubscription=yt.EMPTY,this._menuCloseSubscription=yt.EMPTY,this._changeDetectorRef=ht(Gt),this._handleTouchStart=u=>{Cg(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new xe,this.onMenuOpen=this.menuOpened,this.menuClosed=new xe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof zh?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,AF)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,AF),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const n=this._createOverlay(e),r=n.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,n.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof zh&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Tt(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof zh?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(hi(r=>"void"===r.toState),ui(1),Tt(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let n=0,r=e.parentMenu;for(;r;)n++,r=r.parentMenu;e.setElevation(n)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Ld({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",a="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,a)):e.setPositionClasses(o,a)})}_setPosition(e,n){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[a,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[c,l]=[a,s],[d,u]=[r,o],h=0;if(this.triggersSubmenu()){if(u=r="before"===e.xPosition?"start":"end",o=d="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const f=this._parentMaterialMenu.items.first;this._parentInnerPadding=f?f._getHostElement().offsetTop:0}h="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c="top"===a?"bottom":"top",l="top"===s?"bottom":"top");n.withPositions([{originX:r,originY:c,overlayX:d,overlayY:a,offsetY:h},{originX:o,originY:c,overlayX:u,overlayY:a,offsetY:h},{originX:r,originY:l,overlayX:d,overlayY:s,offsetY:-h},{originX:o,originY:l,overlayX:u,overlayY:s,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return Vi(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:$e(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(hi(a=>a!==this._menuItemInstance),hi(()=>this._menuOpen)):$e(),n)}_handleMousedown(e){wg(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const n=e.keyCode;(13===n||32===n)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===n&&"ltr"===this.dir||37===n&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(hi(e=>e===this._menuItemInstance&&!e.disabled),r1(0,Ky)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof zh&&this.menu._isAnimating?this.menu._animationDone.pipe(ui(1),r1(0,Ky),Tt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new ss(e.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(b(rr),b(Fe),b(Fi),b(MF),b(o1,8),b(wa,10),b(bn,8),b(yo),b(ze))},t.\u0275dir=Q({type:t,hostVars:3,hostBindings:function(e,n){1&e&&X("click",function(o){return n._handleClick(o)})("mousedown",function(o){return n._handleMousedown(o)})("keydown",function(o){return n._handleKeydown(o)}),2&e&&ot("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),Wc=(()=>{class t extends $Q{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[pe]}),t})(),jQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[zQ],imports:[nr,Us,xt,zc,Hc,xt]}),t})();const WQ=["determinateSpinner"];function GQ(t,i){if(1&t&&(Wa(),v(0,"svg",11),Se(1,"circle",12),y()),2&t){const e=q();ot("viewBox",e._viewBox()),k(1),ir("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),ot("r",e._circleRadius())}}const qQ=Vs(class{constructor(t){this._elementRef=t}},"primary"),XQ=new ae("mat-progress-spinner-default-options",{providedIn:"root",factory:function QQ(){return{diameter:IF}}}),IF=100;let Bd=(()=>{class t extends qQ{constructor(e,n,r){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=IF,this._noopAnimations="NoopAnimations"===n&&!!r&&!r._forceAnimations,r&&(r.color&&(this.color=this.defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,In(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=In(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=In(e)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const e=2*this._circleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Ri,8),b(XQ))},t.\u0275cmp=Ve({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(e,n){if(1&e&&st(WQ,5),2&e){let r;ye(r=we())&&(n._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function(e,n){2&e&&(ot("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===n.mode?n.value:null)("mode",n.mode),ir("width",n.diameter,"px")("height",n.diameter,"px"),Qe("_mat-animation-noopable",n._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===n.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[pe],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(e,n){if(1&e&&(H(0,GQ,2,8,"ng-template",null,0,Mc),v(2,"div",1,2),Wa(),v(4,"svg",3),Se(5,"circle",4),y()(),Ll(),v(6,"div",5)(7,"div",6)(8,"div",7),Jr(9,8),y(),v(10,"div",9),Jr(11,8),y(),v(12,"div",10),Jr(13,8),y()()()),2&e){const r=Nt(1);k(4),ot("viewBox",n._viewBox()),k(1),ir("stroke-dasharray",n._strokeCircumference(),"px")("stroke-dashoffset",n._strokeDashOffset(),"px")("stroke-width",n._circleStrokeWidth(),"%"),ot("r",n._circleRadius()),k(4),T("ngTemplateOutlet",r),k(2),T("ngTemplateOutlet",r),k(2),T("ngTemplateOutlet",r)}},dependencies:[Pp],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, transparent)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),t})(),KQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[nr,xt]}),t})();const ZQ=["*"],nY=new ae("MAT_CARD_CONFIG");let a1=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}}return t.\u0275fac=function(e){return new(e||t)(b(nY,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(e,n){2&e&&Qe("mat-mdc-card-outlined","outlined"===n.appearance)("mdc-card--outlined","outlined"===n.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:ZQ,decls:1,vars:0,template:function(e,n){1&e&&(vi(),tt(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),t})(),_Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,nr,xt]}),t})();const vY=[[["caption"]],[["colgroup"],["col"]]],xY=["caption","colgroup, col"];function s1(t){return class extends t{get sticky(){return this._sticky}set sticky(i){const e=this._sticky;this._sticky=je(i),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const i=this._hasStickyChanged;return this._hasStickyChanged=!1,i}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...i){super(...i),this._sticky=!1,this._hasStickyChanged=!1}}}const Vd=new ae("CDK_TABLE");let Hd=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]}),t})(),Ud=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),Hg=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class kY{}const DY=s1(kY);let ls=(()=>{class t extends DY{get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const n=this._stickyEnd;this._stickyEnd=je(e),this._hasStickyChanged=n!==this._stickyEnd}constructor(e){super(),this._table=e,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(b(Vd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,Hd,5),Bt(r,Ud,5),Bt(r,Hg,5)),2&e){let o;ye(o=we())&&(n.cell=o.first),ye(o=we())&&(n.headerCell=o.first),ye(o=we())&&(n.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[We([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),pe]}),t})();class c1{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}}let l1=(()=>{class t extends c1{constructor(e,n){super(e,n)}}return t.\u0275fac=function(e){return new(e||t)(b(ls),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[pe]}),t})(),d1=(()=>{class t extends c1{constructor(e,n){if(super(e,n),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");n.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(b(ls),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[pe]}),t})();class RF{constructor(){this.tasks=[],this.endTasks=[]}}const u1=new ae("_COALESCED_STYLE_SCHEDULER");let OF=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new ke}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new RF,this._getScheduleObservable().pipe(Tt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new RF;for(const n of e.tasks)n();for(const n of e.endTasks)n()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Ji(Promise.resolve(void 0)):this._ngZone.onStable.pipe(ui(1))}}return t.\u0275fac=function(e){return new(e||t)(G(ze))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),h1=(()=>{class t{constructor(e,n){this.template=e,this._differs=n}ngOnChanges(e){if(!this._columnsDiffer){const n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof $h?e.headerCell.template:this instanceof jh?e.footerCell.template:e.cell.template}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Za))},t.\u0275dir=Q({type:t,features:[Ei]}),t})();class SY extends h1{}const EY=s1(SY);let $h=(()=>{class t extends EY{constructor(e,n,r){super(e,n),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Za),b(Vd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[pe,Ei]}),t})();class TY extends h1{}const MY=s1(TY);let jh=(()=>{class t extends MY{constructor(e,n,r){super(e,n),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Za),b(Vd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[pe,Ei]}),t})(),Ug=(()=>{class t extends h1{constructor(e,n,r){super(e,n),this._table=r}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Za),b(Vd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[pe]}),t})(),ds=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.mostRecentCellOutlet=null,t.\u0275fac=function(e){return new(e||t)(b(Fi))},t.\u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]}),t})(),f1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ve({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Jr(0,0)},dependencies:[ds],encapsulation:2}),t})(),p1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ve({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Jr(0,0)},dependencies:[ds],encapsulation:2}),t})(),zg=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const PF=["top","bottom","left","right"];class AY{constructor(i,e,n,r,o=!0,a=!0,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){const n=[];for(const r of i)if(r.nodeType===r.ELEMENT_NODE){n.push(r);for(let o=0;o{for(const r of n)this._removeStickyStyle(r,e)})}updateStickyColumns(i,e,n,r=!0){if(!i.length||!this._isBrowser||!e.some(h=>h)&&!n.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=i[0],a=o.children.length,s=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(s,e),l=this._getStickyEndColumnPositions(s,n),d=e.lastIndexOf(!0),u=n.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,f=h?"right":"left",m=h?"left":"right";for(const g of i)for(let p=0;pe[p]?g:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:s.slice(u).map((g,p)=>n[p+u]?g:null).reverse()}))})}stickRows(i,e,n){if(!this._isBrowser)return;const r="bottom"===n?i.slice().reverse():i,o="bottom"===n?e.slice().reverse():e,a=[],s=[],c=[];for(let d=0,u=0;d{for(let d=0;d{e.some(r=>!r)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1)})}_removeStickyStyle(i,e){for(const r of e)i.style[r]="",i.classList.remove(this._borderCellCss[r]);PF.some(r=>-1===e.indexOf(r)&&i.style[r])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,r){i.classList.add(this._stickCellCss),r&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const r of PF)i.style[r]&&(n+=e[r]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],r=i.children;for(let o=0;o0;o--)e[o]&&(n[o]=r,r+=i[o]);return n}}const g1=new ae("CDK_SPL");let $g=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]}),t})(),jg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),Wg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Gg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),qg=(()=>{class t{get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=je(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=je(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,n,r,o,a,s,c,l,d,u,h,f){this._differs=e,this._changeDetectorRef=n,this._elementRef=r,this._dir=a,this._platform=c,this._viewRepeater=l,this._coalescedStyleScheduler=d,this._viewportRuler=u,this._stickyPositioningListener=h,this._ngZone=f,this._onDestroy=new ke,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new xe,this.viewChange=new Vn({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(Tt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),_y(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{n.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&ze.isInAngularZone()?this._ngZone.onStable.pipe(ui(1),Tt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const o=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{const a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const s=r&&r.has(a)?r.get(a):[];if(s.length){const c=s.shift();return c.dataIndex=n,c}return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Xg(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=Xg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Xg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Xg(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(a,s)=>a||!!s.getColumnsDiff(),n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),n||r||o}_switchDataSource(e){this._data=[],_y(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;_y(this.dataSource)?e=this.dataSource.connect(this):function bY(t){return!!t&&(t instanceof ni||Wt(t.lift)&&Wt(t.subscribe))}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=$e(this.dataSource)),this._renderChangeSubscription=e.pipe(Tt(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){const r=Array.from(n.columns||[]).map(s=>this._columnDefsByName.get(s)),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const n=[];for(let r=0;r!o.when||o.when(n,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,n){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:n}}_renderRow(e,n,r,o={}){const a=e.viewContainer.createEmbeddedView(n.template,o,r);return this._renderCellTemplateForItem(n,o),a}_renderCellTemplateForItem(e,n){for(let r of this._getCellTemplates(e))ds.mostRecentCellOutlet&&ds.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let n=0,r=e.length;n{const r=this._columnDefsByName.get(n);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),n=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of n){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const a of r.outlets)o.appendChild(a.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(n,r)=>n||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new AY(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:$e()).pipe(Tt(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const n=0===this._rowOutlet.viewContainer.length;if(n===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(n){const o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];1===o.rootNodes.length&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=n}}return t.\u0275fac=function(e){return new(e||t)(b(Za),b(Gt),b(Fe),fo("role"),b(bn,8),b(nt),b(xi),b(Sh),b(u1),b(ya),b(g1,12),b(ze,8))},t.\u0275cmp=Ve({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,zg,5),Bt(r,ls,5),Bt(r,Ug,5),Bt(r,$h,5),Bt(r,jh,5)),2&e){let o;ye(o=we())&&(n._noDataRow=o.first),ye(o=we())&&(n._contentColumnDefs=o),ye(o=we())&&(n._contentRowDefs=o),ye(o=we())&&(n._contentHeaderRowDefs=o),ye(o=we())&&(n._contentFooterRowDefs=o)}},viewQuery:function(e,n){if(1&e&&(st($g,7),st(jg,7),st(Wg,7),st(Gg,7)),2&e){let r;ye(r=we())&&(n._rowOutlet=r.first),ye(r=we())&&(n._headerRowOutlet=r.first),ye(r=we())&&(n._footerRowOutlet=r.first),ye(r=we())&&(n._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,n){2&e&&Qe("cdk-table-fixed-layout",n.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[We([{provide:Vd,useExisting:t},{provide:Sh,useClass:eI},{provide:u1,useClass:OF},{provide:g1,useValue:null}])],ngContentSelectors:xY,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(vi(vY),tt(0),tt(1,1),Jr(2,0)(3,1)(4,2)(5,3))},dependencies:[$g,jg,Wg,Gg],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),t})();function Xg(t,i){return t.concat(Array.from(i))}let FY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Jy]}),t})();const RY=[[["caption"]],[["colgroup"],["col"]]],OY=["caption","colgroup, col"];let Wh=(()=>{class t extends qg{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(e,n){2&e&&Qe("mdc-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],features:[We([{provide:qg,useExisting:t},{provide:Vd,useExisting:t},{provide:u1,useClass:OF},{provide:Sh,useClass:eI},{provide:g1,useValue:null}]),pe],ngContentSelectors:OY,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(vi(RY),tt(0),tt(1,1),Jr(2,0)(3,1)(4,2)(5,3))},dependencies:[$g,jg,Wg,Gg],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),t})(),zd=(()=>{class t extends Hd{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[We([{provide:Hd,useExisting:t}]),pe]}),t})(),$d=(()=>{class t extends Ud{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[We([{provide:Ud,useExisting:t}]),pe]}),t})(),jd=(()=>{class t extends ls{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[We([{provide:ls,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),pe]}),t})(),Wd=(()=>{class t extends l1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[pe]}),t})(),Gd=(()=>{class t extends d1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[pe]}),t})(),Gh=(()=>{class t extends $h{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[We([{provide:$h,useExisting:t}]),pe]}),t})(),qh=(()=>{class t extends Ug{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[We([{provide:Ug,useExisting:t}]),pe]}),t})(),Xh=(()=>{class t extends f1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[We([{provide:f1,useExisting:t}]),pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Jr(0,0)},dependencies:[ds],encapsulation:2}),t})(),Qh=(()=>{class t extends p1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[We([{provide:p1,useExisting:t}]),pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Jr(0,0)},dependencies:[ds],encapsulation:2}),t})(),jY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,FY,xt]}),t})();class GY extends gy{get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}constructor(i=[]){super(),this._renderData=new Vn([]),this._filter=new Vn(""),this._internalPageChanges=new ke,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,n)=>{const r=e[n];if(xI(r)){const o=Number(r);return o<9007199254740991?o:r}return r},this.sortData=(e,n)=>{const r=n.active,o=n.direction;return r&&""!=o?e.sort((a,s)=>{let c=this.sortingDataAccessor(a,r),l=this.sortingDataAccessor(s,r);const d=typeof c,u=typeof l;d!==u&&("number"===d&&(c+=""),"number"===u&&(l+=""));let h=0;return null!=c&&null!=l?c>l?h=1:c{const r=Object.keys(e).reduce((a,s)=>a+e[s]+"\u25ec","").toLowerCase(),o=n.trim().toLowerCase();return-1!=r.indexOf(o)},this._data=new Vn(i),this._updateChangeSubscription()}_updateChangeSubscription(){const i=this._sort?Vi(this._sort.sortChange,this._sort.initialized):$e(null),e=this._paginator?Vi(this._paginator.page,this._internalPageChanges,this._paginator.initialized):$e(null),r=Fc([this._data,this._filter]).pipe(Ke(([s])=>this._filterData(s))),o=Fc([r,i]).pipe(Ke(([s])=>this._orderData(s))),a=Fc([o,e]).pipe(Ke(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=null==this.filter||""===this.filter?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;const e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){const n=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,n);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Yh extends GY{}let NF=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(b(qa),b(Fe))},t.\u0275dir=Q({type:t}),t})(),Gc=(()=>{class t extends NF{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,features:[pe]}),t})();const Xn=new ae("NgValueAccessor"),XY={provide:Xn,useExisting:Xt(()=>Ca),multi:!0},YY=new ae("CompositionEventMode");let Ca=(()=>{class t extends NF{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function QY(){const t=Ja()?Ja().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(b(qa),b(Fe),b(YY,8))},t.\u0275dir=Q({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,n){1&e&&X("input",function(o){return n._handleInput(o.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(o){return n._compositionEnd(o.target.value)})},features:[We([XY]),pe]}),t})();const KY=!1;function $s(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function VF(t){return null!=t&&"number"==typeof t.length}const Un=new ae("NgValidators"),js=new ae("NgAsyncValidators"),ZY=/^(?=.{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 qd{static min(i){return function HF(t){return i=>{if($s(i.value)||$s(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e{if($s(i.value)||$s(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(i)}static required(i){return zF(i)}static requiredTrue(i){return function $F(t){return!0===t.value?null:{required:!0}}(i)}static email(i){return function jF(t){return $s(t.value)||ZY.test(t.value)?null:{email:!0}}(i)}static minLength(i){return WF(i)}static maxLength(i){return function GF(t){return i=>VF(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(i)}static pattern(i){return qF(i)}static nullValidator(i){return null}static compose(i){return JF(i)}static composeAsync(i){return eR(i)}}function zF(t){return $s(t.value)?{required:!0}:null}function WF(t){return i=>$s(i.value)||!VF(i.value)?null:i.value.length{if($s(n.value))return null;const r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Qg(t){return null}function XF(t){return null!=t}function QF(t){const i=ju(t)?Ji(t):t;if(KY&&!yv(i)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof t&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new ue(-1101,e)}return i}function YF(t){let i={};return t.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function KF(t,i){return i.map(e=>e(t))}function ZF(t){return t.map(i=>function JY(t){return!t.validate}(i)?i:e=>i.validate(e))}function JF(t){if(!t)return null;const i=t.filter(XF);return 0==i.length?null:function(e){return YF(KF(e,i))}}function _1(t){return null!=t?JF(ZF(t)):null}function eR(t){if(!t)return null;const i=t.filter(XF);return 0==i.length?null:function(e){return yF(KF(e,i).map(QF)).pipe(Ke(YF))}}function b1(t){return null!=t?eR(ZF(t)):null}function tR(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function iR(t){return t._rawValidators}function nR(t){return t._rawAsyncValidators}function v1(t){return t?Array.isArray(t)?t:[t]:[]}function Yg(t,i){return Array.isArray(t)?t.includes(i):t===i}function rR(t,i){const e=v1(i);return v1(t).forEach(r=>{Yg(e,r)||e.push(r)}),e}function oR(t,i){return v1(i).filter(e=>!Yg(t,e))}class aR{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(i){this._rawValidators=i||[],this._composedValidatorFn=_1(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=b1(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class Cr extends aR{get formDirective(){return null}get path(){return null}}class ka extends aR{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class sR{constructor(i){this._cd=i}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 Co=(()=>{class t extends sR{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(b(ka,2))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&Qe("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},features:[pe]}),t})(),Kh=(()=>{class t extends sR{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Cr,10))},t.\u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&Qe("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},features:[pe]}),t})();function cR(t,i){return t?`with name: '${i}'`:`at index: ${i}`}const w1=!1,Zh="VALID",Zg="INVALID",Xd="PENDING",Jh="DISABLED";function C1(t){return(Jg(t)?t.validators:t)||null}function k1(t,i){return(Jg(i)?i.asyncValidators:t)||null}function Jg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function lR(t,i,e){const n=t.controls;if(!(i?Object.keys(n):n).length)throw new ue(1e3,w1?function nK(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(i):"");if(!n[e])throw new ue(1001,w1?function rK(t,i){return`Cannot find form control ${cR(t,i)}`}(i,e):"")}function dR(t,i,e){t._forEachChild((n,r)=>{if(void 0===e[r])throw new ue(1002,w1?function oK(t,i){return`Must supply a value for form control ${cR(t,i)}`}(i,r):"")})}class e0{constructor(i,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(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===Zh}get invalid(){return this.status===Zg}get pending(){return this.status==Xd}get disabled(){return this.status===Jh}get enabled(){return this.status!==Jh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(rR(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(rR(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(oR(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(oR(i,this._rawAsyncValidators))}hasValidator(i){return Yg(this._rawValidators,i)}hasAsyncValidator(i){return Yg(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Xd,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=Jh,this.errors=null,this._forEachChild(n=>{n.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=Zh,this._forEachChild(n=>{n.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Zh||this.status===Xd)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Jh:Zh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Xd,this._hasOwnPendingAsyncValidator=!0;const e=QF(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new xe,this.statusChanges=new xe}_calculateStatus(){return this._allControlsDisabled()?Jh:this.errors?Zg:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xd)?Xd:this._anyControlsHaveStatus(Zg)?Zg:Zh}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Jg(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function aK(t){return Array.isArray(t)?_1(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function sK(t){return Array.isArray(t)?b1(t):t||null}(this._rawAsyncValidators)}}class Qd extends e0{constructor(i,e,n){super(C1(e),k1(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){dR(this,!0,i),Object.keys(i).forEach(n=>{lR(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{const r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,o)=>{n=e(n,r,o)}),n}_allControlsDisabled(){for(const i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}}class uR extends Qd{}const qc=new ae("CallSetDisabledState",{providedIn:"root",factory:()=>ef}),ef="always";function t0(t,i){return[...i.path,t]}function tf(t,i,e=ef){D1(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function lK(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&hR(t,i)})}(t,i),function uK(t,i){const e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function dK(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&hR(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function cK(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function n0(t,i,e=!0){const n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),o0(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function r0(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function D1(t,i){const e=iR(t);null!==i.validator?t.setValidators(tR(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=nR(t);null!==i.asyncValidator?t.setAsyncValidators(tR(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const r=()=>t.updateValueAndValidity();r0(i._rawValidators,r),r0(i._rawAsyncValidators,r)}function o0(t,i){let e=!1;if(null!==t){if(null!==i.validator){const r=iR(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==i.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==i.asyncValidator){const r=nR(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==i.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const n=()=>{};return r0(i._rawValidators,n),r0(i._rawAsyncValidators,n),e}function hR(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function fR(t,i){D1(t,i)}function E1(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}function mR(t,i){t._syncPendingControls(),i.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function T1(t,i){if(!i)return null;let e,n,r;return Array.isArray(i),i.forEach(o=>{o.constructor===Ca?e=o:function mK(t){return Object.getPrototypeOf(t.constructor)===Gc}(o)?n=o:r=o}),r||n||e||null}const gK={provide:Cr,useExisting:Xt(()=>Xc)},nf=(()=>Promise.resolve())();let Xc=(()=>{class t extends Cr{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new xe,this.form=new Qd({},_1(e),b1(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){nf.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),tf(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){nf.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){nf.then(()=>{const n=this._findContainer(e.path),r=new Qd({});fR(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){nf.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){nf.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,mR(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(b(Un,10),b(js,10),b(qc,8))},t.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&X("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[We([gK]),pe]}),t})();function pR(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function gR(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Br=class extends e0{constructor(i=null,e,n){super(C1(e),k1(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Jg(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=gR(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){pR(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){pR(this._onDisabledChange,i)}_forEachChild(i){}_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(i){gR(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},_K=Br,xK={provide:ka,useExisting:Xt(()=>Yo)},vR=(()=>Promise.resolve())();let Yo=(()=>{class t extends ka{constructor(e,n,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Br,this._registered=!1,this.update=new xe,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=T1(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),E1(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(){tf(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){vR.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,r=0!==n&&pd(n);vR.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?t0(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(b(Cr,9),b(Un,10),b(js,10),b(Xn,10),b(Gt,8),b(qc,8))},t.\u0275dir=Q({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:[We([xK]),pe,Ei]}),t})(),rf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const yK={provide:Xn,useExisting:Xt(()=>a0),multi:!0};let a0=(()=>{class t extends Gc{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&X("input",function(o){return n.onChange(o.target.value)})("blur",function(){return n.onTouched()})},features:[We([yK]),pe]}),t})(),xR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const M1=new ae("NgModelWithFormControlWarning"),DK={provide:ka,useExisting:Xt(()=>s0)};let s0=(()=>{class t extends ka{set isDisabled(e){}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new xe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=T1(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const n=e.form.previousValue;n&&n0(n,this,!1),tf(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}E1(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&n0(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(b(Un,10),b(js,10),b(Xn,10),b(M1,8),b(qc,8))},t.\u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[We([DK]),pe,Ei]}),t})();const SK={provide:Cr,useExisting:Xt(()=>Ws)};let Ws=(()=>{class t extends Cr{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new xe,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(o0(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 n=this.form.get(e.path);return tf(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){n0(e.control||null,e,!1),function pK(t,i){const e=t.indexOf(i);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,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this.submitted=!0,mR(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const n=e.control,r=this.form.get(e.path);n!==r&&(n0(n||null,e),(t=>t instanceof Br)(r)&&(tf(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const n=this.form.get(e.path);fR(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const n=this.form.get(e.path);n&&function hK(t,i){return o0(t,i)}(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){D1(this.form,this),this._oldForm&&o0(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(b(Un,10),b(js,10),b(qc,8))},t.\u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,n){1&e&&X("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[We([SK]),pe,Ei]}),t})();const MK={provide:ka,useExisting:Xt(()=>af)};let af=(()=>{class t extends ka{set isDisabled(e){}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new xe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=T1(0,o)}ngOnChanges(e){this._added||this._setUpControl(),E1(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 t0(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(b(Cr,13),b(Un,10),b(js,10),b(Xn,10),b(M1,8))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[We([MK]),pe,Ei]}),t})();let Qc=(()=>{class t{constructor(){this._validator=Qg}ngOnChanges(e){if(this.inputName in e){const n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Qg,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,features:[Ei]}),t})();const BK={provide:Un,useExisting:Xt(()=>c0),multi:!0};let c0=(()=>{class t extends Qc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=pd,this.createValidator=e=>zF}enabled(e){return e}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&ot("required",n._enabled?"":null)},inputs:{required:"required"},features:[We([BK]),pe]}),t})();const UK={provide:Un,useExisting:Xt(()=>O1),multi:!0};let O1=(()=>{class t extends Qc{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>function SR(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>WF(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ot("minlength",n._enabled?n.minlength:null)},inputs:{minlength:"minlength"},features:[We([UK]),pe]}),t})();const $K={provide:Un,useExisting:Xt(()=>d0),multi:!0};let d0=(()=>{class t extends Qc{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>qF(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ot("pattern",n._enabled?n.pattern:null)},inputs:{pattern:"pattern"},features:[We([$K]),pe]}),t})(),FR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xR]}),t})();class RR extends e0{constructor(i,e,n){super(C1(e),k1(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let r=this._adjustIndex(i);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:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){dR(this,!1,i),i.forEach((n,r)=>{lR(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}}function OR(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let PR=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,n=null){const r=this._reduceControls(e);let o={};return OR(n)?o=n:null!==n&&(o.validators=n.validator,o.asyncValidators=n.asyncValidator),new Qd(r,o)}record(e,n=null){const r=this._reduceControls(e);return new uR(r,n)}control(e,n,r){let o={};return this.useNonNullable?(OR(n)?o=n:(o.validators=n,o.asyncValidators=r),new Br(e,{...o,nonNullable:!0})):new Br(e,n,r)}array(e,n,r){const o=e.map(a=>this._createControl(a));return new RR(o,n,r)}_reduceControls(e){const n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){return e instanceof Br||e instanceof e0?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),P1=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:qc,useValue:e.callSetDisabledState??ef}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[FR]}),t})(),jK=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:M1,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:qc,useValue:e.callSetDisabledState??ef}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[FR]}),t})();const WK=["matFormFieldNotchedOutline",""],GK=["*"],qK=["textField"],XK=["iconPrefixContainer"],QK=["textPrefixContainer"];function YK(t,i){1&t&&Se(0,"span",19)}function KK(t,i){if(1&t){const e=Je();v(0,"label",17),X("cdkObserveContent",function(){return Me(e),Ae(q(2)._refreshOutlineNotchWidth())}),tt(1,1),H(2,YK,1,0,"span",18),y()}if(2&t){const e=q(2);T("floating",e._shouldLabelFloat())("cdkObserveContentDisabled",!e._hasOutline())("id",e._labelId),ot("for",e._control.id)("aria-owns",e._control.id),k(2),T("ngIf",!e.hideRequiredMarker&&e._control.required)}}function ZK(t,i){1&t&&H(0,KK,3,6,"label",16),2&t&&T("ngIf",q()._hasFloatingLabel())}function JK(t,i){1&t&&Se(0,"div",20)}function eZ(t,i){}function tZ(t,i){1&t&&H(0,eZ,0,0,"ng-template",22),2&t&&(q(2),T("ngTemplateOutlet",Nt(1)))}function iZ(t,i){if(1&t&&(v(0,"div",21),H(1,tZ,1,1,"ng-template",9),y()),2&t){const e=q();T("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",e._labelWidth),k(1),T("ngIf",!e._forceDisplayInfixLabel())}}function nZ(t,i){1&t&&(v(0,"div",23,24),tt(2,2),y())}function rZ(t,i){1&t&&(v(0,"div",25,26),tt(2,3),y())}function oZ(t,i){}function aZ(t,i){1&t&&H(0,oZ,0,0,"ng-template",22),2&t&&(q(),T("ngTemplateOutlet",Nt(1)))}function sZ(t,i){1&t&&(v(0,"div",27),tt(1,4),y())}function cZ(t,i){1&t&&(v(0,"div",28),tt(1,5),y())}function lZ(t,i){1&t&&Se(0,"div",29)}function dZ(t,i){1&t&&(v(0,"div",30),tt(1,6),y()),2&t&&T("@transitionMessages",q()._subscriptAnimationState)}function uZ(t,i){if(1&t&&(v(0,"mat-hint",34),E(1),y()),2&t){const e=q(2);T("id",e._hintLabelId),k(1),Xe(e.hintLabel)}}function hZ(t,i){if(1&t&&(v(0,"div",31),H(1,uZ,2,2,"mat-hint",32),tt(2,7),Se(3,"div",33),tt(4,8),y()),2&t){const e=q();T("@transitionMessages",e._subscriptAnimationState),k(1),T("ngIf",e.hintLabel)}}const fZ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],mZ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let ko=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-label"]]}),t})(),pZ=0;const LR=new ae("MatError");let NR=(()=>{class t{constructor(e,n){this.id="mat-mdc-error-"+pZ++,e||n.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(fo("aria-live"),b(Fe))},t.\u0275dir=Q({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(e,n){2&e&&pa("id",n.id)},inputs:{id:"id"},features:[We([{provide:LR,useExisting:t}])]}),t})(),gZ=0,Yc=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+gZ++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,n){2&e&&(pa("id",n.id),ot("align",null),Qe("mat-mdc-form-field-hint-end","end"===n.align))},inputs:{align:"align",id:"id"}}),t})();const _Z=new ae("MatPrefix"),BR=new ae("MatSuffix");let VR=(()=>{class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[We([{provide:BR,useExisting:t}])]}),t})(),HR=(()=>{class t{constructor(e){this._elementRef=e,this.floating=!1}getWidth(){return function bZ(t){if(null!==t.offsetParent)return t.scrollWidth;const e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const n=e.scrollWidth;return e.remove(),n}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(b(Fe))},t.\u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,n){2&e&&Qe("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating"}}),t})();const UR="mdc-line-ripple--active",u0="mdc-line-ripple--deactivating";let zR=(()=>{class t{constructor(e,n){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,a=o.contains(u0);"opacity"===r.propertyName&&a&&o.remove(UR,u0)},n.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(u0),e.add(UR)}deactivate(){this._elementRef.nativeElement.classList.add(u0)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(ze))},t.\u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),t})(),$R=(()=>{class t{constructor(e,n){this._elementRef=e,this._ngZone=n,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(ze))},t.\u0275cmp=Ve({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,n){2&e&&Qe("mdc-notched-outline--notched",n.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:WK,ngContentSelectors:GK,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(e,n){1&e&&(vi(),Se(0,"div",0),v(1,"div",1),tt(2),y(),Se(3,"div",2)),2&e&&(k(1),ir("width",n._getNotchWidth()))},encapsulation:2,changeDetection:0}),t})();const vZ={transitionMessages:vn("transitionMessages",[ii("enter",rt({opacity:1,transform:"translateY(0%)"})),ai("void => enter",[rt({opacity:0,transform:"translateY(-5px)"}),fi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let h0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t}),t})();const f0=new ae("MatFormField"),xZ=new ae("MAT_FORM_FIELD_DEFAULT_OPTIONS");let jR=0,Da=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=je(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const n=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==n&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,n,r,o,a,s,c,l){this._elementRef=e,this._changeDetectorRef=n,this._ngZone=r,this._dir=o,this._platform=a,this._defaults=s,this._animationMode=c,this._document=l,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+jR++,this._hintLabelId="mat-mdc-hint-"+jR++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new ke,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,s&&(s.appearance&&(this.appearance=s.appearance),this._hideRequiredMarker=Boolean(s?.hideRequiredMarker),s.color&&(this.color=s.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Tt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Vi(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Tt(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Tt(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const n=this._control?this._control.ngControl:null;return n&&n[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const n=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const n=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=n?.getBoundingClientRect().width??0,a=r?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${o+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(ze),b(bn),b(xi),b(xZ,8),b(Ri,8),b(nt))},t.\u0275cmp=Ve({type:t,selectors:[["mat-form-field"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,ko,5),Bt(r,ko,7),Bt(r,h0,5),Bt(r,_Z,5),Bt(r,BR,5),Bt(r,LR,5),Bt(r,Yc,5)),2&e){let o;ye(o=we())&&(n._labelChildNonStatic=o.first),ye(o=we())&&(n._labelChildStatic=o.first),ye(o=we())&&(n._formFieldControl=o.first),ye(o=we())&&(n._prefixChildren=o),ye(o=we())&&(n._suffixChildren=o),ye(o=we())&&(n._errorChildren=o),ye(o=we())&&(n._hintChildren=o)}},viewQuery:function(e,n){if(1&e&&(st(qK,5),st(XK,5),st(QK,5),st(HR,5),st($R,5),st(zR,5)),2&e){let r;ye(r=we())&&(n._textField=r.first),ye(r=we())&&(n._iconPrefixContainer=r.first),ye(r=we())&&(n._textPrefixContainer=r.first),ye(r=we())&&(n._floatingLabel=r.first),ye(r=we())&&(n._notchedOutline=r.first),ye(r=we())&&(n._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,n){2&e&&Qe("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===n._animationMode)("mat-form-field-appearance-fill","fill"==n.appearance)("mat-form-field-appearance-outline","outline"==n.appearance)("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-focused",n._control.focused)("mat-primary","accent"!==n.color&&"warn"!==n.color)("mat-accent","accent"===n.color)("mat-warn","warn"===n.color)("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[We([{provide:f0,useExisting:t}])],ngContentSelectors:mZ,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(e,n){1&e&&(vi(fZ),H(0,ZK,1,1,"ng-template",null,0,Mc),v(2,"div",1,2),X("click",function(o){return n._control.onContainerClick&&n._control.onContainerClick(o)}),H(4,JK,1,0,"div",3),v(5,"div",4),H(6,iZ,2,3,"div",5),H(7,nZ,3,0,"div",6),H(8,rZ,3,0,"div",7),v(9,"div",8),H(10,aZ,1,1,"ng-template",9),tt(11),y(),H(12,sZ,2,0,"div",10),H(13,cZ,2,0,"div",11),y(),H(14,lZ,1,0,"div",12),y(),v(15,"div",13),H(16,dZ,2,1,"div",14),H(17,hZ,5,2,"div",15),y()),2&e&&(k(2),Qe("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),k(2),T("ngIf",!n._hasOutline()&&!n._control.disabled),k(2),T("ngIf",n._hasOutline()),k(1),T("ngIf",n._hasIconPrefix),k(1),T("ngIf",n._hasTextPrefix),k(2),T("ngIf",!n._hasOutline()||n._forceDisplayInfixLabel()),k(2),T("ngIf",n._hasTextSuffix),k(1),T("ngIf",n._hasIconSuffix),k(1),T("ngIf",!n._hasOutline()),k(1),Qe("mat-mdc-form-field-subscript-dynamic-size","dynamic"===n.subscriptSizing),T("ngSwitch",n._getDisplayedMessages()),k(1),T("ngSwitchCase","error"),k(1),T("ngSwitchCase","hint"))},dependencies:[fn,Pp,oh,Dx,Oy,Yc,HR,$R,zR],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[vZ.transitionMessages]},changeDetection:0}),t})(),m0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,nr,bg,xt]}),t})();const CZ=["panel"];function kZ(t,i){if(1&t&&(v(0,"div",0,1),tt(2),y()),2&t){const e=i.id,n=q();T("id",n.id)("ngClass",n._classList)("@panelAnimation",n.isOpen?"visible":"hidden"),ot("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}const DZ=["*"],SZ=vn("panelAnimation",[ii("void, hidden",rt({opacity:0,transform:"scaleY(0.8)"})),ai(":enter, hidden => visible",[qy([fi("0.03s linear",rt({opacity:1})),fi("0.12s cubic-bezier(0, 0, 0.2, 1)",rt({transform:"scaleY(1)"}))])]),ai(":leave, visible => hidden",[fi("0.075s linear",rt({opacity:0}))])]);let EZ=0;class TZ{constructor(i,e){this.source=i,this.option=e}}const MZ=Hs(class{}),qR=new ae("mat-autocomplete-default-options",{providedIn:"root",factory:function AZ(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let IZ=(()=>{class t extends MZ{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=je(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=je(e)}set classList(e){this._classList=e&&e.length?function cq(t,i=/\s+/){const e=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(i);for(const r of n){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((n,r)=>(n[r]=!0,n),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(e,n,r,o){super(),this._changeDetectorRef=e,this._elementRef=n,this._defaults=r,this._activeOptionChanges=yt.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new xe,this.opened=new xe,this.closed=new xe,this.optionActivated=new xe,this._classList={},this.id="mat-autocomplete-"+EZ++,this.inertGroups=o?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new MI(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const n=new TZ(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}}return t.\u0275fac=function(e){return new(e||t)(b(Gt),b(Fe),b(qR),b(xi))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(st(_i,7),st(CZ,5)),2&e){let r;ye(r=we())&&(n.template=r.first),ye(r=we())&&(n.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[pe]}),t})(),FZ=(()=>{class t extends IZ{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=je(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,Wy,5),Bt(r,zs,5)),2&e){let o;ye(o=we())&&(n.optionGroups=o),ye(o=we())&&(n.options=o)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[We([{provide:jy,useExisting:t}]),pe],ngContentSelectors:DZ,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(e,n){1&e&&(vi(),H(0,kZ,3,5,"ng-template"))},dependencies:[Ms],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[SZ]},changeDetection:0}),t})();const RZ={provide:Xn,useExisting:Xt(()=>QR),multi:!0},XR=new ae("mat-autocomplete-scroll-strategy"),PZ={provide:XR,deps:[rr],useFactory:function OZ(t){return()=>t.scrollStrategies.reposition()}};let LZ=(()=>{class t{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=je(e)}constructor(e,n,r,o,a,s,c,l,d,u,h){this._element=e,this._overlay=n,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=a,this._dir=c,this._formField=l,this._document=d,this._viewportRuler=u,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=yt.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new ke,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=gd(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(Hn(f),mn(()=>Vi(...f.map(m=>m.onSelectionChange)))):this._zone.onStable.pipe(ui(1),mn(()=>this.optionSelections))}),this._scrollStrategy=s}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Vi(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(hi(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(hi(()=>this._overlayAttached)):$e()).pipe(Ke(e=>e instanceof GI?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Vi(xa(this._document,"click"),xa(this._document,"auxclick"),xa(this._document,"touchend")).pipe(hi(e=>{const n=to(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&n!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(n))&&(!o||!o.contains(n))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(n)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const n=e.keyCode,r=wr(e);if(27===n&&!r&&e.preventDefault(),this.activeOption&&13===n&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,a=38===n||40===n;9===n||a&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let n=e.target,r=n.value;"number"===n.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Vi(this._zone.onStable.pipe(ui(1)),this.autocomplete.options.changes.pipe(zi(()=>this._positionStrategy.reapplyLastPosition()),r1(0))).pipe(mn(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),ui(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const n=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const n=e?e.source:this._pendingAutoselectedOption;n&&(this._clearPreviousSelectedOption(n),this._assignOptionValue(n.value),this._onChange(n.value),this.autocomplete._emitSelectEvent(n),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(n=>{n!==e&&n.selected&&n.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new ss(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Ld({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let a;a="above"===this.position?o:"below"===this.position?n:[...n,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const n=this.autocomplete,r=qI(e,n.options,n.optionGroups);if(0===e&&1===r)n._setScrollTop(0);else if(n.panel){const o=n.options.toArray()[e];if(o){const a=o._getHostElement(),s=XI(a.offsetTop,a.offsetHeight,n._getScrollTop(),n.panel.nativeElement.offsetHeight);n._setScrollTop(s)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(n=>{(27===n.keyCode&&!wr(n)||38===n.keyCode&&wr(n,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),n.stopPropagation(),n.preventDefault())}),e.outsidePointerEvents().subscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(rr),b(Fi),b(ze),b(Gt),b(XR),b(bn,8),b(f0,9),b(nt,8),b(ya),b(qR,8))},t.\u0275dir=Q({type:t,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Ei]}),t})(),QR=(()=>{class t extends LZ{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(e,n){1&e&&X("focusin",function(){return n._handleFocus()})("blur",function(){return n._onTouched()})("input",function(o){return n._handleInput(o)})("keydown",function(o){return n._handleKeydown(o)})("click",function(){return n._handleClick()}),2&e&&ot("autocomplete",n.autocompleteAttribute)("role",n.autocompleteDisabled?null:"combobox")("aria-autocomplete",n.autocompleteDisabled?null:"list")("aria-activedescendant",n.panelOpen&&n.activeOption?n.activeOption.id:null)("aria-expanded",n.autocompleteDisabled?null:n.panelOpen.toString())("aria-owns",n.autocompleteDisabled||!n.panelOpen||null==n.autocomplete?null:n.autocomplete.id)("aria-haspopup",n.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[We([RZ]),pe]}),t})(),NZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[PZ],imports:[zc,Dg,xt,nr,Hc,Dg,xt]}),t})();const YR=Xo({passive:!0});let BZ=(()=>{class t{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Wr;const n=Zi(e),r=this._monitoredElements.get(n);if(r)return r.subject;const o=new ke,a="cdk-text-field-autofilled",s=c=>{"cdk-text-field-autofill-start"!==c.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===c.animationName&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1}))):(n.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",s,YR),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:o,unlisten:()=>{n.removeEventListener("animationstart",s,YR)}}),o}stopMonitoring(e){const n=Zi(e),r=this._monitoredElements.get(n);r&&(r.unlisten(),r.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(ze))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),VZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const HZ=new ae("MAT_INPUT_VALUE_ACCESSOR"),UZ=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let zZ=0;const $Z=BI(class{constructor(t,i,e,n){this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=e,this.ngControl=n,this.stateChanges=new ke}});let Kc=(()=>{class t extends $Z{get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(qd.required)??!1}set required(e){this._required=je(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&_I().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=je(e)}constructor(e,n,r,o,a,s,c,l,d,u){super(s,o,a,r),this._elementRef=e,this._platform=n,this._autofillMonitor=l,this._formField=u,this._uid="mat-input-"+zZ++,this.focused=!1,this.stateChanges=new ke,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>_I().has(m)),this._iOSKeyupListener=m=>{const g=m.target;!g.value&&0===g.selectionStart&&0===g.selectionEnd&&(g.setSelectionRange(1,1),g.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=c||h,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){UZ.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(xi),b(ka,10),b(Xc,8),b(Ws,8),b(VI),b(HZ,10),b(BZ),b(ze),b(f0,8))},t.\u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(e,n){1&e&&X("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&e&&(pa("id",n.id)("disabled",n.disabled)("required",n.required),ot("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required)("id",n.id),Qe("mat-input-server",n._isServer)("mat-mdc-form-field-textarea-control",n._isInFormField&&n._isTextarea)("mat-mdc-form-field-input-control",n._isInFormField)("mdc-text-field__input",n._isInFormField)("mat-mdc-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[We([{provide:h0,useExisting:t}]),pe,Ei]}),t})(),jZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,m0,m0,VZ,xt]}),t})();function WZ(t,i){if(1&t&&(v(0,"mat-label"),E(1),y()),2&t){const e=q();k(1),Xe(e.binding.title)}}function GZ(t,i){if(1&t){const e=Je();v(0,"button",7),X("click",function(){return Me(e),Ae(q().clearInput())}),v(1,"mat-icon"),E(2,"close"),y()()}}function qZ(t,i){1&t&&(v(0,"mat-option",8),Se(1,"mat-spinner",9),y())}function XZ(t,i){if(1&t&&(v(0,"mat-option",10)(1,"span",11),E(2),y(),E(3),y()),2&t){const e=i.$implicit;T("value",e),k(2),Xe(e.code),k(1),It("",e.display," ")}}let p0=(()=>{class t{constructor(e){this.terminologyService=e,this.term="",this.selectionChange=new xe,this.formControl=new _K,this.loading=!1,this.selectedConcept={},this.stateChanges=new ke,this.focused=!1,this.ngControl=null,this.errorState=!1,this.controlType="app-autocomplete-binding",this.id="app-autocomplete-binding-"+t.nextId++,this.describedBy="",this.onChange=()=>{},this.onTouched=()=>{}}get empty(){return!this.formControl.value}setDescribedByIds(e){this.describedBy=e.join(" ")}onContainerClick(e){}writeValue(e){this.formControl.setValue(e&&"object"==typeof e&&e.display?e.display:e,{emitEvent:!1})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}ngOnChanges(e){e.term&&(this.term=e.term.currentValue,this.formControl.setValue(this.term&&"object"==typeof this.term&&this.term.display?this.term.display:this.term))}ngOnInit(){this.autoFilter=this.formControl.valueChanges.pipe(Ad(300),Bc(),mn(e=>e?.length>=3?(this.loading=!0,this.terminologyService.expandValueSet(this.binding.ecl,e,0,50)):$e([])),zi(e=>{this.loading=!1}))}onTermChange(){this.formControl.setValue(this.term)}optionSelected(e){this.selectedConcept=e,this.selectionChange.emit(e),this.onChange(e)}clearInput(){this.formControl.reset(),this.selectedConcept={code:"",display:""},console.log("clearInput")}change(e){const n=e?.option?.value;n&&(this.optionSelected({code:n.code,display:n.display}),this.formControl.setValue(n.display))}}return t.nextId=0,t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-autocomplete-binding"]],inputs:{binding:"binding",term:"term"},outputs:{selectionChange:"selectionChange"},features:[We([{provide:Xn,useExisting:Xt(()=>t),multi:!0},{provide:h0,useExisting:t}]),Ei],decls:11,vars:10,consts:[[4,"ngIf"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["autoActiveFirstOption","",3,"optionSelected"],["auto","matAutocomplete"],["disabled","","class","loading",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["disabled","",1,"loading"],["diameter","35"],[3,"value"],[1,"code"]],template:function(e,n){if(1&e&&(v(0,"mat-form-field"),H(1,WZ,2,1,"mat-label",0),Se(2,"input",1),v(3,"mat-hint"),E(4),y(),H(5,GZ,3,0,"button",2),v(6,"mat-autocomplete",3,4),X("optionSelected",function(o){return n.change(o)}),H(8,qZ,2,0,"mat-option",5),H(9,XZ,4,3,"mat-option",6),pp(10,"async"),y()()),2&e){const r=Nt(7);let o;k(1),T("ngIf",n.binding.title),k(1),Wu("placeholder",(null==n.formControl.value?null:n.formControl.value.display)||n.binding.title||"Search..."),T("formControl",n.formControl)("matAutocomplete",r),k(2),Xe(n.binding.note),k(1),T("ngIf",n.formControl.value),k(3),T("ngIf",n.loading),k(1),T("ngForOf",null==(o=Vv(10,8,n.autoFilter))||null==o.expansion?null:o.expansion.contains)}},dependencies:[bo,fn,os,Qo,Da,ko,Yc,VR,FZ,zs,QR,Bd,Kc,Ca,Co,s0,sM],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}.id-icon[_ngcontent-%COMP%]{margin-left:10px;color:#2e8b57}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]}),t})();function QZ(t,i){1&t&&Se(0,"mat-spinner",20)}function YZ(t,i){1&t&&(v(0,"th",21),E(1," Date "),y())}function KZ(t,i){if(1&t&&(v(0,"td",22),E(1),pp(2,"date"),y()),2&t){const e=i.$implicit;k(1),It(" ",function NT(t,i,e,n){const r=t+Ui,o=ge(),a=Ol(o,r);return Ju(o,r)?RT(o,br(),i,a.transform,e,n,a):a.transform(e,n)}(2,1,e.date,"yyyy-MM-dd")," ")}}function ZZ(t,i){1&t&&(v(0,"th",21),E(1," ConceptId "),y())}function JZ(t,i){if(1&t&&(v(0,"td",22),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.code," ")}}function eJ(t,i){1&t&&(v(0,"th",21),E(1," Term "),y())}function tJ(t,i){1&t&&(v(0,"span",24),E(1,"Allergy / Intolerance condition"),y())}function iJ(t,i){if(1&t&&(v(0,"td",22),H(1,tJ,2,0,"span",23),E(2),y()),2&t){const e=i.$implicit;k(1),T("ngIf",e.allergy),k(1),It(" ",e.display," ")}}function nJ(t,i){1&t&&Se(0,"tr",25)}function rJ(t,i){1&t&&Se(0,"tr",26)}function oJ(t,i){1&t&&(v(0,"th",21),E(1," ConceptId "),y())}function aJ(t,i){if(1&t&&(v(0,"td",22),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.code," ")}}function sJ(t,i){1&t&&(v(0,"th",21),E(1," Term "),y())}function cJ(t,i){if(1&t&&(v(0,"td",22),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.display," ")}}function lJ(t,i){1&t&&Se(0,"tr",25)}function dJ(t,i){1&t&&Se(0,"tr",26)}const uJ=[],hJ=[];let KR=(()=>{class t{constructor(e){this.terminologyService=e,this.problemBinding={ecl:"< 404684003 |Clinical finding|",title:"Search..."},this.eclProblem="< 404684003 |Clinical finding|",this.term="",this.displayedColumns=["date","code","display"],this.dataToDisplay=[...uJ],this.dataSource=new fJ(this.dataToDisplay),this.loading=!1,this.displayedColumns2=["code","display"],this.dataToDisplay2=[...hJ],this.dataSource2=new mJ(this.dataToDisplay2)}updateProblem(e){var n=this;return Oi(function*(){n.selectedProblemSct=e})()}addProblem(e){var n=this;return Oi(function*(){if(n.selectedProblemSct||e){let r=e||n.selectedProblemSct;if(n.loading=!0,n.term=r.display,r.date=new Date,r.code.indexOf(":")>-1){r.allergy=!0;let o=r.substance;n.dataToDisplay2.find(a=>a.code===o.code)||(n.dataToDisplay2=[...n.dataToDisplay2,o],n.dataSource2.setData(n.dataToDisplay2))}else(yield n.getAllergyData(r))?.expansion?.contains?.length>0&&(r.allergy=!0,n.addAllergySubstanceToList(r));n.dataToDisplay.find(o=>o.code===r.code)||(n.dataToDisplay=[...n.dataToDisplay,r],n.dataSource.setData(n.dataToDisplay)),n.loading=!1,n.term=""}})()}addAllergySubstanceToList(e){var n=this;return Oi(function*(){(yield n.getAllergySubstance(e))?.expansion?.contains?.forEach(o=>{n.dataToDisplay2.find(a=>a.code===o.code)||(n.dataToDisplay2=[...n.dataToDisplay2,o],n.dataSource2.setData(n.dataToDisplay2))})})()}getAllergyData(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet("<<418038007 |Propensity to adverse reactions to substance| OR <<420134006 |Propensity to adverse reaction (finding)|",e.code,0,1)).pipe(Ke(o=>o)))})()}getAllergySubstance(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . (246075003 |Causative agent (attribute)| OR 47429007 |Associated with (attribute)|)`,"")).pipe(Ke(o=>o)))})()}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-allergies-problem-list"]],decls:60,vars:11,consts:[["id","main-card"],[1,"container-space"],[1,"problem-list"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",1,"long-tooltip",3,"disableRipple","click"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],[1,"container"],[1,"item"],[3,"binding","term","selectionChange"],["mat-flat-button","","color","primary",3,"click"],["diameter","35",4,"ngIf"],["mat-table","",3,"dataSource"],["matColumnDef","date"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","code"],["matColumnDef","display"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["diameter","35"],["mat-header-cell",""],["mat-cell",""],["class","tag pill",4,"ngIf"],[1,"tag","pill"],["mat-header-row",""],["mat-row",""]],template:function(e,n){if(1&e&&(v(0,"mat-card",0)(1,"div",1)(2,"div",2)(3,"h4"),E(4,"Problem List "),v(5,"button",3)(6,"mat-icon"),E(7,"info"),y()(),v(8,"mat-menu",null,4)(10,"span",5),X("click",function(o){return o.stopPropagation()}),v(11,"h4"),E(12,"Problem list"),y(),v(13,"p"),E(14,"Allergy or intolerance can also be recorded in the EHR as a problem. The problem list is normally restricted to SNOMED CT concepts from three hierarchies \u2013 Clinical finding, Event and Finding with explicit context. This corresponds either to the FHIR finding based AllergyIntolerance resource data model or the FHIR Condition resource."),y(),v(15,"p"),E(16,"For practical guidance using SNOMED CT to document hypersensitivity to specific substances in a problem list, it is suggested to map to the appropriate concepts under the 473011001 |Allergic condition (finding)|hierarchies. This is due to the lack of sufficient content under 609433001 |Hypersensitivity disposition (finding)|and 421961002 |Hypersensitivity reaction (disorder)| and that many of the concepts under 609328004 |Allergic disposition (finding)|and 419076005 |Allergic reaction (disorder)| have unclear mechanisms which may actually represent non-allergic hypersensitivity. Please note that SNOMED international does not plan to create new children concepts of hypersensitivity disposition to specific substances unless more than one Member country would submit a request for them to answer to an active use-case."),y(),v(17,"p"),E(18,"Almost all allergy concepts are modeled by substances in SNOMED CT. A very small number of allergy concepts are modeled by products but with explicit description for the specific intended meaning. Records of allergy to multiple substances or to multi-ingredient products should be recoded at the product level and updated when more specific information becomes available (e.g., positive sensitivity test to one specific ingredient of the mix)."),y(),v(19,"p"),E(20,"Vaccine allergy is an example where allergy concepts are modeled using a product concept. For example, \u2018Allergy to component of vaccine product (finding)\u2019 with a synonym \u2018vaccine allergy\u2019 has been modeled by vaccine product. The concept represents that allergy is caused by any substance in a vaccine product."),y(),v(21,"p"),E(22,"To record the level of certainty or verification status, it is recommended to use additional data elements in the EHR information model. Even though it is possible to utilize the SNOMED CT model for \u2018situation with explicit context\u2019 to express certainty, this is not recommended due to potential ambiguity. For example, \u201csuspected penicillin allergy\u201d can mean uncertainty with the condition (is it real allergy?) or with the causative agent (is it penicillin?). Even though SNOMED CT editorial guideline is clear that the first interpretation is correct, it is better to use other methods to represent the uncertainty to avoid confusion."),y(),v(23,"p"),E(24,"For more information check the "),v(25,"a",6),E(26,"Implementation Guide"),y(),E(27," developed by the SNOMED International Allergy Clinical Reference Group."),y()()()(),v(28,"div",7)(29,"div",8)(30,"app-autocomplete-binding",9),X("selectionChange",function(o){return n.updateProblem(o)}),y()(),v(31,"div",8)(32,"button",10),X("click",function(){return n.addProblem()}),E(33,"Add problem"),y()(),v(34,"div",8),H(35,QZ,1,0,"mat-spinner",11),y()(),v(36,"table",12),Ai(37,13),H(38,YZ,2,0,"th",14),H(39,KZ,3,4,"td",15),Ii(),Ai(40,16),H(41,ZZ,2,0,"th",14),H(42,JZ,2,1,"td",15),Ii(),Ai(43,17),H(44,eJ,2,0,"th",14),H(45,iJ,3,2,"td",15),Ii(),H(46,nJ,1,0,"tr",18),H(47,rJ,1,0,"tr",19),y()(),v(48,"div",2)(49,"h4"),E(50,"Substances the patient is allergic to:"),y(),v(51,"table",12),Ai(52,16),H(53,oJ,2,0,"th",14),H(54,aJ,2,1,"td",15),Ii(),Ai(55,17),H(56,sJ,2,0,"th",14),H(57,cJ,2,1,"td",15),Ii(),H(58,lJ,1,0,"tr",18),H(59,dJ,1,0,"tr",19),y()()()()),2&e){const r=Nt(9);k(5),T("matMenuTriggerFor",r),k(5),T("disableRipple",!0),k(20),T("binding",n.problemBinding)("term",n.term),k(5),T("ngIf",n.loading),k(1),T("dataSource",n.dataSource),k(10),T("matHeaderRowDef",n.displayedColumns),k(1),T("matRowDefColumns",n.displayedColumns),k(4),T("dataSource",n.dataSource2),k(7),T("matHeaderRowDef",n.displayedColumns2),k(1),T("matRowDefColumns",n.displayedColumns2)}},dependencies:[fn,Lr,os,Qo,jc,wa,Wc,Bd,a1,Wh,$d,Gh,jd,zd,qh,Wd,Gd,Xh,Qh,p0,lM],styles:["#main-card[_ngcontent-%COMP%]{padding:10px}app-autocomplete-binding[_ngcontent-%COMP%]{display:block;min-width:500px}.container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;margin:10px 0;gap:10px}.container-space[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;margin:10px 0;gap:10px}.problem-list[_ngcontent-%COMP%]{width:60%}.tag[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding-left:10px;padding-right:10px;margin-top:5px}td[_ngcontent-%COMP%]{position:relative}.pill[_ngcontent-%COMP%]{display:inline-block;font-size:10px;background-color:orange;color:#fff;padding:4px 8px;border-radius:20px;position:absolute;top:0;right:0;margin-top:1rem}.mat-column-display[_ngcontent-%COMP%]{min-width:350px}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]}),t})();class fJ extends gy{constructor(i){super(),this._dataStream=new iI,this.setData(i)}connect(){return this._dataStream}disconnect(){}setData(i){this._dataStream.next(i)}}class mJ extends gy{constructor(i){super(),this._dataStream=new iI,this.setData(i)}connect(){return this._dataStream}disconnect(){}setData(i){this._dataStream.next(i)}}function pJ(t,i){}const gJ=function(t){return{animationDuration:t}},_J=function(t,i){return{value:t,params:i}};function bJ(t,i){1&t&&tt(0)}const ZR=["*"],vJ=["tabListContainer"],xJ=["tabList"],yJ=["tabListInner"],wJ=["nextPaginator"],CJ=["previousPaginator"],kJ=["tabBodyWrapper"],DJ=["tabHeader"];function SJ(t,i){}function EJ(t,i){1&t&&H(0,SJ,0,0,"ng-template",14),2&t&&T("cdkPortalOutlet",q().$implicit.templateLabel)}function TJ(t,i){1&t&&E(0),2&t&&Xe(q().$implicit.textLabel)}function MJ(t,i){if(1&t){const e=Je();v(0,"div",6,7),X("click",function(){const r=Me(e),o=r.$implicit,a=r.index,s=q(),c=Nt(1);return Ae(s._handleClick(o,c,a))})("cdkFocusChange",function(r){const a=Me(e).index;return Ae(q()._tabFocusChanged(r,a))}),Se(2,"span",8)(3,"div",9),v(4,"span",10)(5,"span",11),H(6,EJ,1,1,"ng-template",12),H(7,TJ,1,1,"ng-template",null,13,Mc),y()()()}if(2&t){const e=i.$implicit,n=i.index,r=Nt(1),o=Nt(8),a=q();Qe("mdc-tab--active",a.selectedIndex===n),T("id",a._getTabLabelId(n))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),ot("tabIndex",a._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(n))("aria-selected",a.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),k(3),T("matRippleTrigger",r)("matRippleDisabled",e.disabled||a.disableRipple),k(3),T("ngIf",e.templateLabel)("ngIfElse",o)}}function AJ(t,i){if(1&t){const e=Je();v(0,"mat-tab-body",15),X("_onCentered",function(){return Me(e),Ae(q()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return Me(e),Ae(q()._setTabBodyWrapperHeight(r))}),y()}if(2&t){const e=i.$implicit,n=i.index,r=q();Qe("mat-mdc-tab-body-active",r.selectedIndex===n),T("id",r._getTabContentId(n))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),ot("tabindex",null!=r.contentTabIndex&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(n))}}const IJ={translateTab:vn("translateTab",[ii("center, void, left-origin-center, right-origin-center",rt({transform:"none"})),ii("left",rt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ii("right",rt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ai("* => left, * => right, left => center, right => center",fi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ai("void => left-origin-center",[rt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),fi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ai("void => right-origin-center",[rt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),fi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let FJ=(()=>{class t extends cs{constructor(e,n,r,o){super(e,n,o),this._host=r,this._centeringSub=yt.EMPTY,this._leavingSub=yt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Hn(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(Ss),b(Fi),b(Xt(()=>JR)),b(nt))},t.\u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[pe]}),t})(),RJ=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,n,r){this._elementRef=e,this._dir=n,this._dirChangeSubscription=yt.EMPTY,this._translateTabComplete=new ke,this._onCentering=new xe,this._beforeCentering=new xe,this._afterLeavingCenter=new xe,this._onCentered=new xe(!0),this.animationDuration="500ms",this.preserveContent=!1,n&&(this._dirChangeSubscription=n.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(Bc((o,a)=>o.fromState===a.fromState&&o.toState===a.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const n=this._isCenterPosition(e.toState);this._beforeCentering.emit(n),n&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const n=this._getLayoutDirection();return"ltr"==n&&e<=0||"rtl"==n&&e>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(bn,8),b(Gt))},t.\u0275dir=Q({type:t,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),JR=(()=>{class t extends RJ{constructor(e,n,r){super(e,n,r)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(bn,8),b(Gt))},t.\u0275cmp=Ve({type:t,selectors:[["mat-tab-body"]],viewQuery:function(e,n){if(1&e&&st(cs,5),2&e){let r;ye(r=we())&&(n._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[pe],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,n){1&e&&(v(0,"div",0,1),X("@translateTab.start",function(o){return n._onTranslateTabStarted(o)})("@translateTab.done",function(o){return n._translateTabComplete.next(o)}),H(2,pJ,0,0,"ng-template",2),y()),2&e&&T("@translateTab",function IT(t,i,e,n,r){return RT(ge(),br(),t,i,e,n,r)}(3,_J,n._position,Bv(1,gJ,n.animationDuration)))},dependencies:[FJ],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[IJ.translateTab]}}),t})();const OJ=new ae("MatTabContent");let PJ=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[We([{provide:OJ,useExisting:t}])]}),t})();const LJ=new ae("MatTabLabel"),eO=new ae("MAT_TAB");let NJ=(()=>{class t extends _X{constructor(e,n,r){super(e,n),this._closestTab=r}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Fi),b(eO,8))},t.\u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[We([{provide:LJ,useExisting:t}]),pe]}),t})();const L1="mdc-tab-indicator--active",tO="mdc-tab-indicator--no-transition";class BJ{constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar())}alignToElement(i){const e=this._items.find(r=>r.elementRef.nativeElement===i),n=this._currentItem;if(n?.deactivateInkBar(),e){const r=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}}function VJ(t){return class extends t{constructor(...i){super(...i),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(i){const e=je(i);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(i){const e=this.elementRef.nativeElement;if(!i||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(L1);const n=e.getBoundingClientRect(),r=i.width/n.width,o=i.left-n.left;e.classList.add(tO),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),e.getBoundingClientRect(),e.classList.remove(tO),e.classList.add(L1),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(L1)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const i=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=i.createElement("span"),this._inkBarContentElement=i.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const UJ=rs(class{}),zJ=VJ((()=>{class t extends UJ{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(b(Fe))},t.\u0275dir=Q({type:t,features:[pe]}),t})());let iO=(()=>{class t extends zJ{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,n){2&e&&(ot("aria-disabled",!!n.disabled),Qe("mat-mdc-tab-disabled",n.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[pe]}),t})();const $J=rs(class{}),nO=new ae("MAT_TAB_GROUP");let jJ=(()=>{class t extends $J{get content(){return this._contentPortal}constructor(e,n){super(),this._viewContainerRef=e,this._closestTabGroup=n,this.textLabel="",this._contentPortal=null,this._stateChanges=new ke,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ss(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(nO,8))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(_i,7),2&e){let r;ye(r=we())&&(n._implicitContent=r.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[pe,Ei]}),t})(),g0=(()=>{class t extends jJ{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-tab"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,PJ,7,_i),Bt(r,NJ,5)),2&e){let o;ye(o=we())&&(n._explicitContent=o.first),ye(o=we())&&(n.templateLabel=o.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[We([{provide:eO,useExisting:t}]),pe],ngContentSelectors:ZR,decls:1,vars:0,template:function(e,n){1&e&&(vi(),H(0,bJ,1,0,"ng-template"))},encapsulation:2}),t})();const rO=Xo({passive:!0});let qJ=(()=>{class t{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=je(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=In(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,n,r,o,a,s,c){this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=r,this._dir=o,this._ngZone=a,this._platform=s,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new ke,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new ke,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new xe,this.indexFocused=new xe,a.runOutsideAngular(()=>{xa(e.nativeElement,"mouseleave").pipe(Tt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){xa(this._previousPaginator.nativeElement,"touchstart",rO).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),xa(this._nextPaginator.nativeElement,"touchstart",rO).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:$e("ltr"),n=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new By(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(ui(1)).subscribe(r),Vi(e,n,this._items.changes,this._itemsResized()).pipe(Tt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?Wr:this._items.changes.pipe(Hn(this._items),mn(e=>new ni(n=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>n.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Ry(1),hi(e=>e.some(n=>n.contentRect.width>0&&n.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!wr(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const n=this._items.get(this.focusIndex);n&&!n.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const n=this._tabListContainer.nativeElement;n.scrollLeft="ltr"==this._getLayoutDirection()?0:n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,n="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const n=this._items?this._items.toArray()[e]:null;if(!n)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=n.elementRef.nativeElement;let s,c;"ltr"==this._getLayoutDirection()?(s=o,c=s+a):(c=this._tabListInner.nativeElement.offsetWidth-o,s=c-a);const l=this.scrollDistance,d=this.scrollDistance+r;sd&&(this.scrollDistance+=Math.min(c-d,s-l))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&null!=n.button&&0!==n.button||(this._stopInterval(),Fg(650,100).pipe(Tt(Vi(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(ya),b(bn,8),b(ze),b(xi),b(Ri,8))},t.\u0275dir=Q({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),XJ=(()=>{class t extends qJ{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=je(e)}constructor(e,n,r,o,a,s,c){super(e,n,r,o,a,s,c),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(ya),b(bn,8),b(ze),b(xi),b(Ri,8))},t.\u0275dir=Q({type:t,inputs:{disableRipple:"disableRipple"},features:[pe]}),t})(),QJ=(()=>{class t extends XJ{constructor(e,n,r,o,a,s,c){super(e,n,r,o,a,s,c)}ngAfterContentInit(){this._inkBar=new BJ(this._items),super.ngAfterContentInit()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(ya),b(bn,8),b(ze),b(xi),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-tab-header"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,iO,4),2&e){let o;ye(o=we())&&(n._items=o)}},viewQuery:function(e,n){if(1&e&&(st(vJ,7),st(xJ,7),st(yJ,7),st(wJ,5),st(CJ,5)),2&e){let r;ye(r=we())&&(n._tabListContainer=r.first),ye(r=we())&&(n._tabList=r.first),ye(r=we())&&(n._tabListInner=r.first),ye(r=we())&&(n._nextPaginator=r.first),ye(r=we())&&(n._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,n){2&e&&Qe("mat-mdc-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[pe],ngContentSelectors:ZR,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,n){1&e&&(vi(),v(0,"button",0,1),X("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(o){return n._handlePaginatorPress("before",o)})("touchend",function(){return n._stopInterval()}),Se(2,"div",2),y(),v(3,"div",3,4),X("keydown",function(o){return n._handleKeydown(o)}),v(5,"div",5,6),X("cdkObserveContent",function(){return n._onContentChanges()}),v(7,"div",7,8),tt(9),y()()(),v(10,"button",9,10),X("mousedown",function(o){return n._handlePaginatorPress("after",o)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),Se(12,"div",2),y()),2&e&&(Qe("mat-mdc-tab-header-pagination-disabled",n._disableScrollBefore),T("matRippleDisabled",n._disableScrollBefore||n.disableRipple)("disabled",n._disableScrollBefore||null),k(3),Qe("_mat-animation-noopable","NoopAnimations"===n._animationMode),k(7),Qe("mat-mdc-tab-header-pagination-disabled",n._disableScrollAfter),T("matRippleDisabled",n._disableScrollAfter||n.disableRipple)("disabled",n._disableScrollAfter||null))},dependencies:[wo,Oy],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),t})();const oO=new ae("MAT_TABS_CONFIG");let YJ=0;const KJ=Vs(Hs(class{constructor(t){this._elementRef=t}}),"primary");let ZJ=(()=>{class t extends KJ{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=je(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=In(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=In(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=je(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=je(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,n,r,o){super(e),this._changeDetectorRef=n,this._animationMode=o,this._tabs=new Tc,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=yt.EMPTY,this._tabLabelSubscription=yt.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new xe,this.focusChange=new xe,this.animationDone=new xe,this.selectedTabChange=new xe(!0),this._groupId=YJ++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,r)=>{n.position=r-e,null!=this._selectedIndex&&0==n.position&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const n=this._tabs.toArray();let r;for(let o=0;o{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Hn(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const n=new JJ;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Vi(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,n,r){n.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,n){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=n)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(oO,8),b(Ri,8))},t.\u0275dir=Q({type:t,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[pe]}),t})(),sf=(()=>{class t extends ZJ{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=je(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=je(e)}constructor(e,n,r,o){super(e,n,r,o),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!r||null==r.fitInkBarToContent)&&r.fitInkBarToContent}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(oO,8),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-tab-group"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,g0,5),2&e){let o;ye(o=we())&&(n._allTabs=o)}},viewQuery:function(e,n){if(1&e&&(st(kJ,5),st(DJ,5)),2&e){let r;ye(r=we())&&(n._tabBodyWrapper=r.first),ye(r=we())&&(n._tabHeader=r.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(e,n){2&e&&Qe("mat-mdc-tab-group-dynamic-height",n.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===n.headerPosition)("mat-mdc-tab-group-stretch-tabs",n.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[We([{provide:nO,useExisting:t}]),pe],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,n){1&e&&(v(0,"mat-tab-header",0,1),X("indexFocused",function(o){return n._focusChanged(o)})("selectFocusedIndex",function(o){return n.selectedIndex=o}),H(2,MJ,9,17,"div",2),y(),v(3,"div",3,4),H(5,AJ,1,11,"mat-tab-body",5),y()),2&e&&(T("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),k(2),T("ngForOf",n._tabs),k(1),Qe("_mat-animation-noopable","NoopAnimations"===n._animationMode),k(2),T("ngForOf",n._tabs))},dependencies:[Ms,bo,fn,cs,wo,Pq,JR,iO,QJ],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),t})();class JJ{}let eee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[nr,xt,Vc,Us,bg,zy,xt]}),t})();var Zc=lc(327);class tee{constructor(i,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),r=n.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,this._document.body.appendChild(n)}copy(){const i=this._textarea;let e=!1;try{if(i){const n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch{}return e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let aO=(()=>{class t{constructor(e){this._document=e}copy(e){const n=this.beginCopy(e),r=n.copy();return n.destroy(),r}beginCopy(e){return new tee(e,this._document)}}return t.\u0275fac=function(e){return new(e||t)(G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const iee=new ae("HighlightJs-Config");let N1=(()=>{class t{constructor(e,n,r,o,a){this.el=e,this.ngModel=n,this.doc=r,this.ngZone=a,this.lang="html",this.mode="simple",Object.assign(this,o)}escapeHTML(e){return(e||"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}init(){this.ngZone.runOutsideAngular(()=>{this.destroy();const e=this.el.nativeElement,n=this.code||""+e.innerHTML.trim();if(this.codeEl=this.doc.createElement("default"===this.mode?"div":"pre"),null==this.codeEl)return;const r="simple"===this.mode;r?(this.lang&&(this.codeEl.className=this.lang),this.parentEl=e.parentNode,this.parentEl.insertBefore(this.codeEl,e.nextSibling)):(this.parentEl=e,this.parentEl.innerHTML="",this.parentEl.appendChild(this.codeEl)),this.codeEl.innerHTML=n,hljs.configure({...this.options}),r?hljs.highlightElement(this.codeEl):this.codeEl.querySelectorAll("pre code").forEach(o=>{hljs.highlightElement(o)})})}destroy(){this.codeEl&&this.parentEl&&(this.parentEl.removeChild(this.codeEl),this.codeEl=void 0)}ngAfterViewInit(){this.init(),this.ngModel?this.modelValue$=this.ngModel.valueChanges?.subscribe(e=>{this.code=this.escapeHTML(e),this.init()}):this.initMutation()}ngOnDestroy(){this.destroy(),this.destroyMutation(),this.modelValue$&&this.modelValue$.unsubscribe()}initMutation(){typeof MutationObserver>"u"||this.ngZone.runOutsideAngular(()=>{this.observer=new MutationObserver(this.init.bind(this)),this.observer.observe(this.el.nativeElement,{characterData:!0,childList:!0,subtree:!0})})}destroyMutation(){this.observer&&this.observer.disconnect()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Yo,8),b(nt),b(iee,8),b(ze))},t.\u0275dir=Q({type:t,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(e,n){2&e&&ir("display","simple"===n.mode?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0}),t})(),nee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[P1]}),t})();const ree=["trigger"],oee=["panel"];function aee(t,i){if(1&t&&(v(0,"span",10),E(1),y()),2&t){const e=q();k(1),Xe(e.placeholder)}}function see(t,i){if(1&t&&(v(0,"span",14),E(1),y()),2&t){const e=q(2);k(1),Xe(e.triggerValue)}}function cee(t,i){1&t&&tt(0,0,["*ngSwitchCase","true"])}function lee(t,i){1&t&&(v(0,"span",11),H(1,see,2,1,"span",12),H(2,cee,1,0,"ng-content",13),y()),2&t&&(T("ngSwitch",!!q().customTrigger),k(2),T("ngSwitchCase",!0))}function dee(t,i){if(1&t){const e=Je();Wa(),Ll(),v(0,"div",15,16),X("@transformPanel.done",function(r){return Me(e),Ae(q()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return Me(e),Ae(q()._handleKeydown(r))}),tt(2,1),y()}if(2&t){const e=q();VE("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),T("ngClass",e.panelClass)("@transformPanel","showing"),ot("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const uee=[[["mat-select-trigger"]],"*"],hee=["mat-select-trigger","*"],fee={transformPanelWrap:vn("transformPanelWrap",[ai("* => void",Tg("@transformPanel",[Eg()],{optional:!0}))]),transformPanel:vn("transformPanel",[ii("void",rt({opacity:0,transform:"scale(1, 0.8)"})),ai("void => showing",fi("120ms cubic-bezier(0, 0, 0.2, 1)",rt({opacity:1,transform:"scale(1, 1)"}))),ai("* => void",fi("100ms linear",rt({opacity:0})))])};let sO=0;const cO=new ae("mat-select-scroll-strategy"),pee=new ae("MAT_SELECT_CONFIG"),gee={provide:cO,deps:[rr],useFactory:function mee(t){return()=>t.scrollStrategies.reposition()}},_ee=new ae("MatSelectTrigger");class bee{constructor(i,e){this.source=i,this.value=e}}const vee=Hs(Lh(rs(BI(class{constructor(t,i,e,n,r){this._elementRef=t,this._defaultErrorStateMatcher=i,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r,this.stateChanges=new ke}}))));let xee=(()=>{class t extends vee{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(qd.required)??!1}set required(e){this._required=je(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=je(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=je(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=In(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,n,r,o,a,s,c,l,d,u,h,f,m,g){super(a,o,c,l,u),this._viewportRuler=e,this._changeDetectorRef=n,this._ngZone=r,this._dir=s,this._parentFormField=d,this._liveAnnouncer=m,this._defaultOptions=g,this._panelOpen=!1,this._compareWith=(p,_)=>p===_,this._uid="mat-select-"+sO++,this._triggerAriaLabelledBy=null,this._destroy=new ke,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+sO++,this._panelDoneAnimatingStream=new ke,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=gd(()=>{const p=this.options;return p?p.changes.pipe(Hn(p),mn(()=>Vi(...p.map(_=>_.onSelectionChange)))):this._ngZone.onStable.pipe(ui(1),mn(()=>this.optionSelectionChanges))}),this.openedChange=new xe,this._openedStream=this.openedChange.pipe(hi(p=>p),Ke(()=>{})),this._closedStream=this.openedChange.pipe(hi(p=>!p),Ke(()=>{})),this.selectionChange=new xe,this.valueChange=new xe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=g?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=g.typeaheadDebounceInterval),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}ngOnInit(){this._selectionModel=new by(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Bc(),Tt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Tt(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Hn(null),Tt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(void 0!==this._previousControl&&null!==n.disabled&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const n=e.keyCode,r=40===n||38===n||37===n||39===n,o=13===n||32===n,a=this._keyManager;if(!a.isTyping()&&o&&!wr(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;a.onKeydown(e);const c=this.selected;c&&s!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){const n=this._keyManager,r=e.keyCode,o=40===r||38===r,a=n.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(a||13!==r&&32!==r||!n.activeItem||wr(e))if(!a&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(s?c.select():c.deselect())})}else{const s=n.activeItemIndex;n.onKeydown(e),this._multiple&&o&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}else e.preventDefault(),n.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ui(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{const n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const n=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new MI(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Vi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Tt(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Vi(...this.options.map(n=>n._stateChanges)).pipe(Tt(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((n,r)=>this.sortComparator?this.sortComparator(n,r,e):e.indexOf(n)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let n=null;n=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(b(ya),b(Gt),b(ze),b(VI),b(Fe),b(bn,8),b(Xc,8),b(Ws,8),b(f0,8),b(ka,10),fo("tabindex"),b(cO),b(Hy),b(pee,8))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(st(ree,5),st(oee,5),st(bF,5)),2&e){let r;ye(r=we())&&(n.trigger=r.first),ye(r=we())&&(n.panel=r.first),ye(r=we())&&(n._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[pe,Ei]}),t})(),cf=(()=>{class t extends xee{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Tt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const n=this.options.toArray()[e];if(n){const r=this.panel.nativeElement,o=qI(e,this.options,this.optionGroups),a=n._getHostElement();r.scrollTop=0===e&&1===o?0:XI(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new bee(this,e)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof t1?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=je(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=Ve({type:t,selectors:[["mat-select"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,_ee,5),Bt(r,zs,5),Bt(r,Wy,5)),2&e){let o;ye(o=we())&&(n.customTrigger=o.first),ye(o=we())&&(n.options=o),ye(o=we())&&(n.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,n){1&e&&X("keydown",function(o){return n._handleKeydown(o)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&e&&(ot("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),Qe("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[We([{provide:h0,useExisting:t},{provide:jy,useExisting:t}]),pe],ngContentSelectors:hee,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,n){if(1&e&&(vi(uee),v(0,"div",0,1),X("click",function(){return n.toggle()}),v(3,"div",2),H(4,aee,2,1,"span",3),H(5,lee,3,2,"span",4),y(),v(6,"div",5)(7,"div",6),Wa(),v(8,"svg",7),Se(9,"path",8),y()()()(),H(10,dee,3,9,"ng-template",9),X("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&e){const r=Nt(1);ot("aria-owns",n.panelOpen?n.id+"-panel":null),k(3),T("ngSwitch",n.empty),ot("id",n._valueId),k(1),T("ngSwitchCase",!0),k(1),T("ngSwitchCase",!1),k(5),T("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)}},dependencies:[Ms,oh,Dx,oM,bF,t1],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[fee.transformPanel]},changeDetection:0}),t})(),yee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[gee],imports:[nr,zc,Dg,xt,Hc,m0,Dg,xt]}),t})();const wee=["tooltip"],lO=new ae("mat-tooltip-scroll-strategy"),Dee={provide:lO,deps:[rr],useFactory:function kee(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Eee=new ae("mat-tooltip-default-options",{providedIn:"root",factory:function See(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),dO="tooltip-panel",uO=Xo({passive:!0});let Ree=(()=>{class t{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=je(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=In(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=In(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,n,r,o,a,s,c,l,d,u,h,f){this._overlay=e,this._elementRef=n,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=a,this._platform=s,this._ariaDescriber=c,this._focusMonitor=l,this._dir=u,this._defaultOptions=h,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ke,this._scrollStrategy=d,this._document=f,h&&(h.position&&(this.position=h.position),h.positionAtOrigin&&(this.positionAtOrigin=h.positionAtOrigin),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe(Tt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Tt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,r])=>{e.removeEventListener(n,r,uO)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(n);this._detach(),this._portal=this._portal||new Od(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof Fe)return this._overlayRef;this._detach()}const n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return r.positionChanges.pipe(Tt(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${dO}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Tt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Tt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!wr(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const n=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();n.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,n=this.position;let r;"above"==n||"below"==n?r={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?r={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,n=this.position;let r;"above"==n?r={overlayX:"center",overlayY:"bottom"}:"below"==n?r={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?r={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(ui(1),Tt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return"above"===this.position||"below"===this.position?"top"===n?n="bottom":"bottom"===n&&(n="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){const{overlayY:n,originX:r,originY:o}=e;let a;if(a="center"===n?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===n&&"top"===o?"above":"below",a!==this._currentPosition){const s=this._overlayRef;if(s){const c=`${this._cssClassPrefix}-${dO}-`;s.removePanelClass(c+this._currentPosition),s.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let n;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(n=e),this.show(void 0,n)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const n=e.targetTouches?.[0],r=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",n=>{const r=n.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const n=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",n],["touchcancel",n])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([n,r])=>{this._elementRef.nativeElement.addEventListener(n,r,uO)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const n=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;n!==r&&!r.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const n=this._elementRef.nativeElement,r=n.style;("on"===e||"INPUT"!==n.nodeName&&"TEXTAREA"!==n.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!n.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),lf=(()=>{class t extends Ree{constructor(e,n,r,o,a,s,c,l,d,u,h,f){super(e,n,r,o,a,s,c,l,d,u,h,f),this._tooltipComponent=Pee,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const r=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=r?-8:8:"end"===e.originX&&(e.offsetX=r?8:-8),e}}return t.\u0275fac=function(e){return new(e||t)(b(rr),b(Fe),b(Pd),b(Fi),b(ze),b(xi),b(SI),b(yo),b(lO),b(bn,8),b(Eee,8),b(nt))},t.\u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[pe]}),t})(),Oee=(()=>{class t{constructor(e,n){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new ke,this._animationsDisabled="NoopAnimations"===n}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const n=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(n.classList.remove(e?o:r),n.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(n);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return t.\u0275fac=function(e){return new(e||t)(b(Gt),b(Ri,8))},t.\u0275dir=Q({type:t}),t})(),Pee=(()=>{class t extends Oee{constructor(e,n,r){super(e,r),this._elementRef=n,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}}return t.\u0275fac=function(e){return new(e||t)(b(Gt),b(Fe),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,n){if(1&e&&st(wee,7),2&e){let r;ye(r=we())&&(n._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,n){1&e&&X("mouseleave",function(o){return n._handleMouseLeave(o)}),2&e&&ir("zoom",n.isVisible()?1:null)},features:[pe],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(e,n){1&e&&(v(0,"div",0,1),X("animationend",function(o){return n._handleAnimationEnd(o)}),v(2,"div",2),E(3),y()()),2&e&&(Qe("mdc-tooltip--multiline",n._isMultiline),T("ngClass",n.tooltipClass),k(3),Xe(n.message))},dependencies:[Ms],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),t})(),Lee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[Dee],imports:[zy,nr,zc,xt,xt,Hc]}),t})();const Nee=["switch"],Bee=["*"],Vee=new ae("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),Hee={provide:Xn,useExisting:Xt(()=>fO),multi:!0};class hO{constructor(i,e){this.source=i,this.checked=e}}let Uee=0;const zee=Lh(Vs(Hs(rs(class{constructor(t){this._elementRef=t}}))));let $ee=(()=>{class t extends zee{get required(){return this._required}set required(e){this._required=je(e)}get checked(){return this._checked}set checked(e){this._checked=je(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,n,r,o,a,s,c){super(e),this._focusMonitor=n,this._changeDetectorRef=r,this.defaults=a,this._onChange=l=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new xe,this.toggleChange=new xe,this.tabIndex=parseInt(o)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===s,this.id=this._uniqueId=`${c}${++Uee}`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[pe]}),t})(),fO=(()=>{class t extends $ee{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(e,n,r,o,a,s){super(e,n,r,o,a,s,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new hO(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(e){return new hO(this,e)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(yo),b(Gt),fo("tabindex"),b(Vee),b(Ri,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,n){if(1&e&&st(Nee,5),2&e){let r;ye(r=we())&&(n._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(e,n){2&e&&(pa("id",n.id),ot("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Qe("mat-mdc-slide-toggle-focused",n._focused)("mat-mdc-slide-toggle-checked",n.checked)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[We([Hee]),pe],ngContentSelectors:Bee,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[3,"for","click"]],template:function(e,n){if(1&e&&(vi(),v(0,"div",0)(1,"button",1,2),X("click",function(){return n._handleClick()}),Se(3,"div",3),v(4,"div",4)(5,"div",5)(6,"div",6),Se(7,"div",7),y(),v(8,"div",8),Se(9,"div",9),y(),v(10,"div",10),Wa(),v(11,"svg",11),Se(12,"path",12),y(),v(13,"svg",13),Se(14,"path",14),y()()()()(),Ll(),v(15,"label",15),X("click",function(o){return o.stopPropagation()}),tt(16),y()()),2&e){const r=Nt(2);Qe("mdc-form-field--align-end","before"==n.labelPosition),k(1),Qe("mdc-switch--selected",n.checked)("mdc-switch--unselected",!n.checked)("mdc-switch--checked",n.checked)("mdc-switch--disabled",n.disabled),T("tabIndex",n.tabIndex)("disabled",n.disabled),ot("id",n.buttonId)("name",n.name)("aria-label",n.ariaLabel)("aria-labelledby",n._getAriaLabelledBy())("aria-describedby",n.ariaDescribedby)("aria-required",n.required||null)("aria-checked",n.checked),k(8),T("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),k(6),T("for",n.buttonId),ot("id",n._labelId)}},dependencies:[wo],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}'],encapsulation:2,changeDetection:0}),t})(),mO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})(),Gee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[mO,xt,Us,nr,mO,xt]}),t})();function qee(t,i){if(1&t){const e=Je();v(0,"button",14),X("click",function(){Me(e);const r=q().index;return Ae(q().removeReaction(r))}),v(1,"mat-icon"),E(2,"close"),y()()}}function Xee(t,i){if(1&t){const e=Je();v(0,"mat-option",15),X("click",function(){const o=Me(e).$implicit,a=q().$implicit;return Ae(q().reactionSeveritySelected(a,o))}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),Xe(e.display)}}function Qee(t,i){if(1&t){const e=Je();v(0,"div",2)(1,"div",3),H(2,qee,3,0,"button",4),y(),v(3,"div",5)(4,"div",6)(5,"app-autocomplete-binding",7),X("selectionChange",function(r){const a=Me(e).$implicit;return Ae(q().reactionManifestationSelected(a,r))}),y()(),v(6,"button",8)(7,"mat-icon"),E(8,"info"),y()(),v(9,"mat-menu",null,9)(11,"span",10),X("click",function(r){return r.stopPropagation()}),v(12,"p"),E(13,"Terminology binding:"),y(),v(14,"pre"),E(15),y()()()(),v(16,"mat-form-field",11)(17,"mat-label"),E(18,"Reaction Severity"),y(),v(19,"mat-select"),H(20,Xee,2,2,"mat-option",12),y()(),v(21,"div",5)(22,"div",6)(23,"app-autocomplete-binding",7),X("selectionChange",function(r){const a=Me(e).$implicit;return Ae(q().reactionRouteSelected(a,r))}),y()(),v(24,"button",8)(25,"mat-icon"),E(26,"info"),y()(),v(27,"mat-menu",null,13)(29,"span",10),X("click",function(r){return r.stopPropagation()}),v(30,"p"),E(31,"Terminology binding:"),y(),v(32,"pre"),E(33),y()()()()()}if(2&t){const e=i.index,n=Nt(10),r=Nt(28),o=q();k(2),T("ngIf",e>0),k(3),T("binding",o.reactionManifestationBinding),k(1),T("matMenuTriggerFor",n),k(5),T("disableRipple",!0),k(4),Xe(o.reactionManifestationBinding.ecl),k(5),T("ngForOf",o.severityOptions),k(3),T("binding",o.routeBinding),k(1),T("matMenuTriggerFor",r),k(5),T("disableRipple",!0),k(4),Xe(o.routeBinding.ecl)}}let Yee=(()=>{class t{constructor(){this.reactions=[],this.newManifestation=new xe,this.severityOptions=[{code:"mild",display:"Mild",sctCode:"255604002",sctDisplay:"Mild (qualifier value)"},{code:"moderate",display:"Moderate",sctCode:"6736007",sctDisplay:"Moderate (qualifier value)"},{code:"severe",display:"Severe",sctCode:"24484000",sctDisplay:"Severe (qualifier value)"}],this.selectedSeverity={},this.reactionManifestationBinding={ecl:"<<404684003 |Clinical finding|",title:"Reaction Manifestation"},this.routeBinding={ecl:"<<284009009 |Route of administration value|",title:"Exposure Route"},this.reaction={},this.onChangeCallback=()=>{},this.onTouchedCallback=()=>{}}writeValue(e){void 0!==e&&(this.reactions=e)}setDisabledState(e){}addNewReaction(){this.reactions.push(this.reaction),this.reaction={},this.onChangeCallback(this.reactions)}removeReaction(e){this.reactions.splice(e,1),this.onChangeCallback(this.reactions)}reactionManifestationSelected(e,n){e.manifestation=n,this.newManifestation.emit(n),this.onChangeCallback(this.reactions)}reactionSeveritySelected(e,n){e.severity=n,this.onChangeCallback(this.reactions)}reactionRouteSelected(e,n){e.route=n,this.onChangeCallback(this.reactions)}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ve({type:t,selectors:[["app-allergies-allergy-list-reaction"]],inputs:{reactions:"reactions"},outputs:{newManifestation:"newManifestation"},features:[We([{provide:Xn,useExisting:Xt(()=>t),multi:!0}])],decls:5,vars:1,consts:[["class","reaction",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","matTooltip","Add reaction",3,"click"],[1,"reaction"],[1,"button-container"],["mat-icon-button","","color","primary","class","remove","matTooltip","Remove reaction",3,"click",4,"ngIf"],[1,"row-centered"],[1,"small-form-field"],[3,"binding","selectionChange"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["reactionPopoverMenu","matMenu"],["mat-menu-item","",3,"disableRipple","click"],[1,"form-field"],[3,"value","click",4,"ngFor","ngForOf"],["routePopoverMenu","matMenu"],["mat-icon-button","","color","primary","matTooltip","Remove reaction",1,"remove",3,"click"],[3,"value","click"]],template:function(e,n){1&e&&(H(0,Qee,34,10,"div",0),v(1,"div")(2,"button",1),X("click",function(){return n.addNewReaction()}),v(3,"mat-icon"),E(4,"add"),y()()()),2&e&&T("ngForOf",n.reactions)},dependencies:[bo,fn,os,Qo,jc,wa,Wc,Da,ko,zs,cf,lf,p0],styles:["#main-card[_ngcontent-%COMP%]{padding:10px;width:100%}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:flex-start}.row-centered[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center}.column[_ngcontent-%COMP%]{flex:1;margin:5px;box-sizing:border-box}.form-field[_ngcontent-%COMP%]{width:100%}.smallest-form-field[_ngcontent-%COMP%]{width:60%;margin:5px}.small-form-field[_ngcontent-%COMP%]{width:90%;margin:5px}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;padding:4px 8px;height:36px}.mat-mdc-form-field-appearance-outline[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:0}.reaction[_ngcontent-%COMP%]{border-radius:10px;background-color:#a9bee9;padding:10px;margin-bottom:10px}#output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative}pre[_ngcontent-%COMP%] > code[_ngcontent-%COMP%]{width:45%;white-space:pre-wrap;word-wrap:break-word}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;width:100%}"]}),t})();function Kee(t,i){if(1&t){const e=Je();v(0,"mat-option",31),X("click",function(){return Me(e),Ae(q().updateAllergyStr())}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),Xe(e.display)}}function Zee(t,i){if(1&t){const e=Je();v(0,"mat-option",31),X("click",function(){return Me(e),Ae(q().updateAllergyStr())}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),Xe(e.display)}}function Jee(t,i){if(1&t){const e=Je();v(0,"mat-option",31),X("click",function(){return Me(e),Ae(q().updateAllergyStr())}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),Xe(e.display)}}function ete(t,i){if(1&t){const e=Je();v(0,"app-autocomplete-binding",10),X("selectionChange",function(r){return Me(e),Ae(q().substanceSelected(r,!0))}),y()}if(2&t){const e=q();T("binding",e.substanceBinding)("term",e.selectedSubstanceTerm)}}function tte(t,i){if(1&t){const e=Je();v(0,"app-autocomplete-binding",10),X("selectionChange",function(r){return Me(e),Ae(q().substanceSelected(r))}),y()}if(2&t){const e=q();T("binding",e.refinedSubstanceBinding)("term",e.selectedSubstanceTerm)}}function ite(t,i){if(1&t&&(v(0,"pre"),E(1),y()),2&t){const e=q();k(1),Xe(e.substanceBinding.ecl)}}function nte(t,i){if(1&t&&(v(0,"pre"),E(1),y()),2&t){const e=q();k(1),Xe(e.refinedSubstanceBinding.ecl)}}function rte(t,i){if(1&t){const e=Je();v(0,"mat-option",31),X("click",function(){return Me(e),Ae(q().updateAllergyStr())}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),Xe(e.display)}}function ote(t,i){if(1&t){const e=Je();v(0,"mat-option",31),X("click",function(){return Me(e),Ae(q().updateAllergyStr())}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),Xe(e.display)}}const ate=function(){return{}};let ste=(()=>{class t{constructor(e,n,r){this.terminologyService=e,this.clipboard=n,this._snackBar=r,this.newProblem=new xe,this.clinicalStatusOptions=[{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"active",display:"Active"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"inactive",display:"Inactive"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"resolved",display:"Resolved"}],this.selectedClinicalStatus=this.clinicalStatusOptions[0],this.verificationStatusOptions=[{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"unconfirmed",display:"Unconfirmed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"presumed",display:"Presumed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"confirmed",display:"Confirmed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"refuted",display:"Refuted"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"entered-in-error",display:"Entered in Error"}],this.selectedVerificationStatus=this.verificationStatusOptions[0],this.intoleranceTypeOptions=[{system:"http://hl7.org/fhir/allergy-intolerance-type",code:"609433001",display:"Hypersensitivity disposition (finding)",fhirCode:"allergy",fhirDisplay:"Allergy"},{system:"http://hl7.org/fhir/allergy-intolerance-type",code:"782197009",display:"Intolerance to substance (finding)",fhirCode:"intolerance",fhirDisplay:"Intolerance"}],this.selectedIntoleranceType=null,this.intoleranceCategoryOptions=[{code:"food",display:"Food"},{code:"medication",display:"Medication"},{code:"environment",display:"Environment"},{code:"biologic",display:"Biologic"}],this.selectedIntoleranceCategories=[],this.selectedIntoleranceCategoriesControl=new Br(this.selectedIntoleranceCategories),this.criticalityOptions=[{code:"low",display:"Low Risk"},{code:"high",display:"High Risk"},{code:"unable-to-assess",display:"Unable to Assess Risk"}],this.selectedCriticality=null,this.severityOptions=[{code:"mild",display:"Mild",sctCode:"255604002",sctDisplay:"Mild (qualifier value)"},{code:"moderate",display:"Moderate",sctCode:"6736007",sctDisplay:"Moderate (qualifier value)"},{code:"severe",display:"Severe",sctCode:"24484000",sctDisplay:"Severe (qualifier value)"}],this.selectedSeverity={},this.codeBinding={ecl:"<<418038007 |Propensity to adverse reactions to substance| OR <<420134006 |Propensity to adverse reaction (finding)|",title:"Allergy/Intolerance by propensity"},this.selectedCode=null,this.selectedCodeTerm="",this.recordPropensity=!1,this.substanceBinding={ecl:"<<105590001 | Substance (substance) | OR <<373873005 | Pharmaceutical / biologic product (product) |",title:"Allergy/Intolerance substance or product"},this.refinedSubstanceBinding={ecl:"<<105590001 | Substance (substance) |",title:"Allergy/Intolerance substance based on propensity"},this.selectedSubstanceTerm="",this.selectedSubstance=null,this.selectedReactions=[{suibstance:{},manifestation:{},severity:{},route:{}}],this.reactionManifestationBinding={ecl:"<<404684003 |Clinical finding|",title:"Reaction Manifestation"},this.selectedReactionManifestation=null,this.selectedReactionManifestationTerm="",this.routeBinding={ecl:"<<284009009 |Route of administration value|",title:"Exposure Route"},this.selectedRoute=null,this.selectedRouteTerm="",this.outputAllergyBase={resourceType:"AllergyIntolerance",id:"medication",text:{},clinicalStatus:{coding:[]},verificationStatus:{coding:[]},type:"",category:[],criticality:"high",code:{coding:[]},reaction:[{substance:[{coding:[]}],manifestation:[{coding:[]}],exposureRoute:{coding:[]},severity:""}],patient:{reference:"Patient/example"},recordedDate:"2010-03-01",participant:[{function:{coding:[{system:"http://terminology.hl7.org/CodeSystem/provenance-participant-type",code:"author",display:"Author"}]},actor:{reference:"Practitioner/example"}}]},this.outputAllergy=JSON.parse(JSON.stringify(this.outputAllergyBase)),this.outputAllergyStr=""}ngOnInit(){this.updateAllergyStr()}onReactionsChange(e){this.updateAllergyStr()}clear(){this.selectedClinicalStatus=this.clinicalStatusOptions[0],this.selectedVerificationStatus=this.verificationStatusOptions[0],this.selectedIntoleranceType=null,this.selectedIntoleranceCategories=[],this.selectedIntoleranceCategoriesControl=new Br(this.selectedIntoleranceCategories),this.selectedCriticality=null,this.selectedSeverity={},this.selectedCode=null,this.selectedCodeTerm="",this.recordPropensity=!1,this.selectedSubstanceTerm="",this.selectedReactionManifestation=null,this.selectedReactionManifestationTerm=" ",this.selectedRoute=null,this.selectedRouteTerm=" ",this.selectedReactions=[{suibstance:{},manifestation:{},severity:{},route:{}}],this.outputAllergy=JSON.parse(JSON.stringify(this.outputAllergyBase)),this.updateAllergyStr(),setTimeout(()=>{this.selectedReactionManifestationTerm="",this.selectedRouteTerm=""},100)}updateAllergyStr(){this.outputAllergy.clinicalStatus.coding=[this.selectedClinicalStatus],this.outputAllergy.verificationStatus.coding=[this.selectedVerificationStatus],this.outputAllergy.type=this.selectedIntoleranceType?this.selectedIntoleranceType.fhirCode:"",this.outputAllergy.category=this.selectedIntoleranceCategories.length?this.selectedIntoleranceCategories.map(e=>e.display):[],this.outputAllergy.criticality=this.selectedCriticality?.code?[this.selectedCriticality.code]:{},this.outputAllergy.reaction=[],this.selectedReactions.forEach(e=>{e.manifestation.code&&(e.manifestation.system="http://snomed.info/sct"),e.route.code&&(e.route.system="http://snomed.info/sct"),this.outputAllergy.reaction.push({substance:[{coding:[this.selectedSubstance]}],manifestation:[{coding:e.manifestation?[e.manifestation]:[{}]}],exposureRoute:{coding:e.route?[e.route]:[{}]},severity:e.severity?e.severity.code:""})}),setTimeout(()=>{this.outputAllergyStr=JSON.stringify(this.outputAllergy,null,2)},100)}substanceSelected(e,n){var r=this;return Oi(function*(){n&&(r.selectedCodeTerm=""),r.selectedSubstance=e,r.selectedIntoleranceCategories=[],e=Object.assign({system:"http://snomed.info/sct"},e),r.recordPropensity||(r.outputAllergy.code.coding=[e]),r.outputAllergy.reaction[0].substance[0].coding=[e],(yield r.getSubstanceCategories(e))?.expansion?.contains?.forEach(a=>{"762766007"==a.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[0]):"115668003"==a.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[3]):"410942007"==a.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[1]):"57795002"==a.code&&r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[2])}),r.selectedIntoleranceCategoriesControl.setValue(r.selectedIntoleranceCategories),r.updateAllergyStr()})()}propensityRecordChanged(){this.outputAllergy.code.coding=[],this.selectedCode&&this.codeSelected(this.selectedCode)}codeSelected(e){var n=this;return Oi(function*(){if(e=Object.assign({system:"http://snomed.info/sct"},e)){n.selectedCodeTerm=e.display,n.selectedCode=e,n.recordPropensity&&(n.outputAllergy.code.coding=[e]);let r=yield n.getTypes(e);if(r.expansion?.contains){const a=r.expansion?.contains[0];n.selectedIntoleranceType=n.intoleranceTypeOptions.find(s=>s.code===a.code)}let o=yield n.getAllergySubstance(e);if(o.expansion.contains||(o=yield n.getIntoleranceSubstance(e)),o.expansion?.contains){const a=o.expansion?.contains[0];n.refinedSubstanceBinding.ecl=`<<${a.code} | ${a.display} |`,n.substanceSelected(a),n.selectedSubstanceTerm=a.display}else n.refinedSubstanceBinding.ecl="<<105590001 | Substance (substance) |"}})()}getIntoleranceSubstance(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . 47429007 |Associated with (attribute)|`,"")).pipe(Ke(o=>o)))})()}getAllergySubstance(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . 246075003 |Causative agent (attribute)|`,"")).pipe(Ke(o=>o)))})()}getSubstanceCategories(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet(`> ${e.code} |${e.display}| AND (762766007 |Edible substance| OR 115668003 |Biological substance (substance)| OR 410942007 |Drug or medicament (substance)| OR 57795002 |Chemical element|)`,"")).pipe(Ke(o=>o)))})()}getTypes(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet(`> ${e.code} |${e.display}| AND (609433001 |Hypersensitivity disposition| OR 782197009 |Intolerance to substance|)`,"")).pipe(Ke(o=>o)))})()}saveFhirResource(){var e=new Blob([this.outputAllergyStr],{type:"text/plain;charset=utf-8"});(0,Zc.saveAs)(e,"AllergyIntolerance.json")}copyToClipboard(e){this.clipboard.copy(e)}addToProblemsList(){if(this.selectedCode)this.newProblem.emit(this.selectedCode);else if(this.selectedSubstance&&this.selectedIntoleranceType){let e="";"609433001"===this.selectedIntoleranceType.code?e="Allergy to ":"782197009"===this.selectedIntoleranceType.code&&(e="Intolerance to "),e+=this.selectedSubstance.display,this.newProblem.emit({code:`${this.selectedIntoleranceType.code}:246075003=${this.selectedSubstance.code}`,display:e,substance:this.selectedSubstance})}else this._snackBar.openFromComponent(Qi,{duration:1e3,data:"Nothing to add to problem list",panelClass:["yellow-snackbar"]});this.clear()}}return t.\u0275fac=function(e){return new(e||t)(b(Nr),b(aO),b(Nd))},t.\u0275cmp=Ve({type:t,selectors:[["app-allergies-allergy-list"]],outputs:{newProblem:"newProblem"},decls:105,vars:30,consts:[["id","main-card"],[1,"row"],[1,"column"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",1,"long-tooltip",3,"disableRipple","click"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],["mat-flat-button","","color","accent","id","clear",3,"click"],[1,"row-centered"],[1,"smallest-form-field"],[3,"binding","term","selectionChange"],["codePopoverMenu","matMenu"],["mat-menu-item","",3,"disableRipple","click"],["matTooltip","Defines wether to use a propensity based model or a substance based model. Defines which one is recorded in the code element of the AllergyIntolerance resource.",3,"ngModel","ngModelChange","click"],[1,"form-field"],[3,"ngModel","ngModelChange"],[3,"value","click",4,"ngFor","ngForOf"],[1,"small-form-field"],[3,"binding","term","selectionChange",4,"ngIf"],[4,"ngIf"],[3,"formControl","multiple"],[3,"ngModel","ngModelChange","newManifestation"],["mat-flat-button","","color","accent",3,"click"],["href","https://hl7.org/FHIR/allergyintolerance.html","target","_blank"],["id","output"],["id","save"],["mat-icon-button","","matTooltip","Download FHIR Resource",3,"click"],["fontIcon","cloud_download"],["mat-icon-button","","matTooltip","Copy FHIR Resource",3,"click"],["fontIcon","content_copy"],["highlight-js","","id","output","wrap","soft",3,"options","lang","innerHTML"],[3,"value","click"]],template:function(e,n){if(1&e&&(v(0,"mat-card",0)(1,"div",1)(2,"div",2)(3,"h4"),E(4,"Allergy Intolerance Form "),v(5,"button",3)(6,"mat-icon"),E(7,"info"),y()(),v(8,"mat-menu",null,4)(10,"span",5),X("click",function(o){return o.stopPropagation()}),v(11,"h4"),E(12,"Allergy list"),y(),v(13,"p"),E(14,"Allergy or intolerance can be recorded in a specific section (e.g., \u201cDrug Allergy and Intolerance\u201d) of the EHR, which records the causative agent together with other details, including type (allergy, non-allergic hypersensitivity, intolerance), certainty, manifestation, and severity. This corresponds to the FHIR substance based AllergyIntolerance resource data model."),y(),v(15,"p"),E(16,"In terms of documenting sensitivity type in the allergy list there is the option to map to 609433001 |Hypersensitivity disposition which in SNOMED CT represents both immune-mediated and non-immune mediated hypersensitivity or to map to 609328004 |Allergic disposition (finding)|which is common clinical parlance for what many clinicians would mean by allergic or non-allergic hypersensitivity. In addition, as recommended in the FHIR documentation if one is unclear as to whether a condition represents hypersensitivity or intolerance, one can just omit the type element from the resource."),y(),v(17,"p"),E(18,"If SNOMED CT concepts are used to document the causative agent, it is preferable to use concepts from the Substance rather than Pharmaceutical/biologic product hierarchy since this will facilitate the downstream use of data, e.g., clinical decision support, data exchange."),y(),v(19,"p"),E(20,"Almost all allergy and intolerance finding concepts are modeled using substance concepts in SNOMED CT. The SNOMED CT substance hierarchy has grouper concepts that are based on structure (e.g., Macrolide) or disposition (e.g., substance with histamine receptor antagonist mechanism of action). Clinical decision support systems can utilize these grouper concepts to access information at the desired level of granularity. Clinicians can also record a class of substance instead of a specific drug or substance (e.g., angiotensin II receptor antagonist). Note that substance grouper concepts based on therapeutic role (e.g., anticonvulsant) is not recommended for use because they are currently under review and may be retired in future."),y(),v(21,"p"),E(22,"There are situations in which it is difficult to determine the specific substance as a true cause or most likely cause of a condition. This is the case for allergy/intolerance to a product containing multiple substances."),y(),v(23,"p"),E(24,"Records of allergy to multiple substances or to multi-ingredient products should be recorded at the product level and updated when more specific information becomes available (e.g., positive sensitivity test to one specific ingredient of the mix)."),y(),v(25,"p"),E(26,"For more information check the "),v(27,"a",6),E(28,"Implementation Guide"),y(),E(29," developed by the SNOMED International Allergy Clinical Reference Group."),y()()()(),v(30,"button",7),X("click",function(){return n.clear()}),E(31,"Clear"),y(),v(32,"div",8)(33,"div",9)(34,"app-autocomplete-binding",10),X("selectionChange",function(o){return n.codeSelected(o)}),y()(),v(35,"button",3)(36,"mat-icon"),E(37,"info"),y()(),v(38,"mat-menu",null,11)(40,"span",12),X("click",function(o){return o.stopPropagation()}),v(41,"p"),E(42,"Terminology binding:"),y(),v(43,"pre"),E(44),y()()(),v(45,"mat-slide-toggle",13),X("ngModelChange",function(o){return n.recordPropensity=o})("click",function(){return n.propensityRecordChanged()}),E(46," Propensity based model "),y()(),v(47,"mat-form-field",14)(48,"mat-label"),E(49,"Allergy Intolerance Type"),y(),v(50,"mat-select",15),X("ngModelChange",function(o){return n.selectedIntoleranceType=o}),H(51,Kee,2,2,"mat-option",16),y()(),v(52,"div",8)(53,"mat-form-field",2)(54,"mat-label"),E(55,"Clinical Status"),y(),v(56,"mat-select",15),X("ngModelChange",function(o){return n.selectedClinicalStatus=o}),H(57,Zee,2,2,"mat-option",16),y()(),v(58,"mat-form-field",2)(59,"mat-label"),E(60,"Verification Status"),y(),v(61,"mat-select",15),X("ngModelChange",function(o){return n.selectedVerificationStatus=o}),H(62,Jee,2,2,"mat-option",16),y()()(),v(63,"div",8)(64,"div",17),H(65,ete,1,2,"app-autocomplete-binding",18),H(66,tte,1,2,"app-autocomplete-binding",18),y(),v(67,"button",3)(68,"mat-icon"),E(69,"info"),y()(),v(70,"mat-menu",null,4)(72,"span",12),X("click",function(o){return o.stopPropagation()}),v(73,"p"),E(74,"Terminology binding:"),y(),H(75,ite,2,1,"pre",19),H(76,nte,2,1,"pre",19),y()()(),v(77,"div",8)(78,"mat-form-field",2)(79,"mat-label"),E(80,"Substance Category"),y(),v(81,"mat-select",20),H(82,rte,2,2,"mat-option",16),y()(),v(83,"mat-form-field",2)(84,"mat-label"),E(85,"Allergy Criticality"),y(),v(86,"mat-select",15),X("ngModelChange",function(o){return n.selectedCriticality=o}),H(87,ote,2,2,"mat-option",16),y()()(),v(88,"app-allergies-allergy-list-reaction",21),X("ngModelChange",function(o){return n.selectedReactions=o})("ngModelChange",function(o){return n.onReactionsChange(o)})("newManifestation",function(o){return n.newProblem.emit(o)}),y(),v(89,"button",22),X("click",function(){return n.addToProblemsList()}),E(90,"Save"),y()(),v(91,"div",2)(92,"h4"),E(93,"AllergyIntolerance HL7 FHIR Resource ("),v(94,"a",23),E(95,"link"),y(),E(96,")"),y(),v(97,"div",24)(98,"div",25)(99,"button",26),X("click",function(){return n.saveFhirResource()}),Se(100,"mat-icon",27),y(),v(101,"button",28),X("click",function(){return n.copyToClipboard(n.outputAllergyStr)}),Se(102,"mat-icon",29),y()(),v(103,"textarea",30),E(104," "),y()()()()()),2&e){const r=Nt(9),o=Nt(39);k(5),T("matMenuTriggerFor",r),k(5),T("disableRipple",!0),k(24),T("binding",n.codeBinding)("term",n.selectedCodeTerm),k(1),T("matMenuTriggerFor",o),k(5),T("disableRipple",!0),k(4),Xe(n.codeBinding.ecl),k(1),T("ngModel",n.recordPropensity),k(5),T("ngModel",n.selectedIntoleranceType),k(1),T("ngForOf",n.intoleranceTypeOptions),k(5),T("ngModel",n.selectedClinicalStatus),k(1),T("ngForOf",n.clinicalStatusOptions),k(4),T("ngModel",n.selectedVerificationStatus),k(1),T("ngForOf",n.verificationStatusOptions),k(3),T("ngIf",!n.recordPropensity),k(1),T("ngIf",n.recordPropensity),k(1),T("matMenuTriggerFor",r),k(5),T("disableRipple",!0),k(3),T("ngIf",!n.recordPropensity),k(1),T("ngIf",n.recordPropensity),k(5),T("formControl",n.selectedIntoleranceCategoriesControl)("multiple",!0),k(1),T("ngForOf",n.intoleranceCategoryOptions),k(4),T("ngModel",n.selectedCriticality),k(1),T("ngForOf",n.criticalityOptions),k(1),T("ngModel",n.selectedReactions),k(15),T("options",Ec(29,ate))("lang","json")("innerHTML",n.outputAllergyStr,qm)}},dependencies:[bo,fn,N1,Lr,os,Qo,jc,wa,Wc,Da,ko,zs,Co,s0,a1,cf,Yo,lf,fO,p0,Yee],styles:["#main-card[_ngcontent-%COMP%]{padding:10px;width:100%}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:flex-start}.row-centered[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center}.column[_ngcontent-%COMP%]{position:relative;flex:1;margin:5px;box-sizing:border-box}.form-field[_ngcontent-%COMP%]{width:100%}.smallest-form-field[_ngcontent-%COMP%]{width:60%;margin:5px}.small-form-field[_ngcontent-%COMP%]{width:90%;margin:5px}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;padding:4px 8px;height:36px}.mat-mdc-form-field-appearance-outline[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:0}.reaction[_ngcontent-%COMP%]{border-radius:10px;background-color:#a9bee9;padding:10px}#output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative}pre[_ngcontent-%COMP%] > code[_ngcontent-%COMP%]{width:45%;white-space:pre-wrap;word-wrap:break-word}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}#clear[_ngcontent-%COMP%]{position:absolute;right:20px;top:20px}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]}),t})(),pO=(()=>{class t{constructor(e){this._snackBar=e}addProblem(e){var n=this;return Oi(function*(){n.allergiesProblemListComponent.addProblem(e),n._snackBar.openFromComponent(Qi,{duration:1e3,data:"Problem list updated",panelClass:["green-snackbar"]})})()}}return t.\u0275fac=function(e){return new(e||t)(b(Nd))},t.\u0275cmp=Ve({type:t,selectors:[["app-allergies"]],viewQuery:function(e,n){if(1&e&&st(KR,5),2&e){let r;ye(r=we())&&(n.allergiesProblemListComponent=r.first)}},decls:31,vars:2,consts:[["id","main-panel"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",1,"long-tooltip",3,"disableRipple","click"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Allergy List Approach (AllergyIntolerance FHIR resource)"],[3,"newProblem"],["label","Problem List Approach (Condition FHIR resource)"]],template:function(e,n){if(1&e&&(v(0,"div",0)(1,"h3"),E(2,"Allergy, Hypersensitivity and Intolerance "),v(3,"button",1)(4,"mat-icon"),E(5,"info"),y()(),v(6,"mat-menu",null,2)(8,"span",3),X("click",function(o){return o.stopPropagation()}),v(9,"h4"),E(10,"Allergy, Hypersensitivity and Intolerance Implementation Demo"),y(),v(11,"p"),E(12,"This is a demonstration of different implementation approaches for recording Allergies, Hypersensitivity and Intolerance."),y(),v(13,"p")(14,"b"),E(15,"Allergy list:"),y(),E(16," allergy or intolerance can be recorded in a specific section of the EHR, which records the causative agent together with other details, including type (allergy, non-allergic hypersensitivity, intolerance), certainty, manifestation, and severity. This corresponds to the FHIR substance based AllergyIntolerance resource data model."),y(),v(17,"p")(18,"b"),E(19,"Problem list:"),y(),E(20," Allergy or intolerance can also be recorded in the EHR as a problem. The problem list is normally restricted to SNOMED CT concepts from three hierarchies \u2013 Clinical finding, Event and Finding with explicit context. This corresponds either to the FHIR finding based AllergyIntolerance resource data model or the FHIR Condition resource."),y(),v(21,"p"),E(22,"For more information check the "),v(23,"a",4),E(24,"Implementation Guide"),y(),E(25," developed by the SNOMED International Allergy Clinical Reference Group."),y()()()(),v(26,"mat-tab-group",5)(27,"mat-tab",6)(28,"app-allergies-allergy-list",7),X("newProblem",function(o){return n.addProblem(o)}),y()(),v(29,"mat-tab",8),Se(30,"app-allergies-problem-list"),y()()()),2&e){const r=Nt(7);k(3),T("matMenuTriggerFor",r),k(5),T("disableRipple",!0)}},dependencies:[os,Qo,jc,wa,Wc,g0,sf,KR,ste],styles:["#main-panel[_ngcontent-%COMP%]{padding:10px}h3[_ngcontent-%COMP%]{margin-top:0}#guideLink[_ngcontent-%COMP%]{font-size:smaller}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]}),t})();function B1(t,i,e){for(let n in i)if(i.hasOwnProperty(n)){const r=i[n];r?t.setProperty(n,r,e?.has(n)?"important":""):t.removeProperty(n)}return t}function Yd(t,i){const e=i?"":"none";B1(t.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function gO(t,i,e){B1(t.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function _0(t,i){return i&&"none"!=i?t+" "+i:t}function _O(t){const i=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*i}function V1(t,i){return t.getPropertyValue(i).split(",").map(n=>n.trim())}function H1(t){const i=t.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function U1(t,i,e){const{top:n,bottom:r,left:o,right:a}=t;return e>=n&&e<=r&&i>=o&&i<=a}function df(t,i,e){t.top+=i,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function bO(t,i,e,n){const{top:r,right:o,bottom:a,left:s,width:c,height:l}=t,d=c*i,u=l*i;return n>r-u&&ns-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:H1(e)})})}handleScroll(i){const e=to(i),n=this.positions.get(e);if(!n)return null;const r=n.scrollPosition;let o,a;if(e===this._document){const l=this.getViewportScrollPosition();o=l.top,a=l.left}else o=e.scrollTop,a=e.scrollLeft;const s=r.top-o,c=r.left-a;return this.positions.forEach((l,d)=>{l.clientRect&&e!==d&&e.contains(d)&&df(l.clientRect,s,c)}),r.top=o,r.left=a,{top:s,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function xO(t){const i=t.cloneNode(!0),e=i.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();i.removeAttribute("id");for(let r=0;rYd(n,e)))}constructor(i,e,n,r,o,a){this._config=e,this._document=n,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new ke,this._pointerMoveSubscription=yt.EMPTY,this._pointerUpSubscription=yt.EMPTY,this._scrollSubscription=yt.EMPTY,this._resizeSubscription=yt.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new ke,this.started=new ke,this.released=new ke,this.ended=new ke,this.entered=new ke,this.exited=new ke,this.dropped=new ke,this.moved=this._moveEvents,this._pointerDown=s=>{if(this.beforeStarted.next(),this._handles.length){const c=this._getTargetHandle(s);c&&!this._disabledHandles.has(c)&&!this.disabled&&this._initializeDragSequence(c,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const c=this._getPointerPositionOnPage(s);if(!this._hasStartedDragging){if(Math.abs(c.x-this._pickupPositionOnPage.x)+Math.abs(c.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(s),m=this._dropContainer;if(!f)return void this._endDragSequence(s);(!m||!m.isDragging()&&!m.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}s.preventDefault();const l=this._getConstrainedPointerPosition(c);if(this._hasMoved=!0,this._lastKnownPointerPosition=c,this._updatePointerDirectionDelta(l),this._dropContainer)this._updateActiveDropContainer(l,c);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=l.x-d.x+this._passiveTransform.x,u.y=l.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:l,event:s,distance:this._getDragDistance(l),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this._nativeDragStart=s=>{if(this._handles.length){const c=this._getTargetHandle(s);c&&!this._disabledHandles.has(c)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(i).withParent(e.parentDragRef||null),this._parentPositions=new vO(n),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(n=>Zi(n)),this._handles.forEach(n=>Yd(n,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&e.add(n)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){const e=Zi(i);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,b0),e.addEventListener("touchstart",this._pointerDown,kO),e.addEventListener("dragstart",this._nativeDragStart,b0)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?Zi(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),Yd(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),Yd(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){const i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){const i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(i){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){uf(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const n=this._rootElement,r=n.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),gO(n,!1,z1),this._document.body.appendChild(r.replaceChild(o,n)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:i}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(i,e){this._parentDragRef&&e.stopPropagation();const n=this.isDragging(),r=uf(e),o=!r&&0!==e.button,a=this._rootElement,s=to(e),c=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=r?Cg(e):wg(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),n||o||c||l)return;if(this._handles.length){const h=a.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=H1(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,i,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){gO(this._rootElement,!0,z1),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,n=e.getItemIndex(this),r=this._getPointerPositionOnPage(i),o=this._getDragDistance(r),a=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:i}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r,event:i}),e.drop(this,n,this._initialIndex,this._initialContainer,a,o,r,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:e},{x:n,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,i,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(n,r),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,e):this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const i=this._previewTemplate,e=this.previewClass,n=i?i.template:null;let r;if(n&&i){const o=i.matchSize?this._initialClientRect:null,a=i.viewContainer.createEmbeddedView(n,i.context);a.detectChanges(),r=SO(a,this._document),this._previewRef=a,i.matchSize?EO(r,o):r.style.transform=v0(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=xO(this._rootElement),EO(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return B1(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},z1),Yd(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);const e=function lte(t){const i=getComputedStyle(t),e=V1(i,"transition-property"),n=e.find(s=>"transform"===s||"all"===s);if(!n)return 0;const r=e.indexOf(n),o=V1(i,"transition-duration"),a=V1(i,"transition-delay");return _O(o[r])+_O(a[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{const r=a=>{(!a||to(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",r),n(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const i=this._placeholderTemplate,e=i?i.template:null;let n;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),n=SO(this._placeholderRef,this._document)):n=xO(this._rootElement),n.style.pointerEvents="none",n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(i,e,n){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():i,a=uf(n)?n.targetTouches[0]:n,s=this._getViewportScrollPosition();return{x:o.left-i.left+(a.pageX-o.left-s.left),y:o.top-i.top+(a.pageY-o.top-s.top)}}_getPointerPositionOnPage(i){const e=this._getViewportScrollPosition(),n=uf(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,r=n.pageX-e.left,o=n.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=o,s.matrixTransform(a.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(i){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:r}=this.constrainPosition?this.constrainPosition(i,this,this._initialClientRect,this._pickupPositionInElement):i;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:a}=this._pickupPositionInElement,s=this._boundaryRect,{width:c,height:l}=this._getPreviewRect(),d=s.top+a,u=s.bottom-(l-a);n=DO(n,s.left+o,s.right-(c-o)),r=DO(r,d,u)}return{x:n,y:r}}_updatePointerDirectionDelta(i){const{x:e,y:n}=i,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-o.x),s=Math.abs(n-o.y);return a>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=n>o.y?1:-1,o.y=n),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,Yd(this._rootElement,i))}_removeRootElementListeners(i){i.removeEventListener("mousedown",this._pointerDown,b0),i.removeEventListener("touchstart",this._pointerDown,kO),i.removeEventListener("dragstart",this._nativeDragStart,b0)}_applyRootElementTransform(i,e){const n=v0(i,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=_0(n,this._initialTransform)}_applyPreviewTransform(i,e){const n=this._previewTemplate?.template?void 0:this._initialTransform,r=v0(i,e);this._preview.style.transform=_0(r,n)}_getDragDistance(i){const e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(0===i&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===n.width&&0===n.height)return;const o=r.left-n.left,a=n.right-r.right,s=r.top-n.top,c=n.bottom-r.bottom;r.width>n.width?(o>0&&(i+=o),a>0&&(i-=a)):i=0,r.height>n.height?(s>0&&(e+=s),c>0&&(e-=c)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){const e=this.dragStartDelay;return"number"==typeof e?e:uf(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){const e=this._parentPositions.handleScroll(i);if(e){const n=to(i);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&df(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Ty(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){const n=this._previewContainer||"global";if("parent"===n)return i;if("global"===n){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Zi(n)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(i){return this._handles.find(e=>i.target&&(i.target===e||e.contains(i.target)))}}function v0(t,i){return`translate3d(${Math.round(t)}px, ${Math.round(i)}px, 0)`}function DO(t,i,e){return Math.max(i,Math.min(e,t))}function uf(t){return"t"===t.type[0]}function SO(t,i){const e=t.rootNodes;if(1===e.length&&e[0].nodeType===i.ELEMENT_NODE)return e[0];const n=i.createElement("div");return e.forEach(r=>n.appendChild(r)),n}function EO(t,i){t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.transform=v0(i.left,i.top)}function $1(t,i,e){const n=hf(i,t.length-1),r=hf(e,t.length-1);if(n===r)return;const o=t[n],a=r0)return null;const s="horizontal"===this.orientation,c=o.findIndex(p=>p.drag===i),l=o[a],u=l.clientRect,h=c>a?1:-1,f=this._getItemOffsetPx(o[c].clientRect,u,h),m=this._getSiblingOffsetPx(c,o,h),g=o.slice();return $1(o,c,a),o.forEach((p,_)=>{if(g[_]===p)return;const w=p.drag===i,x=w?f:m,M=w?i.getPlaceholderElement():p.drag.getRootElement();p.offset+=x,s?(M.style.transform=_0(`translate3d(${Math.round(p.offset)}px, 0, 0)`,p.initialTransform),df(p.clientRect,0,x)):(M.style.transform=_0(`translate3d(0, ${Math.round(p.offset)}px, 0)`,p.initialTransform),df(p.clientRect,x,0))}),this._previousSwap.overlaps=U1(u,e,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:c,currentIndex:a}}enter(i,e,n,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(i,e,n):r,a=this._activeDraggables,s=a.indexOf(i),c=i.getPlaceholderElement();let l=a[o];if(l===i&&(l=a[o+1]),!l&&(null==o||-1===o||o-1&&a.splice(s,1),l&&!this._dragDropRegistry.isDragging(l)){const d=l.getRootElement();d.parentElement.insertBefore(c,d),a.splice(o,0,i)}else Zi(this._element).appendChild(c),a.push(i);c.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables.forEach(i=>{const e=i.getRootElement();if(e){const n=this._itemPositions.find(r=>r.drag===i)?.initialTransform;e.style.transform=n||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(n=>n.drag===i)}updateOnScroll(i,e){this._itemPositions.forEach(({clientRect:n})=>{df(n,i,e)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}_cacheItemPositions(){const i="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const n=e.getVisibleElement();return{drag:e,offset:0,initialTransform:n.style.transform||"",clientRect:H1(n)}}).sort((e,n)=>i?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_getItemOffsetPx(i,e,n){const r="horizontal"===this.orientation;let o=r?e.left-i.left:e.top-i.top;return-1===n&&(o+=r?e.width-i.width:e.height-i.height),o}_getSiblingOffsetPx(i,e,n){const r="horizontal"===this.orientation,o=e[i].clientRect,a=e[i+-1*n];let s=o[r?"width":"height"]*n;if(a){const c=r?"left":"top",l=r?"right":"bottom";-1===n?s-=a.clientRect[c]-o[l]:s+=o[c]-a.clientRect[l]}return s}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,r="horizontal"===this.orientation;if(n[0].drag!==this._activeDraggables[0]){const a=n[n.length-1].clientRect;return r?i>=a.right:e>=a.bottom}{const a=n[0].clientRect;return r?i<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(i,e,n,r){const o="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:s,clientRect:c})=>s!==i&&((!r||s!==this._previousSwap.drag||!this._previousSwap.overlaps||(o?r.x:r.y)!==this._previousSwap.delta)&&(o?e>=Math.floor(c.left)&&e=Math.floor(c.top)&&n!0,this.sortPredicate=()=>!0,this.beforeStarted=new ke,this.entered=new ke,this.exited=new ke,this.dropped=new ke,this.sorted=new ke,this.receivingStarted=new ke,this.receivingStopped=new ke,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=yt.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new ke,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function cte(t=0,i=Rh){return t<0&&(t=0),Fg(t,t,i)}(0,oF).pipe(Tt(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-s):2===this._verticalScrollDirection&&a.scrollBy(0,s),1===this._horizontalScrollDirection?a.scrollBy(-s,0):2===this._horizontalScrollDirection&&a.scrollBy(s,0)})},this.element=Zi(i),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new vO(n),this._sortStrategy=new fte(this.element,e),this._sortStrategy.withSortPredicate((a,s)=>this.sortPredicate(a,s,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(i,e,n,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(i)),this._sortStrategy.enter(i,e,n,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,n,r,o,a,s,c={}){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:n,container:this,previousContainer:r,isPointerOverContainer:o,distance:a,dropPoint:s,event:c})}withItems(i){const e=this._draggables;return this._draggables=i,i.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===i.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._sortStrategy.direction=i,this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){return this._sortStrategy.orientation=i,this}withScrollableParents(i){const e=Zi(this.element);return this._scrollableElements=-1===i.indexOf(e)?[e,...i]:i.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,n,r){if(this.sortingDisabled||!this._clientRect||!bO(this._clientRect,.05,e,n))return;const o=this._sortStrategy.sort(i,e,n,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let n,r=0,o=0;if(this._parentPositions.positions.forEach((a,s)=>{s===this._document||!a.clientRect||n||bO(a.clientRect,.05,i,e)&&([r,o]=function pte(t,i,e,n){const r=AO(i,n),o=IO(i,e);let a=0,s=0;if(r){const c=t.scrollTop;1===r?c>0&&(a=1):t.scrollHeight-c>t.clientHeight&&(a=2)}if(o){const c=t.scrollLeft;1===o?c>0&&(s=1):t.scrollWidth-c>t.clientWidth&&(s=2)}return[a,s]}(s,a.clientRect,i,e),(r||o)&&(n=s))}),!r&&!o){const{width:a,height:s}=this._viewportRuler.getViewportSize(),c={width:a,height:s,top:0,right:a,bottom:s,left:0};r=AO(c,e),o=IO(c,i),n=window}n&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=n,(r||o)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const i=Zi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const i=Zi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(i).clientRect}_reset(){this._isDragging=!1;const i=Zi(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(i,e){return null!=this._clientRect&&U1(this._clientRect,i,e)}_getSiblingContainerFromPosition(i,e,n){return this._siblings.find(r=>r._canReceive(i,e,n))}_canReceive(i,e,n){if(!this._clientRect||!U1(this._clientRect,e,n)||!this.enterPredicate(i,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,n);if(!r)return!1;const o=Zi(this.element);return r===o||o.contains(r)}_startReceiving(i,e){const n=this._activeSiblings;!n.has(i)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(n.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:e}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(i);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const i=Ty(Zi(this.element));this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const i=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}}function AO(t,i){const{top:e,bottom:n,height:r}=t,o=r*MO;return i>=e-o&&i<=e+o?1:i>=n-o&&i<=n+o?2:0}function IO(t,i){const{left:e,right:n,width:r}=t,o=r*MO;return i>=e-o&&i<=e+o?1:i>=n-o&&i<=n+o?2:0}const x0=Xo({passive:!1,capture:!0});let gte=(()=>{class t{constructor(e,n){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new ke,this.pointerUp=new ke,this.scroll=new ke,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=n}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,x0)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,x0)}startDragging(e,n){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=n.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:x0}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:x0}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(e){const n=this._activeDragInstances.indexOf(e);n>-1&&(this._activeDragInstances.splice(n,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const n=[this.scroll];return e&&e!==this._document&&n.push(new ni(r=>this._ngZone.runOutsideAngular(()=>{const a=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),Vi(...n)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,n)=>{this._document.removeEventListener(n,e.handler,e.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(G(ze),G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const _te={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let j1=(()=>{class t{constructor(e,n,r,o){this._document=e,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,n=_te){return new hte(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new mte(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(G(nt),G(ze),G(ya),G(gte))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const W1=new ae("CDK_DRAG_PARENT"),G1=new ae("CdkDropListGroup"),FO=new ae("CDK_DRAG_CONFIG");let vte=0;const RO=new ae("CdkDropList");let q1=(()=>{class t{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=je(e)}constructor(e,n,r,o,a,s,c){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new ke,this.connectedTo=[],this.id="cdk-drop-list-"+vte++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new xe,this.entered=new xe,this.exited=new xe,this.sorted=new xe,this._unsortedItems=new Set,this._dropListRef=n.createDropList(e),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=(l,d)=>this.enterPredicate(l.data,d.data),this._dropListRef.sortPredicate=(l,d,u)=>this.sortPredicate(l,d.data,u.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),s&&s._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,n)=>e._dragRef.getVisibleElement().compareDocumentPosition(n._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(Hn(this._dir.value),Tt(this._destroyed)).subscribe(n=>e.withDirection(n)),e.beforeStarted.subscribe(()=>{const n=Oh(this.connectedTo).map(r=>"string"==typeof r?t._dropLists.find(a=>a.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===n.indexOf(r)&&n.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=je(this.sortingDisabled),e.autoScrollDisabled=je(this.autoScrollDisabled),e.autoScrollStep=In(this.autoScrollStep,2),e.connectedTo(n.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:this,item:n.item.data,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:this,item:n.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(n=>{this.sorted.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:n.item.data})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,item:n.item.data,isPointerOverContainer:n.isPointerOverContainer,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),Vi(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){const{lockAxis:n,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:a,listOrientation:s}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=a??!1,this.orientation=s||"vertical",n&&(this.lockAxis=n)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return t._dropLists=[],t.\u0275fac=function(e){return new(e||t)(b(Fe),b(j1),b(Gt),b(Pd),b(bn,8),b(G1,12),b(FO,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,n){2&e&&(ot("id",n.id),Qe("cdk-drop-list-disabled",n.disabled)("cdk-drop-list-dragging",n._dropListRef.isDragging())("cdk-drop-list-receiving",n._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[We([{provide:G1,useValue:void 0},{provide:RO,useExisting:t}])]}),t})();const X1=new ae("CdkDragHandle");let OO=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._stateChanges.next(this)}constructor(e,n){this.element=e,this._stateChanges=new ke,this._disabled=!1,this._parentDrag=n}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(W1,12))},t.\u0275dir=Q({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[We([{provide:X1,useExisting:t}])]}),t})();const PO=new ae("CdkDragPlaceholder"),LO=new ae("CdkDragPreview");let Q1=(()=>{class t{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=je(e),this._dragRef.disabled=this._disabled}constructor(e,n,r,o,a,s,c,l,d,u,h){this.element=e,this.dropContainer=n,this._ngZone=o,this._viewContainerRef=a,this._dir=c,this._changeDetectorRef=d,this._selfHandle=u,this._parentDrag=h,this._destroyed=new ke,this.started=new xe,this.released=new xe,this.ended=new xe,this.entered=new xe,this.exited=new xe,this.dropped=new xe,this.moved=new ni(f=>{const m=this._dragRef.moved.pipe(Ke(g=>({source:this,pointerPosition:g.pointerPosition,event:g.event,delta:g.delta,distance:g.distance}))).subscribe(f);return()=>{m.unsubscribe()}}),this._dragRef=l.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:s?.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),s&&this._assignDefaults(s),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ui(1),Tt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const n=e.rootElementSelector,r=e.freeDragPosition;n&&!n.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let n=e;this.rootElementSelector&&(n=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(n||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Zi(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const n=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:In(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),n&&e.withDirection(n.value)}}),e.beforeStarted.pipe(ui(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let n=this.element.nativeElement.parentElement;for(;n;){if(n.classList.contains("cdk-drag")){e.withParent(t._dragInstances.find(r=>r.element.nativeElement===n)?._dragRef||null);break}n=n.parentElement}})}_handleEvents(e){e.started.subscribe(n=>{this.started.emit({source:this,event:n.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(n=>{this.released.emit({source:this,event:n.event})}),e.ended.subscribe(n=>{this.ended.emit({source:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:n.container.data,item:this,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:n.container.data,item:this})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,isPointerOverContainer:n.isPointerOverContainer,item:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event})})}_assignDefaults(e){const{lockAxis:n,dragStartDelay:r,constrainPosition:o,previewClass:a,boundaryElement:s,draggingDisabled:c,rootElementSelector:l,previewContainer:d}=e;this.disabled=c??!1,this.dragStartDelay=r||0,n&&(this.lockAxis=n),o&&(this.constrainPosition=o),a&&(this.previewClass=a),s&&(this.boundaryElement=s),l&&(this.rootElementSelector=l),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.changes.pipe(Hn(this._handles),zi(e=>{const n=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&n.push(this.element),this._dragRef.withHandles(n)}),mn(e=>Vi(...e.map(n=>n._stateChanges.pipe(Hn(n))))),Tt(this._destroyed)).subscribe(e=>{const n=this._dragRef,r=e.element.nativeElement;e.disabled?n.disableHandle(r):n.enableHandle(r)})}}return t._dragInstances=[],t.\u0275fac=function(e){return new(e||t)(b(Fe),b(RO,12),b(nt),b(ze),b(Fi),b(FO,8),b(bn,8),b(j1),b(Gt),b(X1,10),b(W1,12))},t.\u0275dir=Q({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,LO,5),Bt(r,PO,5),Bt(r,X1,5)),2&e){let o;ye(o=we())&&(n._previewTemplate=o.first),ye(o=we())&&(n._placeholderTemplate=o.first),ye(o=we())&&(n._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,n){2&e&&Qe("cdk-drag-disabled",n.disabled)("cdk-drag-dragging",n._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[We([{provide:W1,useExisting:t}]),Ei]}),t})(),Cte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[j1],imports:[Hc]}),t})();function kte(t,i){}class y0{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let NO=(()=>{class t extends Mg{constructor(e,n,r,o,a,s,c,l){super(),this._elementRef=e,this._focusTrapFactory=n,this._config=o,this._interactivityChecker=a,this._ngZone=s,this._overlayRef=c,this._focusMonitor=l,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(n)}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(n=>{n||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let n=null;if("string"==typeof e?n=this._document.querySelector(e):"boolean"==typeof e?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&"function"==typeof n.focus){const r=mg(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,n=mg();return e===n||e.contains(n)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=mg())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Vy),b(nt,8),b(y0),b(yg),b(ze),b(Hh),b(yo))},t.\u0275cmp=Ve({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(e,n){if(1&e&&st(cs,7),2&e){let r;ye(r=we())&&(n._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,n){2&e&&ot("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null)},features:[pe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){1&e&&H(0,kte,0,0,"ng-template",0)},dependencies:[cs],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),t})();class Y1{constructor(i,e){this.overlayRef=i,this.config=e,this.closed=new ke,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{27===n.keyCode&&!this.disableClose&&!wr(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=i.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(i,e){if(this.containerInstance){const n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}}const BO=new ae("DialogScrollStrategy"),Dte=new ae("DialogData"),Ste=new ae("DefaultDialogConfig"),Tte={provide:BO,deps:[rr],useFactory:function Ete(t){return()=>t.scrollStrategies.block()}};let Mte=0,VO=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,n,r,o,a,s){this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ke,this._afterOpenedAtThisLevel=new ke,this._ariaHiddenElements=new Map,this.afterAllClosed=gd(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Hn(void 0))),this._scrollStrategy=s}open(e,n){(n={...this._defaultOptions||new y0,...n}).id=n.id||"cdk-dialog-"+Mte++,n.id&&this.getDialogById(n.id);const o=this._getOverlayConfig(n),a=this._overlay.create(o),s=new Y1(a,n),c=this._attachContainer(a,s,n);return s.containerInstance=c,this._attachDialogContent(e,s,c,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){K1(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){K1(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),K1(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const n=new Ld({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,r){const o=r.injector||r.viewContainerRef?.injector,a=[{provide:y0,useValue:r},{provide:Y1,useValue:n},{provide:Hh,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=NO;const c=new Od(s,r.viewContainerRef,tn.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,n,r,o){if(e instanceof _i){const a=this._createInjector(o,n,r,void 0);let s={$implicit:o.data,dialogRef:n};o.templateContext&&(s={...s,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new ss(e,null,s,a))}else{const a=this._createInjector(o,n,r,this._injector),s=r.attachComponentPortal(new Od(e,o.viewContainerRef,a,o.componentFactoryResolver));n.componentInstance=s.instance}}_createInjector(e,n,r,o){const a=e.injector||e.viewContainerRef?.injector,s=[{provide:Dte,useValue:e.data},{provide:Y1,useValue:n}];return e.providers&&("function"==typeof e.providers?s.push(...e.providers(n,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(bn,null,{optional:!0}))&&s.push({provide:bn,useValue:{value:e.direction,change:$e()}}),tn.create({parent:a||o,providers:s})}_removeOpenDialog(e,n){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const n=e.parentElement.children;for(let r=n.length-1;r>-1;r--){const o=n[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return t.\u0275fac=function(e){return new(e||t)(G(rr),G(tn),G(Ste,8),G(t,12),G(Rg),G(BO))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();function K1(t,i){let e=t.length;for(;e--;)i(t[e])}let Ate=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[VO,Tte],imports:[zc,Vc,zy,Vc]}),t})();function Ite(t,i){}class w0{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Z1="mdc-dialog--open",HO="mdc-dialog--opening",UO="mdc-dialog--closing";let Ote=(()=>{class t extends NO{constructor(e,n,r,o,a,s,c,l){super(e,n,r,o,a,s,c,l),this._animationStateChanged=new xe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Vy),b(nt,8),b(w0),b(yg),b(ze),b(Hh),b(yo))},t.\u0275cmp=Ve({type:t,selectors:[["ng-component"]],features:[pe],decls:0,vars:0,template:function(e,n){},encapsulation:2}),t})();const zO="--mat-dialog-transition-duration";function $O(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?In(t.substring(0,t.length-2)):t.endsWith("s")?1e3*In(t.substring(0,t.length-1)):"0"===t?0:null}let Pte=(()=>{class t extends Ote{constructor(e,n,r,o,a,s,c,l,d){super(e,n,r,o,a,s,c,d),this._animationMode=l,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?$O(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?$O(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(zO,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(HO),this._hostElement.classList.add(Z1),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Z1),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(Z1),this._animationsEnabled?(this._hostElement.style.setProperty(zO,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(UO),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(HO),this._hostElement.classList.remove(UO)}_waitForAnimationToComplete(e,n){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Vy),b(nt,8),b(w0),b(yg),b(ze),b(Hh),b(Ri,8),b(yo))},t.\u0275cmp=Ve({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(e,n){2&e&&(pa("id",n._config.id),ot("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Qe("_mat-animation-noopable",!n._animationsEnabled))},features:[pe],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(e,n){1&e&&(v(0,"div",0)(1,"div",1),H(2,Ite,0,0,"ng-template",2),y()())},dependencies:[cs],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),t})();class Gs{constructor(i,e,n){this._ref=i,this._containerInstance=n,this._afterOpened=new ke,this._beforeClosed=new ke,this._state=0,this.disableClose=e.disableClose,this.id=i.id,n._animationStateChanged.pipe(hi(r=>"opened"===r.state),ui(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(hi(r=>"closed"===r.state),ui(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Vi(this.backdropClick(),this.keydownEvents().pipe(hi(r=>27===r.keyCode&&!this.disableClose&&!wr(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),jO(this,"keydown"===r.type?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(hi(e=>"closing"===e.state),ui(1)).subscribe(e=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function jO(t,i,e){return t._closeInteractionType=i,t.close(e)}const C0=new ae("MatMdcDialogData"),Lte=new ae("mat-mdc-dialog-default-options"),WO=new ae("mat-mdc-dialog-scroll-strategy"),Bte={provide:WO,deps:[rr],useFactory:function Nte(t){return()=>t.scrollStrategies.block()}};let Vte=0,Hte=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,n,r,o,a,s,c,l,d,u){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=c,this._dialogContainerType=l,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ke,this._afterOpenedAtThisLevel=new ke,this._idPrefix="mat-dialog-",this.dialogConfigClass=w0,this.afterAllClosed=gd(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Hn(void 0))),this._scrollStrategy=s,this._dialog=n.get(VO)}open(e,n){let r;(n={...this._defaultOptions||new w0,...n}).id=n.id||`${this._idPrefix}${Vte++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...n,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:y0,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(a,s,c)=>(r=new this._dialogRefConstructor(a,n,c),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}}return t.\u0275fac=function(e){da()},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Kd=(()=>{class t extends Hte{constructor(e,n,r,o,a,s,c,l){super(e,n,o,s,c,a,Gs,Pte,C0,l),this._idPrefix="mat-mdc-dialog-"}}return t.\u0275fac=function(e){return new(e||t)(G(rr),G(tn),G(ih,8),G(Lte,8),G(WO),G(t,12),G(Rg),G(Ri,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Ute=0,ff=(()=>{class t{constructor(e,n,r){this.dialogRef=e,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=qO(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){jO(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(b(Gs,8),b(Fe),b(Kd))},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,n){1&e&&X("click",function(o){return n._onButtonClick(o)}),2&e&&ot("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Ei]}),t})(),GO=(()=>{class t{constructor(e,n,r){this._dialogRef=e,this._elementRef=n,this._dialog=r,this.id="mat-mdc-dialog-title-"+Ute++}ngOnInit(){this._dialogRef||(this._dialogRef=qO(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(b(Gs,8),b(Fe),b(Kd))},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(e,n){2&e&&pa("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),k0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),t})(),D0=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(e,n){2&e&&Qe("mat-mdc-dialog-actions-align-center","center"===n.align)("mat-mdc-dialog-actions-align-end","end"===n.align)},inputs:{align:"align"}}),t})();function qO(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}let zte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[Kd,Bte],imports:[Ate,zc,Vc,xt,xt]}),t})(),$te=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.localEcl="",this.localEcl=n.ecl}onNoClick(){this.dialogRef.close()}eclChanged(e){this.data.ecl=e?.detail[0]}}return t.\u0275fac=function(e){return new(e||t)(b(Gs),b(C0))},t.\u0275cmp=Ve({type:t,selectors:[["app-ecl-builder-dialog"]],decls:7,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"full-height"],["apiurl","https://dev-is-browser.ihtsdotools.org/snowstorm/snomed-ct","branch","MAIN/2023-01-31","v-on:eclOutput","eclChange",3,"eclstring","eclOutput"],["mat-dialog-actions","",1,"actions"],["mat-flat-button","","color","accent","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,n){1&e&&(v(0,"h1",0),E(1,"ECL Builder"),y(),v(2,"div",1)(3,"snomed-ecl-builder",2),X("eclOutput",function(o){return n.eclChanged(o)}),y()(),v(4,"div",3)(5,"button",4),E(6,"Ok"),y()()),2&e&&(k(3),Wu("eclstring",n.localEcl),k(2),T("mat-dialog-close",n.data))},dependencies:[Lr,ff,GO,k0,D0],styles:[".full-height[_ngcontent-%COMP%]{height:78%}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),t})();const QO=new ae("CdkAccordion");let jte=0,Wte=(()=>{class t{get expanded(){return this._expanded}set expanded(e){e=je(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e)}constructor(e,n,r){this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=r,this._openCloseAllSubscription=yt.EMPTY,this.closed=new xe,this.opened=new xe,this.destroyed=new xe,this.expandedChange=new xe,this.id="cdk-accordion-child-"+jte++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return t.\u0275fac=function(e){return new(e||t)(b(QO,12),b(Gt),b(vy))},t.\u0275dir=Q({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[We([{provide:QO,useValue:void 0}])]}),t})(),Gte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const qte=["body"];function Xte(t,i){}const Qte=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Yte=["mat-expansion-panel-header","*","mat-action-row"];function Kte(t,i){1&t&&Se(0,"span",2),2&t&&T("@indicatorRotate",q()._getExpandedState())}const Zte=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Jte=["mat-panel-title","mat-panel-description","*"],YO=new ae("MAT_ACCORDION"),KO="225ms cubic-bezier(0.4,0.0,0.2,1)",ZO={indicatorRotate:vn("indicatorRotate",[ii("collapsed, void",rt({transform:"rotate(0deg)"})),ii("expanded",rt({transform:"rotate(180deg)"})),ai("expanded <=> collapsed, void => collapsed",fi(KO))]),bodyExpansion:vn("bodyExpansion",[ii("collapsed, void",rt({height:"0px",visibility:"hidden"})),ii("expanded",rt({height:"*",visibility:"visible"})),ai("expanded <=> collapsed, void => collapsed",fi(KO))])},JO=new ae("MAT_EXPANSION_PANEL");let eie=(()=>{class t{constructor(e,n){this._template=e,this._expansionPanel=n}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(JO,8))},t.\u0275dir=Q({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),tie=0;const eP=new ae("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let tP=(()=>{class t extends Wte{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=je(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,n,r,o,a,s,c){super(e,n,r),this._viewContainerRef=o,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new xe,this.afterCollapse=new xe,this._inputChanges=new ke,this._headerId="mat-expansion-panel-header-"+tie++,this._bodyAnimationDone=new ke,this.accordion=e,this._document=a,this._bodyAnimationDone.pipe(Bc((l,d)=>l.fromState===d.fromState&&l.toState===d.toState)).subscribe(l=>{"void"!==l.fromState&&("expanded"===l.toState?this.afterExpand.emit():"collapsed"===l.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Hn(null),hi(()=>this.expanded&&!this._portal),ui(1)).subscribe(()=>{this._portal=new ss(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,n=this._body.nativeElement;return e===n||n.contains(e)}return!1}}return t.\u0275fac=function(e){return new(e||t)(b(YO,12),b(Gt),b(vy),b(Fi),b(nt),b(Ri,8),b(eP,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,eie,5),2&e){let o;ye(o=we())&&(n._lazyContent=o.first)}},viewQuery:function(e,n){if(1&e&&st(qte,5),2&e){let r;ye(r=we())&&(n._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,n){2&e&&Qe("mat-expanded",n.expanded)("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-expansion-panel-spacing",n._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[We([{provide:YO,useValue:void 0},{provide:JO,useExisting:t}]),pe,Ei],ngContentSelectors:Yte,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,n){1&e&&(vi(Qte),tt(0),v(1,"div",0,1),X("@bodyExpansion.done",function(o){return n._bodyAnimationDone.next(o)}),v(3,"div",2),tt(4,1),H(5,Xte,0,0,"ng-template",3),y(),tt(6,2),y()),2&e&&(k(1),T("@bodyExpansion",n._getExpandedState())("id",n.id),ot("aria-labelledby",n._headerId),k(4),T("cdkPortalOutlet",n._portal))},dependencies:[cs],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[ZO.bodyExpansion]},changeDetection:0}),t})();class iie{}const nie=Lh(iie);let rie=(()=>{class t extends nie{constructor(e,n,r,o,a,s,c){super(),this.panel=e,this._element=n,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=s,this._parentChangeSubscription=yt.EMPTY;const l=e.accordion?e.accordion._stateChanges.pipe(hi(d=>!(!d.hideToggle&&!d.togglePosition))):Wr;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=Vi(e.opened,e.closed,l,e._inputChanges.pipe(hi(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(hi(()=>e._containsFocus())).subscribe(()=>r.focusVia(n,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:wr(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,n){e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(b(tP,1),b(Fe),b(yo),b(Gt),b(eP,8),b(Ri,8),fo("tabindex"))},t.\u0275cmp=Ve({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,n){1&e&&X("click",function(){return n._toggle()})("keydown",function(o){return n._keydown(o)}),2&e&&(ot("id",n.panel._headerId)("tabindex",n.tabIndex)("aria-controls",n._getPanelId())("aria-expanded",n._isExpanded())("aria-disabled",n.panel.disabled),ir("height",n._getHeaderHeight()),Qe("mat-expanded",n._isExpanded())("mat-expansion-toggle-indicator-after","after"===n._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===n._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===n._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[pe],ngContentSelectors:Jte,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,n){1&e&&(vi(Zte),v(0,"span",0),tt(1),tt(2,1),tt(3,2),y(),H(4,Kte,1,1,"span",1)),2&e&&(Qe("mat-content-hide-toggle",!n._showToggle()),k(4),T("ngIf",n._showToggle()))},dependencies:[fn],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[ZO.indicatorRotate]},changeDetection:0}),t})(),oie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),aie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),sie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[nr,xt,Gte,Vc]}),t})();function cie(t,i){if(1&t){const e=Je();v(0,"mat-option",2),X("click",function(){return Me(e),Ae(q().optionClicked())}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e),k(1),It(" ",e.display," ")}}let lie=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new xe}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionClicked(){this.selectionChange.emit(this.selectedOptions)}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-dropdown-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:7,vars:5,consts:[[3,"multiple","ngModel","ngModelChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"]],template:function(e,n){1&e&&(v(0,"mat-form-field")(1,"mat-label"),E(2),y(),v(3,"mat-select",0),X("ngModelChange",function(o){return n.selectedOptions=o}),H(4,cie,2,2,"mat-option",1),y(),v(5,"mat-hint"),E(6),y()()),2&e&&(k(2),Xe(n.binding.title),k(1),T("multiple","Select (Multiple)"==n.binding.type)("ngModel",n.selectedOptions),k(1),T("ngForOf",n.options),k(2),Xe(n.binding.note))},dependencies:[bo,Da,ko,Yc,zs,Co,cf,Yo],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]}),t})();const die=["input"],uie=["*"];let iP=0;class nP{constructor(i,e){this.source=i,this.value=e}}const hie={provide:Xn,useExisting:Xt(()=>J1),multi:!0},rP=new ae("MatRadioGroup"),fie=new ae("mat-radio-default-options",{providedIn:"root",factory:function mie(){return{color:"accent"}}});let pie=(()=>{class t{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=je(e),this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+iP++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new xe}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(n=>{n.checked=this.value===n.value,n.checked&&(this._selected=n)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new nP(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(b(Gt))},t.\u0275dir=Q({type:t,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),t})();class gie{constructor(i){this._elementRef=i}}const _ie=Hs(Lh(gie));let bie=(()=>{class t extends _ie{get checked(){return this._checked}set checked(e){const n=je(e);this._checked!==n&&(this._checked=n,n&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!n&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),n&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(je(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=je(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,n,r,o,a,s,c,l){super(n),this._changeDetector=r,this._focusMonitor=o,this._radioDispatcher=a,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++iP,this.id=this._uniqueId,this.change=new xe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,l&&(this.tabIndex=In(l,0))}focus(e,n){n?this._focusMonitor.focusVia(this._inputElement,n,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,n)=>{e!==this.id&&n===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new nP(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const n=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),n&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let n;if(n=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,n!==this._previousTabIndex){const r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",n+""),this._previousTabIndex=n)}}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(die,5),2&e){let r;ye(r=we())&&(n._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[pe]}),t})(),J1=(()=>{class t extends pie{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,ew,5),2&e){let o;ye(o=we())&&(n._radios=o)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[We([hie,{provide:rP,useExisting:t}]),pe]}),t})(),ew=(()=>{class t extends bie{constructor(e,n,r,o,a,s,c,l){super(e,n,r,o,a,s,c,l)}}return t.\u0275fac=function(e){return new(e||t)(b(rP,8),b(Fe),b(Gt),b(yo),b(vy),b(Ri,8),b(fie,8),fo("tabindex"))},t.\u0275cmp=Ve({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(e,n){1&e&&X("focus",function(){return n._inputElement.nativeElement.focus()}),2&e&&(ot("id",n.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Qe("mat-primary","primary"===n.color)("mat-accent","accent"===n.color)("mat-warn","warn"===n.color)("mat-mdc-radio-checked",n.checked)("_mat-animation-noopable",n._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[pe],ngContentSelectors:uie,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[3,"for"]],template:function(e,n){if(1&e&&(vi(),v(0,"div",0,1)(2,"div",2)(3,"div",3),X("click",function(o){return n._onTouchTargetClick(o)}),y(),v(4,"input",4,5),X("change",function(o){return n._onInputInteraction(o)}),y(),v(6,"div",6),Se(7,"div",7)(8,"div",8),y(),v(9,"div",9),Se(10,"div",10),y()(),v(11,"label",11),tt(12),y()()),2&e){const r=Nt(1);Qe("mdc-form-field--align-end","before"==n.labelPosition),k(2),Qe("mdc-radio--disabled",n.disabled),k(2),T("id",n.inputId)("checked",n.checked)("disabled",n.disabled)("required",n.required),ot("name",n.name)("value",n.value)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),k(5),T("matRippleTrigger",r)("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0),k(2),T("for",n.inputId)}},dependencies:[wo],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-mdc-radio-ripple-color, transparent)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0}),t})(),vie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,nr,Us,xt]}),t})();function xie(t,i){if(1&t){const e=Je();v(0,"mat-radio-button",3),X("click",function(){const o=Me(e).$implicit;return Ae(q().optionSelected(o))}),E(1),y()}if(2&t){const e=i.$implicit;T("value",e.code),k(1),It(" ",e.display," ")}}let yie=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new xe}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionSelected(e){this.selectionChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-radios-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:6,vars:3,consts:[["aria-label","Select an option",1,"radio-group"],["class","radio-button",3,"value","click",4,"ngFor","ngForOf"],["id","hint"],[1,"radio-button",3,"value","click"]],template:function(e,n){1&e&&(v(0,"div"),E(1),y(),v(2,"mat-radio-group",0),H(3,xie,2,2,"mat-radio-button",1),y(),v(4,"div",2),E(5),y()),2&e&&(k(1),Xe(n.binding.title),k(2),T("ngForOf",n.options),k(2),Xe(n.binding.note))},dependencies:[bo,J1,ew],styles:["#hint[_ngcontent-%COMP%]{font-size:12px}.radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:20px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:0}"]}),t})(),wie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new xe,this.text=""}ngOnInit(){}onTextChange(e){this.text=e,this.textChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-textbox-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","placeholder","Enter text...",3,"ngModel","ngModelChange"]],template:function(e,n){1&e&&(v(0,"mat-form-field",0)(1,"mat-label"),E(2),y(),v(3,"textarea",1),X("ngModelChange",function(o){return n.text=o})("ngModelChange",function(o){return n.onTextChange(o)}),y(),v(4,"mat-hint"),E(5),y()()),2&e&&(k(2),Xe(n.binding.title),k(1),T("ngModel",n.text),k(2),Xe(n.binding.note))},dependencies:[Da,ko,Yc,Kc,Ca,Co,Yo],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]}),t})();const Cie=["input"],kie=["label"],Die=["*"],Sie=new ae("mat-checkbox-default-options",{providedIn:"root",factory:oP});function oP(){return{color:"accent",clickAction:"check-indeterminate"}}const Eie={provide:Xn,useExisting:Xt(()=>sP),multi:!0};class Tie{}let Mie=0;const aP=oP(),Aie=Lh(Vs(Hs(rs(class{constructor(t){this._elementRef=t}}))));let Iie=(()=>{class t extends Aie{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=je(e)}constructor(e,n,r,o,a,s,c){super(n),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=s,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new xe,this.indeterminateChange=new xe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||aP,this.color=this.defaultColor=this._options.color||aP.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++Mie}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const n=je(e);n!=this.checked&&(this._checked=n,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const n=je(e);n!==this.disabled&&(this._disabled=n,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const n=e!=this._indeterminate;this._indeterminate=je(e),n&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_transitionCheckState(e){let n=this._currentCheckState,r=this._getAnimationTargetElement();if(n!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===n)return this._animationClasses.uncheckedToChecked;if(3==n)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===n?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===n?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===n?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}}return t.\u0275fac=function(e){da()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(st(Cie,5),st(kie,5),st(wo,5)),2&e){let r;ye(r=we())&&(n._inputElement=r.first),ye(r=we())&&(n._labelElement=r.first),ye(r=we())&&(n.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[pe]}),t})(),sP=(()=>{class t extends Iie{constructor(e,n,r,o,a,s){super("mat-mdc-checkbox-",e,n,r,o,a,s),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const n=new Tie;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(Gt),b(ze),fo("tabindex"),b(Ri,8),b(Sie,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(e,n){2&e&&(pa("id",n.id),ot("tabindex",null)("aria-label",null)("aria-labelledby",null),Qe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mdc-checkbox--disabled",n.disabled)("mat-mdc-checkbox-disabled",n.disabled)("mat-mdc-checkbox-checked",n.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[We([Eie]),pe],ngContentSelectors:Die,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(e,n){if(1&e&&(vi(),v(0,"div",0),X("click",function(o){return n._preventBubblingFromLabel(o)}),v(1,"div",1,2)(3,"div",3),X("click",function(){return n._onTouchTargetClick()}),y(),v(4,"input",4,5),X("blur",function(){return n._onBlur()})("click",function(){return n._onInputClick()})("change",function(o){return n._onInteractionEvent(o)}),y(),Se(6,"div",6),v(7,"div",7),Wa(),v(8,"svg",8),Se(9,"path",9),y(),Ll(),Se(10,"div",10),y(),Se(11,"div",11),y(),v(12,"label",12,13),tt(14),y()()),2&e){const r=Nt(2);Qe("mdc-form-field--align-end","before"==n.labelPosition),k(4),Qe("mdc-checkbox--selected",n.checked),T("checked",n.checked)("indeterminate",n.indeterminate)("disabled",n.disabled)("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex),ot("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby)("name",n.name)("value",n.value),k(7),T("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),k(1),T("for",n.inputId)}},dependencies:[wo],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})(),cP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})(),Oie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,Us,cP,xt,cP]}),t})();function Pie(t,i){if(1&t){const e=Je();v(0,"mat-checkbox",3),X("click",function(){return Me(e),Ae(q().optionClicked())}),E(1),y()}if(2&t){const e=i.$implicit;Wu("formControlName",e.display),k(1),It(" ",e.display," ")}}let Lie=(()=>{class t{constructor(e,n){this.terminologyService=e,this._formBuilder=n,this.selectionChange=new xe,this.checkboxes=this._formBuilder.group([]),this.present={display:"Known present (qualifier value)",system:"http://snomed.info/sct",code:"410515003"},this.absent={display:"Known absent (qualifier value)",system:"http://snomed.info/sct",code:"410516002"}}ngOnInit(){this.options=[{display:this.binding.title}],this.options?.forEach(e=>{this.checkboxes.addControl(e.display,this._formBuilder.control(!1))})}optionClicked(){let e=[];e.push({title:this.binding.title,code:this.binding.ecl,value:this.checkboxes.value[this.binding.title]?this.present:this.absent}),this.selectionChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Nr),b(PR))},t.\u0275cmp=Ve({type:t,selectors:[["app-checkbox-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:4,vars:3,consts:[[1,"check-group",3,"formGroup"],["class","check","labelPosition","before",3,"formControlName","click",4,"ngFor","ngForOf"],[1,"hint"],["labelPosition","before",1,"check",3,"formControlName","click"]],template:function(e,n){1&e&&(v(0,"form",0),H(1,Pie,2,2,"mat-checkbox",1),v(2,"span",2),E(3),y()()),2&e&&(T("formGroup",n.checkboxes),k(1),T("ngForOf",n.options),k(2),Xe(n.binding.note))},dependencies:[bo,rf,Co,Kh,Ws,af,sP],styles:["#hint[_ngcontent-%COMP%]{font-size:12px}.check-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:20px 0;align-items:flex-start}.check[_ngcontent-%COMP%]{margin:0}.hint[_ngcontent-%COMP%]{font-size:.8rem;color:#999;padding:0;margin:0 0 0 5px}"]}),t})(),Nie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new xe,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-integer-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","type","number","placeholder","Enter integer value...","pattern","^-?[0-9]\\d*$","title","Only integer values are allowed",3,"ngModel","ngModelChange"]],template:function(e,n){1&e&&(v(0,"mat-form-field",0)(1,"mat-label"),E(2),y(),v(3,"input",1),X("ngModelChange",function(o){return n.value=o})("ngModelChange",function(o){return n.onValueChange(o)}),y(),v(4,"mat-hint"),E(5),y()()),2&e&&(k(2),Xe(n.binding.title),k(1),T("ngModel",n.value),k(2),Xe(n.binding.note))},dependencies:[Da,ko,Yc,Kc,Ca,a0,Co,d0,Yo],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]}),t})(),Bie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new xe,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-decimal-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","type","number","placeholder","Enter decimal value...","pattern","^-?[0-9]*\\.?[0-9]+$","title","Only decimal values are allowed","step","any",3,"ngModel","ngModelChange"]],template:function(e,n){1&e&&(v(0,"mat-form-field",0)(1,"mat-label"),E(2),y(),v(3,"input",1),X("ngModelChange",function(o){return n.value=o})("ngModelChange",function(o){return n.onValueChange(o)}),y(),v(4,"mat-hint"),E(5),y()()),2&e&&(k(2),Xe(n.binding.title),k(1),T("ngModel",n.value),k(2),Xe(n.binding.note))},dependencies:[Da,ko,Yc,Kc,Ca,a0,Co,d0,Yo],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]}),t})();const Vie=["newPanel"];function Hie(t,i){if(1&t){const e=Je();v(0,"button",12),X("click",function(){Me(e);const r=q();return Ae(r.showRightContainer=!r.showRightContainer)}),E(1),y()}if(2&t){const e=q();k(1),It(" ",e.showRightContainer?"Close data panel":"Open data panel"," ")}}function Uie(t,i){1&t&&(v(0,"button",38),E(1," Download form "),y()),2&t&&(q(),T("matMenuTriggerFor",Nt(19)))}function zie(t,i){1&t&&(v(0,"mat-panel-description"),E(1," Click to add new binding "),y())}function $ie(t,i){if(1&t){const e=Je();v(0,"button",39),X("click",function(){let o;return Me(e),Ae(null==(o=q().newBindingForm.get("title"))?null:o.reset())}),v(1,"mat-icon"),E(2,"close"),y()()}}function jie(t,i){if(1&t&&(v(0,"mat-option",40),E(1),y()),2&t){const e=i.$implicit;T("value",e),k(1),It(" ",e," ")}}function Wie(t,i){if(1&t){const e=Je();v(0,"button",39),X("click",function(){let o;return Me(e),Ae(null==(o=q(2).newBindingForm.get("ecl"))?null:o.reset())}),v(1,"mat-icon"),E(2,"close"),y()()}}function Gie(t,i){if(1&t){const e=Je();v(0,"mat-form-field",17)(1,"mat-label"),E(2,"Answer options: ECL Expression"),y(),Se(3,"input",41),v(4,"a",42),X("click",function(){Me(e);const r=q();let o;return Ae(r.openEclBuilder(null==(o=r.newBindingForm.get("ecl"))?null:o.value,"ecl"))}),E(5,"ECL Builder"),y(),H(6,Wie,3,0,"button",19),v(7,"mat-error"),E(8),y()()}if(2&t){const e=q();let n;k(6),T("ngIf",null==(n=e.newBindingForm.get("ecl"))?null:n.value),k(2),Xe(e.getErrorMessage("ecl"))}}function qie(t,i){if(1&t&&(v(0,"mat-form-field",17),Se(1,"app-autocomplete-binding",43),v(2,"mat-error"),E(3),y()()),2&t){const e=q();k(1),T("binding",e.checkboxBinding),k(2),Xe(e.getErrorMessage("ecl"))}}function Xie(t,i){if(1&t){const e=Je();v(0,"button",39),X("click",function(){let o;return Me(e),Ae(null==(o=q(2).newBindingForm.get("note"))?null:o.reset())}),v(1,"mat-icon"),E(2,"close"),y()()}}function Qie(t,i){if(1&t&&(v(0,"mat-form-field",17)(1,"mat-label"),E(2,"Note"),y(),Se(3,"input",44),H(4,Xie,3,0,"button",19),v(5,"mat-error"),E(6),y()()),2&t){const e=q();let n;k(4),T("ngIf",null==(n=e.newBindingForm.get("note"))?null:n.value),k(2),Xe(e.getErrorMessage("note"))}}function Yie(t,i){if(1&t){const e=Je();v(0,"button",28),X("click",function(){return Me(e),Ae(q().addBinding())}),E(1,"Add binding"),y()}}function Kie(t,i){if(1&t){const e=Je();v(0,"button",28),X("click",function(){Me(e);const r=q();return r.addBinding(),Ae(r.clearOutput())}),E(1,"Update binding"),y()}}function Zie(t,i){if(1&t){const e=Je();v(0,"div",45)(1,"p",46),E(2),y(),v(3,"button",47),X("click",function(){return Me(e),Ae(q().titleEditMode=!0)}),v(4,"mat-icon"),E(5,"edit"),y()()()}if(2&t){const e=q();k(2),Xe(e.formTitle)}}const Jie=function(){return{standalone:!0}};function ene(t,i){if(1&t){const e=Je();v(0,"div",45)(1,"form",48)(2,"mat-form-field")(3,"mat-label"),E(4,"Title"),y(),v(5,"input",49),X("ngModelChange",function(r){return Me(e),Ae(q().formTitle=r)})("ngModelChange",function(){return Me(e),Ae(q().refreshFhirQuestionnaire())}),y(),v(6,"button",39),X("click",function(){return Me(e),Ae(q().formTitle="")}),v(7,"mat-icon"),E(8,"close"),y()()()(),v(9,"button",47),X("click",function(){return Me(e),Ae(q().titleEditMode=!1)}),v(10,"mat-icon"),E(11,"save"),y()()()}if(2&t){const e=q();k(5),T("ngModel",e.formTitle)("ngModelOptions",Ec(2,Jie))}}function tne(t,i){if(1&t){const e=Je();v(0,"app-autocomplete-binding",57),X("selectionChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function ine(t,i){if(1&t){const e=Je();v(0,"app-dropdown-binding",57),X("selectionChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function nne(t,i){if(1&t){const e=Je();v(0,"app-radios-binding",57),X("selectionChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function rne(t,i){if(1&t&&(v(0,"span",58),E(1),y()),2&t){const e=q().$implicit;k(1),Xe(e.title)}}function one(t,i){if(1&t){const e=Je();v(0,"app-textbox-binding",59),X("textChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function ane(t,i){if(1&t){const e=Je();v(0,"app-integer-binding",59),X("textChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function sne(t,i){if(1&t){const e=Je();v(0,"app-decimal-binding",59),X("textChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function cne(t,i){if(1&t){const e=Je();v(0,"app-checkbox-binding",57),X("selectionChange",function(r){Me(e);const o=q().$implicit;return Ae(q().optionSelected(o.title,o.code,r))}),y()}2&t&&T("binding",q().$implicit)}function lne(t,i){if(1&t&&(v(0,"button",60)(1,"mat-icon"),E(2,"info"),y()()),2&t){const e=q().$implicit;T("matMenuTriggerFor",Nt(14))("disabled","Text box"==e.type)}}function dne(t,i){if(1&t){const e=Je();v(0,"div",50)(1,"div",51)(2,"mat-icon",52),E(3,"drag_indicator"),y(),H(4,tne,1,1,"app-autocomplete-binding",53),H(5,ine,1,1,"app-dropdown-binding",53),H(6,nne,1,1,"app-radios-binding",53),H(7,rne,2,1,"span",54),H(8,one,1,1,"app-textbox-binding",55),H(9,ane,1,1,"app-integer-binding",55),H(10,sne,1,1,"app-decimal-binding",55),H(11,cne,1,1,"app-checkbox-binding",53),H(12,lne,3,2,"button",56),v(13,"mat-menu",null,2)(15,"span",3),X("click",function(r){return r.stopPropagation()}),v(16,"h4"),E(17,"Terminology binding"),y(),v(18,"pre"),E(19),y()()(),v(20,"button",47),X("click",function(){const o=Me(e).index;return Ae(q().bindings.splice(o,1))}),v(21,"mat-icon"),E(22,"delete"),y()(),v(23,"button",47),X("click",function(){const o=Me(e).index;return Ae(q().edit(o))}),v(24,"mat-icon"),E(25,"edit"),y()()()()}if(2&t){const e=i.$implicit;k(4),T("ngIf","Autocomplete"==e.type),k(1),T("ngIf","Select (Single)"==e.type||"Select (Multiple)"==e.type),k(1),T("ngIf","Options"==e.type),k(1),T("ngIf","Section header"==e.type),k(1),T("ngIf","Text box"==e.type),k(1),T("ngIf","Integer"==e.type),k(1),T("ngIf","Decimal"==e.type),k(1),T("ngIf","Checkbox"==e.type),k(1),T("ngIf","Section header"!=e.type),k(3),T("disableRipple",!0),k(4),Xe(e.ecl)}}function une(t,i){if(1&t){const e=Je();v(0,"div",64)(1,"button",65),X("click",function(){Me(e);const r=q(2);return Ae(r.saveOutput(r.outputStr))}),Se(2,"mat-icon",66),y(),v(3,"button",67),X("click",function(){Me(e);const r=q(2);return Ae(r.copyOutputToClipboard(r.outputStr))}),Se(4,"mat-icon",68),y()()}}const lP=function(){return{}};function hne(t,i){if(1&t&&(v(0,"div",61),H(1,une,5,0,"div",62),v(2,"textarea",63),E(3," "),y()()),2&t){const e=q();k(1),T("ngIf",e.showRightContainer),k(1),T("options",Ec(4,lP))("lang","json")("innerHTML",e.responseStr,qm)}}function fne(t,i){if(1&t){const e=Je();v(0,"div",64)(1,"button",65),X("click",function(){Me(e);const r=q(2);return Ae(r.saveOutput(r.fhirQuestionnaireStr))}),Se(2,"mat-icon",66),y(),v(3,"button",67),X("click",function(){Me(e);const r=q(2);return Ae(r.copyOutputToClipboard(r.fhirQuestionnaireStr))}),Se(4,"mat-icon",68),y()()}}function mne(t,i){if(1&t&&(v(0,"div",61),H(1,fne,5,0,"div",62),v(2,"textarea",63),E(3," "),y()()),2&t){const e=q();k(1),T("ngIf",e.showRightContainer),k(1),T("options",Ec(4,lP))("lang","json")("innerHTML",e.fhirQuestionnaireStr,qm)}}let pne=(()=>{class t{constructor(e,n,r){this.terminologyService=e,this.clipboard=n,this.dialog=r,this.formTitle="My new form",this.titleEditMode=!1,this.bindings=[],this.output={},this.outputStr="{}",this.response={},this.responseStr="{}",this.fhirQuestionnaire={},this.fhirQuestionnaireStr="{}",this.observableBinding={title:"Question code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)|",value:""},this.codeBinding={title:"Question code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)| OR << 404684003 |Clinical finding (finding)| OR << 71388002 |Procedure (procedure)|",value:""},this.checkboxBinding={title:"Checkbox code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)| OR << 404684003 |Clinical finding (finding)| OR << 71388002 |Procedure (procedure)|",value:""},this.example1={title:"Appendicitis data entry form (example)",bindings:[{title:"Diagnosis (type of appendicitis)",type:"Autocomplete",ecl:"<< 74400008 |Appendicitis|",value:"",note:"An autocomplete field to select between all descendants of appendicitis."},{title:"Clinical note",type:"Text box",ecl:"74400008 |Appendicitis|",value:"",note:"A text box for entering free text clinical information."},{title:"Appendicitis type",type:"Select (Single)",ecl:"<< 196781001 |Acute appendicitis with peritonitis (disorder)|",value:"",note:"A single selection dropdown field for a shorter selection of the type of appendicitis."},{title:"Appendicitis type (M)",type:"Select (Multiple)",ecl:"<< 196781001 |Acute appendicitis with peritonitis (disorder)|",value:"",note:"A multiple selection dropdown field for a shorter selection of the type of appendicitis."},{title:"Appendicectomy type",type:"Options",ecl:"<< 174036004 |Emergency appendectomy (procedure)|",value:"",note:"A radio buttons selector for the type of appendicectomy procedure."}]},this.newBindingForm=new Qd({title:new Br("",[qd.required,qd.maxLength(50)]),code:new Br("",[]),type:new Br("",[qd.required]),ecl:new Br("",[]),value:new Br("",[]),note:new Br("",[qd.maxLength(500)])}),this.indexInEdit=-1,this.panelOpenState=!1,this.maxSelectCount=50,this.maxOptionsCount=10,this.controlTypes=["Autocomplete","Select (Single)","Select (Multiple)","Options","Section header","Text box","Integer","Decimal","Checkbox"].sort((o,a)=>o.localeCompare(a)),this.showRightContainer=!1}get stateName(){return this.showRightContainer?"open":"closed"}addBinding(){var e=this;return Oi(function*(){if(e.newBindingForm.markAllAsTouched(),e.newBindingForm.invalid)return;const{title:n,code:r,type:o,ecl:a,value:s,note:c}=e.newBindingForm.controls;let l={title:n.value,code:r.value,type:o.value,ecl:a.value,value:s.value,note:c.value},d=!1;a.value?typeof l.type?.indexOf("Select")<"u"&&l.type?.indexOf("Select")>-1?(yield e.getEclPreview(a.value)).expansion.contains.length>e.maxSelectCount&&(d=!0,a.setErrors({selectTooManyResults:!0})):typeof l.type?.indexOf("Options")<"u"&&l.type?.indexOf("Options")>-1&&(yield e.getEclPreview(a.value)).expansion.contains.length>e.maxOptionsCount&&(d=!0,a.setErrors({optionsTooManyResults:!0})):"Section header"!=l.type&&"Text box"!=l.type&&"Integer"!=l.type&&"Decimal"!=l.type&&(d=!0,a.setErrors({required:!0})),!d&&(e.indexInEdit>-1?e.bindings[e.indexInEdit]=l:e.bindings.push(l),e.newBindingForm.reset(),e.newPanel.close(),e.indexInEdit=-1,setTimeout(()=>{e.refreshFhirQuestionnaire(),e.refreshResponse()},100))})()}refreshFhirQuestionnaire(){console.log("refreshFhirQuestionnaire"),this.fhirQuestionnaire={resourceType:"Questionnaire",title:this.formTitle,status:"draft",item:[]},this.bindings.forEach((e,n)=>{const r=this.createItemForBinding(e,n);r&&this.fhirQuestionnaire.item.push(r)}),this.fhirQuestionnaireStr=JSON.stringify(this.fhirQuestionnaire,null,2)}createItemForBinding(e,n){const r=this.initializeBaseItem(e,n);return["Select (Single)","Select (Multiple)","Options","Autocomplete"].includes(e.type)&&(r.extension=this.getExtensionForSelectableTypes(),r.answerValueSet=this.getAnswerValueSet(e)),"Autocomplete"===e.type&&r.extension.push(this.getAutocompleteExtension()),"Select (Multiple)"===e.type&&(r.repeats=!0),r}initializeBaseItem(e,n){const r={linkId:n+1,text:e.title,type:this.getQuestionnaireItemType(e.type)};return e.code&&(r.code=[{system:"http://snomed.info/sct",code:e.code.code,display:e.code.display}]),r}getQuestionnaireItemType(e){switch(e){case"Section header":return"display";case"Select (Single)":case"Select (Multiple)":case"Options":case"Autocomplete":return"choice";case"Text box":return"text";case"Integer":return"integer";case"Decimal":return"decimal";default:return console.warn(`Unhandled binding type: ${e}`),null}}getExtensionForSelectableTypes(){return[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"}]}getAutocompleteExtension(){return{url:"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",valueCodeableConcept:{coding:[{system:"http://hl7.org/fhir/questionnaire-item-control",code:"autocomplete",display:"Auto-complete"}]}}}getAnswerValueSet(e){return`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(e.ecl)}`}getEclPreview(e){var n=this;return Oi(function*(){return qo((yield n.terminologyService.expandValueSet(e,"")).pipe(Ke(o=>o)))})()}edit(e){this.indexInEdit=e;const n=this.bindings[e];this.newBindingForm.setValue({title:n.title,code:n.code,type:n.type,ecl:n.ecl,value:n.value,note:n.note}),this.newPanel.open()}onDrop(e){$1(this.bindings,e.previousIndex,e.currentIndex)}getErrors(e){const n=this.newBindingForm.get(e);return n?n.errors:null}getErrorMessage(e){const n=this.getErrors(e);if(n){if(n.required)return"This field is required";if(n.maxlength)return`This field must be less than ${n.maxlength.requiredLength} characters`;if(n.selectTooManyResults)return`Too many results (Max = ${this.maxSelectCount})`;if(n.optionsTooManyResults)return`Too many results (Max = ${this.maxOptionsCount})`}return null}refreshResponse(){console.log("refreshResponse"),this.response={};for(let e of this.bindings)this.response[e.title]={},e.code&&(this.response[e.title].code=e.code);for(let[e,n]of Object.entries(this.output))this.output[e].code&&(this.response[e].code=this.output[e].code),this.output[e].value&&(this.response[e].value=this.output[e].value);this.responseStr=JSON.stringify(this.response,null,2)}optionSelected(e,n,r){this.output[e]={code:n,value:r},n||delete this.output[e].code,this.outputStr=JSON.stringify(this.output,null,2),this.refreshResponse()}loadExample1(){this.formTitle=this.example1.title,this.bindings=this.example1.bindings,this.refreshFhirQuestionnaire(),this.clearOutput(),this.refreshResponse()}cancelEdit(){this.newBindingForm.reset(),this.newPanel.close(),this.indexInEdit=-1}clear(){this.bindings=[],this.clearOutput(),this.newBindingForm.reset(),this.formTitle="My new form",this.showRightContainer=!1}clearOutput(){this.output={},this.outputStr="{}";const e=JSON.parse(JSON.stringify(this.bindings));this.bindings=[],this.bindings=e}saveForm(){var e=new Blob([JSON.stringify({title:this.formTitle,bindings:this.bindings},null,2)],{type:"text/plain;charset=utf-8"});(0,Zc.saveAs)(e,`${this.formTitle}.json`)}saveOutput(e){var n=new Blob([e],{type:"text/plain;charset=utf-8"});(0,Zc.saveAs)(n,`${this.formTitle}-fhir.json`)}copyOutputToClipboard(e){this.clipboard.copy(e)}uploadFile(e){if(1!==e.target.files.length)console.error("No file selected");else{const n=new FileReader;n.onloadend=r=>{if(n.result){const o=JSON.parse(n.result?.toString());Array.isArray(o)?(this.bindings=o,this.formTitle="My new form"):(this.bindings=[],this.bindings=o.bindings,this.formTitle=o.title),this.clearOutput(),this.refreshResponse(),this.refreshFhirQuestionnaire()}},n.readAsText(e.target.files[0])}}openEclBuilder(e,n){this.dialog.open($te,{data:{ecl:e},width:"80%",height:"80%"}).afterClosed().subscribe(o=>{if(o){const a=this.newBindingForm.get(n);a&&a.setValue(o.ecl)}})}}return t.\u0275fac=function(e){return new(e||t)(b(Nr),b(aO),b(Kd))},t.\u0275cmp=Ve({type:t,selectors:[["app-bindings-sandbox"]],viewQuery:function(e,n){if(1&e&&st(Vie,5),2&e){let r;ye(r=we())&&(n.newPanel=r.first)}},decls:79,vars:24,consts:[["id","main-panel"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",3,"disableRipple","click"],[1,"action-button"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["hidden","","type","file","id","file",3,"change"],["fileInput",""],["mat-flat-button","","color","accent",3,"matMenuTriggerFor",4,"ngIf"],[1,"wide-menu"],["demosMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","accent",3,"click"],[1,"editPanel",3,"opened","closed"],["newPanel",""],[4,"ngIf"],[1,"row",3,"formGroup"],[1,"input-field"],["matInput","","type","text","formControlName","title","placeholder","Enter title..."],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"input-field","autocomplete-field"],["formControlName","code",1,"grow",3,"binding"],["formControlName","type"],[3,"value",4,"ngFor","ngForOf"],["class","input-field",4,"ngIf"],[1,"row"],[1,"grow"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["mat-flat-button","","color","primary",3,"click"],["class","compact-row-container",4,"ngIf"],[1,"row-container"],[1,"row-container-item"],["cdkDropList","",3,"cdkDropListDropped"],["class","output-panel","cdkDrag","",4,"ngFor","ngForOf"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Data collected from form"],["class","output",4,"ngIf"],["label","FHIR Questionnaire"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"value"],["matInput","","type","text","formControlName","ecl","placeholder","Enter ECL..."],["href","javascript:void(0)",1,"top-right-link",3,"click"],["formControlName","ecl",1,"grow",3,"binding"],["matInput","","type","text","formControlName","note","placeholder","Enter a description..."],[1,"compact-row-container"],[1,"title"],["mat-icon-button","","color","primary",1,"tool",3,"click"],[1,"row","form-title"],["matInput","","type","text","placeholder","Enter title...",3,"ngModel","ngModelOptions","ngModelChange"],["cdkDrag","",1,"output-panel"],[1,"row","control"],["cdkDragHandle","",1,"tool","drag-handle"],["class","grow",3,"binding","selectionChange",4,"ngIf"],["class","title grow",4,"ngIf"],["class","grow",3,"binding","textChange",4,"ngIf"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor","disabled",4,"ngIf"],[1,"grow",3,"binding","selectionChange"],[1,"title","grow"],[1,"grow",3,"binding","textChange"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor","disabled"],[1,"output"],["id","save",4,"ngIf"],["highlight-js","","id","output","wrap","soft",3,"options","lang","innerHTML"],["id","save"],["mat-icon-button","","matTooltip","Download",3,"click"],["fontIcon","cloud_download"],["mat-icon-button","","matTooltip","Copy",3,"click"],["fontIcon","content_copy"]],template:function(e,n){if(1&e){const r=Je();v(0,"div",0)(1,"h3"),E(2,"Terminology Bindings Sandbox "),v(3,"button",1)(4,"mat-icon"),E(5,"info"),y()(),v(6,"mat-menu",null,2)(8,"span",3),X("click",function(a){return a.stopPropagation()}),v(9,"h4"),E(10,"Terminology Bindings Sandbox"),y(),v(11,"p"),E(12,"This is a sandbox for creating terminology bindings, designed to support education activities."),y()()()(),v(13,"div",4),H(14,Hie,2,1,"button",5),v(15,"input",6,7),X("change",function(a){return n.uploadFile(a)}),y(),H(17,Uie,2,1,"button",8),v(18,"mat-menu",9,10)(20,"button",11),X("click",function(){return n.saveForm()}),E(21,"Download"),y(),v(22,"button",11),X("click",function(){return n.saveOutput(n.fhirQuestionnaireStr)}),E(23,"Download as FHIR Questionnaire"),y()(),v(24,"button",12),X("click",function(){return Me(r),Ae(Nt(16).click())}),E(25,"Upload form"),y(),v(26,"button",12),X("click",function(){return n.loadExample1()}),E(27,"Example"),y(),v(28,"button",12),X("click",function(){return n.clear()}),E(29,"Clear"),y()(),v(30,"mat-expansion-panel",13,14),X("opened",function(){return n.panelOpenState=!0})("closed",function(){return n.panelOpenState=!1}),v(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"h4"),E(35,"New binding:"),y()(),H(36,zie,2,0,"mat-panel-description",15),y(),v(37,"div")(38,"form",16)(39,"mat-form-field",17)(40,"mat-label"),E(41,"Question text"),y(),Se(42,"input",18),H(43,$ie,3,0,"button",19),v(44,"mat-error"),E(45),y()(),v(46,"mat-form-field",20),Se(47,"app-autocomplete-binding",21),v(48,"mat-error"),E(49),y()(),v(50,"mat-form-field",17)(51,"mat-label"),E(52,"Answer Type"),y(),v(53,"mat-select",22),H(54,jie,2,2,"mat-option",23),y(),v(55,"mat-error"),E(56),y()(),H(57,Gie,9,2,"mat-form-field",24),H(58,qie,4,2,"mat-form-field",24),H(59,Qie,7,2,"mat-form-field",24),y(),Se(60,"br"),v(61,"div",25),Se(62,"span",26),H(63,Yie,2,0,"button",27),H(64,Kie,2,0,"button",27),v(65,"button",28),X("click",function(){return n.cancelEdit()}),E(66,"Cancel"),y()()()(),H(67,Zie,6,1,"div",29),H(68,ene,12,3,"div",29),v(69,"div",30)(70,"div",31)(71,"div",32),X("cdkDropListDropped",function(a){return n.onDrop(a)}),H(72,dne,26,11,"div",33),y()(),v(73,"div",31)(74,"mat-tab-group",34)(75,"mat-tab",35),H(76,hne,4,5,"div",36),y(),v(77,"mat-tab",37),H(78,mne,4,5,"div",36),y()()()()()}if(2&e){const r=Nt(7);let o;k(3),T("matMenuTriggerFor",r),k(5),T("disableRipple",!0),k(6),T("ngIf",n.bindings.length),k(3),T("ngIf",n.bindings.length),k(19),T("ngIf",!n.panelOpenState),k(2),T("formGroup",n.newBindingForm),k(5),T("ngIf",null==(o=n.newBindingForm.get("title"))?null:o.value),k(2),Xe(n.getErrorMessage("title")),k(2),T("binding",n.codeBinding),k(2),Xe(n.getErrorMessage("code")),k(5),T("ngForOf",n.controlTypes),k(2),Xe(n.getErrorMessage("type")),k(1),T("ngIf","Section header"!=n.newBindingForm.controls.type.value&&"Text box"!=n.newBindingForm.controls.type.value&&"Checkbox"!=n.newBindingForm.controls.type.value&&"Integer"!=n.newBindingForm.controls.type.value&&"Decimal"!=n.newBindingForm.controls.type.value),k(1),T("ngIf","Checkbox"==n.newBindingForm.controls.type.value),k(1),T("ngIf","Section header"!=n.newBindingForm.controls.type.value),k(4),T("ngIf",-1==n.indexInEdit),k(1),T("ngIf",n.indexInEdit>-1),k(3),T("ngIf",!n.titleEditMode),k(1),T("ngIf",n.titleEditMode),k(2),T("@growShrink",n.stateName),k(2),T("ngForOf",n.bindings),k(1),T("@openClose",n.stateName),k(3),T("ngIf",n.bindings.length>0),k(2),T("ngIf",n.bindings.length>0)}},dependencies:[bo,fn,N1,q1,Q1,OO,Lr,os,Qo,jc,wa,Wc,Da,ko,NR,VR,zs,Kc,rf,Ca,Co,Kh,Ws,af,g0,sf,cf,Yo,Xc,lf,tP,rie,aie,oie,p0,lie,yie,wie,Lie,Nie,Bie],styles:["#main-panel[_ngcontent-%COMP%]{padding:10px}h3[_ngcontent-%COMP%]{margin-top:0}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center;gap:10px}.grow[_ngcontent-%COMP%]{flex-grow:4}.input-field[_ngcontent-%COMP%]{width:calc(50% - 5px)}mat-hint[_ngcontent-%COMP%], mat-error[_ngcontent-%COMP%]{font-size:12px}.editPanel[_ngcontent-%COMP%]{width:calc(50% - 5px);margin:5px 5px 25px;padding:10px;border:1px solid #cccccc00;border-radius:5px;background-color:#a0c8e5}.control[_ngcontent-%COMP%]{margin-bottom:30px}.output-panel[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%] .tool[_ngcontent-%COMP%]{opacity:0;transition:opacity .5s}.row[_ngcontent-%COMP%]:hover .tool[_ngcontent-%COMP%]{opacity:1}.drag-handle[_ngcontent-%COMP%]{cursor:move;color:#616161}.title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;margin-bottom:10px;margin-left:2rem}.action-button[_ngcontent-%COMP%]{position:absolute;right:0;margin-right:20px}.action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:5px}.row-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.compact-row-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:1rem}.row-container-item[_ngcontent-%COMP%]{width:100%;padding:10px}.output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative;margin:2rem}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}.top-right-link[_ngcontent-%COMP%]{position:absolute;top:5px;right:0;font-size:smaller}.form-title[_ngcontent-%COMP%]{margin-left:1rem}.mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding:0!important}"],data:{animation:[vn("openClose",[ii("open",rt({opacity:1,width:"50%"})),ii("closed",rt({opacity:0,width:"0"})),ai("open <=> closed",[fi("0.5s")])]),vn("growShrink",[ii("open",rt({width:"50%"})),ii("closed",rt({width:"100%"})),ai("open <=> closed",[fi("0.5s")])])]}}),t})(),gne=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ve({type:t,selectors:[["app-prescription-main"]],decls:2,vars:0,template:function(e,n){1&e&&(v(0,"p"),E(1,"prescription-main works!, no?"),y())}}),t})();const _ne=["mat-sort-header",""];function bne(t,i){if(1&t){const e=Je();v(0,"div",3),X("@arrowPosition.start",function(){return Me(e),Ae(q()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return Me(e),Ae(q()._disableViewStateAnimation=!1)}),Se(1,"div",4),v(2,"div",5),Se(3,"div",6)(4,"div",7)(5,"div",8),y()()}if(2&t){const e=q();T("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),k(2),T("@indicator",e._getArrowDirectionState()),k(1),T("@leftPointer",e._getArrowDirectionState()),k(1),T("@rightPointer",e._getArrowDirectionState())}}const vne=["*"],dP=new ae("MAT_SORT_DEFAULT_OPTIONS"),xne=Yq(rs(class{}));let Jc=(()=>{class t extends xne{get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(e)}constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new ke,this.start="asc",this._direction="",this.sortChange=new xe}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let r=function yne(t,i){let e=["asc","desc"];return"desc"==t&&e.reverse(),i||e.push(""),e}(e.start||this.start,e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(b(dP,8))},t.\u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[pe,Ei]}),t})();const qs=qq.ENTERING+" "+Gq.STANDARD_CURVE,Zd={indicator:vn("indicator",[ii("active-asc, asc",rt({transform:"translateY(0px)"})),ii("active-desc, desc",rt({transform:"translateY(10px)"})),ai("active-asc <=> active-desc",fi(qs))]),leftPointer:vn("leftPointer",[ii("active-asc, asc",rt({transform:"rotate(-45deg)"})),ii("active-desc, desc",rt({transform:"rotate(45deg)"})),ai("active-asc <=> active-desc",fi(qs))]),rightPointer:vn("rightPointer",[ii("active-asc, asc",rt({transform:"rotate(45deg)"})),ii("active-desc, desc",rt({transform:"rotate(-45deg)"})),ai("active-asc <=> active-desc",fi(qs))]),arrowOpacity:vn("arrowOpacity",[ii("desc-to-active, asc-to-active, active",rt({opacity:1})),ii("desc-to-hint, asc-to-hint, hint",rt({opacity:.54})),ii("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",rt({opacity:0})),ai("* => asc, * => desc, * => active, * => hint, * => void",fi("0ms")),ai("* <=> *",fi(qs))]),arrowPosition:vn("arrowPosition",[ai("* => desc-to-hint, * => desc-to-active",fi(qs,Sg([rt({transform:"translateY(-25%)"}),rt({transform:"translateY(0)"})]))),ai("* => hint-to-desc, * => active-to-desc",fi(qs,Sg([rt({transform:"translateY(0)"}),rt({transform:"translateY(25%)"})]))),ai("* => asc-to-hint, * => asc-to-active",fi(qs,Sg([rt({transform:"translateY(25%)"}),rt({transform:"translateY(0)"})]))),ai("* => hint-to-asc, * => active-to-asc",fi(qs,Sg([rt({transform:"translateY(0)"}),rt({transform:"translateY(-25%)"})]))),ii("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",rt({transform:"translateY(0)"})),ii("hint-to-desc, active-to-desc, desc",rt({transform:"translateY(-25%)"})),ii("hint-to-asc, active-to-asc, asc",rt({transform:"translateY(25%)"}))]),allowChildren:vn("allowChildren",[ai("* <=> *",[Tg("@*",Eg(),{optional:!0})])])};let S0=(()=>{class t{constructor(){this.changes=new ke}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Cne={provide:S0,deps:[[new sa,new vc,S0]],useFactory:function wne(t){return t||new S0}},kne=rs(class{});let uP=(()=>{class t extends kne{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(e)}constructor(e,n,r,o,a,s,c,l){super(),this._intl=e,this._changeDetectorRef=n,this._sort=r,this._columnDef=o,this._focusMonitor=a,this._elementRef=s,this._ariaDescriber=c,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",l?.arrowPosition&&(this.arrowPosition=l?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const n=!!e;n!==this._showIndicatorHint&&(this._setIndicatorHintVisible(n),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=Vi(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(b(S0),b(Gt),b(Jc,8),b("MAT_SORT_HEADER_COLUMN_DEF",8),b(yo),b(Fe),b(SI,8),b(dP,8))},t.\u0275cmp=Ve({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,n){1&e&&X("click",function(){return n._handleClick()})("keydown",function(o){return n._handleKeydown(o)})("mouseenter",function(){return n._setIndicatorHintVisible(!0)})("mouseleave",function(){return n._setIndicatorHintVisible(!1)}),2&e&&(ot("aria-sort",n._getAriaSortAttribute()),Qe("mat-sort-header-disabled",n._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[pe],attrs:_ne,ngContentSelectors:vne,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,n){1&e&&(vi(),v(0,"div",0)(1,"div",1),tt(2),y(),H(3,bne,6,6,"div",2),y()),2&e&&(Qe("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"===n.arrowPosition),ot("tabindex",n._isDisabled()?null:0)("role",n._isDisabled()?null:"button"),k(3),T("ngIf",n._renderArrow()))},dependencies:[fn],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Zd.indicator,Zd.leftPointer,Zd.rightPointer,Zd.arrowOpacity,Zd.arrowPosition,Zd.allowChildren]},changeDetection:0}),t})(),Dne=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[Cne],imports:[nr,xt]}),t})(),Sne=(()=>{class t{saveItem(e,n){localStorage.setItem(e,n)}getItem(e){return localStorage.getItem(e)}removeItem(e){localStorage.removeItem(e)}isLocalStorageSupported(){try{const e="__test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mf=(()=>{class t{constructor(e,n){this.http=e,this.storageService=n,this.baseUrlSubject=new Vn("https://hapi.fhir.org/baseR4"),this.baseUrl$=this.baseUrlSubject.asObservable(),this.userTagSubject=new Vn(""),this.userTag$=this.userTagSubject.asObservable(),this.initialize()}initialize(){if(this.storageService.isLocalStorageSupported()){const e=this.storageService.getItem("baseUrl");e&&this.baseUrlSubject.next(e);const n=this.storageService.getItem("userTag");n&&this.userTagSubject.next(n)}}setBaseUrl(e){this.baseUrlSubject.next(e),this.storageService.saveItem("baseUrl",e)}getBaseUrl(){return this.baseUrlSubject.getValue()}setUserTag(e){this.userTagSubject.next(e),this.storageService.saveItem("userTag",e)}getUserTag(){return this.userTagSubject.getValue()}postQuestionnaire(e){return this.http.post(`${this.baseUrlSubject.value}/Questionnaire`,e)}getQuestionnairesByTag(e){return this.http.get(`${this.baseUrlSubject.value}/Questionnaire?_tag=${e}`)}tagQuestionnaire(e,n){return this.http.post(`${this.baseUrlSubject.value}/Questionnaire/${e}/$meta-add`,{resourceType:"Parameters",parameter:[{name:"meta",valueMeta:{tag:[{system:"http://snomed.org/tags",code:n}]}}]})}deleteQuestionnaire(e){return this.http.delete(`${this.baseUrlSubject.value}/Questionnaire/${e}`)}updateOrCreateQuestionnaire(e,n){return e.id?this.http.put(`${this.baseUrlSubject.value}/Questionnaire?_id=${e.id}&_tag=${n}`,e).pipe(pn(o=>404===o.status?this.postQuestionnaire(e):Rc(o))):this.postQuestionnaire(e)}}return t.\u0275fac=function(e){return new(e||t)(G(Ns),G(Sne))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ene(t,i){if(1&t&&(v(0,"mat-option",15),E(1),y()),2&t){const e=i.$implicit;T("value",e),k(1),It(" ",e.title," ")}}function Tne(t,i){1&t&&Se(0,"mat-spinner",16)}function Mne(t,i){if(1&t){const e=Je();v(0,"div",17)(1,"span",18),E(2,"\u2261"),y(),E(3),v(4,"button",19),X("click",function(){const o=Me(e).index;return Ae(q().deleteQuestionnaire(o))}),v(5,"mat-icon"),E(6,"delete"),y()()()}if(2&t){const e=i.$implicit;k(3),It(" ",e.title," ")}}let hP=(()=>{class t{constructor(e,n,r,o){this.fb=e,this.fhirService=n,this.data=r,this.dialogRef=o,this.allQuestionnaires=[],this.availableQuestionnaires=[],this.addedQuestionnaires=[],this.userTag="",this.loading=!1}ngOnInit(){this.questionnaireForm=this.fb.group({selectedQuestionnaire:[{value:"",disabled:!0}],assignedName:[{value:"",disabled:!0}]}),this.data&&(this.addedQuestionnaires=this.data.questionnaires,this.questionnaireForm.get("assignedName")?.setValue(this.data.title)),this.questionnaireForm.get("selectedQuestionnaire"),this.userTag=this.fhirService.getUserTag(),this.loadAvailableQuestionnaires()}updateAvailableQuestionnaires(){this.availableQuestionnaires=this.addedQuestionnaires?this.allQuestionnaires.filter(e=>!this.addedQuestionnaires.some(n=>n.id===e.id)):this.allQuestionnaires,this.availableQuestionnaires=this.availableQuestionnaires.filter(e=>!e.extension||!e.extension.some(n=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===n.url&&"assemble-root"===n.valueCode))}loadAvailableQuestionnaires(){this.loading=!0,this.fhirService.getQuestionnairesByTag(this.userTag).subscribe(e=>{this.allQuestionnaires=e.entry.map(n=>n.resource),this.allQuestionnaires.sort((n,r)=>n.title.localeCompare(r.title)),this.updateAvailableQuestionnaires(),this.loading=!1,this.questionnaireForm?.get("selectedQuestionnaire")?.enable(),this.questionnaireForm?.get("assignedName")?.enable()})}addQuestionnaire(){const e=this.questionnaireForm.value;e.selectedQuestionnaire&&(this.addedQuestionnaires.push({...e.selectedQuestionnaire,assignedName:e.assignedName}),this.questionnaireForm.get("selectedQuestionnaire")?.reset(),this.updateAvailableQuestionnaires())}drop(e){$1(this.addedQuestionnaires,e.previousIndex,e.currentIndex)}deleteQuestionnaire(e){e>-1&&(this.addedQuestionnaires.splice(e,1),this.updateAvailableQuestionnaires())}isSaveDisabled(){return!this.questionnaireForm.get("assignedName")?.value||!this.addedQuestionnaires.length}closeModal(){this.dialogRef.close({title:this.questionnaireForm.get("assignedName")?.value,questionnaires:this.addedQuestionnaires})}}return t.\u0275fac=function(e){return new(e||t)(b(PR),b(mf),b(C0),b(Gs))},t.\u0275cmp=Ve({type:t,selectors:[["app-create-root-module"]],decls:26,vars:6,consts:[[1,"form-layout",3,"formGroup"],[1,"form-row"],[1,"full-width"],["matInput","","formControlName","assignedName"],[1,"half-width"],["formControlName","selectedQuestionnaire"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",1,"add-button",3,"disabled","click"],["diameter","35","class","loading-spinner",4,"ngIf"],[1,"questionnaire-list"],[1,"list",3,"cdkDropListDropped"],["cdkDrag","","class","cdk-drag",4,"ngFor","ngForOf"],[1,"button-container"],["mat-flat-button","","color","primary","mat-dialog-close",""],["mat-flat-button","","color","accent",3,"disabled","click"],[3,"value"],["diameter","35",1,"loading-spinner"],["cdkDrag","",1,"cdk-drag"],[1,"drag-handle"],["mat-icon-button","","aria-label","Delete questionnaire",3,"click"]],template:function(e,n){1&e&&(v(0,"mat-dialog-content")(1,"h2"),E(2,"Create a modular Questionnaire"),y(),v(3,"form",0)(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),E(7,"Assign Name"),y(),Se(8,"input",3),y()(),v(9,"div",1)(10,"mat-form-field",4)(11,"mat-label"),E(12,"Select Child Questionnaire"),y(),v(13,"mat-select",5),H(14,Ene,2,2,"mat-option",6),y()(),v(15,"button",7),X("click",function(){return n.addQuestionnaire()}),E(16,"Add questionnaire"),y(),H(17,Tne,1,0,"mat-spinner",8),y()(),v(18,"div",9)(19,"cdk-drop-list",10),X("cdkDropListDropped",function(o){return n.drop(o)}),H(20,Mne,7,1,"div",11),y()()(),v(21,"mat-dialog-actions",12)(22,"button",13),E(23,"Cancel"),y(),v(24,"button",14),X("click",function(){return n.closeModal()}),E(25,"Save"),y()()),2&e&&(k(3),T("formGroup",n.questionnaireForm),k(11),T("ngForOf",n.availableQuestionnaires),k(1),T("disabled",n.loading),k(2),T("ngIf",n.loading),k(3),T("ngForOf",n.addedQuestionnaires),k(4),T("disabled",n.isSaveDisabled()||n.loading))},dependencies:[bo,fn,q1,Q1,Lr,os,Qo,Da,ko,zs,Bd,Kc,rf,Ca,Co,Kh,Ws,af,cf,ff,k0,D0],styles:[".questionnaire-list[_ngcontent-%COMP%]{width:100%;max-height:400px;overflow:auto;border:1px solid #ccc;border-radius:4px;background-color:#f9f9f9;padding:10px}.list[_ngcontent-%COMP%] .cdk-drag[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#fff;margin-bottom:10px;padding:10px;display:flex;align-items:center;justify-content:left;box-shadow:0 2px 4px #0000001a}.drag-handle[_ngcontent-%COMP%]{cursor:move;margin-right:15px;font-size:20px;color:#666}.cdk-drag-preview[_ngcontent-%COMP%]{background-color:#e0e0e0}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.form-layout[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:15px}.form-layout[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-layout[_ngcontent-%COMP%] .half-width[_ngcontent-%COMP%]{width:50%;margin-right:15px}"]}),t})(),fP=(()=>{class t{constructor(e,n){this.http=e,this.fhirService=n}generateRootQuestionnaire(e,n){var r=this;return Oi(function*(){try{let a=yield qo(r.http.get("assets/questionnaires/root-questionnaire-template.json"));a.title=e;let s=0,c=r.fhirService.getBaseUrl();return r.fhirService.getUserTag(),n.forEach(d=>{s++,d.url=c+"/Questionnaire/"+d.id,a.item.push({linkId:s.toString(),text:d.title,type:"group",required:!1,item:[{extension:[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire",valueCanonical:d.url}],linkId:s.toString()+".1",text:"Unable to resolve sub-questionnaire",type:"display"}]})}),a}catch(o){throw console.error("Error generating root questionnaire:",o),o}})()}getRootQuestionnaireData(e){var n=this;return Oi(function*(){if(!e||!Array.isArray(e.item))throw new Error("Invalid root questionnaire");const r=e.title,o=e.item.filter(s=>"group"===s.type&&s.item&&Array.isArray(s.item)).flatMap(s=>s.item).map(function(){var s=Oi(function*(c){const l=c.extension?.find(d=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===d.url);return l?n.getQuestionnaireFromUrl(l.valueCanonical):null});return function(c){return s.apply(this,arguments)}}());return{title:r,questionnaires:(yield Promise.all(o)).filter(s=>null!==s)}})()}checkForAssembleRoot(e){return!!(e&&e.extension&&Array.isArray(e.extension))&&e.extension.some(n=>"assemble-root"===n.valueCode)}assembleQuestionnaire(e){var n=this;return Oi(function*(){if(e=JSON.parse(JSON.stringify(e)),!n.checkForAssembleRoot(e))return null;for(let r of e.item)if("group"==r.type){r.extension=[];for(let o of r.item)if(o.extension&&Array.isArray(o.extension))for(let a of o.extension)if("http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===a.url){let s=yield n.getQuestionnaireFromUrl(a.valueCanonical);s&&(r.item=s.item),r.extension||(r.extension=[]),r.extension.push({url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",valueCanonical:a.valueCanonical})}}return e.extension=e.extension.filter(r=>"assemble-root"!==r.valueCode),e})()}disassembleQuestionnaire(e){var n=this;return Oi(function*(){if(!e||!e.item||!Array.isArray(e.item))throw new Error("Invalid root questionnaire");const r=e.title,o=[];for(const a of e.item)if("group"===a.type&&a.extension&&Array.isArray(a.extension)){const s=a.extension.find(c=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom"===c.url);if(s){const c=s.valueCanonical,l=yield n.getQuestionnaireFromUrl(c);l&&o.push(l)}}return{title:r,questionnaires:o}})()}getQuestionnaireFromUrl(e){var n=this;return Oi(function*(){try{return yield qo(n.http.get(e))}catch(r){return console.error("Error fetching questionnaire:",r),null}})()}}return t.\u0275fac=function(e){return new(e||t)(G(Ns),G(mf))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ane(t,i){1&t&&(v(0,"th",17),E(1," Title "),y())}function Ine(t,i){if(1&t&&(v(0,"td",18),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.title," ")}}function Fne(t,i){1&t&&(v(0,"th",17),E(1," Status "),y())}const Rne=function(t){return["status-pill",t]};function One(t,i){if(1&t&&(v(0,"td",18)(1,"span",19),E(2),pp(3,"uppercase"),y()()),2&t){const e=i.$implicit;k(1),T("ngClass",Bv(4,Rne,e.status)),k(1),Xe(Vv(3,2,e.status))}}function Pne(t,i){1&t&&(v(0,"th",17),E(1," Version "),y())}function Lne(t,i){if(1&t&&(v(0,"td",18),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.meta.versionId," ")}}function Nne(t,i){1&t&&(v(0,"th",17),E(1," Type "),y())}const Bne=function(){return["status-pill","active"]};function Vne(t,i){1&t&&(v(0,"span",19),E(1,"QUESTIONNAIRE"),y()),2&t&&T("ngClass",Ec(1,Bne))}const Hne=function(){return["status-pill","draft"]};function Une(t,i){1&t&&(v(0,"span",19),E(1,"MODULAR ROOT"),y()),2&t&&T("ngClass",Ec(1,Hne))}function zne(t,i){if(1&t&&(v(0,"td",18),H(1,Vne,2,2,"span",20),H(2,Une,2,2,"span",20),y()),2&t){const e=i.$implicit,n=q();k(1),T("ngIf",!n.isRootQuestionnaire(e)),k(1),T("ngIf",n.isRootQuestionnaire(e))}}function $ne(t,i){1&t&&(v(0,"th",21),E(1," Actions "),y())}function jne(t,i){if(1&t){const e=Je();v(0,"button",30),X("click",function(){Me(e);const r=q().$implicit;return Ae(q().validate(r))}),v(1,"mat-icon"),E(2,"done"),y()()}if(2&t){const e=q().$implicit;T("disabled",q().isRootQuestionnaire(e))}}function Wne(t,i){if(1&t){const e=Je();v(0,"button",31),X("click",function(){Me(e);const r=q().$implicit;return Ae(q().assemble(r))}),v(1,"mat-icon"),E(2,"build"),y()()}}function Gne(t,i){if(1&t){const e=Je();v(0,"button",32),X("click",function(){Me(e);const r=q().$implicit;return Ae(q().preview(r))}),v(1,"mat-icon"),E(2,"visibility"),y()()}}function qne(t,i){if(1&t){const e=Je();v(0,"button",33),X("click",function(){Me(e);const r=q().$implicit;return Ae(q().openInNewTab(r))}),v(1,"mat-icon"),E(2,"open_in_new"),y()()}}function Xne(t,i){if(1&t){const e=Je();v(0,"button",34),X("click",function(){Me(e);const r=q().$implicit;return Ae(q().editQuestionnaire(r))}),v(1,"mat-icon"),E(2,"edit"),y()()}}function Qne(t,i){if(1&t){const e=Je();v(0,"button",35),X("click",function(){Me(e);const r=q().$implicit;return Ae(q().openModularQuestionnaireModal(r))}),v(1,"mat-icon"),E(2,"edit"),y()()}}function Yne(t,i){if(1&t){const e=Je();v(0,"td",18),H(1,jne,3,1,"button",22),H(2,Wne,3,0,"button",23),H(3,Gne,3,0,"button",24),H(4,qne,3,0,"button",25),v(5,"button",26),X("click",function(){const o=Me(e).$implicit;return Ae(q().saveQuestionnaire(o))}),v(6,"mat-icon"),E(7,"cloud_download"),y()(),H(8,Xne,3,0,"button",27),H(9,Qne,3,0,"button",28),v(10,"button",29),X("click",function(){const o=Me(e).$implicit;return Ae(q().deleteQuestionnaire(o))}),v(11,"mat-icon"),E(12,"delete"),y()()()}if(2&t){const e=i.$implicit,n=q();k(1),T("ngIf",n.config.validate),k(1),T("ngIf",n.isRootQuestionnaire(e)),k(1),T("ngIf",n.config.preview&&!n.isRootQuestionnaire(e)),k(1),T("ngIf",n.config.preview),k(4),T("ngIf",!n.isRootQuestionnaire(e)),k(1),T("ngIf",n.isRootQuestionnaire(e))}}function Kne(t,i){1&t&&Se(0,"tr",36)}function Zne(t,i){1&t&&Se(0,"tr",37)}function Jne(t,i){1&t&&(v(0,"p",38)(1,"i"),E(2," No questionnaires found. Upload your questionnaires to start. "),y()())}function ere(t,i){1&t&&Se(0,"mat-spinner",39)}function tre(t,i){if(1&t){const e=Je();v(0,"button",40),X("click",function(){return Me(e),Ae(q().downloadAllQuestionnaires())}),E(1," Download bundle "),y()}}let mP=(()=>{class t{constructor(e,n,r,o){this.fhirService=e,this.questionnaireService=n,this.dialog=r,this._snackBar=o,this.questionnaireSelected=new xe,this.validateQuestionnaire=new xe,this.previewQuestionnaire=new xe,this.config={},this.displayedColumns=["title","status","version","type","actions"],this.dataSource=new Yh,this.questionnaires=[],this.loading=!1,this.selectedFhirServer="",this.selectedUserTag="",this.notFound=!1,this.baseUrlChanged=new ke,this.userTagChanged=new ke}ngOnInit(){Fc([this.fhirService.baseUrl$.pipe(Ad(1e3),Bc()),this.fhirService.userTag$.pipe(Ad(1e3),Bc())]).subscribe(([e,n])=>{(this.selectedFhirServer!==e||this.selectedUserTag!==n)&&(this.selectedFhirServer=e,this.selectedUserTag=n,this.selectedUserTag&&this.selectedFhirServer&&this.loadQuestionnaires())})}ngOnChanges(e){}ngAfterViewInit(){this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(e,n)=>{switch(n){case"type":return this.isRootQuestionnaire(e)?"Modular root":"Questionnaire";case"version":return e.meta&&e.meta.versionId?e.meta.versionId:"";default:return e[n]}},this.selectedUserTag&&this.selectedFhirServer&&this.loadQuestionnaires()}loadQuestionnaires(){this.loading=!0,this.notFound=!1,this.questionnaires=[],this.fhirService.getQuestionnairesByTag(this.selectedUserTag).subscribe(e=>{e.entry?(this.questionnaires=e.entry.map(n=>n.resource),this.dataSource.data=this.questionnaires,this.dataSource.sort=this.sort,this.loading=!1):(this.questionnaires=[],this.dataSource.data=this.questionnaires,this.loading=!1,this.notFound=!0)})}updateQuestionnairesList(e){const n=this.questionnaires.findIndex(r=>r.id===e.id);-1!==n?(this.questionnaires[n]=e,this.dataSource.data=this.questionnaires):(this.questionnaires.push(e),this.dataSource.data=this.questionnaires)}addQuestionnaire(e){this.updateQuestionnairesList(e)}deleteQuestionnaire(e){this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Deleting Questionnaire...",panelClass:["green-snackbar"]}),this.fhirService.deleteQuestionnaire(e.id).subscribe(()=>{this.questionnaires=this.questionnaires.filter(n=>n.id!==e.id),this.dataSource.data=this.questionnaires,this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Questionnaire deleted successfully",panelClass:["green-snackbar"]})})}selectQuestionnaire(e){this.questionnaireSelected.emit(e)}validate(e){this.validateQuestionnaire.emit(e)}preview(e){this.previewQuestionnaire.emit(e)}openInNewTab(e){window.open(this.selectedFhirServer+"/Questionnaire/"+e.id,"_blank")}saveQuestionnaire(e){var n=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});Zc(n,`${e.title}-v${e.meta.versionId}.json`)}isRootQuestionnaire(e){return!(!e.extension||!Array.isArray(e.extension))&&e.extension.some(n=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===n.url&&"assemble-root"===n.valueCode)}assemble(e){this._snackBar.openFromComponent(Qi,{duration:2e3,data:"Assembling Questionnaire...",panelClass:["green-snackbar"]}),this.questionnaireService.assembleQuestionnaire(e).then(n=>{n.title=e.title+" (assembled)",this.previewQuestionnaire.emit(n),this._snackBar.openFromComponent(Qi,{duration:2e3,data:"Questionnaire ready",panelClass:["green-snackbar"]})}).catch(n=>{console.error("Error assembling questionnaire:",n)})}editQuestionnaire(e){this.saveQuestionnaire(e),window.open("https://lhcformbuilder.nlm.nih.gov/","_blank")}openModularQuestionnaireModal(e){var n=this;return Oi(function*(){let r=yield n.questionnaireService.getRootQuestionnaireData(e);n.dialog.open(hP,{data:r,width:"75%"}).afterClosed().subscribe(a=>{a&&n.handleDialogResult(a,e)})})()}handleDialogResult(e,n){var r=this;return Oi(function*(){r._snackBar.openFromComponent(Qi,{duration:5e3,data:"Updating questionnaire...",panelClass:["green-snackbar"]});try{let o=yield r.questionnaireService.generateRootQuestionnaire(e.title,e.questionnaires);o&&(n.title=e.title,n.item=o.item,r.addQuestionnaire(n),r.fhirService.updateOrCreateQuestionnaire(n,r.selectedUserTag).pipe(vo()).subscribe(a=>{r._snackBar.openFromComponent(Qi,{duration:5e3,data:"Questionnaire updated successfully",panelClass:["green-snackbar"]}),r.updateQuestionnairesList(a)},a=>{r._snackBar.openFromComponent(Qi,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})}))}catch(o){console.error("Error handling dialog result:",o)}})()}downloadAllQuestionnaires(){this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Downloading Questionnaires...",panelClass:["green-snackbar"]}),this.fhirService.getQuestionnairesByTag(this.selectedUserTag).subscribe(e=>{var n=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});Zc(n,"questionnaires-bundle.json"),this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Questionnaires downloaded successfully",panelClass:["green-snackbar"]})})}}return t.\u0275fac=function(e){return new(e||t)(b(mf),b(fP),b(Kd),b(Nd))},t.\u0275cmp=Ve({type:t,selectors:[["app-list-questionnaires"]],viewQuery:function(e,n){if(1&e&&st(Jc,5),2&e){let r;ye(r=we())&&(n.sort=r.first)}},inputs:{config:"config"},outputs:{questionnaireSelected:"questionnaireSelected",validateQuestionnaire:"validateQuestionnaire",previewQuestionnaire:"previewQuestionnaire"},features:[Ei],decls:24,vars:6,consts:[["id","table-container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","version"],["matColumnDef","type"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","not-found",4,"ngIf"],["diameter","35","class","loading-spinner",4,"ngIf"],["id","outer-container"],[1,"download-button-container"],["mat-flat-button","","color","accent","matTooltip","Dowload all Questionnaires",3,"click",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"ngClass"],[3,"ngClass",4,"ngIf"],["mat-header-cell",""],["mat-icon-button","","color","accent","class","action-button","matTooltip","Validate Questionnaire",3,"disabled","click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Assemble Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Preview Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Open resource in new tab",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","matTooltip","Download Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Edit Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Edit Modular Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","matTooltip","Delete Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Validate Questionnaire",1,"action-button",3,"disabled","click"],["mat-icon-button","","color","accent","matTooltip","Assemble Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Preview Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Open resource in new tab",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Modular Questionnaire",1,"action-button",3,"click"],["mat-header-row",""],["mat-row",""],[1,"not-found"],["diameter","35",1,"loading-spinner"],["mat-flat-button","","color","accent","matTooltip","Dowload all Questionnaires",3,"click"]],template:function(e,n){1&e&&(v(0,"div",0)(1,"table",1),Ai(2,2),H(3,Ane,2,0,"th",3),H(4,Ine,2,1,"td",4),Ii(),Ai(5,5),H(6,Fne,2,0,"th",3),H(7,One,4,6,"td",4),Ii(),Ai(8,6),H(9,Pne,2,0,"th",3),H(10,Lne,2,1,"td",4),Ii(),Ai(11,7),H(12,Nne,2,0,"th",3),H(13,zne,3,2,"td",4),Ii(),Ai(14,8),H(15,$ne,2,0,"th",9),H(16,Yne,13,6,"td",4),Ii(),H(17,Kne,1,0,"tr",10),H(18,Zne,1,0,"tr",11),y(),H(19,Jne,3,0,"p",12),H(20,ere,1,0,"mat-spinner",13),y(),v(21,"div",14)(22,"div",15),H(23,tre,2,0,"button",16),y()()),2&e&&(k(1),T("dataSource",n.dataSource),k(16),T("matHeaderRowDef",n.displayedColumns),k(1),T("matRowDefColumns",n.displayedColumns),k(1),T("ngIf",n.notFound&&!n.questionnaires.length),k(1),T("ngIf",n.loading),k(3),T("ngIf",!n.loading&&n.questionnaires.length>0))},dependencies:[Ms,fn,Lr,os,Qo,Bd,Wh,$d,Gh,jd,zd,qh,Wd,Gd,Xh,Qh,lf,Jc,uP,cM],styles:[".list-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.list-text[_ngcontent-%COMP%]{flex-grow:1}.list-subtext[_ngcontent-%COMP%]{font-size:.8rem;color:#666;margin-left:1rem}.action-button[_ngcontent-%COMP%]{margin-left:8px}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.list-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.status-pill[_ngcontent-%COMP%]{display:inline-block;padding:3px 8px;border-radius:15px;font-size:10px;color:#fff;text-align:center;margin-left:1rem}.status-pill.draft[_ngcontent-%COMP%]{background-color:#007bff}.status-pill.unknown[_ngcontent-%COMP%]{background-color:#ffc107}.status-pill.active[_ngcontent-%COMP%]{background-color:#28a745}.status-pill.retired[_ngcontent-%COMP%]{background-color:#dc3545}#table-container[_ngcontent-%COMP%]{padding-bottom:2rem}.not-found[_ngcontent-%COMP%]{margin-top:2rem}#outer-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.download-button-container[_ngcontent-%COMP%]{margin-top:10px}"]}),t})(),ire=(()=>{class t{constructor(e){this.dialogRef=e,this.listConfig={select:!0}}selectAndDownload(e){this.dialogRef.close(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Gs))},t.\u0275cmp=Ve({type:t,selectors:[["app-load-questionnaire-modal"]],decls:7,vars:1,consts:[[3,"config","questionnaireSelected"],["align","end"],["mat-flat-button","","color","accent","mat-dialog-close",""]],template:function(e,n){1&e&&(v(0,"mat-dialog-content")(1,"h2"),E(2,"Available Questionnaires"),y(),v(3,"app-list-questionnaires",0),X("questionnaireSelected",function(o){return n.selectAndDownload(o)}),y()(),v(4,"mat-dialog-actions",1)(5,"button",2),E(6,"Close"),y()()),2&e&&(k(3),T("config",n.listConfig))},dependencies:[Lr,ff,k0,D0,mP]}),t})();const nre=["settingsForm"];function rre(t,i){1&t&&(v(0,"mat-error"),E(1,"Base URL is required"),y())}function ore(t,i){1&t&&(v(0,"mat-error"),E(1,"User Tag is required and must be at least 3 characters"),y())}let tw=(()=>{class t{constructor(e,n){this.fhirService=e,this.dialogRef=n,this.baseUrl="",this.userTag=""}ngAfterViewInit(){this.triggerValidation()}triggerValidation(){Object.keys(this.settingsForm.controls).forEach(e=>{const n=this.settingsForm.control.get(e);n?.markAsTouched({onlySelf:!0}),n?.markAsDirty({onlySelf:!0})})}ngOnInit(){this.baseUrl=this.fhirService.getBaseUrl(),this.userTag=this.fhirService.getUserTag()}updateSettings(){this.settingsForm.valid&&(this.fhirService.setBaseUrl(this.baseUrl),this.fhirService.setUserTag(this.userTag),this.dialogRef.close("save"))}}return t.\u0275fac=function(e){return new(e||t)(b(mf),b(Gs))},t.\u0275cmp=Ve({type:t,selectors:[["app-fhir-server-settings-modal"]],viewQuery:function(e,n){if(1&e&&st(nre,5),2&e){let r;ye(r=we())&&(n.settingsForm=r.first)}},decls:29,vars:5,consts:[[1,"form-container"],[1,"warning"],[3,"ngSubmit"],["settingsForm","ngForm"],["matInput","","name","baseUrl","required","",3,"ngModel","ngModelChange"],["baseUrlField","ngModel"],[4,"ngIf"],["matInput","","name","userTag","required","","minlength","3",3,"ngModel","ngModelChange"],["userTagField","ngModel"],[1,"button-container"],["mat-flat-button","","color","accent","type","submit",3,"disabled"],["mat-flat-button","","color","primary","mat-dialog-close",""]],template:function(e,n){if(1&e&&(v(0,"div",0)(1,"h2"),E(2,"FHIR Server Connection"),y(),v(3,"p"),E(4,"Manager mode allows you to store questionnares in a FHIR Server. Enter the FHIR server URL and your "),v(5,"b"),E(6,"User Tag"),y(),E(7,", this value will be used to identify your questionnaires."),y(),v(8,"p",1),E(9,"Warning: using the default public FHIR server will not ensure the persistence of your information, always save your questionnaires to your computer as a backup."),y(),v(10,"form",2,3),X("ngSubmit",function(){return n.updateSettings()}),v(12,"mat-form-field")(13,"mat-label"),E(14,"Base URL of the FHIR Server"),y(),v(15,"input",4,5),X("ngModelChange",function(o){return n.baseUrl=o}),y(),H(17,rre,2,0,"mat-error",6),y(),v(18,"mat-form-field")(19,"mat-label"),E(20,"User Tag"),y(),v(21,"input",7,8),X("ngModelChange",function(o){return n.userTag=o}),y(),H(23,ore,2,0,"mat-error",6),y(),v(24,"div",9)(25,"button",10),E(26,"Open FHIR Repository"),y(),v(27,"button",11),E(28,"Close"),y()()()()),2&e){const r=Nt(11),o=Nt(16),a=Nt(22);k(15),T("ngModel",n.baseUrl),k(2),T("ngIf",o.invalid&&o.touched),k(4),T("ngModel",n.userTag),k(2),T("ngIf",a.invalid&&a.touched),k(2),T("disabled",!r.valid)}},dependencies:[fn,Lr,Da,ko,NR,Kc,rf,Ca,Co,Kh,c0,O1,Yo,Xc,ff],styles:[".form-container[_ngcontent-%COMP%]{margin:auto;padding:20px}mat-form-field[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.warning[_ngcontent-%COMP%]{color:#ff9500;font-weight:lighter;font-style:italic}"]}),t})(),pP=(()=>{class t{constructor(e,n){this.data=e,this.dialogRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(C0),b(Gs))},t.\u0275cmp=Ve({type:t,selectors:[["app-confirmation-dialog"]],decls:10,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",1,"button-container"],["mat-button","",3,"mat-dialog-close"]],template:function(e,n){1&e&&(v(0,"h1",0),E(1),y(),v(2,"div",1)(3,"p"),E(4),y()(),v(5,"div",2)(6,"button",3),E(7,"Yes"),y(),v(8,"button",3),E(9,"No"),y()()),2&e&&(k(1),Xe(n.data.title),k(3),Xe(n.data.message),k(2),T("mat-dialog-close",!0),k(2),T("mat-dialog-close",!1))},dependencies:[Lr,ff,GO,k0,D0],encapsulation:2}),t})();const are=new ae("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),cre=Vs(class{constructor(t){this._elementRef=t}},"primary");let lre=(()=>{class t extends cre{constructor(e,n,r,o,a){super(e),this._ngZone=n,this._changeDetectorRef=r,this._animationMode=o,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new xe,this._mode="determinate",this._transitionendHandler=s=>{0===this.animationEnd.observers.length||!s.target||!s.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===o,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(e){this._value=gP(In(e)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=gP(In(e)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(ze),b(Gt),b(Ri,8),b(are,8))},t.\u0275cmp=Ve({type:t,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(e,n){2&e&&(ot("aria-valuenow",n._isIndeterminate()?null:n.value)("mode",n.mode),Qe("_mat-animation-noopable",n._isNoopAnimation)("mdc-linear-progress--animation-ready",!n._isNoopAnimation)("mdc-linear-progress--indeterminate",n._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[pe],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(e,n){1&e&&(v(0,"div",0),Se(1,"div",1)(2,"div",2),y(),v(3,"div",3),Se(4,"span",4),y(),v(5,"div",5),Se(6,"span",4),y()),2&e&&(k(1),ir("flex-basis",n._getBufferBarFlexBasis()),k(2),ir("transform",n._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half, 83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full, 200.611057%))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter, 37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half, 84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full, 160.277782%))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(-10px)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg, -83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg, -200.611057%))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg, -37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg, -84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg, -160.277782%))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;width:100%;height:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;width:100%;height:100%}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color, #6200ee)}.mdc-linear-progress__buffer-dots{background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E\")}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6}.mdc-linear-progress{height:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height, 4px)}.mat-mdc-progress-bar{display:block}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0}),t})();function gP(t,i=0,e=100){return Math.max(i,Math.min(e,t))}let dre=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt]}),t})();const ure=["questionnairesList"];function hre(t,i){if(1&t&&(v(0,"div",20),Se(1,"mat-progress-bar",21),v(2,"div",22),E(3),y()()),2&t){const e=q();k(1),T("value",e.validatingProgress),k(2),It("",e.validatingProgress,"%")}}function fre(t,i){1&t&&(v(0,"span"),E(1,"Run validation"),y())}function mre(t,i){1&t&&Se(0,"mat-spinner",23)}function pre(t,i){if(1&t&&(v(0,"span",29),E(1),y()),2&t){const e=q(2);k(1),It("Error: ",e.loadResults.error,"")}}function gre(t,i){if(1&t&&(v(0,"span",30),E(1),y()),2&t){const e=q(2);k(1),It("Inactive: ",e.loadResults.inactive,"")}}function _re(t,i){if(1&t&&(v(0,"span",31),E(1),y()),2&t){const e=q(2);k(1),It("Active: ",e.loadResults.active,"")}}function bre(t,i){if(1&t&&(v(0,"p",24)(1,"b"),E(2,"Questionnaire:"),y(),E(3),v(4,"i"),E(5),y(),E(6,") - "),v(7,"span",25),E(8),y(),H(9,pre,2,1,"span",26),H(10,gre,2,1,"span",27),H(11,_re,2,1,"span",28),y()),2&t){const e=q();k(3),It(" ",e.questionnaire.title," ("),k(2),Xe(e.questionnaire.url),k(3),It("",e.dataSource.data.length," bindings"),k(1),T("ngIf",e.loadResults.total>0),k(1),T("ngIf",e.loadResults.total>0),k(1),T("ngIf",e.loadResults.total>0)}}function vre(t,i){1&t&&(v(0,"th",32),E(1," # "),y())}function xre(t,i){if(1&t&&(v(0,"td",33),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.order," ")}}function yre(t,i){1&t&&(v(0,"th",32),E(1," FHIRPath "),y())}function wre(t,i){if(1&t&&(v(0,"td",33),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.path," ")}}function Cre(t,i){1&t&&(v(0,"th",32),E(1," Path "),y())}function kre(t,i){if(1&t&&(v(0,"td",33),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.readablePath," ")}}function Dre(t,i){1&t&&(v(0,"th",32),E(1,"Code "),y())}function Sre(t,i){if(1&t&&(v(0,"td",33)(1,"a",34),E(2),y()()),2&t){const e=i.$implicit;k(1),sp("href","http://snomed.info/id/",e.code,"",Wb),k(1),Xe(e.code)}}function Ere(t,i){1&t&&(v(0,"th",32),E(1," Display "),y())}function Tre(t,i){if(1&t&&(v(0,"p",38),E(1),y()),2&t){const e=q().$implicit;k(1),It("Concept FSN: ",e.serverDisplay,"")}}function Mre(t,i){1&t&&(v(0,"p",39),E(1,"Concept is inactive"),y())}function Are(t,i){if(1&t){const e=Je();v(0,"p",40),E(1),v(2,"button",41),X("click",function(){const o=Me(e).$implicit,a=q().$implicit;return Ae(q().replaceInactiveConcept(a,o.replacement))}),v(3,"mat-icon"),E(4,"arrow_forward"),y()()()}if(2&t){const e=i.$implicit,n=q(2);k(1),Ev(" Replacement: ",e.equivalence," to ",e.replacement.code," |",e.replacement.display,"| "),k(1),T("disabled",n.validating)}}function Ire(t,i){if(1&t&&(v(0,"td",33),E(1),H(2,Tre,2,1,"p",35),H(3,Mre,2,0,"p",36),H(4,Are,5,4,"p",37),y()),2&t){const e=i.$implicit;k(1),It(" ",e.display," "),k(1),T("ngIf",e.serverDisplay),k(1),T("ngIf","Inactive"==e.status),k(1),T("ngForOf",e.replacements)}}function Fre(t,i){1&t&&(v(0,"th",32),E(1," System "),y())}function Rre(t,i){if(1&t&&(v(0,"td",33),E(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.system," ")}}function Ore(t,i){1&t&&(v(0,"th",32),E(1," Status "),y())}function Pre(t,i){1&t&&(v(0,"span"),Se(1,"mat-progress-bar",42),y())}function Lre(t,i){if(1&t&&(v(0,"span")(1,"span",43),E(2),y()()),2&t){const e=q().$implicit;k(1),T("ngClass",e.status),k(1),Xe(e.status)}}function Nre(t,i){if(1&t&&(v(0,"td",33),H(1,Pre,2,0,"span",3),H(2,Lre,3,2,"span",3),y()),2&t){const e=i.$implicit;k(1),T("ngIf","Validating"==e.status),k(1),T("ngIf","Validating"!=e.status)}}function Bre(t,i){1&t&&Se(0,"tr",44)}function Vre(t,i){1&t&&Se(0,"tr",45)}function Hre(t,i){1&t&&Se(0,"mat-spinner",46)}let Ure=(()=>{class t{constructor(e){this.terminologyService=e,this.questionnaireUpdated=new xe,this.validatingQuestionnaire=new xe,this.loading=!1,this.validating=!1,this.displayedColumns=["order","readablePath","code","display","system","status"],this.dataSource=new Yh,this.validatingProgress=0,this.orderCounter=0,this.loadResults={total:0,active:0,inactive:0,error:0}}ngOnChanges(e){e.questionnaire&&(this.questionnaire?this.loadQuestionnaire(this.questionnaire):this.clearQuestionnaire())}clearQuestionnaire(){this.questionnaire=null,this.dataSource.data=[],this.orderCounter=0,this.validatingProgress=0,this.loadResults={total:0,active:0,inactive:0,error:0}}loadQuestionnaire(e){this.loading=!0,this.clearQuestionnaire(),setTimeout(()=>{this.loading=!1,this.questionnaire=e;let n=this.extractObjects(e);this.dataSource.data=n,this.dataSource.sort=this.sort},700)}validate(){var e=this;this.loadResults={total:0,active:0,inactive:0,error:0},this.dataSource.data.forEach(o=>{o.status="Not checked"}),this.validating=!0,this.validatingQuestionnaire.emit(!0);let n=this.dataSource.data.length,r=0;this.asyncForEach(this.dataSource.data,function(){var o=Oi(function*(a){e.loadResults.total++,a.status="Validating",r++,e.validatingProgress=Math.round(r/n*100);try{const s=yield e.terminologyService.lookupConcept(a.code,a.system).pipe(vo()).toPromise();let c=[],l="";for(const d of s.parameter){if("designation"===d.name){let u="",h="";for(const f of d.part)"value"===f.name&&(u=f.valueString),"use"===f.name&&(h=f.valueCoding?.code);c.push(u),"900000000000003001"===h&&(l=u)}"inactive"===d.name&&(d.valueBoolean?(a.status="Inactive",e.loadResults.inactive++):(a.status="Active",e.loadResults.active++))}if((!a.display||!c.includes(a.display))&&(a.serverDisplay=l),"Inactive"==a.status){const d=yield e.getHistoricalAssociationsTarget("900000000000527005",a.code),u=yield e.getHistoricalAssociationsTarget("900000000000530003",a.code),h=yield e.getHistoricalAssociationsTarget("900000000000523009",a.code),f=yield e.getHistoricalAssociationsTarget("900000000000526001",a.code),m=d.concat(u,h,f);a.replacements=m}}catch{a.status="Error",e.loadResults.error++}});return function(a){return o.apply(this,arguments)}}()).then(()=>{this.validating=!1,this.validatingQuestionnaire.emit(!1)})}getHistoricalAssociationsTarget(e,n){var r=this;return Oi(function*(){let o=[];const a=r.terminologyService.translate(e,n);let s=yield qo(a.pipe(Ke(c=>c)));if(s.parameter)for(const c of s.parameter)if("match"===c.name){let l={replacement:{},equivalence:""};for(const d of c.part)"concept"===d.name&&d.valueCoding&&(l.replacement={code:d.valueCoding.code,display:d.valueCoding.display,system:d.valueCoding.system}),"equivalence"===d.name&&d.valueCode&&(l.equivalence=d.valueCode);o.push(l)}return o})()}removeSemanticTag(e){return e.replace(/\s*\([^)]+\)\s*$/,"").trim().toLowerCase()}asyncForEach(e,n){return Oi(function*(){for(let r=0;r ${e.text}`:e.text),e.system&&e.system.startsWith("http://snomed.info/sct")&&e.code&&e.display){this.orderCounter++;const a={order:this.orderCounter,system:e.system,code:e.code,display:e.display,path:n,readablePath:r,status:"Not checked"};o.some(s=>s.system===a.system&&s.code===a.code&&s.display===a.display)||o.push(a)}if(Array.isArray(e))for(let a in e)o=o.concat(this.extractObjects(e[a],`${n}[${a}]`,r));else for(let a in e)e.hasOwnProperty(a)&&(o=o.concat(this.extractObjects(e[a],n?`${n}.${a}`:a,r)));if(e.answerValueSet){const s=new URL(e.answerValueSet).searchParams.get("fhir_vs");if(s){const c=decodeURIComponent(s),l=/(\d{5,})(?:\s*\|\s*([^|]*)\s*\|)?/g;let d;for(;null!==(d=l.exec(c));)this.orderCounter++,o.push({order:this.orderCounter,code:d[1],display:d[2]?d[2].trim():void 0,system:"http://snomed.info/sct",path:n+".answerValueSet",readablePath:r+" -> answerValueSet [ECL]",status:"Not checked"})}}return o}replaceInactiveConcept(e,n){this.searchAndReplace(this.questionnaire,e,n,!1)&&(this.loadQuestionnaire(this.questionnaire),this.questionnaireUpdated.emit(this.questionnaire))}searchAndReplace(e,n,r,o){if("object"!=typeof e||null===e)return o;if(e.system==n.system&&e.code==n.code&&e.display==n.display&&(e.system=r.system,e.code=r.code,e.display=r.display,o=!0),e.answerValueSet){const a=new URL(e.answerValueSet),s=a.searchParams.get("fhir_vs");if(s){const c=decodeURIComponent(s),l=new RegExp(`(\\s|^)${n.code}(\\s|$|\\|)`,"g");if(l.test(c)){const d=c.replace(l,`$1${r.code}$2`);o=!0;const u=new RegExp(`\\|\\s*${n.display}\\s*\\|`,"g");if(u.test(d)){const h=d.replace(u,`| ${r.display} |`);a.searchParams.set("fhir_vs",encodeURIComponent(h)),e.answerValueSet=a.toString()}a.searchParams.set("fhir_vs",encodeURIComponent(d)),e.answerValueSet=a.toString()}}}if(Array.isArray(e))for(let a in e)o=this.searchAndReplace(e[a],n,r,o);else for(let a in e)e.hasOwnProperty(a)&&(o=this.searchAndReplace(e[a],n,r,o));return o}}return t.\u0275fac=function(e){return new(e||t)(b(Nr))},t.\u0275cmp=Ve({type:t,selectors:[["app-validate-questionnaire"]],viewQuery:function(e,n){if(1&e&&(st(Jc,5),st(sf,5),st(ure,5)),2&e){let r;ye(r=we())&&(n.sort=r.first),ye(r=we())&&(n.tabGroup=r.first),ye(r=we())&&(n.questionnairesList=r.first)}},inputs:{questionnaire:"questionnaire"},outputs:{questionnaireUpdated:"questionnaireUpdated",validatingQuestionnaire:"validatingQuestionnaire"},features:[Ei],decls:32,vars:9,consts:[[1,"button-container","bottom-spacer"],["class","progress-container",4,"ngIf"],["mat-flat-button","","color","accent",3,"disabled","click"],[4,"ngIf"],["diameter","20",4,"ngIf"],["class","header","id","tab-header",4,"ngIf"],[1,"table-container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","order"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","path"],["matColumnDef","readablePath"],["matColumnDef","code"],["matColumnDef","display"],["matColumnDef","system"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["diameter","35","class","loading-spinner",4,"ngIf"],[1,"progress-container"],["mode","determinate",3,"value"],[1,"progress-label"],["diameter","20"],["id","tab-header",1,"header"],[1,"bindingsCount"],["class","mini-pill Error",4,"ngIf"],["class","mini-pill Inactive",4,"ngIf"],["class","mini-pill Active",4,"ngIf"],[1,"mini-pill","Error"],[1,"mini-pill","Inactive"],[1,"mini-pill","Active"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["target","_blank",1,"code-link",3,"href"],["class","server-name",4,"ngIf"],["class","concept-is-inactive",4,"ngIf"],["class","replacement",4,"ngFor","ngForOf"],[1,"server-name"],[1,"concept-is-inactive"],[1,"replacement"],["mat-icon-button","","color","primary","matTooltip","Replace using this concept",3,"disabled","click"],["mode","indeterminate"],[1,"pill",3,"ngClass"],["mat-header-row",""],["mat-row",""],["diameter","35",1,"loading-spinner"]],template:function(e,n){1&e&&(v(0,"div",0),H(1,hre,4,2,"div",1),v(2,"button",2),X("click",function(){return n.validate()}),H(3,fre,2,0,"span",3),H(4,mre,1,0,"mat-spinner",4),y()(),H(5,bre,12,6,"p",5),v(6,"div",6)(7,"table",7),Ai(8,8),H(9,vre,2,0,"th",9),H(10,xre,2,1,"td",10),Ii(),Ai(11,11),H(12,yre,2,0,"th",9),H(13,wre,2,1,"td",10),Ii(),Ai(14,12),H(15,Cre,2,0,"th",9),H(16,kre,2,1,"td",10),Ii(),Ai(17,13),H(18,Dre,2,0,"th",9),H(19,Sre,3,2,"td",10),Ii(),Ai(20,14),H(21,Ere,2,0,"th",9),H(22,Ire,5,4,"td",10),Ii(),Ai(23,15),H(24,Fre,2,0,"th",9),H(25,Rre,2,1,"td",10),Ii(),Ai(26,16),H(27,Ore,2,0,"th",9),H(28,Nre,3,2,"td",10),Ii(),H(29,Bre,1,0,"tr",17),H(30,Vre,1,0,"tr",18),y(),H(31,Hre,1,0,"mat-spinner",19),y()),2&e&&(k(1),T("ngIf",n.validating),k(1),T("disabled",n.validating||!n.questionnaire),k(1),T("ngIf",!n.validating),k(1),T("ngIf",n.validating),k(1),T("ngIf",n.questionnaire),k(2),T("dataSource",n.dataSource),k(22),T("matHeaderRowDef",n.displayedColumns),k(1),T("matRowDefColumns",n.displayedColumns),k(1),T("ngIf",n.loading))},dependencies:[Ms,bo,fn,Lr,os,Qo,lre,Bd,Wh,$d,Gh,jd,zd,qh,Wd,Gd,Xh,Qh,lf,Jc,uP],styles:[".header[_ngcontent-%COMP%]{margin-left:2rem;margin-top:1rem}.table-container[_ngcontent-%COMP%]{margin-left:2rem;margin-right:2rem;padding-bottom:2rem}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.bottom-spacer[_ngcontent-%COMP%]{margin-bottom:1rem}.pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;font-weight:700;text-align:center;display:inline-block;font-size:.8rem}.pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.mini-pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;text-align:center;font-weight:700;font-size:.9rem;margin-right:2rem;float:right}.mini-pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.mini-pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.mini-pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.progress-container[_ngcontent-%COMP%]{margin-top:1rem;position:relative;width:30%}.progress-label[_ngcontent-%COMP%]{position:absolute;width:100%;text-align:center;top:60%;transform:translateY(-50%);font-size:.9rem;font-weight:700}.bindingsCount[_ngcontent-%COMP%]{font-size:1rem;font-weight:lighter}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.code-link[_ngcontent-%COMP%]{font-size:.8rem}.server-name[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:maroon}.replacement[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:#00800b;display:flex;align-items:center;font-size:.9rem;margin-left:2rem}.concept-is-inactive[_ngcontent-%COMP%]{color:maroon;font-size:.9rem;margin-bottom:0rem}#myFormContainer[_ngcontent-%COMP%], #tab-header[_ngcontent-%COMP%]{margin-top:1rem}.tab-container[_ngcontent-%COMP%]{padding:2rem}.outgoing-link[_ngcontent-%COMP%]{font-size:.8rem;float:right;margin-right:2rem}"]}),t})();const zre=["questionnairesList"],$re=["fileInput"];function jre(t,i){1&t&&(v(0,"span"),E(1," / Validator"),y())}function Wre(t,i){1&t&&(v(0,"span"),E(1," / Questionnaires repository"),y())}function Gre(t,i){if(1&t){const e=Je();v(0,"span",15)(1,"a",16),X("click",function(){return Me(e),Ae(q(2).mode="Manager")}),v(2,"mat-icon"),E(3,"play_arrow"),y(),v(4,"span"),E(5,"Reconnect to last FHIR Server"),y()(),v(6,"span",17),E(7),v(8,"i"),E(9),y(),E(10,'" )'),y()()}if(2&t){const e=q(2);k(7),It(" ( ",e.selectedFhirServer,' as "'),k(2),Xe(e.selectedUserTag)}}function qre(t,i){if(1&t){const e=Je();v(0,"div",6)(1,"p"),E(2,"What do you want to do today?"),y(),v(3,"mat-radio-group",7),X("ngModelChange",function(r){return Me(e),Ae(q().step1Response=r)}),v(4,"mat-radio-button",8),E(5,"Edit a questionnaire in the NLM Form Builder"),y(),v(6,"mat-radio-button",9),E(7,"Load an example questionnaire"),y(),v(8,"mat-radio-button",10),E(9,"Upload and validate a questionnaire"),y(),v(10,"mat-radio-button",11),E(11,"Work with your questionnaires from a FHIR server"),y(),H(12,Gre,11,2,"span",12),y(),v(13,"div",13)(14,"button",14),X("click",function(){return Me(e),Ae(q().advanceFromStep1())}),E(15,"Next"),y()()()}if(2&t){const e=q();k(3),T("ngModel",e.step1Response),k(9),T("ngIf",e.selectedFhirServer&&e.selectedUserTag),k(2),T("disabled",!e.step1Response)}}function Xre(t,i){if(1&t&&(v(0,"span"),E(1," Connected to "),v(2,"a",30),E(3),y(),E(4,' as "'),v(5,"i"),E(6),y(),E(7,'" '),y()),2&t){const e=q(2);k(3),Xe(e.selectedFhirServer),k(3),Xe(e.selectedUserTag)}}function Qre(t,i){if(1&t){const e=Je();v(0,"button",14),X("click",function(){return Me(e),Ae(q(2).openModularQuestionnaireModal())}),E(1," Create Modular Questionnaire "),y()}2&t&&T("disabled",q(2).validating)}function Yre(t,i){if(1&t){const e=Je();v(0,"mat-tab",31)(1,"div",25)(2,"app-list-questionnaires",32,33),X("validateQuestionnaire",function(r){return Me(e),Ae(q(2).switchToValidateTab(r))})("previewQuestionnaire",function(r){return Me(e),Ae(q(2).switchToPreviewTab(r))}),y()()()}if(2&t){const e=q(2);k(2),T("config",e.listConfig)}}function Kre(t,i){if(1&t){const e=Je();v(0,"div")(1,"div",18),H(2,Xre,8,2,"span",4),v(3,"input",19,20),X("change",function(r){return Me(e),Ae(q().onFileSelected(r))}),y(),v(5,"button",14),X("click",function(){return Me(e),Ae(Nt(4).click())}),E(6," Upload "),y(),v(7,"button",14),X("click",function(){return Me(e),Ae(q().saveQuestionnaireToDisk())}),E(8,"Download"),y(),H(9,Qre,2,1,"button",21),y(),v(10,"mat-tab-group",22),X("selectedIndexChange",function(r){return Me(e),Ae(q().onTabChange(r))}),H(11,Yre,4,1,"mat-tab",23),v(12,"mat-tab",24)(13,"div",25),Se(14,"div",26),y()(),v(15,"mat-tab",27)(16,"app-validate-questionnaire",28,29),X("questionnaireUpdated",function(r){return Me(e),Ae(q().loadQuestionnaire(r))})("validatingQuestionnaire",function(r){return Me(e),Ae(q().validating=r)}),y()()()()}if(2&t){const e=q();k(2),T("ngIf","Manager"==e.mode),k(3),T("disabled",e.validating),k(2),T("disabled",e.validating||!e.questionnaire),k(2),T("ngIf","Manager"==e.mode),k(2),T("ngIf","Manager"===e.mode),k(3),Qe("hidden",!e.questionnaire),k(2),T("questionnaire",e.questionnaire)}}function Jre(t,i){if(1&t&&(v(0,"p",19),E(1),y()),2&t){const e=q();k(1),Xe(e.studentSubsetDefinition)}}function eoe(t,i){1&t&&Se(0,"mat-spinner",20)}function toe(t,i){if(1&t&&(v(0,"div",21)(1,"h4"),E(2,"Validation Results"),y(),v(3,"p",22),E(4),y(),v(5,"p",22),E(6),y(),v(7,"p",22),E(8),y()()),2&t){const e=q();k(4),Xe(e.definitionVsMembersValudationResult),k(2),Xe(e.definitionValidationResult),k(2),Xe(e.membersValidationResult)}}function ioe(t,i){1&t&&(v(0,"th",33),E(1,"ID"),y())}function noe(t,i){if(1&t&&(v(0,"td",34),E(1),y()),2&t){const e=i.$implicit;k(1),Xe(e.referencedComponentId)}}function roe(t,i){1&t&&(v(0,"th",33),E(1,"Name"),y())}function ooe(t,i){if(1&t&&(v(0,"td",34),E(1),y()),2&t){const e=i.$implicit;k(1),Xe(e.name)}}function aoe(t,i){1&t&&(v(0,"th",33),E(1,"Result"),y())}function soe(t,i){if(1&t&&(v(0,"td",34),E(1),y()),2&t){const e=i.$implicit;k(1),Xe(e.result.value)}}function coe(t,i){1&t&&(v(0,"th",33),E(1,"Definition"),y())}function loe(t,i){if(1&t&&(v(0,"td",34),E(1),y()),2&t){const e=i.$implicit;k(1),Xe(e.scope.value)}}function doe(t,i){1&t&&Se(0,"tr",35)}function uoe(t,i){1&t&&Se(0,"tr",36)}function hoe(t,i){if(1&t&&(v(0,"div",23)(1,"table",24),Ai(2,25),H(3,ioe,2,0,"th",26),H(4,noe,2,1,"td",27),Ii(),Ai(5,28),H(6,roe,2,0,"th",26),H(7,ooe,2,1,"td",27),Ii(),Ai(8,29),H(9,aoe,2,0,"th",26),H(10,soe,2,1,"td",27),Ii(),Ai(11,30),H(12,coe,2,0,"th",26),H(13,loe,2,1,"td",27),Ii(),H(14,doe,1,0,"tr",31),H(15,uoe,1,0,"tr",32),y()()),2&t){const e=q();k(1),T("dataSource",e.studentSubsetMembersDataSource),k(13),T("matHeaderRowDef",e.studentSubsetMembersDisplayedColumns),k(1),T("matRowDefColumns",e.studentSubsetMembersDisplayedColumns)}}const foe=[{path:"",component:pO},{path:"allergies",component:pO},{path:"sandbox",component:pne},{path:"prescription",component:gne},{path:"questionnaires",component:(()=>{class t{constructor(e,n,r,o,a,s){this.http=e,this.terminologyService=n,this.fhirService=r,this.questionnaireService=o,this.dialog=a,this._snackBar=s,this.loading=!1,this.validating=!1,this.orderCounter=0,this.savingQuestionnaire=!1,this.selectedFhirServer="",this.selectedUserTag="",this.showFhirSetupModal=!1,this.listConfig={validate:!0,preview:!0},this.mode="step1"}ngOnInit(){this.fhirService.baseUrl$.subscribe(e=>{this.selectedFhirServer=e}),this.fhirService.userTag$.subscribe(e=>{this.selectedUserTag=e}),this.loadScript()}loadScript(){const e=document.createElement("script");e.src="https://clinicaltables.nlm.nih.gov/lforms-versions/34.3.1/webcomponent/lhc-forms.js",e.onload=()=>{const n=document.createElement("script");n.src="https://clinicaltables.nlm.nih.gov/lforms-versions/34.0.0/fhir/R4/lformsFHIR.min.js",n.onload=()=>{},document.head.appendChild(n)},document.head.appendChild(e)}toggleMode(){"Validator"===this.mode?this.dialog.open(tw,{width:"60%",disableClose:!0}).afterClosed().subscribe(n=>{"save"===n&&(this.mode="Manager",setTimeout(()=>{this.tabGroup.selectedIndex=0},500))}):this.mode="Validator"}previewForm(){"Preview"==this.getCurrentTabName()&&(this.questionnaire?LForms.Util.addFormToPage(this.questionnaire,"myFormContainer"):LForms.Util.addFormToPage({},"myFormContainer"))}loadExampleQuestionnaire(){qo(this.http.get("assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json")).then(e=>{this.loadQuestionnaire(e),"Manager"===this.mode&&(this.tabGroup.selectedIndex=1)})}clearQuestionnaire(){this.questionnaire=null,this.orderCounter=0,this.previewForm()}loadQuestionnaire(e){this.loading=!0,this.clearQuestionnaire(),setTimeout(()=>{this.loading=!1,this.questionnaire=e,this.previewForm()},700)}saveQuestionnaireToDisk(){var e=new Blob([JSON.stringify(this.questionnaire,null,2)],{type:"text/plain;charset=utf-8"});Zc(e,`${this.questionnaire.title}.json`)}onFileSelected(e){const n=e.target.files?.[0];if(n){const r=new FileReader;r.onload=o=>{try{const a=JSON.parse(o.target?.result);"Questionnaire"===a.resourceType?(this.loadQuestionnaire(a),setTimeout(()=>{"Manager"===this.mode?this.postCurrentQuestionnaire():this.tabGroup.selectedIndex=1},1e3)):this._snackBar.openFromComponent(Qi,{duration:5e3,data:"The file is not a FHIR Questionnaire Resource",panelClass:["red-snackbar"]})}catch(a){console.error(a),this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Invalid JSON file",panelClass:["red-snackbar"]})}},r.readAsText(n)}}postCurrentQuestionnaire(){this.postQuestionnaire(this.questionnaire)}postQuestionnaire(e){if(-1!==this.questionnairesList.questionnaires.findIndex(r=>r.title===e.title&&r.id!==e.id))this.dialog.open(pP,{width:"400px",data:{title:"Confirm Action",message:"A questionnaire with the same title and different ID already exists. Do you want to proceed?"}}).afterClosed().subscribe(o=>{o?this.saveQuestionnaire(e):(this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Questionnaire save action cancelled",panelClass:["red-snackbar"]}),console.log("User cancelled the action"))});else{-1!==this.questionnairesList.questionnaires.findIndex(a=>a.title===e.title&&a.id===e.id&&a.meta.versionId>e.meta.versionId)?this.dialog.open(pP,{width:"400px",data:{title:"Confirm Action",message:"A newer version of this questionnaire already exists. Do you want to proceed?"}}).afterClosed().subscribe(s=>{s?this.saveQuestionnaire(e):(this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Questionnaire save action cancelled",panelClass:["red-snackbar"]}),console.log("User cancelled the action"))}):this.saveQuestionnaire(e)}}saveQuestionnaire(e){this.savingQuestionnaire=!0,this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Saving Questionnaire...",panelClass:["green-snackbar"]}),e.meta||(e.meta={}),e.meta.tag=[{system:"http://snomed.org/tags",code:this.selectedUserTag,display:this.selectedUserTag},{system:"http://snomed.org/tags",code:"questionnaireManagerTool",display:"questionnaireManagerTool"}],this.fhirService.updateOrCreateQuestionnaire(e,this.selectedUserTag).pipe(vo()).subscribe(n=>{setTimeout(()=>{this.tabGroup.selectedIndex=0,setTimeout(()=>{this.savingQuestionnaire=!1,this.questionnairesList.addQuestionnaire(n)},300)},300),this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Questionnaire saved successfully",panelClass:["green-snackbar"]})},n=>{this.savingQuestionnaire=!1,this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})})}listQuestionnaires(){this.fhirService.getQuestionnairesByTag(this.selectedUserTag).pipe(vo()).subscribe(e=>{},e=>{console.error(e)})}openLoadQuestionnairesDialog(){this.dialog.open(ire,{width:"70%"}).afterClosed().subscribe(n=>{this.loadQuestionnaire(n)})}setFhirServer(){this.fhirService.setBaseUrl(this.selectedFhirServer),this.fhirService.setUserTag(this.selectedUserTag)}setupFhirServer(){this.dialog.open(tw,{width:"60%"})}switchToValidateTab(e){this.loadQuestionnaire(e),this.tabGroup.selectedIndex=2}switchToPreviewTab(e){this.loadQuestionnaire(e),this.tabGroup.selectedIndex=1}advanceFromStep1(){"edit"==this.step1Response?window.open("https://lhcformbuilder.nlm.nih.gov/","_blank"):"validate"==this.step1Response?(this.mode="Validator",setTimeout(()=>{this.uploadInput.nativeElement.click()},200)):"repository"==this.step1Response?this.dialog.open(tw,{width:"60%"}).afterClosed().subscribe(n=>{n&&(this.mode="Manager")}):"example"==this.step1Response?(this.mode="Validator",setTimeout(()=>{this.loadExampleQuestionnaire()},300)):"reconnect"==this.step1Response&&(this.mode="Manager"),this.step1Response=""}getCurrentTabName(){const e=this.tabGroup.selectedIndex;return null!=e?this.tabGroup._tabs.toArray()[e].textLabel:""}onTabChange(e){"Preview"===this.tabGroup._tabs.toArray()[e].textLabel&&setTimeout(()=>{this.previewForm()},300)}openModularQuestionnaireModal(){this.dialog.open(hP,{width:"75%"}).afterClosed().subscribe(n=>{n&&this.questionnaireService.generateRootQuestionnaire(n.title,n.questionnaires).then(r=>{this.postQuestionnaire(r)}).catch(r=>{console.error("Error:",r)})})}}return t.\u0275fac=function(e){return new(e||t)(b(Ns),b(Nr),b(mf),b(fP),b(Kd),b(Nd))},t.\u0275cmp=Ve({type:t,selectors:[["app-questionnaires-main"]],viewQuery:function(e,n){if(1&e&&(st(Jc,5),st(sf,5),st(zre,5),st($re,5)),2&e){let r;ye(r=we())&&(n.sort=r.first),ye(r=we())&&(n.tabGroup=r.first),ye(r=we())&&(n.questionnairesList=r.first),ye(r=we())&&(n.uploadInput=r.first)}},decls:11,vars:4,consts:[[1,"header-container"],[1,"header"],[1,"breadcrumb"],["href","javascript:void(0)",3,"click"],[4,"ngIf"],["id","step1",4,"ngIf"],["id","step1"],["aria-label","Select an option",3,"ngModel","ngModelChange"],["value","edit"],["value","example"],["value","validate"],["value","repository"],["id","reconnect",4,"ngIf"],[1,"step-button-container"],["mat-flat-button","","color","accent",3,"disabled","click"],["id","reconnect"],["href","javascript:void(0)","id","reconnect-link",3,"click"],[1,"muted"],[1,"button-container","bottom-spacer"],["type","file","hidden","",3,"change"],["fileInput",""],["mat-flat-button","","color","accent",3,"disabled","click",4,"ngIf"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange"],["label","My Questionnaires",4,"ngIf"],["label","Preview"],[1,"tab-container"],["id","myFormContainer"],["label","Validate SNOMED Bindings"],[3,"questionnaire","questionnaireUpdated","validatingQuestionnaire"],["validateQuestionnaire",""],["href","selectedFhirServer"],["label","My Questionnaires"],[3,"config","validateQuestionnaire","previewQuestionnaire"],["questionnairesList",""]],template:function(e,n){1&e&&(v(0,"div",0)(1,"h2",1),E(2," SNOMED CT Terminology Bindings Validator - FHIR Questionnaire Manager "),y(),v(3,"div",2)(4,"span")(5,"a",3),X("click",function(){return n.mode="step1"}),E(6,"Home"),y(),H(7,jre,2,0,"span",4),H(8,Wre,2,0,"span",4),y()()(),H(9,qre,16,3,"div",5),H(10,Kre,18,8,"div",4)),2&e&&(k(7),T("ngIf","Validator"==n.mode),k(1),T("ngIf","Manager"==n.mode),k(1),T("ngIf","step1"==n.mode),k(1),T("ngIf","Manager"==n.mode||"Validator"==n.mode))},dependencies:[fn,Lr,Qo,Co,g0,sf,Yo,J1,ew,mP,Ure],styles:[".header[_ngcontent-%COMP%]{margin-left:2rem;margin-top:1rem}.table-container[_ngcontent-%COMP%]{margin-left:2rem;margin-right:2rem}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.bottom-spacer[_ngcontent-%COMP%]{margin-bottom:1rem}.pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;font-weight:700;text-align:center;display:inline-block;font-size:.8rem}.pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.mini-pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;text-align:center;font-weight:700;font-size:.9rem;margin-right:2rem;float:right}.mini-pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.mini-pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.mini-pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.progress-container[_ngcontent-%COMP%]{margin-top:1rem;position:relative;width:30%}.progress-label[_ngcontent-%COMP%]{position:absolute;width:100%;text-align:center;top:60%;transform:translateY(-50%);font-size:.9rem;font-weight:700}.bindingsCount[_ngcontent-%COMP%]{font-size:1rem;font-weight:lighter}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.code-link[_ngcontent-%COMP%]{font-size:.8rem}.server-name[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:maroon}.replacement[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:#00800b;display:flex;align-items:center;font-size:.9rem;margin-left:2rem}.concept-is-inactive[_ngcontent-%COMP%]{color:maroon;font-size:.9rem;margin-bottom:0rem}#myFormContainer[_ngcontent-%COMP%], #tab-header[_ngcontent-%COMP%]{margin-top:1rem}.tab-container[_ngcontent-%COMP%]{padding-top:1rem;padding-left:2rem;padding-right:2rem}.outgoing-link[_ngcontent-%COMP%]{font-size:.8rem;float:right;margin-right:2rem}#step1[_ngcontent-%COMP%]{margin-top:2rem;margin-left:2rem;font-size:large}#step1[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%]{margin-left:2rem;display:flex;flex-direction:column;align-items:flex-start}.step-button-container[_ngcontent-%COMP%]{margin-left:30rem;margin-top:2rem}.breadcrumb[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:2rem}.header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.hidden[_ngcontent-%COMP%]{visibility:hidden}.muted[_ngcontent-%COMP%]{color:#8f9397}#reconnect[_ngcontent-%COMP%]{margin-left:5rem}#reconnect-link[_ngcontent-%COMP%]{display:flex;vertical-align:middle;flex-direction:row}"]}),t})()},{path:"implementation-course/subset-validator",component:(()=>{class t{constructor(e,n,r){this.http=e,this.terminologyService=n,this._snackBar=r,this.studentSubsetMembersDisplayedColumns=["referencedComponentId","name","result","scope"],this.studentSubsetMembersDataSource=new Yh,this.studentSubsetmembers=[],this.studentSubsetDefinition="",this.definitionValidationResult="",this.definitionVsMembersValudationResult="",this.membersValidationResult="",this.validatingMembers=!1,this.validatingDefinition=!1,this.loading=!1,this.ok="\u2705",this.error="\u{1f7e5}",this.referenceData=[],this.moduleDReferenceData=[{referencedComponentId:"403197009",name:"Sun-induced wrinkles"},{referencedComponentId:"279002006",name:"Lichenification of skin"},{referencedComponentId:"274672009",name:"Changes in skin texture"},{referencedComponentId:"271767006",name:"Peeling of skin"},{referencedComponentId:"271761007",name:"Scaly skin"},{referencedComponentId:"247434009",name:"Wrinkled skin"}],this.referenceDataDisplayedColumns=["referencedComponentId","name"],this.referenceDataDataSource=new Yh(this.referenceData),this.referenceDefinition="",this.moduleDReferenceDefinition="< 185823004 |Finding of skin texture (finding)|",this.selectedAssignment="Module D"}ngAfterViewInit(){this.setAssignment("Module D")}setAssignment(e){"Module D"===e&&(this.referenceData=this.moduleDReferenceData,this.referenceDefinition=this.moduleDReferenceDefinition)}validateSubsetMembers(){var e=this;return Oi(function*(){e.validatingMembers=!0,e.membersValidationResult="",e.studentSubsetDefinition&&e.validateExpansion();let n=0,r=0;const a=(yield e.terminologyService.expandValueSet(e.studentSubsetDefinition,"").toPromise()).expansion.contains.map(d=>d.code);a.sort((d,u)=>d.localeCompare(u));const s=e.studentSubsetMembersDataSource.data.map(d=>d.referencedComponentId);s.sort((d,u)=>d.localeCompare(u)),e.definitionVsMembersValudationResult=a.length===s.length&&a.every((d,u)=>d===s[u])?`${e.ok} The members list contains exactly the same concepts as the definition expansion`:`${e.error} The members list does not contain exactly the same concepts as the definition expansion`,e.studentSubsetMembersDataSource.data.forEach(d=>{e.referenceData.find(h=>h.referencedComponentId===d.referencedComponentId)?(d.result={value:"Correct",message:""},n++):(d.result={value:"Not acceptable",message:"Subset member not found in reference data"},r++)}),e.validatingMembers=!1,e.membersValidationResult=`${r>0?e.error:e.ok} The student Members list contains ${n} correct concepts, and ${r} incorrect concepts, based on the exercise reference data`})()}validateExpansion(){var e=this;return Oi(function*(){e.validatingDefinition=!0,e.definitionValidationResult="";let n=yield e.terminologyService.expandValueSet(e.studentSubsetDefinition,"").toPromise(),r=yield e.terminologyService.expandValueSet(e.referenceDefinition,"").toPromise(),o=0;e.studentSubsetMembersDataSource.data.forEach(c=>{r.expansion.contains.find(d=>d.code===c.referencedComponentId)?c.scope={value:"Not in expansion",message:""}:(c.scope={value:"In expansion",message:""},o++)});const a=Math.round(o/n.expansion.contains.length*100);e.validatingDefinition=!1,e.definitionValidationResult=`${o>0?e.error:e.ok} The student ECL Definition Expasion contains ${o} concepts that out of scope from expected answer (${a}%)`})()}onSubsetmembersFileSelected(e){this.studentSubsetmembers=[],this.studentSubsetMembersDataSource=new Yh,this.studentSubsetMembersDataSource.sort=this.sort,this.loading=!0;const n=e.target.files?.[0];if(n){const r=new FileReader;r.onload=o=>{try{const s=r.result.split("\n"),c=s[0].split("\t");if(c.length<2)throw new Error("Invalid file format");const l=c.indexOf("referencedComponentId"),d=c.indexOf("name");if(l<0||d<0)throw new Error("Invalid file format");const u=[];for(let h=1;hh.name.localeCompare(f.name)),this.studentSubsetMembersDataSource.data=u,this.loading=!1}catch(a){this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Error reading file: "+a.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(n)}else this.loading=!1}onDefinitionFileSelected(e){this.studentSubsetDefinition="",this.loading=!0;const n=e.target.files?.[0];if(n){const r=new FileReader;r.onload=o=>{try{const c=r.result.replace(/\r/g,"").split("\n"),l=c[0].split("\t");if(l.length<2)throw new Error("Invalid file format");const d=l.indexOf("referencedComponentId"),u=l.indexOf("definition");if(d<0||u<0)throw new Error("Invalid file format");this.studentSubsetDefinition=c[1].split("\t")[u],this.loading=!1}catch(a){this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Error reading file: "+a.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Qi,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(n)}else this.loading=!1}}return t.\u0275fac=function(e){return new(e||t)(b(Ns),b(Nr),b(Nd))},t.\u0275cmp=Ve({type:t,selectors:[["app-subset-validator"]],viewQuery:function(e,n){if(1&e&&st(Jc,5),2&e){let r;ye(r=we())&&(n.sort=r.first)}},decls:43,vars:8,consts:[[1,"layout-container"],[1,"left-column"],[1,"upload-controls"],["class","terminal-style",4,"ngIf"],["type","file",2,"display","none",3,"change"],["fileInput",""],["fileInputDefinition",""],[1,"buttons-panel"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","primary",3,"disabled","click"],["class","spinner","diameter","30",4,"ngIf"],["class","blue-rounded-div",4,"ngIf"],["class","table-container",4,"ngIf"],[1,"right-column"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],[1,"wide-menu"],["demosMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"instructions"],[1,"terminal-style"],["diameter","30",1,"spinner"],[1,"blue-rounded-div"],[1,"validation-result"],[1,"table-container"],["mat-table","",3,"dataSource"],["matColumnDef","referencedComponentId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","result"],["matColumnDef","scope"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(e,n){if(1&e){const r=Je();v(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3"),E(4,"Subset Members Validator"),y(),v(5,"p"),E(6),y(),H(7,Jre,2,1,"p",3),v(8,"input",4,5),X("change",function(a){return n.onSubsetmembersFileSelected(a)}),y(),v(10,"input",4,6),X("change",function(a){return n.onDefinitionFileSelected(a)}),y(),v(12,"div",7)(13,"button",8),X("click",function(){return Me(r),Ae(Nt(11).click())}),E(14,"Upload Definition File"),y(),v(15,"button",8),X("click",function(){return Me(r),Ae(Nt(9).click())}),E(16,"Upload Members File"),y(),v(17,"button",9),X("click",function(){return n.validateSubsetMembers()}),E(18,"Validate"),y(),H(19,eoe,1,0,"mat-spinner",10),y(),H(20,toe,9,3,"div",11),y(),H(21,hoe,16,3,"div",12),y(),v(22,"div",13)(23,"h3"),E(24,"Assignment"),y(),v(25,"button",14),E(26),y(),v(27,"mat-menu",15,16)(29,"button",17),X("click",function(){return n.setAssignment("moduleD")}),E(30,"Module D Assignment"),y()(),v(31,"h3"),E(32,"Instructions"),y(),v(33,"div",18)(34,"ol")(35,"li"),E(36,"Select assignment"),y(),v(37,"li"),E(38,"Upload definition file"),y(),v(39,"li"),E(40,"Upload members file"),y(),v(41,"li"),E(42,"Click validate"),y()()()()()}if(2&e){const r=Nt(28);k(6),It("Validating against ",n.terminologyService.getFhirUrlParam(),""),k(1),T("ngIf",n.studentSubsetDefinition),k(10),T("disabled",!n.studentSubsetDefinition||!n.studentSubsetMembersDataSource.data.length),k(2),T("ngIf",n.loading||n.validatingMembers||n.validatingDefinition),k(1),T("ngIf",n.definitionValidationResult||n.membersValidationResult),k(1),T("ngIf",!n.loading&&n.studentSubsetMembersDataSource.data.length),k(4),T("matMenuTriggerFor",r),k(1),It("Selected assignment: ",n.selectedAssignment,"")}},dependencies:[fn,Lr,jc,wa,Wc,Bd,Wh,$d,Gh,jd,zd,qh,Wd,Gd,Xh,Qh],styles:["[_nghost-%COMP%]{display:block;height:calc(100% - 65px)}.layout-container[_ngcontent-%COMP%]{display:flex;height:100%}.left-column[_ngcontent-%COMP%]{flex:0 0 68%;display:flex;flex-direction:column;height:100%}.right-column[_ngcontent-%COMP%]{flex:0 0 28%}.buttons-panel[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1rem}.upload-controls[_ngcontent-%COMP%], .table-container[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.table-container[_ngcontent-%COMP%]{overflow-y:auto}.upload-controls[_ngcontent-%COMP%]{margin-left:20px}table[_ngcontent-%COMP%]{width:100%}.validation-result[_ngcontent-%COMP%]{font-weight:400;font-size:smaller}.blue-rounded-div[_ngcontent-%COMP%]{border-radius:10px;background-color:#4d7fb4;padding:10px;width:80%;color:#f5f5f5;margin-top:20px}.terminal-style[_ngcontent-%COMP%]{font-family:monospace;font-size:.9rem;background-color:#000;color:#fff;padding:10px;border-radius:10px;margin-top:20px;width:80%}h4[_ngcontent-%COMP%]{margin-top:10px}.instructions[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px;font-weight:lighter;font-size:larger}"]}),t})()}];let moe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[KA.forRoot(foe,{useHash:!0}),KA]}),t})();const poe=[{title:"GROUP 1",description:"The first group of bindings in the coding demonstration",bindings:[{title:"Medicinal product + groupers",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n [0..0] 1142139005 |Count of base of active ingredient| = *,\n [0..0] 411116001 |Has manufactured dose form| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, contain at least provided ingredientes (open world assuption), no information on form."},{title:"Gender",type:"dropdown",ecl:"< 365873007 |Gender finding (finding)|",value:"",note:"Patient gender."},{title:"Medicinal product form + groupers",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n [0..0] 1142139005 |Count of base of active ingredient| = *,\n 411116001 |Has manufactured dose form| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, with form details."}]},{title:"GROUP 2",description:"The second group of bindings in the coding demonstration",bindings:[{title:"Medicinal product only",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n 1142139005 |Count of base of active ingredient| = *,\n [0..0] 411116001 |Has manufactured dose form| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, containing only the provided ingredientes (close world assuption), with no information on form."},{title:"Medicinal product form only",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n 1142139005 |Count of base of active ingredient| = *,\n 411116001 |Has manufactured dose form| = *,\n [0..0] 732943007 |Has basis of strength substance (attribute)| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, with form details, containing only the provided ingredientes (close world assuption)."}]}];let goe=(()=>{class t{constructor(){}getCodingSpec(){return poe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Mt,pf={version:"0.19.3"},Fn=1200,el=1252,_oe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],iw={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},E0=function(t){-1!=_oe.indexOf(t)&&(el=iw[0]=t)},Do=function(t){Fn=t,E0(t)};var gf=function(i){return String.fromCharCode(i)},nw=function(i){return String.fromCharCode(i)},an=null,vP=!0,So="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function A0(t){for(var i="",e=0,n=0,r=0,o=0,a=0,s=0,c=0,l=0;l>2,a=(3&e)<<4|(n=t.charCodeAt(l++))>>4,s=(15&n)<<2|(r=t.charCodeAt(l++))>>6,c=63&r,isNaN(n)?s=c=64:isNaN(r)&&(c=64),i+=So.charAt(o)+So.charAt(a)+So.charAt(s)+So.charAt(c);return i}function io(t){var i="",o=0,a=0,s=0,c=0;t=t.replace(/^data:([^\/]+\/[^\/]+)?;base64\,/,"").replace(/[^\w\+\/\=]/g,"");for(var l=0;l>4),64!==(s=So.indexOf(t.charAt(l++)))&&(i+=String.fromCharCode((15&a)<<4|s>>2)),64!==(c=So.indexOf(t.charAt(l++)))&&(i+=String.fromCharCode((3&s)<<6|c));return i}var Vt=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Sa=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(i,e){return e?new Buffer(i,e):new Buffer(i)}:Buffer.from.bind(Buffer)}return function(){}}(),_f=function(){if(typeof Buffer>"u")return!1;var t=Sa([65,0]);return!!t&&1==t.toString("utf16le").length}();function Xs(t){return Vt?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function xP(t){return Vt?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var kr=function(i){return Vt?Sa(i,"binary"):i.split("").map(function(e){return 255&e.charCodeAt(0)})};function bf(t){if(typeof ArrayBuffer>"u")return kr(t);for(var i=new ArrayBuffer(t.length),e=new Uint8Array(i),n=0;n!=t.length;++n)e[n]=255&t.charCodeAt(n);return i}function Ea(t){if(Array.isArray(t))return t.map(function(n){return String.fromCharCode(n)}).join("");for(var i=[],e=0;e=0;)i+=t.charAt(e--);return i}function Ko(t,i){var e=""+t;return e.length>=i?e:ri("0",i-e.length)+e}function ow(t,i){var e=""+t;return e.length>=i?e:ri(" ",i-e.length)+e}function I0(t,i){var e=""+t;return e.length>=i?e:e+ri(" ",i-e.length)}var yP=Math.pow(2,32);function tu(t,i){return t>yP||t<-yP?function koe(t,i){var e=""+Math.round(t);return e.length>=i?e:ri("0",i-e.length)+e}(t,i):function Doe(t,i){var e=""+t;return e.length>=i?e:ri("0",i-e.length)+e}(Math.round(t),i)}function F0(t,i){return t.length>=7+(i=i||0)&&103==(32|t.charCodeAt(i))&&101==(32|t.charCodeAt(i+1))&&110==(32|t.charCodeAt(i+2))&&101==(32|t.charCodeAt(i+3))&&114==(32|t.charCodeAt(i+4))&&97==(32|t.charCodeAt(i+5))&&108==(32|t.charCodeAt(i+6))}var wP=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],aw=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],ut={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "'},CP={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Eoe={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function R0(t,i,e){for(var n=t<0?-1:1,r=t*n,o=0,a=1,s=0,c=1,l=0,d=0,u=Math.floor(r);li&&(l>i?(d=c,s=o):(d=l,s=a)),!e)return[0,n*s,d];var h=Math.floor(n*s/d);return[h,n*s-h*d,d]}function Qs(t,i,e){if(t>2958465||t<0)return null;var n=0|t,r=Math.floor(86400*(t-n)),o=0,a=[],s={D:n,T:r,u:86400*(t-n)-r,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),i&&i.date1904&&(n+=1462),s.u>.9999&&(s.u=0,86400==++r&&(s.T=r=0,++n,++s.D)),60===n)a=e?[1317,10,29]:[1900,2,29],o=3;else if(0===n)a=e?[1317,8,29]:[1900,1,0],o=6;else{n>60&&--n;var c=new Date(1900,0,1);c.setDate(c.getDate()+n-1),a=[c.getFullYear(),c.getMonth()+1,c.getDate()],o=c.getDay(),n<60&&(o=(o+6)%7),e&&(o=function Roe(t,i){i[0]-=581;var e=t.getDay();return t<60&&(e=(e+6)%7),e}(c,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=r%60,r=Math.floor(r/60),s.M=r%60,r=Math.floor(r/60),s.H=r,s.q=o,s}var kP=new Date(1899,11,31,0,0,0),Toe=kP.getTime(),Moe=new Date(1900,2,1,0,0,0);function DP(t,i){var e=t.getTime();return i?e-=1262304e5:t>=Moe&&(e+=864e5),(e-(Toe+6e4*(t.getTimezoneOffset()-kP.getTimezoneOffset())))/864e5}function sw(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function tl(t,i){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):function xf(t){var e,i=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return e=i>=-4&&i<=-1?t.toPrecision(10+i):Math.abs(i)<=9?function Ioe(t){var i=t<0?12:11,e=sw(t.toFixed(12));return e.length<=i||(e=t.toPrecision(10)).length<=i?e:t.toExponential(5)}(t):10===i?t.toFixed(10).substr(0,12):function Foe(t){var i=sw(t.toFixed(11));return i.length>(t<0?12:11)||"0"===i||"-0"===i?t.toPrecision(6):i}(t),sw(function Aoe(t){return-1==t.indexOf("E")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(e.toUpperCase()))}(t);case"undefined":return"";case"object":if(null==t)return"";if(t instanceof Date)return Vr(14,DP(t,i&&i.date1904),i)}throw new Error("unsupported value in General format: "+t)}function Ooe(t,i,e,n){var c,r="",o=0,a=0,s=e.y,l=0;switch(t){case 98:s=e.y+543;case 121:switch(i.length){case 1:case 2:c=s%100,l=2;break;default:c=s%1e4,l=4}break;case 109:switch(i.length){case 1:case 2:c=e.m,l=i.length;break;case 3:return aw[e.m-1][1];case 5:return aw[e.m-1][0];default:return aw[e.m-1][2]}break;case 100:switch(i.length){case 1:case 2:c=e.d,l=i.length;break;case 3:return wP[e.q][0];default:return wP[e.q][1]}break;case 104:switch(i.length){case 1:case 2:c=1+(e.H+11)%12,l=i.length;break;default:throw"bad hour format: "+i}break;case 72:switch(i.length){case 1:case 2:c=e.H,l=i.length;break;default:throw"bad hour format: "+i}break;case 77:switch(i.length){case 1:case 2:c=e.M,l=i.length;break;default:throw"bad minute format: "+i}break;case 115:if("s"!=i&&"ss"!=i&&".0"!=i&&".00"!=i&&".000"!=i)throw"bad second format: "+i;return 0!==e.u||"s"!=i&&"ss"!=i?(a=n>=2?3===n?1e3:100:1===n?10:1,(o=Math.round(a*(e.S+e.u)))>=60*a&&(o=0),"s"===i?0===o?"0":""+o/a:(r=Ko(o,2+n),"ss"===i?r.substr(0,2):"."+r.substr(2,i.length-1))):Ko(e.S,i.length);case 90:switch(i){case"[h]":case"[hh]":c=24*e.D+e.H;break;case"[m]":case"[mm]":c=60*(24*e.D+e.H)+e.M;break;case"[s]":case"[ss]":c=60*(60*(24*e.D+e.H)+e.M)+Math.round(e.S+e.u);break;default:throw"bad abstime format: "+i}l=3===i.length?1:2;break;case 101:c=s,l=1}return l>0?Ko(c,l):""}function us(t){if(t.length<=3)return t;for(var e=t.length%3,n=t.substr(0,e);e!=t.length;e+=3)n+=(n.length>0?",":"")+t.substr(e,3);return n}var SP=/%/g;function EP(t,i){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==i)return"0.0E+0";if(i<0)return"-"+EP(t,-i);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var o=Math.floor(Math.log(i)*Math.LOG10E)%r;if(o<0&&(o+=r),-1===(e=(i/Math.pow(10,o)).toPrecision(n+1+(r+o)%r)).indexOf("e")){var a=Math.floor(Math.log(i)*Math.LOG10E);for(-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(a-e.length+o):e+="E+"+(a-o);"0."===e.substr(0,2);)e=(e=e.charAt(0)+e.substr(2,r)+"."+e.substr(2+r)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,c,l,d){return c+l+d.substr(0,(r+o)%r)+"."+d.substr(o)+"E"})}else e=i.toExponential(n);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}var TP=/# (\?+)( ?)\/( ?)(\d+)/,MP=/^#*0*\.([0#]+)/,AP=/\).*[0#]/,IP=/\(###\) ###\\?-####/;function Dr(t){for(var e,i="",n=0;n!=t.length;++n)switch(e=t.charCodeAt(n)){case 35:break;case 63:i+=" ";break;case 48:i+="0";break;default:i+=String.fromCharCode(e)}return i}function FP(t,i){var e=Math.pow(10,i);return""+Math.round(t*e)/e}function RP(t,i){var e=t-Math.floor(t),n=Math.pow(10,i);return i<(""+Math.round(e*n)).length?0:Math.round(e*n)}function Eo(t,i,e){if(40===t.charCodeAt(0)&&!i.match(AP)){var n=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Eo("n",n,e):"("+Eo("n",n,-e)+")"}if(44===i.charCodeAt(i.length-1))return function Loe(t,i,e){for(var n=i.length-1;44===i.charCodeAt(n-1);)--n;return hs(t,i.substr(0,n),e/Math.pow(10,3*(i.length-n)))}(t,i,e);if(-1!==i.indexOf("%"))return function Poe(t,i,e){var n=i.replace(SP,""),r=i.length-n.length;return hs(t,n,e*Math.pow(10,2*r))+ri("%",r)}(t,i,e);if(-1!==i.indexOf("E"))return EP(i,e);if(36===i.charCodeAt(0))return"$"+Eo(t,i.substr(" "==i.charAt(1)?2:1),e);var r,o,a,s,c=Math.abs(e),l=e<0?"-":"";if(i.match(/^00+$/))return l+tu(c,i.length);if(i.match(/^[#?]+$/))return"0"===(r=tu(e,0))&&(r=""),r.length>i.length?r:Dr(i.substr(0,i.length-r.length))+r;if(o=i.match(TP))return function Noe(t,i,e){var n=parseInt(t[4],10),r=Math.round(i*n),o=Math.floor(r/n),a=r-o*n,s=n;return e+(0===o?"":""+o)+" "+(0===a?ri(" ",t[1].length+1+t[4].length):ow(a,t[1].length)+t[2]+"/"+t[3]+Ko(s,t[4].length))}(o,c,l);if(i.match(/^#+0+$/))return l+tu(c,i.length-i.indexOf("0"));if(o=i.match(MP))return r=FP(e,o[1].length).replace(/^([^\.]+)$/,"$1."+Dr(o[1])).replace(/\.$/,"."+Dr(o[1])).replace(/\.(\d*)$/,function(m,g){return"."+g+ri("0",Dr(o[1]).length-g.length)}),-1!==i.indexOf("0.")?r:r.replace(/^0\./,".");if(i=i.replace(/^#+([0.])/,"$1"),o=i.match(/^(0*)\.(#*)$/))return l+FP(c,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=i.match(/^#{1,3},##0(\.?)$/))return l+us(tu(c,0));if(o=i.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Eo(t,i,-e):us(""+(Math.floor(e)+function Voe(t,i){return i<(""+Math.round((t-Math.floor(t))*Math.pow(10,i))).length?1:0}(e,o[1].length)))+"."+Ko(RP(e,o[1].length),o[1].length);if(o=i.match(/^#,#*,#0/))return Eo(t,i.replace(/^#,#*,/,""),e);if(o=i.match(/^([0#]+)(\\?-([0#]+))+$/))return r=eu(Eo(t,i.replace(/[\\-]/g,""),e)),a=0,eu(eu(i.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}(e)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Ko(0,3-m.length):"")+m})+"."+Ko(a,o[1].length);switch(i){case"###,##0.00":return Eo(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var f=us(tu(c,0));return"0"!==f?l+f:"";case"###,###.00":return Eo(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return Eo(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+i+"|")}function OP(t,i){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==i)return"0.0E+0";if(i<0)return"-"+OP(t,-i);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var o=Math.floor(Math.log(i)*Math.LOG10E)%r;if(o<0&&(o+=r),!(e=(i/Math.pow(10,o)).toPrecision(n+1+(r+o)%r)).match(/[Ee]/)){var a=Math.floor(Math.log(i)*Math.LOG10E);-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(a-e.length+o):e+="E+"+(a-o),e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,c,l,d){return c+l+d.substr(0,(r+o)%r)+"."+d.substr(o)+"E"})}else e=i.toExponential(n);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}function Ta(t,i,e){if(40===t.charCodeAt(0)&&!i.match(AP)){var n=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Ta("n",n,e):"("+Ta("n",n,-e)+")"}if(44===i.charCodeAt(i.length-1))return function Uoe(t,i,e){for(var n=i.length-1;44===i.charCodeAt(n-1);)--n;return hs(t,i.substr(0,n),e/Math.pow(10,3*(i.length-n)))}(t,i,e);if(-1!==i.indexOf("%"))return function zoe(t,i,e){var n=i.replace(SP,""),r=i.length-n.length;return hs(t,n,e*Math.pow(10,2*r))+ri("%",r)}(t,i,e);if(-1!==i.indexOf("E"))return OP(i,e);if(36===i.charCodeAt(0))return"$"+Ta(t,i.substr(" "==i.charAt(1)?2:1),e);var r,o,a,s,c=Math.abs(e),l=e<0?"-":"";if(i.match(/^00+$/))return l+Ko(c,i.length);if(i.match(/^[#?]+$/))return r=""+e,0===e&&(r=""),r.length>i.length?r:Dr(i.substr(0,i.length-r.length))+r;if(o=i.match(TP))return function Boe(t,i,e){return e+(0===i?"":""+i)+ri(" ",t[1].length+2+t[4].length)}(o,c,l);if(i.match(/^#+0+$/))return l+Ko(c,i.length-i.indexOf("0"));if(o=i.match(MP))return r=(r=(""+e).replace(/^([^\.]+)$/,"$1."+Dr(o[1])).replace(/\.$/,"."+Dr(o[1]))).replace(/\.(\d*)$/,function(m,g){return"."+g+ri("0",Dr(o[1]).length-g.length)}),-1!==i.indexOf("0.")?r:r.replace(/^0\./,".");if(i=i.replace(/^#+([0.])/,"$1"),o=i.match(/^(0*)\.(#*)$/))return l+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=i.match(/^#{1,3},##0(\.?)$/))return l+us(""+c);if(o=i.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Ta(t,i,-e):us(""+e)+"."+ri("0",o[1].length);if(o=i.match(/^#,#*,#0/))return Ta(t,i.replace(/^#,#*,/,""),e);if(o=i.match(/^([0#]+)(\\?-([0#]+))+$/))return r=eu(Ta(t,i.replace(/[\\-]/g,""),e)),a=0,eu(eu(i.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a-1||"\\"==e&&"-"==t.charAt(i+1)&&"0#".indexOf(t.charAt(i+2))>-1););break;case"?":for(;t.charAt(++i)===e;);break;case"*":++i,(" "==t.charAt(i)||"*"==t.charAt(i))&&++i;break;case"(":case")":++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;i-1;);break;default:++i}return!1}var LP=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function NP(t,i){if(null==i)return!1;var e=parseFloat(i[2]);switch(i[1]){case"=":if(t==e)return!0;break;case">":if(t>e)return!0;break;case"<":if(t":if(t!=e)return!0;break;case">=":if(t>=e)return!0;break;case"<=":if(t<=e)return!0}return!1}function Vr(t,i,e){null==e&&(e={});var n="";switch(typeof t){case"string":n="m/d/yy"==t&&e.dateNF?e.dateNF:t;break;case"number":null==(n=14==t&&e.dateNF?e.dateNF:(null!=e.table?e.table:ut)[t])&&(n=e.table&&e.table[CP[t]]||ut[CP[t]]),null==n&&(n=Eoe[t]||"General")}if(F0(n,0))return tl(i,e);i instanceof Date&&(i=DP(i,e.date1904));var r=function Woe(t,i){var e=function $oe(t){for(var i=[],e=!1,n=0,r=0;n-1&&--n,e.length>4)throw new Error("cannot find right format for |"+e.join("|")+"|");if("number"!=typeof i)return[4,4===e.length||r>-1?e[e.length-1]:"@"];switch(e.length){case 1:e=r>-1?["General","General","General",e[0]]:[e[0],e[0],e[0],"@"];break;case 2:e=r>-1?[e[0],e[0],e[0],e[1]]:[e[0],e[1],e[0],"@"];break;case 3:e=r>-1?[e[0],e[1],e[0],e[2]]:[e[0],e[1],e[2],"@"]}var o=i>0?e[0]:i<0?e[1]:e[2];if(-1===e[0].indexOf("[")&&-1===e[1].indexOf("["))return[n,o];if(null!=e[0].match(/\[[=<>]/)||null!=e[1].match(/\[[=<>]/)){var a=e[0].match(LP),s=e[1].match(LP);return NP(i,a)?[n,e[0]]:NP(i,s)?[n,e[1]]:[n,e[null!=a&&null!=s?2:1]]}return[n,o]}(n,i);if(F0(r[1]))return tl(i,e);if(!0===i)i="TRUE";else if(!1===i)i="FALSE";else if(""===i||null==i)return"";return function joe(t,i,e,n){for(var l,d,u,r=[],o="",a=0,s="",c="t",h="H";a=12?t.charAt(a+2):s),g.t="T",h="h",a+=3):"AM/PM"===t.substr(a,5).toUpperCase()?(null!=l&&(g.v=l.H>=12?"PM":"AM"),g.t="T",a+=5,h="h"):"\u4e0a\u5348/\u4e0b\u5348"===t.substr(a,5).toUpperCase()?(null!=l&&(g.v=l.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),g.t="T",a+=5,h="h"):(g.t="t",++a),null==l&&"T"===g.t)return"";r[r.length]=g,c=s;break;case"[":for(o=s;"]"!==t.charAt(a++)&&a-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",Ys(t)||(r[r.length]={t:"t",v:o}));break;case".":if(null!=l){for(o=s;++a-1;)o+=s;r[r.length]={t:"n",v:o};break;case"?":for(o=s;t.charAt(++a)===s;)o+=s;r[r.length]={t:s,v:o},c=s;break;case"*":++a,(" "==t.charAt(a)||"*"==t.charAt(a))&&++a;break;case"(":case")":r[r.length]={t:1===n?"t":s,v:s},++a;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=s;a-1;)o+=t.charAt(a);r[r.length]={t:"D",v:o};break;case" ":r[r.length]={t:s,v:s},++a;break;case"$":r[r.length]={t:"t",v:"$"},++a;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(s))throw new Error("unrecognized character "+s+" in "+t);r[r.length]={t:"t",v:s},++a}var w,p=0,_=0;for(a=r.length-1,c="t";a>=0;--a)switch(r[a].t){case"h":case"H":r[a].t=h,c="h",p<1&&(p=1);break;case"s":(w=r[a].v.match(/\.0+$/))&&(_=Math.max(_,w[0].length-1)),p<3&&(p=3);case"d":case"y":case"M":case"e":c=r[a].t;break;case"m":"s"===c&&(r[a].t="M",p<2&&(p=2));break;case"X":break;case"Z":p<1&&r[a].v.match(/[Hh]/)&&(p=1),p<2&&r[a].v.match(/[Mm]/)&&(p=2),p<3&&r[a].v.match(/[Ss]/)&&(p=3)}switch(p){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M)}var M,x="";for(a=0;a0){40==x.charCodeAt(0)?(L=i<0&&45===x.charCodeAt(0)?-i:i,D=hs("n",x,L)):(D=hs("n",x,L=i<0&&n>1?-i:i),L<0&&r[0]&&"t"==r[0].t&&(D=D.substr(1),r[0].v="-"+r[0].v)),M=D.length-1;var B=r.length;for(a=0;a-1){B=a;break}var N=r.length;if(B===r.length&&-1===D.indexOf("E")){for(a=r.length-1;a>=0;--a)null==r[a]||-1==="n?".indexOf(r[a].t)||(M>=r[a].v.length-1?r[a].v=D.substr(1+(M-=r[a].v.length),r[a].v.length):M<0?r[a].v="":(r[a].v=D.substr(0,M+1),M=-1),r[a].t="t",N=a);M>=0&&N=0;--a)if(null!=r[a]&&-1!=="n?".indexOf(r[a].t)){for(d=r[a].v.indexOf(".")>-1&&a===B?r[a].v.indexOf(".")-1:r[a].v.length-1,W=r[a].v.substr(d+1);d>=0;--d)M>=0&&("0"===r[a].v.charAt(d)||"#"===r[a].v.charAt(d))&&(W=D.charAt(M--)+W);r[a].v=W,r[a].t="t",N=a}for(M>=0&&N-1&&a===B?r[a].v.indexOf(".")+1:0,W=r[a].v.substr(0,d);d-1&&(r[a].v=hs(r[a].t,r[a].v,L=n>1&&i<0&&a>0&&"-"===r[a-1].v?-i:i),r[a].t="t");var j="";for(a=0;a!==r.length;++a)null!=r[a]&&(j+=r[a].v);return j}(r[1],i,e,r[0])}function cw(t,i){if("number"!=typeof i){i=+i||-1;for(var e=0;e<392;++e)if(null!=ut[e]){if(ut[e]==t){i=e;break}}else i<0&&(i=e);i<0&&(i=391)}return ut[i]=t,i}function yf(t){for(var i=0;392!=i;++i)void 0!==t[i]&&cw(t[i],i)}function iu(){ut=function Soe(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "',t}()}var VP=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,Qoe={"d.m":"d\\.m"};function Ks(t,i){return cw(Qoe[t]||t,i)}var fs,HP=function(){var t={version:"1.2.0"},e=function i(){for(var D=0,B=new Array(256),N=0;256!=N;++N)B[N]=D=1&(D=1&(D=1&(D=1&(D=1&(D=1&(D=1&(D=1&(D=N)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1;return typeof Int32Array<"u"?new Int32Array(B):B}(),r=function n(D){var B=0,N=0,j=0,Z=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(j=0;256!=j;++j)Z[j]=D[j];for(j=0;256!=j;++j)for(N=D[j],B=256+j;B<4096;B+=256)N=Z[B]=N>>>8^D[255&N];var U=[];for(j=1;16!=j;++j)U[j-1]=typeof Int32Array<"u"&&"function"==typeof Z.subarray?Z.subarray(256*j,256*j+256):Z.slice(256*j,256*j+256);return U}(e),o=r[0],a=r[1],s=r[2],c=r[3],l=r[4],d=r[5],u=r[6],h=r[7],f=r[8],m=r[9],g=r[10],p=r[11],_=r[12],w=r[13],x=r[14];return t.table=e,t.bstr=function M(D,B){for(var N=-1^B,j=0,Z=D.length;j>>8^e[255&(N^D.charCodeAt(j++))];return~N},t.buf=function W(D,B){for(var N=-1^B,j=D.length-15,Z=0;Z>8&255]^_[D[Z++]^N>>16&255]^p[D[Z++]^N>>>24]^g[D[Z++]]^m[D[Z++]]^f[D[Z++]]^h[D[Z++]]^u[D[Z++]]^d[D[Z++]]^l[D[Z++]]^c[D[Z++]]^s[D[Z++]]^a[D[Z++]]^o[D[Z++]]^e[D[Z++]];for(j+=15;Z>>8^e[255&(N^D[Z++])];return~N},t.str=function L(D,B){for(var N=-1^B,j=0,Z=D.length,U=0,me=0;j>>8^e[255&(N^U)]:U<2048?N=(N=N>>>8^e[255&(N^(192|U>>6&31))])>>>8^e[255&(N^(128|63&U))]:U>=55296&&U<57344?(U=64+(1023&U),me=1023&D.charCodeAt(j++),N=(N=(N=(N=N>>>8^e[255&(N^(240|U>>8&7))])>>>8^e[255&(N^(128|U>>2&63))])>>>8^e[255&(N^(128|me>>6&15|(3&U)<<4))])>>>8^e[255&(N^(128|63&me))]):N=(N=(N=N>>>8^e[255&(N^(224|U>>12&15))])>>>8^e[255&(N^(128|U>>6&63))])>>>8^e[255&(N^(128|63&U))];return~N},t}(),lt=function(){var c,i={};function n(C){if("/"==C.charAt(C.length-1))return-1===C.slice(0,-1).indexOf("/")?C:n(C.slice(0,-1));var R=C.lastIndexOf("/");return-1===R?C:C.slice(0,R+1)}function r(C){if("/"==C.charAt(C.length-1))return r(C.slice(0,-1));var R=C.lastIndexOf("/");return-1===R?C:C.slice(R+1)}function o(C,R){"string"==typeof R&&(R=new Date(R));var S=R.getHours();S=(S=S<<6|R.getMinutes())<<5|R.getSeconds()>>>1,C.write_shift(2,S);var I=R.getFullYear()-1980;I=(I=I<<4|R.getMonth()+1)<<5|R.getDate(),C.write_shift(2,I)}function s(C){On(C,0);for(var R={},S=0;C.l<=C.length-4;){var I=C.read_shift(2),O=C.read_shift(2),P=C.l+O,ee={};switch(I){case 21589:1&(S=C.read_shift(1))&&(ee.mtime=C.read_shift(4)),O>5&&(2&S&&(ee.atime=C.read_shift(4)),4&S&&(ee.ctime=C.read_shift(4))),ee.mtime&&(ee.mt=new Date(1e3*ee.mtime));break;case 1:var le=C.read_shift(4),J=C.read_shift(4);ee.usz=J*Math.pow(2,32)+le,le=C.read_shift(4),J=C.read_shift(4),ee.csz=J*Math.pow(2,32)+le}C.l=P,R[I]=ee}return R}function l(){return c||(c=fs)}function d(C,R){if(80==C[0]&&75==C[1])return O3(C,R);if(109==(32|C[0])&&105==(32|C[1]))return function Vve(C,R){if("mime-version:"!=se(C.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var S=R&&R.root||"",I=(Vt&&Buffer.isBuffer(C)?C.toString("binary"):se(C)).split("\r\n"),O=0,P="";for(O=0;O0&&(S=(S=S.slice(0,S.length-1)).slice(0,S.lastIndexOf("/")+1),P.slice(0,S.length)!=S););var ee=(I[1]||"").match(/boundary="(.*?)"/);if(!ee)throw new Error("MAD cannot find boundary");var le="--"+(ee[1]||""),ie={FileIndex:[],FullPaths:[]};D(ie);var De,Te=0;for(O=0;O=O&&(Te-=O),!ee[Te]){J=[];var Oe=[];for(De=Te;De>=0;){Oe[De]=!0,ee[De]=!0,le[le.length]=De,J.push(C[De]);var Ce=S[Math.floor(4*De/I)];if(I<4+(Ye=4*De&te))throw new Error("FAT boundary crossed: "+De+" 4 "+I);if(!C[Ce]||Oe[De=rl(C[Ce],Ye)])break}P[Te]={nodes:le,data:l4([J])}}return P}(Dt,ee,te,I);ee0&&le!==me&&(Ni[le].name="!MiniFAT"),Ni[te[0]].name="!FAT",Ni.fat_addrs=te,Ni.ssz=I;var Sn=[],so=[],sm=[];(function x(C,R,S,I,O,P,ee,le){for(var Ye,J=0,te=I.length?2:0,ie=R[C].data,De=0,Te=0;De0&&J!==me&&(R[J].name="!StreamData")):Ce.size>=4096?(Ce.storage="fat",void 0===R[Ce.start]&&(R[Ce.start]=_(S,Ce.start,R.fat_addrs,R.ssz)),R[Ce.start].name=Ce.name,Ce.content=R[Ce.start].data.slice(0,Ce.size)):(Ce.storage="minifat",Ce.size<0?Ce.size=0:J!==me&&Ce.start!==me&&R[J]&&(Ce.content=g(Ce,R[J].data,(R[le]||{}).data))),Ce.content&&On(Ce.content,0),P[Ye]=Ce,ee.push(Ce)}})(ee,Ni,Dt,Sn,O,{},so,le),function m(C,R,S){for(var I=0,O=0,P=0,ee=0,le=0,J=S.length,te=[],ie=[];I0&&ee>=0;)P.push(R.slice(ee*U,ee*U+U)),O-=U,ee=rl(S,4*ee);return 0===P.length?re(0):xn(P).slice(0,C.size)}function p(C,R,S,I,O){var P=me;if(C===me){if(0!==R)throw new Error("DIFAT chain shorter than expected")}else if(-1!==C){var ee=S[C],le=(I>>>2)-1;if(!ee)return;for(var J=0;J=1&&p(rl(ee,I-4),R-1,S,I,O)}}function _(C,R,S,I,O){var P=[],ee=[];O||(O=[]);var le=I-1,J=0,te=0;for(J=R;J>=0;){O[J]=!0,P[P.length]=J,ee.push(C[J]);var ie=S[Math.floor(4*J/I)];if(I<4+(te=4*J&le))throw new Error("FAT boundary crossed: "+J+" 4 "+I);if(!C[ie])break;J=rl(C[ie],te)}return{nodes:P,data:l4([ee])}}function M(C,R){return new Date(1e3*(zn(C,R+4)/1e7*Math.pow(2,32)+zn(C,R)/1e7-11644473600))}function D(C,R){var S=R||{},I=S.root||"Root Entry";if(C.FullPaths||(C.FullPaths=[]),C.FileIndex||(C.FileIndex=[]),C.FullPaths.length!==C.FileIndex.length)throw new Error("inconsistent CFB structure");0===C.FullPaths.length&&(C.FullPaths[0]=I+"/",C.FileIndex[0]={name:I,type:5}),S.CLSID&&(C.FileIndex[0].clsid=S.CLSID),function B(C){var R="\x01Sh33tJ5";if(!lt.find(C,"/"+R)){var S=re(4);S[0]=55,S[1]=S[3]=50,S[2]=54,C.FileIndex.push({name:R,type:2,content:S,size:4,L:69,R:69,C:69}),C.FullPaths.push(C.FullPaths[0]+R),N(C)}}(C)}function N(C,R){D(C);for(var S=!1,I=!1,O=C.FullPaths.length-1;O>=0;--O){var P=C.FileIndex[O];switch(P.type){case 0:I?S=!0:(C.FileIndex.pop(),C.FullPaths.pop());break;case 1:case 2:case 5:I=!0,isNaN(P.R*P.L*P.C)&&(S=!0),P.R>-1&&P.L>-1&&P.R==P.L&&(S=!0);break;default:S=!0}}if(S||R){var ee=new Date(1987,1,19),le=0,J=Object.create?Object.create(null):{},te=[];for(O=0;O1?1:-1,De.size=0,De.type=5;else if("/"==Te.slice(-1)){for(le=O+1;le=te.length?-1:le,le=O+1;le=te.length?-1:le,De.type=1}else n(C.FullPaths[O+1]||"")==n(Te)&&(De.R=O+1),De.type=2}}}function j(C,R){var S=R||{};if("mad"==S.fileType)return function Hve(C,R){for(var S=R||{},I=S.boundary||"SheetJS",O=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(I="------="+I).slice(2)+'"',"","",""],P=C.FullPaths[0],ee=P,le=C.FileIndex[0],J=1;J=32&&Ye<128&&++De;var Ce=De>=4*Te/5;O.push(I),O.push("Content-Location: "+(S.root||"file:///C:/SheetJS/")+ee),O.push("Content-Transfer-Encoding: "+(Ce?"quoted-printable":"base64")),O.push("Content-Type: "+Ove(le,ee)),O.push(""),O.push(Ce?Lve(ie):Pve(ie))}return O.push(I+"--\r\n"),O.join("\r\n")}(C,S);if("zip"===(N(C),S.fileType))return function Rve(C,R){var S=R||{},I=[],O=[],P=re(1),ee=S.compression?8:0,le=0,te=0,ie=0,De=0,Te=0,Ye=C.FullPaths[0],Oe=Ye,Ce=C.FileIndex[0],Dt=[],Ni=0;for(te=1;te0&&($r<4096?Oe+=$r+63>>6:Ce+=$r+511>>9)}}for(var Sn=Ye.FullPaths.length+3>>2,sm=Oe+127>>7,cm=(Oe+7>>3)+Ce+Sn+sm,Cl=cm+127>>7,$C=Cl<=109?0:Math.ceil((Cl-109)/127);cm+Cl+$C+127>>7>Cl;)$C=++Cl<=109?0:Math.ceil((Cl-109)/127);var ws=[1,$C,Cl,sm,Sn,Ce,Oe,0];return Ye.FileIndex[0].size=Oe<<6,ws[7]=(Ye.FileIndex[0].start=ws[0]+ws[1]+ws[2]+ws[3]+ws[4]+ws[5])+(ws[6]+7>>3),ws}(C),O=re(I[7]<<9),P=0,ee=0;for(P=0;P<8;++P)O.write_shift(1,de[P]);for(P=0;P<8;++P)O.write_shift(2,0);for(O.write_shift(2,62),O.write_shift(2,3),O.write_shift(2,65534),O.write_shift(2,9),O.write_shift(2,6),P=0;P<3;++P)O.write_shift(2,0);for(O.write_shift(4,0),O.write_shift(4,I[2]),O.write_shift(4,I[0]+I[1]+I[2]+I[3]-1),O.write_shift(4,0),O.write_shift(4,4096),O.write_shift(4,I[3]?I[0]+I[1]+I[2]-1:me),O.write_shift(4,I[3]),O.write_shift(-4,I[1]?I[0]-1:me),O.write_shift(4,I[1]),P=0;P<109;++P)O.write_shift(-4,P>9));for(le(I[6]+7>>3);511&O.l;)O.write_shift(-4,Y.ENDOFCHAIN);for(ee=P=0,J=0;J=4096)&&(ie.start=ee,le(te+63>>6));for(;511&O.l;)O.write_shift(-4,Y.ENDOFCHAIN);for(P=0;P32&&(console.error("Name "+Te+" will be truncated to "+Te.slice(0,32)),Te=Te.slice(0,32)),te=2*(Te.length+1),O.write_shift(64,Te,"utf16le"),O.write_shift(2,te),O.write_shift(1,ie.type),O.write_shift(1,ie.color),O.write_shift(-4,ie.L),O.write_shift(-4,ie.R),O.write_shift(-4,ie.C),ie.clsid)O.write_shift(16,ie.clsid,"hex");else for(J=0;J<4;++J)O.write_shift(4,0);O.write_shift(4,ie.state||0),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(4,ie.start),O.write_shift(4,ie.size),O.write_shift(4,0)}else{for(J=0;J<17;++J)O.write_shift(4,0);for(J=0;J<3;++J)O.write_shift(4,-1);for(J=0;J<12;++J)O.write_shift(4,0)}}for(P=1;P=4096)if(O.l=ie.start+1<<9,Vt&&Buffer.isBuffer(ie.content))ie.content.copy(O,O.l,0,ie.size),O.l+=ie.size+511&-512;else{for(J=0;J0&&ie.size<4096)if(Vt&&Buffer.isBuffer(ie.content))ie.content.copy(O,O.l,0,ie.size),O.l+=ie.size+63&-64;else{for(J=0;J>16|R>>8|R));function A(C,R){var S=Re[255&C];return R<=8?S>>>8-R:(S=S<<8|Re[C>>8&255],R<=16?S>>>16-R:(S=S<<8|Re[C>>16&255])>>>24-R)}function bt(C,R){var S=7&R,I=R>>>3;return(C[I]|(S<=6?0:C[I+1]<<8))>>>S&3}function Jt(C,R){var S=7&R,I=R>>>3;return(C[I]|(S<=5?0:C[I+1]<<8))>>>S&7}function $t(C,R){var S=7&R,I=R>>>3;return(C[I]|(S<=3?0:C[I+1]<<8))>>>S&31}function Wi(C,R){var S=7&R,I=R>>>3;return(C[I]|(S<=1?0:C[I+1]<<8))>>>S&127}function si(C,R,S){var I=7&R,O=R>>>3,ee=C[O]>>>I;return S<8-I||(ee|=C[O+1]<<8-I,S<16-I)||(ee|=C[O+2]<<16-I,S<24-I)||(ee|=C[O+3]<<24-I),ee&(1<>>3;return I<=5?C[O]|=(7&S)<>8-I),R+3}function Ne(C,R,S){return C[R>>>3]|=S=(1&S)<<(7&R),R+1}function fr(C,R,S){var O=R>>>3;return C[O]|=255&(S<<=7&R),C[O+1]=S>>>=8,R+8}function oi(C,R,S){var O=R>>>3;return C[O]|=255&(S<<=7&R),C[O+1]=255&(S>>>=8),C[O+2]=S>>>8,R+16}function Si(C,R){var S=C.length,I=2*S>R?2*S:R+5,O=0;if(S>=R)return C;if(Vt){var P=xP(I);if(C.copy)C.copy(P);else for(;O>I-De,ee=(1<=0;--ee)R[le|ee<0;)J[J.l++]=le[te++]}return J.l}(J,te):function ee(le,J){for(var te=0,ie=0,De=_e?new Uint16Array(32768):[];ie0;)J[J.l++]=le[ie++];te=8*J.l}else{te=et(J,te,+(ie+Te==le.length)+2);for(var Ye=0;Te-- >0;){var Oe=le[ie],Ce=-1,Dt=0;if((Ce=De[Ye=32767&(Ye<<5^Oe)])&&((Ce|=-32768&ie)>ie&&(Ce-=32768),Ce2){(Oe=O[Dt])<=22?te=fr(J,te,Re[Oe+1]>>1)-1:(fr(J,te,3),fr(J,te+=5,Re[Oe-23]>>5),te+=3);var Ni=Oe<8?0:Oe-4>>2;Ni>0&&(oi(J,te,Dt-z[Oe]),te+=Ni),te=fr(J,te,Re[Oe=R[ie-Ce]]>>3),te-=3;var $r=Oe<4?0:Oe-2>>1;$r>0&&(oi(J,te,ie-Ce-V[Oe]),te+=$r);for(var Sn=0;Sn>>3;return(C[I]|(S<=4?0:C[I+1]<<8))>>>S&15}(C,R+=5)+4;R+=4;for(var P=0,ee=_e?new Uint8Array(19):Er(19),le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],J=1,te=_e?new Uint8Array(8):Er(8),ie=_e?new Uint8Array(8):Er(8),De=ee.length,Te=0;Te>8-Oe;for(var Ce=(1<<7-Oe)-1;Ce>=0;--Ce)Bn[Ye|Ce<>>=3){case 16:for(P=3+bt(C,R),R+=2,Ye=Dt[Dt.length-1];P-- >0;)Dt.push(Ye);break;case 17:for(P=3+Jt(C,R),R+=3;P-- >0;)Dt.push(0);break;case 18:for(P=11+Wi(C,R),R+=7;P-- >0;)Dt.push(0);break;default:Dt.push(Ye),J>>0,le=0,J=0;!(1&I);)if(I=Jt(C,S),S+=3,I>>>1)for(I>>1==1?(le=9,J=5):(S=Ave(C,S),le=wl,J=I3);;){!R&&ee>>1==1?cc[ie]:dn[ie];if(S+=15&De,(De>>>=4)>>>8&255){if(256==De)break;var Te=(De-=257)<8?0:De-4>>2;Te>5&&(Te=0);var Ye=P+z[De];Te>0&&(Ye+=si(C,S,Te),S+=Te),ie=si(C,S,J),S+=15&(De=I>>>1==1?am[ie]:Po[ie]);var Oe=(De>>>=4)<4?0:De-2>>1,Ce=V[De];for(Oe>0&&(Ce+=si(C,S,Oe),S+=Oe),!R&&ee>>3]|C[1+(S>>>3)]<<8;if(S+=32,te>0)for(!R&&ee0;)O[P++]=C[S>>>3],S+=8}return R?[O,S+7>>>3]:[O.slice(0,P),S+7>>>3]}(C.slice(C.l||0),R);return C.l+=I[1],I[0]}function R3(C,R){if(!C)throw new Error(R);typeof console<"u"&&console.error(R)}function O3(C,R){var S=C;On(S,0);var P={FileIndex:[],FullPaths:[]};D(P,{root:R.root});for(var ee=S.length-4;(80!=S[ee]||75!=S[ee+1]||5!=S[ee+2]||6!=S[ee+3])&&ee>=0;)--ee;S.l=ee+4,S.l+=4;var le=S.read_shift(2);S.l+=6;var J=S.read_shift(4);for(S.l=J,ee=0;ee>>=5);S>>>=4,I.setMilliseconds(0),I.setFullYear(S+1980),I.setMonth(P-1),I.setDate(O);var ee=31&R,le=63&(R>>>=5);return I.setHours(R>>>=6),I.setMinutes(le),I.setSeconds(ee<<1),I}(C);if(8257&P)throw new Error("Unsupported ZIP encryption");C.read_shift(4);for(var te=C.read_shift(4),ie=C.read_shift(4),De=C.read_shift(2),Te=C.read_shift(2),Ye="",Oe=0;Oe"u")throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function wf(t,i,e){if(typeof fs<"u"&&fs.writeFileSync)return e?fs.writeFileSync(t,i,e):fs.writeFileSync(t,i);if(typeof Deno<"u"){if(e&&"string"==typeof i)switch(e){case"utf8":i=new TextEncoder(e).encode(i);break;case"binary":i=bf(i);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,i)}var n="utf8"==e?Ma(i):i;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var r=new Blob([Koe(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(r,t);if(typeof saveAs<"u")return saveAs(r,t);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(r);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),chrome.downloads.download({url:o,filename:t,saveAs:!0});var a=document.createElement("a");if(null!=a.download)return a.download=t,a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),o}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(t);return s.open("w"),s.encoding="binary",Array.isArray(i)&&(i=Ea(i)),s.write(i),s.close(),i}catch(c){if(!c.message||!c.message.match(/onstruct/))throw c}throw new Error("cannot save file "+t)}function $i(t){for(var i=Object.keys(t),e=[],n=0;n0?e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3):i<0&&e.setTime(e.getTime()-60*e.getTimezoneOffset()*1e3),e;if(t instanceof Date)return t;if(1917==WP.getFullYear()&&!isNaN(e.getFullYear())){var n=e.getFullYear();return t.indexOf(""+n)>-1||e.setFullYear(e.getFullYear()+100),e}var r=t.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+r[0],+r[1]-1,+r[2],+r[3]||0,+r[4]||0,+r[5]||0);return t.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function il(t,i){if(Vt&&Buffer.isBuffer(t)){if(i&&_f){if(255==t[0]&&254==t[1])return Ma(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Ma(function bP(t){for(var i=[],e=0;e>1;++e)i[e]=String.fromCharCode(t.charCodeAt(2*e+1)+(t.charCodeAt(2*e)<<8));return i.join("")}(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(i){if(255==t[0]&&254==t[1])return Ma(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Ma(new TextDecoder("utf-16be").decode(t.slice(2)))}var e={"\u20ac":"\x80","\u201a":"\x82",\u0192:"\x83","\u201e":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87",\u02c6:"\x88","\u2030":"\x89",\u0160:"\x8a","\u2039":"\x8b",\u0152:"\x8c",\u017d:"\x8e","\u2018":"\x91","\u2019":"\x92","\u201c":"\x93","\u201d":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02dc":"\x98","\u2122":"\x99",\u0161:"\x9a","\u203a":"\x9b",\u0153:"\x9c",\u017e:"\x9e",\u0178:"\x9f"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\u017d\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\u017e\u0178]/g,function(o){return e[o]||o})}catch{}for(var n=[],r=0;r!=t.length;++r)n.push(String.fromCharCode(t[r]));return n.join("")}function yi(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if("object"!=typeof t||null==t)return t;if(t instanceof Date)return new Date(t.getTime());var i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=yi(t[e]));return i}function ri(t,i){for(var e="";e.length3&&-1==oae.indexOf(i))return o}else if(i.replace(/[ap]m?/,"").match(/[a-z]/))return o;return a<0||a>8099||t.match(/[^-0-9:,\/\\]/)?o:r}function Rt(t,i,e){if(t.FullPaths){var n;if("string"==typeof e)return n=Vt?Sa(e):function Coe(t){for(var i=[],e=0,n=t.length+250,r=Xs(t.length+255),o=0;o>6&31,r[e++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var s=1023&t.charCodeAt(++o);r[e++]=240|a>>8&7,r[e++]=128|a>>2&63,r[e++]=128|s>>6&15|(3&a)<<4,r[e++]=128|63&s}else r[e++]=224|a>>12&15,r[e++]=128|a>>6&63,r[e++]=128|63&a;e>n&&(i.push(r.slice(0,e)),e=0,r=Xs(65535),n=65530)}return i.push(r.slice(0,e)),xn(i)}(e),lt.utils.cfb_add(t,i,n);lt.utils.cfb_add(t,i,e)}else t.file(i,e)}function dw(){return lt.utils.cfb_new()}var sn='\r\n',uw=O0({""":'"',"'":"'",">":">","<":"<","&":"&"}),hw=/[&<>'"]/g,hae=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function Ot(t){return(t+"").replace(hw,function(e){return uw[e]}).replace(hae,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function JP(t){return Ot(t).replace(/ /g,"_x0020_")}var e4=/[\u0000-\u001f]/g;function B0(t){return(t+"").replace(hw,function(e){return uw[e]}).replace(/\n/g,"
").replace(e4,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function fw(t){for(var i="",e=0,n=0,r=0,o=0,a=0,s=0;e191&&n<224?(a=(31&n)<<6,a|=63&r,i+=String.fromCharCode(a)):(o=t.charCodeAt(e++),n<240?i+=String.fromCharCode((15&n)<<12|(63&r)<<6|63&o):(s=((7&n)<<18|(63&r)<<12|(63&o)<<6|63&(a=t.charCodeAt(e++)))-65536,i+=String.fromCharCode(55296+(s>>>10&1023)),i+=String.fromCharCode(56320+(1023&s)))));return i}function n4(t){var e,n,s,i=Xs(2*t.length),r=1,o=0,a=0;for(n=0;n>>10&1023),e=56320+(1023&e)),0!==a&&(i[o++]=255&a,i[o++]=a>>>8,a=0),i[o++]=e%256,i[o++]=e>>>8;return i.slice(0,o).toString("ucs2")}function r4(t){return Sa(t,"binary").toString("utf8")}var V0="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",Ci=Vt&&(r4(V0)==fw(V0)&&r4||n4(V0)==fw(V0)&&n4)||fw,Ma=Vt?function(t){return Sa(t,"utf8").toString("binary")}:function(t){for(var i=[],e=0,n=0,r=0;e>6))),i.push(String.fromCharCode(128+(63&n)));break;case n>=55296&&n<57344:n-=55296,r=t.charCodeAt(e++)-56320+(n<<10),i.push(String.fromCharCode(240+(r>>18&7))),i.push(String.fromCharCode(144+(r>>12&63))),i.push(String.fromCharCode(128+(r>>6&63))),i.push(String.fromCharCode(128+(63&r)));break;default:i.push(String.fromCharCode(224+(n>>12))),i.push(String.fromCharCode(128+(n>>6&63))),i.push(String.fromCharCode(128+(63&n)))}return i.join("")},s4=/(^\s|\s$|\n)/;function Qn(t,i){return"<"+t+(i.match(s4)?' xml:space="preserve"':"")+">"+i+""}function Df(t){return $i(t).map(function(i){return" "+i+'="'+t[i]+'"'}).join("")}function Ee(t,i,e){return"<"+t+(null!=e?Df(e):"")+(null!=i?(i.match(s4)?' xml:space="preserve"':"")+">"+i+""}function mw(t,i){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(i)throw e}return""}var Rn={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},nl=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],ro={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"},c4=function(t){for(var i=[],n=0;n0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(i){return Buffer.isBuffer(i)?i:Sa(i)})):c4(t)}:c4,d4=function(t,i,e){for(var n=[],r=i;r0?ru(t,i+4,i+4+e-1):""},pw=m4,p4=function(t,i){var e=zn(t,i);return e>0?ru(t,i+4,i+4+e-1):""},gw=p4,g4=function(t,i){var e=2*zn(t,i);return e>0?ru(t,i+4,i+4+e-1):""},_w=g4,_4=function(i,e){var n=zn(i,e);return n>0?U0(i,e+4,e+4+n):""},bw=_4,b4=function(t,i){var e=zn(t,i);return e>0?ru(t,i+4,i+4+e):""},vw=b4,v4=function(t,i){return function vae(t,i){for(var e=1-2*(t[i+7]>>>7),n=((127&t[i+7])<<4)+(t[i+6]>>>4&15),r=15&t[i+6],o=5;o>=0;--o)r=256*r+t[i+o];return 2047==n?0==r?e*(1/0):NaN:(0==n?n=-1022:(n-=1023,r+=Math.pow(2,52)),e*Math.pow(2,n-52)*r)}(t,i)},z0=v4,xw=function(i){return Array.isArray(i)||typeof Uint8Array<"u"&&i instanceof Uint8Array};Vt&&(pw=function(i,e){if(!Buffer.isBuffer(i))return m4(i,e);var n=i.readUInt32LE(e);return n>0?i.toString("utf8",e+4,e+4+n-1):""},gw=function(i,e){if(!Buffer.isBuffer(i))return p4(i,e);var n=i.readUInt32LE(e);return n>0?i.toString("utf8",e+4,e+4+n-1):""},_w=function(i,e){if(!Buffer.isBuffer(i)||!_f)return g4(i,e);var n=2*i.readUInt32LE(e);return i.toString("utf16le",e+4,e+4+n-1)},bw=function(i,e){if(!Buffer.isBuffer(i)||!_f)return _4(i,e);var n=i.readUInt32LE(e);return i.toString("utf16le",e+4,e+4+n)},vw=function(i,e){if(!Buffer.isBuffer(i))return b4(i,e);var n=i.readUInt32LE(e);return i.toString("utf8",e+4,e+4+n)},z0=function(i,e){return Buffer.isBuffer(i)?i.readDoubleLE(e):v4(i,e)},xw=function(i){return Buffer.isBuffer(i)||Array.isArray(i)||typeof Uint8Array<"u"&&i instanceof Uint8Array}),typeof Mt<"u"&&function x4(){U0=function(t,i,e){return Mt.utils.decode(1200,t.slice(i,e)).replace(or,"")},ru=function(t,i,e){return Mt.utils.decode(65001,t.slice(i,e))},pw=function(t,i){var e=zn(t,i);return e>0?Mt.utils.decode(el,t.slice(i+4,i+4+e-1)):""},gw=function(t,i){var e=zn(t,i);return e>0?Mt.utils.decode(Fn,t.slice(i+4,i+4+e-1)):""},_w=function(t,i){var e=2*zn(t,i);return e>0?Mt.utils.decode(1200,t.slice(i+4,i+4+e-1)):""},bw=function(t,i){var e=zn(t,i);return e>0?Mt.utils.decode(1200,t.slice(i+4,i+4+e)):""},vw=function(t,i){var e=zn(t,i);return e>0?Mt.utils.decode(65001,t.slice(i+4,i+4+e)):""}}();var ou=function(t,i){return t[i]},ms=function(t,i){return 256*t[i+1]+t[i]},yae=function(t,i){var e=256*t[i+1]+t[i];return e<32768?e:-1*(65535-e+1)},zn=function(t,i){return t[i+3]*(1<<24)+(t[i+2]<<16)+(t[i+1]<<8)+t[i]},rl=function(t,i){return t[i+3]<<24|t[i+2]<<16|t[i+1]<<8|t[i]},wae=function(t,i){return t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]};function Sf(t,i){var n,r,a,s,c,l,e="",o=[];switch(i){case"dbcs":if(l=this.l,Vt&&Buffer.isBuffer(this)&&_f)e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(c=0;c0?rl:wae)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===i)return r=8==t?z0(this,this.l):z0([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;t=8;case 16:e=h4(this,this.l,t)}}return this.l+=t,e}var Cae=function(t,i,e){t[e]=255&i,t[e+1]=i>>>8&255,t[e+2]=i>>>16&255,t[e+3]=i>>>24&255},kae=function(t,i,e){t[e]=255&i,t[e+1]=i>>8&255,t[e+2]=i>>16&255,t[e+3]=i>>24&255},Dae=function(t,i,e){t[e]=255&i,t[e+1]=i>>>8&255};function Sae(t,i,e){var n=0,r=0;if("dbcs"===e){for(r=0;r!=i.length;++r)Dae(this,i.charCodeAt(r),this.l+2*r);n=2*i.length}else if("sbcs"===e||"cpstr"==e)if(typeof Mt<"u"&&874==el){for(r=0;r!=i.length;++r){var o=Mt.utils.encode(el,i.charAt(r));this[this.l+r]=o[0]}n=i.length}else if(typeof Mt<"u"&&"cpstr"==e){if((o=Mt.utils.encode(Fn,i)).length==i.length)for(r=0;r>8}for(;this.l>>=8);break;case 3:n=3,this[this.l]=255&i,this[this.l+1]=255&(i>>>=8),this[this.l+2]=255&(i>>>=8);break;case 4:n=4,Cae(this,i,this.l);break;case 8:if(n=8,"f"===e){!function xae(t,i,e){var n=(i<0||1/i==-1/0?1:0)<<7,r=0,o=0,a=n?-i:i;isFinite(a)?0==a?r=o=0:(r=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-r),r<=-1023&&(!isFinite(o)||o>4|n}(this,i,this.l);break}case 16:break;case-4:n=4,kae(this,i,this.l)}}return this.l+=n,this}function y4(t,i){var e=h4(this,this.l,t.length>>1);if(e!==t)throw new Error(i+"Expected "+t+" saw "+e);this.l+=t.length>>1}function On(t,i){t.l=i,t.read_shift=Sf,t.chk=y4,t.write_shift=Sae}function sr(t,i){t.l+=i}function re(t){var i=Xs(t);return On(i,0),i}function Ur(){var t=[],i=Vt?256:2048,e=function(l){var d=re(l);return On(d,0),d},n=e(i),r=function(){n&&(n.l&&(n.length>n.l&&((n=n.slice(0,n.l)).l=n.length),n.length>0&&t.push(n)),n=null)},o=function(l){return n&&l=128?1:0)+1,n>=128&&++o,n>=16384&&++o,n>=2097152&&++o;var a=t.next(o);r<=127?a.write_shift(1,r):(a.write_shift(1,128+(127&r)),a.write_shift(1,r>>7));for(var s=0;4!=s;++s){if(!(n>=128)){a.write_shift(1,n);break}a.write_shift(1,128+(127&n)),n>>=7}n>0&&xw(e)&&t.push(e)}}function Ef(t,i,e){var n=yi(t);if(i.s?(n.cRel&&(n.c+=i.s.c),n.rRel&&(n.r+=i.s.r)):(n.cRel&&(n.c+=i.c),n.rRel&&(n.r+=i.r)),!e||e.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function w4(t,i,e){var n=yi(t);return n.s=Ef(n.s,i.s,e),n.e=Ef(n.e,i.s,e),n}function Tf(t,i){if(t.cRel&&t.c<0)for(t=yi(t);t.c<0;)t.c+=i>8?16384:256;if(t.rRel&&t.r<0)for(t=yi(t);t.r<0;)t.r+=i>8?1048576:i>5?65536:16384;var e=zt(t);return!t.cRel&&null!=t.cRel&&(e=function Mae(t){return t.replace(/^([A-Z])/,"$$$1")}(e)),!t.rRel&&null!=t.rRel&&(e=function Eae(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function yw(t,i){return 0!=t.s.r||t.s.rRel||t.e.r!=(i.biff>=12?1048575:i.biff>=8?65536:16384)||t.e.rRel?0!=t.s.c||t.s.cRel||t.e.c!=(i.biff>=12?16383:255)||t.e.cRel?Tf(t.s,i.biff)+":"+Tf(t.e,i.biff):(t.s.rRel?"":"$")+Yt(t.s.r)+":"+(t.e.rRel?"":"$")+Yt(t.e.r):(t.s.cRel?"":"$")+Ht(t.s.c)+":"+(t.e.cRel?"":"$")+Ht(t.e.c)}function ww(t){return parseInt(function Tae(t){return t.replace(/\$(\d+)$/,"$1")}(t),10)-1}function Yt(t){return""+(t+1)}function Cw(t){for(var i=function Aae(t){return t.replace(/^\$([A-Z])/,"$1")}(t),e=0,n=0;n!==i.length;++n)e=26*e+i.charCodeAt(n)-64;return e-1}function Ht(t){if(t<0)throw new Error("invalid column "+t);var i="";for(++t;t;t=Math.floor((t-1)/26))i=String.fromCharCode((t-1)%26+65)+i;return i}function bi(t){for(var i=0,e=0,n=0;n=48&&r<=57?i=10*i+(r-48):r>=65&&r<=90&&(e=26*e+(r-64))}return{c:e-1,r:i-1}}function zt(t){for(var i=t.c+1,e="";i;i=(i-1)/26|0)e=String.fromCharCode((i-1)%26+65)+e;return e+(t.r+1)}function Pn(t){var i=t.indexOf(":");return-1==i?{s:bi(t),e:bi(t)}:{s:bi(t.slice(0,i)),e:bi(t.slice(i+1))}}function Et(t,i){return typeof i>"u"||"number"==typeof i?Et(t.s,t.e):("string"!=typeof t&&(t=zt(t)),"string"!=typeof i&&(i=zt(i)),t==i?t:t+":"+i)}function Mf(t){var i=Pn(t);return"$"+Ht(i.s.c)+"$"+Yt(i.s.r)+":$"+Ht(i.e.c)+"$"+Yt(i.e.r)}function Af(t,i){if(!(t||i&&i.biff<=5&&i.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t.replace(/'/g,"''")+"'":t}function Kt(t){var i={s:{c:0,r:0},e:{c:0,r:0}},e=0,n=0,r=0,o=t.length;for(e=0;n26);++n)e=26*e+r;for(i.s.c=--e,e=0;n9);++n)e=10*e+r;if(i.s.r=--e,n===o||10!=r)return i.e.c=i.s.c,i.e.r=i.s.r,i;for(++n,e=0;n!=o&&!((r=t.charCodeAt(n)-64)<1||r>26);++n)e=26*e+r;for(i.e.c=--e,e=0;n!=o&&!((r=t.charCodeAt(n)-48)<0||r>9);++n)e=10*e+r;return i.e.r=--e,i}function Aa(t,i,e){return null==t||null==t.t||"z"==t.t?"":void 0!==t.w?t.w:("d"==t.t&&!t.z&&e&&e.dateNF&&(t.z=e.dateNF),"e"==t.t?gs[t.v]||t.v:function C4(t,i){var e="d"==t.t&&i instanceof Date;if(null!=t.z)try{return t.w=Vr(t.z,e?yn(i):i)}catch{}try{return t.w=Vr((t.XF||{}).numFmtId||(e?14:0),e?yn(i):i)}catch{return""+i}}(t,null==i?t.v:i))}function Zs(t,i){var e=i&&i.sheet?i.sheet:"Sheet1",n={};return n[e]=t,{SheetNames:[e],Sheets:n}}function k4(t,i,e){var n=e||{},r=t?null!=t["!data"]:n.dense;null!=an&&null==r&&(r=an);var o=t||{};r&&!o["!data"]&&(o["!data"]=[]);var a=0,s=0;if(o&&null!=n.origin){if("number"==typeof n.origin)a=n.origin;else{var c="string"==typeof n.origin?bi(n.origin):n.origin;a=c.r,s=c.c}o["!ref"]||(o["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var d=Kt(o["!ref"]);l.s.c=d.s.c,l.s.r=d.s.r,l.e.c=Math.max(l.e.c,d.e.c),l.e.r=Math.max(l.e.r,d.e.r),-1==a&&(l.e.r=a=d.e.r+1)}for(var u=[],h=0;h!=i.length;++h)if(i[h]){if(!Array.isArray(i[h]))throw new Error("aoa_to_sheet expects an array of arrays");var f=a+h,m=""+(f+1);r&&(o["!data"][f]||(o["!data"][f]=[]),u=o["!data"][f]);for(var g=0;g!=i[h].length;++g)if(!(typeof i[h][g]>"u")){var p={v:i[h][g]},_=s+g;if(l.s.r>f&&(l.s.r=f),l.s.c>_&&(l.s.c=_),l.e.r0&&i.write_shift(0,t,"dbcs"),e?i.slice(0,i.l):i}function Rae(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function kw(t,i){var e=t.l,n=t.read_shift(1),r=cr(t),o=[],a={t:r,h:r};if(1&n){for(var s=t.read_shift(4),c=0;c!=s;++c)o.push(Rae(t));a.r=o}else a.r=[{ich:0,ifnt:0}];return t.l=e+i,a}var Lae=kw;function Mo(t){var i=t.read_shift(4),e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:i,iStyleRef:e}}function ol(t,i){return null==i&&(i=re(8)),i.write_shift(-4,t.c),i.write_shift(3,t.iStyleRef||t.s),i.write_shift(1,0),i}function al(t){var i=t.read_shift(2);return i+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:i}}function sl(t,i){return null==i&&(i=re(4)),i.write_shift(3,t.iStyleRef||t.s),i.write_shift(1,0),i}var Bae=cr,D4=Ln;function Dw(t){var i=t.read_shift(4);return 0===i||4294967295===i?"":t.read_shift(i,"dbcs")}function If(t,i){var e=!1;return null==i&&(e=!0,i=re(127)),i.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&i.write_shift(0,t,"dbcs"),e?i.slice(0,i.l):i}var Vae=cr,Sw=Dw,Ew=If;function Tw(t){var i=t.slice(t.l,t.l+4),e=1&i[0],n=2&i[0];t.l+=4;var r=0===n?z0([0,0,0,0,252&i[0],i[1],i[2],i[3]],0):rl(i,0)>>2;return e?r/100:r}function S4(t,i){null==i&&(i=re(4));var e=0,n=0,r=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?n=1:r==(0|r)&&r>=-(1<<29)&&r<1<<29&&(n=1,e=1),!n)throw new Error("unsupported RkNumber "+t);i.write_shift(-4,((e?r:t)<<2)+(e+2))}function E4(t){var i={s:{},e:{}};return i.s.r=t.read_shift(4),i.e.r=t.read_shift(4),i.s.c=t.read_shift(4),i.e.c=t.read_shift(4),i}var cl=E4,su=function Hae(t,i){return i||(i=re(16)),i.write_shift(4,t.s.r),i.write_shift(4,t.e.r),i.write_shift(4,t.s.c),i.write_shift(4,t.e.c),i};function lr(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function ll(t,i){return(i||re(8)).write_shift(8,t,"f")}function $0(t,i){if(i||(i=re(8)),!t||t.auto)return i.write_shift(4,0),i.write_shift(4,0),i;null!=t.index?(i.write_shift(1,2),i.write_shift(1,t.index)):null!=t.theme?(i.write_shift(1,6),i.write_shift(1,t.theme)):(i.write_shift(1,5),i.write_shift(1,0));var e=t.tint||0;if(e>0?e*=32767:e<0&&(e*=32768),i.write_shift(2,e),t.rgb&&null==t.theme){var n=t.rgb||"FFFFFF";"number"==typeof n&&(n=("000000"+n.toString(16)).slice(-6)),i.write_shift(1,parseInt(n.slice(0,2),16)),i.write_shift(1,parseInt(n.slice(2,4),16)),i.write_shift(1,parseInt(n.slice(4,6),16)),i.write_shift(1,255)}else i.write_shift(2,0),i.write_shift(1,0),i.write_shift(1,0);return i}var Aw={1:{n:"CodePage",t:2},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:80},15:{n:"Company",t:80},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:80},27:{n:"ContentStatus",t:80},28:{n:"Language",t:80},29:{n:"Version",t:80},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Iw={1:{n:"CodePage",t:2},2:{n:"Title",t:80},3:{n:"Subject",t:80},4:{n:"Author",t:80},5:{n:"Keywords",t:80},6:{n:"Comments",t:80},7:{n:"Template",t:80},8:{n:"LastAuthor",t:80},9:{n:"RevNumber",t:80},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:80},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function Zae(t){return t.map(function(i){return[i>>16&255,i>>8&255,255&i]})}var dl=yi(Zae([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,0,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),gs={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Fw={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Rw=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"],Ow={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},q0={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function F4(t,i,e){var o,n=function Joe(t){for(var i=[],e=$i(t),n=0;n!==e.length;++n)null==i[t[e[n]]]&&(i[t[e[n]]]=[]),i[t[e[n]]].push(e[n]);return i}(Ow),r=[];e||(r[r.length]=sn,r[r.length]=Ee("Types",null,{xmlns:Rn.CT,"xmlns:xsd":Rn.xsd,"xmlns:xsi":Rn.xsi}),r=r.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Ee("Default",null,{Extension:l[0],ContentType:l[1]})})));var a=function(l){t[l]&&t[l].length>0&&(r[r.length]=Ee("Override",null,{PartName:("/"==(o=t[l][0])[0]?"":"/")+o,ContentType:q0[l][i.bookType]||q0[l].xlsx}))},s=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Ee("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:q0[l][i.bookType]||q0[l].xlsx})})},c=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Ee("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:n[l][0]})})};return a("workbooks"),s("sheets"),s("charts"),c("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(c),c("vba"),c("comments"),c("threadedcomments"),c("drawings"),s("metadata"),c("people"),!e&&r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}var Pt={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",CONN:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Ff(t){var i=t.lastIndexOf("/");return t.slice(0,i+1)+"_rels/"+t.slice(i+1)+".rels"}function cu(t){var i=[sn,Ee("Relationships",null,{xmlns:Rn.RELS})];return $i(t["!id"]).forEach(function(e){i[i.length]=Ee("Relationship",null,t["!id"][e])}),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function ki(t,i,e,n,r,o){if(r||(r={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),i<0)for(i=t["!idx"];t["!id"]["rId"+i];++i);if(t["!idx"]=i+1,r.Id="rId"+i,r.Type=n,r.Target=e,o?r.TargetMode=o:[Pt.HLINK,Pt.XPATH,Pt.XMISS].indexOf(r.Type)>-1&&(r.TargetMode="External"),t["!id"][r.Id])throw new Error("Cannot rewrite rId "+i);return t["!id"][r.Id]=r,t[("/"+r.Target).replace("//","/")]=r,i}function R4(t,i,e){return[' \n',' \n'," \n"].join("")}function rse(t,i){return[' \n',' \n'," \n"].join("")}function O4(t,i){return'SheetJS '+pf.version+""}var Ao=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Lw(t,i,e,n,r){null!=r[t]||null==i||""===i||(r[t]=i,i=Ot(i),n[n.length]=e?Ee(t,i,e):Qn(t,i))}function L4(t,i){var e=i||{},n=[sn,Ee("cp:coreProperties",null,{"xmlns:cp":Rn.CORE_PROPS,"xmlns:dc":Rn.dc,"xmlns:dcterms":Rn.dcterms,"xmlns:dcmitype":Rn.dcmitype,"xmlns:xsi":Rn.xsi})],r={};if(!t&&!e.Props)return n.join("");t&&(null!=t.CreatedDate&&Lw("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:mw(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,r),null!=t.ModifiedDate&&Lw("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:mw(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,r));for(var o=0;o!=Ao.length;++o){var a=Ao[o],s=e.Props&&null!=e.Props[a[1]]?e.Props[a[1]]:t?t[a[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&Lw(a[0],s,null,n,r)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var ul=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],N4=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function V4(t){var i=[],e=Ee;return t||(t={}),t.Application="SheetJS",i[i.length]=sn,i[i.length]=Ee("Properties",null,{xmlns:Rn.EXT_PROPS,"xmlns:vt":Rn.vt}),ul.forEach(function(n){if(void 0!==t[n[1]]){var r;switch(n[2]){case"string":r=Ot(String(t[n[1]]));break;case"bool":r=t[n[1]]?"true":"false"}void 0!==r&&(i[i.length]=e(n[0],r))}}),i[i.length]=e("HeadingPairs",e("vt:vector",e("vt:variant","Worksheets")+e("vt:variant",e("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),i[i.length]=e("TitlesOfParts",e("vt:vector",t.SheetNames.map(function(n){return""+Ot(n)+""}).join(""),{size:t.Worksheets,baseType:"lpstr"})),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function H4(t){var i=[sn,Ee("Properties",null,{xmlns:Rn.CUST_PROPS,"xmlns:vt":Rn.vt})];if(!t)return i.join("");var e=1;return $i(t).forEach(function(r){++e,i[i.length]=Ee("property",function bae(t,i){switch(typeof t){case"string":var e=Ee("vt:lpwstr",Ot(t));return i&&(e=e.replace(/"/g,"_x0022_")),e;case"number":return Ee((0|t)==t?"vt:i4":"vt:r8",Ot(String(t)));case"boolean":return Ee("vt:bool",t?"true":"false")}if(t instanceof Date)return Ee("vt:filetime",mw(t));throw new Error("Unable to serialize "+t)}(t[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:Ot(r)})}),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}var Nw={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function G4(t,i){var e=re(4),n=re(4);switch(e.write_shift(4,80==t?31:t),t){case 3:n.write_shift(-4,i);break;case 5:(n=re(8)).write_shift(8,i,"f");break;case 11:n.write_shift(4,i?1:0);break;case 64:n=function fse(t){var e=("string"==typeof t?new Date(Date.parse(t)):t).getTime()/1e3+11644473600,n=e%Math.pow(2,32),r=(e-n)/Math.pow(2,32);r*=1e7;var o=(n*=1e7)/Math.pow(2,32)|0;o>0&&(n%=Math.pow(2,32),r+=o);var a=re(8);return a.write_shift(4,n),a.write_shift(4,r),a}(i);break;case 31:case 80:for((n=re(4+2*(i.length+1)+(i.length%2?0:2))).write_shift(4,i.length+1),n.write_shift(0,i,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+i)}return xn([e,n])}var X4=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function xse(t){switch(typeof t){case"boolean":return 11;case"number":return(0|t)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64}return-1}function Q4(t,i,e){var n=re(8),r=[],o=[],a=8,s=0,c=re(8),l=re(8);if(c.write_shift(4,2),c.write_shift(4,1200),l.write_shift(4,1),o.push(c),r.push(l),a+=8+c.length,!i){(l=re(8)).write_shift(4,0),r.unshift(l);var d=[re(4)];for(d[0].write_shift(4,t.length),s=0;s-1||N4.indexOf(t[s][0])>-1)&&null!=t[s][1]){var h=t[s][1],f=0;if(i){var m=e[f=+i[t[s][0]]];if("version"==m.p&&"string"==typeof h){var g=h.split(".");h=(+g[0]<<16)+(+g[1]||0)}c=G4(m.t,h)}else{var p=xse(h);-1==p&&(p=31,h=String(h)),c=G4(p,h)}o.push(c),(l=re(8)).write_shift(4,i?f:2+s),r.push(l),a+=8+c.length}var _=8*(o.length+1);for(s=0;s=12?2:1),r="sbcs-cont",o=Fn;e&&e.biff>=8&&(Fn=1200),e&&8!=e.biff?12==e.biff&&(r="wstr"):t.read_shift(1)&&(r="dbcs-cont"),e.biff>=2&&e.biff<=5&&(r="cpstr");var s=n?t.read_shift(n,r):"";return Fn=o,s}function Dse(t){var i=t.t||"",n=re(3);n.write_shift(2,i.length),n.write_shift(1,1);var r=re(2*i.length);return r.write_shift(2*i.length,i,"utf16le"),xn([n,r])}function eL(t,i,e){return e||(e=re(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function tL(t,i){i||(i=re(6+2*t.length)),i.write_shift(4,1+t.length);for(var e=0;e-1?31:23;switch(n.charAt(0)){case"#":o=28;break;case".":o&=-3}i.write_shift(4,2),i.write_shift(4,o);var a=[8,6815827,6619237,4849780,83];for(e=0;e-1?n.slice(0,r):n;for(i.write_shift(4,2*(s.length+1)),e=0;e-1?n.slice(r+1):"",i)}else{for(a="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),e=0;e8?4:2;return[t.read_shift(n),t.read_shift(n,"i"),t.read_shift(n,"i")]}function Y0(t){var i=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(2),r:i},e:{c:t.read_shift(2),r:e}}}function oL(t,i){return i||(i=re(8)),i.write_shift(2,t.s.r),i.write_shift(2,t.e.r),i.write_shift(2,t.s.c),i.write_shift(2,t.e.c),i}function Uw(t,i,e){var n=1536,r=16;switch(e.bookType){case"biff8":case"xla":break;case"biff5":n=1280,r=8;break;case"biff4":n=4,r=6;break;case"biff3":n=3,r=6;break;case"biff2":n=2,r=4;break;default:throw new Error("unsupported BIFF version")}var o=re(r);return o.write_shift(2,n),o.write_shift(2,i),r>4&&o.write_shift(2,29282),r>6&&o.write_shift(2,1997),r>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function Gse(t,i){var e=!i||i.biff>=8?2:1,n=re(8+e*t.name.length);n.write_shift(4,t.pos),n.write_shift(1,t.hs||0),n.write_shift(1,t.dt),n.write_shift(1,t.name.length),i.biff>=8&&n.write_shift(1,1),n.write_shift(e*t.name.length,t.name,i.biff<8?"sbcs":"utf16le");var r=n.slice(0,n.l);return r.l=n.l,r}function uce(t,i,e,n){var r=e&&5==e.biff;n||(n=re(r?3+i.length:5+2*i.length)),n.write_shift(2,t),n.write_shift(r?1:2,i.length),r||n.write_shift(1,1),n.write_shift((r?1:2)*i.length,i,r?"sbcs":"utf16le");var o=n.length>n.l?n.slice(0,n.l):n;return null==o.l&&(o.l=o.length),o}function dL(t,i,e,n){var r=e&&5==e.biff;n||(n=re(r?16:20)),n.write_shift(2,0),t.style?(n.write_shift(2,t.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,t.numFmtId||0),n.write_shift(2,i<<4));var o=0;return t.numFmtId>0&&r&&(o|=1024),n.write_shift(4,o),n.write_shift(4,0),r||n.write_shift(4,0),n.write_shift(2,0),n}function Nce(t){var i=re(24),e=bi(t[0]);i.write_shift(2,e.r),i.write_shift(2,e.r),i.write_shift(2,e.c),i.write_shift(2,e.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<16;++r)i.write_shift(1,parseInt(n[r],16));return xn([i,Ise(t[1])])}function Vce(t){var i=t[1].Tooltip,e=re(10+2*(i.length+1));e.write_shift(2,2048);var n=bi(t[0]);e.write_shift(2,n.r),e.write_shift(2,n.r),e.write_shift(2,n.c),e.write_shift(2,n.c);for(var r=0;r1048576&&(g=1e6),2!=u&&(p=d.read_shift(2));var _=d.read_shift(2),w=c.codepage||1252;2!=u&&(d.l+=16,d.read_shift(1),0!==d[d.l]&&(w=t[d[d.l]]),d.l+=1,d.l+=2),m&&(d.l+=36);for(var x=[],M={},W=Math.min(d.length,2==u?521:p-10-(f?264:0)),L=m?32:11;d.l0;)if(42!==d[d.l])for(++d.l,l[++D]=[],B=0,B=0;B!=x.length;++B){var N=d.slice(d.l,d.l+x[B].len);d.l+=x[B].len,On(N,0);var j=typeof Mt<"u"?Mt.utils.decode(w,N):Ea(N);switch(x[B].type){case"C":j.trim().length&&(l[D][B]=j.replace(/\s+$/,""));break;case"D":l[D][B]=8===j.length?new Date(+j.slice(0,4),+j.slice(4,6)-1,+j.slice(6,8)):j;break;case"F":l[D][B]=parseFloat(j.trim());break;case"+":case"I":l[D][B]=m?2147483648^N.read_shift(-4,"i"):N.read_shift(4,"i");break;case"L":switch(j.trim().toUpperCase()){case"Y":case"T":l[D][B]=!0;break;case"N":case"F":l[D][B]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+j+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+u.toString(16));l[D][B]="##MEMO##"+(m?parseInt(j.trim(),10):N.read_shift(4));break;case"N":(j=j.replace(/\u0000/g,"").trim())&&"."!=j&&(l[D][B]=+j||0);break;case"@":l[D][B]=new Date(N.read_shift(-8,"f")-621356832e5);break;case"T":l[D][B]=new Date(864e5*(N.read_shift(4)-2440588)+N.read_shift(4));break;case"Y":l[D][B]=N.read_shift(4,"i")/1e4+N.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[D][B]=-N.read_shift(-8,"f");break;case"B":if(f&&8==x[B].len){l[D][B]=N.read_shift(8,"f");break}case"G":case"P":N.l+=x[B].len;break;case"0":if("_NullFlags"===x[B].name)break;default:throw new Error("DBF Unsupported data type "+x[B].type)}}else d.l+=_;if(2!=u&&d.l=0&&Do(+l.codepage),"string"==l.type)throw new Error("Cannot write DBF to JS string");var u=Ur(),h=h_(s,{header:1,raw:!0,cellDates:!0}),f=h[0],m=h.slice(1),g=s["!cols"]||[],p=0,_=0,w=0,x=1;for(p=0;p250&&(j=250),"C"==(N=((g[p]||{}).DBF||{}).type)&&g[p].DBF.len>j&&(j=g[p].DBF.len),"B"==B&&"N"==N&&(B="N",D[p]=g[p].DBF.dec,j=g[p].DBF.len),L[p]="C"==B||"N"==N?j:o[B]||0,x+=L[p],W[p]=B}else W[p]="?"}var U=u.next(32);for(U.write_shift(4,318902576),U.write_shift(4,m.length),U.write_shift(2,296+32*w),U.write_shift(2,x),p=0;p<4;++p)U.write_shift(4,0);var me=+i[Fn]||3;for(U.write_shift(4,0|me<<8),t[me]!=+l.codepage&&(l.codepage&&console.error("DBF Unsupported codepage "+Fn+", using 1252"),Fn=1252),p=0,_=0;pL[_]&&(he=he.slice(0,L[_])),w=0;w":190,"?":191,"{":223},i=new RegExp("\x1bN("+$i(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(u,h){var f=t[h];return"number"==typeof f?nw(f):f},n=function(u,h,f){var m=h.charCodeAt(0)-32<<4|f.charCodeAt(0)-48;return 59==m?u:nw(m)};function o(u,h){var j,f=u.split(/[\n\r]+/),m=-1,g=-1,p=0,_=0,w=[],x=[],M=null,W={},L=[],D=[],B=[],N=0,Z={Workbook:{WBProps:{},Names:[]}};for(+h.codepage>=0&&Do(+h.codepage);p!==f.length;++p){N=0;var de,U=f[p].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(i,e),me=U.replace(/;;/g,"\0").split(";").map(function(oe){return oe.replace(/\u0000/g,";")});if(U.length>0)switch(me[0]){case"ID":case"E":case"B":case"W":break;case"O":for(_=1;_=1&&ne<=4&&(Z.Workbook.WBProps.date1904=!0)}break;case"P":"P"===me[1].charAt(0)&&x.push(U.slice(3).replace(/;;/g,";"));break;case"NN":var Y={Sheet:0};for(_=1;_-1&&w[qe][mt];if(!z||!z[1])throw new Error("SYLK shared formula cannot find base");F=RL(z[1],{r:m-qe,c:g-mt})}F&&(w[m][g]?w[m][g].f=F:w[m][g]={t:"n",f:F});break;case"F":var V=0;for(_=1;_0?(L[m].hpt=N,L[m].hpx=du(N)):0===N&&(L[m].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+U)}V<1&&(M=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+U)}}return L.length>0&&(W["!rows"]=L),D.length>0&&(W["!cols"]=D),D.forEach(function(oe){ec(oe)}),h&&h.sheetRows&&(w=w.slice(0,h.sheetRows)),[w,W,Z]}function s(u,h,f,m){var g="C;Y"+(f+1)+";X"+(m+1)+";K";switch(u.t){case"n":g+=u.v||0,u.f&&!u.F&&(g+=";E"+n_(u.f,{r:f,c:m}));break;case"b":g+=u.v?"TRUE":"FALSE";break;case"e":g+=u.w||u.v;break;case"d":g+='"'+(u.w||u.v)+'"';break;case"s":g+='"'+(null==u.v?"":String(u.v)).replace(/"/g,"").replace(/;/g,";;")+'"'}return g}return t["|"]=254,{to_workbook:function a(u,h){var f=function r(u,h){switch(h.type){case"base64":return o(io(u),h);case"binary":return o(u,h);case"buffer":return o(Vt&&Buffer.isBuffer(u)?u.toString("binary"):Ea(u),h);case"array":return o(il(u),h)}throw new Error("Unrecognized type "+h.type)}(u,h),m=f[0],g=f[1],p=f[2],_=yi(h);_.date1904=(((p||{}).Workbook||{}).WBProps||{}).date1904;var w=au(m,_);$i(g).forEach(function(M){w[M]=g[M]});var x=Zs(w,h);return $i(p).forEach(function(M){x[M]=p[M]}),x.bookType="sylk",x},from_sheet:function d(u,h,f){var _,m=["ID;PSheetJS;N;E"],g=[],p=Kt(u["!ref"]),w=null!=u["!data"],x="\r\n",M=(((f||{}).Workbook||{}).WBProps||{}).date1904;m.push("P;PGeneral"),m.push("F;P0;DG0G8;M255"),u["!cols"]&&function c(u,h){h.forEach(function(f,m){var g="F;W"+(m+1)+" "+(m+1)+" ";f.hidden?g+="0":("number"==typeof f.width&&!f.wpx&&(f.wpx=Nf(f.width)),"number"==typeof f.wpx&&!f.wch&&(f.wch=Bf(f.wpx)),"number"==typeof f.wch&&(g+=Math.round(f.wch)))," "!=g.charAt(g.length-1)&&u.push(g)})}(m,u["!cols"]),u["!rows"]&&function l(u,h){h.forEach(function(f,m){var g="F;";f.hidden?g+="M0;":f.hpt?g+="M"+20*f.hpt+";":f.hpx&&(g+="M"+20*Vf(f.hpx)+";"),g.length>2&&u.push(g+"R"+(m+1))})}(m,u["!rows"]),m.push("B;Y"+(p.e.r-p.s.r+1)+";X"+(p.e.c-p.s.c+1)+";D"+[p.s.c,p.s.r,p.e.c,p.e.r].join(" ")),m.push("O;L;D;B"+(M?";V4":"")+";K47;G100 0.001");for(var W=p.s.r;W<=p.e.r;++W)if(!w||u["!data"][W]){for(var L=[],D=p.s.c;D<=p.e.c;++D)(_=w?u["!data"][W][D]:u[Ht(D)+Yt(W)])&&(null!=_.v||_.f&&!_.F)&&L.push(s(_,0,W,D));g.push(L.join(x))}return m.join(x)+x+g.join(x)+x+"E"+x}}}(),xL=function(){function i(s,c){for(var l=s.split("\n"),d=-1,u=-1,h=0,f=[];h!==l.length;++h)if("BOT"!==l[h].trim()){if(!(d<0)){for(var m=l[h].trim().split(","),g=m[0],p=m[1],_=l[++h]||"";1&(_.match(/["]/g)||[]).length&&h=0||d.indexOf(",")>=0||d.indexOf(";")>=0?function o(d,u){var h=u||{},f="";null!=an&&null==h.dense&&(h.dense=an);var m={};h.dense&&(m["!data"]=[]);var g={s:{c:0,r:0},e:{c:0,r:0}};"sep="==d.slice(0,4)?13==d.charCodeAt(5)&&10==d.charCodeAt(6)?(f=d.charAt(4),d=d.slice(7)):13==d.charCodeAt(5)||10==d.charCodeAt(5)?(f=d.charAt(4),d=d.slice(6)):f=r(d.slice(0,1024)):f=h&&h.FS?h.FS:r(d.slice(0,1024));var p=0,_=0,w=0,x=0,M=0,W=f.charCodeAt(0),L=!1,D=0,B=d.charCodeAt(0),N=null!=h.dateNF?function qoe(t){var i="number"==typeof t?ut[t]:t;return i=i.replace(VP,"(\\d+)"),new RegExp("^"+i+"$")}(h.dateNF):null;function j(){var Z=d.slice(x,M);"\r"==Z.slice(-1)&&(Z=Z.slice(0,-1));var U={};if('"'==Z.charAt(0)&&'"'==Z.charAt(Z.length-1)&&(Z=Z.slice(1,-1).replace(/""/g,'"')),0===Z.length?U.t="z":h.raw||0===Z.trim().length?(U.t="s",U.v=Z):61==Z.charCodeAt(0)?34==Z.charCodeAt(1)&&34==Z.charCodeAt(Z.length-1)?(U.t="s",U.v=Z.slice(2,-1).replace(/""/g,'"')):function Iue(t){return 1!=t.length}(Z)?(U.t="n",U.f=Z.slice(1)):(U.t="s",U.v=Z):"TRUE"==Z?(U.t="b",U.v=!0):"FALSE"==Z?(U.t="b",U.v=!1):isNaN(w=no(Z))?!isNaN((w=nu(Z)).getDate())||N&&Z.match(N)?(U.z=h.dateNF||ut[14],N&&Z.match(N)&&(Z=function Xoe(t,i,e){var n=-1,r=-1,o=-1,a=-1,s=-1,c=-1;(i.match(VP)||[]).forEach(function(u,h){var f=parseInt(e[h+1],10);switch(u.toLowerCase().charAt(0)){case"y":n=f;break;case"d":o=f;break;case"h":a=f;break;case"s":c=f;break;case"m":a>=0?s=f:r=f}}),c>=0&&-1==s&&r>=0&&(s=r,r=-1);var l=(""+(n>=0?n:(new Date).getFullYear())).slice(-4)+"-"+("00"+(r>=1?r:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);7==l.length&&(l="0"+l),8==l.length&&(l="20"+l);var d=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return-1==a&&-1==s&&-1==c?l:-1==n&&-1==r&&-1==o?d:l+"T"+d}(0,h.dateNF,Z.match(N)||[]),w=ji(Z,1)),h.cellDates?(U.t="d",U.v=w):(U.t="n",U.v=yn(w)),!1!==h.cellText&&(U.w=Vr(U.z,U.v instanceof Date?yn(U.v):U.v)),h.cellNF||delete U.z):(U.t="s",U.v=Z):(U.t="n",!1!==h.cellText&&(U.w=Z),U.v=w),"z"==U.t||(h.dense?(m["!data"][p]||(m["!data"][p]=[]),m["!data"][p][_]=U):m[zt({c:_,r:p})]=U),B=d.charCodeAt(x=M+1),g.e.c<_&&(g.e.c=_),g.e.r0&&j(),m["!ref"]=Et(g),m}(d,u):au(function i(d,u){var h=u||{},f=[];if(!d||0===d.length)return f;for(var m=d.split(/[\r\n]/),g=m.length-1;g>=0&&0===m[g].length;)--g;for(var p=10,_=0,w=0;w<=g;++w)-1==(_=m[w].indexOf(" "))?_=m[w].length:_++,p=Math.max(p,_);for(w=0;w<=g;++w){f[w]=[];var x=0;for(t(m[w].slice(0,p).trim(),f,w,x,h),x=1;x<=(m[w].length-p)/10+1;++x)t(m[w].slice(p+10*(x-1),p+10*x).trim(),f,w,x,h)}return h.sheetRows&&(f=f.slice(0,h.sheetRows)),f}(d,u),u)}function s(d,u){var h="",f="string"==u.type?[0,0,0,0]:function dC(t,i){var e="";switch((i||{}).type||"base64"){case"buffer":case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":e=io(t.slice(0,12));break;case"binary":e=t;break;default:throw new Error("Unrecognized type "+(i&&i.type||"undefined"))}return[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3),e.charCodeAt(4),e.charCodeAt(5),e.charCodeAt(6),e.charCodeAt(7)]}(d,u);switch(u.type){case"base64":h=io(d);break;case"binary":case"string":h=d;break;case"buffer":h=65001==u.codepage?d.toString("utf8"):u.codepage&&typeof Mt<"u"?Mt.utils.decode(u.codepage,d):Vt&&Buffer.isBuffer(d)?d.toString("binary"):Ea(d);break;case"array":h=il(d);break;default:throw new Error("Unrecognized type "+u.type)}return 239==f[0]&&187==f[1]&&191==f[2]?h=Ci(h.slice(3)):"string"!=u.type&&"buffer"!=u.type&&65001==u.codepage?h=Ci(h):"binary"==u.type&&typeof Mt<"u"&&u.codepage&&(h=Mt.utils.decode(u.codepage,Mt.utils.encode(28591,h))),"socialcalc:version:"==h.slice(0,19)?yL.to_sheet("string"==u.type?h:Ci(h),u):a(h,u)}return{to_workbook:function c(d,u){return Zs(s(d,u),u)},to_sheet:s,from_sheet:function l(d){for(var f,u=[],h=Kt(d["!ref"]),m=null!=d["!data"],g=h.s.r;g<=h.e.r;++g){for(var p=[],_=h.s.c;_<=h.e.c;++_){var w=zt({r:g,c:_});if((f=m?(d["!data"][g]||[])[_]:d[w])&&null!=f.v){for(var x=(f.w||(Aa(f),f.w)||"").slice(0,10);x.length<10;)x+=" ";p.push(x+(0===_?" ":""))}else p.push(" ")}u.push(p.join(""))}return u.join("\n")}}}(),pl=function(){function t(F,K,z){if(F){On(F,F.l||0);for(var V=z.Enum||ce;F.l255||Pe.s.r>999999)break;Pe.e.cJt&&(Pe.s.c=Jt),He=et.read_shift(4),Pe.s.r>He&&(Pe.s.r=He),He=et.read_shift(4),Pe.e.rHe&&(Pe.s.r=He),Pe.e.r0&&A>=0;){if(32&Si)switch(31&Si){case 2:oi={t:"n",v:oi.v+mr&65535};break;case 3:(oi={t:"n",v:oi.v+mr&65535}).v>32767&&(oi.v-=65536);break;case 7:oi={t:"s",v:oe[bt=bt+mr>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(31&Si)}else switch(31&Si){case 1:oi={t:"z"};break;case 2:oi={t:"n",v:et.read_shift(2)};break;case 7:oi={t:"s",v:oe[bt=et.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(31&Si)}!z.sheetStubs&&"z"==oi.t||(null!=V["!data"]?(V["!data"][He]||(V["!data"][He]=[]),V["!data"][He][Jt]=oi):V[fr+Yt(He)]=oi),++He,--A}}}F.l+=si}return $t}(F,K);if(0==F[2]&&(8==F[3]||9==F[3])&&F.length>=16&&5==F[14]&&108===F[15])throw new Error("Unsupported Works 3 for Mac file");if(2==F[2])z.Enum=ce,t(F,function(Ne,fr,oi){switch(oi){case 0:z.vers=Ne,Ne>=4096&&(z.qpro=!0);break;case 255:z.vers=Ne,z.works=!0;break;case 6:He=Ne;break;case 204:Ne&&(_e=Ne);break;case 222:_e=Ne;break;case 15:case 51:(!z.qpro&&!z.works||51==oi)&&Ne[1].v.charCodeAt(0)<48&&(Ne[1].v=Ne[1].v.slice(1)),(z.works||z.works2)&&(Ne[1].v=Ne[1].v.replace(/\r\n/g,"\n"));case 13:case 14:case 16:14==oi&&112==(112&Ne[2])&&(15&Ne[2])>1&&(15&Ne[2])<15&&(Ne[1].z=z.dateNF||ut[14],z.cellDates&&(Ne[1].t="d",Ne[1].v=N0(Ne[1].v))),z.qpro&&Ne[3]>Re&&(V["!ref"]=Et(He),Pe[oe]=V,A.push(oe),V={},z.dense&&(Jt=V["!data"]=[]),He={s:{r:0,c:0},e:{r:0,c:0}},Re=Ne[3],oe=_e||"Sheet"+(Re+1),_e="");var Si=z.dense?(Jt[Ne[0].r]||[])[Ne[0].c]:V[zt(Ne[0])];if(Si){Si.t=Ne[1].t,Si.v=Ne[1].v,null!=Ne[1].z&&(Si.z=Ne[1].z),null!=Ne[1].f&&(Si.f=Ne[1].f);break}z.dense?(Jt[Ne[0].r]||(Jt[Ne[0].r]=[]),Jt[Ne[0].r][Ne[0].c]=Ne[1]):V[zt(Ne[0])]=Ne[1];break;case 21509:z.works2=!0}},z);else{if(26!=F[2]&&14!=F[2])throw new Error("Unrecognized LOTUS BOF "+F[2]);z.Enum=qe,14==F[2]&&(z.qpro=!0,F.l=0),t(F,function(Ne,fr,oi){switch(oi){case 204:oe=Ne;break;case 22:Ne[1].v.charCodeAt(0)<48&&(Ne[1].v=Ne[1].v.slice(1)),Ne[1].v=Ne[1].v.replace(/\x0F./g,function(Si){return String.fromCharCode(Si.charCodeAt(1)-32)}).replace(/\r\n/g,"\n");case 23:case 24:case 25:case 37:case 39:case 40:if(Ne[3]>Re&&(V["!ref"]=Et(He),Pe[oe]=V,A.push(oe),V={},z.dense&&(Jt=V["!data"]=[]),He={s:{r:0,c:0},e:{r:0,c:0}},oe="Sheet"+((Re=Ne[3])+1)),$t>0&&Ne[0].r>=$t)break;z.dense?(Jt[Ne[0].r]||(Jt[Ne[0].r]=[]),Jt[Ne[0].r][Ne[0].c]=Ne[1]):V[zt(Ne[0])]=Ne[1],He.e.c=128?95:_e)}return V.write_shift(1,0),V}function m(F,K,z){var V=re(7);return V.write_shift(1,255),V.write_shift(2,K),V.write_shift(2,F),V.write_shift(2,z,"i"),V}function p(F,K,z){var V=re(13);return V.write_shift(1,255),V.write_shift(2,K),V.write_shift(2,F),V.write_shift(8,z,"f"),V}function w(F,K,z){var V=32768&K;return K=(V?F:0)+((K&=-32769)>=8192?K-16384:K),(V?"":"$")+(z?Ht(K):Yt(K))}var x={31:["NA",0],33:["ABS",1],34:["TRUNC",1],35:["SQRT",1],36:["LOG",1],37:["LN",1],38:["PI",0],39:["SIN",1],40:["COS",1],41:["TAN",1],42:["ATAN2",2],43:["ATAN",1],44:["ASIN",1],45:["ACOS",1],46:["EXP",1],47:["MOD",2],49:["ISNA",1],50:["ISERR",1],51:["FALSE",0],52:["TRUE",0],53:["RAND",0],63:["ROUND",2],68:["ISNUMBER",1],69:["ISTEXT",1],70:["LEN",1],71:["VALUE",1],73:["MID",3],74:["CHAR",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],102:["UPPER",1],103:["LOWER",1],107:["PROPER",1],109:["TRIM",1],111:["T",1]},M=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function L(F){var K=[{c:0,r:0},{t:"n",v:0},0];return K[0].r=F.read_shift(2),K[3]=F[F.l++],K[0].c=F[F.l++],K}function B(F,K,z,V){var oe=re(6+V.length);oe.write_shift(2,F),oe.write_shift(1,z),oe.write_shift(1,K),oe.write_shift(1,39);for(var _e=0;_e=128?95:Re)}return oe.write_shift(1,0),oe}function j(F,K){var z=L(F),V=F.read_shift(4),oe=F.read_shift(4),_e=F.read_shift(2);if(65535==_e)return 0===V&&3221225472===oe?(z[1].t="e",z[1].v=15):0===V&&3489660928===oe?(z[1].t="e",z[1].v=42):z[1].v=0,z;var Re=32768&_e;return _e=(32767&_e)-16446,z[1].v=(1-2*Re)*(oe*Math.pow(2,_e+32)+V*Math.pow(2,_e)),z}function Z(F,K,z,V){var oe=re(14);if(oe.write_shift(2,F),oe.write_shift(1,z),oe.write_shift(1,K),0==V)return oe.write_shift(4,0),oe.write_shift(4,0),oe.write_shift(2,65535),oe;var _e=0,Re=0,A=0;return V<0&&(_e=1,V=-V),Re=0|Math.log2(V),2147483648&(A=(V/=Math.pow(2,Re-31))>>>0)||(++Re,A=(V/=2)>>>0),V-=A,A|=2147483648,A>>>=0,V*=Math.pow(2,32),oe.write_shift(4,V>>>0),oe.write_shift(4,A),oe.write_shift(2,Re+=16383+(_e?32768:0)),oe}function be(F,K){var z=L(F),V=F.read_shift(8,"f");return z[1].v=V,z}function ne(F,K){return 0==F[F.l+K-1]?F.read_shift(K,"cstr"):""}function Le(F,K){var z=re(5+F.length);z.write_shift(2,14e3),z.write_shift(2,K);for(var V=0;V127?95:oe}return z[z.l++]=0,z}var ce={0:{n:"BOF",f:ln},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function s(F,K,z){var V={s:{c:0,r:0},e:{c:0,r:0}};return 8==K&&z.qpro?(V.s.c=F.read_shift(1),F.l++,V.s.r=F.read_shift(2),V.e.c=F.read_shift(1),F.l++,V.e.r=F.read_shift(2),V):(V.s.c=F.read_shift(2),V.s.r=F.read_shift(2),12==K&&z.qpro&&(F.l+=2),V.e.c=F.read_shift(2),V.e.r=F.read_shift(2),12==K&&z.qpro&&(F.l+=2),65535==V.s.c&&(V.s.c=V.e.c=V.s.r=V.e.r=0),V)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function f(F,K,z){var V=l(F,0,z);return V[1].v=F.read_shift(2,"i"),V}},14:{n:"NUMBER",f:function g(F,K,z){var V=l(F,0,z);return V[1].v=F.read_shift(8,"f"),V}},15:{n:"LABEL",f:function d(F,K,z){var V=F.l+K,oe=l(F,0,z);if(oe[1].t="s",20768==z.vers){F.l++;var _e=F.read_shift(1);return oe[1].v=F.read_shift(_e,"utf8"),oe}return z.qpro&&F.l++,oe[1].v=F.read_shift(V-F.l,"cstr"),oe}},16:{n:"FORMULA",f:function _(F,K,z){var V=F.l+K,oe=l(F,0,z);if(oe[1].v=F.read_shift(8,"f"),z.qpro)F.l=V;else{var _e=F.read_shift(2);(function W(F,K){On(F,0);for(var z=[],V=0,oe="",_e="",Re="",Pe="";F.lz.length)return void console.error("WK1 bad formula parse 0x"+A.toString(16)+":|"+z.join("|")+"|");var $t=z.slice(-V);z.length-=V,z.push(x[A][0]+"("+$t.join(",")+")")}}}1==z.length?K[1].f=""+z[0]:console.error("WK1 bad formula parse |"+z.join("|")+"|")})(F.slice(F.l,F.l+_e),oe),F.l+=_e}return oe}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:function h(F,K,z){var V=F.l+K,oe=l(F,0,z);if(oe[1].t="s",20768==z.vers){var _e=F.read_shift(1);return oe[1].v=F.read_shift(_e,"utf8"),oe}return oe[1].v=F.read_shift(V-F.l,"cstr"),oe}},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ne},222:{n:"SHEETNAMELP",f:function Y(F,K){var z=F[F.l++];z>K-1&&(z=K-1);for(var V="";V.length>1;if(1&z[1].v)switch(7&V){case 0:V=5e3*(V>>3);break;case 1:V=500*(V>>3);break;case 2:V=(V>>3)/20;break;case 3:V=(V>>3)/200;break;case 4:V=(V>>3)/2e3;break;case 5:V=(V>>3)/2e4;break;case 6:V=(V>>3)/16;break;case 7:V=(V>>3)/64}return z[1].v=V,z}},25:{n:"FORMULA19",f:function U(F,K){var z=j(F);return F.l+=K-14,z}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function se(F,K){for(var z={},V=F.l+K;F.l>6,z}},38:{n:"??"},39:{n:"NUMBER27",f:be},40:{n:"FORMULA28",f:function de(F,K){var z=be(F);return F.l+=K-12,z}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ne},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function he(F,K,z){if(z.qpro&&!(K<21)){var V=F.read_shift(1);return F.l+=17,F.l+=1,F.l+=2,[V,F.read_shift(K-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function n(F,K){var z=K||{};if(+z.codepage>=0&&Do(+z.codepage),"string"==z.type)throw new Error("Cannot write WK1 to JS string");var V=Ur(),oe=Kt(F["!ref"]),_e=null!=F["!data"],Re=[];Ie(V,0,function o(F){var K=re(2);return K.write_shift(2,F),K}(1030)),Ie(V,6,function c(F){var K=re(8);return K.write_shift(2,F.s.c),K.write_shift(2,F.s.r),K.write_shift(2,F.e.c),K.write_shift(2,F.e.r),K}(oe));for(var Pe=Math.min(oe.e.r,8191),A=oe.s.c;A<=oe.e.c;++A)Re[A]=Ht(A);for(var bt=oe.s.r;bt<=Pe;++bt){var Jt=Yt(bt);for(A=oe.s.c;A<=oe.e.c;++A){var He=_e?(F["!data"][bt]||[])[A]:F[Re[A]+Jt];He&&"z"!=He.t&&("n"==He.t?(0|He.v)==He.v&&He.v>=-32768&&He.v<=32767?Ie(V,13,m(bt,A,He.v)):Ie(V,14,p(bt,A,He.v)):Ie(V,15,u(bt,A,Aa(He).slice(0,239))))}}return Ie(V,1),V.end()},book_to_wk3:function r(F,K){var z=K||{};if(+z.codepage>=0&&Do(+z.codepage),"string"==z.type)throw new Error("Cannot write WK3 to JS string");var V=Ur();Ie(V,0,function a(F){var K=re(26);K.write_shift(2,4096),K.write_shift(2,4),K.write_shift(4,0);for(var z=0,V=0,oe=0,_e=0;_e8191&&(z=8191),K.write_shift(2,z),K.write_shift(1,oe),K.write_shift(1,V),K.write_shift(2,0),K.write_shift(2,0),K.write_shift(1,1),K.write_shift(1,2),K.write_shift(4,0),K.write_shift(4,0),K}(F));for(var oe=0,_e=0;oe=0;--o)i=((16384&i?1:0)|i<<1&32767)^e[o];return 52811^i}function Lf(t){for(var i=0,e=1;3!=i;++i)e=256*e+(t[i]>255?255:t[i]<0?0:t[i]);return e.toString(16).toUpperCase().slice(1)}var ur=6;function Nf(t){return Math.floor((t+Math.round(128/ur)/256)*ur)}function Bf(t){return Math.floor((t-5)/ur*100+.5)/100}function e_(t){return Math.round((t*ur+5)/ur*256)/256}function ec(t){t.width?(t.wpx=Nf(t.width),t.wch=Bf(t.wpx),t.MDW=ur):t.wpx?(t.wch=Bf(t.wpx),t.width=e_(t.wch),t.MDW=ur):"number"==typeof t.wch&&(t.width=e_(t.wch),t.wpx=Nf(t.width),t.MDW=ur),t.customWidth&&delete t.customWidth}var EL=96;function Vf(t){return 96*t/EL}function du(t){return t*EL/96}function lde(t,i,e){e||(e=re(6+4*i.length)),e.write_shift(2,t),Ln(i,e);var n=e.length>e.l?e.slice(0,e.l):e;return null==e.l&&(e.l=e.length),n}var qw,hde=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],fde=sr;function TL(t,i){i||(i=re(84)),qw||(qw=O0(hde));var e=qw[t.patternType];null==e&&(e=40),i.write_shift(4,e);var n=0;if(40!=e)for($0({auto:1},i),$0({auto:1},i);n<12;++n)i.write_shift(4,0);else{for(;n<4;++n)i.write_shift(4,0);for(;n<12;++n)i.write_shift(4,0)}return i.length>i.l?i.slice(0,i.l):i}function ML(t,i,e){return e||(e=re(16)),e.write_shift(2,i||0),e.write_shift(2,t.numFmtId||0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e}function Hf(t,i){return i||(i=re(10)),i.write_shift(1,0),i.write_shift(1,0),i.write_shift(4,0),i.write_shift(4,0),i}var pde=sr;function Mde(t,i){var e=Ur();return fe(e,278),function xde(t,i){if(i){var e=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)null!=i[r]&&++e}),0!=e&&(fe(t,615,Jo(e)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)null!=i[r]&&fe(t,44,lde(r,i[r]))}),fe(t,616))}}(e,t.SSF),function yde(t){fe(t,611,Jo(1)),fe(t,43,function ude(t,i){i||(i=re(153)),i.write_shift(2,20*t.sz),function $ae(t,i){i||(i=re(2)),i.write_shift(1,(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0)),i.write_shift(1,0)}(t,i),i.write_shift(2,t.bold?700:400);var e=0;"superscript"==t.vertAlign?e=1:"subscript"==t.vertAlign&&(e=2),i.write_shift(2,e),i.write_shift(1,t.underline||0),i.write_shift(1,t.family||0),i.write_shift(1,t.charset||0),i.write_shift(1,0),$0(t.color,i);var n=0;return"major"==t.scheme&&(n=1),"minor"==t.scheme&&(n=2),i.write_shift(1,n),Ln(t.name,i),i.length>i.l?i.slice(0,i.l):i}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),fe(t,612)}(e),function wde(t){fe(t,603,Jo(2)),fe(t,45,TL({patternType:"none"})),fe(t,45,TL({patternType:"gray125"})),fe(t,604)}(e),function Cde(t){fe(t,613,Jo(1)),fe(t,46,function gde(t,i){return i||(i=re(51)),i.write_shift(1,0),Hf(0,i),Hf(0,i),Hf(0,i),Hf(0,i),Hf(0,i),i.length>i.l?i.slice(0,i.l):i}()),fe(t,614)}(e),function kde(t){fe(t,626,Jo(1)),fe(t,47,ML({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),fe(t,627)}(e),function Dde(t,i){fe(t,617,Jo(i.length)),i.forEach(function(e){fe(t,47,ML(e,0))}),fe(t,618)}(e,i.cellXfs),function Sde(t){fe(t,619,Jo(1)),fe(t,48,function _de(t,i){return i||(i=re(52)),i.write_shift(4,t.xfId),i.write_shift(2,1),i.write_shift(1,+t.builtinId),i.write_shift(1,0),If(t.name||"",i),i.length>i.l?i.slice(0,i.l):i}({xfId:0,builtinId:0,name:"Normal"})),fe(t,620)}(e),function Ede(t){fe(t,505,Jo(0)),fe(t,506)}(e),function Tde(t){fe(t,508,function bde(t,i,e){var n=re(2052);return n.write_shift(4,t),If(i,n),If(e,n),n.length>n.l?n.slice(0,n.l):n}(0,"TableStyleMedium9","PivotStyleMedium4")),fe(t,509)}(e),fe(e,279),e.end()}function Xw(t,i){if(i&&i.themeXLSX)return i.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var e=[sn];return e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e.join("")}function IL(t,i){var e=[21600,21600],n=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),r=[Ee("xml",null,{"xmlns:v":ro.v,"xmlns:o":ro.o,"xmlns:x":ro.x,"xmlns:mv":ro.mv}).replace(/\/>/,">"),Ee("o:shapelayout",Ee("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"})],o=65536*t,a=i||[];return a.length>0&&r.push(Ee("v:shapetype",[Ee("v:stroke",null,{joinstyle:"miter"}),Ee("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202",coordsize:e.join(","),"o:spt":202,path:n})),a.forEach(function(s){++o,r.push(function lue(t,i){var e=bi(t[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?Ee("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=Ee("v:fill",r,n);return["",o,Ee("v:shadow",null,{on:"t",obscured:"t"}),Ee("v:path",null,{"o:connecttype":"none"}),'
','',"","",Qn("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),Qn("x:AutoFill","False"),Qn("x:Row",String(e.r)),Qn("x:Column",String(e.c)),t[1].hidden?"":"","",""].join("")}(s,o))}),r.push(""),r.join("")}function uue(t){var i=[sn,Ee("comments",null,{xmlns:nl[0]})],e=[];return i.push(""),t.forEach(function(n){n[1].forEach(function(r){var o=Ot(r.a);-1==e.indexOf(o)&&(e.push(o),i.push(""+o+"")),r.T&&r.ID&&-1==e.indexOf("tc="+r.ID)&&(e.push("tc="+r.ID),i.push("tc="+r.ID+""))})}),0==e.length&&(e.push("SheetJ5"),i.push("SheetJ5")),i.push(""),i.push(""),t.forEach(function(n){var r=0,o=[],a=0;if(n[1][0]&&n[1][0].T&&n[1][0].ID&&(r=e.indexOf("tc="+n[1][0].ID)),n[1].forEach(function(l){l.a&&(r=e.indexOf(Ot(l.a))),l.T&&++a,o.push(null==l.t?"":Ot(l.t))}),0===a)n[1].forEach(function(l){i.push(''),i.push(Qn("t",null==l.t?"":Ot(l.t))),i.push("")});else{i.push('');for(var s="Comment:\n "+o[0]+"\n",c=1;c")}}),i.push(""),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function fue(t,i,e){var n=[sn,Ee("ThreadedComments",null,{xmlns:Rn.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(r){var o="";(r[1]||[]).forEach(function(a,s){if(a.T){a.a&&-1==i.indexOf(a.a)&&i.push(a.a);var c={ref:r[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+e.tcid++).slice(-12)+"}"};0==s?o=c.id:c.parentId=o,a.ID=c.id,a.a&&(c.personId="{54EE7950-7262-4200-6969-"+("000000000000"+i.indexOf(a.a)).slice(-12)+"}"),n.push(Ee("threadedComment",Qn("text",a.t||""),c))}else delete a.ID})}),n.push(""),n.join("")}var bue=cr;function yue(t){var i=Ur(),e=[];return fe(i,628),fe(i,630),t.forEach(function(n){n[1].forEach(function(r){e.indexOf(r.a)>-1||(e.push(r.a.slice(0,54)),fe(i,632,function vue(t){return Ln(t.slice(0,54))}(r.a)))})}),fe(i,631),fe(i,633),t.forEach(function(n){n[1].forEach(function(r){r.iauthor=e.indexOf(r.a);var o={s:bi(n[0]),e:bi(n[0])};fe(i,635,function _ue(t,i){return null==i&&(i=re(36)),i.write_shift(4,t[1].iauthor),su(t[0],i),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i}([o,r])),r.t&&r.t.length>0&&fe(i,637,function Nae(t,i){var e=!1;return null==i&&(e=!0,i=re(23+4*t.t.length)),i.write_shift(1,1),Ln(t.t,i),i.write_shift(4,1),function Oae(t,i){i||(i=re(4)),i.write_shift(2,t.ich||0),i.write_shift(2,t.ifnt||0)}({ich:0,ifnt:0},i),e?i.slice(0,i.l):i}(r)),fe(i,636),delete r.iauthor})}),fe(i,634),fe(i,629),i.end()}var Due=["xlsb","xlsm","xlam","biff8","xla"],gl=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,i={r:0,c:0};function e(n,r,o,a){var s=!1,c=!1;0==o.length?c=!0:"["==o.charAt(0)&&(c=!0,o=o.slice(1,-1)),0==a.length?s=!0:"["==a.charAt(0)&&(s=!0,a=a.slice(1,-1));var l=o.length>0?0|parseInt(o,10):0,d=a.length>0?0|parseInt(a,10):0;return s?d+=i.c:--d,c?l+=i.r:--l,r+(s?"":"$")+Ht(d)+(c?"":"$")+Yt(l)}return function(r,o){return i=o,r.replace(t,e)}}(),Qw=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,n_=function(){return function(i,e){return i.replace(Qw,function(n,r,o,a,s,c){var l=Cw(a)-(o?0:e.c),d=ww(c)-(s?0:e.r);return r+"R"+("$"==s?d+1:0==d?"":"["+d+"]")+"C"+("$"==o?l+1:0==l?"":"["+l+"]")})}}();function RL(t,i){return t.replace(Qw,function(e,n,r,o,a,s){return n+("$"==r?r+o:Ht(Cw(o)+i.c))+("$"==a?a+s:Yt(ww(s)+i.r))})}function kn(t){t.l+=1}function tc(t,i){var e=t.read_shift(1==i?1:2);return[16383&e,e>>14&1,e>>15&1]}function PL(t,i,e){var n=2;if(e){if(e.biff>=2&&e.biff<=5)return LL(t);12==e.biff&&(n=4)}var r=t.read_shift(n),o=t.read_shift(n),a=tc(t,2),s=tc(t,2);return{s:{r,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function LL(t){var i=tc(t,2),e=tc(t,2),n=t.read_shift(1),r=t.read_shift(1);return{s:{r:i[0],c:n,cRel:i[1],rRel:i[2]},e:{r:e[0],c:r,cRel:e[1],rRel:e[2]}}}function NL(t,i,e){if(e&&e.biff>=2&&e.biff<=5)return function Rue(t){var i=tc(t,2),e=t.read_shift(1);return{r:i[0],c:e,cRel:i[1],rRel:i[2]}}(t);var n=t.read_shift(e&&12==e.biff?4:2),r=tc(t,2);return{r:n,c:r[0],cRel:r[1],rRel:r[2]}}function Oue(t){var i=t.read_shift(2),e=t.read_shift(2);return{r:i,c:255&e,fQuoted:!!(16384&e),cRel:e>>15,rRel:e>>15}}function BL(t){var i=1&t[t.l+1];return t.l+=4,[i,1]}function VL(t){return[t.read_shift(1),t.read_shift(1)]}function lhe(t,i){var e=[t.read_shift(1)];if(12==i)switch(e[0]){case 2:e[0]=4;break;case 4:e[0]=16;break;case 0:e[0]=1;break;case 1:e[0]=2}switch(e[0]){case 4:e[1]=function cn(t,i){return 1===t.read_shift(i)}(t,1)?"TRUE":"FALSE",12!=i&&(t.l+=7);break;case 37:case 16:e[1]=gs[t[t.l]],t.l+=12==i?4:8;break;case 0:t.l+=8;break;case 1:e[1]=lr(t);break;case 2:e[1]=function fl(t,i,e){if(e.biff>5)return function Pf(t,i,e){var n=t.read_shift(e&&2==e.biff?1:2);return 0===n?(t.l++,""):function hl(t,i,e){if(e){if(e.biff>=2&&e.biff<=5)return t.read_shift(i,"cpstr");if(e.biff>=12)return t.read_shift(i,"dbcs-cont")}var r=t.read_shift(1);return t.read_shift(i,0===r?"sbcs-cont":"dbcs-cont")}(t,n,e)}(t,0,e);var n=t.read_shift(1);return 0===n?(t.l++,""):t.read_shift(n,e.biff<=4||!t.lens?"cpstr":"sbcs-cont")}(t,0,{biff:i>0&&i<8?2:i});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function dhe(t,i,e){for(var n=t.read_shift(12==e.biff?4:2),r=[],o=0;o!=n;++o)r.push((12==e.biff?cl:Y0)(t,8));return r}function uhe(t,i,e){var n=0,r=0;12==e.biff?(n=t.read_shift(4),r=t.read_shift(4)):(r=1+t.read_shift(1),n=1+t.read_shift(2)),e.biff>=2&&e.biff<8&&(--n,0==--r&&(r=256));for(var o=0,a=[];o!=n&&(a[o]=[]);++o)for(var s=0;s!=r;++s)a[o][s]=lhe(t,e.biff);return a}function Uf(t,i,e){return t.l+=2,[Oue(t)]}function Yw(t){return t.l+=6,[]}function HL(t){return t.l+=2,[ln(t),1&t.read_shift(2)]}var Ihe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],UL={1:{n:"PtgExp",f:function nhe(t,i,e){return t.l++,e&&12==e.biff?[t.read_shift(4,"i"),0]:[t.read_shift(2),t.read_shift(e&&2==e.biff?1:2)]}},2:{n:"PtgTbl",f:sr},3:{n:"PtgAdd",f:kn},4:{n:"PtgSub",f:kn},5:{n:"PtgMul",f:kn},6:{n:"PtgDiv",f:kn},7:{n:"PtgPower",f:kn},8:{n:"PtgConcat",f:kn},9:{n:"PtgLt",f:kn},10:{n:"PtgLe",f:kn},11:{n:"PtgEq",f:kn},12:{n:"PtgGe",f:kn},13:{n:"PtgGt",f:kn},14:{n:"PtgNe",f:kn},15:{n:"PtgIsect",f:kn},16:{n:"PtgUnion",f:kn},17:{n:"PtgRange",f:kn},18:{n:"PtgUplus",f:kn},19:{n:"PtgUminus",f:kn},20:{n:"PtgPercent",f:kn},21:{n:"PtgParen",f:kn},22:{n:"PtgMissArg",f:kn},23:{n:"PtgStr",f:function che(t,i,e){return t.l++,Of(t,0,e)}},26:{n:"PtgSheet",f:function Ohe(t,i,e){return t.l+=5,t.l+=2,t.l+=2==e.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function Phe(t,i,e){return t.l+=2==e.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function rhe(t){return t.l++,gs[t.read_shift(1)]}},29:{n:"PtgBool",f:function ahe(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function ohe(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function she(t){return t.l++,lr(t)}},32:{n:"PtgArray",f:function zue(t,i,e){var n=(96&t[t.l++])>>5;return t.l+=2==e.biff?6:12==e.biff?14:7,[n]}},33:{n:"PtgFunc",f:function Jue(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(e&&e.biff<=3?1:2);return[ffe[r],WL[r],n]}},34:{n:"PtgFuncVar",f:function ehe(t,i,e){var n=t[t.l++],r=t.read_shift(1),o=e&&e.biff<=3?[88==n?-1:0,t.read_shift(1)]:function the(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[r,(0===o[0]?WL:hfe)[o[1]]]}},35:{n:"PtgName",f:function hhe(t,i,e){var n=t.read_shift(1)>>>5&3,o=t.read_shift(!e||e.biff>=8?4:2);switch(e.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12}return[n,0,o]}},36:{n:"PtgRef",f:function Yue(t,i,e){var n=(96&t[t.l])>>5;return t.l+=1,[n,NL(t,0,e)]}},37:{n:"PtgArea",f:function Nue(t,i,e){return[(96&t[t.l++])>>5,PL(t,0,e)]}},38:{n:"PtgMemArea",f:function phe(t,i,e){var n=t.read_shift(1)>>>5&3;return t.l+=e&&2==e.biff?3:4,[n,t.read_shift(e&&2==e.biff?1:2)]}},39:{n:"PtgMemErr",f:sr},40:{n:"PtgMemNoMem",f:sr},41:{n:"PtgMemFunc",f:function ghe(t,i,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&2==e.biff?1:2)]}},42:{n:"PtgRefErr",f:function _he(t,i,e){var n=t.read_shift(1)>>>5&3;return t.l+=4,e.biff<8&&t.l--,12==e.biff&&(t.l+=2),[n]}},43:{n:"PtgAreaErr",f:function Vue(t,i,e){var n=(96&t[t.l++])>>5;return t.l+=e&&e.biff>8?12:e.biff<8?6:8,[n]}},44:{n:"PtgRefN",f:function Kue(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=function Pue(t,i,e){var n=e&&e.biff?e.biff:8;if(n>=2&&n<=5)return function Lue(t){var i=t.read_shift(2),e=t.read_shift(1),n=(32768&i)>>15,r=(16384&i)>>14;return i&=16383,1==n&&i>=8192&&(i-=16384),1==r&&e>=128&&(e-=256),{r:i,c:e,cRel:r,rRel:n}}(t);var r=t.read_shift(n>=12?4:2),o=t.read_shift(2),a=(16384&o)>>14,s=(32768&o)>>15;if(o&=16383,1==s)for(;r>524287;)r-=1048576;if(1==a)for(;o>8191;)o-=16384;return{r,c:o,cRel:a,rRel:s}}(t,0,e);return[n,r]}},45:{n:"PtgAreaN",f:function Uue(t,i,e){var n=(96&t[t.l++])>>5,r=function Fue(t,i,e){if(e.biff<8)return LL(t);var n=t.read_shift(12==e.biff?4:2),r=t.read_shift(12==e.biff?4:2),o=tc(t,2),a=tc(t,2);return{s:{r:n,c:o[0],cRel:o[1],rRel:o[2]},e:{r,c:a[0],cRel:a[1],rRel:a[2]}}}(t,0,e);return[n,r]}},46:{n:"PtgMemAreaN",f:function Lhe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function Nhe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function fhe(t,i,e){return 5==e.biff?function mhe(t){var i=t.read_shift(1)>>>5&3,e=t.read_shift(2,"i");t.l+=8;var n=t.read_shift(2);return t.l+=12,[i,e,n]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function Zue(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(2);return e&&5==e.biff&&(t.l+=12),[n,r,NL(t,0,e)]}},59:{n:"PtgArea3d",f:function Bue(t,i,e){var n=(96&t[t.l++])>>5,r=t.read_shift(2,"i");if(e&&5===e.biff)t.l+=12;return[n,r,PL(t,0,e)]}},60:{n:"PtgRefErr3d",f:function bhe(t,i,e){var n=(96&t[t.l++])>>5,r=t.read_shift(2),o=4;if(e)switch(e.biff){case 5:o=15;break;case 12:o=6}return t.l+=o,[n,r]}},61:{n:"PtgAreaErr3d",f:function Hue(t,i,e){var n=(96&t[t.l++])>>5,r=t.read_shift(2),o=8;if(e)switch(e.biff){case 5:t.l+=12,o=6;break;case 12:o=12}return t.l+=o,[n,r]}},255:{}},Vhe={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Hhe={1:{n:"PtgElfLel",f:HL},2:{n:"PtgElfRw",f:Uf},3:{n:"PtgElfCol",f:Uf},6:{n:"PtgElfRwV",f:Uf},7:{n:"PtgElfColV",f:Uf},10:{n:"PtgElfRadical",f:Uf},11:{n:"PtgElfRadicalS",f:Yw},13:{n:"PtgElfColS",f:Yw},15:{n:"PtgElfColSV",f:Yw},16:{n:"PtgElfRadicalLel",f:HL},25:{n:"PtgList",f:function Fhe(t){t.l+=2;var i=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(4),r=t.read_shift(2),o=t.read_shift(2);return{ixti:i,coltype:3&e,rt:Ihe[e>>2&31],idx:n,c:r,C:o}}},29:{n:"PtgSxName",f:function Rhe(t){return t.l+=2,[t.read_shift(4)]}},255:{}},Uhe={0:{n:"PtgAttrNoop",f:function Bhe(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function que(t,i,e){var n=255&t[t.l+1]?1:0;return t.l+=e&&2==e.biff?3:4,[n]}},2:{n:"PtgAttrIf",f:function Wue(t,i,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&2==e.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function $ue(t,i,e){t.l+=2;for(var n=t.read_shift(e&&2==e.biff?1:2),r=[],o=0;o<=n;++o)r.push(t.read_shift(e&&2==e.biff?1:2));return r}},8:{n:"PtgAttrGoto",f:function jue(t,i,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&2==e.biff?1:2)]}},16:{n:"PtgAttrSum",f:function ihe(t,i,e){t.l+=e&&2==e.biff?3:4}},32:{n:"PtgAttrBaxcel",f:BL},33:{n:"PtgAttrBaxcel",f:BL},64:{n:"PtgAttrSpace",f:function Xue(t){return t.read_shift(2),VL(t)}},65:{n:"PtgAttrSpaceSemi",f:function Que(t){return t.read_shift(2),VL(t)}},128:{n:"PtgAttrIfError",f:function Gue(t){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(2)]}},255:{}};function zf(t,i,e,n){if(n.biff<8)return sr(t,i);for(var r=t.l+i,o=[],a=0;a!==e.length;++a)switch(e[a][0]){case"PtgArray":e[a][1]=uhe(t,0,n),o.push(e[a][1]);break;case"PtgMemArea":e[a][2]=dhe(t,0,n),o.push(e[a][2]);break;case"PtgExp":n&&12==n.biff&&(e[a][1][1]=t.read_shift(4),o.push(e[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[a][0]}return 0!=(i=r-t.l)&&o.push(sr(t,i)),o}function zhe(t){for(var i=[],e=0;e=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function jhe(t,i){var e=t.lastIndexOf("!"),n=i.lastIndexOf("!");return-1==e&&-1==n?t+":"+i:e>0&&n>0&&t.slice(0,e).toLowerCase()==i.slice(0,n).toLowerCase()?t+":"+i.slice(n+1):(console.error("Cannot hydrate range",t,i),t+":"+i)}function zL(t,i,e){if(!t)return"SH33TJSERR0";if(e.biff>8&&(!t.XTI||!t.XTI[i]))return t.SheetNames[i];if(!t.XTI)return"SH33TJSERR6";var n=t.XTI[i];if(e.biff<8)return i>1e4&&(i-=65536),i<0&&(i=-i),0==i?"":t.XTI[i-1];if(!n)return"SH33TJSERR1";var r="";if(e.biff>8)switch(t[n[0]][0]){case 357:return r=-1==n[1]?"#REF":t.SheetNames[n[1]],n[1]==n[2]?r:r+":"+t.SheetNames[n[2]];case 358:return null!=e.SID?t.SheetNames[e.SID]:"SH33TJSSAME"+t[n[0]][0];default:return"SH33TJSSRC"+t[n[0]][0]}switch(t[n[0]][0][0]){case 1025:return r=-1==n[1]?"#REF":t.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?r:r+":"+t.SheetNames[n[2]];case 14849:return t[n[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return t[n[0]][0][3]?(r=-1==n[1]?"#REF":t[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?r:r+":"+t[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function $L(t,i,e){var n=zL(t,i,e);return"#REF"==n?n:Af(n,e)}function hr(t,i,e,n,r){var c,l,d,f,o=r&&r.biff||8,a={s:{c:0,r:0},e:{c:0,r:0}},s=[],u=0,h=0,m="";if(!t[0]||!t[0][0])return"";for(var g=-1,p="",_=0,w=t[0].length;_=0){switch(t[0][g][1][0]){case 0:p=ri(" ",t[0][g][1][1]);break;case 1:p=ri("\r",t[0][g][1][1]);break;default:if(p="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}l+=p,g=-1}s.push(l+$he[x[0]]+c);break;case"PtgIsect":c=s.pop(),l=s.pop(),s.push(l+" "+c);break;case"PtgUnion":c=s.pop(),l=s.pop(),s.push(l+","+c);break;case"PtgRange":c=s.pop(),l=s.pop(),s.push(jhe(l,c));break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":d=Ef(x[1][1],a,r),s.push(Tf(d,o));break;case"PtgRefN":d=e?Ef(x[1][1],e,r):x[1][1],s.push(Tf(d,o));break;case"PtgRef3d":u=x[1][1],d=Ef(x[1][2],a,r),m=$L(n,u,r),s.push(m+"!"+Tf(d,o));break;case"PtgFunc":case"PtgFuncVar":var W=x[1][0],L=x[1][1];W||(W=0);var D=0==(W&=127)?[]:s.slice(-W);s.length-=W,"User"===L&&(L=D.shift()),s.push(L+"("+D.join(",")+")");break;case"PtgBool":s.push(x[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":s.push(x[1]);break;case"PtgNum":s.push(String(x[1]));break;case"PtgStr":s.push('"'+x[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":f=w4(x[1][1],e?{s:e}:a,r),s.push(yw(f,r));break;case"PtgArea":f=w4(x[1][1],a,r),s.push(yw(f,r));break;case"PtgArea3d":f=x[1][2],m=$L(n,u=x[1][1],r),s.push(m+"!"+yw(f,r));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgName":var B=(n.names||[])[(h=x[1][2])-1]||(n[0]||[])[h],N=B?B.Name:"SH33TJSNAME"+String(h);N&&"_xlfn."==N.slice(0,6)&&!r.xlfn&&(N=N.slice(6)),s.push(N);break;case"PtgNameX":var Z,j=x[1][1];if(h=x[1][2],!(r.biff<=5)){var U="";if(14849==((n[j]||[])[0]||[])[0]||(1025==((n[j]||[])[0]||[])[0]?n[j][h]&&n[j][h].itab>0&&(U=n.SheetNames[n[j][h].itab-1]+"!"):U=n.SheetNames[h-1]+"!"),n[j]&&n[j][h])U+=n[j][h].Name;else if(n[0]&&n[0][h])U+=n[0][h].Name;else{var me=(zL(n,j,r)||"").split(";;");me[h-1]?U=me[h-1]:U+="SH33TJSERRX"}s.push(U);break}j<0&&(j=-j),n[j]&&(Z=n[j][h]),Z||(Z={Name:"SH33TJSERRY"}),s.push(Z.Name);break;case"PtgParen":var be="(",de=")";if(g>=0){switch(p="",t[0][g][1][0]){case 2:be=ri(" ",t[0][g][1][1])+be;break;case 3:be=ri("\r",t[0][g][1][1])+be;break;case 4:de=ri(" ",t[0][g][1][1])+de;break;case 5:de=ri("\r",t[0][g][1][1])+de;break;default:if(r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}g=-1}s.push(be+s.pop()+de);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":s.push("#REF!");break;case"PtgExp":var ne={c:e.c,r:e.r};if(n.sharedf[zt(d={c:x[1][1],r:x[1][0]})]){var Y=n.sharedf[zt(d)];s.push(hr(Y,0,ne,n,r))}else{var he=!1;for(c=0;c!=n.arrayf.length;++c)if(!(d.c<(l=n.arrayf[c])[0].s.c||d.c>l[0].e.c||d.rl[0].e.r)){s.push(hr(l[1],0,ne,n,r)),he=!0;break}he||s.push(x[1])}break;case"PtgArray":s.push("{"+zhe(x[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=_;break;case"PtgMissArg":s.push("");break;case"PtgList":s.push("Table"+x[1].idx+"[#"+x[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(x))}if(3!=r.biff&&g>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][_][0])){var Le=!0;switch((x=t[0][g])[1][0]){case 4:Le=!1;case 0:p=ri(" ",x[1][1]);break;case 5:Le=!1;case 1:p=ri("\r",x[1][1]);break;default:if(p="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+x[1][0])}s.push((Le?p:"")+s.pop()+(Le?"":p)),g=-1}}if(s.length>1&&r.WTF)throw new Error("bad formula stack");return"TRUE"==s[0]||"FALSE"!=s[0]&&s[0]}function r_(t,i,e){var n=t.read_shift(4),r=function $f(t,i,e){for(var r,o,n=t.l+i,a=[];n!=t.l;)i=n-t.l,r=UL[o=t[t.l]]||UL[Vhe[o]],(24===o||25===o)&&(r=(24===o?Hhe:Uhe)[t[t.l+1]]),r&&r.f?a.push([r.n,r.f(t,i,e)]):sr(t,i);return a}(t,n,e),o=t.read_shift(4);return[r,o>0?zf(t,o,r,e):null]}var Zhe=r_,o_=r_,Jhe=r_,efe=r_;function jL(t){if((0|t)==t&&t=0){var i=re(11);return i.write_shift(4,3),i.write_shift(1,30),i.write_shift(2,t),i.write_shift(4,0),i}var e=re(17);return e.write_shift(4,11),e.write_shift(1,31),e.write_shift(8,t),e.write_shift(4,0),e}var ufe=function dfe(t,i){if("number"==typeof t)return jL(t);if("boolean"==typeof t)return function ife(t){var i=re(10);return i.write_shift(4,2),i.write_shift(1,29),i.write_shift(1,t?1:0),i.write_shift(4,0),i}(t);if(/^#(DIV\/0!|GETTING_DATA|N\/A|NAME\?|NULL!|NUM!|REF!|VALUE!)$/.test(t))return function tfe(t){var i=re(10);return i.write_shift(4,2),i.write_shift(1,28),i.write_shift(1,t),i.write_shift(4,0),i}(+Fw[t]);if(t.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function rfe(t){var i=bi(t),e=re(15);return e.write_shift(4,7),e.write_shift(1,36),e.write_shift(4,i.r),e.write_shift(2,i.c|("$"==t.charAt(0)?0:1)<<14|(t.match(/\$\d/)?0:1)<<15),e.write_shift(4,0),e}(t);if(t.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function sfe(t){var i=t.split(":"),e=i[0],n=re(23);n.write_shift(4,15);var r=bi(e=i[0]);return n.write_shift(1,36),n.write_shift(4,r.r),n.write_shift(2,r.c|("$"==e.charAt(0)?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),n.write_shift(4,0),r=bi(e=i[1]),n.write_shift(1,36),n.write_shift(4,r.r),n.write_shift(2,r.c|("$"==e.charAt(0)?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),n.write_shift(4,0),n.write_shift(1,17),n.write_shift(4,0),n}(t);if(t.match(/^#REF!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function lfe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e);t=t.slice(e+1),"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var r=Pn(t),o=re(23);return o.write_shift(4,15),o.write_shift(1,59),o.write_shift(2,2+i.SheetNames.map(function(a){return a.toLowerCase()}).indexOf(n.toLowerCase())),o.write_shift(4,r.s.r),o.write_shift(4,r.e.r),o.write_shift(2,r.s.c),o.write_shift(2,r.e.c),o.write_shift(4,0),o}(t,i);if(t.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function ofe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e),r=bi(t=t.slice(e+1));"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var o=re(17);return o.write_shift(4,9),o.write_shift(1,58),o.write_shift(2,2+i.SheetNames.map(function(a){return a.toLowerCase()}).indexOf(n.toLowerCase())),o.write_shift(4,r.r),o.write_shift(2,r.c|("$"==t.charAt(0)?0:1)<<14|(t.match(/\$\d/)?0:1)<<15),o.write_shift(4,0),o}(t,i);if(t.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function cfe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e);t=t.slice(e+1),"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var r=t.split(":");a=r[0];var o=re(27);o.write_shift(4,19);var a=r[0],s=bi(a);return o.write_shift(1,58),o.write_shift(2,2+i.SheetNames.map(function(c){return c.toLowerCase()}).indexOf(n.toLowerCase())),o.write_shift(4,s.r),o.write_shift(2,s.c|("$"==a.charAt(0)?0:1)<<14|(a.match(/\$\d/)?0:1)<<15),s=bi(a=r[1]),o.write_shift(1,58),o.write_shift(2,2+i.SheetNames.map(function(c){return c.toLowerCase()}).indexOf(n.toLowerCase())),o.write_shift(4,s.r),o.write_shift(2,s.c|("$"==a.charAt(0)?0:1)<<14|(a.match(/\$\d/)?0:1)<<15),o.write_shift(1,17),o.write_shift(4,0),o}(t,i);if(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!#REF!$/.test(t))return function afe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e);t=t.slice(e+1),"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var r=re(17);return r.write_shift(4,9),r.write_shift(1,60),r.write_shift(2,2+i.SheetNames.map(function(o){return o.toLowerCase()}).indexOf(n.toLowerCase())),r.write_shift(4,0),r.write_shift(2,0),r.write_shift(4,0),r}(t,i);if(/^".*"$/.test(t))return function nfe(t){var i=re(7);i.write_shift(4,3+2*t.length),i.write_shift(1,23),i.write_shift(2,t.length);var e=re(2*t.length);e.write_shift(2*t.length,t,"utf16le");var n=re(4);return n.write_shift(4,0),xn([i,e,n])}(t);if(/^[+-]\d+$/.test(t))return jL(parseInt(t,10));throw"Formula |"+t+"| not supported for XLSB"},hfe={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},WL={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},ffe={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function mfe(t){return("of:="+t.replace(Qw,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function qL(t){return t.replace(/!/,".")}var Wf=typeof Map<"u";function Jw(t,i,e){var n=0,r=t.length;if(e){if(Wf?e.has(i):Object.prototype.hasOwnProperty.call(e,i))for(var o=Wf?e.get(i):e[i];n-1?(e.width=e_(n),e.customWidth=1):null!=i.width&&(e.width=i.width),i.hidden&&(e.hidden=!0),null!=i.level&&(e.outlineLevel=e.level=i.level),e}function _l(t,i){if(t){var e=[.7,.7,.75,.75,.3,.3];"xlml"==i&&(e=[1,1,1,1,.5,.5]),null==t.left&&(t.left=e[0]),null==t.right&&(t.right=e[1]),null==t.top&&(t.top=e[2]),null==t.bottom&&(t.bottom=e[3]),null==t.header&&(t.header=e[4]),null==t.footer&&(t.footer=e[5])}}function ic(t,i,e){var n=e.revssf[null!=i.z?i.z:"General"],r=60,o=t.length;if(null==n&&e.ssf)for(;r<392;++r)if(null==e.ssf[r]){Ks(i.z,r),e.ssf[r]=i.z,e.revssf[i.z]=n=r;break}for(r=0;r!=o;++r)if(t[r].numFmtId===n)return r;return t[o]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function pfe(t,i,e){if(t&&t["!ref"]){var n=Kt(t["!ref"]);if(n.e.c"u")return"";var r="",o=t.t,a=t.v;if("z"!==t.t)switch(t.t){case"b":r=t.v?"1":"0";break;case"n":r=""+t.v;break;case"e":r=gs[t.v];break;case"d":n&&n.cellDates?r=ji(t.v,-1).toISOString():((t=yi(t)).t="n",r=""+(t.v=yn(ji(t.v)))),typeof t.z>"u"&&(t.z=ut[14]);break;default:r=t.v}var s="z"==t.t||null==t.v?"":Qn("v",Ot(r)),c={r:i},l=ic(n.cellXfs,t,n);switch(0!==l&&(c.s=l),t.t){case"n":case"z":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;default:if(null==t.v){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=Qn("v",""+Jw(n.Strings,t.v,n.revStrings)),c.t="s";break}c.t="str"}if(t.t!=o&&(t.t=o,t.v=a),"string"==typeof t.f&&t.f){var d=t.F&&t.F.slice(0,i.length)==i?{t:"array",ref:t.F}:null;s=Ee("f",Ot(t.f),d)+(null!=t.v?s:"")}return t.l&&(t.l.display=Ot(r),e["!links"].push([i,t.l])),t.D&&(c.cm=1),Ee("c",s,c)}function Gfe(t,i,e,n){var a,r=[sn,Ee("worksheet",null,{xmlns:nl[0],"xmlns:r":Rn.r})],s="",c=e.Sheets[e.SheetNames[t]];null==c&&(c={});var l=c["!ref"]||"A1",d=Kt(l);if(d.e.c>16383||d.e.r>1048575){if(i.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575),l=Et(d)}n||(n={}),c["!comments"]=[];var u=[];(function Mfe(t,i,e,n,r){var o=!1,a={},s=null;if("xlsx"!==n.bookType&&i.vbaraw){var c=i.SheetNames[e];try{i.Workbook&&(c=i.Workbook.Sheets[e].CodeName||c)}catch{}o=!0,a.codeName=Ma(Ot(c))}if(t&&t["!outline"]){var l={summaryBelow:1,summaryRight:1};t["!outline"].above&&(l.summaryBelow=0),t["!outline"].left&&(l.summaryRight=0),s=(s||"")+Ee("outlinePr",null,l)}!o&&!s||(r[r.length]=Ee("sheetPr",s,a))})(c,e,t,i,r),r[r.length]=Ee("dimension",null,{ref:l}),r[r.length]=function zfe(t,i,e,n){var r={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(r.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Ee("sheetViews",Ee("sheetView",null,r),{})}(0,0,0,e),i.sheetFormat&&(r[r.length]=Ee("sheetFormatPr",null,{defaultRowHeight:i.sheetFormat.defaultRowHeight||"16",baseColWidth:i.sheetFormat.baseColWidth||"10",outlineLevelRow:i.sheetFormat.outlineLevelRow||"7"})),null!=c["!cols"]&&c["!cols"].length>0&&(r[r.length]=function Nfe(t,i){for(var n,e=[""],r=0;r!=i.length;++r)(n=i[r])&&(e[e.length]=Ee("col",null,a_(r,n)));return e[e.length]="",e.join("")}(0,c["!cols"])),r[a=r.length]="",c["!links"]=[],null!=c["!ref"]&&(s=function Wfe(t,i,e,n){var c,p,r=[],o=[],a=Kt(t["!ref"]),s="",l="",d=[],u=0,h=0,f=t["!rows"],m=null!=t["!data"],g={r:l},_=-1;for(h=a.s.c;h<=a.e.c;++h)d[h]=Ht(h);for(u=a.s.r;u<=a.e.r;++u){for(o=[],l=Yt(u),h=a.s.c;h<=a.e.c;++h){c=d[h]+l;var w=m?(t["!data"][u]||[])[h]:t[c];void 0!==w&&null!=(s=$fe(w,c,t,i))&&o.push(s)}(o.length>0||f&&f[u])&&(g={r:l},f&&f[u]&&((p=f[u]).hidden&&(g.hidden=1),_=-1,p.hpx?_=Vf(p.hpx):p.hpt&&(_=p.hpt),_>-1&&(g.ht=_,g.customHeight=1),p.level&&(g.outlineLevel=p.level)),r[r.length]=Ee("row",o.join(""),g))}if(f)for(;u-1&&(g.ht=_,g.customHeight=1),p.level&&(g.outlineLevel=p.level),r[r.length]=Ee("row","",g));return r.join("")}(c,i),s.length>0&&(r[r.length]=s)),r.length>a+1&&(r[r.length]="",r[a]=r[a].replace("/>",">")),c["!protect"]&&(r[r.length]=function Ffe(t){var i={sheet:1};return Afe.forEach(function(e){null!=t[e]&&t[e]&&(i[e]="1")}),Ife.forEach(function(e){null!=t[e]&&!t[e]&&(i[e]="0")}),t.password&&(i.password=jw(t.password).toString(16).toUpperCase()),Ee("sheetProtection",null,i)}(c["!protect"])),null!=c["!autofilter"]&&(r[r.length]=function Vfe(t,i,e,n){var r="string"==typeof t.ref?t.ref:Et(t.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var o=e.Workbook.Names,a=Pn(r);a.s.r==a.e.r&&(a.e.r=Pn(i["!ref"]).e.r,r=Et(a));for(var s=0;s0&&(r[r.length]=function Efe(t){if(0===t.length)return"";for(var i='',e=0;e!=t.length;++e)i+='';return i+""}(c["!merges"]));var f,h=-1,m=-1;return c["!links"].length>0&&(r[r.length]="",c["!links"].forEach(function(g){g[1].Target&&(f={ref:g[0]},"#"!=g[1].Target.charAt(0)&&(m=ki(n,-1,Ot(g[1].Target).replace(/#.*$/,""),Pt.HLINK),f["r:id"]="rId"+m),(h=g[1].Target.indexOf("#"))>-1&&(f.location=Ot(g[1].Target.slice(h+1))),g[1].Tooltip&&(f.tooltip=Ot(g[1].Tooltip)),f.display=g[1].display,r[r.length]=Ee("hyperlink",null,f))}),r[r.length]=""),delete c["!links"],null!=c["!margins"]&&(r[r.length]=function Pfe(t){return _l(t),Ee("pageMargins",null,t)}(c["!margins"])),(!i||i.ignoreEC||null==i.ignoreEC)&&(r[r.length]=Qn("ignoredErrors",Ee("ignoredError",null,{numberStoredAsText:1,sqref:l}))),u.length>0&&(m=ki(n,-1,"../drawings/drawing"+(t+1)+".xml",Pt.DRAW),r[r.length]=Ee("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=u),c["!comments"].length>0&&(m=ki(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Pt.VML),r[r.length]=Ee("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),r.length>1&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Qfe(t,i,e,n){var r=function Xfe(t,i,e){var n=re(145),r=(e["!rows"]||[])[t]||{};n.write_shift(4,t),n.write_shift(4,0);var o=320;r.hpx?o=20*Vf(r.hpx):r.hpt&&(o=20*r.hpt),n.write_shift(2,o),n.write_shift(1,0);var a=0;r.level&&(a|=r.level),r.hidden&&(a|=16),(r.hpx||r.hpt)&&(a|=32),n.write_shift(1,a),n.write_shift(1,0);var s=0,c=n.l;n.l+=4;for(var l={r:t,c:0},d=null!=e["!data"],u=0;u<16;++u)if(!(i.s.c>u+1<<10||i.e.cn.l?n.slice(0,n.l):n}(n,e,i);(r.length>17||(i["!rows"]||[])[n])&&fe(t,0,r)}var Yfe=cl,Kfe=su;var Rme=cl,Ome=su,KL=["left","right","top","bottom","header","footer"];function Kme(t,i,e,n,r,o,a){var s={r:e,c:n};if(i.c&&o["!comments"].push([zt(s),i.c]),void 0===i.v)return!1;var c="";switch(i.t){case"b":c=i.v?"1":"0";break;case"d":(i=yi(i)).z=i.z||ut[14],i.v=yn(ji(i.v)),i.t="n";break;case"n":case"e":c=""+i.v;break;default:c=i.v}switch(s.s=ic(r.cellXfs,i,r),i.l&&o["!links"].push([zt(s),i.l]),i.t){case"s":case"str":return r.bookSST?(c=Jw(r.Strings,null==i.v?"":String(i.v),r.revStrings),s.t="s",s.v=c,a?fe(t,18,function gme(t,i,e){return null==e&&(e=re(8)),sl(i,e),e.write_shift(4,i.v),e}(0,s)):fe(t,7,function mme(t,i,e){return null==e&&(e=re(12)),ol(i,e),e.write_shift(4,i.v),e}(0,s))):(s.t="str",a?fe(t,17,function Tme(t,i,e){var n=null==t.v?"":String(t.v);return null==e&&(e=re(8+4*n.length)),sl(i,e),Ln(n,e),e.length>e.l?e.slice(0,e.l):e}(i,s)):fe(t,6,function Sme(t,i,e){var n=null==t.v?"":String(t.v);return null==e&&(e=re(12+4*t.v.length)),ol(i,e),Ln(n,e),e.length>e.l?e.slice(0,e.l):e}(i,s))),!0;case"n":return i.v==(0|i.v)&&i.v>-1e3&&i.v<1e3?a?fe(t,13,function Cme(t,i,e){return null==e&&(e=re(8)),sl(i,e),S4(t.v,e),e}(i,s)):fe(t,2,function yme(t,i,e){return null==e&&(e=re(12)),ol(i,e),S4(t.v,e),e}(i,s)):a?fe(t,16,function vme(t,i,e){return null==e&&(e=re(12)),sl(i,e),ll(t.v,e),e}(i,s)):fe(t,5,function bme(t,i,e){return null==e&&(e=re(16)),ol(i,e),ll(t.v,e),e}(i,s)),!0;case"b":return s.t="b",a?fe(t,15,function cme(t,i,e){return null==e&&(e=re(5)),sl(i,e),e.write_shift(1,t.v?1:0),e}(i,s)):fe(t,4,function ame(t,i,e){return null==e&&(e=re(9)),ol(i,e),e.write_shift(1,t.v?1:0),e}(i,s)),!0;case"e":return s.t="e",a?fe(t,14,function hme(t,i,e){return null==e&&(e=re(8)),sl(i,e),e.write_shift(1,t.v),e.write_shift(2,0),e.write_shift(1,0),e}(i,s)):fe(t,3,function dme(t,i,e){return null==e&&(e=re(9)),ol(i,e),e.write_shift(1,t.v),e}(i,s)),!0}return a?fe(t,12,function rme(t,i,e){return null==e&&(e=re(4)),sl(i,e)}(0,s)):fe(t,1,function ime(t,i,e){return null==e&&(e=re(8)),ol(i,e)}(0,s)),!0}function spe(t,i,e,n){var r=Ur(),o=e.SheetNames[t],a=e.Sheets[o]||{},s=o;try{e&&e.Workbook&&(s=e.Workbook.Sheets[t].CodeName||s)}catch{}var c=Kt(a["!ref"]||"A1");if(c.e.c>16383||c.e.r>1048575){if(i.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575)}return a["!links"]=[],a["!comments"]=[],fe(r,129),(e.vbaraw||a["!outline"])&&fe(r,147,function eme(t,i,e){null==e&&(e=re(84+4*t.length));var n=192;i&&(i.above&&(n&=-65),i.left&&(n&=-129)),e.write_shift(1,n);for(var r=1;r<3;++r)e.write_shift(1,0);return $0({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),D4(t,e),e.slice(0,e.l)}(s,a["!outline"])),fe(r,148,Kfe(c)),function ope(t,i,e){fe(t,133),fe(t,137,function Wme(t,i,e){null==e&&(e=re(30));var n=924;return(((i||{}).Views||[])[0]||{}).RTL&&(n|=32),e.write_shift(2,n),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,100),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(4,0),e}(0,e)),fe(t,138),fe(t,134)}(r,0,e.Workbook),function epe(t,i){!i||!i["!cols"]||(fe(t,390),i["!cols"].forEach(function(e,n){e&&fe(t,60,function Ume(t,i,e){null==e&&(e=re(18));var n=a_(t,i);e.write_shift(-4,t),e.write_shift(-4,t),e.write_shift(4,256*(n.width||10)),e.write_shift(4,0);var r=0;return i.hidden&&(r|=1),"number"==typeof n.width&&(r|=2),i.level&&(r|=i.level<<8),e.write_shift(2,r),e}(n,e))}),fe(t,391))}(r,a),function Zme(t,i,e,n){var r=Kt(i["!ref"]||"A1"),a="",s=[];fe(t,145);var c=null!=i["!data"],l=r.e.r;i["!rows"]&&(l=Math.max(r.e.r,i["!rows"].length-1));for(var d=r.s.r;d<=l;++d){a=Yt(d),Qfe(t,i,r,d);var u=!1;if(d<=r.e.r)for(var h=r.s.c;h<=r.e.c;++h){d===r.s.r&&(s[h]=Ht(h));var f=c?(i["!data"][d]||[])[h]:i[s[h]+a];u=!!f&&Kme(t,f,d,h,n,i,u)}}fe(t,146)}(r,a,0,i),function ape(t,i){i["!protect"]&&fe(t,535,function qme(t,i){return null==i&&(i=re(66)),i.write_shift(2,t.password?jw(t.password):0),i.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(e){i.write_shift(4,e[1]?null==t[e[0]]||t[e[0]]?0:1:null!=t[e[0]]&&t[e[0]]?0:1)}),i}(i["!protect"]))}(r,a),function rpe(t,i,e,n){if(i["!autofilter"]){var r=i["!autofilter"],o="string"==typeof r.ref?r.ref:Et(r.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var a=e.Workbook.Names,s=Pn(o);s.s.r==s.e.r&&(s.e.r=Pn(i["!ref"]).e.r,o=Et(s));for(var c=0;c0){var r=ki(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Pt.VML);fe(t,551,Ew("rId"+r)),i["!legacy"]=r}}(r,a,t,n),fe(r,130),r.end()}var tC=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],_pe=":][*?/\\".split("");function tN(t,i){try{if(""==t)throw new Error("Sheet name cannot be blank");if(t.length>31)throw new Error("Sheet name cannot exceed 31 chars");if(39==t.charCodeAt(0)||39==t.charCodeAt(t.length-1))throw new Error("Sheet name cannot start or end with apostrophe (')");if("history"==t.toLowerCase())throw new Error("Sheet name cannot be 'History'");_pe.forEach(function(e){if(-1!=t.indexOf(e))throw new Error("Sheet name cannot contain : \\ / ? * [ ]")})}catch(e){if(i)return!1;throw e}return!0}function Cpe(t,i){return i||(i=re(127)),i.write_shift(4,t.Hidden),i.write_shift(4,t.iTabID),Ew(t.strRelID,i),Ln(t.name.slice(0,31),i),i.length>i.l?i.slice(0,i.l):i}function Npe(t,i){var e=Ur();return fe(e,131),fe(e,128,function Ipe(t,i){i||(i=re(127));for(var e=0;4!=e;++e)i.write_shift(4,0);return Ln("SheetJS",i),Ln(pf.version,i),Ln(pf.version,i),Ln("7262",i),i.length>i.l?i.slice(0,i.l):i}()),fe(e,153,function Dpe(t,i){i||(i=re(72));var e=0;return t&&(t.date1904&&(e|=1),t.filterPrivacy&&(e|=8)),i.write_shift(4,e),i.write_shift(4,0),D4(t&&t.CodeName||"ThisWorkbook",i),i.slice(0,i.l)}(t.Workbook&&t.Workbook.WBProps||null)),function Rpe(t,i){if(i.Workbook&&i.Workbook.Sheets){for(var e=i.Workbook.Sheets,n=0,r=-1,o=-1;nr||(fe(t,135),fe(t,158,function Fpe(t,i){return i||(i=re(29)),i.write_shift(-4,0),i.write_shift(-4,460),i.write_shift(4,28800),i.write_shift(4,17600),i.write_shift(4,500),i.write_shift(4,t),i.write_shift(4,t),i.write_shift(1,120),i.length>i.l?i.slice(0,i.l):i}(r)),fe(t,136))}}(e,t),function Ape(t,i){fe(t,143);for(var e=0;e!=i.SheetNames.length;++e)fe(t,156,Cpe({Hidden:i.Workbook&&i.Workbook.Sheets&&i.Workbook.Sheets[e]&&i.Workbook.Sheets[e].Hidden||0,iTabID:e+1,strRelID:"rId"+(e+1),name:i.SheetNames[e]}));fe(t,144)}(e,t),function Lpe(t,i){fe(t,353),fe(t,357),fe(t,362,function Ppe(t){var i=t.SheetNames.length,e=re(12*i+28);e.write_shift(4,i+2),e.write_shift(4,0),e.write_shift(4,-2),e.write_shift(4,-2),e.write_shift(4,0),e.write_shift(4,-1),e.write_shift(4,-1);for(var n=0;n-1&&(n|=32,r=r.slice(6)),e.write_shift(4,n),e.write_shift(1,0),e.write_shift(4,null==t.Sheet?4294967295:t.Sheet);var o=[e,Ln(r),ufe(t.Ref,i)];if(t.Comment)o.push(If(t.Comment));else{var a=re(4);a.write_shift(4,4294967295),o.push(a)}return xn(o)}(e,i))}catch{console.error("Could not serialize defined name "+JSON.stringify(e))}})}(e,t),fe(e,132),e.end()}function oN(t){return Ee("NamedRange",null,{"ss:Name":"_xlnm."==t.Name.slice(0,6)?t.Name.slice(6):t.Name,"ss:RefersTo":"="+n_(t.Ref,{r:0,c:0})})}function dge(t,i,e,n,r,o,a){if(!t||null==t.v&&null==t.f)return"";var s={};if(t.f&&(s["ss:Formula"]="="+Ot(n_(t.f,a))),t.F&&t.F.slice(0,i.length)==i){var c=bi(t.F.slice(i.length+1));s["ss:ArrayRange"]="RC:R"+(c.r==a.r?"":"["+(c.r-a.r)+"]")+"C"+(c.c==a.c?"":"["+(c.c-a.c)+"]")}if(t.l&&t.l.Target&&(s["ss:HRef"]=Ot(t.l.Target),t.l.Tooltip&&(s["x:HRefScreenTip"]=Ot(t.l.Tooltip))),e["!merges"])for(var l=e["!merges"],d=0;d!=l.length;++d)l[d].s.c!=a.c||l[d].s.r!=a.r||(l[d].e.c>l[d].s.c&&(s["ss:MergeAcross"]=l[d].e.c-l[d].s.c),l[d].e.r>l[d].s.r&&(s["ss:MergeDown"]=l[d].e.r-l[d].s.r));var u="",h="";switch(t.t){case"z":if(!n.sheetStubs)return"";break;case"n":u="Number",h=String(t.v);break;case"b":u="Boolean",h=t.v?"1":"0";break;case"e":u="Error",h=gs[t.v];break;case"d":u="DateTime",h=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||ut[14]);break;case"s":u="String",h=function fae(t){return(t+"").replace(hw,function(e){return uw[e]}).replace(e4,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}(t.v||"")}var f=ic(n.cellXfs,t,n);s["ss:StyleID"]="s"+(21+f),s["ss:Index"]=a.c+1;var g="z"==t.t?"":''+(null!=t.v?h:"")+"";return(t.c||[]).length>0&&(g+=function lge(t){return t.map(function(i){var e=function mae(t){return t.replace(/(\r\n|[\r\n])/g," ")}(i.t||""),n=Ee("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ee("Comment",n,{"ss:Author":i.a})}).join("")}(t.c)),Ee("Cell",g,s)}function uge(t,i){var e='"}function fge(t,i,e){var n=[],o=e.Sheets[e.SheetNames[t]],a=o?function sge(t,i,e,n){if(!t||!((n||{}).Workbook||{}).Names)return"";for(var r=n.Workbook.Names,o=[],a=0;a0&&n.push(""+a+""),a=o?function hge(t,i,e,n){if(!t["!ref"])return"";var r=Kt(t["!ref"]),o=t["!merges"]||[],a=0,s=[];t["!cols"]&&t["!cols"].forEach(function(p,_){ec(p);var w=!!p.width,x=a_(_,p),M={"ss:Index":_+1};w&&(M["ss:Width"]=Nf(x.width)),p.hidden&&(M["ss:Hidden"]="1"),s.push(Ee("Column",null,M))});for(var c=null!=t["!data"],l=r.s.r;l<=r.e.r;++l){for(var d=[uge(l,(t["!rows"]||[])[l])],u=r.s.c;u<=r.e.c;++u){var h=!1;for(a=0;a!=o.length;++a)if(!(o[a].s.c>u||o[a].s.r>l||o[a].e.c"),d.length>2&&s.push(d.join(""))}return s.join("")}(o,i):"",a.length>0&&n.push(""+a+"
"),n.push(function cge(t,i,e,n){if(!t)return"";var r=[];if(t["!margins"]&&(r.push(""),t["!margins"].header&&r.push(Ee("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&r.push(Ee("Footer",null,{"x:Margin":t["!margins"].footer})),r.push(Ee("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),r.push("")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[e])if(n.Workbook.Sheets[e].Hidden)r.push(Ee("Visible",1==n.Workbook.Sheets[e].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&r.push(""),t["!protect"]&&(r.push(Qn("ProtectContents","True")),t["!protect"].objects&&r.push(Qn("ProtectObjects","True")),t["!protect"].scenarios&&r.push(Qn("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null!=t["!protect"].selectUnlockedCells&&!t["!protect"].selectUnlockedCells&&r.push(Qn("EnableSelection","UnlockedCells")):r.push(Qn("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(a){t["!protect"][a[0]]&&r.push("<"+a[1]+"/>")})),0==r.length?"":Ee("WorksheetOptions",r.join(""),{xmlns:ro.x})}(o,0,t,e)),o["!autofilter"]&&n.push(''),n.join("")}function mge(t,i){i||(i={}),t.SSF||(t.SSF=yi(ut)),t.SSF&&(iu(),yf(t.SSF),i.revssf=P0(t.SSF),i.revssf[t.SSF[65535]]=0,i.ssf=t.SSF,i.cellXfs=[],ic(i.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(function nge(t,i){var e=[];return t.Props&&e.push(function use(t,i){var e=[];return $i(Nw).map(function(n){for(var r=0;r'+r.join("")+""}(t.Props,t.Custprops)),e.join("")}(t,i)),e.push(function rge(t){return(((t||{}).Workbook||{}).WBProps||{}).date1904?'':""}(t)),e.push(""),e.push("");for(var n=0;n'];return i.cellXfs.forEach(function(n,r){var o=[];o.push(Ee("NumberFormat",null,{"ss:Format":Ot(ut[n.numFmtId])}));var a={"ss:ID":"s"+(21+r)};e.push(Ee("Style",o.join(""),a))}),Ee("Styles",e.join(""))}(0,i),e[3]=function age(t){if(!((t||{}).Workbook||{}).Names)return"";for(var i=t.Workbook.Names,e=[],n=0;n0&&(n.family=s);var c=t.read_shift(1);switch(c>0&&(n.charset=c),t.l++,n.color=function Uae(t){var i={},n=t.read_shift(1)>>>1,r=t.read_shift(1),o=t.read_shift(2,"i"),a=t.read_shift(1),s=t.read_shift(1),c=t.read_shift(1);switch(t.l++,n){case 0:i.auto=1;break;case 1:i.index=r;var l=dl[r];l&&(i.rgb=Lf(l));break;case 2:i.rgb=Lf([a,s,c]);break;case 3:i.theme=r}return 0!=o&&(i.tint=o>0?o/32767:o/32768),i}(t),t.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor"}return n.name=cr(t),n}},44:{f:function cde(t,i){return[t.read_shift(2),cr(t)]}},45:{f:fde},46:{f:pde},47:{f:function mde(t,i){var e=t.l+i,n=t.read_shift(2),r=t.read_shift(2);return t.l=e,{ixfe:n,numFmtId:r}}},48:{},49:{f:function Fae(t){return t.read_shift(4,"i")}},50:{},51:{f:function Qde(t){for(var i=[],e=t.read_shift(4);e-- >0;)i.push([t.read_shift(4),t.read_shift(4)]);return i}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function bL(t,i,e){if(!e.cellStyles)return sr(t,i);var n=e&&e.biff>=12?4:2,r=t.read_shift(n),o=t.read_shift(n),a=t.read_shift(n),s=t.read_shift(n),c=t.read_shift(2);2==n&&(t.l+=2);var l={s:r,e:o,w:a,ixfe:s,flags:c};return(e.biff>=5||!e.biff)&&(l.level=c>>8&7),l}},62:{f:function kme(t){return[Mo(t),kw(t),"is"]}},63:{f:function oue(t){var i={};i.i=t.read_shift(4);var e={};e.r=t.read_shift(4),e.c=t.read_shift(4),i.r=zt(e);var n=t.read_shift(1);return 2&n&&(i.l="1"),8&n&&(i.a="1"),i}},64:{f:function Xme(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:sr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function jme(t){var i=t.read_shift(2);return t.l+=28,{RTL:32&i}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function Jfe(t,i){var e={},n=t[t.l];return++t.l,e.above=!(64&n),e.left=!(128&n),t.l+=18,e.name=Bae(t,i-19),e}},148:{f:Yfe,p:16},151:{f:function Bme(){}},152:{},153:{f:function kpe(t,i){var e={},n=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var r=i>8?cr(t):"";return r.length>0&&(e.CodeName=r),e.autoCompressPictures=!!(65536&n),e.backupFile=!!(64&n),e.checkCompatibility=!!(4096&n),e.date1904=!!(1&n),e.filterPrivacy=!!(8&n),e.hidePivotFieldList=!!(1024&n),e.promptedSolutions=!!(16&n),e.publishItems=!!(2048&n),e.refreshAllConnections=!!(262144&n),e.saveExternalLinkValues=!!(128&n),e.showBorderUnselectedTables=!!(4&n),e.showInkAnnotation=!!(32&n),e.showObjects=["all","placeholders","none"][n>>13&3],e.showPivotChartFilter=!!(32768&n),e.updateLinks=["userSet","never","always"][n>>8&3],e}},154:{},155:{},156:{f:function wpe(t,i){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=Sw(t,i-8),e.name=cr(t),e}},157:{},158:{},159:{T:1,f:function yle(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:cl},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Rme},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function qde(t,i){return{flags:t.read_shift(4),version:t.read_shift(4),name:cr(t)}}},336:{T:-1},337:{f:function Zde(t){return t.l+=4,0!=t.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Sw},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function pL(t,i,e){if(e.biff<8||!(e.biff>8)&&i==t[t.l]+(3==t[t.l+1]?1:0)+1)return function gL(t,i,e){3==t[t.l+1]&&t[t.l]++;var n=Of(t,0,e);return 3==n.charCodeAt(0)?n.slice(1):n}(t,0,e);for(var n=[],r=t.l+i,o=t.read_shift(e.biff>8?4:2);0!=o--;)n.push(Ose(t,0,e));if(t.l!=r)throw new Error("Bad ExternSheet: "+t.l+" != "+r);return n}},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function Vme(t,i,e){var n=t.l+i,r=E4(t),o=t.read_shift(1),a=[r];if(a[2]=o,e.cellFormula){var s=Zhe(t,n-t.l,e);a[1]=s}else t.l=n;return a}},427:{f:function Hme(t,i,e){var n=t.l+i,o=[cl(t,16)];if(e.cellFormula){var a=efe(t,n-t.l,e);o[1]=a,t.l=n}else t.l=n;return o}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function zme(t){var i={};return KL.forEach(function(e){i[e]=lr(t)}),i}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function Zfe(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function Lme(t,i){var e=t.l+i,n=cl(t,16),r=Dw(t),o=cr(t),a=cr(t),s=cr(t);t.l=e;var c={rfx:n,relId:r,loc:o,display:s};return a&&(c.Tooltip=a),c}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Sw},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:bue},633:{T:1},634:{T:-1},635:{T:1,f:function gue(t){var i={};i.iauthor=t.read_shift(4);var e=cl(t,16);return i.rfx=e.s,i.ref=zt(e.s),t.l+=16,i}},636:{T:-1},637:{f:Lae},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function upe(t,i){return t.l+=10,{name:cr(t)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function Qme(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function Ie(t,i,e,n){var r=i;if(!isNaN(r)){var o=n||(e||[]).length||0,a=t.next(4);a.write_shift(2,r),a.write_shift(2,o),o>0&&xw(e)&&t.push(e)}}function Qf(t,i,e){return t||(t=re(7)),t.write_shift(2,i),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function Dge(t,i,e,n){if(null!=i.v)switch(i.t){case"d":case"n":var r="d"==i.t?yn(ji(i.v)):i.v;return void(r==(0|r)&&r>=0&&r<65536?Ie(t,2,function nle(t,i,e){var n=re(9);return Qf(n,t,i),n.write_shift(2,e),n}(e,n,r)):Ie(t,3,function tle(t,i,e){var n=re(15);return Qf(n,t,i),n.write_shift(8,e,"f"),n}(e,n,r)));case"b":case"e":return void Ie(t,5,function Cge(t,i,e,n){var r=re(9);return Qf(r,t,i),J4(e,n||"b",r),r}(e,n,i.v,i.t));case"s":case"str":return void Ie(t,4,function kge(t,i,e){var n=re(8+2*e.length);return Qf(n,t,i),n.write_shift(1,e.length),n.write_shift(e.length,e,"sbcs"),n.l255||f.e.r>=m){if(i.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");f.e.c=Math.min(f.e.c,255),f.e.r=Math.min(f.e.c,m-1)}Ie(n,2057,Uw(0,16,i)),Ie(n,13,Io(1)),Ie(n,12,Io(100)),Ie(n,15,Sr(!0)),Ie(n,17,Sr(!1)),Ie(n,16,ll(.001)),Ie(n,95,Sr(!0)),Ie(n,42,Sr(!1)),Ie(n,43,Sr(!1)),Ie(n,130,Io(1)),Ie(n,128,function xce(t){var i=re(8);return i.write_shift(4,0),i.write_shift(2,t[0]?t[0]+1:0),i.write_shift(2,t[1]?t[1]+1:0),i}([0,0])),Ie(n,131,Sr(!1)),Ie(n,132,Sr(!1)),l&&function Rge(t,i){if(i){var e=0;i.forEach(function(n,r){++e<=256&&n&&Ie(t,125,function Wce(t,i){var e=re(12);e.write_shift(2,i),e.write_shift(2,i),e.write_shift(2,256*t.width),e.write_shift(2,0);var n=0;return t.hidden&&(n|=1),e.write_shift(1,n),e.write_shift(1,n=t.level||0),e.write_shift(2,0),e}(a_(r,n),r))})}}(n,o["!cols"]),Ie(n,512,function fce(t,i){var e=8!=i.biff&&i.biff?2:4,n=re(2*e+6);return n.write_shift(e,t.s.r),n.write_shift(e,t.e.r+1),n.write_shift(2,t.s.c),n.write_shift(2,t.e.c+1),n.write_shift(2,0),n}(f,i)),l&&(o["!links"]=[]);for(var g=[],p=[],_=f.s.c;_<=f.e.c;++_)h[_]=Ht(_);for(var w=f.s.r;w<=f.e.r;++w)for(c&&(p=o["!data"][w]||[]),u=Yt(w),_=f.s.c;_<=f.e.c;++_){d=h[_]+u;var x=c?p[_]:o[d];x&&(Oge(n,x,w,_,i),l&&x.l&&o["!links"].push([d,x.l]),l&&x.c&&g.push([d,x.c]))}var M=s.CodeName||s.name||r;return l&&Ie(n,574,function ice(t){var i=re(18),e=1718;return t&&t.RTL&&(e|=64),i.write_shift(2,e),i.write_shift(4,0),i.write_shift(4,64),i.write_shift(4,0),i.write_shift(4,0),i}((a.Views||[])[0])),l&&(o["!merges"]||[]).length&&Ie(n,229,function Ice(t){var i=re(2+8*t.length);i.write_shift(2,t.length);for(var e=0;e255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[e]+"' extends beyond column IV (255). Data may be lost.")}var o=i||{};switch(o.biff||2){case 8:case 5:return function Nge(t,i){var e=i||{},n=[];t&&!t.SSF&&(t.SSF=yi(ut)),t&&t.SSF&&(iu(),yf(t.SSF),e.revssf=P0(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,lC(e),e.cellXfs=[],ic(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var r=0;r255||o.e.r>16383){if(n.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383)}for(var l=[],d=o.s.c;d<=o.e.c;++d)c[d]=Ht(d);for(var u=o.s.r;u<=o.e.r;++u)for(r&&(l=i["!data"][u]||[]),s=Yt(u),d=o.s.c;d<=o.e.c;++d){var h=r?l[d]:i[c[d]+s];h&&Dge(t,h,u,d)}}(n,t.Sheets[t.SheetNames[r]],0,e),Ie(n,10),n.end()}(t,i)}throw new Error("invalid type "+o.bookType+" for BIFF")}function cN(t,i,e,n){for(var r=t["!merges"]||[],o=[],a={},s=null!=t["!data"],c=i.s.c;c<=i.e.c;++c){for(var l=0,d=0,u=0;ue||r[u].s.c>c||r[u].e.r1&&(a.rowspan=l),d>1&&(a.colspan=d),n.editable?m=''+m+"":f&&(a["data-t"]=f&&f.t||"z",null!=f.v&&(a["data-v"]=f.v),null!=f.z&&(a["data-z"]=f.z),f.l&&"#"!=(f.l.Target||"#").charAt(0)&&(m=''+m+"")),a.id=(n.id||"sjs")+"-"+h,o.push(Ee("td",m,a))}}return""+o.join("")+""}var lN='SheetJS Table Export',dN="";function hN(t,i){var e=i||{},r=null!=e.footer?e.footer:dN,o=[null!=e.header?e.header:lN],a=Pn(t["!ref"]);o.push(function uN(t,i,e){return[].join("")+""}(0,0,e));for(var s=a.s.r;s<=a.e.r;++s)o.push(cN(t,a,s,e));return o.push(""+r),o.join("")}var zge=function(){var t=["",'',"",'',"",'',"",""].join(""),i=""+t+"";return function(){return sn+i}}();function $ge(t,i){var e="number",n="",r={"style:name":i},o="",a=0;e:if((t=t.replace(/"[$]"/g,"$")).indexOf(";")>-1&&(console.error("Unsupported ODS Style Map exported. Using first branch of "+t),t=t.slice(0,t.indexOf(";"))),"@"!=t){if(t.indexOf(/\$/)>-1&&(e="currency"),'"'==t[a]){for(o="";'"'!=t[++a]||'"'==t[++a];)o+=t[a];"*"==t[1+--a]?(a++,n+=""+Ot(o.replace(/""/g,'"'))+""):n+=""+Ot(o.replace(/""/g,'"'))+"",t=t.slice(a+1),a=0}var s=t.match(/# (\?+)\/(\?+)/);if(s)n+=Ee("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":s[1].length,"number:max-denominator-value":Math.max(+s[1].replace(/./g,"9"),+s[2].replace(/./g,"9"))});else if(s=t.match(/# (\?+)\/(\d+)/))n+=Ee("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":s[1].length,"number:denominator-value":+s[2]});else if(s=t.match(/(\d+)(|\.\d+)%/))e="percentage",n+=Ee("number:number",null,{"number:decimal-places":s[2]&&s.length-1||0,"number:min-decimal-places":s[2]&&s.length-1||0,"number:min-integer-digits":s[1].length})+"%";else{var c=!1;if(["y","m","d"].indexOf(t[0])>-1){e="date";t:for(;a";break;case"yyy":case"yyyy":n+='';break;case"mmmmm":console.error("ODS has no equivalent of format |mmmmm|");case"m":case"mm":case"mmm":case"mmmm":n+='';break;case"d":case"dd":n+='';break;case"ddd":case"dddd":n+=''}break;case'"':for(;'"'!=t[++a]||'"'==t[++a];)o+=t[a];--a,n+=""+Ot(o.slice(1).replace(/""/g,'"'))+"";break;case"/":n+=""+Ot(o)+"";break;default:console.error("unrecognized character "+o+" in ODF format "+t)}if(!c)break e;t=t.slice(a+1),a=0}if(t.match(/^\[?[hms]/))for("number"==e&&(e="time"),t.match(/\[/)&&(t=t.replace(/[\[\]]/g,""),r["number:truncate-on-overflow"]="false");a';break;case"m":case"mm":n+='';break;case"s":case"ss":if("."==t[a+1])do{o+=t[a+1],++a}while("0"==t[a+1]);n+='"}break;case'"':for(;'"'!=t[++a]||'"'==t[++a];)o+=t[a];--a,n+=""+Ot(o.slice(1).replace(/""/g,'"'))+"";break;case"/":n+=""+Ot(o)+"";break;case"a":if("a/p"==t.slice(a,a+3).toLowerCase()){n+="",a+=2;break}if("am/pm"==t.slice(a,a+5).toLowerCase()){n+="",a+=4;break}default:console.error("unrecognized character "+o+" in ODF format "+t)}else{if(t.indexOf(/\$/)>-1&&(e="currency"),"$"==t[0]&&(n+='$',t=t.slice(1),a=0),'"'==t[a=0]){for(;'"'!=t[++a]||'"'==t[++a];)o+=t[a];"*"==t[1+--a]?(a++,n+=""+Ot(o.replace(/""/g,'"'))+""):n+=""+Ot(o.replace(/""/g,'"'))+"",t=t.slice(a+1),a=0}var d=t.match(/([#0][0#,]*)(\.[0#]*|)(E[+]?0*|)/i);if(d&&d[0]){var u=d[1].replace(/,/g,"");n+="-1?' number:grouping="true"':"")+(d[2]&&' number:decimal-places="'+(d[2].length-1)+'"'||' number:decimal-places="0"')+(d[3]&&d[3].indexOf("+")>-1?' number:forced-exponent-sign="true"':"")+(d[3]?' number:min-exponent-digits="'+d[3].match(/0+/)[0].length+'"':"")+">",a=d.index+d[0].length}else console.error("Could not find numeric part of "+t);if('"'==t[a]){for(o="";'"'!=t[++a]||'"'==t[++a];)o+=t[a];--a,n+=""+Ot(o.replace(/""/g,'"'))+""}}}}else e="text",n="";return n?Ee("number:"+e+"-style",n,r):(console.error("Could not generate ODS number format for |"+t+"|"),"")}function xN(t,i,e){var n=t.filter(function(r){return r.Sheet==(-1==e?null:e)});return n.length?" \n"+n.map(function(r){var o=qL(r.Ref);return" "+Ee("table:named-range",null,{"table:name":r.Name,"table:cell-range-address":o,"table:base-cell-address":o.replace(/[\.]?[^\.]*$/,".$A$1")})}).join("\n")+"\n \n":""}var yN=function(){var t=function(o){return Ot(o).replace(/ +/g,function(a){return''}).replace(/\t/g,"").replace(/\n/g,"
").replace(/^ /,"").replace(/ $/,"")},i=" \n",n=function(o,a,s,c,l){var d=[];d.push(' \n');var u=0,h=0,f=Pn(o["!ref"]||"A1"),m=o["!merges"]||[],g=0,p=null!=o["!data"];if(o["!cols"])for(h=0;h<=f.e.c;++h)d.push(" \n");var w=o["!rows"]||[];for(u=0;u\n");for(;u<=f.e.r;++u){for(d.push(" \n"),h=0;hh||m[g].s.r>u||m[g].e.c\n");else{var L=zt({r:u,c:h}),D=p?(o["!data"][u]||[])[h]:o[L];if(D&&D.f&&(M["table:formula"]=Ot(mfe(D.f)),D.F&&D.F.slice(0,L.length)==L)){var B=Pn(D.F);M["table:number-matrix-columns-spanned"]=B.e.c-B.s.c+1,M["table:number-matrix-rows-spanned"]=B.e.r-B.s.r+1}if(D){switch(D.t){case"b":W=D.v?"TRUE":"FALSE",M["office:value-type"]="boolean",M["office:boolean-value"]=D.v?"true":"false";break;case"n":W=D.w||String(D.v||0),M["office:value-type"]="float",M["office:value"]=D.v||0;break;case"s":case"str":W=null==D.v?"":D.v,M["office:value-type"]="string";break;case"d":W=D.w||ji(D.v).toISOString(),M["office:value-type"]="date",M["office:date-value"]=ji(D.v).toISOString(),M["table:style-name"]="ce1";break;default:d.push(i);continue}var N=t(W);if(D.l&&D.l.Target){var j=D.l.Target;"#"!=(j="#"==j.charAt(0)?"#"+qL(j.slice(1)):j).charAt(0)&&!j.match(/^\w+:/)&&(j="../"+j),N=Ee("text:a",N,{"xlink:href":j.replace(/&/g,"&")})}l[D.z]&&(M["table:style-name"]="ce"+l[D.z].slice(1)),d.push(" "+Ee("table:table-cell",Ee("text:p",N,{}),M)+"\n")}else d.push(i)}}d.push(" \n")}return(a.Workbook||{}).Names&&d.push(xN(a.Workbook.Names,0,s)),d.push(" \n"),d.join("")};return function(a,s){var c=[sn],l=Df({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),d=Df({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==s.bookType?(c.push("\n"),c.push(O4().replace(//,"").replace(/<\/office:document-meta>/,"")+"\n")):c.push("\n");var u=function(o,a){o.push(" \n");var s=0;a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u&&u["!cols"])for(var h=0;h\n'),o.push(' \n'),o.push(" \n"),++s}});var c=0;a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u&&u["!rows"])for(var h=0;h\n'),o.push(' \n'),o.push(" \n"),++c}}),o.push(' \n'),o.push(' \n'),o.push(" \n"),o.push(' \n'),o.push(' \n'),o.push(" /\n"),o.push(' \n'),o.push(" /\n"),o.push(" \n"),o.push(" \n");var l={},d=69;return a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u)for(var h=null!=u["!data"],f=Pn(u["!ref"]),m=0;m<=f.e.r;++m)for(var g=0;g<=f.e.c;++g){var p=h?(u["!data"][m]||[])[g]:u[zt({r:m,c:g})];if(p&&p.z&&"general"!=p.z.toLowerCase()&&!l[p.z]){var _=$ge(p.z,"N"+d);_&&(l[p.z]="N"+d,++d,o.push(_+"\n"))}}}),o.push(' \n'),$i(l).forEach(function(u){o.push('\n')}),o.push(" \n"),l}(c,a);c.push(" \n"),c.push(" \n"),((a.Workbook||{}).WBProps||{}).date1904&&c.push(' \n \n \n');for(var h=0;h!=a.SheetNames.length;++h)c.push(n(a.Sheets[a.SheetNames[h]],a,h,0,u));return(a.Workbook||{}).Names&&c.push(xN(a.Workbook.Names,0,-1)),c.push(" \n"),c.push(" \n"),c.push("fods"==s.bookType?"":""),c.join("")}}();function wN(t,i){if("fods"==i.bookType)return yN(t,i);var e=dw(),n="",r=[],o=[];return Rt(e,n="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Rt(e,n="content.xml",yN(t,i)),r.push([n,"text/xml"]),o.push([n,"ContentFile"]),Rt(e,n="styles.xml",zge(t,i)),r.push([n,"text/xml"]),o.push([n,"StylesFile"]),Rt(e,n="meta.xml",sn+O4()),r.push([n,"text/xml"]),o.push([n,"MetadataFile"]),Rt(e,n="manifest.rdf",function ose(t){var i=[sn];i.push('\n');for(var e=0;e!=t.length;++e)i.push(R4(t[e][0],t[e][1])),i.push(rse("",t[e][0]));return i.push(R4("","Document","pkg")),i.push(""),i.join("")}(o)),r.push([n,"application/rdf+xml"]),Rt(e,n="META-INF/manifest.xml",function nse(t){var i=[sn];i.push('\n'),i.push(' \n');for(var e=0;e\n');return i.push(""),i.join("")}(r)),e}var Dn=function(){try{return typeof Uint8Array>"u"||typeof Uint8Array.prototype.subarray>"u"?"slice":typeof Buffer<"u"?typeof Buffer.prototype.subarray>"u"?"slice":("function"==typeof Buffer.from?Buffer.from([72,62]):new Buffer([72,62]))instanceof Uint8Array?"subarray":"slice":"subarray"}catch{return"slice"}}();function bs(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function jn(t){return typeof TextDecoder<"u"?(new TextDecoder).decode(t):Ci(Ea(t))}function ta(t){return typeof TextEncoder<"u"?(new TextEncoder).encode(t):kr(Ma(t))}function nc(t){for(var i=0,e=0;e=128&&(n|=(127&t[e])<<7,t[e++]<128||(n|=(127&t[e])<<14,t[e++]<128)||(n|=(127&t[e])<<21,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,28),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,35),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,42),++e,t[e++]<128)))break e;return i.l=e,n}function it(t){var i=new Uint8Array(7);i[0]=127&t;var e=1;e:if(t>127){if(i[e-1]|=128,i[e]=t>>7&127,++e,t<=16383||(i[e-1]|=128,i[e]=t>>14&127,++e,t<=2097151)||(i[e-1]|=128,i[e]=t>>21&127,++e,t<=268435455)||(i[e-1]|=128,i[e]=t/256>>>21&127,++e,t<=34359738367)||(i[e-1]|=128,i[e]=t/65536>>>21&127,++e,t<=4398046511103))break e;i[e-1]|=128,i[e]=t/16777216>>>21&127,++e}return i[Dn](0,e)}function CN(t){for(var i={l:0},e=[];i.l=128){if(e|=(127&t[i])<<7,t[i++]<128||(e|=(127&t[i])<<14,t[i++]<128)||(e|=(127&t[i])<<21,t[i++]<128))break e;e|=(127&t[i])<<28}return e}function Be(t){for(var i=[],e={l:0};e.l=128;);a=t[Dn](e.l,s),e.l=s;break;case 1:a=t[Dn](s,s+8),e.l=s+8;break;case 2:var c=Yf(t,e);a=t[Dn](e.l,e.l+c),e.l+=c;break;case 5:a=t[Dn](s,s+4),e.l=s+4;break;default:throw new Error("PB Type ".concat(o," for Field ").concat(r," at offset ").concat(n))}var l={data:a,type:o};null==i[r]&&(i[r]=[]),i[r].push(l)}return i}function dt(t){var i=[];return t.forEach(function(e,n){0!=n&&e.forEach(function(r){r.data&&(i.push(it(8*n+r.type)),2==r.type&&i.push(it(r.data.length)),i.push(r.data))})}),nc(i)}function bl(t,i){return t?.map(function(e){return i(e.data)})||[]}function Kf(t){for(var i,e=[],n={l:0};n.l>>0>0),e.push(a)}return e}function Zf(t){var i=[];return t.forEach(function(e){var n=[[],[{data:it(e.id),type:0}],[]];null!=e.merge&&(n[3]=[{data:it(+!!e.merge),type:0}]);var r=[];e.messages.forEach(function(a){r.push(a.data),a.meta[3]=[{type:0,data:it(a.data.length)}],n[2].push({data:dt(a.meta),type:2})});var o=dt(n);i.push(it(o.length)),i.push(o),r.forEach(function(a){return i.push(a)})}),nc(i)}function Gge(t,i){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e={l:0},n=Yf(i,e),r=[],o=e.l;o>2&7),l=(224&i[o++])<<3,l|=i[o++]):(d=1+(i[o++]>>2),2==a?(l=i[o]|i[o+1]<<8,o+=2):(l=(i[o]|i[o+1]<<8|i[o+2]<<16|i[o+3]<<24)>>>0,o+=4)),0==l)throw new Error("Invalid offset 0");for(var u=r.length-1,h=l;u>=0&&h>=r[u].length;)h-=r[u].length,--u;if(u<0){if(0!=h)throw new Error("Invalid offset beyond length");h=r[u=0].length}if(d0&&(r.push(r[u][Dn](r[u].length-h)),d-=h),++u;d>=r[u].length;)r.push(r[u]),d-=r[u].length,++u;d&&r.push(r[u][Dn](0,d))}r.length>25&&(r=[nc(r)])}else{var s=i[o++]>>2;if(s<60)++s;else{var c=s-59;s=i[o],c>1&&(s|=i[o+1]<<8),c>2&&(s|=i[o+2]<<16),c>3&&(s|=i[o+3]<<24),s>>>=0,s++,o+=c}r.push(i[Dn](o,o+s)),o+=s}}for(var f=0,m=0;m>8&255]))):n<=16777216?(a+=4,i.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(a+=5,i.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),i.push(t[Dn](e,e+n)),a+=n,r[0]=0,r[1]=255&a,r[2]=a>>8&255,r[3]=a>>16&255,e+=n}return nc(i)}function c_(t,i){var e=new Uint8Array(32),n=bs(e),r=12,o=0;switch(e[0]=5,t.t){case"n":e[1]=2,function Wge(t,i,e){var n=Math.floor(0==e?0:Math.LOG10E*Math.log(Math.abs(e)))+6176-16,r=e/Math.pow(10,n-6176);t[i+15]|=n>>7,t[i+14]|=(127&n)<<1;for(var o=0;r>=1;++o,r/=256)t[i+o]=255&r;t[i+15]|=e>=0?0:128}(e,r,t.v),o|=1,r+=16;break;case"b":e[1]=6,n.setFloat64(r,t.v?1:0,!0),o|=2,r+=8;break;case"s":var a=null==t.v?"":String(t.v),s=i.indexOf(a);-1==s&&(i[s=i.length]=a),e[1]=3,n.setUint32(r,s,!0),o|=8,r+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,o,!0),e[Dn](0,r)}function l_(t,i){var e=new Uint8Array(32),n=bs(e),r=12,o=0;switch(e[0]=4,t.t){case"n":e[2]=2,n.setFloat64(r,t.v,!0),o|=32,r+=8;break;case"b":e[2]=6,n.setFloat64(r,t.v?1:0,!0),o|=32,r+=8;break;case"s":var a=null==t.v?"":String(t.v),s=i.indexOf(a);-1==s&&(i[s=i.length]=a),e[2]=3,n.setUint32(r,s,!0),o|=16,r+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,o,!0),e[Dn](0,r)}function Di(t){return Zt(Be(t)[1][0].data)}function vs(t){return dt([[],[{type:0,data:it(t)}]])}function rc(t,i){var e,n=null!=(e=t.messages[0].meta[5])&&e[0]?CN(t.messages[0].meta[5][0].data):[];-1==n.indexOf(i)&&(n.push(i),t.messages[0].meta[5]=[{type:2,data:kN(n)}])}function xs(t,i){var e,n=null!=(e=t.messages[0].meta[5])&&e[0]?CN(t.messages[0].meta[5][0].data):[];t.messages[0].meta[5]=[{type:2,data:kN(n.filter(function(r){return r!=i}))}]}function n0e(t,i,e){var n,r,o=[[],[{type:0,data:it(0)}],[{type:0,data:it(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:it(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:it(1)}]];if(null==(n=o[6])||!n[0]||null==(r=o[7])||!r[0])throw"Mutation only works on post-BNC storages!";var a=0;if(o[7][0].data.length<2*t.length){var s=new Uint8Array(2*t.length);s.set(o[7][0].data),o[7][0].data=s}if(o[4][0].data.length<2*t.length){var c=new Uint8Array(2*t.length);c.set(o[4][0].data),o[4][0].data=c}for(var l=bs(o[7][0].data),d=0,u=[],h=bs(o[4][0].data),f=0,m=[],g=e?4:1,p=0;p-1,r={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};lC(i=i||{});var o=dw(),a="",s=0;if(i.cellXfs=[],ic(i.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),Rt(o,a="docProps/core.xml",L4(t.Props,i)),r.coreprops.push(a),ki(i.rels,2,a,Pt.CORE_PROPS),a="docProps/app.xml",!t.Props||!t.Props.SheetNames)if(t.Workbook&&t.Workbook.Sheets){for(var c=[],l=0;l0&&(Rt(o,a="docProps/custom.xml",H4(t.Custprops)),r.custprops.push(a),ki(i.rels,4,a,Pt.CUST_PROPS));var d=["SheetJ5"];for(i.tcid=0,s=1;s<=t.SheetNames.length;++s){var u={"!id":{}},h=t.Sheets[t.SheetNames[s-1]];if(Rt(o,a="xl/worksheets/sheet"+s+"."+e,Gfe(s-1,i,t,u)),r.sheets.push(a),ki(i.wbrels,-1,"worksheets/sheet"+s+"."+e,Pt.WS[0]),h){var m=h["!comments"],g=!1,p="";if(m&&m.length>0){var _=!1;m.forEach(function(w){w[1].forEach(function(x){1==x.T&&(_=!0)})}),_&&(Rt(o,p="xl/threadedComments/threadedComment"+s+".xml",fue(m,d,i)),r.threadedcomments.push(p),ki(u,-1,"../threadedComments/threadedComment"+s+".xml",Pt.TCMNT)),Rt(o,p="xl/comments"+s+"."+e,uue(m)),r.comments.push(p),ki(u,-1,"../comments"+s+"."+e,Pt.CMNT),g=!0}h["!legacy"]&&g&&Rt(o,"xl/drawings/vmlDrawing"+s+".vml",IL(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&Rt(o,Ff(a),cu(u))}return null!=i.Strings&&i.Strings.length>0&&(Rt(o,a="xl/sharedStrings."+e,function xle(t,i){if(!i.bookSST)return"";var e=[sn];e[e.length]=Ee("sst",null,{xmlns:nl[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(null!=t[n]){var r=t[n],o="";r.r?o+=r.r:(o+=""),e[e.length]=o+=""}return e.length>2&&(e[e.length]="",e[1]=e[1].replace("/>",">")),e.join("")}(i.Strings,i)),r.strs.push(a),ki(i.wbrels,-1,"sharedStrings."+e,Pt.SST)),Rt(o,a="xl/workbook."+e,function ype(t){var i=[sn];i[i.length]=Ee("workbook",null,{xmlns:nl[0],"xmlns:r":Rn.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(tC.forEach(function(s){null!=t.Workbook.WBProps[s[0]]&&t.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=t.Workbook.WBProps[s[0]])}),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),i[i.length]=Ee("workbookPr",null,n);var r=t.Workbook&&t.Workbook.Sheets||[],o=0;if(r&&r[0]&&r[0].Hidden){for(i[i.length]="",o=0;o!=t.SheetNames.length&&r[o]&&r[o].Hidden;++o);o==t.SheetNames.length&&(o=0),i[i.length]='',i[i.length]=""}for(i[i.length]="",o=0;o!=t.SheetNames.length;++o){var a={name:Ot(t.SheetNames[o].slice(0,31))};if(a.sheetId=""+(o+1),a["r:id"]="rId"+(o+1),r[o])switch(r[o].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden"}i[i.length]=Ee("sheet",null,a)}return i[i.length]="",e&&(i[i.length]="",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(s){var c={name:s.Name};s.Comment&&(c.comment=s.Comment),null!=s.Sheet&&(c.localSheetId=""+s.Sheet),s.Hidden&&(c.hidden="1"),s.Ref&&(i[i.length]=Ee("definedName",Ot(s.Ref),c))}),i[i.length]=""),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}(t)),r.workbooks.push(a),ki(i.rels,1,a,Pt.WB),Rt(o,a="xl/theme/theme1.xml",Xw(t.Themes,i)),r.themes.push(a),ki(i.wbrels,-1,"theme/theme1.xml",Pt.THEME),Rt(o,a="xl/styles."+e,function sde(t,i){var n,e=[sn,Ee("styleSheet",null,{xmlns:nl[0],"xmlns:vt":Rn.vt})];return t.SSF&&null!=(n=function nde(t){var i=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var n=e[0];n<=e[1];++n)null!=t[n]&&(i[i.length]=Ee("numFmt",null,{numFmtId:n,formatCode:Ot(t[n])}))}),1===i.length?"":(i[i.length]="",i[0]=Ee("numFmts",null,{count:i.length-2}).replace("/>",">"),i.join(""))}(t.SSF))&&(e[e.length]=n),e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',(n=function ode(t){var i=[];return i[i.length]=Ee("cellXfs",null),t.forEach(function(e){i[i.length]=Ee("xf",null,e)}),i[i.length]="",2===i.length?"":(i[0]=Ee("cellXfs",null,{count:i.length-2}).replace("/>",">"),i.join(""))}(i.cellXfs))&&(e[e.length]=n),e[e.length]='',e[e.length]='',e[e.length]='',e.length>2&&(e[e.length]="",e[1]=e[1].replace("/>",">")),e.join("")}(t,i)),r.styles.push(a),ki(i.wbrels,-1,"styles."+e,Pt.STY),t.vbaraw&&n&&(Rt(o,a="xl/vbaProject.bin",t.vbaraw),r.vba.push(a),ki(i.wbrels,-1,"vbaProject.bin",Pt.VBA)),Rt(o,a="xl/metadata."+e,function nue(){var t=[sn];return t.push('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),t.join("")}()),r.metadata.push(a),ki(i.wbrels,-1,"metadata."+e,Pt.XLMETA),d.length>1&&(Rt(o,a="xl/persons/person.xml",function pue(t){var i=[sn,Ee("personList",null,{xmlns:Rn.TCMNT,"xmlns:x":nl[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,n){i.push(Ee("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))}),i.push(""),i.join("")}(d)),r.people.push(a),ki(i.wbrels,-1,"persons/person.xml",Pt.PEOPLE)),Rt(o,"[Content_Types].xml",F4(r,i)),Rt(o,"_rels/.rels",cu(i.rels)),Rt(o,"xl/_rels/workbook.xml.rels",cu(i.wbrels)),delete i.revssf,delete i.ssf,o}function RN(t,i){switch(i.type){case"base64":case"binary":break;case"buffer":case"array":i.type="";break;case"file":return wf(i.file,lt.write(t,{type:Vt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+i.bookType+"' files");default:throw new Error("Unrecognized type "+i.type)}return lt.write(t,i)}function v0e(t,i){switch(i.bookType){case"ods":return wN(t,i);case"numbers":return function o0e(t,i){if(!i||!i.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=lt.read(i.numbers,{type:"base64"}),n=function r0e(t){var i={},e=[];return t.FileIndex.map(function(n,r){return[n,t.FullPaths[r]]}).forEach(function(n){var r=n[0],o=n[1];2==r.type&&r.name.match(/\.iwa/)&&0==r.content[0]&&Kf(Jf(r.content)).forEach(function(a){e.push(a.id),i[a.id]={deps:[],location:o,type:Zt(a.messages[0].meta[1][0].data)}})}),t.FileIndex.forEach(function(n){n.name.match(/\.iwa/)&&0==n.content[0]&&Kf(Jf(n.content)).forEach(function(r){r.messages.forEach(function(o){[5,6].forEach(function(a){o.meta[a]&&o.meta[a].forEach(function(s){i[r.id].deps.push(Zt(s.data))})})})})}),i}(e),r=Ra(e,n,1);if(null==r)throw"Could not find message ".concat(1," in Numbers template");var o=bl(Be(r.messages[0].data)[1],Di);if(o.length>1)throw new Error("Template NUMBERS file must have exactly one sheet");return t.SheetNames.forEach(function(a,s){s>=1&&(function a0e(t,i,e){var n=-1,r=-1,o={};Nn(t,i,1,function(l,d){var u=Be(l.messages[0].data);n=Di(Be(l.messages[0].data)[1][0].data),r=oc({deps:[1],location:i[n].location,type:2},i),o[n]=r,rc(l,r),u[1].push({type:2,data:vs(r)});var h=Ra(t,i,n);h.id=r,i[1].location==i[r].location?d.push(h):Nn(t,i,r,function(f,m){return m.push(h)}),l.messages[0].data=dt(u)});var a=-1;Nn(t,i,r,function(l,d){for(var u=Be(l.messages[0].data),h=3;h<=69;++h)delete u[h];var f=bl(u[2],Di);f.forEach(function(p){return xs(l,p)}),a=oc({deps:[r],location:i[f[0]].location,type:i[f[0]].type},i),rc(l,a),o[f[0]]=a,u[2]=[{type:2,data:vs(a)}];var m=Ra(t,i,f[0]);if(m.id=a,i[f[0]].location==i[r].location)d.push(m);else{var g=i[r].location;g=(g=g.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nn(t,i,2,function(p){var _=Be(p.messages[0].data),w=_[3].findIndex(function(M){var W,L,D=Be(M.data);return null!=(W=D[3])&&W[0]?jn(D[3][0].data)==g:!(null==(L=D[2])||!L[0]||jn(D[2][0].data)!=g)}),x=Be(_[3][w].data);x[6]||(x[6]=[]),x[6].push({type:2,data:dt([[],[{type:0,data:it(a)}]])}),_[3][w].data=dt(x),p.messages[0].data=dt(_)}),Nn(t,i,a,function(p,_){return _.push(m)})}l.messages[0].data=dt(u)});var s=-1;Nn(t,i,a,function(l,d){for(var u=Be(l.messages[0].data),h=Be(u[1][0].data),f=3;f<=69;++f)delete h[f];var m=Di(h[2][0].data);h[2][0].data=vs(o[m]),u[1][0].data=dt(h);var g=Di(u[2][0].data);xs(l,g),rc(l,s=oc({deps:[a],location:i[g].location,type:i[g].type},i)),o[g]=s,u[2][0].data=vs(s);var p=Ra(t,i,g);p.id=s,i[a].location==i[s].location?d.push(p):Nn(t,i,s,function(_,w){return w.push(p)}),l.messages[0].data=dt(u)});var c=i[s].location;c=(c=c.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nn(t,i,s,function(l,d){var u,h,f=Be(l.messages[0].data),g=jn(f[1][0].data).replace(/-[A-Z0-9]*/,"-".concat(e.toString(16).padStart(4,"0")));if(f[1][0].data=ta(g),[12,13,29,31,32,33,39,44,47,81,82,84].forEach(function(L){return delete f[L]}),f[45]){var _=Di(Be(f[45][0].data)[1][0].data);xs(l,_),delete f[45]}f[70]&&(null==(u=Be(f[70][0].data)[2])||u.forEach(function(L){var D=Be(L.data);[2,3].map(function(B){return D[B][0]}).forEach(function(B){var N=Be(B.data);if(N[8]){var j=Di(N[8][0].data);xs(l,j)}})}),delete f[70]),[46,30,34,35,36,38,48,49,60,61,62,63,64,71,72,73,74,75,85,86,87,88,89].forEach(function(L){if(f[L]){var D=Di(f[L][0].data);delete f[L],xs(l,D)}});var x=Be(f[4][0].data);[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach(function(L){var D;if(null!=(D=x[L])&&D[0]){var B=Di(x[L][0].data),N=oc({deps:[s],location:i[B].location,type:i[B].type},i);xs(l,B),rc(l,N),o[B]=N;var j=Ra(t,i,B);if(j.id=N,i[B].location==i[s].location)d.push(j);else{i[N].location=i[B].location.replace(B.toString(),N.toString()),i[N].location==i[B].location&&(i[N].location=i[N].location.replace(/\.iwa/,"-".concat(N,".iwa"))),lt.utils.cfb_add(t,i[N].location,em(Zf([j])));var Z=i[N].location;Z=(Z=Z.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nn(t,i,2,function(U){var me=Be(U.messages[0].data);me[3].push({type:2,data:dt([[],[{type:0,data:it(N)}],[{type:2,data:ta(Z.replace(/-.*$/,""))}],[{type:2,data:ta(Z)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:it(0)}],[],[{type:0,data:it(0)}]])}),me[1]=[{type:0,data:it(Math.max(N+1,Zt(me[1][0].data)))}];var be=me[3].findIndex(function(ne){var Y,he,se=Be(ne.data);return null!=(Y=se[3])&&Y[0]?jn(se[3][0].data)==c:!(null==(he=se[2])||!he[0]||jn(se[2][0].data)!=c)}),de=Be(me[3][be].data);de[6]||(de[6]=[]),de[6].push({type:2,data:dt([[],[{type:0,data:it(N)}]])}),me[3][be].data=dt(de),U.messages[0].data=dt(me)})}x[L][0].data=vs(N)}});var M=Be(x[1][0].data);null==(h=M[2])||h.forEach(function(L){var D=Di(L.data),B=oc({deps:[s],location:i[D].location,type:i[D].type},i);xs(l,D),rc(l,B),o[D]=B;var N=Ra(t,i,D);if(N.id=B,i[D].location==i[s].location)d.push(N);else{i[B].location=i[D].location.replace(D.toString(),B.toString()),i[B].location==i[D].location&&(i[B].location=i[B].location.replace(/\.iwa/,"-".concat(B,".iwa"))),lt.utils.cfb_add(t,i[B].location,em(Zf([N])));var j=i[B].location;j=(j=j.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nn(t,i,2,function(Z){var U=Be(Z.messages[0].data);U[3].push({type:2,data:dt([[],[{type:0,data:it(B)}],[{type:2,data:ta(j.replace(/-.*$/,""))}],[{type:2,data:ta(j)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:it(0)}],[],[{type:0,data:it(0)}]])}),U[1]=[{type:0,data:it(Math.max(B+1,Zt(U[1][0].data)))}];var me=U[3].findIndex(function(de){var ne,Y,he=Be(de.data);return null!=(ne=he[3])&&ne[0]?jn(he[3][0].data)==c:!(null==(Y=he[2])||!Y[0]||jn(he[2][0].data)!=c)}),be=Be(U[3][me].data);be[6]||(be[6]=[]),be[6].push({type:2,data:dt([[],[{type:0,data:it(B)}]])}),U[3][me].data=dt(be),Z.messages[0].data=dt(U)})}L.data=vs(B)}),x[1][0].data=dt(M);var W=Be(x[3][0].data);W[1].forEach(function(L){var D=Be(L.data),B=Di(D[2][0].data),N=o[B];if(!o[B]){N=oc({deps:[s],location:"",type:i[B].type},i),i[N].location="Root Entry/Index/Tables/Tile-".concat(N,".iwa"),o[B]=N;var j=Ra(t,i,B);j.id=N,xs(l,B),rc(l,N),lt.utils.cfb_add(t,"/Index/Tables/Tile-".concat(N,".iwa"),em(Zf([j]))),Nn(t,i,2,function(Z){var U=Be(Z.messages[0].data);U[3].push({type:2,data:dt([[],[{type:0,data:it(N)}],[{type:2,data:ta("Tables/Tile")}],[{type:2,data:ta("Tables/Tile-".concat(N))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:it(0)}],[],[{type:0,data:it(0)}]])}),U[1]=[{type:0,data:it(Math.max(N+1,Zt(U[1][0].data)))}];var me=U[3].findIndex(function(de){var ne,Y,he=Be(de.data);return null!=(ne=he[3])&&ne[0]?jn(he[3][0].data)==c:!(null==(Y=he[2])||!Y[0]||jn(he[2][0].data)!=c)}),be=Be(U[3][me].data);be[6]||(be[6]=[]),be[6].push({type:2,data:dt([[],[{type:0,data:it(N)}]])}),U[3][me].data=dt(be),Z.messages[0].data=dt(U)})}D[2][0].data=vs(N),L.data=dt(D)}),x[3][0].data=dt(W),f[4][0].data=dt(x),l.messages[0].data=dt(f)})}(e,n,s+1),r=Ra(e,n,1),o=bl(Be(r.messages[0].data)[1],Di)),function s0e(t,i,e,n,r,o){var a=[];Nn(t,i,o,function(l){var d=Be(l.messages[0].data);d[1]=[{type:2,data:ta(n)}],a=bl(d[2],Di),l.messages[0].data=dt(d)});var c=Di(Be(Ra(t,i,a[0]).messages[0].data)[2][0].data);Nn(t,i,c,function(l,d){return function c0e(t,i,e,n,r,o){var a=Pn(e["!ref"]);a.s.r=a.s.c=0;var s=!1;a.e.c>999&&(s=!0,a.e.c=999),a.e.r>999999&&(s=!0,a.e.r=999999),s&&console.error("Truncating to ".concat(Et(a)));var c=h_(e,{range:a,header:1}),l=["~Sh33tJ5~"],d=i[o].location;d=(d=d.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,"");var u=Be(n.messages[0].data);u[6][0].data=it(a.e.r+1),u[7][0].data=it(a.e.c+1),delete u[46];var h=Be(u[4][0].data);Nn(t,i,Di(Be(h[1][0].data)[2][0].data),function(be,de){var ne,Y=Be(be.messages[0].data);if(null!=(ne=Y?.[2])&&ne[0])for(var he=0;he0&&(Rt(o,a="docProps/custom.xml",H4(t.Custprops)),r.custprops.push(a),ki(i.rels,4,a,Pt.CUST_PROPS)),s=1;s<=t.SheetNames.length;++s){var d={"!id":{}},u=t.Sheets[t.SheetNames[s-1]];if(Rt(o,a="xl/worksheets/sheet"+s+"."+e,spe(s-1,i,t,d)),r.sheets.push(a),ki(i.wbrels,-1,"worksheets/sheet"+s+"."+e,Pt.WS[0]),u){var f=u["!comments"],m=!1,g="";f&&f.length>0&&(Rt(o,g="xl/comments"+s+"."+e,yue(f)),r.comments.push(g),ki(d,-1,"../comments"+s+"."+e,Pt.CMNT),m=!0),u["!legacy"]&&m&&Rt(o,"xl/drawings/vmlDrawing"+s+".vml",IL(s,u["!comments"])),delete u["!comments"],delete u["!legacy"]}d["!id"].rId1&&Rt(o,Ff(a),cu(d))}return null!=i.Strings&&i.Strings.length>0&&(Rt(o,a="xl/sharedStrings."+e,function Dle(t){var i=Ur();fe(i,159,function Cle(t,i){return i||(i=re(8)),i.write_shift(4,t.Count),i.write_shift(4,t.Unique),i}(t));for(var e=0;e22)throw new Error("Bad Code Name: Worksheet"+a)}})}(t.SheetNames,t.Workbook&&t.Workbook.Sheets||[],!!t.vbaraw);for(var e=0;e255&&(e=95),o=e>>2,(n=t.charCodeAt(l++))>255&&(n=95),a=(3&e)<<4|n>>4,(r=t.charCodeAt(l++))>255&&(r=95),s=(15&n)<<2|r>>6,c=63&r,isNaN(n)?s=c=64:isNaN(r)&&(c=64),i+=So.charAt(o)+So.charAt(a)+So.charAt(s)+So.charAt(c);return i}(t);case"binary":case"string":return t;case"file":return wf(i.file,t,"binary");case"buffer":return Vt?Sa(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+i.type)}(VN(t.Sheets[t.SheetNames[r]],e),e);case"csv":return Oa(mC(t.Sheets[t.SheetNames[r]],e),e,"\ufeff");case"dif":return Oa(xL.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"dbf":return u_(zw.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"prn":return Oa(lu.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"rtf":return Oa(function Wle(t,i){var e=["{\\rtf1\\ansi"];if(!t["!ref"])return e[0]+"}";for(var r,n=Kt(t["!ref"]),o=null!=t["!data"],a=[],s=n.s.r;s<=n.e.r;++s){e.push("\\trowd\\trautofit1");for(var c=n.s.c;c<=n.e.c;++c)e.push("\\cellx"+(c+1));for(e.push("\\pard\\intbl"),o&&(a=t["!data"][s]||[]),c=n.s.c;c<=n.e.c;++c){var l=zt({r:s,c});(r=o?a[c]:t[l])&&(null!=r.v||r.f&&!r.F)?(e.push(" "+(r.w||(Aa(r),r.w)||"").replace(/[\r\n]/g,"\\par ")),e.push("\\cell")):e.push(" \\cell")}e.push("\\pard\\intbl\\row")}return e.join("")+"}"}(t.Sheets[t.SheetNames[r]]),e);case"eth":return Oa(yL.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"fods":return Oa(wN(t,e),e);case"wk1":return u_(pl.sheet_to_wk1(t.Sheets[t.SheetNames[r]],e),e);case"wk3":return u_(pl.book_to_wk3(t,e),e);case"biff2":e.biff||(e.biff=2);case"biff3":e.biff||(e.biff=3);case"biff4":return e.biff||(e.biff=4),u_(aN(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function w0e(t,i){var e=i||{};return RN(function yge(t,i){var e=i||{},n=lt.utils.cfb_new({root:"R"}),r="/Workbook";switch(e.bookType||"xls"){case"xls":e.bookType="biff8";case"xla":e.bookType||(e.bookType="xla");case"biff8":r="/Workbook",e.biff=8;break;case"biff5":r="/Book",e.biff=5;break;default:throw new Error("invalid type "+e.bookType+" for XLS CFB")}return lt.utils.cfb_add(n,r,aN(t,e)),8==e.biff&&(t.Props||t.Custprops)&&function xge(t,i){var a,e=[],n=[],r=[],o=0,s=UP(Aw,"n"),c=UP(Iw,"n");if(t.Props)for(a=$i(t.Props),o=0;o-1||N4.indexOf(r[o][0])>-1||null!=r[o][1]&&l.push(r[o]);n.length&<.utils.cfb_add(i,"/\x05SummaryInformation",K4(n,qf.SI,c,Iw)),(e.length||l.length)&<.utils.cfb_add(i,"/\x05DocumentSummaryInformation",K4(e,qf.DSI,s,Aw,l.length?l:null,qf.UDI))}(t,n),8==e.biff&&t.vbaraw&&function kue(t,i){i.FullPaths.forEach(function(e,n){if(0!=n){var r=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==r.slice(-1)&<.utils.cfb_add(t,r,i.FileIndex[n].content)}})}(n,lt.read(t.vbaraw,{type:"string"==typeof t.vbaraw?"binary":"buffer"})),n}(t,e),e)}(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function x0e(t,i){var e=yi(i||{});return function ON(t,i){var e={},n=Vt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(i.compression&&(e.compression="DEFLATE"),i.password)e.type=n;else switch(i.type){case"base64":e.type="base64";break;case"binary":e.type="string";break;case"string":throw new Error("'string' output type invalid for '"+i.bookType+"' files");case"buffer":case"file":e.type=n;break;default:throw new Error("Unrecognized type "+i.type)}var r=t.FullPaths?lt.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[e.type]||e.type,compression:!!i.compression}):t.generate(e);if(typeof Deno<"u"&&"string"==typeof r){if("binary"==i.type||"base64"==i.type)return r;r=new Uint8Array(bf(r))}return i.password&&typeof encrypt_agile<"u"?RN(encrypt_agile(r,i.password),i):"file"===i.type?wf(i.file,r):"string"==i.type?Ci(r):r}(v0e(t,e),e)}(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function LN(t,i,e,n,r,o,a){var s=Yt(e),c=a.defval,l=a.raw||!Object.prototype.hasOwnProperty.call(a,"raw"),d=!0,u=null!=t["!data"],h=1===r?[]:{};if(1!==r)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:e,enumerable:!1})}catch{h.__rowNum__=e}else h.__rowNum__=e;if(!u||t["!data"][e])for(var f=i.s.c;f<=i.e.c;++f){var m=u?(t["!data"][e]||[])[f]:t[n[f]+s];if(void 0!==m&&void 0!==m.t){var g=m.v;switch(m.t){case"z":if(null==g)break;continue;case"e":g=0==g?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+m.t)}if(null!=o[f]){if(null==g)if("e"==m.t&&null===g)h[o[f]]=null;else if(void 0!==c)h[o[f]]=c;else{if(!l||null!==g)continue;h[o[f]]=null}else h[o[f]]=l&&("n"!==m.t||"n"===m.t&&!1!==a.rawNumbers)?g:Aa(m,g,a);null!=g&&(d=!1)}}else{if(void 0===c)continue;null!=o[f]&&(h[o[f]]=c)}}return{row:h,isempty:d}}function h_(t,i){if(null==t||null==t["!ref"])return[];var e={t:"n",v:0},n=0,r=1,o=[],a=0,s="",c={s:{r:0,c:0},e:{r:0,c:0}},l=i||{},d=null!=l.range?l.range:t["!ref"];switch(1===l.header?n=1:"A"===l.header?n=2:Array.isArray(l.header)?n=3:null==l.header&&(n=0),typeof d){case"string":c=Kt(d);break;case"number":(c=Kt(t["!ref"])).s.r=d;break;default:c=d}n>0&&(r=0);var u=Yt(c.s.r),h=[],f=[],m=0,g=0,p=null!=t["!data"],_=c.s.r,w=0,x={};p&&!t["!data"][_]&&(t["!data"][_]=[]);var M=l.skipHidden&&t["!cols"]||[],W=l.skipHidden&&t["!rows"]||[];for(w=c.s.c;w<=c.e.c;++w)if(!(M[w]||{}).hidden)switch(h[w]=Ht(w),e=p?t["!data"][_][w]:t[h[w]+u],n){case 1:o[w]=w-c.s.c;break;case 2:o[w]=h[w];break;case 3:o[w]=l.header[w-c.s.c];break;default:if(null==e&&(e={w:"__EMPTY",t:"s"}),s=a=Aa(e,null,l),g=x[a]||0){do{s=a+"_"+g++}while(x[s]);x[a]=g,x[s]=1}else x[a]=1;o[w]=s}for(_=c.s.r+r;_<=c.e.r;++_)if(!(W[_]||{}).hidden){var L=LN(t,c,_,h,n,o,l);(!1===L.isempty||(1===n?!1!==l.blankrows:l.blankrows))&&(f[m++]=L.row)}return f.length=m,f}var NN=/"/g;function BN(t,i,e,n,r,o,a,s){for(var c=!0,l=[],d="",u=Yt(e),h=null!=t["!data"],f=h&&t["!data"][e]||[],m=i.s.c;m<=i.e.c;++m)if(n[m]){var g=h?f[m]:t[n[m]+u];if(null==g)d="";else if(null!=g.v){c=!1,d=""+(s.rawNumbers&&"n"==g.t?g.v:Aa(g,null,s));for(var p=0,_=0;p!==d.length;++p)if((_=d.charCodeAt(p))===r||_===o||34===_||s.forceQuotes){d='"'+d.replace(NN,'""')+'"';break}"ID"==d&&(d='"ID"')}else null==g.f||g.F?d="":(c=!1,(d="="+g.f).indexOf(",")>=0&&(d='"'+d.replace(NN,'""')+'"'));l.push(d)}return!1===s.blankrows&&c?null:l.join(a)}function mC(t,i){var e=[],n=i??{};if(null==t||null==t["!ref"])return"";for(var r=Kt(t["!ref"]),o=void 0!==n.FS?n.FS:",",a=o.charCodeAt(0),s=void 0!==n.RS?n.RS:"\n",c=s.charCodeAt(0),l=new RegExp(("|"==o?"\\|":o)+"+$"),d="",u=[],h=n.skipHidden&&t["!cols"]||[],f=n.skipHidden&&t["!rows"]||[],m=r.s.c;m<=r.e.c;++m)(h[m]||{}).hidden||(u[m]=Ht(m));for(var g=0,p=r.s.r;p<=r.e.r;++p)(f[p]||{}).hidden||null!=(d=BN(t,r,p,u,a,c,o,n))&&(n.strip&&(d=d.replace(l,"")),(d||!1!==n.blankrows)&&e.push((g++?s:"")+d));return e.join("")}function VN(t,i){i||(i={}),i.FS="\t",i.RS="\n";var e=mC(t,i);if(typeof Mt>"u"||"string"==i.type)return e;var n=Mt.utils.encode(1200,e,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function HN(t,i,e){var n=e||{},r=t?null!=t["!data"]:n.dense;null!=an&&null==r&&(r=an);var o=+!n.skipHeader,a=t||{};!t&&r&&(a["!data"]=[]);var s=0,c=0;if(a&&null!=n.origin)if("number"==typeof n.origin)s=n.origin;else{var l="string"==typeof n.origin?bi(n.origin):n.origin;s=l.r,c=l.c}var d={s:{c:0,r:0},e:{c,r:s+i.length-1+o}};if(a["!ref"]){var u=Kt(a["!ref"]);d.e.c=Math.max(d.e.c,u.e.c),d.e.r=Math.max(d.e.r,u.e.r),-1==s&&(d.e.r=(s=u.e.r+1)+i.length-1+o)}else-1==s&&(s=0,d.e.r=i.length-1+o);var h=n.header||[],f=0,m=[];i.forEach(function(p,_){r&&!a["!data"][s+_+o]&&(a["!data"][s+_+o]=[]),r&&(m=a["!data"][s+_+o]),$i(p).forEach(function(w){-1==(f=h.indexOf(w))&&(h[f=h.length]=w);var x=p[w],M="z",W="",L=r?"":Ht(c+f)+Yt(s+_+o),D=r?m[c+f]:a[L];!x||"object"!=typeof x||x instanceof Date?("number"==typeof x?M="n":"boolean"==typeof x?M="b":"string"==typeof x?M="s":x instanceof Date?(M="d",n.cellDates||(M="n",x=yn(x)),W=null!=D&&D.z&&Ys(D.z)?D.z:n.dateNF||ut[14]):null===x&&n.nullError&&(M="e",x=0),D?(D.t=M,D.v=x,delete D.w,delete D.R,W&&(D.z=W)):r?m[c+f]=D={t:M,v:x}:a[L]=D={t:M,v:x},W&&(D.z=W)):r?m[c+f]=x:a[L]=x})}),d.e.c=Math.max(d.e.c,c+h.length-1);var g=Yt(s);if(r&&!a["!data"][s]&&(a["!data"][s]=[]),o)for(f=0;f=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(e)>=0){var o=e.match(/(^.*?)(\d+)$/);r=o&&+o[2]||0;var a=o&&o[1]||e;for(++r;r<=65535&&-1!=t.SheetNames.indexOf(e=a+r);++r);}if(tN(e),t.SheetNames.indexOf(e)>=0)throw new Error("Worksheet with name |"+e+"| already exists!");return t.SheetNames.push(e),t.Sheets[e]=i,e}var zN_json_to_sheet=function E0e(t,i){return HN(null,t,i)};let U0e=(()=>{class t{constructor(){}exportAsExcelFile(e,n){const a=tm({Sheets:{data:zN_json_to_sheet(e)},SheetNames:["data"]},{bookType:"xlsx",type:"array"});this.saveAsExcelFile(a,n)}saveAsExcelFile(e,n){const r=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});Zc.saveAs(r,n+"_export_"+(new Date).getTime()+".xlsx")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const z0e=["*",[["mat-toolbar-row"]]],$0e=["*","mat-toolbar-row"],j0e=Vs(class{constructor(t){this._elementRef=t}});let W0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),G0e=(()=>{class t extends j0e{constructor(e,n,r){super(e),this._platform=n,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(b(Fe),b(xi),b(nt))},t.\u0275cmp=Ve({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,W0e,5),2&e){let o;ye(o=we())&&(n._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,n){2&e&&Qe("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[pe],ngContentSelectors:$0e,decls:2,vars:0,template:function(e,n){1&e&&(vi(z0e),tt(0),tt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),t})(),q0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,xt]}),t})();function X0e(t,i){if(1&t){const e=Je();v(0,"button",6),X("click",function(){const o=Me(e).$implicit;return Ae(q().setFhirServer(o))}),E(1),y()}if(2&t){const e=i.$implicit;k(1),Xe(e.name)}}function Q0e(t,i){if(1&t){const e=Je();v(0,"button",6),X("click",function(){const o=Me(e).$implicit;return Ae(q(2).setEdition(o))}),E(1),y()}if(2&t){const e=i.$implicit;k(1),Xe(e.resource.version)}}function Y0e(t,i){if(1&t&&(Ai(0),v(1,"button",14),E(2),y(),v(3,"mat-menu",null,15),H(5,Q0e,2,1,"button",9),y(),Ii()),2&t){const e=i.$implicit,n=Nt(4);k(1),T("matMenuTriggerFor",n),k(1),Xe(e.editionName),k(3),T("ngForOf",e.editions)}}function K0e(t,i){if(1&t){const e=Je();v(0,"button",6),X("click",function(){const o=Me(e).$implicit;return Ae(q().setLanguage(o))}),E(1),y()}if(2&t){const e=i.$implicit;k(1),Xe(e)}}let Z0e=(()=>{class t{constructor(e,n,r,o){this.codingSpecService=e,this.excelService=n,this.terminologyService=r,this.router=o,this.title="sct-implementation-demonstrator",this.bindingsForExport=[],this.editions=[],this.editionsDetails=[],this.languages=["be","en","es","fr","no"],this.selectedEdition="Edition",this.selectedLanguage="en",this.fhirServers=[{name:"SNOMED Dev IS",url:"https://dev-is-browser.ihtsdotools.org/fhir"},{name:"SNOMED Public",url:"https://snowstorm.ihtsdotools.org/fhir"},{name:"SNOMED Dev 2",url:"https://snowstorm-temp.kaicode.io/fhir"}],this.selectedServer=this.fhirServers[1],this.router.events.subscribe(a=>{a instanceof Os&>ag("config","G-7SK998GPMX",{page_path:a.urlAfterRedirects})})}ngOnInit(){this.setFhirServer(this.selectedServer),this.bindingsForExport=[];let e=this.codingSpecService.getCodingSpec();for(const n of e)for(const r of n.bindings)this.bindingsForExport.push({section:n.title,title:r.title,ecl:r.ecl.replace(/\s\s+/g," ")});this.updateCodeSystemOptions()}navigate(e){this.router.navigate([e])}updateCodeSystemOptions(){this.terminologyService.getCodeSystems().subscribe(e=>{this.editionsDetails=[],this.editions=e.entry;let n=new Set;this.editions.forEach(o=>{n.add(o.resource.title)}),n.forEach(o=>{this.editionsDetails.push({editionName:o,editions:this.editions.filter(a=>a.resource.title.includes(o)).sort(this.compare)})});const r=this.editionsDetails.findIndex(o=>"International Edition"===o.editionName);this.setEdition(r>=0?this.editionsDetails[r].editions[0]:this.editions[0])})}compare(e,n){return e.resource.daten.resource.date?-1:0}setFhirServer(e){this.selectedServer=e,this.terminologyService.setSnowstormFhirBase(e.url),this.selectedEdition="Edition",this.editions=[],this.editionsDetails=[],this.updateCodeSystemOptions()}setEdition(e){this.selectedEdition=e.resource.title?.replace("SNOMED CT release ",""),this.terminologyService.setFhirUrlParam(e.resource.version)}setLanguage(e){this.selectedLanguage=e,this.terminologyService.setLang(e)}}return t.\u0275fac=function(e){return new(e||t)(b(goe),b(U0e),b(Nr),b(Pr))},t.\u0275cmp=Ve({type:t,selectors:[["app-root"]],decls:34,vars:10,consts:[["src","assets/img/small_logo.png","height","60px"],["id","title"],[1,"example-spacer"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],[1,"wide-menu"],["demosMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","primary",3,"matMenuTriggerFor"],["serverMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["editionsMenu","matMenu"],[4,"ngFor","ngForOf"],["menu","matMenu"],["mat-flat-button","","href","https://github.com/IHTSDO/sct-implementation-demonstrator","target","_blank","color","primary"],["mat-menu-item","",3,"matMenuTriggerFor"],["sub_menu","matMenu"]],template:function(e,n){if(1&e&&(v(0,"mat-toolbar"),Se(1,"img",0),v(2,"span",1),E(3,"SNOMED CT Implementation Demos"),y(),Se(4,"span",2),v(5,"button",3),E(6,"Select Demonstrator"),y(),v(7,"mat-menu",4,5)(9,"button",6),X("click",function(){return n.navigate("/allergies")}),E(10,"Allergies CRG"),y(),v(11,"button",6),X("click",function(){return n.navigate("/sandbox")}),E(12,"Terminology Bindings Sandbox"),y(),v(13,"button",6),X("click",function(){return n.navigate("/questionnaires")}),E(14,"FHIR Questionnaire Validation Tool"),y()(),v(15,"button",7),E(16),y(),v(17,"mat-menu",null,8),H(19,X0e,2,1,"button",9),y(),v(20,"button",7),E(21),y(),v(22,"mat-menu",4,10),H(24,Y0e,6,3,"ng-container",11),y(),v(25,"button",7),E(26),y(),v(27,"mat-menu",null,12),H(29,K0e,2,1,"button",9),y(),v(30,"a",13)(31,"mat-icon"),E(32,"info"),y()()(),Se(33,"router-outlet")),2&e){const r=Nt(8),o=Nt(18),a=Nt(23),s=Nt(28);k(5),T("matMenuTriggerFor",r),k(10),T("matMenuTriggerFor",o),k(1),It("FHIR Server: ",n.selectedServer.name,""),k(3),T("ngForOf",n.fhirServers),k(1),T("matMenuTriggerFor",a),k(1),Xe(n.selectedEdition),k(3),T("ngForOf",n.editionsDetails),k(1),T("matMenuTriggerFor",s),k(1),Xe(n.selectedLanguage),k(3),T("ngForOf",n.languages)}},dependencies:[bo,iy,G0e,hX,Lr,Qo,jc,wa,Wc],styles:[".mat-toolbar[_ngcontent-%COMP%]{background-color:#000;color:#fff;font-size:1.8rem;font-weight:700}button[_ngcontent-%COMP%]{font-weight:700;font-size:medium}#title[_ngcontent-%COMP%]{margin-left:15px;font-size:1.4rem}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}button[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{margin-left:15px} .mat-mdc-menu-panel{max-width:-moz-fit-content!important;max-width:fit-content!important;overflow-x:hidden!important}.mat-mdc-unelevated-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .mat-mdc-raised-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .mat-mdc-outlined-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{margin:0!important}#demo-selector[_ngcontent-%COMP%]{margin:5px 15px;padding:10px}"]}),t})();function $N(t){return new ue(3e3,!1)}function R_e(){return typeof window<"u"&&typeof window.document<"u"}function gC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ac(t){switch(t.length){case 0:return new Bh;case 1:return t[0];default:return new nF(t)}}function jN(t,i,e,n,r=new Map,o=new Map){const a=[],s=[];let c=-1,l=null;if(n.forEach(d=>{const u=d.get("offset"),h=u==c,f=h&&l||new Map;d.forEach((m,g)=>{let p=g,_=m;if("offset"!==g)switch(p=i.normalizePropertyName(p,a),_){case Xy:_=r.get(g);break;case as:_=o.get(g);break;default:_=i.normalizeStyleValue(g,p,_,a)}f.set(p,_)}),h||s.push(f),l=f,c=u}),a.length)throw function y_e(t){return new ue(3502,!1)}();return s}function _C(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&bC(e,"start",t)));break;case"done":t.onDone(()=>n(e&&bC(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&bC(e,"destroy",t)))}}function bC(t,i,e){const o=vC(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(o._data=a),o}function vC(t,i,e,n,r="",o=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function oo(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function WN(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}let xC=(t,i)=>!1,GN=(t,i,e)=>[],qN=null;function yC(t){const i=t.parentNode||t.host;return i===qN?null:i}(gC()||typeof Element<"u")&&(R_e()?(qN=(()=>document.documentElement)(),xC=(t,i)=>{for(;i;){if(i===t)return!0;i=yC(i)}return!1}):xC=(t,i)=>t.contains(i),GN=(t,i,e)=>{if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]});let vl=null,XN=!1;const QN=xC,YN=GN;let KN=(()=>{class t{validateStyleProperty(e){return function P_e(t){vl||(vl=function L_e(){return typeof document<"u"?document.body:null}()||{},XN=!!vl.style&&"WebkitAppearance"in vl.style);let i=!0;return vl.style&&!function O_e(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in vl.style,!i&&XN&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in vl.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return QN(e,n)}getParentElement(e){return yC(e)}query(e,n,r){return YN(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,o,a,s=[],c){return new Bh(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),wC=(()=>{class t{}return t.NOOP=new KN,t})();const N_e=1e3,CC="ng-enter",g_="ng-leave",__="ng-trigger",b_=".ng-trigger",JN="ng-animating",kC=".ng-animating";function ys(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:DC(parseFloat(i[1]),i[2])}function DC(t,i){return"s"===i?t*N_e:t}function v_(t,i,e){return t.hasOwnProperty("duration")?t:function V_e(t,i,e){let r,o=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return i.push($N()),{duration:0,delay:0,easing:""};r=DC(parseFloat(s[1]),s[2]);const c=s[3];null!=c&&(o=DC(parseFloat(c),s[4]));const l=s[5];l&&(a=l)}else r=t;if(!e){let s=!1,c=i.length;r<0&&(i.push(function J0e(){return new ue(3100,!1)}()),s=!0),o<0&&(i.push(function e_e(){return new ue(3101,!1)}()),s=!0),s&&i.splice(c,0,$N())}return{duration:r,delay:o,easing:a}}(t,i,e)}function im(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function e3(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function sc(t,i=new Map,e){if(e)for(let[n,r]of e)i.set(n,r);for(let[n,r]of t)i.set(n,r);return i}function n3(t,i,e){return e?i+":"+e+";":""}function r3(t){let i="";for(let e=0;e{const o=EC(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=n}),gC()&&r3(t))}function xl(t,i){t.style&&(i.forEach((e,n)=>{const r=EC(n);t.style[r]=""}),gC()&&r3(t))}function nm(t){return Array.isArray(t)?1==t.length?t[0]:tF(t):t}const SC=new RegExp("{{\\s*(.+?)\\s*}}","g");function o3(t){let i=[];if("string"==typeof t){let e;for(;e=SC.exec(t);)i.push(e[1]);SC.lastIndex=0}return i}function rm(t,i,e){const n=t.toString(),r=n.replace(SC,(o,a)=>{let s=i[a];return null==s&&(e.push(function i_e(t){return new ue(3003,!1)}()),s=""),s.toString()});return r==n?t:r}function x_(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const z_e=/-+([a-z0-9])/g;function EC(t){return t.replace(z_e,(...i)=>i[1].toUpperCase())}function $_e(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ao(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function n_e(t){return new ue(3004,!1)}()}}function a3(t,i){return window.getComputedStyle(t)[i]}const C_="*";function Q_e(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function Y_e(t,i,e){if(":"==t[0]){const c=function K_e(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof c)return void i.push(c);t=c}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function g_e(t){return new ue(3015,!1)}()),i;const r=n[1],o=n[2],a=n[3];i.push(s3(r,a));"<"==o[0]&&!(r==C_&&a==C_)&&i.push(s3(a,r))}(n,e,i)):e.push(t),e}const k_=new Set(["true","1"]),D_=new Set(["false","0"]);function s3(t,i){const e=k_.has(t)||D_.has(t),n=k_.has(i)||D_.has(i);return(r,o)=>{let a=t==C_||t==r,s=i==C_||i==o;return!a&&e&&"boolean"==typeof r&&(a=r?k_.has(t):D_.has(t)),!s&&n&&"boolean"==typeof o&&(s=o?k_.has(i):D_.has(i)),a&&s}}const Z_e=new RegExp("s*:selfs*,?","g");function TC(t,i,e,n){return new J_e(t).build(i,e,n)}class J_e{constructor(i){this._driver=i}build(i,e,n){const r=new ibe(e);return this._resetContextStyleTimingState(r),ao(this,nm(i),r)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,r=e.depCount=0;const o=[],a=[];return"@"==i.name.charAt(0)&&e.errors.push(function o_e(){return new ue(3006,!1)}()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const c=s,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,o.push(this.visitState(c,e))}),c.name=l}else if(1==s.type){const c=this.visitTransition(s,e);n+=c.queryCount,r+=c.depCount,a.push(c)}else e.errors.push(function a_e(){return new ue(3007,!1)}())}),{type:7,name:i.name,states:o,transitions:a,queryCount:n,depCount:r,options:null}}visitState(i,e){const n=this.visitStyle(i.styles,e),r=i.options&&i.options.params||null;if(n.containsDynamicStyles){const o=new Set,a=r||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(c=>{o3(c).forEach(l=>{a.hasOwnProperty(l)||o.add(l)})})}),o.size&&(x_(o.values()),e.errors.push(function s_e(t,i){return new ue(3008,!1)}()))}return{type:0,name:i.name,style:n,options:r?{params:r}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const n=ao(this,nm(i.animation),e);return{type:1,matchers:Q_e(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:yl(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>ao(this,n,e)),options:yl(i.options)}}visitGroup(i,e){const n=e.currentTime;let r=0;const o=i.steps.map(a=>{e.currentTime=n;const s=ao(this,a,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:o,options:yl(i.options)}}visitAnimate(i,e){const n=function rbe(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return MC(v_(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=MC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=v_(e,i);return MC(r.duration,r.delay,r.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let r,o=i.styles?i.styles:rt({});if(5==o.type)r=this.visitKeyframes(o,e);else{let a=i.styles,s=!1;if(!a){s=!0;const l={};n.easing&&(l.easing=n.easing),a=rt(l)}e.currentTime+=n.duration+n.delay;const c=this.visitStyle(a,e);c.isEmptyStep=s,r=c}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(i,e){const n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const n=[],r=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of r)"string"==typeof s?s===as?n.push(s):e.errors.push(new ue(3002,!1)):n.push(e3(s));let o=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o))for(let c of s.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:n,easing:a,offset:i.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(i,e){const n=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),i.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,c)=>{const l=e.collectedStyles.get(e.currentQuerySelector),d=l.get(c);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push(function l_e(t,i,e,n,r){return new ue(3010,!1)}()),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),e.options&&function U_e(t,i,e){const n=i.params||{},r=o3(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(function t_e(t){return new ue(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(i,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function d_e(){return new ue(3011,!1)}()),n;let o=0;const a=[];let s=!1,c=!1,l=0;const d=i.steps.map(_=>{const w=this._makeStyleAst(_,e);let x=null!=w.offset?w.offset:function nbe(t){if("string"==typeof t)return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}(w.styles),M=0;return null!=x&&(o++,M=w.offset=x),c=c||M<0||M>1,s=s||M0&&o{const x=h>0?w==f?1:h*w:a[w],M=x*p;e.currentTime=m+g.delay+M,g.duration=M,this._validateStyleAst(_,e),_.offset=x,n.styles.push(_)}),n}visitReference(i,e){return{type:8,animation:ao(this,nm(i.animation),e),options:yl(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:yl(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:yl(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,r=i.options||{};e.queryCount++,e.currentQuery=i;const[o,a]=function ebe(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(Z_e,"")),t=t.replace(/@\*/g,b_).replace(/@\w+/g,e=>b_+"-"+e.slice(1)).replace(/:animating/g,kC),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+o:o,oo(e.collectedStyles,e.currentQuerySelector,new Map);const s=ao(this,nm(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:yl(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function m_e(){return new ue(3013,!1)}());const n="full"===i.timings?{duration:0,delay:0,easing:"full"}:v_(i.timings,e.errors,!0);return{type:12,animation:ao(this,nm(i.animation),e),timings:n,options:null}}}class ibe{constructor(i){this.errors=i,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 yl(t){return t?(t=im(t)).params&&(t.params=function tbe(t){return t?im(t):null}(t.params)):t={},t}function MC(t,i,e){return{duration:t,delay:i,easing:e}}function AC(t,i,e,n,r,o,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}class S_{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const sbe=new RegExp(":enter","g"),lbe=new RegExp(":leave","g");function IC(t,i,e,n,r,o=new Map,a=new Map,s,c,l=[]){return(new dbe).buildKeyframes(t,i,e,n,r,o,a,s,c,l)}class dbe{buildKeyframes(i,e,n,r,o,a,s,c,l,d=[]){l=l||new S_;const u=new FC(i,e,l,r,o,d,[]);u.options=c;const h=c.delay?ys(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([a],null,u.errors,c),ao(this,n,u);const f=u.timelines.filter(m=>m.containsAnimation());if(f.length&&s.size){let m;for(let g=f.length-1;g>=0;g--){const p=f[g];if(p.element===e){m=p;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([s],null,u.errors,c)}return f.length?f.map(m=>m.buildKeyframes()):[AC(e,[],[],[],0,h,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const n=e.subInstructions.get(e.element);if(n){const r=e.createSubContext(i.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){const n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(const r of i){const o=r?.delay;if(o){const a="number"==typeof o?o:ys(rm(o,r?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let o=e.currentTimeline.currentTime;const a=null!=n.duration?ys(n.duration):null,s=null!=n.delay?ys(n.delay):null;return 0!==a&&i.forEach(c=>{const l=e.appendInstructionToTimeline(c,a,s);o=Math.max(o,l.duration+l.delay)}),o}visitReference(i,e){e.updateOptions(i.options,!0),ao(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const n=e.subContextCount;let r=e;const o=i.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=E_);const a=ys(o.delay);r.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>ao(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const n=[];let r=e.currentTimeline.currentTime;const o=i.options&&i.options.delay?ys(i.options.delay):0;i.steps.forEach(a=>{const s=e.createSubContext(i.options);o&&s.delayNextStep(o),ao(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const n=i.strValue;return v_(e.params?rm(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const n=e.currentAnimateTimings=this._visitTiming(i.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const o=i.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=r&&r.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(o):n.setStyles(i.styles,o,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(c=>{s.forwardTime((c.offset||0)*o),s.setStyles(c.styles,c.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+o),e.previousNode=i}visitQuery(i,e){const n=e.currentTimeline.currentTime,r=i.options||{},o=r.delay?ys(r.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=E_);let a=n;const s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let c=null;s.forEach((l,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(i.options,l);o&&u.delayNextStep(o),l===e.element&&(c=u.currentTimeline),ao(this,i.animation,u),u.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const n=e.parentContext,r=e.currentTimeline,o=i.timings,a=Math.abs(o.duration),s=a*(e.currentQueryTotal-1);let c=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=s-c;break;case"full":c=n.currentStaggerTime}const d=e.currentTimeline;c&&d.delayNextStep(c);const u=d.currentTime;ao(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const E_={};class FC{constructor(i,e,n,r,o,a,s,c){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=E_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new T_(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const n=i;let r=this.options;null!=n.duration&&(r.duration=ys(n.duration)),null!=n.delay&&(r.delay=ys(n.delay));const o=n.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=rm(o[s],a,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const n=i.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return i}createSubContext(i=null,e,n){const r=e||this.element,o=new FC(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(i),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(i){return this.previousNode=E_,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const r={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},o=new ube(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,r,i.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,r,o,a){let s=[];if(r&&s.push(this.element),i.length>0){i=(i=i.replace(sbe,"."+this._enterClassName)).replace(lbe,"."+this._leaveClassName);let l=this._driver.query(this.element,i,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),s.push(...l)}return!o&&0==s.length&&a.push(function p_e(t){return new ue(3014,!1)}()),s}}class T_{constructor(i,e,n,r){this._driver=i,this.element=e,this.startTime=n,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(i){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new T_(this._driver,i,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(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||as),this._currentKeyframe.set(e,as);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function hbe(t,i){const e=new Map;let n;return t.forEach(r=>{if("*"===r){n=n||i.keys();for(let o of n)e.set(o,as)}else sc(r,e)}),e}(i,this._globalTimelineStyles);for(let[s,c]of a){const l=rm(c,o,n);this._pendingStyles.set(s,l),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??as),this._updateStyle(s,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{const r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,c)=>{const l=sc(s,new Map,this._backFill);l.forEach((d,u)=>{d===Xy?i.add(u):d===as&&e.add(u)}),n||l.set("offset",c/this.duration),r.push(l)});const o=i.size?x_(i.values()):[],a=e.size?x_(e.values()):[];if(n){const s=r[0],c=new Map(s);s.set("offset",0),c.set("offset",1),r=[s,c]}return AC(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class ube extends T_{constructor(i,e,n,r,o,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],a=n+e,s=e/a,c=sc(i[0]);c.set("offset",0),o.push(c);const l=sc(i[0]);l.set("offset",d3(s)),o.push(l);const d=i.length-1;for(let u=1;u<=d;u++){let h=sc(i[u]);const f=h.get("offset");h.set("offset",d3((e+f*n)/a)),o.push(h)}n=a,e=0,r="",i=o}return AC(this.element,i,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function d3(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class RC{}const fbe=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 mbe extends RC{normalizePropertyName(i,e){return EC(i)}normalizeStyleValue(i,e,n,r){let o="";const a=n.toString().trim();if(fbe.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(function r_e(t,i){return new ue(3005,!1)}())}return a+o}}function u3(t,i,e,n,r,o,a,s,c,l,d,u,h){return{type:0,element:t,triggerName:i,isRemovalTransition:r,fromState:e,fromStyles:o,toState:n,toStyles:a,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:h}}const OC={};class h3{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,r){return function pbe(t,i,e,n,r){return t.some(o=>o(i,e,n,r))}(this.ast.matchers,i,e,n,r)}buildStyles(i,e,n){let r=this._stateStyles.get("*");return void 0!==i&&(r=this._stateStyles.get(i?.toString())||r),r?r.buildStyles(e,n):new Map}build(i,e,n,r,o,a,s,c,l,d){const u=[],h=this.ast.options&&this.ast.options.params||OC,m=this.buildStyles(n,s&&s.params||OC,u),g=c&&c.params||OC,p=this.buildStyles(r,g,u),_=new Set,w=new Map,x=new Map,M="void"===r,W={params:gbe(g,h),delay:this.ast.options?.delay},L=d?[]:IC(i,e,this.ast.animation,o,a,m,p,W,l,u);let D=0;if(L.forEach(N=>{D=Math.max(N.duration+N.delay,D)}),u.length)return u3(e,this._triggerName,n,r,M,m,p,[],[],w,x,D,u);L.forEach(N=>{const j=N.element,Z=oo(w,j,new Set);N.preStyleProps.forEach(me=>Z.add(me));const U=oo(x,j,new Set);N.postStyleProps.forEach(me=>U.add(me)),j!==e&&_.add(j)});const B=x_(_.values());return u3(e,this._triggerName,n,r,M,m,p,L,B,w,x,D)}}function gbe(t,i){const e=im(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class _be{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,r=im(this.defaultParams);return Object.keys(i).forEach(o=>{const a=i[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,s)=>{a&&(a=rm(a,r,e));const c=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,c,a,e),n.set(s,a)})}),n}}class vbe{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new _be(r.style,r.options&&r.options.params||{},n))}),f3(this.states,"true","1"),f3(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new h3(i,r,this.states))}),this.fallbackTransition=function xbe(t,i,e){return new h3(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,r){return this.transitionFactories.find(a=>a.match(i,e,n,r))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}}function f3(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}const ybe=new S_;class wbe{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){const n=[],r=[],o=TC(this._driver,e,n,r);if(n.length)throw function w_e(t){return new ue(3503,!1)}();this._animations.set(i,o)}_buildPlayer(i,e,n){const r=i.element,o=jN(0,this._normalizer,0,i.keyframes,e,n);return this._driver.animate(r,o,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const r=[],o=this._animations.get(i);let a;const s=new Map;if(o?(a=IC(this._driver,e,o,CC,g_,new Map,new Map,n,ybe,r),a.forEach(d=>{const u=oo(s,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function C_e(){return new ue(3300,!1)}()),a=[]),r.length)throw function k_e(t){return new ue(3504,!1)}();s.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,as))})});const l=ac(a.map(d=>{const u=s.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(i,l),l.onDestroy(()=>this.destroy(i)),this.players.push(l),l}destroy(i){const e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const e=this._playersById.get(i);if(!e)throw function D_e(t){return new ue(3301,!1)}();return e}listen(i,e,n,r){const o=vC(e,"","","");return _C(this._getPlayer(i),n,o,r),()=>{}}command(i,e,n,r){if("register"==n)return void this.register(i,r[0]);if("create"==n)return void this.create(i,e,r[0]||{});const o=this._getPlayer(i);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(i)}}}const m3="ng-animate-queued",PC="ng-animate-disabled",Ebe=[],p3={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Tbe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ro="__ng_removed";class LC{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function Fbe(t){return t??null}(n?i.value:i),n){const o=im(i);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const e=i.params;if(e){const n=this.options.params;Object.keys(e).forEach(r=>{null==n[r]&&(n[r]=e[r])})}}}const om="void",NC=new LC(om);class Mbe{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Oo(e,this._hostClassName)}listen(i,e,n,r){if(!this._triggers.has(e))throw function S_e(t,i){return new ue(3302,!1)}();if(null==n||0==n.length)throw function E_e(t){return new ue(3303,!1)}();if(!function Rbe(t){return"start"==t||"done"==t}(n))throw function T_e(t,i){return new ue(3400,!1)}();const o=oo(this._elementListeners,i,[]),a={name:e,phase:n,callback:r};o.push(a);const s=oo(this._engine.statesByElement,i,new Map);return s.has(e)||(Oo(i,__),Oo(i,__+"-"+e),s.set(e,NC)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(a);c>=0&&o.splice(c,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return!this._triggers.has(i)&&(this._triggers.set(i,e),!0)}_getTrigger(i){const e=this._triggers.get(i);if(!e)throw function M_e(t){return new ue(3401,!1)}();return e}trigger(i,e,n,r=!0){const o=this._getTrigger(e),a=new BC(this.id,e,i);let s=this._engine.statesByElement.get(i);s||(Oo(i,__),Oo(i,__+"-"+e),this._engine.statesByElement.set(i,s=new Map));let c=s.get(e);const l=new LC(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s.set(e,l),c||(c=NC),l.value!==om&&c.value===l.value){if(!function Lbe(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let r=0;r{xl(i,p),Pa(i,_)})}return}const h=oo(this._engine.playersByElement,i,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let f=o.matchTransition(c.value,l.value,i,l.params),m=!1;if(!f){if(!r)return;f=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:f,fromState:c,toState:l,player:a,isFallbackTransition:m}),m||(Oo(i,m3),a.onStart(()=>{fu(i,m3)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);const p=this._engine.playersByElement.get(i);if(p){let _=p.indexOf(a);_>=0&&p.splice(_,1)}}),this.players.push(a),h.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const n=this._engine.driver.query(i,b_,!0);n.forEach(r=>{if(r[Ro])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(i,e,n,r){const o=this._engine.statesByElement.get(i),a=new Map;if(o){const s=[];if(o.forEach((c,l)=>{if(a.set(l,c.value),this._triggers.has(l)){const d=this.trigger(i,l,om,r);d&&s.push(d)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&ac(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const r=new Set;e.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const c=this._triggers.get(a).fallbackTransition,l=n.get(a)||NC,d=new LC(om),u=new BC(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(i,e){const n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let r=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(i):[];if(o&&o.length)r=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(i),r)n.markElementAsRemoved(this.id,i,!1,e);else{const o=i[Ro];(!o||o===p3)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Oo(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const o=n.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==n.triggerName){const c=vC(o,n.triggerName,n.fromState.value,n.toState.value);c._data=i,_C(n.player,s.phase,c,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{const o=n.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}elementContainsData(i){let e=!1;return this._elementListeners.has(i)&&(e=!0),e=!!this._queue.find(n=>n.element===i)||e,e}}class Abe{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const n=new Mbe(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const c=r.get(s);if(c){const l=n.indexOf(c);n.splice(l+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return r.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let r=this._namespaceLookup[i];r&&r.register(e,n)&&this.totalAnimations++}destroy(i,e){if(!i)return;const n=this._fetchNamespace(i);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[i];const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,n=this.statesByElement.get(i);if(n)for(let r of n.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(i,e,n,r){if(M_(e)){const o=this._fetchNamespace(i);if(o)return o.trigger(e,n,r),!0}return!1}insertNode(i,e,n,r){if(!M_(e))return;const o=e[Ro];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){const a=this._fetchNamespace(i);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Oo(i,PC)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),fu(i,PC))}removeNode(i,e,n,r){if(M_(e)){const o=i?this._fetchNamespace(i):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(i,e,!1,r),n){const a=this.namespacesByHostElement.get(e);a&&a.id!==i&&a.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(i,e,n,r,o){this.collectedLeaveElements.push(e),e[Ro]={namespaceId:i,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(i,e,n,r,o){return M_(e)?this._fetchNamespace(i).listen(e,n,r,o):()=>{}}_buildInstruction(i,e,n,r,o){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,r,i.fromState.options,i.toState.options,e,o)}destroyInnerAnimations(i){let e=this.driver.query(i,b_,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,kC,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return ac(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Ro];if(e&&e.setForRemoval){if(i[Ro]=p3,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(PC)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?ac(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(i){throw function A_e(t){return new ue(3402,!1)}()}_flushAnimations(i,e){const n=new S_,r=[],o=new Map,a=[],s=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(ne=>{d.add(ne);const Y=this.driver.query(ne,".ng-animate-queued",!0);for(let he=0;he{const he=CC+g++;m.set(Y,he),ne.forEach(se=>Oo(se,he))});const p=[],_=new Set,w=new Set;for(let ne=0;ne_.add(se)):w.add(Y))}const x=new Map,M=b3(h,Array.from(_));M.forEach((ne,Y)=>{const he=g_+g++;x.set(Y,he),ne.forEach(se=>Oo(se,he))}),i.push(()=>{f.forEach((ne,Y)=>{const he=m.get(Y);ne.forEach(se=>fu(se,he))}),M.forEach((ne,Y)=>{const he=x.get(Y);ne.forEach(se=>fu(se,he))}),p.forEach(ne=>{this.processLeaveNode(ne)})});const W=[],L=[];for(let ne=this._namespaceList.length-1;ne>=0;ne--)this._namespaceList[ne].drainQueuedTransitions(e).forEach(he=>{const se=he.player,Le=he.element;if(W.push(se),this.collectedEnterElements.length){const V=Le[Ro];if(V&&V.setForMove){if(V.previousTriggersValues&&V.previousTriggersValues.has(he.triggerName)){const oe=V.previousTriggersValues.get(he.triggerName),_e=this.statesByElement.get(he.element);if(_e&&_e.has(he.triggerName)){const Re=_e.get(he.triggerName);Re.value=oe,_e.set(he.triggerName,Re)}}return void se.destroy()}}const ce=!u||!this.driver.containsElement(u,Le),qe=x.get(Le),mt=m.get(Le),F=this._buildInstruction(he,n,mt,qe,ce);if(F.errors&&F.errors.length)return void L.push(F);if(ce)return se.onStart(()=>xl(Le,F.fromStyles)),se.onDestroy(()=>Pa(Le,F.toStyles)),void r.push(se);if(he.isFallbackTransition)return se.onStart(()=>xl(Le,F.fromStyles)),se.onDestroy(()=>Pa(Le,F.toStyles)),void r.push(se);const K=[];F.timelines.forEach(V=>{V.stretchStartingKeyframe=!0,this.disabledNodes.has(V.element)||K.push(V)}),F.timelines=K,n.append(Le,F.timelines),a.push({instruction:F,player:se,element:Le}),F.queriedElements.forEach(V=>oo(s,V,[]).push(se)),F.preStyleProps.forEach((V,oe)=>{if(V.size){let _e=c.get(oe);_e||c.set(oe,_e=new Set),V.forEach((Re,Pe)=>_e.add(Pe))}}),F.postStyleProps.forEach((V,oe)=>{let _e=l.get(oe);_e||l.set(oe,_e=new Set),V.forEach((Re,Pe)=>_e.add(Pe))})});if(L.length){const ne=[];L.forEach(Y=>{ne.push(function I_e(t,i){return new ue(3505,!1)}())}),W.forEach(Y=>Y.destroy()),this.reportError(ne)}const D=new Map,B=new Map;a.forEach(ne=>{const Y=ne.element;n.has(Y)&&(B.set(Y,Y),this._beforeAnimationBuild(ne.player.namespaceId,ne.instruction,D))}),r.forEach(ne=>{const Y=ne.element;this._getPreviousPlayers(Y,!1,ne.namespaceId,ne.triggerName,null).forEach(se=>{oo(D,Y,[]).push(se),se.destroy()})});const N=p.filter(ne=>x3(ne,c,l)),j=new Map;_3(j,this.driver,w,l,as).forEach(ne=>{x3(ne,c,l)&&N.push(ne)});const U=new Map;f.forEach((ne,Y)=>{_3(U,this.driver,new Set(ne),c,Xy)}),N.forEach(ne=>{const Y=j.get(ne),he=U.get(ne);j.set(ne,new Map([...Array.from(Y?.entries()??[]),...Array.from(he?.entries()??[])]))});const me=[],be=[],de={};a.forEach(ne=>{const{element:Y,player:he,instruction:se}=ne;if(n.has(Y)){if(d.has(Y))return he.onDestroy(()=>Pa(Y,se.toStyles)),he.disabled=!0,he.overrideTotalTime(se.totalTime),void r.push(he);let Le=de;if(B.size>1){let qe=Y;const mt=[];for(;qe=qe.parentNode;){const F=B.get(qe);if(F){Le=F;break}mt.push(qe)}mt.forEach(F=>B.set(F,Le))}const ce=this._buildAnimation(he.namespaceId,se,D,o,U,j);if(he.setRealPlayer(ce),Le===de)me.push(he);else{const qe=this.playersByElement.get(Le);qe&&qe.length&&(he.parentPlayer=ac(qe)),r.push(he)}}else xl(Y,se.fromStyles),he.onDestroy(()=>Pa(Y,se.toStyles)),be.push(he),d.has(Y)&&r.push(he)}),be.forEach(ne=>{const Y=o.get(ne.element);if(Y&&Y.length){const he=ac(Y);ne.setRealPlayer(he)}}),r.forEach(ne=>{ne.parentPlayer?ne.syncPlayerEvents(ne.parentPlayer):ne.destroy()});for(let ne=0;ne!ce.destroyed);Le.length?Obe(this,Y,Le):this.processLeaveNode(Y)}return p.length=0,me.forEach(ne=>{this.players.push(ne),ne.onDone(()=>{ne.destroy();const Y=this.players.indexOf(ne);this.players.splice(Y,1)}),ne.play()}),me}elementContainsData(i,e){let n=!1;const r=e[Ro];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(i).elementContainsData(e)||n}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,r,o){let a=[];if(e){const s=this.playersByQueriedElement.get(i);s&&(a=s)}else{const s=this.playersByElement.get(i);if(s){const c=!o||o==om;s.forEach(l=>{l.queued||!c&&l.triggerName!=r||a.push(l)})}}return(n||r)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||r&&r!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){const o=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:e.triggerName;for(const c of e.timelines){const l=c.element,d=l!==o,u=oo(n,l,[]);this._getPreviousPlayers(l,d,a,s,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),u.push(f)})}xl(o,e.fromStyles)}_buildAnimation(i,e,n,r,o,a){const s=e.triggerName,c=e.element,l=[],d=new Set,u=new Set,h=e.timelines.map(m=>{const g=m.element;d.add(g);const p=g[Ro];if(p&&p.removedBeforeQueried)return new Bh(m.duration,m.delay);const _=g!==c,w=function Pbe(t){const i=[];return v3(t,i),i}((n.get(g)||Ebe).map(D=>D.getRealPlayer())).filter(D=>!!D.element&&D.element===g),x=o.get(g),M=a.get(g),W=jN(0,this._normalizer,0,m.keyframes,x,M),L=this._buildPlayer(m,W,w);if(m.subTimeline&&r&&u.add(g),_){const D=new BC(i,s,g);D.setRealPlayer(L),l.push(D)}return L});l.forEach(m=>{oo(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function Ibe(t,i,e){let n=t.get(i);if(n){if(n.length){const r=n.indexOf(e);n.splice(r,1)}0==n.length&&t.delete(i)}return n}(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>Oo(m,JN));const f=ac(h);return f.onDestroy(()=>{d.forEach(m=>fu(m,JN)),Pa(c,e.toStyles)}),u.forEach(m=>{oo(r,m,[]).push(f)}),f}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new Bh(i.duration,i.delay)}}class BC{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new Bh,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(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>_C(i,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){oo(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function M_(t){return t&&1===t.nodeType}function g3(t,i){const e=t.style.display;return t.style.display=i??"none",e}function _3(t,i,e,n,r){const o=[];e.forEach(c=>o.push(g3(c)));const a=[];n.forEach((c,l)=>{const d=new Map;c.forEach(u=>{const h=i.computeStyle(l,u,r);d.set(u,h),(!h||0==h.length)&&(l[Ro]=Tbe,a.push(l))}),t.set(l,d)});let s=0;return e.forEach(c=>g3(c,o[s++])),a}function b3(t,i){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==i.length)return e;const n=1,r=new Set(i),o=new Map;function a(s){if(!s)return n;let c=o.get(s);if(c)return c;const l=s.parentNode;return c=e.has(l)?l:r.has(l)?n:a(l),o.set(s,c),c}return i.forEach(s=>{const c=a(s);c!==n&&e.get(c).push(s)}),e}function Oo(t,i){t.classList?.add(i)}function fu(t,i){t.classList?.remove(i)}function Obe(t,i,e){ac(e).onDone(()=>t.processLeaveNode(i))}function v3(t,i){for(let e=0;er.add(o)):i.set(t,n),e.delete(t),!0}class A_{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new Abe(i,e,n),this._timelineEngine=new wbe(i,e,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(i,e,n,r,o){const a=i+"-"+r;let s=this._triggerCache[a];if(!s){const c=[],l=[],d=TC(this._driver,o,c,l);if(c.length)throw function x_e(t,i){return new ue(3404,!1)}();s=function bbe(t,i,e){return new vbe(t,i,e)}(r,d,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,r,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,r){this._transitionEngine.insertNode(i,e,n,r)}onRemove(i,e,n,r){this._transitionEngine.removeNode(i,e,r||!1,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,r){if("@"==n.charAt(0)){const[o,a]=WN(n);this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(i,e,n,r)}listen(i,e,n,r,o){if("@"==n.charAt(0)){const[a,s]=WN(n);return this._timelineEngine.listen(a,e,s,o)}return this._transitionEngine.listen(i,e,n,r,o)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Bbe=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Pa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Pa(this._element,this._initialStyles),this._endStyles&&(Pa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(xl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xl(this._element,this._endStyles),this._endStyles=null),Pa(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function VC(t){let i=null;return t.forEach((e,n)=>{(function Vbe(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class y3{constructor(i,e,n,r){this.element=i,this.keyframes=e,this.options=n,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){const e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),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(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{"offset"!==r&&i.set(r,this._finished?n:a3(this.element,r))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Hbe{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return QN(i,e)}getParentElement(i){return yC(i)}query(i,e,n){return YN(i,e,n)}computeStyle(i,e,n){return window.getComputedStyle(i)[e]}animate(i,e,n,r,o,a=[]){const c={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(c.easing=o);const l=new Map,d=a.filter(f=>f instanceof y3);(function j_e(t,i){return 0===t||0===i})(n,r)&&d.forEach(f=>{f.currentSnapshot.forEach((m,g)=>l.set(g,m))});let u=function H_e(t){return t.length?t[0]instanceof Map?t:t.map(i=>e3(i)):[]}(e).map(f=>sc(f));u=function W_e(t,i,e){if(e.size&&i.length){let n=i[0],r=[];if(e.forEach((o,a)=>{n.has(a)||r.push(a),n.set(a,o)}),r.length)for(let o=1;oa.set(s,a3(t,s)))}}return i}(i,u,l);const h=function Nbe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=VC(i[0]),i.length>1&&(n=VC(i[i.length-1]))):i instanceof Map&&(e=VC(i)),e||n?new Bbe(t,e,n):null}(i,u);return new y3(i,u,c,h)}}let Ube=(()=>{class t extends eF{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:No.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?tF(e):e;return w3(this._renderer,null,n,"register",[r]),new zbe(n,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(G(Vu),G(nt))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();class zbe extends mX{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new $be(this._id,i,e||{},this._renderer)}}class $be{constructor(i,e,n,r){this.id=i,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return w3(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}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(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function w3(t,i,e,n,r){return t.setProperty(i,`@@${e}:${n}`,r)}const C3="@.disabled";let jbe=(()=>{class t{constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(o,a)=>{const s=a?.parentNode(o);s&&a.removeChild(s,o)}}createRenderer(e,n){const o=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let d=this._rendererCache.get(o);return d||(d=new k3("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,d)),d}const a=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const c=d=>{Array.isArray(d)?d.forEach(c):this.engine.registerTrigger(a,s,e,d.name,d)};return n.data.animation.forEach(c),new Wbe(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){e>=0&&en(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(G(Vu),G(A_),G(ze))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();class k3{constructor(i,e,n,r){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,r=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,r)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,r){this.delegate.setAttribute(i,e,n,r)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,r){this.delegate.setStyle(i,e,n,r)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==C3?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class Wbe extends k3{constructor(i,e,n,r,o){super(e,n,r,o),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==C3?this.disableAnimations(i,n=void 0===n||!!n):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const r=function Gbe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i);let o=e.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function qbe(t){const i=t.indexOf(".");return[t.substring(0,i),t.slice(i+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,n,s)})}return this.delegate.listen(i,e,n)}}const D3=[{provide:eF,useClass:Ube},{provide:RC,useFactory:function Qbe(){return new mbe}},{provide:A_,useClass:(()=>{class t extends A_{constructor(e,n,r,o){super(e.body,n,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(G(nt),G(wC),G(RC),G(md))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})()},{provide:Vu,useFactory:function Ybe(t,i,e){return new jbe(t,i,e)},deps:[Up,A_,ze]}],HC=[{provide:wC,useFactory:()=>new Hbe},{provide:Ri,useValue:"BrowserAnimations"},...D3],S3=[{provide:wC,useClass:KN},{provide:Ri,useValue:"NoopAnimations"},...D3];let Kbe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?S3:HC}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:HC,imports:[PM]}),t})(),Zbe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,xt]}),t})(),Tve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[bg,nr,xt,Us,WI,Zbe]}),t})(),Mve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t,bootstrap:[Z0e]}),t.\u0275inj=at({imports:[jG,PM,nee,moe,Kbe,Cte,q0e,JI,MQ,jQ,vF,dre,m0,NZ,KQ,jZ,jK,eee,_Y,jY,yee,P1,Lee,Gee,sie,vie,zte,Oie,Tve,Dne,P1]}),t})();N$().bootstrapModule(Mve).catch(t=>console.error(t))},327:function(kl,lm){var lc,dc;void 0!==(dc="function"==typeof(lc=function(){"use strict";function ia(ei,ci,pr){var Ti=new XMLHttpRequest;Ti.open("GET",ei),Ti.responseType="blob",Ti.onload=function(){co(Ti.response,ci,pr)},Ti.onerror=function(){console.error("could not download file")},Ti.send()}function yt(ei){var ci=new XMLHttpRequest;ci.open("HEAD",ei,!1);try{ci.send()}catch{}return 200<=ci.status&&299>=ci.status}function uc(ei){try{ei.dispatchEvent(new MouseEvent("click"))}catch{var ci=document.createEvent("MouseEvents");ci.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ei.dispatchEvent(ci)}}var jr="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,mu=jr.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),co=jr.saveAs||("object"!=typeof window||window!==jr?function(){}:"download"in HTMLAnchorElement.prototype&&!mu?function(ei,ci,pr){var Ti=jr.URL||jr.webkitURL,gr=document.createElement("a");gr.download=ci=ci||ei.name||"download",gr.rel="noopener","string"==typeof ei?(gr.href=ei,gr.origin===location.origin?uc(gr):yt(gr.href)?ia(ei,ci,pr):uc(gr,gr.target="_blank")):(gr.href=Ti.createObjectURL(ei),setTimeout(function(){Ti.revokeObjectURL(gr.href)},4e4),setTimeout(function(){uc(gr)},0))}:"msSaveOrOpenBlob"in navigator?function(ei,ci,pr){if(ci=ci||ei.name||"download","string"!=typeof ei)navigator.msSaveOrOpenBlob(function Dl(ei,ci){return typeof ci>"u"?ci={autoBom:!1}:"object"!=typeof ci&&(console.warn("Deprecated: Expected third argument to be a object"),ci={autoBom:!ci}),ci.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ei.type)?new Blob(["\ufeff",ei],{type:ei.type}):ei}(ei,pr),ci);else if(yt(ei))ia(ei,ci,pr);else{var Ti=document.createElement("a");Ti.href=ei,Ti.target="_blank",setTimeout(function(){uc(Ti)})}}:function(ei,ci,pr,Ti){if((Ti=Ti||open("","_blank"))&&(Ti.document.title=Ti.document.body.innerText="downloading..."),"string"==typeof ei)return ia(ei,ci,pr);var gr="application/octet-stream"===ei.type,R_=/constructor/i.test(jr.HTMLElement)||jr.safari,Sl=/CriOS\/[\d]+/.test(navigator.userAgent);if((Sl||gr&&R_||mu)&&typeof FileReader<"u"){var Lo=new FileReader;Lo.onloadend=function(){var Na=Lo.result;Na=Sl?Na:Na.replace(/^data:[^;]*;/,"data:attachment/file;"),Ti?Ti.location.href=Na:location=Na,Ti=null},Lo.readAsDataURL(ei)}else{var hc=jr.URL||jr.webkitURL,pu=hc.createObjectURL(ei);Ti?Ti.location=pu:location.href=pu,Ti=null,setTimeout(function(){hc.revokeObjectURL(pu)},4e4)}});jr.saveAs=co.saveAs=co,kl.exports=co})?lc.apply(lm,[]):lc)&&(kl.exports=dc)}},kl=>{kl(kl.s=450)}]); \ No newline at end of file diff --git a/src/app/bindings-sandbox/bindings-sandbox.component.ts b/src/app/bindings-sandbox/bindings-sandbox.component.ts index e446150..d1e5e1e 100644 --- a/src/app/bindings-sandbox/bindings-sandbox.component.ts +++ b/src/app/bindings-sandbox/bindings-sandbox.component.ts @@ -201,7 +201,6 @@ export class BindingsSandboxComponent { } refreshFhirQuestionnaire() { - // TODO: Add question code console.log('refreshFhirQuestionnaire'); this.fhirQuestionnaire = { @@ -210,186 +209,101 @@ export class BindingsSandboxComponent { "status": "draft", "item": [] }; - for (let [index, binding] of this.bindings.entries()) { - if (binding.type == 'Section header') { - let item: any = { - "linkId": index+1, - "type": "display", - "text": binding.title - }; - if (binding.code) { - item['code'] = [ - { - "system": "http://snomed.info/sct", - "code": binding.code.code, - "display": binding.code.display - } - ]; - } - this.fhirQuestionnaire.item.push(item); - } - if (binding.type == 'Select (Single)' || binding.type == 'Options') { - let item: any = { - "linkId": index+1, - "type": "choice", - "extension": [ - { - "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer", - "valueUrl": "https://snowstorm.ihtsdotools.org/fhir" - } - ], - "text": binding.title, - "answerValueSet": `http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(binding.ecl)}` - }; - if (binding.code) { - item['code'] = [ - { - "system": "http://snomed.info/sct", - "code": binding.code.code, - "display": binding.code.display - } - ]; - } - this.fhirQuestionnaire.item.push(item); - } - if (binding.type == 'Select (Multiple)') { - let item: any = { - "linkId": index+1, - "type": "choice", - "repeats": true, - "extension": [ - { - "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer", - "valueUrl": "https://snowstorm.ihtsdotools.org/fhir" - } - ], - "text": binding.title, - "answerValueSet": `http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(binding.ecl)}` - }; - if (binding.code) { - item['code'] = [ - { - "system": "http://snomed.info/sct", - "code": binding.code.code, - "display": binding.code.display - } - ]; - } - this.fhirQuestionnaire.item.push(item); - } - if (binding.type == 'Autocomplete') { - let item: any = { - "linkId": index+1, - "type": "choice", - "extension": [ - { - "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer", - "valueUrl": "https://snowstorm.ihtsdotools.org/fhir" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "system": "http://hl7.org/fhir/questionnaire-item-control", - "code": "autocomplete", - "display": "Auto-complete" - } - ] - } - } - ], - "text": binding.title, - "answerValueSet": `http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(binding.ecl)}` - }; - if (binding.code) { - item['code'] = [ - { - "system": "http://snomed.info/sct", - "code": binding.code.code, - "display": binding.code.display - } - ]; - } - this.fhirQuestionnaire.item.push(item); - } - if (binding.type == 'Text box') { - let item: any = { - "linkId": index+1, - "type": "text", - "text": binding.title - }; - if (binding.code) { - item['code'] = [ - { - "system": "http://snomed.info/sct", - "code": binding.code.code, - "display": binding.code.display - } - ]; - } - this.fhirQuestionnaire.item.push(item); - } - if (binding.type == 'Integer') { - let item: any = { - "linkId": index+1, - "type": "integer", - "text": binding.title - }; - if (binding.code) { - item['code'] = [ - { - "system": "http://snomed.info/sct", - "code": binding.code.code, - "display": binding.code.display - } - ]; - } - this.fhirQuestionnaire.item.push(item); - } - if (binding.type == 'Text box') { - let item: any = { - "linkId": index+1, - "type": "text", - "text": binding.title - }; - if (binding.code) { - item['code'] = [ - { - "system": "http://snomed.info/sct", - "code": binding.code.code, - "display": binding.code.display - } - ]; - } + + this.bindings.forEach((binding, index) => { + const item = this.createItemForBinding(binding, index); + if (item) { this.fhirQuestionnaire.item.push(item); } - if (binding.type == 'Decimal') { - let item: any = { - "linkId": index+1, - "type": "boolean", - "text": binding.title, - "code": [ - { - "system": "http://snomed.info/sct", - "code": binding.ecl.code, - "display": binding.ecl.display - } - ] - }; - if (binding.code) { - item['code'] = [ - { - "system": "http://snomed.info/sct", - "code": binding.code.code, - "display": binding.code.display - } - ]; + }); + + this.fhirQuestionnaireStr = JSON.stringify(this.fhirQuestionnaire, null, 2); + } + + createItemForBinding(binding: any, index: number) { + const baseItem: any = this.initializeBaseItem(binding, index); + + if (['Select (Single)', 'Select (Multiple)', 'Options', 'Autocomplete'].includes(binding.type)) { + baseItem['extension'] = this.getExtensionForSelectableTypes(); + baseItem['answerValueSet'] = this.getAnswerValueSet(binding); + } + + if (binding.type === 'Autocomplete') { + baseItem['extension'].push(this.getAutocompleteExtension()); + } + + if (binding.type === 'Select (Multiple)') { + baseItem['repeats'] = true; + } + + return baseItem; + } + + initializeBaseItem(binding: any, index: number) { + const item: any = { + "linkId": index + 1, + "text": binding.title, + "type": this.getQuestionnaireItemType(binding.type) + }; + + if (binding.code) { + item['code'] = [ + { + "system": "http://snomed.info/sct", + "code": binding.code.code, + "display": binding.code.display } - this.fhirQuestionnaire.item.push(item); - } + ]; } - this.fhirQuestionnaireStr = JSON.stringify(this.fhirQuestionnaire, null, 2); + + return item; + } + + getQuestionnaireItemType(type: any) { + switch (type) { + case 'Section header': + return 'display'; + case 'Select (Single)': + case 'Select (Multiple)': + case 'Options': + case 'Autocomplete': + return 'choice'; + case 'Text box': + return 'text'; + case 'Integer': + return 'integer'; + case 'Decimal': + return 'decimal'; + default: + console.warn(`Unhandled binding type: ${type}`); + return null; + } + } + + getExtensionForSelectableTypes() { + return [{ + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer", + "valueUrl": "https://snowstorm.ihtsdotools.org/fhir" + }]; + } + + getAutocompleteExtension() { + return { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/questionnaire-item-control", + "code": "autocomplete", + "display": "Auto-complete" + } + ] + } + }; + } + + getAnswerValueSet(binding: any) { + return `http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(binding.ecl)}`; } async getEclPreview(ecl: string): Promise { @@ -548,10 +462,6 @@ export class BindingsSandboxComponent { } } - // eclChanged(event: any) { - // console.log(event); - // } - openEclBuilder(ecl: any, controlName: string) { const dialogRef = this.dialog.open(EclBuilderDialogComponent, { data: { ecl },