@wizishop/img-manager-webelement 1.0.3 → 14.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +17 -253
- package/assets/img-manager/i18n/en.json +1 -1
- package/assets/img-manager/i18n/fr.json +1 -1
- package/main.14.0.1.js +1 -0
- package/package.json +2 -5
- package/polyfills.14.0.1.js +1 -0
- package/runtime.14.0.1.js +1 -0
- package/styles.14.0.1.css +1 -0
- package/4.js +0 -1
- package/img-manager-webelement.1.0.3.js +0 -1
- package/index.html +0 -25
- package/main.js +0 -1
- package/polyfills.js +0 -1
- package/runtime.js +0 -1
- package/styles.1.0.3.css +0 -1
package/main.14.0.1.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkimg_manager_webelement=self.webpackChunkimg_manager_webelement||[]).push([[179],{767:(Gt,Pn,ct)=>{"use strict";function oe(t){return"function"==typeof t}function Re(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const We=Re(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function he(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class ne{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(oe(i))try{i()}catch(o){n=o instanceof We?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{it(o)}catch(s){n=n??[],s instanceof We?n=[...n,...s.errors]:n.push(s)}}if(n)throw new We(n)}}add(n){var e;if(n&&n!==this)if(this.closed)it(n);else{if(n instanceof ne){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&he(e,n)}remove(n){const{_finalizers:e}=this;e&&he(e,n),n instanceof ne&&n._removeParent(this)}}ne.EMPTY=(()=>{const t=new ne;return t.closed=!0,t})();const mi=ne.EMPTY;function er(t){return t instanceof ne||t&&"closed"in t&&oe(t.remove)&&oe(t.add)&&oe(t.unsubscribe)}function it(t){oe(t)?t():t.unsubscribe()}const ut={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},tr={setTimeout(t,n,...e){const{delegate:i}=tr;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=tr;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function qt(t){tr.setTimeout(()=>{const{onUnhandledError:n}=ut;if(!n)throw t;n(t)})}function kt(){}const Tr=et("C",void 0,void 0);function et(t,n,e){return{kind:t,value:n,error:e}}let Ge=null;function on(t){if(ut.useDeprecatedSynchronousErrorHandling){const n=!Ge;if(n&&(Ge={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Ge;if(Ge=null,e)throw i}}else t()}class vt extends ne{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,er(n)&&n.add(this)):this.destination=Fl}static create(n,e,i){return new kn(n,e,i)}next(n){this.isStopped?ro(function me(t){return et("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?ro(function Pe(t){return et("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?ro(Tr,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Oi=Function.prototype.bind;function nr(t,n){return Oi.call(t,n)}class Ni{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Vo(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Vo(i)}else Vo(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Vo(e)}}}class kn extends vt{constructor(n,e,i){let r;if(super(),oe(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&ut.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&nr(n.next,o),error:n.error&&nr(n.error,o),complete:n.complete&&nr(n.complete,o)}):r=n}this.destination=new Ni(r)}}function Vo(t){ut.useDeprecatedSynchronousErrorHandling?function Mt(t){ut.useDeprecatedSynchronousErrorHandling&&Ge&&(Ge.errorThrown=!0,Ge.error=t)}(t):qt(t)}function ro(t,n){const{onStoppedNotification:e}=ut;e&&tr.setTimeout(()=>e(t,n))}const Fl={closed:!0,next:kt,error:function Ld(t){throw t},complete:kt},Vd="function"==typeof Symbol&&Symbol.observable||"@@observable";function xr(t){return t}function f_(t){return 0===t.length?xr:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let xe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function f1(t){return t&&t instanceof vt||function h1(t){return t&&oe(t.next)&&oe(t.error)&&oe(t.complete)}(t)&&er(t)}(e)?e:new kn(e,i,r);return on(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=p_(i))((r,o)=>{const s=new kn({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Vd](){return this}pipe(...e){return f_(e)(this)}toPromise(e){return new(e=p_(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function p_(t){var n;return null!==(n=t??ut.Promise)&&void 0!==n?n:Promise}const p1=Re(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let K=(()=>{class t extends xe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new g_(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new p1}next(e){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?mi:(this.currentObservers=null,o.push(e),new ne(()=>{this.currentObservers=null,he(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new xe;return e.source=this,e}}return t.create=(n,e)=>new g_(n,e),t})();class g_ extends K{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:mi}}function m_(t){return oe(t?.lift)}function dt(t){return n=>{if(m_(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function rt(t,n,e,i,r){return new g1(t,n,e,i,r)}class g1 extends vt{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function fe(t,n){return dt((e,i)=>{let r=0;e.subscribe(rt(i,o=>{i.next(t.call(n,o,r++))}))})}function oo(t){return this instanceof oo?(this.v=t,this):new oo(t)}function v1(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,n||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(h){i[h]&&(r[h]=function(f){return new Promise(function(m,b){o.push([h,f,m,b])>1||a(h,f)})})}function a(h,f){try{!function l(h){h.value instanceof oo?Promise.resolve(h.value.v).then(c,u):d(o[0][2],h)}(i[h](f))}catch(m){d(o[0][3],m)}}function c(h){a("next",h)}function u(h){a("throw",h)}function d(h,f){h(f),o.shift(),o.length&&a(o[0][0],o[0][1])}}function y1(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function y_(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=t[o](s)).done,s.value)})}}}const Hd=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function b_(t){return oe(t?.then)}function w_(t){return oe(t[Vd])}function C_(t){return Symbol.asyncIterator&&oe(t?.[Symbol.asyncIterator])}function D_(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 S_=function w1(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function E_(t){return oe(t?.[S_])}function I_(t){return v1(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:r}=yield oo(e.read());if(r)return yield oo(void 0);yield yield oo(i)}}finally{e.releaseLock()}})}function M_(t){return oe(t?.getReader)}function wn(t){if(t instanceof xe)return t;if(null!=t){if(w_(t))return function C1(t){return new xe(n=>{const e=t[Vd]();if(oe(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Hd(t))return function D1(t){return new xe(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}(t);if(b_(t))return function S1(t){return new xe(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,qt)})}(t);if(C_(t))return T_(t);if(E_(t))return function E1(t){return new xe(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(M_(t))return function I1(t){return T_(I_(t))}(t)}throw D_(t)}function T_(t){return new xe(n=>{(function M1(t,n){var e,i,r,o;return function m1(t,n,e,i){return new(e||(e=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=y1(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function ir(t,n,e,i=0,r=!1){const o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function Ht(t,n,e=1/0){return oe(n)?Ht((i,r)=>fe((o,s)=>n(i,o,r,s))(wn(t(i,r))),e):("number"==typeof n&&(e=n),dt((i,r)=>function T1(t,n,e,i,r,o,s,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&n.complete()},f=b=>c<i?m(b):l.push(b),m=b=>{o&&n.next(b),c++;let C=!1;wn(e(b,u++)).subscribe(rt(n,D=>{r?.(D),o?f(D):n.next(D)},()=>{C=!0},void 0,()=>{if(C)try{for(c--;l.length&&c<i;){const D=l.shift();s?ir(n,s,()=>m(D)):m(D)}h()}catch(D){n.error(D)}}))};return t.subscribe(rt(n,f,()=>{d=!0,h()})),()=>{a?.()}}(i,r,t,e)))}function Ll(t=1/0){return Ht(xr,t)}const rr=new xe(t=>t.complete());function x_(t){return t&&oe(t.schedule)}function zd(t){return t[t.length-1]}function A_(t){return oe(zd(t))?t.pop():void 0}function Js(t){return x_(zd(t))?t.pop():void 0}function R_(t,n=0){return dt((e,i)=>{e.subscribe(rt(i,r=>ir(i,t,()=>i.next(r),n),()=>ir(i,t,()=>i.complete(),n),r=>ir(i,t,()=>i.error(r),n)))})}function P_(t,n=0){return dt((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function k_(t,n){if(!t)throw new Error("Iterable cannot be null");return new xe(e=>{ir(e,n,()=>{const i=t[Symbol.asyncIterator]();ir(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function bt(t,n){return n?function F1(t,n){if(null!=t){if(w_(t))return function R1(t,n){return wn(t).pipe(P_(n),R_(n))}(t,n);if(Hd(t))return function k1(t,n){return new xe(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(b_(t))return function P1(t,n){return wn(t).pipe(P_(n),R_(n))}(t,n);if(C_(t))return k_(t,n);if(E_(t))return function O1(t,n){return new xe(e=>{let i;return ir(e,n,()=>{i=t[S_](),ir(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>oe(i?.return)&&i.return()})}(t,n);if(M_(t))return function N1(t,n){return k_(I_(t),n)}(t,n)}throw D_(t)}(t,n):wn(t)}function Vl(...t){const n=Js(t),e=function A1(t,n){return"number"==typeof zd(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?wn(i[0]):Ll(e)(bt(i,n)):rr}function O_(t={}){const{connector:n=(()=>new K),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,l,c=0,u=!1,d=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,u=d=!1},m=()=>{const b=s;f(),b?.unsubscribe()};return dt((b,C)=>{c++,!d&&!u&&h();const D=l=l??n();C.add(()=>{c--,0===c&&!d&&!u&&(a=Ud(m,r))}),D.subscribe(C),!s&&c>0&&(s=new kn({next:I=>D.next(I),error:I=>{d=!0,h(),a=Ud(f,e,I),D.error(I)},complete:()=>{u=!0,h(),a=Ud(f,i),D.complete()}}),wn(b).subscribe(s))})(o)}}function Ud(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new kn({next:()=>{i.unsubscribe(),t()}});return n(...e).subscribe(i)}function He(t){for(let n in t)if(t[n]===He)return n;throw Error("Could not find renamed property on target object.")}function jd(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function ze(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ze).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function $d(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const L1=He({__forward_ref__:He});function qe(t){return t.__forward_ref__=qe,t.toString=function(){return ze(this())},t}function ie(t){return Wd(t)?t():t}function Wd(t){return"function"==typeof t&&t.hasOwnProperty(L1)&&t.__forward_ref__===qe}class P extends Error{constructor(n,e){super(function Bl(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}(n,e)),this.code=n}}function ae(t){return"string"==typeof t?t:null==t?"":String(t)}function Hl(t,n){throw new P(-201,!1)}function Nn(t,n){null==t&&function Le(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function V(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ue(t){return{providers:t.providers||[],imports:t.imports||[]}}function zl(t){return N_(t,Ul)||N_(t,L_)}function N_(t,n){return t.hasOwnProperty(n)?t[n]:null}function F_(t){return t&&(t.hasOwnProperty(Gd)||t.hasOwnProperty(G1))?t[Gd]:null}const Ul=He({\u0275prov:He}),Gd=He({\u0275inj:He}),L_=He({ngInjectableDef:He}),G1=He({ngInjectorDef:He});var re=(()=>((re=re||{})[re.Default=0]="Default",re[re.Host=1]="Host",re[re.Self=2]="Self",re[re.SkipSelf=4]="SkipSelf",re[re.Optional=8]="Optional",re))();let qd;function ei(t){const n=qd;return qd=t,n}function V_(t,n,e){const i=zl(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&re.Optional?null:void 0!==n?n:void Hl(ze(t))}function Ar(t){return{toString:t}.toString()}var _i=(()=>((_i=_i||{})[_i.OnPush=0]="OnPush",_i[_i.Default=1]="Default",_i))(),vi=(()=>{return(t=vi||(vi={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",vi;var t})();const Ye=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Bo={},Oe=[],jl=He({\u0275cmp:He}),Yd=He({\u0275dir:He}),Kd=He({\u0275pipe:He}),B_=He({\u0275mod:He}),sr=He({\u0275fac:He}),ea=He({__NG_ELEMENT_ID__:He});let Y1=0;function be(t){return Ar(()=>{const e=!0===t.standalone,i={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===_i.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||Oe,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||vi.Emulated,id:"c"+Y1++,styles:t.styles||Oe,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.dependencies,s=t.features;return r.inputs=U_(t.inputs,i),r.outputs=U_(t.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(H_).filter(z_):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(an).filter(z_):null,r})}function H_(t){return Ve(t)||sn(t)}function z_(t){return null!==t}function pe(t){return Ar(()=>({type:t.type,bootstrap:t.bootstrap||Oe,declarations:t.declarations||Oe,imports:t.imports||Oe,exports:t.exports||Oe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function U_(t,n){if(null==t)return Bo;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}const z=be;function ht(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 Ve(t){return t[jl]||null}function sn(t){return t[Yd]||null}function an(t){return t[Kd]||null}function Fn(t,n){const e=t[B_]||null;if(!e&&!0===n)throw new Error(`Type ${ze(t)} does not have '\u0275mod' property.`);return e}function Cn(t){return Array.isArray(t)&&"object"==typeof t[1]}function bi(t){return Array.isArray(t)&&!0===t[1]}function Zd(t){return 0!=(8&t.flags)}function ql(t){return 2==(2&t.flags)}function Yl(t){return 1==(1&t.flags)}function wi(t){return null!==t.template}function ex(t){return 0!=(256&t[2])}function uo(t,n){return t.hasOwnProperty(sr)?t[sr]:null}class ix{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Nt(){return W_}function W_(t){return t.type.prototype.ngOnChanges&&(t.setInput=ox),rx}function rx(){const t=q_(this),n=t?.current;if(n){const e=t.previous;if(e===Bo)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function ox(t,n,e,i){const r=q_(t)||function sx(t,n){return t[G_]=n}(t,{previous:Bo,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new ix(l&&l.currentValue,n,s===Bo),t[i]=n}Nt.ngInherit=!0;const G_="__ngSimpleChanges__";function q_(t){return t[G_]||null}function wt(t){for(;Array.isArray(t);)t=t[0];return t}function Kl(t,n){return wt(n[t])}function ii(t,n){return wt(n[t.index])}function ih(t,n){return t.data[n]}function $o(t,n){return t[n]}function Vn(t,n){const e=n[t];return Cn(e)?e:e[0]}function Ql(t){return 64==(64&t[2])}function Rr(t,n){return null==n?null:t[n]}function Y_(t){t[18]=0}function rh(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const se={lFrame:rv(null),bindingsEnabled:!0};function Q_(){return se.bindingsEnabled}function N(){return se.lFrame.lView}function Me(){return se.lFrame.tView}function T(t){return se.lFrame.contextLView=t,t[8]}function x(t){return se.lFrame.contextLView=null,t}function Tt(){let t=X_();for(;null!==t&&64===t.type;)t=t.parent;return t}function X_(){return se.lFrame.currentTNode}function Fi(t,n){const e=se.lFrame;e.currentTNode=t,e.isParent=n}function oh(){return se.lFrame.isParent}function sh(){se.lFrame.isParent=!1}function ln(){const t=se.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Wo(){return se.lFrame.bindingIndex++}function lr(t){const n=se.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function wx(t,n){const e=se.lFrame;e.bindingIndex=e.bindingRootIndex=t,ah(n)}function ah(t){se.lFrame.currentDirectiveIndex=t}function tv(){return se.lFrame.currentQueryIndex}function ch(t){se.lFrame.currentQueryIndex=t}function Dx(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function nv(t,n,e){if(e&re.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&re.Host||(r=Dx(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;n=r,t=o}const i=se.lFrame=iv();return i.currentTNode=n,i.lView=t,!0}function uh(t){const n=iv(),e=t[1];se.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function iv(){const t=se.lFrame,n=null===t?null:t.child;return null===n?rv(t):n}function rv(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function ov(){const t=se.lFrame;return se.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const sv=ov;function dh(){const t=ov();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 cn(){return se.lFrame.selectedIndex}function Pr(t){se.lFrame.selectedIndex=t}function pt(){const t=se.lFrame;return ih(t.tView,t.selectedIndex)}function Xl(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const o=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(t.contentHooks||(t.contentHooks=[])).push(-e,s),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=u&&(t.destroyHooks||(t.destroyHooks=[])).push(e,u)}}function Zl(t,n,e){av(t,n,3,e)}function Jl(t,n,e,i){(3&t[2])===e&&av(t,n,e,i)}function hh(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function av(t,n,e,i){const o=i??-1,s=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<s;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<o||-1==o)&&(Px(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function Px(t,n,e,i){const r=e[i]<0,o=e[i+1],a=t[r?-e[i]:e[i]];if(r){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class sa{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function ec(t,n,e){let i=0;for(;i<e.length;){const r=e[i];if("number"==typeof r){if(0!==r)break;i++;const o=e[i++],s=e[i++],a=e[i++];t.setAttribute(n,s,a,o)}else{const o=r,s=e[++i];cv(o)?t.setProperty(n,o,s):t.setAttribute(n,o,s),i++}}return i}function lv(t){return 3===t||4===t||6===t}function cv(t){return 64===t.charCodeAt(0)}function tc(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?e=r:0===e||uv(t,e,r,null,-1===e||2===e?n[++i]:null)}}return t}function uv(t,n,e,i,r){let o=0,s=t.length;if(-1===n)s=-1;else for(;o<t.length;){const a=t[o++];if("number"==typeof a){if(a===n){s=-1;break}if(a>n){s=o-1;break}}}for(;o<t.length;){const a=t[o];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(t[o+1]=r));if(i===t[o+1])return void(t[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==s&&(t.splice(s,0,n),o=s+1),t.splice(o++,0,e),null!==i&&t.splice(o++,0,i),null!==r&&t.splice(o++,0,r)}function dv(t){return-1!==t}function Go(t){return 32767&t}function qo(t,n){let e=function Lx(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let ph=!0;function nc(t){const n=ph;return ph=t,n}let Vx=0;const Li={};function la(t,n){const e=mh(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,gh(i.data,t),gh(n,null),gh(i.blueprint,null));const r=ic(t,n),o=t.injectorIndex;if(dv(r)){const s=Go(r),a=qo(r,n),l=a[1].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function gh(t,n){t.push(0,0,0,0,0,0,0,0,n)}function mh(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function ic(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=bv(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function rc(t,n,e){!function Bx(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ea)&&(i=e[ea]),null==i&&(i=e[ea]=Vx++);const r=255&i;n.data[t+(r>>5)]|=1<<r}(t,n,e)}function pv(t,n,e){if(e&re.Optional||void 0!==t)return t;Hl()}function gv(t,n,e,i){if(e&re.Optional&&void 0===i&&(i=null),0==(e&(re.Self|re.Host))){const r=t[9],o=ei(void 0);try{return r?r.get(n,i,e&re.Optional):V_(n,i,e&re.Optional)}finally{ei(o)}}return pv(i,0,e)}function mv(t,n,e,i=re.Default,r){if(null!==t){if(1024&n[2]){const s=function $x(t,n,e,i,r){let o=t,s=n;for(;null!==o&&null!==s&&1024&s[2]&&!(256&s[2]);){const a=_v(o,s,e,i|re.Self,Li);if(a!==Li)return a;let l=o.parent;if(!l){const c=s[21];if(c){const u=c.get(e,Li,i);if(u!==Li)return u}l=bv(s),s=s[15]}o=l}return r}(t,n,e,i,Li);if(s!==Li)return s}const o=_v(t,n,e,i,Li);if(o!==Li)return o}return gv(n,e,i,r)}function _v(t,n,e,i,r){const o=function Ux(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(ea)?t[ea]:void 0;return"number"==typeof n?n>=0?255&n:jx:n}(e);if("function"==typeof o){if(!nv(n,t,i))return i&re.Host?pv(r,0,i):gv(n,e,i,r);try{const s=o(i);if(null!=s||i&re.Optional)return s;Hl()}finally{sv()}}else if("number"==typeof o){let s=null,a=mh(t,n),l=-1,c=i&re.Host?n[16][6]:null;for((-1===a||i&re.SkipSelf)&&(l=-1===a?ic(t,n):n[a+8],-1!==l&&yv(i,!1)?(s=n[1],a=Go(l),n=qo(l,n)):a=-1);-1!==a;){const u=n[1];if(vv(o,a,u.data)){const d=zx(a,n,e,s,i,c);if(d!==Li)return d}l=n[a+8],-1!==l&&yv(i,n[1].data[a+8]===c)&&vv(o,a,n)?(s=u,a=Go(l),n=qo(l,n)):a=-1}}return r}function zx(t,n,e,i,r,o){const s=n[1],a=s.data[t+8],u=oc(a,s,e,null==i?ql(a)&&ph:i!=s&&0!=(3&a.type),r&re.Host&&o===a);return null!==u?ca(n,s,u,a):Li}function oc(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,h=r?a+u:t.directiveEnd;for(let f=i?a:a+u;f<h;f++){const m=s[f];if(f<l&&e===m||f>=l&&m.type===e)return f}if(r){const f=s[l];if(f&&wi(f)&&f.type===e)return l}return null}function ca(t,n,e,i){let r=t[e];const o=n.data;if(function kx(t){return t instanceof sa}(r)){const s=r;s.resolving&&function V1(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new P(-200,`Circular dependency in DI detected for ${t}${e}`)}(function ke(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ae(t)}(o[e]));const a=nc(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ei(s.injectImpl):null;nv(t,i,re.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function Rx(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=W_(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&ei(l),nc(a),s.resolving=!1,sv()}}return r}function vv(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function yv(t,n){return!(t&re.Self||t&re.Host&&n)}class Yo{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return mv(this._tNode,this._lView,n,i,e)}}function jx(){return new Yo(Tt(),N())}function xt(t){return Ar(()=>{const n=t.prototype.constructor,e=n[sr]||_h(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[sr]||_h(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function _h(t){return Wd(t)?()=>{const n=_h(ie(t));return n&&n()}:uo(t)}function bv(t){const n=t[1],e=n.type;return 2===e?n.declTNode:1===e?t[6]:null}const Xo="__parameters__";function Jo(t,n,e){return Ar(()=>{const i=function vh(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Xo)?l[Xo]:Object.defineProperty(l,Xo,{value:[]})[Xo];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class U{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=V({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Bn(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),Bn(i,n)):n!==t&&n.push(i)}return n}function cr(t,n){t.forEach(e=>Array.isArray(e)?cr(e,n):n(e))}function Cv(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function sc(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function ha(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function Hn(t,n,e){let i=es(t,n);return i>=0?t[1|i]=e:(i=~i,function Yx(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function bh(t,n){const e=es(t,n);if(e>=0)return t[1|e]}function es(t,n){return function Ev(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<<e];if(n===s)return o<<e;s>n?r=o:i=o+1}return~(r<<e)}(t,n,1)}const fa={},Ch="__NG_DI_FLAG__",lc="ngTempTokenPath",nA=/\n/gm,Iv="__source";let pa;function ts(t){const n=pa;return pa=t,n}function rA(t,n=re.Default){if(void 0===pa)throw new P(-203,!1);return null===pa?V_(t,void 0,n):pa.get(t,n&re.Optional?null:void 0,n)}function R(t,n=re.Default){return(function q1(){return qd}()||rA)(ie(t),n)}function zt(t,n=re.Default){return"number"!=typeof n&&(n=0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)),R(t,n)}function Dh(t){const n=[];for(let e=0;e<t.length;e++){const i=ie(t[e]);if(Array.isArray(i)){if(0===i.length)throw new P(900,!1);let r,o=re.Default;for(let s=0;s<i.length;s++){const a=i[s],l=oA(a);"number"==typeof l?-1===l?r=a.token:o|=l:r=a}n.push(R(r,o))}else n.push(R(i))}return n}function ga(t,n){return t[Ch]=n,t.prototype[Ch]=n,t}function oA(t){return t[Ch]}const ns=ga(Jo("Optional"),8),is=ga(Jo("SkipSelf"),4);let Eh,dc,hc;function os(t){return function Ih(){if(void 0===dc&&(dc=null,Ye.trustedTypes))try{dc=Ye.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return dc}()?.createHTML(t)||t}function Fv(t){return function Mh(){if(void 0===hc&&(hc=null,Ye.trustedTypes))try{hc=Ye.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return hc}()?.createHTML(t)||t}class ho{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class bA extends ho{getTypeName(){return"HTML"}}class wA extends ho{getTypeName(){return"Style"}}class CA extends ho{getTypeName(){return"Script"}}class DA extends ho{getTypeName(){return"URL"}}class SA extends ho{getTypeName(){return"ResourceURL"}}function zn(t){return t instanceof ho?t.changingThisBreaksApplicationSecurity:t}function Vi(t,n){const e=function EA(t){return t instanceof ho&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}class RA{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(os(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class PA{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=os(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=os(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let r=e.length-1;0<r;r--){const s=e.item(r).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&n.removeAttribute(s)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const OA=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function fc(t){return(t=String(t)).match(OA)?t:"unsafe:"+t}function ur(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function va(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const Hv=ur("area,br,col,hr,img,wbr"),zv=ur("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Uv=ur("rp,rt"),Th=va(Hv,va(zv,ur("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")),va(Uv,ur("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")),va(Uv,zv)),xh=ur("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),jv=va(xh,ur("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"),ur("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")),NA=ur("script,style,template");class FA{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Th.hasOwnProperty(e))return this.sanitizedSomething=!0,!NA.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r<i.length;r++){const o=i.item(r),s=o.name,a=s.toLowerCase();if(!jv.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;xh[a]&&(l=fc(l)),this.buf.push(" ",s,'="',$v(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();Th.hasOwnProperty(e)&&!Hv.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push($v(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const LA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,VA=/([^\#-~ |!])/g;function $v(t){return t.replace(/&/g,"&").replace(LA,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(VA,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let pc;function Wv(t,n){let e=null;try{pc=pc||function Bv(t){const n=new PA(t);return function kA(){try{return!!(new window.DOMParser).parseFromString(os(""),"text/html")}catch{return!1}}()?new RA(n):n}(t);let i=n?String(n):"";e=pc.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=pc.getInertBodyElement(i)}while(i!==o);return os((new FA).sanitizeChildren(Ah(e)||e))}finally{if(e){const i=Ah(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Ah(t){return"content"in t&&function BA(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Qe=(()=>((Qe=Qe||{})[Qe.NONE=0]="NONE",Qe[Qe.HTML=1]="HTML",Qe[Qe.STYLE=2]="STYLE",Qe[Qe.SCRIPT=3]="SCRIPT",Qe[Qe.URL=4]="URL",Qe[Qe.RESOURCE_URL=5]="RESOURCE_URL",Qe))();function Un(t){const n=ya();return n?Fv(n.sanitize(Qe.HTML,t)||""):Vi(t,"HTML")?Fv(zn(t)):Wv(function Nv(){return void 0!==Eh?Eh:typeof document<"u"?document:void 0}(),ae(t))}function Ci(t){const n=ya();return n?n.sanitize(Qe.URL,t)||"":Vi(t,"URL")?zn(t):fc(ae(t))}function ya(){const t=N();return t&&t[12]}const qv=new U("ENVIRONMENT_INITIALIZER"),Yv=new U("INJECTOR",-1),Kv=new U("INJECTOR_DEF_TYPES");class Qv{get(n,e=fa){if(e===fa){const i=new Error(`NullInjectorError: No provider for ${ze(n)}!`);throw i.name="NullInjectorError",i}return e}}function GA(...t){return{\u0275providers:Xv(0,t)}}function Xv(t,...n){const e=[],i=new Set;let r;return cr(n,o=>{const s=o;Rh(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&Zv(r,e),e}function Zv(t,n){for(let e=0;e<t.length;e++){const{providers:r}=t[e];cr(r,o=>{n.push(o)})}}function Rh(t,n,e,i){if(!(t=ie(t)))return!1;let r=null,o=F_(t);const s=!o&&Ve(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=F_(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Rh(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{cr(o.imports,u=>{Rh(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&Zv(c,n)}if(!a){const c=uo(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:Oe},{provide:Kv,useValue:r,multi:!0},{provide:qv,useValue:()=>R(r),multi:!0})}const l=o.providers;null==l||a||cr(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}const qA=He({provide:String,useValue:He});function Ph(t){return null!==t&&"object"==typeof t&&qA in t}function fo(t){return"function"==typeof t}const kh=new U("Set Injector scope."),gc={},KA={};let Oh;function mc(){return void 0===Oh&&(Oh=new Qv),Oh}class po{}class ty extends po{constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Fh(n,s=>this.processProvider(s)),this.records.set(Yv,ss(void 0,this)),r.has("environment")&&this.records.set(po,ss(void 0,this));const o=this.records.get(kh);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Kv.multi,Oe,re.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=ts(this),i=ei(void 0);try{return n()}finally{ts(e),ei(i)}}get(n,e=fa,i=re.Default){this.assertNotDestroyed();const r=ts(this),o=ei(void 0);try{if(!(i&re.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function eR(t){return"function"==typeof t||"object"==typeof t&&t instanceof U}(n)&&zl(n);a=l&&this.injectableDefInScope(l)?ss(Nh(n),gc):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&re.Self?mc():this.parent).get(n,e=i&re.Optional&&e===fa?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[lc]=s[lc]||[]).unshift(ze(n)),r)throw s;return function sA(t,n,e,i){const r=t[lc];throw n[Iv]&&r.unshift(n[Iv]),t.message=function aA(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=ze(n);if(Array.isArray(n))r=n.map(ze).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):ze(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(nA,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[lc]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{ei(o),ts(r)}}resolveInjectorInitializers(){const n=ts(this),e=ei(void 0);try{const i=this.get(qv.multi,Oe,re.Self);for(const r of i)r()}finally{ts(n),ei(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(ze(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new P(205,!1)}processProvider(n){let e=fo(n=ie(n))?n:ie(n&&n.provide);const i=function XA(t){return Ph(t)?ss(void 0,t.useValue):ss(ny(t),gc)}(n);if(fo(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=ss(void 0,gc,!0),r.factory=()=>Dh(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===gc&&(e.value=KA,e.value=e.factory()),"object"==typeof e.value&&e.value&&function JA(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=ie(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Nh(t){const n=zl(t),e=null!==n?n.factory:uo(t);if(null!==e)return e;if(t instanceof U)throw new P(204,!1);if(t instanceof Function)return function QA(t){const n=t.length;if(n>0)throw ha(n,"?"),new P(204,!1);const e=function $1(t){const n=t&&(t[Ul]||t[L_]);if(n){const e=function W1(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new P(204,!1)}function ny(t,n,e){let i;if(fo(t)){const r=ie(t);return uo(r)||Nh(r)}if(Ph(t))i=()=>ie(t.useValue);else if(function ey(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Dh(t.deps||[]));else if(function Jv(t){return!(!t||!t.useExisting)}(t))i=()=>R(ie(t.useExisting));else{const r=ie(t&&(t.useClass||t.provide));if(!function ZA(t){return!!t.deps}(t))return uo(r)||Nh(r);i=()=>new r(...Dh(t.deps))}return i}function ss(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function tR(t){return!!t.\u0275providers}function Fh(t,n){for(const e of t)Array.isArray(e)?Fh(e,n):tR(e)?Fh(e.\u0275providers,n):n(e)}class iy{}class rR{resolveComponentFactory(n){throw function iR(t){const n=Error(`No component factory found for ${ze(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let dr=(()=>{class t{}return t.NULL=new rR,t})();function oR(){return as(Tt(),N())}function as(t,n){return new Te(ii(t,n))}let Te=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=oR,t})();function sR(t){return t instanceof Te?t.nativeElement:t}class ba{}let un=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function aR(){const t=N(),e=Vn(Tt().index,t);return(Cn(e)?e:t)[11]}(),t})(),lR=(()=>{class t{}return t.\u0275prov=V({token:t,providedIn:"root",factory:()=>null}),t})();class wa{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const cR=new wa("14.2.5"),Lh={};function Uh(t){return t.ngOriginalError}class ls{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Uh(n);for(;e&&Uh(e);)e=Uh(e);return e||null}}const jh=new Map;let wR=0;const Wh="__ngContext__";function Qt(t,n){Cn(n)?(t[Wh]=n[20],function DR(t){jh.set(t[20],t)}(n)):t[Wh]=n}function my(t){return t.ownerDocument.defaultView}function Or(t){return t.ownerDocument}function hr(t){return t instanceof Function?t():t}var Dn=(()=>((Dn=Dn||{})[Dn.Important=1]="Important",Dn[Dn.DashCase=2]="DashCase",Dn))();function qh(t,n){return undefined(t,n)}function Da(t){const n=t[3];return bi(n)?n[3]:n}function Yh(t){return yy(t[13])}function Kh(t){return yy(t[4])}function yy(t){for(;null!==t&&!bi(t);)t=t[4];return t}function us(t,n,e,i,r){if(null!=i){let o,s=!1;bi(i)?o=i:Cn(i)&&(s=!0,i=i[0]);const a=wt(i);0===t&&null!==e?null==r?Ey(n,e,a):go(n,e,a,r||null,!0):1===t&&null!==e?go(n,e,a,r||null,!0):2===t?function Py(t,n,e){const i=_c(t,n);i&&function YR(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function XR(t,n,e,i,r){const o=e[7];o!==wt(e)&&us(n,t,i,o,r);for(let a=10;a<e.length;a++){const l=e[a];Sa(l[1],l,t,n,i,o)}}(n,t,o,e,r)}}function Xh(t,n,e){return t.createElement(n,e)}function wy(t,n){const e=t[9],i=e.indexOf(n),r=n[3];512&n[2]&&(n[2]&=-513,rh(r,-1)),e.splice(i,1)}function Zh(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const r=i[17];null!==r&&r!==t&&wy(r,i),n>0&&(t[e-1][4]=i[4]);const o=sc(t,10+n);!function HR(t,n){Sa(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function Cy(t,n){if(!(128&n[2])){const e=n[11];e.destroyNode&&Sa(t,n,e,3,null,null),function jR(t){let n=t[13];if(!n)return Jh(t[1],t);for(;n;){let e=null;if(Cn(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Cn(n)&&Jh(n[1],n),n=n[3];null===n&&(n=t),Cn(n)&&Jh(n[1],n),e=n&&n[4]}n=e}}(n)}}function Jh(t,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function qR(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const r=n[e[i]];if(!(r instanceof sa)){const o=e[i+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=r[o[s]],l=o[s+1];try{l.call(a)}finally{}}else try{o.call(r)}finally{}}}}(t,n),function GR(t,n){const e=t.cleanup,i=n[7];let r=-1;if(null!==e)for(let o=0;o<e.length-1;o+=2)if("string"==typeof e[o]){const s=e[o+1],a="function"==typeof s?s(n):wt(n[s]),l=i[r=e[o+2]],c=e[o+3];"boolean"==typeof c?a.removeEventListener(e[o],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o<i.length;o++)(0,i[o])();n[7]=null}}(t,n),1===n[1].type&&n[11].destroy();const e=n[17];if(null!==e&&bi(n[3])){e!==n[3]&&wy(e,n);const i=n[19];null!==i&&i.detachView(t)}!function SR(t){jh.delete(t[20])}(n)}}function Dy(t,n,e){return function Sy(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const r=t.data[i.directiveStart].encapsulation;if(r===vi.None||r===vi.Emulated)return null}return ii(i,e)}(t,n.parent,e)}function go(t,n,e,i,r){t.insertBefore(n,e,i,r)}function Ey(t,n,e){t.appendChild(n,e)}function Iy(t,n,e,i,r){null!==i?go(t,n,e,i,r):Ey(t,n,e)}function _c(t,n){return t.parentNode(n)}function My(t,n,e){return xy(t,n,e)}let xy=function Ty(t,n,e){return 40&t.type?ii(t,e):null};function vc(t,n,e,i){const r=Dy(t,i,n),o=n[11],a=My(i.parent||n[6],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)Iy(o,r,e[l],a,!1);else Iy(o,r,e,a,!1)}function yc(t,n){if(null!==n){const e=n.type;if(3&e)return ii(n,t);if(4&e)return tf(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return yc(t,i);{const r=t[n.index];return bi(r)?tf(-1,r):wt(r)}}if(32&e)return qh(n,t)()||wt(t[n.index]);{const i=Ry(t,n);return null!==i?Array.isArray(i)?i[0]:yc(Da(t[16]),i):yc(t,n.next)}}return null}function Ry(t,n){return null!==n?t[16][6].projection[n.projection]:null}function tf(t,n){const e=10+t+1;if(e<n.length){const i=n[e],r=i[1].firstChild;if(null!==r)return yc(i,r)}return n[7]}function nf(t,n,e,i,r,o,s){for(;null!=e;){const a=i[e.index],l=e.type;if(s&&0===n&&(a&&Qt(wt(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)nf(t,n,e.child,i,r,o,!1),us(n,t,r,a,o);else if(32&l){const c=qh(e,i);let u;for(;u=c();)us(n,t,r,u,o);us(n,t,r,a,o)}else 16&l?ky(t,n,i,e,r,o):us(n,t,r,a,o);e=s?e.projectionNext:e.next}}function Sa(t,n,e,i,r,o){nf(e,i,t.firstChild,n,r,o,!1)}function ky(t,n,e,i,r,o){const s=e[16],l=s[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)us(n,t,r,l[c],o);else nf(t,n,l,s[3],r,o,!0)}function Oy(t,n,e){t.setAttribute(n,"style",e)}function rf(t,n,e){""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function Ny(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const Fy="ng-template";function JR(t,n,e){let i=0;for(;i<t.length;){let r=t[i++];if(e&&"class"===r){if(r=t[i],-1!==Ny(r.toLowerCase(),n,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===n)return!0;return!1}}return!1}function Ly(t){return 4===t.type&&t.value!==Fy}function eP(t,n,e){return n===(4!==t.type||e?t.value:Fy)}function tP(t,n,e){let i=4;const r=t.attrs||[],o=function rP(t){for(let n=0;n<t.length;n++)if(lv(t[n]))return n;return t.length}(r);let s=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!eP(t,l,e)||""===l&&1===n.length){if(Di(i))return!1;s=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!JR(t.attrs,c,e)){if(Di(i))return!1;s=!0}continue}const d=nP(8&i?"class":l,r,Ly(t),e);if(-1===d){if(Di(i))return!1;s=!0;continue}if(""!==c){let h;h=d>o?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Ny(f,c,0)||2&i&&c!==h){if(Di(i))return!1;s=!0}}}}else{if(!s&&!Di(i)&&!Di(l))return!1;if(s&&Di(l))continue;s=!1,i=l|1&i}}return Di(i)||s}function Di(t){return 0==(1&t)}function nP(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r<n.length;){const s=n[r];if(s===t)return r;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=n[++r];for(;"string"==typeof a;)a=n[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=o?1:2}return-1}return function oP(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function Vy(t,n,e=!1){for(let i=0;i<n.length;i++)if(tP(t,n[i],e))return!0;return!1}function sP(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function By(t,n){return t?":not("+n.trim()+")":n}function aP(t){let n=t[0],e=1,i=2,r="",o=!1;for(;e<t.length;){let s=t[e];if("string"==typeof s)if(2&i){const a=t[++e];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Di(s)&&(n+=By(o,r),r=""),i=s,o=o||!Di(i);e++}return""!==r&&(n+=By(o,r)),n}const le={};function p(t){Hy(Me(),N(),cn()+t,!1)}function Hy(t,n,e,i){if(!i)if(3==(3&n[2])){const o=t.preOrderCheckHooks;null!==o&&Zl(n,o,e)}else{const o=t.preOrderHooks;null!==o&&Jl(n,o,0,e)}Pr(e)}function $y(t,n=null,e=null,i){const r=Wy(t,n,e,i);return r.resolveInjectorInitializers(),r}function Wy(t,n=null,e=null,i,r=new Set){const o=[e||Oe,GA(t)];return i=i||("object"==typeof t?void 0:ze(t)),new ty(o,n||mc(),i||null,r)}let Ut=(()=>{class t{static create(e,i){if(Array.isArray(e))return $y({name:""},i,e,"");{const r=e.name??"";return $y({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=fa,t.NULL=new Qv,t.\u0275prov=V({token:t,providedIn:"any",factory:()=>R(Yv)}),t.__NG_ELEMENT_ID__=-1,t})();function v(t,n=re.Default){const e=N();return null===e?R(t,n):mv(Tt(),e,ie(t),n)}function wc(t,n){return t<<17|n<<2}function Si(t){return t>>17&32767}function uf(t){return 2|t}function fr(t){return(131068&t)>>2}function df(t,n){return-131069&t|n<<2}function hf(t){return 1|t}function cb(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],o=e[i+1];if(-1!==o){const s=t.data[o];ch(r),s.contentQueries(2,n[o],o)}}}function Sc(t,n,e,i,r,o,s,a,l,c,u){const d=n.blueprint.slice();return d[0]=r,d[2]=76|i,(null!==u||t&&1024&t[2])&&(d[2]|=1024),Y_(d),d[3]=d[15]=t,d[8]=e,d[10]=s||t&&t[10],d[11]=a||t&&t[11],d[12]=l||t&&t[12]||null,d[9]=c||t&&t[9]||null,d[6]=o,d[20]=function CR(){return wR++}(),d[21]=u,d[16]=2==n.type?t[16]:d,d}function hs(t,n,e,i,r){let o=t.data[n];if(null===o)o=function bf(t,n,e,i,r){const o=X_(),s=oh(),l=t.data[n]=function jP(t,n,e,i,r,o){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,e,n,i,r);return null===t.firstChild&&(t.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(t,n,e,i,r),function bx(){return se.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=e,o.value=i,o.attrs=r;const s=function oa(){const t=se.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Fi(o,!0),o}function fs(t,n,e,i){if(0===e)return-1;const r=n.length;for(let o=0;o<e;o++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function wf(t,n,e){uh(n);try{const i=t.viewQuery;null!==i&&xf(1,i,e);const r=t.template;null!==r&&ub(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&cb(t,n),t.staticViewQueries&&xf(2,t.viewQuery,e);const o=t.components;null!==o&&function HP(t,n){for(let e=0;e<n.length;e++)ok(t,n[e])}(n,o)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,dh()}}function Ec(t,n,e,i){const r=n[2];if(128!=(128&r)){uh(n);try{Y_(n),function J_(t){return se.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&ub(t,n,e,2,i);const s=3==(3&r);if(s){const c=t.preOrderCheckHooks;null!==c&&Zl(n,c,null)}else{const c=t.preOrderHooks;null!==c&&Jl(n,c,0,null),hh(n,0)}if(function ik(t){for(let n=Yh(t);null!==n;n=Kh(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const r=e[i],o=r[3];0==(512&r[2])&&rh(o,1),r[2]|=512}}}(n),function nk(t){for(let n=Yh(t);null!==n;n=Kh(n))for(let e=10;e<n.length;e++){const i=n[e],r=i[1];Ql(i)&&Ec(r,i,r.template,i[8])}}(n),null!==t.contentQueries&&cb(t,n),s){const c=t.contentCheckHooks;null!==c&&Zl(n,c)}else{const c=t.contentHooks;null!==c&&Jl(n,c,1),hh(n,1)}!function VP(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)Pr(~r);else{const o=r,s=e[++i],a=e[++i];wx(s,o),a(2,n[o])}}}finally{Pr(-1)}}(t,n);const a=t.components;null!==a&&function BP(t,n){for(let e=0;e<n.length;e++)rk(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&xf(2,l,i),s){const c=t.viewCheckHooks;null!==c&&Zl(n,c)}else{const c=t.viewHooks;null!==c&&Jl(n,c,2),hh(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-41,512&n[2]&&(n[2]&=-513,rh(n[3],-1))}finally{dh()}}}function ub(t,n,e,i,r){const o=cn(),s=2&i;try{Pr(-1),s&&n.length>22&&Hy(t,n,22,!1),e(i,r)}finally{Pr(o)}}function db(t,n,e){if(Zd(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o<r;o++){const s=t.data[o];s.contentQueries&&s.contentQueries(1,e[o],o)}}}function Cf(t,n,e){!Q_()||(function YP(t,n,e,i){const r=e.directiveStart,o=e.directiveEnd;t.firstCreatePass||la(e,n),Qt(i,n);const s=e.initialInputs;for(let a=r;a<o;a++){const l=t.data[a],c=wi(l);c&&JP(n,e,l);const u=ca(n,t,a,e);Qt(u,n),null!==s&&ek(0,a-r,u,l,0,s),c&&(Vn(e.index,n)[8]=u)}}(t,n,e,ii(e,n)),128==(128&e.flags)&&function KP(t,n,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,s=function Cx(){return se.lFrame.currentDirectiveIndex}();try{Pr(o);for(let a=i;a<r;a++){const l=t.data[a],c=n[a];ah(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&vb(l,c)}}finally{Pr(-1),ah(s)}}(t,n,e))}function Df(t,n,e=ii){const i=n.localNames;if(null!==i){let r=n.index+1;for(let o=0;o<i.length;o+=2){const s=i[o+1],a=-1===s?e(n,t):t[s];t[r++]=a}}}function hb(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=Sf(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function Sf(t,n,e,i,r,o,s,a,l,c){const u=22+i,d=u+r,h=function zP(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:le);return e}(u,d),f="function"==typeof c?c():c;return h[1]={type:t,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:n,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function fb(t,n,e,i){const r=Db(n);null===e?r.push(i):(r.push(e),t.firstCreatePass&&Sb(t).push(i,r.length-1))}function pb(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(n,r):e[i]=[n,r]}return e}function gb(t,n){const i=n.directiveEnd,r=t.data,o=n.attrs,s=[];let a=null,l=null;for(let c=n.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===o||Ly(n)?null:tk(d,o);s.push(h),a=pb(d,c,a),l=pb(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=s,n.inputs=a,n.outputs=l}function jn(t,n,e,i,r,o,s,a){const l=ii(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(Af(t,e,u,i,r),ql(n)&&mb(e,n.index)):3&n.type&&(i=function $P(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(l,i,r))}function mb(t,n){const e=Vn(n,t);16&e[2]||(e[2]|=32)}function Ef(t,n,e,i){let r=!1;if(Q_()){const o=function QP(t,n,e){const i=t.directiveRegistry;let r=null;if(i)for(let o=0;o<i.length;o++){const s=i[o];Vy(e,s.selectors,!1)&&(r||(r=[]),rc(la(e,n),t,s.type),wi(s)?(yb(t,e),r.unshift(s)):r.push(s))}return r}(t,n,e),s=null===i?null:{"":-1};if(null!==o){r=!0,bb(e,t.data.length,o.length);for(let u=0;u<o.length;u++){const d=o[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=fs(t,n,o.length,null);for(let u=0;u<o.length;u++){const d=o[u];e.mergedAttrs=tc(e.mergedAttrs,d.hostAttrs),wb(t,e,n,c,d),ZP(c,d,s),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),c++}gb(t,e)}s&&function XP(t,n,e){if(n){const i=t.localNames=[];for(let r=0;r<n.length;r+=2){const o=e[n[r+1]];if(null==o)throw new P(-301,!1);i.push(n[r],o)}}}(e,i,s)}return e.mergedAttrs=tc(e.mergedAttrs,e.attrs),r}function _b(t,n,e,i,r,o){const s=o.hostBindings;if(s){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function qP(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function vb(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function yb(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function ZP(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;wi(n)&&(e[""]=t)}}function bb(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function wb(t,n,e,i,r){t.data[i]=r;const o=r.factory||(r.factory=uo(r.type)),s=new sa(o,wi(r),v);t.blueprint[i]=s,e[i]=s,_b(t,n,0,i,fs(t,e,r.hostVars,le),r)}function JP(t,n,e){const i=ii(n,t),r=hb(e),o=t[10],s=Ic(t,Sc(t,r,null,e.onPush?32:16,i,n,o,o.createRenderer(i,e),null,null,null));t[n.index]=s}function Bi(t,n,e,i,r,o){const s=ii(t,n);!function If(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?ae(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[11],s,o,t.value,e,i,r)}function ek(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l<s.length;){const c=s[l++],u=s[l++],d=s[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function tk(t,n){let e=null,i=0;for(;i<n.length;){const r=n[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,t[r],n[i+1])),i+=2}else i+=2;else i+=4}return e}function Cb(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function rk(t,n){const e=Vn(n,t);if(Ql(e)){const i=e[1];48&e[2]?Ec(i,e,i.template,e[8]):e[5]>0&&Mf(e)}}function Mf(t){for(let i=Yh(t);null!==i;i=Kh(i))for(let r=10;r<i.length;r++){const o=i[r];if(Ql(o))if(512&o[2]){const s=o[1];Ec(s,o,s.template,o[8])}else o[5]>0&&Mf(o)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=Vn(e[i],t);Ql(r)&&r[5]>0&&Mf(r)}}function ok(t,n){const e=Vn(n,t),i=e[1];(function sk(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),wf(i,e,e[8])}function Ic(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function Tf(t){for(;t;){t[2]|=32;const n=Da(t);if(ex(t)&&!n)return t;t=n}return null}function Mc(t,n,e,i=!0){const r=n[10];r.begin&&r.begin();try{Ec(t,n,t.template,e)}catch(s){throw i&&Ib(n,s),s}finally{r.end&&r.end()}}function xf(t,n,e){ch(0),n(t,e)}function Db(t){return t[7]||(t[7]=[])}function Sb(t){return t.cleanup||(t.cleanup=[])}function Ib(t,n){const e=t[9],i=e?e.get(ls,null):null;i&&i.handleError(n)}function Af(t,n,e,i,r){for(let o=0;o<e.length;){const s=e[o++],a=e[o++],l=n[s],c=t.data[s];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function pr(t,n,e){const i=Kl(n,t);!function by(t,n,e){t.setValue(n,e)}(t[11],i,e)}function Tc(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(null!==n)for(let s=0;s<n.length;s++){const a=n[s];"number"==typeof a?o=a:1==o?r=$d(r,a):2==o&&(i=$d(i,a+": "+n[++s]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}function xc(t,n,e,i,r=!1){for(;null!==e;){const o=n[e.index];if(null!==o&&i.push(wt(o)),bi(o))for(let a=10;a<o.length;a++){const l=o[a],c=l[1].firstChild;null!==c&&xc(l[1],l,c,i)}const s=e.type;if(8&s)xc(t,n,e.child,i);else if(32&s){const a=qh(e,n);let l;for(;l=a();)i.push(l)}else if(16&s){const a=Ry(n,e);if(Array.isArray(a))i.push(...a);else{const l=Da(n[16]);xc(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class Ea{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return xc(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(bi(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Zh(n,i),sc(e,i))}this._attachedToViewContainer=!1}Cy(this._lView[1],this._lView)}onDestroy(n){fb(this._lView[1],this._lView,null,n)}markForCheck(){Tf(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Mc(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new P(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function UR(t,n){Sa(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new P(902,!1);this._appRef=n}}class ak extends Ea{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Mc(n[1],n,n[8],!1)}checkNoChanges(){}get context(){return null}}class Rf extends dr{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Ve(n);return new Ia(e,this.ngModule)}}function Mb(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class ck{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){const r=this.injector.get(n,Lh,i);return r!==Lh||e===Lh?r:this.parentInjector.get(n,e,i)}}class Ia extends iy{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function lP(t){return t.map(aP).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Mb(this.componentDef.inputs)}get outputs(){return Mb(this.componentDef.outputs)}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof po?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new ck(n,o):n,a=s.get(ba,null);if(null===a)throw new P(407,!1);const l=s.get(lR,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function UP(t,n,e){return t.selectRootElement(n,e===vi.ShadowDom)}(c,i,this.componentDef.encapsulation):Xh(a.createRenderer(null,this.componentDef),u,function lk(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(u)),h=this.componentDef.onPush?288:272,f=Sf(0,null,null,1,0,null,null,null,null,null),m=Sc(null,f,null,h,null,null,a,c,l,s,null);let b,C;uh(m);try{const D=function hk(t,n,e,i,r,o){const s=e[1];e[22]=t;const l=hs(s,22,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(Tc(l,c,!0),null!==t&&(ec(r,t,c),null!==l.classes&&rf(r,t,l.classes),null!==l.styles&&Oy(r,t,l.styles)));const u=i.createRenderer(t,n),d=Sc(e,hb(n),null,n.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(rc(la(l,e),s,n.type),yb(s,l),bb(l,e.length,1)),Ic(e,d),e[22]=d}(d,this.componentDef,m,a,c);if(d)if(i)ec(c,d,["ng-version",cR.full]);else{const{attrs:I,classes:S}=function cP(t){const n=[],e=[];let i=1,r=2;for(;i<t.length;){let o=t[i];if("string"==typeof o)2===r?""!==o&&n.push(o,t[++i]):8===r&&e.push(o);else{if(!Di(r))break;r=o}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);I&&ec(c,d,I),S&&S.length>0&&rf(c,d,S.join(" "))}if(C=ih(f,22),void 0!==e){const I=C.projection=[];for(let S=0;S<this.ngContentSelectors.length;S++){const B=e[S];I.push(null!=B?Array.from(B):null)}}b=function fk(t,n,e,i){const r=e[1],o=function GP(t,n,e){const i=Tt();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),wb(t,i,n,fs(t,n,1,null),e),gb(t,i));const r=ca(n,t,i.directiveStart,i);Qt(r,n);const o=ii(i,n);return o&&Qt(o,n),r}(r,e,n);if(t[8]=e[8]=o,null!==i)for(const a of i)a(o,n);if(n.contentQueries){const a=Tt();n.contentQueries(1,o,a.directiveStart)}const s=Tt();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Pr(s.index),_b(e[1],s,0,s.directiveStart,s.directiveEnd,n),vb(n,o)),o}(D,this.componentDef,m,[pk]),wf(f,m,null)}finally{dh()}return new dk(this.componentType,b,as(C,m),m,C)}}class dk extends class nR{}{constructor(n,e,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new ak(r),this.componentType=n}setInput(n,e){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[n])){const o=this._rootLView;Af(o[1],o,r,n,e),mb(o,this._tNode.index)}}get injector(){return new Yo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function pk(){const t=Tt();Xl(N()[1],t)}function ve(t){let n=function Tb(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let r;if(wi(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new P(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);const s=t;s.inputs=Pf(t.inputs),s.declaredInputs=Pf(t.declaredInputs),s.outputs=Pf(t.outputs);const a=r.hostBindings;a&&vk(t,a);const l=r.viewQuery,c=r.contentQueries;if(l&&mk(t,l),c&&_k(t,c),jd(t.inputs,r.inputs),jd(t.declaredInputs,r.declaredInputs),jd(t.outputs,r.outputs),wi(r)&&r.data.animation){const u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(t),a===ve&&(e=!1)}}n=Object.getPrototypeOf(n)}!function gk(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=tc(r.hostAttrs,e=tc(e,r.hostAttrs))}}(i)}function Pf(t){return t===Bo?{}:t===Oe?[]:t}function mk(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function _k(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function vk(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}let Ac=null;function mo(){if(!Ac){const t=Ye.Symbol;if(t&&t.iterator)Ac=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Ac=i)}}}return Ac}function Ma(t){return!!kf(t)&&(Array.isArray(t)||!(t instanceof Map)&&mo()in t)}function kf(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Hi(t,n,e){return t[n]=e}function Ta(t,n){return t[n]}function Xt(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function _o(t,n,e,i){const r=Xt(t,n,e);return Xt(t,n+1,i)||r}function Rc(t,n,e,i,r){const o=_o(t,n,e,i);return Xt(t,n+2,r)||o}function ri(t,n,e,i,r,o){const s=_o(t,n,e,i);return _o(t,n+2,r,o)||s}function $n(t,n,e,i){const r=N();return Xt(r,Wo(),n)&&(Me(),Bi(pt(),r,t,n,e,i)),$n}function gs(t,n,e,i){return Xt(t,Wo(),e)?n+ae(e)+i:le}function ms(t,n,e,i,r,o){const a=_o(t,function ar(){return se.lFrame.bindingIndex}(),e,r);return lr(2),a?n+ae(e)+i+ae(r)+o:le}function M(t,n,e,i,r,o,s,a){const l=N(),c=Me(),u=t+22,d=c.firstCreatePass?function Ik(t,n,e,i,r,o,s,a,l){const c=n.consts,u=hs(n,t,4,s||null,Rr(c,a));Ef(n,e,u,Rr(c,l)),Xl(n,u);const d=u.tViews=Sf(2,u,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,r,o,s):c.data[u];Fi(d,!1);const h=l[11].createComment("");vc(c,l,h,d),Qt(h,l),Ic(l,l[u]=Cb(h,l,h,d)),Yl(d)&&Cf(c,l,d),null!=s&&Df(l,d,a)}function Of(t){return $o(function yx(){return se.lFrame.contextLView}(),22+t)}function _(t,n,e){const i=N();return Xt(i,Wo(),n)&&jn(Me(),pt(),i,t,n,i[11],e,!1),_}function Nf(t,n,e,i,r){const s=r?"class":"style";Af(t,e,n.inputs[s],s,i)}function g(t,n,e,i){const r=N(),o=Me(),s=22+t,a=r[11],l=r[s]=Xh(a,n,function Ax(){return se.lFrame.currentNamespace}()),c=o.firstCreatePass?function Tk(t,n,e,i,r,o,s){const a=n.consts,c=hs(n,t,2,r,Rr(a,o));return Ef(n,e,c,Rr(a,s)),null!==c.attrs&&Tc(c,c.attrs,!1),null!==c.mergedAttrs&&Tc(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,o,r,0,n,e,i):o.data[s];Fi(c,!0);const u=c.mergedAttrs;null!==u&&ec(a,l,u);const d=c.classes;null!==d&&rf(a,l,d);const h=c.styles;return null!==h&&Oy(a,l,h),64!=(64&c.flags)&&vc(o,r,l,c),0===function px(){return se.lFrame.elementDepthCount}()&&Qt(l,r),function gx(){se.lFrame.elementDepthCount++}(),Yl(c)&&(Cf(o,r,c),db(o,c,r)),null!==i&&Df(r,c),g}function y(){let t=Tt();oh()?sh():(t=t.parent,Fi(t,!1));const n=t;!function mx(){se.lFrame.elementDepthCount--}();const e=Me();return e.firstCreatePass&&(Xl(e,t),Zd(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function Nx(t){return 0!=(16&t.flags)}(n)&&Nf(e,n,N(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Fx(t){return 0!=(32&t.flags)}(n)&&Nf(e,n,N(),n.stylesWithoutHost,!1),y}function k(t,n,e,i){return g(t,n,e,i),y(),k}function Ue(t,n,e){const i=N(),r=Me(),o=t+22,s=r.firstCreatePass?function xk(t,n,e,i,r){const o=n.consts,s=Rr(o,i),a=hs(n,t,8,"ng-container",s);return null!==s&&Tc(a,s,!0),Ef(n,e,a,Rr(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,e):r.data[o];Fi(s,!0);const a=i[o]=i[11].createComment("");return vc(r,i,a,s),Qt(a,i),Yl(s)&&(Cf(r,i,s),db(r,s,i)),null!=e&&Df(i,s),Ue}function je(){let t=Tt();const n=Me();return oh()?sh():(t=t.parent,Fi(t,!1)),n.firstCreatePass&&(Xl(n,t),Zd(t)&&n.queries.elementEnd(t)),je}function q(){return N()}function xa(t){return!!t&&"function"==typeof t.then}const Ff=function Vb(t){return!!t&&"function"==typeof t.subscribe};function E(t,n,e,i){const r=N(),o=Me(),s=Tt();return function Hb(t,n,e,i,r,o,s,a){const l=Yl(i),u=t.firstCreatePass&&Sb(t),d=n[8],h=Db(n);let f=!0;if(3&i.type||a){const C=ii(i,n),D=a?a(C):C,I=h.length,S=a?ce=>a(wt(ce[i.index])):i.index;let B=null;if(!a&&l&&(B=function Ak(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const s=r[o];if(s===e&&r[o+1]===i){const a=n[7],l=r[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==B)(B.__ngLastListenerFn__||B).__ngNextListenerFn__=o,B.__ngLastListenerFn__=o,f=!1;else{o=Ub(i,n,d,o,!1);const ce=e.listen(D,r,o);h.push(o,ce),u&&u.push(r,S,I,I+1)}}else o=Ub(i,n,d,o,!1);const m=i.outputs;let b;if(f&&null!==m&&(b=m[r])){const C=b.length;if(C)for(let D=0;D<C;D+=2){const Ee=n[b[D]][b[D+1]].subscribe(o),Je=h.length;h.push(o,Ee),u&&u.push(r,i.index,Je,-(Je+1))}}}(o,r,r[11],s,t,n,0,i),E}function zb(t,n,e,i){try{return!1!==e(i)}catch(r){return Ib(t,r),!1}}function Ub(t,n,e,i,r){return function o(s){if(s===Function)return i;Tf(2&t.flags?Vn(t.index,n):n);let l=zb(n,0,i,s),c=o.__ngNextListenerFn__;for(;c;)l=zb(n,0,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function w(t=1){return function Sx(t){return(se.lFrame.contextLView=function Ex(t,n){for(;t>0;)n=n[15],t--;return n}(t,se.lFrame.contextLView))[8]}(t)}function Rk(t,n){let e=null;const i=function iP(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let r=0;r<n.length;r++){const o=n[r];if("*"!==o){if(null===i?Vy(t,o,!0):sP(i,o))return r}else e=r}return e}function Ss(t){const n=N()[16][6];if(!n.projection){const i=n.projection=ha(t?t.length:1,null),r=i.slice();let o=n.child;for(;null!==o;){const s=t?Rk(o,t):0;null!==s&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o),o=o.next}}}function gr(t,n=0,e){const i=N(),r=Me(),o=hs(r,22+t,16,null,e||null);null===o.projection&&(o.projection=n),sh(),64!=(64&o.flags)&&function QR(t,n,e){ky(n[11],0,n,e,Dy(t,e,n),My(e.parent||n[6],e,n))}(r,i,o)}function Lf(t,n,e){return Pc(t,"",n,"",e),Lf}function Pc(t,n,e,i,r){const o=N(),s=gs(o,n,e,i);return s!==le&&jn(Me(),pt(),o,t,s,o[11],r,!1),Pc}function Xb(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?Si(o):fr(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];Ok(t[a],n)&&(l=!0,t[a+1]=i?hf(u):uf(u)),a=i?Si(u):fr(u)}l&&(t[e+1]=i?uf(o):hf(o))}function Ok(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&es(t,n)>=0}const Rt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Zb(t){return t.substring(Rt.key,Rt.keyEnd)}function Jb(t,n){const e=Rt.textEnd;return e===n?-1:(n=Rt.keyEnd=function Vk(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,Rt.key=n,e),Es(t,n,e))}function Es(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function oi(t,n,e){return Ei(t,n,e,!1),oi}function jt(t,n){return Ei(t,n,null,!0),jt}function Aa(t){Ii(Hn,Ui,t,!0)}function Ui(t,n){for(let e=function Fk(t){return function tw(t){Rt.key=0,Rt.keyEnd=0,Rt.value=0,Rt.valueEnd=0,Rt.textEnd=t.length}(t),Jb(t,Es(t,0,Rt.textEnd))}(n);e>=0;e=Jb(n,e))Hn(t,Zb(n),!0)}function Ei(t,n,e,i){const r=N(),o=Me(),s=lr(2);o.firstUpdatePass&&ow(o,t,s,i),n!==le&&Xt(r,s,n)&&aw(o,o.data[cn()],r,r[11],t,r[s+1]=function Yk(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=ze(zn(t)))),t}(n,e),i,s)}function Ii(t,n,e,i){const r=Me(),o=lr(2);r.firstUpdatePass&&ow(r,null,o,i);const s=N();if(e!==le&&Xt(s,o,e)){const a=r.data[cn()];if(cw(a,i)&&!rw(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=$d(l,e||"")),Nf(r,a,s,e,i)}else!function qk(t,n,e,i,r,o,s,a){r===le&&(r=Oe);let l=0,c=0,u=0<r.length?r[0]:null,d=0<o.length?o[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<o.length?o[c+1]:void 0;let b,m=null;u===d?(l+=2,c+=2,h!==f&&(m=d,b=f)):null===d||null!==u&&u<d?(l+=2,m=u):(c+=2,m=d,b=f),null!==m&&aw(t,n,e,i,m,b,s,a),u=l<r.length?r[l]:null,d=c<o.length?o[c]:null}}(r,a,s,s[11],s[o+1],s[o+1]=function Gk(t,n,e){if(null==e||""===e)return Oe;const i=[],r=zn(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(i,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&t(i,o,r[o]);else"string"==typeof r&&n(i,r);return i}(t,n,e),i,o)}}function rw(t,n){return n>=t.expandoStartIndex}function ow(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[cn()],s=rw(t,e);cw(o,i)&&null===n&&!s&&(n=!1),n=function Uk(t,n,e,i){const r=function lh(t){const n=se.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=Ra(e=Vf(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=Vf(r,t,n,e,i),null===o){let l=function jk(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==fr(i))return t[Si(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Vf(null,t,n,l[1],i),l=Ra(l,n.attrs,i),function $k(t,n,e,i){t[Si(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function Wk(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++)i=Ra(i,t[o].hostAttrs,e);return Ra(i,n.attrs,e)}(t,n,i)}return void 0!==o&&(i?n.residualClasses=o:n.residualStyles=o),e}(r,o,n,i),function Pk(t,n,e,i,r,o){let s=o?n.classBindings:n.styleBindings,a=Si(s),l=fr(s);t[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||es(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=Si(t[a+1]);t[i+1]=wc(h,a),0!==h&&(t[h+1]=df(t[h+1],i)),t[a+1]=function TP(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=wc(a,0),0!==a&&(t[a+1]=df(t[a+1],i)),a=i;else t[i+1]=wc(l,0),0===a?a=i:t[l+1]=df(t[l+1],i),l=i;c&&(t[i+1]=uf(t[i+1])),Xb(t,u,i,!0),Xb(t,u,i,!1),function kk(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&es(o,n)>=0&&(e[i+1]=hf(e[i+1]))}(n,u,t,i,o),s=wc(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function Vf(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(o=n[a],i=Ra(i,o.hostAttrs,r),o!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function Ra(t,n,e){const i=e?1:2;let r=-1;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?r=s:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Hn(t,s,!!e||n[++o]))}return void 0===t?null:t}function aw(t,n,e,i,r,o,s,a){if(!(3&n.type))return;const l=t.data,c=l[a+1];kc(function tb(t){return 1==(1&t)}(c)?lw(l,n,e,r,fr(c),s):void 0)||(kc(o)||function eb(t){return 2==(2&t)}(c)&&(o=lw(l,null,e,r,a,s)),function ZR(t,n,e,i,r){if(n)r?t.addClass(e,i):t.removeClass(e,i);else{let o=-1===i.indexOf("-")?void 0:Dn.DashCase;null==r?t.removeStyle(e,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Dn.Important),t.setStyle(e,i,r,o))}}(i,s,Kl(cn(),e),r,o))}function lw(t,n,e,i,r,o){const s=null===n;let a;for(;r>0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===le&&(h=d?Oe:void 0);let f=d?bh(h,i):u===i?h:void 0;if(c&&!kc(f)&&(f=bh(l,i)),kc(f)&&(a=f,s))return a;const m=t[r+1];r=s?Si(m):fr(m)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=bh(l,i))}return a}function kc(t){return void 0!==t}function cw(t,n){return 0!=(t.flags&(n?16:32))}function O(t,n=""){const e=N(),i=Me(),r=t+22,o=i.firstCreatePass?hs(i,r,1,n,null):i.data[r],s=e[r]=function Qh(t,n){return t.createText(n)}(e[11],n);vc(i,e,s,o),Fi(o,!1)}function G(t){return gt("",t,""),G}function gt(t,n,e){const i=N(),r=gs(i,t,n,e);return r!==le&&pr(i,cn(),r),gt}function si(t,n,e,i,r){const o=N(),s=ms(o,t,n,e,i,r);return s!==le&&pr(o,cn(),s),si}const Ms="en-US";let Rw=Ms;function zf(t,n,e,i,r){if(t=ie(t),Array.isArray(t))for(let o=0;o<t.length;o++)zf(t[o],n,e,i,r);else{const o=Me(),s=N();let a=fo(t)?t:ie(t.provide),l=ny(t);const c=Tt(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(fo(t)||!t.multi){const f=new sa(l,r,v),m=jf(a,n,r?u:u+h,d);-1===m?(rc(la(c,s),o,a),Uf(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[m]=f,s[m]=f)}else{const f=jf(a,n,u+h,d),m=jf(a,n,u,u+h),b=f>=0&&e[f],C=m>=0&&e[m];if(r&&!C||!r&&!b){rc(la(c,s),o,a);const D=function dN(t,n,e,i,r){const o=new sa(t,e,v);return o.multi=[],o.index=n,o.componentProviders=0,nC(o,r,i&&!e),o}(r?uN:cN,e.length,r,i,l);!r&&C&&(e[m].providerFactory=D),Uf(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(D),s.push(D)}else Uf(o,t,f>-1?f:m,nC(e[r?m:f],l,!r&&i));!r&&i&&C&&e[m].componentProviders++}}}function Uf(t,n,e,i){const r=fo(n),o=function YA(t){return!!t.useClass}(n);if(r||o){const l=(o?ie(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function nC(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function jf(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function cN(t,n,e,i){return $f(this.multi,[])}function uN(t,n,e,i){const r=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=ca(e,e[1],this.providerFactory.index,i);o=a.slice(0,s),$f(r,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],$f(r,o);return o}function $f(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function Ae(t,n=[]){return e=>{e.providersResolver=(i,r)=>function lN(t,n,e){const i=Me();if(i.firstCreatePass){const r=wi(t);zf(e,i.data,i.blueprint,r,!0),zf(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class yo{}class iC{}class rC extends yo{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Rf(this);const i=Fn(n);this._bootstrapComponents=hr(i.bootstrap),this._r3Injector=Wy(n,e,[{provide:yo,useValue:this},{provide:dr,useValue:this.componentFactoryResolver}],ze(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Wf extends iC{constructor(n){super(),this.moduleType=n}create(n){return new rC(this.moduleType,n)}}class fN extends yo{constructor(n,e,i){super(),this.componentFactoryResolver=new Rf(this),this.instance=null;const r=new ty([...n,{provide:yo,useValue:this},{provide:dr,useValue:this.componentFactoryResolver}],e||mc(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Gf(t,n,e=null){return new fN(t,n,e).injector}let pN=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=Xv(0,e.type),r=i.length>0?Gf([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=V({token:t,providedIn:"environment",factory:()=>new t(R(po))}),t})();function oC(t){t.getStandaloneInjector=n=>n.get(pN).getOrCreateStandaloneInjector(t)}function La(t,n,e){const i=ln()+t,r=N();return r[i]===le?Hi(r,i,e?n.call(e):n()):Ta(r,i)}function X(t,n,e,i){return fC(N(),ln(),t,n,e,i)}function Wn(t,n,e,i,r){return pC(N(),ln(),t,n,e,i,r)}function Vc(t,n,e,i,r,o){return gC(N(),ln(),t,n,e,i,r,o)}function Yf(t,n,e,i,r,o,s){return function mC(t,n,e,i,r,o,s,a,l){const c=n+e;return ri(t,c,r,o,s,a)?Hi(t,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):Va(t,c+4)}(N(),ln(),t,n,e,i,r,o,s)}function Va(t,n){const e=t[n];return e===le?void 0:e}function fC(t,n,e,i,r,o){const s=n+e;return Xt(t,s,r)?Hi(t,s+1,o?i.call(o,r):i(r)):Va(t,s+1)}function pC(t,n,e,i,r,o,s){const a=n+e;return _o(t,a,r,o)?Hi(t,a+2,s?i.call(s,r,o):i(r,o)):Va(t,a+2)}function gC(t,n,e,i,r,o,s,a){const l=n+e;return Rc(t,l,r,o,s)?Hi(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):Va(t,l+3)}function L(t,n){const e=Me();let i;const r=t+22;e.firstCreatePass?(i=function MN(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=uo(i.type)),s=ei(v);try{const a=nc(!1),l=o();return nc(a),function Mk(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,N(),r,l),l}finally{ei(s)}}function H(t,n,e){const i=t+22,r=N(),o=$o(r,i);return Ba(r,i)?fC(r,ln(),n,o.transform,e,o):o.transform(e)}function Mi(t,n,e,i){const r=t+22,o=N(),s=$o(o,r);return Ba(o,r)?pC(o,ln(),n,s.transform,e,i,s):s.transform(e,i)}function Bc(t,n,e,i,r){const o=t+22,s=N(),a=$o(s,o);return Ba(s,o)?gC(s,ln(),n,a.transform,e,i,r,a):a.transform(e,i,r)}function Ba(t,n){return t[1].data[n].pure}function Kf(t){return n=>{setTimeout(t,void 0,n)}}const F=class AN extends K{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Kf(o),r&&(r=Kf(r)),s&&(s=Kf(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof ne&&n.add(a),a}};function RN(){return this._results[mo()]()}class Qf{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=mo(),i=Qf.prototype;i[e]||(i[e]=RN)}get changes(){return this._changes||(this._changes=new F)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=Bn(n);(this._changesDetected=!function Gx(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],o=n[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Ft=(()=>{class t{}return t.__NG_ELEMENT_ID__=ON,t})();const PN=Ft,kN=class extends PN{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tViews,r=Sc(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),wf(i,r,n),new Ea(r)}};function ON(){return Hc(Tt(),N())}function Hc(t,n){return 4&t.type?new kN(n,t,as(t,n)):null}let Lt=(()=>{class t{}return t.__NG_ELEMENT_ID__=NN,t})();function NN(){return bC(Tt(),N())}const FN=Lt,vC=class extends FN{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return as(this._hostTNode,this._hostLView)}get injector(){return new Yo(this._hostTNode,this._hostLView)}get parentInjector(){const n=ic(this._hostTNode,this._hostLView);if(dv(n)){const e=qo(n,this._hostLView),i=Go(n);return new Yo(e[1].data[i+8],e)}return new Yo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=yC(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function da(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new Ia(Ve(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(po,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[1];if(function fx(t){return bi(t[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[3],h=new vC(d,d[6],d[3]);h.detach(h.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function $R(t,n,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=n),i<o-10?(n[4]=e[r],Cv(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const s=n[17];null!==s&&e!==s&&function WR(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(s,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=64}(r,i,s,o);const a=tf(o,s),l=i[11],c=_c(l,s[7]);return null!==c&&function zR(t,n,e,i,r,o){i[0]=r,i[6]=n,Sa(t,i,e,1,r,o)}(r,s[6],l,i,c,a),n.attachToViewContainerRef(),Cv(Xf(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=yC(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Zh(this._lContainer,e);i&&(sc(Xf(this._lContainer),e),Cy(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Zh(this._lContainer,e);return i&&null!=sc(Xf(this._lContainer),e)?new Ea(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function yC(t){return t[8]}function Xf(t){return t[8]||(t[8]=[])}function bC(t,n){let e;const i=n[t.index];if(bi(i))e=i;else{let r;if(8&t.type)r=wt(i);else{const o=n[11];r=o.createComment("");const s=ii(t,n);go(o,_c(o,s),r,function KR(t,n){return t.nextSibling(n)}(o,s),!1)}n[t.index]=e=Cb(i,n,r,t),Ic(n,e)}return new vC(e,t,n)}class Zf{constructor(n){this.queryList=n,this.matches=null}clone(){return new Zf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Jf{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,r=[];for(let o=0;o<i;o++){const s=e.getByIndex(o);r.push(this.queries[s.indexInDeclarationView].clone())}return new Jf(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==EC(n,e).matches&&this.queries[e].setDirty()}}class wC{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class ep{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,o=this.getByIndex(i).embeddedTView(n,r);o&&(o.indexInDeclarationView=i,null!==e?e.push(o):e=[o])}return null!==e?new ep(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class tp{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new tp(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const o=i[r];this.matchTNodeWithReadOption(n,e,BN(e,o)),this.matchTNodeWithReadOption(n,e,oc(e,n,o,!1,!1))}else i===Ft?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,oc(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Te||r===Lt||r===Ft&&4&e.type)this.addMatch(e.index,-2);else{const o=oc(e,n,r,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function BN(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function zN(t,n,e,i){return-1===e?function HN(t,n){return 11&t.type?as(t,n):4&t.type?Hc(t,n):null}(n,t):-2===e?function UN(t,n,e){return e===Te?as(n,t):e===Ft?Hc(n,t):e===Lt?bC(n,t):void 0}(t,n,i):ca(t,t[1],e,n)}function CC(t,n,e,i){const r=n[19].queries[i];if(null===r.matches){const o=t.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:zN(n,o[c],s[l+1],e.metadata.read))}r.matches=a}return r.matches}function np(t,n,e,i){const r=t.queries.getByIndex(e),o=r.matches;if(null!==o){const s=CC(t,n,r,e);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&np(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];np(f[1],f,c,i)}}}}}return i}function Ce(t){const n=N(),e=Me(),i=tv();ch(i+1);const r=EC(e,i);if(t.dirty&&function hx(t){return 4==(4&t[2])}(n)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const o=r.crossesNgTemplate?np(e,n,i,[]):CC(e,n,r,i);t.reset(o,sR),t.notifyOnChanges()}return!0}return!1}function tt(t,n,e){const i=Me();i.firstCreatePass&&(SC(i,new wC(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),DC(i,N(),n)}function Sn(t,n,e,i){const r=Me();if(r.firstCreatePass){const o=Tt();SC(r,new wC(n,e,i),o.index),function $N(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(r,t),2==(2&e)&&(r.staticContentQueries=!0)}DC(r,N(),e)}function De(){return function jN(t,n){return t[19].queries[n].queryList}(N(),tv())}function DC(t,n,e){const i=new Qf(4==(4&e));fb(t,n,i,i.destroy),null===n[19]&&(n[19]=new Jf),n[19].queries.push(new Zf(i))}function SC(t,n,e){null===t.queries&&(t.queries=new ep),t.queries.track(new tp(n,e))}function EC(t,n){return t.queries.getByIndex(n)}function Uc(...t){}const $C=new U("Application Initializer");let jc=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Uc,this.reject=Uc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const o=this.appInits[r]();if(xa(o))e.push(o);else if(Ff(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(R($C,8))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const za=new U("AppId",{providedIn:"root",factory:function WC(){return`${ap()}${ap()}${ap()}`}});function ap(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const GC=new U("Platform Initializer"),As=new U("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),dF=new U("appBootstrapListener"),qC=new U("AnimationModuleType");let hF=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const ji=new U("LocaleId",{providedIn:"root",factory:()=>zt(ji,re.Optional|re.SkipSelf)||function fF(){return typeof $localize<"u"&&$localize.locale||Ms}()});class gF{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let YC=(()=>{class t{compileModuleSync(e){return new Wf(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=hr(Fn(e).declarations).reduce((s,a)=>{const l=Ve(a);return l&&s.push(new Ia(l)),s},[]);return new gF(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const vF=(()=>Promise.resolve(0))();function lp(t){typeof Zone>"u"?vF.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ne{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new F(!1),this.onMicrotaskEmpty=new F(!1),this.onStable=new F(!1),this.onError=new F(!1),typeof Zone>"u")throw new P(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function yF(){let t=Ye.requestAnimationFrame,n=Ye.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function CF(t){const n=()=>{!function wF(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ye,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,up(t),t.isCheckStableRunning=!0,cp(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),up(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return XC(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),ZC(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return XC(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),ZC(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,up(t),cp(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ne.isInAngularZone())throw new P(909,!1)}static assertNotInAngularZone(){if(Ne.isInAngularZone())throw new P(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,bF,Uc,Uc);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const bF={};function cp(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 up(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function XC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ZC(t){t._nesting--,cp(t)}class DF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new F,this.onMicrotaskEmpty=new F,this.onStable=new F,this.onError=new F}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const JC=new U(""),$c=new U("");let fp,dp=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,fp||(function SF(t){fp=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ne.assertNotInAngularZone(),lp(()=>{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())lp(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(R(Ne),R(hp),R($c))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})(),hp=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return fp?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),Lr=null;const eD=new U("AllowMultipleToken"),pp=new U("PlatformDestroyListeners");function nD(t,n,e=[]){const i=`Platform: ${n}`,r=new U(i);return(o=[])=>{let s=gp();if(!s||s.injector.get(eD,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function MF(t){if(Lr&&!Lr.get(eD,!1))throw new P(400,!1);Lr=t;const n=t.get(rD);(function tD(t){const n=t.get(GC,null);n&&n.forEach(e=>e())})(t)}(function iD(t=[],n){return Ut.create({name:n,providers:[{provide:kh,useValue:"platform"},{provide:pp,useValue:new Set([()=>Lr=null])},...t]})}(a,i))}return function xF(t){const n=gp();if(!n)throw new P(401,!1);return n}()}}function gp(){return Lr?.get(rD)??null}let rD=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function sD(t,n){let e;return e="noop"===t?new DF:("zone.js"===t?void 0:t)||new Ne(n),e}(i?.ngZone,function oD(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Ne,useValue:r}];return r.run(()=>{const s=Ut.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(ls,null);if(!l)throw new P(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Wc(this._modules,a),c.unsubscribe()})}),function aD(t,n,e){try{const i=e();return xa(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(jc);return c.runInitializers(),c.donePromise.then(()=>(function Pw(t){Nn(t,"Expected localeId to be defined"),"string"==typeof t&&(Rw=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(ji,Ms)||Ms),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=lD({},i);return function EF(t,n,e){const i=new Wf(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(bo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new P(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new P(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(pp,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(R(Ut))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function lD(t,n){return Array.isArray(n)?n.reduce(lD,t):{...t,...n}}let bo=(()=>{class t{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new xe(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new xe(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Ne.assertNotInAngularZone(),lp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Ne.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Vl(o,s.pipe(O_()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof iy;if(!this._injector.get(jc).done)throw!r&&function Ho(t){const n=Ve(t)||sn(t)||an(t);return null!==n&&n.standalone}(e),new P(405,false);let s;s=r?e:this._injector.get(dr).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function IF(t){return t.isBoundToModule}(s)?void 0:this._injector.get(yo),c=s.create(Ut.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(JC,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Wc(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new P(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Wc(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(dF,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Wc(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new P(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)(R(Ne),R(po),R(ls))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Wc(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let uD=!0,dD=!1,$i=(()=>{class t{}return t.__NG_ELEMENT_ID__=kF,t})();function kF(t){return function OF(t,n,e){if(ql(t)&&!e){const i=Vn(t.index,n);return new Ea(i,i)}return 47&t.type?new Ea(n[16],n):null}(Tt(),N(),16==(16&t))}class gD{constructor(){}supports(n){return Ma(n)}create(n){return new HF(n)}}const BF=(t,n)=>n;class HF{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||BF}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex<_D(i,r,o)?e:i,a=_D(s,r,o),l=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(e=e._next,null==s.previousIndex)r++;else{o||(o=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<o.length?o[h]:o[h]=0,m=f+h;u<=m&&m<c&&(o[h]=f+1)}o[s.previousIndex]=u-c}}a!==l&&n(s,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!Ma(n))throw new P(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,o,s,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)o=n[a],s=this._trackByFn(a,o),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,s,a),i=!0),e=e._next}else r=0,function Dk(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[mo()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new zF(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new mD),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new mD),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class zF{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class UF{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class mD{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new UF,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _D(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r}class vD{constructor(){}supports(n){return n instanceof Map||kf(n)}create(){return new jF}}class jF{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||kf(n)))throw new P(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new $F(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class $F{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function yD(){return new _r([new gD])}let _r=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||yD()),deps:[[t,new is,new ns]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new P(901,!1)}}return t.\u0275prov=V({token:t,providedIn:"root",factory:yD}),t})();function bD(){return new Rs([new vD])}let Rs=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||bD()),deps:[[t,new is,new ns]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new P(901,!1)}}return t.\u0275prov=V({token:t,providedIn:"root",factory:bD}),t})();const qF=nD(null,"core",[]);let YF=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(R(bo))},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({}),t})();let Yc=null;function Wi(){return Yc}const Be=new U("DocumentToken");let wD=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:function(){return function ZF(){return R(CD)}()},providedIn:"platform"}),t})(),CD=(()=>{class t extends wD{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wi().getBaseHref(this._doc)}onPopState(e){const i=Wi().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Wi().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){DD()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){DD()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(R(Be))},t.\u0275prov=V({token:t,factory:function(){return function JF(){return new CD(R(Be))}()},providedIn:"platform"}),t})();function DD(){return!!window.history.pushState}function SD(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function ED(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Co(t){return t&&"?"!==t[0]?"?"+t:t}let Kc=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:function(){return zt(eL)},providedIn:"root"}),t})();const ID=new U("appBaseHref");let eL=(()=>{class t extends Kc{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??zt(Be).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 SD(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Co(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Co(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Co(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(R(wD),R(ID,8))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bp=(()=>{class t{constructor(e){this._subject=new F,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=ED(MD(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Co(i))}normalize(e){return t.stripTrailingSlash(function nL(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,MD(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Co(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Co(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Co,t.joinWithSlash=SD,t.stripTrailingSlash=ED,t.\u0275fac=function(e){return new(e||t)(R(Kc))},t.\u0275prov=V({token:t,factory:function(){return function tL(){return new bp(R(Kc))}()},providedIn:"root"}),t})();function MD(t){return t.replace(/\/index.html$/,"")}function FD(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}let Ze=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ma(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ze(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(v(_r),v(Rs),v(Te),v(un))},t.\u0275dir=z({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class HL{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ai=(()=>{class t{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new HL(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),BD(a,r)}});for(let r=0,o=i.length;r<o;r++){const a=i.get(r).context;a.index=r,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{BD(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(v(Lt),v(Ft),v(_r))},t.\u0275dir=z({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function BD(t,n){t.context.$implicit=n.item}let $e=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new UL,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){HD("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){HD("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(v(Lt),v(Ft))},t.\u0275dir=z({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class UL{constructor(){this.$implicit=null,this.ngIf=null}}function HD(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${ze(n)}'.`)}let $a=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Dn.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(v(Te),v(Rs),v(un))},t.\u0275dir=z({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),UD=(()=>{class t{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=jD}transform(e,i=jD){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const r=this.differ.diff(e),o=i!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(s=>{this.keyValues.push(function c2(t,n){return{key:t,value:n}}(s.key,s.currentValue))})),(r||o)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}}return t.\u0275fac=function(e){return new(e||t)(v(Rs,16))},t.\u0275pipe=ht({name:"keyvalue",type:t,pure:!1,standalone:!0}),t})();function jD(t,n){const e=t.key,i=n.key;if(e===i)return 0;if(void 0===e)return 1;if(void 0===i)return-1;if(null===e)return 1;if(null===i)return-1;if("string"==typeof e&&"string"==typeof i)return e<i?-1:1;if("number"==typeof e&&"number"==typeof i)return e-i;if("boolean"==typeof e&&"boolean"==typeof i)return e<i?-1:1;const r=String(e),o=String(i);return r==o?0:r<o?-1:1}let St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({}),t})();const $D="browser";function Vr(t){return t===$D}class GD{}class Fp extends class N2 extends class XF{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function QF(t){Yc||(Yc=t)}(new Fp)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function F2(){return Ga=Ga||document.querySelector("base"),Ga?Ga.getAttribute("href"):null}();return null==e?null:function L2(t){su=su||document.createElement("a"),su.setAttribute("href",t);const n=su.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Ga=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return FD(document.cookie,n)}}let su,Ga=null;const QD=new U("TRANSITION_ID"),B2=[{provide:$C,useFactory:function V2(t,n,e){return()=>{e.get(jc).donePromise.then(()=>{const i=Wi(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o<r.length;o++)i.remove(r[o])})}},deps:[QD,Be,Ut],multi:!0}];let z2=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();const au=new U("EventManagerPlugins");let lu=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o<r.length;o++){const s=r[o];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(R(au),R(Ne))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();class XD{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const r=Wi().getGlobalEventTarget(this._doc,n);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let ZD=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})(),qa=(()=>{class t extends ZD{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(JD),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(JD))}}return t.\u0275fac=function(e){return new(e||t)(R(Be))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();function JD(t){Wi().remove(t)}const Lp={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/"},Vp=/%COMP%/g;function cu(t,n,e){for(let i=0;i<n.length;i++){let r=n[i];Array.isArray(r)?cu(t,r,e):(r=r.replace(Vp,t),e.push(r))}return e}function nS(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let uu=(()=>{class t{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Bp(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case vi.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new q2(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case vi.ShadowDom:return new Y2(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=cu(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(R(lu),R(qa),R(za))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();class Bp{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(Lp[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(rS(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(rS(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=Lp[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=Lp[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Dn.DashCase|Dn.Important)?n.style.setProperty(e,i,r&Dn.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Dn.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,nS(i)):this.eventManager.addEventListener(n,e,nS(i))}}function rS(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class q2 extends Bp{constructor(n,e,i,r){super(n),this.component=i;const o=cu(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function $2(t){return"_ngcontent-%COMP%".replace(Vp,t)}(r+"-"+i.id),this.hostAttr=function W2(t){return"_nghost-%COMP%".replace(Vp,t)}(r+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class Y2 extends Bp{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=cu(r.id,r.styles,[]);for(let s=0;s<o.length;s++){const a=document.createElement("style");a.textContent=o[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let K2=(()=>{class t extends XD{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(R(Be))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();const oS=["alt","control","meta","shift"],Q2={"\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"},X2={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Z2=(()=>{class t extends XD{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wi().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),oS.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=Q2[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),oS.forEach(s=>{s!==r&&(0,X2[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(R(Be))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();const aS=[{provide:As,useValue:$D},{provide:GC,useValue:function J2(){Fp.makeCurrent()},multi:!0},{provide:Be,useFactory:function tV(){return function _A(t){Eh=t}(document),document},deps:[]}],nV=nD(qF,"browser",aS),lS=new U(""),cS=[{provide:$c,useClass:class H2{addToWindow(n){Ye.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Ye.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ye.getAllAngularRootElements=()=>n.getAllRootElements(),Ye.frameworkStabilizers||(Ye.frameworkStabilizers=[]),Ye.frameworkStabilizers.push(i=>{const r=Ye.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?Wi().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:JC,useClass:dp,deps:[Ne,hp,$c]},{provide:dp,useClass:dp,deps:[Ne,hp,$c]}],uS=[{provide:kh,useValue:"root"},{provide:ls,useFactory:function eV(){return new ls},deps:[]},{provide:au,useClass:K2,multi:!0,deps:[Be,Ne,As]},{provide:au,useClass:Z2,multi:!0,deps:[Be]},{provide:uu,useClass:uu,deps:[lu,qa,za]},{provide:ba,useExisting:uu},{provide:ZD,useExisting:qa},{provide:qa,useClass:qa,deps:[Be]},{provide:lu,useClass:lu,deps:[au,Ne]},{provide:GD,useClass:z2,deps:[]},[]];let dS=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:za,useValue:e.appId},{provide:QD,useExisting:za},B2]}}}return t.\u0275fac=function(e){return new(e||t)(R(lS,12))},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({providers:[...uS,...cS],imports:[St,YF]}),t})(),hS=(()=>{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)(R(Be))},t.\u0275prov=V({token:t,factory:function(e){let i=null;return i=e?new e:function rV(){return new hS(R(Be))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let gS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:function(e){let i=null;return i=e?new(e||t):R(mS),i},providedIn:"root"}),t})(),mS=(()=>{class t extends gS{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Qe.NONE:return i;case Qe.HTML:return Vi(i,"HTML")?zn(i):Wv(this._doc,String(i)).toString();case Qe.STYLE:return Vi(i,"Style")?zn(i):i;case Qe.SCRIPT:if(Vi(i,"Script"))return zn(i);throw new Error("unsafe value used in a script context");case Qe.URL:return Vi(i,"URL")?zn(i):fc(String(i));case Qe.RESOURCE_URL:if(Vi(i,"ResourceURL"))return zn(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function IA(t){return new bA(t)}(e)}bypassSecurityTrustStyle(e){return function MA(t){return new wA(t)}(e)}bypassSecurityTrustScript(e){return function TA(t){return new CA(t)}(e)}bypassSecurityTrustUrl(e){return function xA(t){return new DA(t)}(e)}bypassSecurityTrustResourceUrl(e){return function AA(t){return new SA(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(R(Be))},t.\u0275prov=V({token:t,factory:function(e){let i=null;return i=e?new e:function dV(t){return new mS(t.get(Be))}(R(Ut)),i},providedIn:"root"}),t})();class _S{}const br="*";function Hr(t,n){return{type:7,name:t,definitions:n,options:{}}}function In(t,n=null){return{type:4,styles:n,timings:t}}function vS(t,n=null){return{type:2,steps:t,options:n}}function Fe(t){return{type:6,styles:t,offset:null}}function ci(t,n,e){return{type:0,name:t,styles:n,options:e}}function Ps(t){return{type:5,steps:t}}function pn(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function yS(t){Promise.resolve().then(t)}class Ya{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){yS(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class bS{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?yS(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function wS(t){return new P(3e3,!1)}function KV(){return typeof window<"u"&&typeof window.document<"u"}function jp(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function zr(t){switch(t.length){case 0:return new Ya;case 1:return t[0];default:return new bS(t)}}function CS(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((m,b)=>{let C=b,D=m;if("offset"!==b)switch(C=n.normalizePropertyName(C,s),D){case"!":D=r.get(b);break;case br:D=o.get(b);break;default:D=n.normalizeStyleValue(b,C,D,s)}f.set(C,D)}),h||a.push(f),c=f,l=d}),s.length)throw function LV(t){return new P(3502,!1)}();return a}function $p(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Wp(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Wp(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Wp(e,"destroy",t)))}}function Wp(t,n,e){const o=Gp(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function Gp(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Gn(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function DS(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let qp=(t,n)=>!1,SS=(t,n,e)=>[],ES=null;function Yp(t){const n=t.parentNode||t.host;return n===ES?null:n}(jp()||typeof Element<"u")&&(KV()?(ES=(()=>document.documentElement)(),qp=(t,n)=>{for(;n;){if(n===t)return!0;n=Yp(n)}return!1}):qp=(t,n)=>t.contains(n),SS=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Do=null,IS=!1;const MS=qp,TS=SS;let xS=(()=>{class t{validateStyleProperty(e){return function XV(t){Do||(Do=function ZV(){return typeof document<"u"?document.body:null}()||{},IS=!!Do.style&&"WebkitAppearance"in Do.style);let n=!0;return Do.style&&!function QV(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Do.style,!n&&IS&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Do.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return MS(e,i)}getParentElement(e){return Yp(e)}query(e,i,r){return TS(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Ya(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})(),Kp=(()=>{class t{}return t.NOOP=new xS,t})();const Qp="ng-enter",du="ng-leave",hu="ng-trigger",fu=".ng-trigger",RS="ng-animating",Xp=".ng-animating";function wr(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Zp(parseFloat(n[1]),n[2])}function Zp(t,n){return"s"===n?1e3*t:t}function pu(t,n,e){return t.hasOwnProperty("duration")?t:function tB(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(wS()),{duration:0,delay:0,easing:""};r=Zp(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Zp(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function gV(){return new P(3100,!1)}()),a=!0),o<0&&(n.push(function mV(){return new P(3101,!1)}()),a=!0),a&&n.splice(l,0,wS())}return{duration:r,delay:o,easing:s}}(t,n,e)}function Ka(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function PS(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Ur(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function OS(t,n,e){return e?n+":"+e+";":""}function NS(t){let n="";for(let e=0;e<t.style.length;e++){const i=t.style.item(e);n+=OS(0,i,t.style.getPropertyValue(i))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=OS(0,oB(e),t.style[e]));t.setAttribute("style",n)}function Gi(t,n,e){t.style&&(n.forEach((i,r)=>{const o=eg(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),jp()&&NS(t))}function So(t,n){t.style&&(n.forEach((e,i)=>{const r=eg(i);t.style[r]=""}),jp()&&NS(t))}function Qa(t){return Array.isArray(t)?1==t.length?t[0]:vS(t):t}const Jp=new RegExp("{{\\s*(.+?)\\s*}}","g");function FS(t){let n=[];if("string"==typeof t){let e;for(;e=Jp.exec(t);)n.push(e[1]);Jp.lastIndex=0}return n}function Xa(t,n,e){const i=t.toString(),r=i.replace(Jp,(o,s)=>{let a=n[s];return null==a&&(e.push(function vV(t){return new P(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function gu(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const rB=/-+([a-z0-9])/g;function eg(t){return t.replace(rB,(...n)=>n[1].toUpperCase())}function oB(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function qn(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function yV(t){return new P(3004,!1)}()}}function LS(t,n){return window.getComputedStyle(t)[n]}function dB(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function hB(t,n,e){if(":"==t[0]){const l=function fB(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(function kV(t){return new P(3016,!1)}()),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function PV(t){return new P(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(VS(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&n.push(VS(s,r))}(i,e,n)):e.push(t),e}const yu=new Set(["true","1"]),bu=new Set(["false","0"]);function VS(t,n){const e=yu.has(t)||bu.has(t),i=yu.has(n)||bu.has(n);return(r,o)=>{let s="*"==t||t==r,a="*"==n||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?yu.has(t):bu.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?yu.has(n):bu.has(n)),s&&a}}const pB=new RegExp("s*:selfs*,?","g");function tg(t,n,e,i){return new gB(t).build(n,e,i)}class gB{constructor(n){this._driver=n}build(n,e,i){const r=new vB(e);return this._resetContextStyleTimingState(r),qn(this,Qa(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function wV(){return new P(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function CV(){return new P(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{FS(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(gu(o.values()),e.errors.push(function DV(t,n){return new P(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=qn(this,Qa(n.animation),e);return{type:1,matchers:dB(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Eo(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>qn(this,i,e)),options:Eo(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=qn(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Eo(n.options)}}visitAnimate(n,e){const i=function bB(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return ng(pu(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=ng(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=pu(e,n);return ng(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Fe({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Fe(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===br?i.push(a):e.errors.push(new P(3002,!1)):i.push(PS(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function EV(t,n,e,i,r){return new P(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function iB(t,n,e){const i=n.params||{},r=FS(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function _V(t){return new P(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function IV(){return new P(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(D=>{const I=this._makeStyleAst(D,e);let S=null!=I.offset?I.offset:function yB(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(I.styles),B=0;return null!=S&&(o++,B=I.offset=S),l=l||B<0||B>1,a=a||B<c,c=B,s.push(B),I});l&&e.errors.push(function MV(){return new P(3012,!1)}()),a&&e.errors.push(function TV(){return new P(3200,!1)}());const d=n.steps.length;let h=0;o>0&&o<d?e.errors.push(function xV(){return new P(3202,!1)}()):0==o&&(h=1/(d-1));const f=d-1,m=e.currentTime,b=e.currentAnimateTimings,C=b.duration;return u.forEach((D,I)=>{const S=h>0?I==f?1:h*I:s[I],B=S*C;e.currentTime=m+b.delay+B,b.duration=B,this._validateStyleAst(D,e),D.offset=S,i.styles.push(D)}),i}visitReference(n,e){return{type:8,animation:qn(this,Qa(n.animation),e),options:Eo(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Eo(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Eo(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function mB(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(pB,"")),t=t.replace(/@\*/g,fu).replace(/@\w+/g,e=>fu+"-"+e.slice(1)).replace(/:animating/g,Xp),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,Gn(e.collectedStyles,e.currentQuerySelector,new Map);const a=qn(this,Qa(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Eo(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function AV(){return new P(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:pu(n.timings,e.errors,!0);return{type:12,animation:qn(this,Qa(n.animation),e),timings:i,options:null}}}class vB{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Eo(t){return t?(t=Ka(t)).params&&(t.params=function _B(t){return t?Ka(t):null}(t.params)):t={},t}function ng(t,n,e){return{duration:t,delay:n,easing:e}}function ig(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class wu{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const DB=new RegExp(":enter","g"),EB=new RegExp(":leave","g");function rg(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new IB).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class IB{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new wu;const d=new og(n,e,c,r,o,u,[]);d.options=l;const h=l.delay?wr(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),qn(this,i,d);const f=d.timelines.filter(m=>m.containsAnimation());if(f.length&&a.size){let m;for(let b=f.length-1;b>=0;b--){const C=f[b];if(C.element===e){m=C;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,d.errors,l)}return f.length?f.map(m=>m.buildKeyframes()):[ig(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:wr(Xa(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?wr(i.duration):null,a=null!=i.delay?wr(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),qn(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Cu);const s=wr(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>qn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?wr(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),qn(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return pu(e.params?Xa(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?wr(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Cu);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),qn(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;qn(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Cu={};class og{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Cu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Du(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=wr(i.duration)),null!=i.delay&&(r.delay=wr(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Xa(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new og(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Cu,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new MB(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(DB,"."+this._enterClassName)).replace(EB,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function RV(t){return new P(3014,!1)}()),a}}class Du{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Du(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||br),this._currentKeyframe.set(e,br);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function TB(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,br)}else Ur(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=Xa(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??br),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Ur(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?n.add(d):u===br&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?gu(n.values()):[],s=e.size?gu(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return ig(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class MB extends Du{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Ur(n[0]);l.set("offset",0),o.push(l);const c=Ur(n[0]);c.set("offset",zS(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=Ur(n[d]);const f=h.get("offset");h.set("offset",zS((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return ig(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function zS(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class sg{}const xB=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 AB extends sg{normalizePropertyName(n,e){return eg(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(xB.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function bV(t,n){return new P(3005,!1)}())}return s+o}}function US(t,n,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const ag={};class jS{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function RB(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||ag,m=this.buildStyles(i,a&&a.params||ag,d),b=l&&l.params||ag,C=this.buildStyles(r,b,d),D=new Set,I=new Map,S=new Map,B="void"===r,ce={params:PB(b,h),delay:this.ast.options?.delay},Ee=u?[]:rg(n,e,this.ast.animation,o,s,m,C,ce,c,d);let Je=0;if(Ee.forEach(yn=>{Je=Math.max(yn.duration+yn.delay,Je)}),d.length)return US(e,this._triggerName,i,r,B,m,C,[],[],I,S,Je,d);Ee.forEach(yn=>{const bn=yn.element,Zi=Gn(I,bn,new Set);yn.preStyleProps.forEach(nn=>Zi.add(nn));const Zn=Gn(S,bn,new Set);yn.postStyleProps.forEach(nn=>Zn.add(nn)),bn!==e&&D.add(bn)});const tn=gu(D.values());return US(e,this._triggerName,i,r,B,m,C,Ee,tn,I,S,Je)}}function PB(t,n){const e=Ka(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class kB{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=Ka(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Xa(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class NB{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new kB(r.style,r.options&&r.options.params||{},i))}),$S(this.states,"true","1"),$S(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new jS(n,r,this.states))}),this.fallbackTransition=function FB(t,n,e){return new jS(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function $S(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const LB=new wu;class VB{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],o=tg(this._driver,e,i,[]);if(i.length)throw function VV(t){return new P(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=CS(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=rg(this._driver,e,o,Qp,du,new Map,new Map,i,LB,r),s.forEach(u=>{const d=Gn(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function BV(){return new P(3300,!1)}()),s=[]),r.length)throw function HV(t){return new P(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,br))})});const c=zr(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function zV(t){return new P(3301,!1)}();return e}listen(n,e,i,r){const o=Gp(e,"","","");return $p(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const WS="ng-animate-queued",lg="ng-animate-disabled",jB=[],GS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$B={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ui="__ng_removed";class cg{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function YB(t){return t??null}(i?n.value:n),i){const o=Ka(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Za="void",ug=new cg(Za);class WB{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,di(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function UV(t,n){return new P(3302,!1)}();if(null==i||0==i.length)throw function jV(t){return new P(3303,!1)}();if(!function KB(t){return"start"==t||"done"==t}(i))throw function $V(t,n){return new P(3400,!1)}();const o=Gn(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Gn(this._engine.statesByElement,n,new Map);return a.has(e)||(di(n,hu),di(n,hu+"-"+e),a.set(e,ug)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function WV(t){return new P(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new dg(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(di(n,hu),di(n,hu+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new cg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=ug),c.value!==Za&&l.value===c.value){if(!function ZB(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const o=e[r];if(!n.hasOwnProperty(o)||t[o]!==n[o])return!1}return!0}(l.params,c.params)){const b=[],C=o.matchStyles(l.value,l.params,b),D=o.matchStyles(c.value,c.params,b);b.length?this._engine.reportError(b):this._engine.afterFlush(()=>{So(n,C),Gi(n,D)})}return}const h=Gn(this._engine.playersByElement,n,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),m=!1;if(!f){if(!r)return;f=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:m}),m||(di(n,WS),s.onStart(()=>{ks(n,WS)})),s.onDone(()=>{let b=this.players.indexOf(s);b>=0&&this.players.splice(b,1);const C=this._engine.playersByElement.get(n);if(C){let D=C.indexOf(s);D>=0&&C.splice(D,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,fu,!0);i.forEach(r=>{if(r[ui])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,Za,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&zr(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||ug,u=new cg(Za),d=new dg(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[ui];(!o||o===GS)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){di(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Gp(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,$p(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class GB{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new WB(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(Su(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Su(e))return;const o=e[ui];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),di(n,lg)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),ks(n,lg))}removeNode(n,e,i,r){if(Su(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[ui]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Su(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,fu,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Xp,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return zr(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[ui];if(e&&e.setForRemoval){if(n[ui]=GS,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(lg)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)di(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?zr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function GV(t){return new P(3402,!1)}()}_flushAnimations(n,e){const i=new wu,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(W=>{u.add(W);const Q=this.driver.query(W,".ng-animate-queued",!0);for(let J=0;J<Q.length;J++)u.add(Q[J])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=KS(h,this.collectedEnterElements),m=new Map;let b=0;f.forEach((W,Q)=>{const J=Qp+b++;m.set(Q,J),W.forEach(ye=>di(ye,J))});const C=[],D=new Set,I=new Set;for(let W=0;W<this.collectedLeaveElements.length;W++){const Q=this.collectedLeaveElements[W],J=Q[ui];J&&J.setForRemoval&&(C.push(Q),D.add(Q),J.hasAnimation?this.driver.query(Q,".ng-star-inserted",!0).forEach(ye=>D.add(ye)):I.add(Q))}const S=new Map,B=KS(h,Array.from(D));B.forEach((W,Q)=>{const J=du+b++;S.set(Q,J),W.forEach(ye=>di(ye,J))}),n.push(()=>{f.forEach((W,Q)=>{const J=m.get(Q);W.forEach(ye=>ks(ye,J))}),B.forEach((W,Q)=>{const J=S.get(Q);W.forEach(ye=>ks(ye,J))}),C.forEach(W=>{this.processLeaveNode(W)})});const ce=[],Ee=[];for(let W=this._namespaceList.length-1;W>=0;W--)this._namespaceList[W].drainQueuedTransitions(e).forEach(J=>{const ye=J.player,nt=J.element;if(ce.push(ye),this.collectedEnterElements.length){const rn=nt[ui];if(rn&&rn.setForMove){if(rn.previousTriggersValues&&rn.previousTriggersValues.has(J.triggerName)){const Lo=rn.previousTriggersValues.get(J.triggerName),gi=this.statesByElement.get(J.element);if(gi&&gi.has(J.triggerName)){const Fd=gi.get(J.triggerName);Fd.value=Lo,gi.set(J.triggerName,Fd)}}return void ye.destroy()}}const Ji=!d||!this.driver.containsElement(d,nt),Jn=S.get(nt),io=m.get(nt),lt=this._buildInstruction(J,i,io,Jn,Ji);if(lt.errors&<.errors.length)return void Ee.push(lt);if(Ji)return ye.onStart(()=>So(nt,lt.fromStyles)),ye.onDestroy(()=>Gi(nt,lt.toStyles)),void r.push(ye);if(J.isFallbackTransition)return ye.onStart(()=>So(nt,lt.fromStyles)),ye.onDestroy(()=>Gi(nt,lt.toStyles)),void r.push(ye);const u1=[];lt.timelines.forEach(rn=>{rn.stretchStartingKeyframe=!0,this.disabledNodes.has(rn.element)||u1.push(rn)}),lt.timelines=u1,i.append(nt,lt.timelines),s.push({instruction:lt,player:ye,element:nt}),lt.queriedElements.forEach(rn=>Gn(a,rn,[]).push(ye)),lt.preStyleProps.forEach((rn,Lo)=>{if(rn.size){let gi=l.get(Lo);gi||l.set(Lo,gi=new Set),rn.forEach((Fd,h_)=>gi.add(h_))}}),lt.postStyleProps.forEach((rn,Lo)=>{let gi=c.get(Lo);gi||c.set(Lo,gi=new Set),rn.forEach((Fd,h_)=>gi.add(h_))})});if(Ee.length){const W=[];Ee.forEach(Q=>{W.push(function qV(t,n){return new P(3505,!1)}())}),ce.forEach(Q=>Q.destroy()),this.reportError(W)}const Je=new Map,tn=new Map;s.forEach(W=>{const Q=W.element;i.has(Q)&&(tn.set(Q,Q),this._beforeAnimationBuild(W.player.namespaceId,W.instruction,Je))}),r.forEach(W=>{const Q=W.element;this._getPreviousPlayers(Q,!1,W.namespaceId,W.triggerName,null).forEach(ye=>{Gn(Je,Q,[]).push(ye),ye.destroy()})});const yn=C.filter(W=>XS(W,l,c)),bn=new Map;YS(bn,this.driver,I,c,br).forEach(W=>{XS(W,l,c)&&yn.push(W)});const Zn=new Map;f.forEach((W,Q)=>{YS(Zn,this.driver,new Set(W),l,"!")}),yn.forEach(W=>{const Q=bn.get(W),J=Zn.get(W);bn.set(W,new Map([...Array.from(Q?.entries()??[]),...Array.from(J?.entries()??[])]))});const nn=[],Mr=[],no={};s.forEach(W=>{const{element:Q,player:J,instruction:ye}=W;if(i.has(Q)){if(u.has(Q))return J.onDestroy(()=>Gi(Q,ye.toStyles)),J.disabled=!0,J.overrideTotalTime(ye.totalTime),void r.push(J);let nt=no;if(tn.size>1){let Jn=Q;const io=[];for(;Jn=Jn.parentNode;){const lt=tn.get(Jn);if(lt){nt=lt;break}io.push(Jn)}io.forEach(lt=>tn.set(lt,nt))}const Ji=this._buildAnimation(J.namespaceId,ye,Je,o,Zn,bn);if(J.setRealPlayer(Ji),nt===no)nn.push(J);else{const Jn=this.playersByElement.get(nt);Jn&&Jn.length&&(J.parentPlayer=zr(Jn)),r.push(J)}}else So(Q,ye.fromStyles),J.onDestroy(()=>Gi(Q,ye.toStyles)),Mr.push(J),u.has(Q)&&r.push(J)}),Mr.forEach(W=>{const Q=o.get(W.element);if(Q&&Q.length){const J=zr(Q);W.setRealPlayer(J)}}),r.forEach(W=>{W.parentPlayer?W.syncPlayerEvents(W.parentPlayer):W.destroy()});for(let W=0;W<C.length;W++){const Q=C[W],J=Q[ui];if(ks(Q,du),J&&J.hasAnimation)continue;let ye=[];if(a.size){let Ji=a.get(Q);Ji&&Ji.length&&ye.push(...Ji);let Jn=this.driver.query(Q,Xp,!0);for(let io=0;io<Jn.length;io++){let lt=a.get(Jn[io]);lt&<.length&&ye.push(...lt)}}const nt=ye.filter(Ji=>!Ji.destroyed);nt.length?QB(this,Q,nt):this.processLeaveNode(Q)}return C.length=0,nn.forEach(W=>{this.players.push(W),W.onDone(()=>{W.destroy();const Q=this.players.indexOf(W);this.players.splice(Q,1)}),W.play()}),nn}elementContainsData(n,e){let i=!1;const r=e[ui];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==Za;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=Gn(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),d.push(f)})}So(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(m=>{const b=m.element;u.add(b);const C=b[ui];if(C&&C.removedBeforeQueried)return new Ya(m.duration,m.delay);const D=b!==l,I=function XB(t){const n=[];return QS(t,n),n}((i.get(b)||jB).map(Je=>Je.getRealPlayer())).filter(Je=>!!Je.element&&Je.element===b),S=o.get(b),B=s.get(b),ce=CS(0,this._normalizer,0,m.keyframes,S,B),Ee=this._buildPlayer(m,ce,I);if(m.subTimeline&&r&&d.add(b),D){const Je=new dg(n,a,b);Je.setRealPlayer(Ee),c.push(Je)}return Ee});c.forEach(m=>{Gn(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function qB(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,m.element,m))}),u.forEach(m=>di(m,RS));const f=zr(h);return f.onDestroy(()=>{u.forEach(m=>ks(m,RS)),Gi(l,e.toStyles)}),d.forEach(m=>{Gn(r,m,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Ya(n.duration,n.delay)}}class dg{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Ya,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>$p(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Gn(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Su(t){return t&&1===t.nodeType}function qS(t,n){const e=t.style.display;return t.style.display=n??"none",e}function YS(t,n,e,i,r){const o=[];e.forEach(l=>o.push(qS(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[ui]=$B,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>qS(l,o[a++])),s}function KS(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const r=new Set(n),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function di(t,n){t.classList?.add(n)}function ks(t,n){t.classList?.remove(n)}function QB(t,n,e){zr(e).onDone(()=>t.processLeaveNode(n))}function QS(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof bS?QS(i.players,n):n.push(i)}}function XS(t,n,e){const i=e.get(t);if(!i)return!1;let r=n.get(t);return r?i.forEach(o=>r.add(o)):n.set(t,i),e.delete(t),!0}class Eu{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new GB(n,e,i),this._timelineEngine=new VB(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=tg(this._driver,o,l,[]);if(l.length)throw function FV(t,n){return new P(3404,!1)}();a=function OB(t,n,e){return new NB(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=DS(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=DS(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let eH=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Gi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Gi(this._element,this._initialStyles),this._endStyles&&(Gi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(So(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(So(this._element,this._endStyles),this._endStyles=null),Gi(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function hg(t){let n=null;return t.forEach((e,i)=>{(function tH(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class ZS{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:LS(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class nH{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return MS(n,e)}getParentElement(n){return Yp(n)}query(n,e,i){return TS(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof ZS);(function sB(t,n){return 0===t||0===n})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((m,b)=>c.set(b,m))});let d=function nB(t){return t.length?t[0]instanceof Map?t:t.map(n=>PS(n)):[]}(e).map(f=>Ur(f));d=function aB(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;o<n.length;o++){let s=n[o];r.forEach(a=>s.set(a,LS(t,a)))}}return n}(n,d,c);const h=function JB(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=hg(n[0]),n.length>1&&(i=hg(n[n.length-1]))):n instanceof Map&&(e=hg(n)),e||i?new eH(t,e,i):null}(n,d);return new ZS(n,d,l,h)}}let iH=(()=>{class t extends _S{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:vi.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?vS(e):e;return JS(this._renderer,null,i,"register",[r]),new rH(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(R(ba),R(Be))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();class rH extends class hV{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new oH(this._id,n,e||{},this._renderer)}}class oH{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return JS(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function JS(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const e0="@.disabled";let sH=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new t0("",o,this.engine),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new aH(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(R(ba),R(Eu),R(Ne))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();class t0{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==e0?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class aH extends t0{constructor(n,e,i,r){super(e,i,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==e0?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function lH(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function cH(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}const n0=[{provide:_S,useClass:iH},{provide:sg,useFactory:function dH(){return new AB}},{provide:Eu,useClass:(()=>{class t extends Eu{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(R(Be),R(Kp),R(sg),R(bo))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})()},{provide:ba,useFactory:function hH(t,n,e){return new sH(t,n,e)},deps:[uu,Eu,Ne]}],fg=[{provide:Kp,useFactory:()=>new nH},{provide:qC,useValue:"BrowserAnimations"},...n0],r0=[{provide:Kp,useClass:xS},{provide:qC,useValue:"NoopAnimations"},...n0];let fH=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?r0:fg}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({providers:fg,imports:[dS]}),t})();const pg={now:()=>(pg.delegate||Date).now(),delegate:void 0};class o0 extends K{constructor(n=1/0,e=1/0,i=pg){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s<o.length&&!n.closed;s+=i?1:2)n.next(o[s]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){const{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,o=(r?1:2)*n;if(n<1/0&&o<i.length&&i.splice(0,i.length-o),!r){const s=e.now();let a=0;for(let l=1;l<i.length&&i[l]<=s;l+=2)a=l;a&&i.splice(0,a+1)}}}class Yn extends K{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}const{isArray:pH}=Array,{getPrototypeOf:gH,prototype:mH,keys:_H}=Object;function s0(t){if(1===t.length){const n=t[0];if(pH(n))return{args:n,keys:null};if(function vH(t){return t&&"object"==typeof t&&gH(t)===mH}(n)){const e=_H(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:yH}=Array;function gg(t){return fe(n=>function bH(t,n){return yH(n)?t(...n):t(n)}(t,n))}function a0(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function Mu(...t){const n=A_(t),{args:e,keys:i}=s0(t),r=new xe(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u<s;u++){let d=!1;wn(e[u]).subscribe(rt(o,h=>{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(i?a0(i,a):a),o.complete())}))}});return n?r.pipe(gg(n)):r}function Y(...t){return bt(t,Js(t))}function jr(t,n){return oe(n)?Ht(t,n,1):Ht(t,1)}function Io(t,n){return dt((e,i)=>{let r=0;e.subscribe(rt(i,o=>t.call(n,o,r++)&&i.next(o)))})}class l0{}class c0{}class Mn{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Mn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Mn;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Mn?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class wH{encodeKey(n){return u0(n)}encodeValue(n){return u0(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const DH=/%(\d[a-f0-9])/gi,SH={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function u0(t){return encodeURIComponent(t).replace(DH,(n,e)=>SH[e]??n)}function Tu(t){return`${t}`}class qi{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new wH,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function CH(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(Tu):[Tu(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new qi({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(Tu(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(Tu(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class EH{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function d0(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function h0(t){return typeof Blob<"u"&&t instanceof Blob}function f0(t){return typeof FormData<"u"&&t instanceof FormData}class Ja{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function IH(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Mn),this.context||(this.context=new EH),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new qi,this.urlWithParams=e}serializeBody(){return null===this.body?null:d0(this.body)||h0(this.body)||f0(this.body)||function MH(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof qi?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||f0(this.body)?null:h0(this.body)?this.body.type||null:d0(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof qi?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){const e=n.method||this.method,i=n.url||this.url,r=n.responseType||this.responseType,o=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,a=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let l=n.headers||this.headers,c=n.params||this.params;const u=n.context??this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce((d,h)=>d.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Ja(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var Et=(()=>((Et=Et||{})[Et.Sent=0]="Sent",Et[Et.UploadProgress=1]="UploadProgress",Et[Et.ResponseHeader=2]="ResponseHeader",Et[Et.DownloadProgress=3]="DownloadProgress",Et[Et.Response=4]="Response",Et[Et.User=5]="User",Et))();class mg{constructor(n,e=200,i="OK"){this.headers=n.headers||new Mn,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class _g extends mg{constructor(n={}){super(n),this.type=Et.ResponseHeader}clone(n={}){return new _g({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class xu extends mg{constructor(n={}){super(n),this.type=Et.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new xu({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class p0 extends mg{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function vg(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Yi=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Ja)o=e;else{let l,c;l=r.headers instanceof Mn?r.headers:new Mn(r.headers),r.params&&(c=r.params instanceof qi?r.params:new qi({fromObject:r.params})),o=new Ja(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=Y(o).pipe(jr(l=>this.handler.handle(l)));if(e instanceof Ja||"events"===r.observe)return s;const a=s.pipe(Io(l=>l instanceof xu));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(fe(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(fe(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(fe(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(fe(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new qi).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,vg(r,i))}post(e,i,r={}){return this.request("POST",e,vg(r,i))}put(e,i,r={}){return this.request("PUT",e,vg(r,i))}}return t.\u0275fac=function(e){return new(e||t)(R(l0))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();class g0{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const m0=new U("HTTP_INTERCEPTORS");let TH=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();const xH=/^\)\]\}',?\n/;let _0=(()=>{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 xe(i=>{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 s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",m=new Mn(r.getAllResponseHeaders()),b=function AH(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new _g({headers:m,status:r.status,statusText:f,url:b}),s},l=()=>{let{headers:f,status:m,statusText:b,url:C}=a(),D=null;204!==m&&(D=typeof r.response>"u"?r.responseText:r.response),0===m&&(m=D?200:0);let I=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof D){const S=D;D=D.replace(xH,"");try{D=""!==D?JSON.parse(D):null}catch(B){D=S,I&&(I=!1,D={error:B,text:D})}}I?(i.next(new xu({body:D,headers:f,status:m,statusText:b,url:C||void 0})),i.complete()):i.error(new p0({error:D,headers:f,status:m,statusText:b,url:C||void 0}))},c=f=>{const{url:m}=a(),b=new p0({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:m||void 0});i.error(b)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let m={type:Et.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),"text"===e.responseType&&!!r.responseText&&(m.partialText=r.responseText),i.next(m)},h=f=>{let m={type:Et.UploadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),i.next(m)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:Et.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(R(GD))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();const yg=new U("XSRF_COOKIE_NAME"),bg=new U("XSRF_HEADER_NAME");class v0{}let RH=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=FD(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(R(Be),R(As),R(yg))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})(),wg=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(R(v0),R(bg))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})(),PH=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(m0,[]);this.chain=i.reduceRight((r,o)=>new g0(r,o),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(R(c0),R(Ut))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})(),kH=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:wg,useClass:TH}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:yg,useValue:e.cookieName}:[],e.headerName?{provide:bg,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({providers:[wg,{provide:m0,useExisting:wg,multi:!0},{provide:v0,useClass:RH},{provide:yg,useValue:"XSRF-TOKEN"},{provide:bg,useValue:"X-XSRF-TOKEN"}]}),t})(),OH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({providers:[Yi,{provide:l0,useClass:PH},_0,{provide:c0,useExisting:_0}],imports:[kH.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),t})();function $r(t){return!!t&&(t instanceof xe||oe(t.lift)&&oe(t.subscribe))}function el(...t){return function NH(){return Ll(1)}()(bt(t,Js(t)))}function Au(t){return new xe(n=>{wn(t()).subscribe(n)})}function Vt(t){return t<=0?()=>rr:dt((n,e)=>{let i=0;n.subscribe(rt(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function y0(t,n,e){let i,r=!1;return t&&"object"==typeof t?({bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t):i=t??1/0,O_({connector:()=>new o0(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Kn(t,n){return dt((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(rt(i,l=>{r?.unsubscribe();let c=0;const u=o++;wn(t(l,u)).subscribe(r=rt(i,d=>i.next(n?n(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}class tl{}let b0=(()=>{class t extends tl{getTranslation(e){return Y({})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=xt(t)))(i||t)}}(),t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();class Cg{}let w0=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();function Ru(t,n){if(t===n)return!0;if(null===t||null===n)return!1;if(t!=t&&n!=n)return!0;let r,o,s,e=typeof t;if(e==typeof n&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(n))return!1;for(o in s=Object.create(null),t){if(!Ru(t[o],n[o]))return!1;s[o]=!0}for(o in n)if(!(o in s)&&typeof n[o]<"u")return!1;return!0}if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(o=0;o<r;o++)if(!Ru(t[o],n[o]))return!1;return!0}}return!1}function Wr(t){return typeof t<"u"&&null!==t}function Dg(t){return t&&"object"==typeof t&&!Array.isArray(t)}function C0(t,n){let e=Object.assign({},t);return Dg(t)&&Dg(n)&&Object.keys(n).forEach(i=>{Dg(n[i])?i in t?e[i]=C0(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e}class Pu{}let D0=(()=>{class t extends Pu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,i){let r;return r="string"==typeof e?this.interpolateString(e,i):"function"==typeof e?this.interpolateFunction(e,i):e,r}getValue(e,i){let r="string"==typeof i?i.split("."):[i];i="";do{i+=r.shift(),!Wr(e)||!Wr(e[i])||"object"!=typeof e[i]&&r.length?r.length?i+=".":e=void 0:(e=e[i],i="")}while(r.length);return e}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let s=this.getValue(i,o);return Wr(s)?s:r}):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=xt(t)))(i||t)}}(),t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();class ku{}let S0=(()=>{class t extends ku{compile(e,i){return e}compileTranslations(e,i){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=xt(t)))(i||t)}}(),t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();class E0{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new F,this.onLangChange=new F,this.onDefaultLangChange=new F}}const Sg=new U("USE_STORE"),Eg=new U("USE_DEFAULT_LANG"),Ig=new U("DEFAULT_LANGUAGE"),Mg=new U("USE_EXTEND");let gn=(()=>{class t{constructor(e,i,r,o,s,a=!0,l=!1,c=!1,u){this.store=e,this.currentLoader=i,this.compiler=r,this.parser=o,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=l,this.extend=c,this.pending=!1,this._onTranslationChange=new F,this._onLangChange=new F,this._onDefaultLangChange=new F,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let i=this.retrieveTranslations(e);typeof i<"u"?(null==this.defaultLang&&(this.defaultLang=e),i.pipe(Vt(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Y(this.translations[e]);let i=this.retrieveTranslations(e);return typeof i<"u"?(this.currentLang||(this.currentLang=e),i.pipe(Vt(1)).subscribe(r=>{this.changeLang(e)}),i):(this.changeLang(e),Y(this.translations[e]))}retrieveTranslations(e){let i;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),i=this._translationRequests[e]),i}getTranslation(e){this.pending=!0;const i=this.currentLoader.getTranslation(e).pipe(y0(1),Vt(1));return this.loadingTranslations=i.pipe(fe(r=>this.compiler.compileTranslations(r,e)),y0(1),Vt(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){i=this.compiler.compileTranslations(i,e),this.translations[e]=(r||this.extend)&&this.translations[e]?C0(this.translations[e],i):i,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(i=>{-1===this.langs.indexOf(i)&&this.langs.push(i)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,i,r){let o;if(i instanceof Array){let s={},a=!1;for(let l of i)s[l]=this.getParsedResult(e,l,r),$r(s[l])&&(a=!0);return a?Mu(i.map(c=>$r(s[c])?s[c]:Y(s[c]))).pipe(fe(c=>{let u={};return c.forEach((d,h)=>{u[i[h]]=d}),u})):s}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,i),r)),typeof o>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],i),r)),typeof o>"u"){let s={key:i,translateService:this};typeof r<"u"&&(s.interpolateParams=r),o=this.missingTranslationHandler.handle(s)}return typeof o<"u"?o:i}get(e,i){if(!Wr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(jr(r=>$r(r=this.getParsedResult(r,e,i))?r:Y(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,i);return $r(r)?r:Y(r)}}getStreamOnTranslationChange(e,i){if(!Wr(e)||!e.length)throw new Error('Parameter "key" required');return el(Au(()=>this.get(e,i)),this.onTranslationChange.pipe(Kn(r=>{const o=this.getParsedResult(r.translations,e,i);return"function"==typeof o.subscribe?o:Y(o)})))}stream(e,i){if(!Wr(e)||!e.length)throw new Error('Parameter "key" required');return el(Au(()=>this.get(e,i)),this.onLangChange.pipe(Kn(r=>{const o=this.getParsedResult(r.translations,e,i);return $r(o)?o:Y(o)})))}instant(e,i){if(!Wr(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,i);if($r(r)){if(e instanceof Array){let o={};return e.forEach((s,a)=>{o[e[a]]=e[a]}),o}return e}return r}set(e,i,r=this.currentLang){this.translations[r][e]=this.compiler.compile(i,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return t.\u0275fac=function(e){return new(e||t)(R(E0),R(tl),R(ku),R(Pu),R(Cg),R(Eg),R(Sg),R(Mg),R(Ig))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})(),Jt=(()=>{class t{constructor(e,i){this.translate=e,this._ref=i,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,i,r){let o=s=>{this.value=void 0!==s?s:e,this.lastKey=e,this._ref.markForCheck()};if(r){let s=this.translate.getParsedResult(r,e,i);$r(s.subscribe)?s.subscribe(o):o(s)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(Ru(e,this.lastKey)&&Ru(i,this.lastParams))return this.value;let r;if(Wr(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){let o=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(o)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else"object"==typeof i[0]&&!Array.isArray(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(v(gn,16),v($i,16))},t.\u0275pipe=ht({name:"translate",type:t,pure:!1}),t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})(),I0=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:tl,useClass:b0},e.compiler||{provide:ku,useClass:S0},e.parser||{provide:Pu,useClass:D0},e.missingTranslationHandler||{provide:Cg,useClass:w0},E0,{provide:Sg,useValue:e.isolate},{provide:Eg,useValue:e.useDefaultLang},{provide:Mg,useValue:e.extend},{provide:Ig,useValue:e.defaultLanguage},gn]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:tl,useClass:b0},e.compiler||{provide:ku,useClass:S0},e.parser||{provide:Pu,useClass:D0},e.missingTranslationHandler||{provide:Cg,useClass:w0},{provide:Sg,useValue:e.isolate},{provide:Eg,useValue:e.useDefaultLang},{provide:Mg,useValue:e.extend},{provide:Ig,useValue:e.defaultLanguage},gn]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({}),t})(),M0=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(v(un),v(Te))},t.\u0275dir=z({type:t}),t})(),Mo=(()=>{class t extends M0{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=xt(t)))(i||t)}}(),t.\u0275dir=z({type:t,features:[ve]}),t})();const Qn=new U("NgValueAccessor"),FH={provide:Qn,useExisting:qe(()=>Tg),multi:!0};let Tg=(()=>{class t extends Mo{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=xt(t)))(i||t)}}(),t.\u0275dir=z({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&E("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[Ae([FH]),ve]}),t})();const LH={provide:Qn,useExisting:qe(()=>Cr),multi:!0},BH=new U("CompositionEventMode");let Cr=(()=>{class t extends M0{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function VH(){const t=Wi()?Wi().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)(v(un),v(Te),v(BH,8))},t.\u0275dir=z({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&E("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Ae([LH]),ve]}),t})();const en=new U("NgValidators"),qr=new U("NgAsyncValidators");function L0(t){return null!=t}function V0(t){return xa(t)?bt(t):t}function B0(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function H0(t,n){return n.map(e=>e(t))}function z0(t){return t.map(n=>function UH(t){return!t.validate}(n)?n:e=>n.validate(e))}function xg(t){return null!=t?function U0(t){if(!t)return null;const n=t.filter(L0);return 0==n.length?null:function(e){return B0(H0(e,n))}}(z0(t)):null}function Ag(t){return null!=t?function j0(t){if(!t)return null;const n=t.filter(L0);return 0==n.length?null:function(e){return Mu(H0(e,n).map(V0)).pipe(fe(B0))}}(z0(t)):null}function $0(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Rg(t){return t?Array.isArray(t)?t:[t]:[]}function Nu(t,n){return Array.isArray(t)?t.includes(n):t===n}function q0(t,n){const e=Rg(n);return Rg(t).forEach(r=>{Nu(e,r)||e.push(r)}),e}function Y0(t,n){return Rg(n).filter(e=>!Nu(t,e))}class K0{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=xg(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Ag(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class mn extends K0{get formDirective(){return null}get path(){return null}}class Yr extends K0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let hi=(()=>{class t extends class Q0{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(v(Yr,2))},t.\u0275dir=z({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&jt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[ve]}),t})();const nl="VALID",Lu="INVALID",Os="PENDING",il="DISABLED";function Z0(t){return Array.isArray(t)?xg(t):t||null}function J0(t){return Array.isArray(t)?Ag(t):t||null}function Vu(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function rl(t,n){(function Vg(t,n){const e=function W0(t){return t._rawValidators}(t);null!==n.validator?t.setValidators($0(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=function G0(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators($0(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();zu(n._rawValidators,r),zu(n._rawAsyncValidators,r)})(t,n),n.valueAccessor.writeValue(t.value),t.disabled&&n.valueAccessor.setDisabledState?.(!0),function ZH(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&iE(t,n)})}(t,n),function ez(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function JH(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&iE(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function XH(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function zu(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function iE(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function aE(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function lE(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const lz={provide:Yr,useExisting:qe(()=>Xn)},hE=(()=>Promise.resolve())();let Xn=(()=>{class t extends Yr{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new class extends class nE{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=Z0(this._rawValidators),this._composedAsyncValidatorFn=J0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===nl}get invalid(){return this.status===Lu}get pending(){return this.status==Os}get disabled(){return this.status===il}get enabled(){return this.status!==il}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=Z0(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=J0(n)}addValidators(n){this.setValidators(q0(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(q0(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Y0(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Y0(n,this._rawAsyncValidators))}hasValidator(n){return Nu(this._rawValidators,n)}hasAsyncValidator(n){return Nu(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Os,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=il,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=nl,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===nl||this.status===Os)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?il:nl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Os,this._hasOwnPendingAsyncValidator=!0;const e=V0(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new F,this.statusChanges=new F}_calculateStatus(){return this._allControlsDisabled()?il:this.errors?Lu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Os)?Os:this._anyControlsHaveStatus(Lu)?Lu:nl}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Vu(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}}{constructor(n=null,e,i){super(function Ng(t){return(Vu(t)?t.validators:t)||null}(e),function Fg(t,n){return(Vu(n)?n.asyncValidators:t)||null}(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Vu(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=lE(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){aE(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){aE(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){lE(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},this._registered=!1,this.update=new F,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function Hg(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Cr?e=o:function iz(t){return Object.getPrototypeOf(t.constructor)===Mo}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Bg(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(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(){rl(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){hE.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function vr(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(i);hE.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Bu(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(v(mn,9),v(en,10),v(qr,10),v(Qn,10),v($i,8))},t.\u0275dir=z({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:[Ae([lz]),ve,Nt]}),t})(),pE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({}),t})();const Ug=new U("NgModelWithFormControlWarning"),yz={provide:Qn,useExisting:qe(()=>Gg),multi:!0};function bE(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Gg=(()=>{class t extends Mo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=bE(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function bz(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=xt(t)))(i||t)}}(),t.\u0275dir=z({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&E("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ae([yz]),ve]}),t})(),wE=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(bE(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(v(Te),v(un),v(Gg,9))},t.\u0275dir=z({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const wz={provide:Qn,useExisting:qe(()=>qg),multi:!0};function CE(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let qg=(()=>{class t extends Mo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a<s.length;a++){const c=this._getOptionValue(s[a].value);r.push(c)}}else{const s=i.options;for(let a=0;a<s.length;a++){const l=s[a];if(l.selected){const c=this._getOptionValue(l.value);r.push(c)}}}this.value=r,e(r)}}_registerOption(e){const i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){const i=function Cz(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=xt(t)))(i||t)}}(),t.\u0275dir=z({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,i){1&e&&E("change",function(o){return i.onChange(o.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ae([wz]),ve]}),t})(),DE=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(CE(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(CE(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(v(Te),v(un),v(qg,9))},t.\u0275dir=z({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),kE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[pE]}),t})(),sl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[kE]}),t})(),Rz=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ug,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[kE]}),t})();function ju(t){return dt((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}const $u=Re(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function OE(...t){const n=Js(t),e=A_(t),{args:i,keys:r}=s0(t);if(0===i.length)return bt([],n);const o=new xe(function kz(t,n,e=xr){return i=>{NE(n,()=>{const{length:r}=t,o=new Array(r);let s=r,a=r;for(let l=0;l<r;l++)NE(n,()=>{const c=bt(t[l],n);let u=!1;c.subscribe(rt(i,d=>{o[l]=d,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>a0(r,s):xr));return e?o.pipe(gg(e)):o}function NE(t,n,e){t?ir(e,t,n):n()}function al(t,n){const e=oe(t)?t:()=>t,i=r=>r.error(e());return new xe(n?r=>n.schedule(i,0,r):i)}function Kg(){return dt((t,n)=>{let e=null;t._refCount++;const i=rt(n,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(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class Qg extends xe{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,m_(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new ne;const e=this.getSubject();n.add(this.source.subscribe(rt(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ne.EMPTY)}return n}refCount(){return Kg()(this)}}function Wu(...t){const n=Js(t);return dt((e,i)=>{(n?el(t,e,n):el(t,e)).subscribe(i)})}function Gu(t){return dt((n,e)=>{let i=!1;n.subscribe(rt(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function FE(t=Oz){return dt((n,e)=>{let i=!1;n.subscribe(rt(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function Oz(){return new $u}function Kr(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Io((r,o)=>t(r,o,i)):xr,Vt(1),e?Gu(n):FE(()=>new $u))}function Bt(t,n,e){const i=oe(t)||n||e?{next:t,error:n,complete:e}:t;return i?dt((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(rt(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):xr}function Qr(t){return dt((n,e)=>{let o,i=null,r=!1;i=n.subscribe(rt(e,void 0,void 0,s=>{o=wn(t(s,Qr(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function Nz(t,n,e,i,r){return(o,s)=>{let a=e,l=n,c=0;o.subscribe(rt(s,u=>{const d=c++;l=a?t(l,u,d):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function LE(t,n){return dt(Nz(t,n,arguments.length>=2,!0))}function Xg(t){return t<=0?()=>rr:dt((n,e)=>{let i=[];n.subscribe(rt(e,r=>{i.push(r),t<i.length&&i.shift()},()=>{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function VE(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Io((r,o)=>t(r,o,i)):xr,Xg(1),e?Gu(n):FE(()=>new $u))}function xo(t){return fe(()=>t)}const we="primary",ll=Symbol("RouteTitle");class Lz{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ns(t){return new Lz(t)}function Vz(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;const r={};for(let o=0;o<i.length;o++){const s=i[o],a=t[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function Ki(t,n){const e=t?Object.keys(t):void 0,i=n?Object.keys(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!BE(t[r],n[r]))return!1;return!0}function BE(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),i=[...n].sort();return e.every((r,o)=>i[o]===r)}return t===n}function HE(t){return Array.prototype.concat.apply([],t)}function zE(t){return t.length>0?t[t.length-1]:null}function $t(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Xr(t){return Ff(t)?t:xa(t)?bt(Promise.resolve(t)):Y(t)}const zz={exact:function $E(t,n,e){if(!Ro(t.segments,n.segments)||!qu(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!$E(t.children[i],n.children[i],e))return!1;return!0},subset:WE},UE={exact:function Uz(t,n){return Ki(t,n)},subset:function jz(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>BE(t[e],n[e]))},ignored:()=>!0};function jE(t,n,e){return zz[e.paths](t.root,n.root,e.matrixParams)&&UE[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function WE(t,n,e){return GE(t,n,n.segments,e)}function GE(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Ro(r,e)||n.hasChildren()||!qu(r,e,i))}if(t.segments.length===e.length){if(!Ro(t.segments,e)||!qu(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!WE(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Ro(t.segments,r)&&qu(t.segments,r,i)&&t.children[we])&&GE(t.children[we],n,o,i)}}function qu(t,n,e){return n.every((i,r)=>UE[e](t[r].parameters,i.parameters))}class Ao{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ns(this.queryParams)),this._queryParamMap}toString(){return Gz.serialize(this)}}class Se{constructor(n,e){this.segments=n,this.children=e,this.parent=null,$t(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Yu(this)}}class cl{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ns(this.parameters)),this._parameterMap}toString(){return QE(this)}}function Ro(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let qE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:function(){return new Jg},providedIn:"root"}),t})();class Jg{parse(n){const e=new t3(n);return new Ao(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${ul(n.root,!0)}`,i=function Kz(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${Ku(e)}=${Ku(r)}`).join("&"):`${Ku(e)}=${Ku(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function qz(t){return encodeURI(t)}(n.fragment)}`:""}`}}const Gz=new Jg;function Yu(t){return t.segments.map(n=>QE(n)).join("/")}function ul(t,n){if(!t.hasChildren())return Yu(t);if(n){const e=t.children[we]?ul(t.children[we],!1):"",i=[];return $t(t.children,(r,o)=>{o!==we&&i.push(`${o}:${ul(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function Wz(t,n){let e=[];return $t(t.children,(i,r)=>{r===we&&(e=e.concat(n(i,r)))}),$t(t.children,(i,r)=>{r!==we&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===we?[ul(t.children[we],!1)]:[`${r}:${ul(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[we]?`${Yu(t)}/${e[0]}`:`${Yu(t)}/(${e.join("//")})`}}function YE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ku(t){return YE(t).replace(/%3B/gi,";")}function em(t){return YE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qu(t){return decodeURIComponent(t)}function KE(t){return Qu(t.replace(/\+/g,"%20"))}function QE(t){return`${em(t.path)}${function Yz(t){return Object.keys(t).map(n=>`;${em(n)}=${em(t[n])}`).join("")}(t.parameters)}`}const Qz=/^[^\/()?;=#]+/;function Xu(t){const n=t.match(Qz);return n?n[0]:""}const Xz=/^[^=?&#]+/,Jz=/^[^&#]+/;class t3{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Se([],{}):new Se([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[we]=new Se(n,e)),i}parseSegment(){const n=Xu(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new P(4009,!1);return this.capture(n),new cl(Qu(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Xu(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Xu(this.remaining);r&&(i=r,this.capture(i))}n[Qu(e)]=Qu(i)}parseQueryParam(n){const e=function Zz(t){const n=t.match(Xz);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function e3(t){const n=t.match(Jz);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=KE(e),o=KE(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Xu(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new P(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=we);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[we]:new Se([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new P(4011,!1)}}function tm(t){return t.segments.length>0?new Se([],{[we]:t}):t}function Zu(t){const n={};for(const i of Object.keys(t.children)){const o=Zu(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function n3(t){if(1===t.numberOfChildren&&t.children[we]){const n=t.children[we];return new Se(t.segments.concat(n.segments),n.children)}return t}(new Se(t.segments,n))}function Po(t){return t instanceof Ao}function s3(t,n,e,i,r){if(0===e.length)return Fs(n.root,n.root,n.root,i,r);const o=function JE(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ZE(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return $t(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new ZE(e,n,i)}(e);return o.toRoot()?Fs(n.root,n.root,new Se([],{}),i,r):function s(l){const c=function l3(t,n,e,i){if(t.isAbsolute)return new Ls(n.root,!0,0);if(-1===i)return new Ls(e,e===n.root,0);return function eI(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new P(4005,!1);r=i.segments.length}return new Ls(i,!1,r-o)}(e,i+(dl(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),u=c.processChildren?fl(c.segmentGroup,c.index,o.commands):im(c.segmentGroup,c.index,o.commands);return Fs(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function dl(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function hl(t){return"object"==typeof t&&null!=t&&t.outlets}function Fs(t,n,e,i,r){let s,o={};i&&$t(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:XE(t,n,e);const a=tm(Zu(s));return new Ao(a,o,r)}function XE(t,n,e){const i={};return $t(t.children,(r,o)=>{i[o]=r===n?e:XE(r,n,e)}),new Se(t.segments,i)}class ZE{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&dl(i[0]))throw new P(4003,!1);const r=i.find(hl);if(r&&r!==zE(i))throw new P(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ls{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function im(t,n,e){if(t||(t=new Se([],{})),0===t.segments.length&&t.hasChildren())return fl(t,n,e);const i=function u3(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return o;const s=t.segments[r],a=e[i];if(hl(a))break;const l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!nI(l,c,s))return o;i+=2}else{if(!nI(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const o=new Se(t.segments.slice(0,i.pathIndex),{});return o.children[we]=new Se(t.segments.slice(i.pathIndex),t.children),fl(o,0,r)}return i.match&&0===r.length?new Se(t.segments,{}):i.match&&!t.hasChildren()?rm(t,n,e):i.match?fl(t,0,r):rm(t,n,e)}function fl(t,n,e){if(0===e.length)return new Se(t.segments,{});{const i=function c3(t){return hl(t[0])?t[0].outlets:{[we]:t}}(e),r={};return $t(i,(o,s)=>{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=im(t.children[s],n,o))}),$t(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Se(t.segments,r)}}function rm(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r<e.length;){const o=e[r];if(hl(o)){const l=d3(o.outlets);return new Se(i,l)}if(0===r&&dl(e[0])){i.push(new cl(t.segments[n].path,tI(e[0]))),r++;continue}const s=hl(o)?o.outlets[we]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&dl(a)?(i.push(new cl(s,tI(a))),r+=2):(i.push(new cl(s,{})),r++)}return new Se(i,{})}function d3(t){const n={};return $t(t,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=rm(new Se([],{}),0,e))}),n}function tI(t){const n={};return $t(t,(e,i)=>n[i]=`${e}`),n}function nI(t,n,e){return t==e.path&&Ki(n,e.parameters)}class Dr{constructor(n,e){this.id=n,this.url=e}}class iI extends Dr{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class pl extends Dr{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ju extends Dr{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class rI extends Dr{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class h3 extends Dr{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class f3 extends Dr{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class p3 extends Dr{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class g3 extends Dr{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class m3 extends Dr{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _3{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class v3{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class y3{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class b3{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class w3{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class C3{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oI{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=om(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=om(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=sm(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return sm(n,this._root).map(e=>e.value)}}function om(t,n){if(t===n.value)return n;for(const e of n.children){const i=om(t,e);if(i)return i}return null}function sm(t,n){if(t===n.value)return[n];for(const e of n.children){const i=sm(t,e);if(i.length)return i.unshift(n),i}return[]}class Sr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Vs(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class sI extends oI{constructor(n,e){super(n),this.snapshot=e,am(this,n)}toString(){return this.snapshot.toString()}}function aI(t,n){const e=function S3(t,n){const s=new ed([],{},{},"",{},we,n,null,t.root,-1,{});return new cI("",new Sr(s,[]))}(t,n),i=new Yn([new cl("",{})]),r=new Yn({}),o=new Yn({}),s=new Yn({}),a=new Yn(""),l=new Zr(i,r,s,a,o,we,n,e.root);return l.snapshot=e.root,new sI(new Sr(l,[]),e)}class Zr{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(fe(c=>c[ll]))??Y(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(fe(n=>Ns(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(fe(n=>Ns(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function lI(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function E3(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class ed{constructor(n,e,i,r,o,s,a,l,c,u,d,h){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[ll],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ns(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ns(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class cI extends oI{constructor(n,e){super(e),this.url=n,am(this,e)}toString(){return uI(this._root)}}function am(t,n){n.value._routerState=t,n.children.forEach(e=>am(t,e))}function uI(t){const n=t.children.length>0?` { ${t.children.map(uI).join(", ")} } `:"";return`${t.value}${n}`}function lm(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Ki(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),Ki(n.params,e.params)||t.params.next(e.params),function Bz(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!Ki(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),Ki(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function cm(t,n){const e=Ki(t.params,n.params)&&function $z(t,n){return Ro(t,n)&&t.every((e,i)=>Ki(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||cm(t.parent,n.parent))}function gl(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function M3(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return gl(t,i,r);return gl(t,i)})}(t,n,e);return new Sr(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>gl(t,a)),s}}const i=function T3(t){return new Zr(new Yn(t.url),new Yn(t.params),new Yn(t.queryParams),new Yn(t.fragment),new Yn(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>gl(t,o));return new Sr(i,r)}}const um="ngNavigationCancelingError";function dI(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Po(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=hI(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function hI(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[um]=!0,i.cancellationCode=n,e&&(i.url=e),i}function fI(t){return pI(t)&&Po(t.url)}function pI(t){return t&&t[um]}class x3{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ml,this.attachRef=null}}let ml=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new x3,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const td=!1;let gI=(()=>{class t{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new F,this.deactivateEvents=new F,this.attachEvents=new F,this.detachEvents=new F,this.name=r||we,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new P(4012,td);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new P(4012,td);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new P(4012,td);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new P(4013,td);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new A3(e,a,r.injector);if(i&&function R3(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(v(ml),v(Lt),function Ko(t){return function Hx(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const o=e[r];if(lv(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(o===n)return e[r+1];r+=2}}}return null}(Tt(),t)}("name"),v($i),v(po))},t.\u0275dir=z({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),t})();class A3{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Zr?this.route:n===ml?this.childContexts:this.parent.get(n,e)}}let mI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["ng-component"]],standalone:!0,features:[oC],decls:1,vars:0,template:function(e,i){1&e&&k(0,"router-outlet")},dependencies:[gI],encapsulation:2}),t})();function _I(t,n){return t.providers&&!t._injector&&(t._injector=Gf(t.providers,n,`Route: ${t.path}`)),t._injector??n}function hm(t){const n=t.children&&t.children.map(hm),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==we&&(e.component=mI),e}function fi(t){return t.outlet||we}function vI(t,n){const e=t.filter(i=>fi(i)===n);return e.push(...t.filter(i=>fi(i)!==n)),e}function _l(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class F3{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),lm(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=Vs(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),$t(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Vs(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Vs(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=Vs(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new C3(o.value.snapshot))}),n.children.length&&this.forwardEvent(new b3(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(lm(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),lm(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=_l(r.snapshot),l=a?.get(dr)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class yI{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class nd{constructor(n,e){this.component=n,this.route=e}}function L3(t,n,e){const i=t._root;return vl(i,n?n._root:null,e,[i.value])}function Bs(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function j1(t){return null!==zl(t)}(t)?n.get(t):t:i}function vl(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Vs(n);return t.children.forEach(s=>{(function B3(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function H3(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Ro(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Ro(t.url,n.url)||!Ki(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cm(t,n)||!Ki(t.queryParams,n.queryParams);default:return!cm(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new yI(i)):(o.data=s.data,o._resolvedData=s._resolvedData),vl(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new nd(a.outlet.component,s))}else s&&yl(n,a,r),r.canActivateChecks.push(new yI(i)),vl(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),$t(o,(s,a)=>yl(s,e.getContext(a),r)),r}function yl(t,n,e){const i=Vs(t),r=t.value;$t(i,(o,s)=>{yl(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new nd(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function bl(t){return"function"==typeof t}function fm(t){return t instanceof $u||"EmptyError"===t?.name}const id=Symbol("INITIAL_VALUE");function Hs(){return Kn(t=>OE(t.map(n=>n.pipe(Vt(1),Wu(id)))).pipe(fe(n=>{for(const e of n)if(!0!==e){if(e===id)return id;if(!1===e||e instanceof Ao)return e}return!0}),Io(n=>n!==id),Vt(1)))}function bI(t){return function d1(...t){return f_(t)}(Bt(n=>{if(Po(n))throw dI(0,n)}),fe(n=>!0===n))}const pm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function wI(t,n,e,i,r){const o=gm(t,n,e);return o.matched?function iU(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?Y(r.map(s=>{const a=Bs(s,t);return Xr(function G3(t){return t&&bl(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(Hs(),bI()):Y(!0)}(i=_I(n,i),n,e).pipe(fe(s=>!0===s?o:{...pm})):Y(o)}function gm(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...pm}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||Vz)(e,t,n);if(!r)return{...pm};const o={};$t(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function rd(t,n,e,i,r="corrected"){if(e.length>0&&function sU(t,n,e){return e.some(i=>od(t,n,i)&&fi(i)!==we)}(t,e,i)){const s=new Se(n,function oU(t,n,e,i){const r={};r[we]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&fi(o)!==we){const s=new Se([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[fi(o)]=s}return r}(t,n,i,new Se(e,t.children)));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function aU(t,n,e){return e.some(i=>od(t,n,i))}(t,e,i)){const s=new Se(t.segments,function rU(t,n,e,i,r,o){const s={};for(const a of i)if(od(t,e,a)&&!r[fi(a)]){const l=new Se([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===o?t.segments.length:n.length,s[fi(a)]=l}return{...r,...s}}(t,n,e,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:e}}const o=new Se(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}function od(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function CI(t,n,e,i){return!!(fi(t)===i||i!==we&&od(n,e,t))&&("**"===t.path||gm(n,t,e).matched)}function DI(t,n,e){return 0===n.length&&!t.children[e]}const sd=!1;class ad{constructor(n){this.segmentGroup=n||null}}class SI{constructor(n){this.urlTree=n}}function wl(t){return al(new ad(t))}function EI(t){return al(new SI(t))}class dU{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=rd(this.urlTree.root,[],[],this.config).segmentGroup,e=new Se(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,we).pipe(fe(o=>this.createUrlTree(Zu(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Qr(o=>{if(o instanceof SI)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof ad?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,we).pipe(fe(r=>this.createUrlTree(Zu(r),n.queryParams,n.fragment))).pipe(Qr(r=>{throw r instanceof ad?this.noMatchError(r):r}))}noMatchError(n){return new P(4002,sd)}createUrlTree(n,e,i){const r=tm(n);return new Ao(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(fe(o=>new Se([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return bt(r).pipe(jr(o=>{const s=i.children[o],a=vI(e,o);return this.expandSegmentGroup(n,a,s,o).pipe(fe(l=>({segment:l,outlet:o})))}),LE((o,s)=>(o[s.outlet]=s.segment,o),{}),VE())}expandSegment(n,e,i,r,o,s){return bt(i).pipe(jr(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(Qr(c=>{if(c instanceof ad)return Y(null);throw c}))),Kr(a=>!!a),Qr((a,l)=>{if(fm(a))return DI(e,r,o)?Y(new Se([],{})):wl(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return CI(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):wl(e):wl(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?EI(o):this.lineralizeSegments(i,o).pipe(Ht(s=>{const a=new Se(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=gm(e,r,o);if(!a)return wl(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?EI(d):this.lineralizeSegments(r,d).pipe(Ht(h=>this.expandSegment(n,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=_I(i,n),i.loadChildren?(i._loadedRoutes?Y({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(fe(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Se(r,{})))):Y(new Se(r,{}))):wI(e,i,r,n).pipe(Kn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(Ht(u=>{const d=u.injector??n,h=u.routes,{segmentGroup:f,slicedSegments:m}=rd(e,a,l,h),b=new Se(f.segments,f.children);if(0===m.length&&b.hasChildren())return this.expandChildren(d,h,b).pipe(fe(S=>new Se(a,S)));if(0===h.length&&0===m.length)return Y(new Se(a,{}));const C=fi(i)===o;return this.expandSegment(d,b,h,m,C?we:o,!0).pipe(fe(I=>new Se(a.concat(I.segments),I.children)))})):wl(e)))}getChildConfig(n,e,i){return e.children?Y({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Y({routes:e._loadedRoutes,injector:e._loadedInjector}):function nU(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?Y(!0):Y(r.map(s=>{const a=Bs(s,t);return Xr(function U3(t){return t&&bl(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(Hs(),bI())}(n,e,i).pipe(Ht(r=>r?this.configLoader.loadChildren(n,e).pipe(Bt(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function cU(t){return al(hI(sd,3))}())):Y({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Y(i);if(r.numberOfChildren>1||!r.children[we])return al(new P(4e3,sd));r=r.children[we]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new Ao(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return $t(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return $t(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new Se(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new P(4001,sd);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class fU{}class mU{constructor(n,e,i,r,o,s,a,l){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const n=rd(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,we).pipe(fe(e=>{if(null===e)return null;const i=new ed([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},we,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Sr(i,e),o=new cI(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=lI(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return bt(Object.keys(i.children)).pipe(jr(r=>{const o=i.children[r],s=vI(e,r);return this.processSegmentGroup(n,s,o,r)}),LE((r,o)=>r&&o?(r.push(...o),r):null),function Fz(t,n=!1){return dt((e,i)=>{let r=0;e.subscribe(rt(i,o=>{const s=t(o,r++);(s||n)&&i.next(o),!s&&i.complete()}))})}(r=>null!==r),Gu(null),VE(),fe(r=>{if(null===r)return null;const o=II(r);return function _U(t){t.sort((n,e)=>n.value.outlet===we?-1:e.value.outlet===we?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return bt(e).pipe(jr(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),Kr(s=>!!s),Qr(s=>{if(fm(s))return DI(i,r,o)?Y([]):Y(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!CI(e,i,r,o))return Y(null);let s;if("**"===e.path){const a=r.length>0?zE(r).parameters:{},l=TI(i)+r.length;s=Y({snapshot:new ed(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,AI(e),fi(e),e.component??e._loadedComponent??null,e,MI(i),l,RI(e),l),consumedSegments:[],remainingSegments:[]})}else s=wI(i,e,r,n).pipe(fe(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=TI(i)+l.length;return{snapshot:new ed(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,AI(e),fi(e),e.component??e._loadedComponent??null,e,MI(i),d,RI(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(Kn(a=>{if(null===a)return Y(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const d=e._loadedInjector??n,h=function vU(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:m}=rd(i,c,u,h.filter(C=>void 0===C.redirectTo),this.relativeLinkResolution);if(0===m.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(fe(C=>null===C?null:[new Sr(l,C)]));if(0===h.length&&0===m.length)return Y([new Sr(l,[])]);const b=fi(e)===o;return this.processSegment(d,h,f,m,b?we:o).pipe(fe(C=>null===C?null:[new Sr(l,C)]))}))}}function yU(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function II(t){const n=[],e=new Set;for(const i of t){if(!yU(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=II(i.children);n.push(new Sr(i.value,r))}return n.filter(i=>!e.has(i))}function MI(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function TI(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function AI(t){return t.data||{}}function RI(t){return t.resolve||{}}function PI(t){return"string"==typeof t.title||null===t.title}function mm(t){return Kn(n=>{const e=t(n);return e?bt(e).pipe(fe(()=>n)):Y(n)})}let kI=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===we);return i}getResolvedTitleForRoute(e){return e.data[ll]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:function(){return zt(OI)},providedIn:"root"}),t})(),OI=(()=>{class t extends kI{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(R(hS))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class MU{}class xU extends class TU{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const _m=new U("",{providedIn:"root",factory:()=>({})}),vm=new U("ROUTES");let FI=(()=>{class t{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Y(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Xr(e.loadComponent()).pipe(Bt(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),ju(()=>{this.componentLoaders.delete(e)})),r=new Qg(i,()=>new K).pipe(Kg());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Y({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(fe(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=HE(l.get(vm,[],re.Self|re.Optional)));return{routes:c.map(hm),injector:l}}),ju(()=>{this.childrenLoaders.delete(i)})),s=new Qg(o,()=>new K).pipe(Kg());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Xr(e()).pipe(Ht(i=>i instanceof iC||Array.isArray(i)?Y(i):bt(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)(R(Ut),R(YC))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class RU{}class PU{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function kU(t){throw t}function OU(t,n,e){return n.parse("/")}const NU={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},FU={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wt=(()=>{class t{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new K,this.errorHandler=kU,this.malformedUriErrorHandler=OU,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>Y(void 0),this.urlHandlingStrategy=new PU,this.routeReuseStrategy=new xU,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(FI),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new v3(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new _3(h)),this.ngModule=s.get(yo),this.console=s.get(hF);const d=s.get(Ne);this.isNgZoneEnabled=d instanceof Ne&&Ne.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function Hz(){return new Ao(new Se([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=aI(this.currentUrlTree,this.rootComponentType),this.transitions=new Yn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(Io(r=>0!==r.id),fe(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Kn(r=>{let o=!1,s=!1;return Y(r).pipe(Bt(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Kn(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return VI(a.source)&&(this.browserUrlTree=a.extractedUrl),Y(a).pipe(Kn(d=>{const h=this.transitions.getValue();return i.next(new iI(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?rr:Promise.resolve(d)}),function hU(t,n,e,i){return Kn(r=>function uU(t,n,e,i,r){return new dU(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(fe(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Bt(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function wU(t,n,e,i,r,o){return Ht(s=>function gU(t,n,e,i,r,o,s="emptyOnly",a="legacy"){return new mU(t,n,e,i,r,s,a,o).recognize().pipe(Kn(l=>null===l?function pU(t){return new xe(n=>n.error(t))}(new fU):Y(l)))}(t,n,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(fe(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Bt(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(f,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new h3(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:m,restoredState:b,extras:C}=a,D=new iI(h,this.serializeUrl(f),m,b);i.next(D);const I=aI(f,this.rootComponentType).snapshot;return Y(r={...a,targetSnapshot:I,urlAfterRedirects:f,extras:{...C,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),rr}),Bt(a=>{const l=new f3(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),fe(a=>r={...a,guards:L3(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function Y3(t,n){return Ht(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Y({...e,guardsResult:!0}):function K3(t,n,e,i){return bt(t).pipe(Ht(r=>function tU(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?Y(o.map(a=>{const l=_l(n)??r,c=Bs(a,l);return Xr(function W3(t){return t&&bl(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(Kr())})).pipe(Hs()):Y(!0)}(r.component,r.route,e,n,i)),Kr(r=>!0!==r,!0))}(s,i,r,t).pipe(Ht(a=>a&&function z3(t){return"boolean"==typeof t}(a)?function Q3(t,n,e,i){return bt(n).pipe(jr(r=>el(function Z3(t,n){return null!==t&&n&&n(new y3(t)),Y(!0)}(r.route.parent,i),function X3(t,n){return null!==t&&n&&n(new w3(t)),Y(!0)}(r.route,i),function eU(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function V3(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>Au(()=>Y(s.guards.map(l=>{const c=_l(s.node)??e,u=Bs(l,c);return Xr(function $3(t){return t&&bl(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(Kr())})).pipe(Hs())));return Y(o).pipe(Hs())}(t,r.path,e),function J3(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Y(!0);const r=i.map(o=>Au(()=>{const s=_l(n)??e,a=Bs(o,s);return Xr(function j3(t){return t&&bl(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(Kr())}));return Y(r).pipe(Hs())}(t,r.route,e))),Kr(r=>!0!==r,!0))}(i,o,t,n):Y(a)),fe(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Bt(a=>{if(r.guardsResult=a.guardsResult,Po(a.guardsResult))throw dI(0,a.guardsResult);const l=new p3(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Io(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),mm(a=>{if(a.guards.canActivateChecks.length)return Y(a).pipe(Bt(l=>{const c=new g3(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Kn(l=>{let c=!1;return Y(l).pipe(function CU(t,n){return Ht(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Y(e);let o=0;return bt(r).pipe(jr(s=>function DU(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!PI(r)&&(o[ll]=r.title),function SU(t,n,e,i){const r=function EU(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return Y({});const o={};return bt(r).pipe(Ht(s=>function IU(t,n,e,i){const r=_l(n)??i,o=Bs(t,r);return Xr(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(Kr(),Bt(a=>{o[s]=a}))),Xg(1),xo(o),Qr(s=>fm(s)?rr:al(s)))}(o,t,n,i).pipe(fe(s=>(t._resolvedData=s,t.data=lI(t,e).resolve,r&&PI(r)&&(t.data[ll]=r.title),null)))}(s.route,i,t,n)),Bt(()=>o++),Xg(1),Ht(s=>o===r.length?Y(e):rr))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Bt({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Bt(l=>{const c=new m3(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),mm(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Bt(d=>{c.component=d}),fe(()=>{})));for(const d of c.children)u.push(...l(d));return u};return OE(l(a.targetSnapshot.root)).pipe(Gu(),Vt(1))}),mm(()=>this.afterPreactivation()),fe(a=>{const l=function I3(t,n,e){const i=gl(t,n._root,e?e._root:void 0);return new sI(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Bt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,n,e)=>fe(i=>(new F3(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Bt({next(){o=!0},complete(){o=!0}}),ju(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Qr(a=>{if(s=!0,pI(a)){fI(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new Ju(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),fI(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||VI(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new rI(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return rr}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(hm),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),s3(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Po(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function VU(t){for(let n=0;n<t.length;n++){if(null==t[n])throw new P(4008,false)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,e)}return i}isActive(e,i){let r;if(r=!0===i?{...NU}:!1===i?{...FU}:i,Po(e))return jE(this.currentUrlTree,e,r);const o=this.parseUrl(e);return jE(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.keys(e).reduce((i,r)=>{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new pl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,f)=>{a=h,l=f});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const o=new Ju(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){!function Zy(){throw new Error("invalid")}()},t.\u0275prov=V({token:t,factory:function(){return function LI(){const t=zt(qE),n=zt(ml),e=zt(bp),i=zt(Ut),r=zt(YC),o=zt(vm,{optional:!0})??[],s=zt(_m,{optional:!0})??{},a=zt(OI),l=zt(kI,{optional:!0}),c=zt(RU,{optional:!0}),u=zt(MU,{optional:!0}),d=new Wt(null,t,n,e,i,r,HE(o));return c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),d.titleStrategy=l??a,function LU(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(s,d),d}()},providedIn:"root"}),t})();function VI(t){return"imperative"!==t}const GU=new U("cdk-dir-doc",{providedIn:"root",factory:function qU(){return zt(Be)}}),YU=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Mm,Sm=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new F,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function KU(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?YU.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(R(GU,8))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({}),t})();function Er(t){return null!=t&&"false"!=`${t}`}function WI(t,n=0){return function QU(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function Tn(t){return t instanceof Te?t.nativeElement:t}try{Mm=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Mm=!1}let Cl,xm,Tm=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Vr(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&&!Mm)&&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)(R(As))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ej=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({}),t})();function Dl(t){return function tj(){if(null==Cl&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Cl=!0}))}finally{Cl=Cl||!1}return Cl}()?t:!!t.capture}function qI(t){if(function nj(){if(null==xm){const t=typeof document<"u"?document.head:null;xm=!(!t||!t.createShadowRoot&&!t.attachShadow)}return xm}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function fd(t){return t.composedPath?t.composedPath()[0]:t.target}const ij=["addListener","removeListener"],rj=["addEventListener","removeEventListener"],oj=["on","off"];function xn(t,n,e,i){if(oe(e)&&(i=e,e=void 0),i)return xn(t,n,e).pipe(gg(i));const[r,o]=function lj(t){return oe(t.addEventListener)&&oe(t.removeEventListener)}(t)?rj.map(s=>a=>t[s](n,a,e)):function sj(t){return oe(t.addListener)&&oe(t.removeListener)}(t)?ij.map(YI(t,n)):function aj(t){return oe(t.on)&&oe(t.off)}(t)?oj.map(YI(t,n)):[];if(!r&&Hd(t))return Ht(s=>xn(s,n,e))(wn(t));if(!r)throw new TypeError("Invalid event target");return new xe(s=>{const a=(...l)=>s.next(1<l.length?l:l[0]);return r(a),()=>o(a)})}function YI(t,n){return e=>i=>t[e](n,i)}class cj extends ne{constructor(n,e){super()}schedule(n,e=0){return this}}const pd={setInterval(t,n,...e){const{delegate:i}=pd;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=pd;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class Am extends cj{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,i=0){return pd.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&pd.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,he(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const Sl={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Sl;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=n(o=>{e=void 0,t(o)});return new ne(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:n}=Sl;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=Sl;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};class El{constructor(n,e=El.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}El.now=pg.now;class Rm extends El{constructor(n,e=El.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const KI=new class dj extends Rm{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class uj extends Am{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Sl.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:o}=n;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Sl.cancelAnimationFrame(e),n._scheduled=void 0)}});let Pm,hj=1;const gd={};function QI(t){return t in gd&&(delete gd[t],!0)}const fj={setImmediate(t){const n=hj++;return gd[n]=!0,Pm||(Pm=Promise.resolve()),Pm.then(()=>QI(n)&&t()),n},clearImmediate(t){QI(t)}},{setImmediate:pj,clearImmediate:gj}=fj,md={setImmediate(...t){const{delegate:n}=md;return(n?.setImmediate||pj)(...t)},clearImmediate(t){const{delegate:n}=md;return(n?.clearImmediate||gj)(t)},delegate:void 0},_d=(new class _j extends Rm{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class mj extends Am{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=md.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:o}=n;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(md.clearImmediate(e),n._scheduled=void 0)}}),new Rm(Am)),yj=_d;function XI(t=0,n,e=yj){let i=-1;return null!=n&&(x_(n)?e=n:i=n),new xe(r=>{let o=function wj(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function km(t,n=_d){return function bj(t){return dt((n,e)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};n.subscribe(rt(e,c=>{i=!0,r=c,o||wn(t(c)).subscribe(o=rt(e,a,l))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>XI(t,n))}let Dj=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new K,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new xe(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(km(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Y()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Io(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Tn(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>xn(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)(R(Ne),R(Tm),R(Be,8))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZI=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new K,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(km(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)(R(Tm),R(Ne),R(Be,8))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Om=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({}),t})(),Ej=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[dd,Om,dd,Om]}),t})();function _n(t){return dt((n,e)=>{wn(t).subscribe(rt(e,()=>e.complete(),kt)),!e.closed&&n.subscribe(e)})}let cM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[Ej]}),t})();function Wj(t,n){if(1&t&&(g(0,"span",4),k(1,"i"),y()),2&t){const e=w();p(1),Aa(e.config.icon)}}const Ml=function(t){return{"is-active":t}},Gj=["componentSection"],qj=["okButton"],Yj=["cancelButton"],Kj=["backdropButton"],uM=["header"],dM=["footer"];function Qj(t,n){if(1&t){const e=q();g(0,"button",13,14),E("click",function(){return T(e),x(w(2).backdropHandler())}),y()}}function Xj(t,n){if(1&t&&(g(0,"header",9,10)(2,"p",11),O(3),y(),M(4,Qj,2,0,"button",12),y()),2&t){const e=w();p(3),G(e.config.title),p(1),_("ngIf",e.config.hasBackdrop)}}function Zj(t,n){1&t&&(g(0,"section",15),k(1,"nwb-spinner"),y())}function Jj(t,n){1&t&&k(0,"section",16),2&t&&_("innerHTML",w().config.message,Un)}function e$(t,n){if(1&t){const e=q();g(0,"button",21,22),E("click",function(){return T(e),x(w(2).cancelHandler())}),O(2),y()}if(2&t){const e=w(2);p(2),gt("",e.config.cancelButtonText," ")}}function t$(t,n){if(1&t){const e=q();g(0,"button",23,24),E("click",function(){return T(e),x(w(2).okHandler())}),O(2),y()}if(2&t){const e=w(2);p(2),gt("",e.config.okButtonText," ")}}function n$(t,n){if(1&t&&(g(0,"footer",17,18),M(2,e$,3,1,"button",19),M(3,t$,3,1,"button",20),y()),2&t){const e=w();p(2),_("ngIf",e.config.cancelButtonText),p(1),_("ngIf",e.config.okButtonText)}}const i$=function(t){return{width:t}},r$=function(t){return{"is-hidden":t}},u$=["inputSearch"];function d$(t,n){1&t&&k(0,"header",14,15)}const h$=function(t,n,e,i){return{selected:t,"not-selectable":n,"is-child":e,"is-parent":i}};function f$(t,n){if(1&t){const e=q();g(0,"a",18),E("mousemove",function(){return T(e),x(w(2).mouseMove())})("mouseover",function(){const o=T(e).index;return x(w(2).mouseOver(o))})("click",function(){return T(e),x(w(2).selectValue())}),k(1,"div",19),y()}if(2&t){const e=n.$implicit,i=n.index,r=w(2);_("ngClass",Yf(3,h$,e.isSelectable&&i===r.selectedFoundRow,!e.isSelectable,e.isChild,e.isParent))("tabindex",i),p(1),_("innerHTML",e.text,Un)}}function p$(t,n){if(1&t&&(g(0,"div",16),M(1,f$,2,8,"a",17),y()),2&t){const e=w();p(1),_("ngForOf",e.foundRows)}}function g$(t,n){1&t&&k(0,"nwb-spinner")}function m$(t,n){1&t&&k(0,"footer",20,21)}const _$=function(t,n){return{"has-no-header":t,"has-no-footer":n}};function y$(t,n){if(1&t){const e=q();g(0,"div",3)(1,"button",4),E("click",function(){return T(e),x(w().dismiss(!0))}),O(2),y()()}if(2&t){const e=w();p(1),Aa("button "+(e.config.buttonColor?e.config.buttonColor:"is-success")),p(1),gt("",e.config.action," ")}}const b$=function(t){return{"is-half":t}};let hM=(()=>{class t{constructor(){this.availableColors=["#a2c739","#dbdbdb","#00d1b2","#4baed0"]}ngOnInit(){this.color||(this.color=this.availableColors[Math.floor(Math.random()*this.availableColors.length)])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["nwb-spinner"]],hostAttrs:[1,"nwb-spinner"],inputs:{color:"color"},decls:1,vars:2,consts:[[1,"is-spinning"]],template:function(e,i){1&e&&k(0,"div",0),2&e&&oi("border-color",i.color)},encapsulation:2}),t})(),fM=(()=>{class t{constructor(e){this.el=e,this.el.nativeElement.classList.add("tooltip")}set nwbToolTip(e){this.el.nativeElement.setAttribute("data-tooltip",e)}set nwbToolTipPosition(e){this.el.nativeElement.classList.remove("is-tooltip-top"),this.el.nativeElement.classList.remove("is-tooltip-left"),this.el.nativeElement.classList.remove("is-tooltip-right"),this.el.nativeElement.classList.remove("is-tooltip-bottom"),this.el.nativeElement.classList.add("is-tooltip-"+e)}set nwbToolTipIsMultiline(e){e?this.el.nativeElement.classList.add("is-tooltip-multiline"):this.el.nativeElement.classList.remove("is-tooltip-multiline")}}return t.\u0275fac=function(e){return new(e||t)(v(Te))},t.\u0275dir=z({type:t,selectors:[["","nwbToolTip",""]],inputs:{nwbToolTip:"nwbToolTip",nwbToolTipPosition:"nwbToolTipPosition",nwbToolTipIsMultiline:"nwbToolTipIsMultiline"}}),t})();class C${constructor(n,e){this.name=n,this.valuesChange$=new K,this.group=new Map,Object.keys(e).forEach(i=>{const r=e[i],o=new D$(i,r,r);this.group.set(i,o)})}set(n,e){this._valueChange(n,e)&&this.emitChange()}get(n){if(!this.group.has(n))throw new Error(`FilterGroup: They key ${n} doesn't exist`);return this.group.get(n).value}setValues(n){let e=!1;Object.keys(n).forEach(i=>{this._valueChange(i,n[i])&&(e=!0)}),e&&this.emitChange()}_valueChange(n,e){if(!this.group.has(n))throw new Error(`FilterGroup: They key ${n} doesn't exist`);return"string"==typeof e&&(e=e.trim()),this.group.get(n).value!=e&&(this.group.get(n).value=e,!0)}emitChange(){const n=[];this.group.forEach(e=>n.push(e)),this.valuesChange$.next(n)}getFilters(){const n=[];return this.group.forEach(e=>n.push(e)),n}}class D${constructor(n,e,i){this.key=n,this.defaultValue=e,this.value=i}isDefaultValue(){return this.defaultValue===this.value}}let pM=(()=>{class t{constructor(e,i){this.router=e,this.route=i,this.groupCounter=0,this.filterGroups=new Map,this.route.queryParams.subscribe(r=>{this.queryParamsChange(r)})}queryParamsChange(e){const i=new Map;Object.keys(e).forEach(r=>{const o=this.getParsedKey(r),s=i.has(o.filterGroupName)?i.get(o.filterGroupName):{};s[o.filterKey]=e[r],i.set(o.filterGroupName,s)}),this.filterGroups.forEach(r=>{const o={};r.getFilters().forEach(a=>{o[a.key]=a.defaultValue});const s=i.has(r.name)?i.get(r.name):{};r.setValues(Object.assign(o,s))})}group(e,i){i||(i="fg_"+this.groupCounter++);const r=new C$(i,e);return this.filterGroups.set(r.name,r),r.valuesChange$.subscribe(o=>{this.updateRouting(r.name,o)}),this.route.queryParams.subscribe(o=>{this.queryParamsChange(o)}).unsubscribe(),r}addFilterGroupNameToQueryParamKey(e,i){return e+":"+i}getParsedKey(e){const i=e.split(":");return{filterGroupName:i[0],filterKey:i[1]}}updateRouting(e,i){this.route.queryParamMap.subscribe(r=>{const o={};r.keys.forEach(a=>{o[a]=r.get(a)});const s=Object.assign({},o);i.forEach(a=>{const l=this.addFilterGroupNameToQueryParamKey(e,a.key);if(a.isDefaultValue())s.hasOwnProperty(l)&&delete s[l];else{let c=a.value;c instanceof Date&&(c=c.toISOString()),s[l]=c}}),this.router.navigate([],{queryParams:s,relativeTo:this.route})}).unsubscribe()}remove(e){this.filterGroups.has(e.name)&&this.filterGroups.delete(e.name)}}return t.\u0275fac=function(e){return new(e||t)(R(Wt),R(Zr))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})(),Tl=(()=>{class t{getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e=document.createElement("div");e.classList.add("nwb-overlay-container"),document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();const I$={provide:Tl,deps:[[new ns,new is,Tl]],useFactory:function E$(t){return t||new Tl}};let No=(()=>{class t{constructor(e,i,r,o){this.componentFactoryResolver=e,this.appRef=i,this.injector=r,this.overlayContainer=o}attachComponentPortal(e,i){const r=this.componentFactoryResolver.resolveComponentFactory(e).create(i||this.injector);return this.appRef.attachView(r.hostView),this.overlayContainer.getContainerElement().appendChild(this._getComponentRootNode(r)),r}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}return t.\u0275fac=function(e){return new(e||t)(R(dr),R(bo),R(Ut),R(Tl))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();const T$={provide:No,deps:[[new ns,new is,No],dr,bo,Ut,Tl],useFactory:function M$(t,n,e,i,r){return t||new No(n,e,i,r)}};let vn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({providers:[I$,T$,pM],imports:[St,sl]}),t})(),x$=(()=>{class t{constructor(){this._afterClosed=new K,this.open=!1}ngOnInit(){setTimeout(()=>{this.open=!0},50),this.config.duration>0&&(this.timer=setTimeout(()=>this.dismiss(),this.config.duration))}dismiss(){this.open=!1,setTimeout(()=>{this._afterClosed.next(!0),this._afterClosed.complete()},200)}afterClosed(){return this._afterClosed.asObservable()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["nwb-alert"]],hostAttrs:[1,"nwb-alert"],decls:4,vars:7,consts:[[3,"ngClass"],[1,"alert--message"],["class","icon",4,"ngIf"],[3,"innerHTML"],[1,"icon"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"div",1),M(2,Wj,2,2,"span",2),k(3,"p",3),y()()),2&e&&(Aa("alert "+(i.config.color?i.config.color:" is-primary")+(i.config.extraClasses?" "+i.config.extraClasses:"")+(i.config.position?" "+i.config.position:"")),_("ngClass",X(5,Ml,i.open)),p(2),_("ngIf",i.config.icon),p(1),_("innerHTML",i.config.message,Un))},dependencies:[Ze,$e],encapsulation:2}),t})(),gM=(()=>{class t{constructor(e){this.domService=e}open(e){return this.getComponentRef(e).instance}getComponentRef(e){const i=this.domService.attachComponentPortal(x$);return e=Object.assign({position:"is-top"},e),i.instance.config=e,i.instance.afterClosed().subscribe(()=>{i.destroy()}),i}}return t.\u0275fac=function(e){return new(e||t)(R(No))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})(),mM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({providers:[gM],imports:[St,vn]}),t})(),_M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[St,vn]}),t})(),$m=(()=>{class t{constructor(e){this.componentFactoryResolver=e,this.ready=new F,this.hasComponent=!1,this._afterClosed=new K,this.open=!1,this.fromOkButton=!1}ngOnInit(){this.open=!0,this.ready.next(!0)}_keypress(){this.config.hasBackdrop&&this.dismiss(!1)}backdropHandler(){this.config.hasBackdrop&&this.dismiss(!1)}cancelHandler(){this.config.cancelHandler&&"function"==typeof this.config.cancelHandler?this.config.cancelHandler():this.dismiss(!1)}okHandler(){this.config.okHandler&&"function"==typeof this.config.okHandler?this.config.okHandler():this.dismiss(!0)}disableButtonsAndMakeOkButtonLoading(){this.cancelButtonEl&&this.cancelButtonEl.nativeElement.setAttribute("disabled","disabled"),this.okButtonEl&&(this.okButtonEl.nativeElement.setAttribute("disabled","disabled"),this.okButtonEl.nativeElement.classList.add("is-loading")),this.backdropButtonEl&&this.backdropButtonEl.nativeElement.setAttribute("disabled","disabled")}enableButtonsAndMakeOkButtonNotLoading(){this.cancelButtonEl&&this.cancelButtonEl.nativeElement.removeAttribute("disabled"),this.okButtonEl&&(this.okButtonEl.nativeElement.removeAttribute("disabled"),this.okButtonEl.nativeElement.classList.remove("is-loading")),this.backdropButtonEl&&this.backdropButtonEl.nativeElement.removeAttribute("disabled")}dismiss(e){this.open=!1,this.fromOkButton=e}animationDone(e){"active"===e.fromState&&"inactive"===e.toState&&(this._afterClosed.next(this.fromOkButton),this._afterClosed.complete())}afterClosed(){return this._afterClosed.asObservable()}hideSpinner(){this.config.loading=!1}displaySpinner(){this.config.loading=!0}_setComponent(e){let i;if(e instanceof Ft)this.componentSection.createEmbeddedView(e);else{i=this.componentFactoryResolver.resolveComponentFactory(e);const r=this.componentSection.createComponent(i);this.componentInstance=r.instance}this.hasComponent=!0}}return t.\u0275fac=function(e){return new(e||t)(v(dr))},t.\u0275cmp=be({type:t,selectors:[["nwb-dialog"]],viewQuery:function(e,i){if(1&e&&(tt(Gj,7,Lt),tt(qj,5),tt(Yj,5),tt(Kj,5),tt(uM,5),tt(dM,5)),2&e){let r;Ce(r=De())&&(i.componentSection=r.first),Ce(r=De())&&(i.okButtonEl=r.first),Ce(r=De())&&(i.cancelButtonEl=r.first),Ce(r=De())&&(i.backdropButtonEl=r.first),Ce(r=De())&&(i.headerEl=r.first),Ce(r=De())&&(i.footerEl=r.first)}},hostAttrs:[1,"nwb-dialog"],hostBindings:function(e,i){1&e&&E("keydown.escape",function(){return i._keypress()},0,Or)},decls:10,vars:11,consts:[[1,"modal","is-active"],[1,"modal-background",3,"click"],[1,"modal-card",3,"ngStyle"],["class","modal-card-head",4,"ngIf"],["class","modal-card-body",4,"ngIf"],["class","modal-card-body",3,"innerHTML",4,"ngIf"],[1,"modal-card-body",3,"ngClass"],["componentSection",""],["class","modal-card-foot",4,"ngIf"],[1,"modal-card-head"],["header",""],[1,"modal-card-title"],["class","delete",3,"click",4,"ngIf"],[1,"delete",3,"click"],["backdropButton",""],[1,"modal-card-body"],[1,"modal-card-body",3,"innerHTML"],[1,"modal-card-foot"],["footer",""],["class","button column is-medium is-danger is-4",3,"click",4,"ngIf"],["class","button column is-medium is-success is-offset-4",3,"click",4,"ngIf"],[1,"button","column","is-medium","is-danger","is-4",3,"click"],["cancelButton",""],[1,"button","column","is-medium","is-success","is-offset-4",3,"click"],["okButton",""]],template:function(e,i){1&e&&(g(0,"div",0)(1,"div",1),E("click",function(){return i.backdropHandler()}),y(),g(2,"div",2),E("@modalState.done",function(o){return i.animationDone(o)}),M(3,Xj,5,2,"header",3),M(4,Zj,2,0,"section",4),M(5,Jj,1,1,"section",5),g(6,"section",6),k(7,"div",null,7),y(),M(9,n$,4,2,"footer",8),y()()),2&e&&(p(2),_("@modalState",i.open?"active":"inactive")("ngStyle",X(7,i$,i.config.width)),p(1),_("ngIf",i.config.title),p(1),_("ngIf",i.config.loading),p(1),_("ngIf",!i.config.loading&&i.config.message&&i.config.message.length>0),p(1),_("ngClass",X(9,r$,!i.hasComponent||i.config.loading)),p(3),_("ngIf",!i.config.loading&&(i.config.cancelButtonText.length>0||i.config.okButtonText.length>0)))},dependencies:[Ze,$e,$a,hM],encapsulation:2,data:{animation:[Hr("modalState",[pn("void => active",In("200ms",Ps([Fe({opacity:"0",top:"5%",offset:0}),Fe({opacity:"1",top:"0",offset:1})]))),pn("active => inactive",In("200ms",Ps([Fe({opacity:"1",offset:0}),Fe({opacity:"0",top:"5%",offset:1})])))])]}}),t})();class vM{constructor(n,e){this._parentInjector=n,this._customTokens=e}get(n,e){const i=this._customTokens.get(n);return typeof i<"u"?i:this._parentInjector.get(n,e)}}function yM(t,...n){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let e of n)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}let A$=(()=>{class t{constructor(e,i){this.domService=e,this.injector=i}open(e){return this.getComponentRef(e).instance}openFromComponent(e,i){const r=this.getComponentRef(i);return r.instance._setComponent(e),r.instance}getComponentRef(e){const i=new WeakMap;i.set($m,$m);let r=new vM(this.injector,i);const o=this.domService.attachComponentPortal($m,r);return o.instance.config=yM(new R$,e),o.instance.afterClosed().subscribe(()=>{o.destroy()}),o}}return t.\u0275fac=function(e){return new(e||t)(R(No),R(Ut))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();class R${constructor(){this.okButtonText="",this.cancelButtonText="",this.width="",this.hasBackdrop=!0,this.okHandler=null,this.cancelHandler=null,this.loading=!1}}let bM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({providers:[A$],imports:[St,vn]}),t})(),wM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[St,vn]}),t})(),CM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[St,vn,sl,Rz]}),t})(),Wm=(()=>{class t{constructor(){this.selectedValue$=new K,this.afterViewInit$=new F,this.selectedFoundRow=0,this.isActive=!1,this.foundRows=[],this.isSearching=!1,this.searchString="",this.enabled=!0,this._isMouseNavigating=!1}ngAfterViewInit(){this.afterViewInit$.emit()}open(){!this.enabled||(this._reset(),this.focusInputSearch(),this.isActive=!0,this.searching(""))}close(){this.isActive=!1,this._reset()}_reset(){this.foundRows=[],this.selectedFoundRow=0,this.searchString="",setTimeout(()=>{this.inputSearch.nativeElement.value=""})}inputOnKeyDown(e){27===e.keyCode&&this.close()}documentOnKeyDown(e){let i=!1;this._isMouseNavigating=!1,i=this.openFromKeyboard(e)||i,i=this.keyboardNavigate(e)||i,i=this.onEnter(e)||i,i&&e.preventDefault()}mouseMove(){this._isMouseNavigating=!0}mouseOver(e){this._isMouseNavigating&&(this.selectedFoundRow=e)}getSpecialKey(e){return e.metaKey?navigator.platform.match("Mac")?"cmd":"windows":e.ctrlKey?"ctrl":e.shiftKey?"shift":e.altKey?"alt":null}isSubscribedKey(e){return this.config.keyCodes.filter(i=>this.getSpecialKey(e)===i.specialKey&&e.key===i.key).length>0}openFromKeyboard(e){return!(this.isActive||!this.config||!this.isSubscribedKey(e)||(this.open(),0))}keyboardNavigate(e){const i=e.keyCode;if(!this.isActive)return!1;let r=!1;if(40===i||9===i){do{this.selectedFoundRow++,this.selectedFoundRow>=this.foundRows.length&&(this.selectedFoundRow=0)}while(!this.isSelectedFoundRowSelectable());r=!0}else if(38===i){do{this.selectedFoundRow--,this.selectedFoundRow<0&&(this.selectedFoundRow=this.foundRows.length-1)}while(!this.isSelectedFoundRowSelectable());r=!0}if(r){const o=document.querySelector(`a.nwb-modal-search-row[tabindex="${this.selectedFoundRow}"`);o&&(o.focus(),this.focusInputSearch())}return r}focusInputSearch(){setTimeout(()=>{this.inputSearch.nativeElement.focus()})}onEnter(e){return!(!this.isActive||13!==e.keyCode||(this.selectValue(),0))}isSelectedFoundRowSelectable(){return this.foundRows.length>0&&this.foundRows[this.selectedFoundRow]&&this.foundRows[this.selectedFoundRow].isSelectable}selectFirstSelectableRow(){if(0!==this.foundRows.length)for(this.selectedFoundRow=0;!this.isSelectedFoundRowSelectable();)this.selectedFoundRow++,this.selectedFoundRow>=this.foundRows.length&&(this.selectedFoundRow=0)}selectValue(){this.foundRows.length>0&&this.foundRows[this.selectedFoundRow]&&(this.selectedValue$.next(this.foundRows[this.selectedFoundRow]),this.close())}searching(e){let i;this.searchSubscription&&this.searchSubscription.unsubscribe(),"function"==typeof this.config.customSearchFn?i=this.config.customSearchFn(e):this.config.records&&(i=this.searchFromRecords(e)),Array.isArray(i)?(this.foundRows=this.flattenNwbFoundRow(i),this.selectFirstSelectableRow()):i&&(this.isSearching=!0,this.searchSubscription=i.pipe(ju(()=>this.isSearching=!1)).subscribe(r=>{this.foundRows=this.flattenNwbFoundRow(r),this.selectFirstSelectableRow()}))}flattenNwbFoundRow(e){let i=[],r=!1;return e.forEach(o=>{const s={text:o.text,isSelectable:!o.hasOwnProperty("isSelectable")||o.isSelectable,isChild:!1,data:o.data||null,isParent:o.children&&o.children.length>0};s.isSelectable&&(r=!0),i.push(s),o.children&&o.children.forEach(a=>{const l={text:a.text,isSelectable:!a.hasOwnProperty("isSelectable")||a.isSelectable,isChild:!0,data:a.data||null,isParent:!1};l.isSelectable&&(r=!0),i.push(l)})}),!r&&i.length>0&&(console.error("No selectable rows! empty found rows to avoid infinite loop"),i=[]),i}searchFromRecords(e){return xe.create(i=>{const r=this.searchAllWordsInFoundRows(e,this.config.records);i.next(r),i.complete()})}searchAllWordsInFoundRows(e,i){const r=e.split(" ").map(a=>`(?=.*${a})`).join(""),o=new RegExp(r,"ig"),s=[];return i.forEach(a=>{let l=[];if(a.children&&(l=a.children.filter(c=>-1!==c.text.search(o))),l.length||-1!==a.text.search(o)){const c=Object.assign({},a);c.children=l,s.push(c)}}),s}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["nwb-modal-search"]],viewQuery:function(e,i){if(1&e&&(tt(uM,5),tt(u$,7),tt(dM,5)),2&e){let r;Ce(r=De())&&(i.header=r.first),Ce(r=De())&&(i.inputSearch=r.first),Ce(r=De())&&(i.footer=r.first)}},hostAttrs:[1,"nwb-modal-search"],hostBindings:function(e,i){1&e&&E("keydown",function(o){return i.documentOnKeyDown(o)},0,Or)},decls:14,vars:19,consts:[[3,"ngClass"],[1,"modal-background",3,"click"],[1,"modal-content","modal-card",3,"ngClass","click"],["class","modal-card-head",4,"ngIf"],[1,"modal-card-body",3,"ngClass"],[1,"field","nwb-modal-search"],[1,"control","has-icons-left"],["type","text",1,"input",3,"ngModel","placeholder","ngModelChange","keydown"],["inputSearch",""],[1,"icon","is-large","is-left"],[1,"fa","fa-search"],["class","nwb-modal-search-found-rows",4,"ngIf"],[4,"ngIf"],["class","modal-card-foot",4,"ngIf"],[1,"modal-card-head"],["header",""],[1,"nwb-modal-search-found-rows"],["class","nwb-modal-search-row",3,"ngClass","tabindex","mousemove","mouseover","click",4,"ngFor","ngForOf"],[1,"nwb-modal-search-row",3,"ngClass","tabindex","mousemove","mouseover","click"],[1,"nwb-modal-search-row-content",3,"innerHTML"],[1,"modal-card-foot"],["footer",""]],template:function(e,i){1&e&&(g(0,"div",0)(1,"div",1),E("click",function(){return i.close()}),y(),g(2,"div",2),E("click",function(){return i.focusInputSearch()}),M(3,d$,2,0,"header",3),g(4,"section",4)(5,"div",5)(6,"div",6)(7,"input",7,8),E("ngModelChange",function(o){return i.searching(o)})("keydown",function(o){return i.inputOnKeyDown(o)}),y(),g(9,"span",9),k(10,"i",10),y()(),M(11,p$,2,1,"div",11),M(12,g$,1,0,"nwb-spinner",12),y()(),M(13,m$,2,0,"footer",13),y()()),2&e&&(function _w(t,n,e){Ii(Hn,Ui,gs(N(),t,n,e),!0)}("modal ",i.config.extraClasses?" "+i.config.extraClasses:"",""),_("ngClass",X(12,Ml,i.isActive)),p(2),_("ngClass",X(14,Ml,i.isActive)),p(1),_("ngIf",i.config.hasHeader),p(1),_("ngClass",Wn(16,_$,!i.config.hasHeader,!i.config.hasFooter)),p(3),Lf("placeholder",i.config.inputPlaceholder),_("ngModel",i.searchString),p(4),_("ngIf",!i.isSearching&&i.foundRows.length>0),p(1),_("ngIf",i.isSearching),p(1),_("ngIf",i.config.hasFooter))},dependencies:[Ze,Ai,$e,Cr,hi,Xn,hM],encapsulation:2}),t})(),P$=(()=>{class t{constructor(e,i){this.domService=e,this.injector=i}create(e){return this.getComponentRef(e).instance}getComponentRef(e){const i=new WeakMap;i.set(Wm,Wm);let r=new vM(this.injector,i);const o=this.domService.attachComponentPortal(Wm,r);return o.instance.config=yM(new k$,e),o}}return t.\u0275fac=function(e){return new(e||t)(R(No),R(Ut))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})();class k${constructor(){this.hasHeader=!1,this.hasFooter=!1,this.keyCodes=[{specialKey:"cmd",key:"k"},{specialKey:"ctrl",key:"k"}],this.inputPlaceholder="Jump to...",this.extraClasses=""}}let DM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({providers:[P$],imports:[St,sl,vn]}),t})(),O$=(()=>{class t{constructor(){this.changes=new K,this.itemsPerPageLabel="Items per page:",this.ofLabel="of",this.getRangeLabel=(e,i,r)=>{if(0==r||0==i)return`0 ${this.ofLabel} ${r}`;const o=e*i;return`${o+1} - ${o<(r=Math.max(r,0))?Math.min(o+i,r):o+i} ${this.ofLabel} ${r}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})(),SM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({providers:[O$],imports:[St,vn]}),t})(),EM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[St,vn]}),t})(),N$=(()=>{class t{constructor(){this._afterClosed=new K,this.open=!1,this.manualClose=!1}ngOnInit(){this.open=!0,this.config.duration>0&&(this.timer=setTimeout(()=>this.dismiss(!1),this.config.duration))}dismiss(e){this.open=!1,this.manualClose=e}animationDone(e){"active"===e.fromState&&"inactive"===e.toState&&(this._afterClosed.next(this.manualClose),this._afterClosed.complete())}afterClosed(){return this._afterClosed.asObservable()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["nwb-snack-bar"]],hostAttrs:[1,"nwb-snack-bar"],decls:4,vars:8,consts:[[1,"columns"],[1,"column","notification--message",3,"ngClass","innerHTML"],["class","column is-half",4,"ngIf"],[1,"column","is-half"],[3,"click"]],template:function(e,i){1&e&&(g(0,"div"),E("@state.done",function(o){return i.animationDone(o)}),g(1,"div",0),k(2,"div",1),M(3,y$,3,3,"div",2),y()()),2&e&&(Aa("notification is-active "+(i.config.color?i.config.color:"is-transparent")),_("@state",i.open?"active":"inactive"),p(2),_("ngClass",X(6,b$,i.config.action))("innerHTML",i.config.message,Un),p(1),_("ngIf",i.config.action))},dependencies:[Ze,$e],encapsulation:2,data:{animation:[Hr("state",[ci("void",Fe({bottom:"-100px"})),ci("inactive",Fe({bottom:"-100px"})),ci("active",Fe({bottom:"0px"})),pn("void => active",In(300)),pn("active => inactive",In(300))])]}}),t})(),F$=(()=>{class t{constructor(e){this.domService=e}open(e){return this.getComponentRef(e).instance}getComponentRef(e){const i=this.domService.attachComponentPortal(N$);return i.instance.config=e,i.instance.afterClosed().subscribe(()=>{i.destroy()}),i}}return t.\u0275fac=function(e){return new(e||t)(R(No))},t.\u0275prov=V({token:t,factory:t.\u0275fac}),t})(),IM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({providers:[F$],imports:[St,vn]}),t})(),L$=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t})();const $s=(()=>{class t{}return t.ENTERING="225ms",t})().ENTERING+" "+L$.STANDARD_CURVE;Hr("arrowDirection",[ci("active-asc, asc",Fe({transform:"rotate(0deg)"})),ci("active-desc, desc",Fe({transform:"rotate(-180deg)"})),pn("active-asc <=> active-desc",In($s))]),Hr("arrowOpacity",[ci("desc-to-active, asc-to-active, active",Fe({opacity:1})),ci("desc-to-hint, asc-to-hint, hint",Fe({opacity:.54})),ci("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Fe({opacity:0})),pn("* => asc, * => desc, * => active, * => hint, * => void",In("0ms")),pn("* <=> *",In($s))]),Hr("arrowPosition",[pn("* => desc-to-hint, * => desc-to-active",In($s,Ps([Fe({transform:"translateY(-25%)"}),Fe({transform:"translateY(0)"})]))),pn("* => hint-to-desc, * => active-to-desc",In($s,Ps([Fe({transform:"translateY(0)"}),Fe({transform:"translateY(25%)"})]))),pn("* => asc-to-hint, * => asc-to-active",In($s,Ps([Fe({transform:"translateY(25%)"}),Fe({transform:"translateY(0)"})]))),pn("* => hint-to-asc, * => active-to-asc",In($s,Ps([Fe({transform:"translateY(0)"}),Fe({transform:"translateY(-25%)"})]))),ci("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Fe({transform:"translateY(0)"})),ci("hint-to-desc, active-to-desc, desc",Fe({transform:"translateY(-25%)"})),ci("hint-to-asc, active-to-asc, asc",Fe({transform:"translateY(25%)"}))]);let MM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[St,vn,cM]}),t})(),TM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[St,sl,vn]}),t})(),xM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[St,vn]}),t})();new U("NWB_DATE_LOCALE",{providedIn:"root",factory:function V$(){return zt(ji)}});let AM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[St,vn]}),t})(),B$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[vn,mM,_M,bM,wM,DM,SM,EM,IM,MM,TM,xM,CM,AM]}),t})();function wd(t,n=_d){return dt((e,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+t,u=n.now();if(u<c)return r=this.schedule(void 0,c-u),void i.add(r);a()}e.subscribe(rt(i,c=>{o=c,s=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function RM(t,n=xr){return t=t??H$,dt((e,i)=>{let r,o=!0;e.subscribe(rt(i,s=>{const a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function H$(t,n){return t===n}function Qi(t){return getComputedStyle(t)}function An(t,n){for(var e in n){var i=n[e];"number"==typeof i&&(i+="px"),t.style[e]=i}return t}function Cd(t){var n=document.createElement("div");return n.className=t,n}var PM=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Jr(t,n){if(!PM)throw new Error("No element matching method supported");return PM.call(t,n)}function Ws(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function kM(t,n){return Array.prototype.filter.call(t.children,function(e){return Jr(e,n)})}var It_element_thumb=function(t){return"ps__thumb-"+t},It_element_rail=function(t){return"ps__rail-"+t},It_element_consuming="ps__child--consume",It_state_focus="ps--focus",It_state_clicking="ps--clicking",It_state_active=function(t){return"ps--active-"+t},It_state_scrolling=function(t){return"ps--scrolling-"+t},OM={x:null,y:null};function NM(t,n){var e=t.element.classList,i=It_state_scrolling(n);e.contains(i)?clearTimeout(OM[n]):e.add(i)}function FM(t,n){OM[n]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(It_state_scrolling(n))},t.settings.scrollingThreshold)}var xl=function(n){this.element=n,this.handlers={}},LM={isEmpty:{configurable:!0}};xl.prototype.bind=function(n,e){typeof this.handlers[n]>"u"&&(this.handlers[n]=[]),this.handlers[n].push(e),this.element.addEventListener(n,e,!1)},xl.prototype.unbind=function(n,e){var i=this;this.handlers[n]=this.handlers[n].filter(function(r){return!(!e||r===e)||(i.element.removeEventListener(n,r,!1),!1)})},xl.prototype.unbindAll=function(){for(var n in this.handlers)this.unbind(n)},LM.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(n){return 0===t.handlers[n].length})},Object.defineProperties(xl.prototype,LM);var Gs=function(){this.eventElements=[]};function Dd(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,void 0),n}function Sd(t,n,e,i,r){var o;if(void 0===i&&(i=!0),void 0===r&&(r=!1),"top"===n)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==n)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function U$(t,n,e,i,r){var o=e[0],s=e[1],a=e[2],l=e[3],c=e[4],u=e[5];void 0===i&&(i=!0),void 0===r&&(r=!1);var d=t.element;t.reach[l]=null,d[a]<1&&(t.reach[l]="start"),d[a]>t[o]-t[s]-1&&(t.reach[l]="end"),n&&(d.dispatchEvent(Dd("ps-scroll-"+l)),n<0?d.dispatchEvent(Dd("ps-scroll-"+c)):n>0&&d.dispatchEvent(Dd("ps-scroll-"+u)),i&&function z$(t,n){NM(t,n),FM(t,n)}(t,l)),t.reach[l]&&(n||r)&&d.dispatchEvent(Dd("ps-"+l+"-reach-"+t.reach[l]))}(t,e,o,i,r)}function at(t){return parseInt(t,10)||0}Gs.prototype.eventElement=function(n){var e=this.eventElements.filter(function(i){return i.element===n})[0];return e||(e=new xl(n),this.eventElements.push(e)),e},Gs.prototype.bind=function(n,e,i){this.eventElement(n).bind(e,i)},Gs.prototype.unbind=function(n,e,i){var r=this.eventElement(n);r.unbind(e,i),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},Gs.prototype.unbindAll=function(){this.eventElements.forEach(function(n){return n.unbindAll()}),this.eventElements=[]},Gs.prototype.once=function(n,e,i){var r=this.eventElement(n),o=function(s){r.unbind(e,o),i(s)};r.bind(e,o)};var qs={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function Ir(t){var n=t.element,e=Math.floor(n.scrollTop),i=n.getBoundingClientRect();t.containerWidth=Math.ceil(i.width),t.containerHeight=Math.ceil(i.height),t.contentWidth=n.scrollWidth,t.contentHeight=n.scrollHeight,n.contains(t.scrollbarXRail)||(kM(n,It_element_rail("x")).forEach(function(r){return Ws(r)}),n.appendChild(t.scrollbarXRail)),n.contains(t.scrollbarYRail)||(kM(n,It_element_rail("y")).forEach(function(r){return Ws(r)}),n.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=VM(t,at(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=at((t.negativeScrollAdjustment+n.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=VM(t,at(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=at(e*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function W$(t,n){var e={width:n.railXWidth},i=Math.floor(t.scrollTop);e.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+n.containerWidth-n.contentWidth:t.scrollLeft,n.isScrollbarXUsingBottom?e.bottom=n.scrollbarXBottom-i:e.top=n.scrollbarXTop+i,An(n.scrollbarXRail,e);var r={top:i,height:n.railYHeight};n.isScrollbarYUsingRight?r.right=n.isRtl?n.contentWidth-(n.negativeScrollAdjustment+t.scrollLeft)-n.scrollbarYRight-n.scrollbarYOuterWidth-9:n.scrollbarYRight-t.scrollLeft:r.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+2*n.containerWidth-n.contentWidth-n.scrollbarYLeft-n.scrollbarYOuterWidth:n.scrollbarYLeft+t.scrollLeft,An(n.scrollbarYRail,r),An(n.scrollbarX,{left:n.scrollbarXLeft,width:n.scrollbarXWidth-n.railBorderXWidth}),An(n.scrollbarY,{top:n.scrollbarYTop,height:n.scrollbarYHeight-n.railBorderYWidth})}(n,t),t.scrollbarXActive?n.classList.add(It_state_active("x")):(n.classList.remove(It_state_active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,n.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?n.classList.add(It_state_active("y")):(n.classList.remove(It_state_active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,n.scrollTop=0)}function VM(t,n){return t.settings.minScrollbarLength&&(n=Math.max(n,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(n=Math.min(n,t.settings.maxScrollbarLength)),n}function BM(t,n){var e=n[0],i=n[1],r=n[2],o=n[3],s=n[4],a=n[5],l=n[6],c=n[7],u=n[8],d=t.element,h=null,f=null,m=null;function b(I){I.touches&&I.touches[0]&&(I[r]=I.touches[0].pageY),d[l]=h+m*(I[r]-f),NM(t,c),Ir(t),I.stopPropagation(),I.preventDefault()}function C(){FM(t,c),t[u].classList.remove(It_state_clicking),t.event.unbind(t.ownerDocument,"mousemove",b)}function D(I,S){h=d[l],S&&I.touches&&(I[r]=I.touches[0].pageY),f=I[r],m=(t[i]-t[e])/(t[o]-t[a]),S?t.event.bind(t.ownerDocument,"touchmove",b):(t.event.bind(t.ownerDocument,"mousemove",b),t.event.once(t.ownerDocument,"mouseup",C),I.preventDefault()),t[u].classList.add(It_state_clicking),I.stopPropagation()}t.event.bind(t[s],"mousedown",function(I){D(I)}),t.event.bind(t[s],"touchstart",function(I){D(I,!0)})}var Z$={"click-rail":function G$(t){t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,Ir(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,Ir(t),e.stopPropagation()})},"drag-thumb":function q$(t){BM(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),BM(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function Y$(t){var n=t.element;t.event.bind(t.ownerDocument,"keydown",function(o){if(!(o.isDefaultPrevented&&o.isDefaultPrevented()||o.defaultPrevented)&&(Jr(n,":hover")||Jr(t.scrollbarX,":focus")||Jr(t.scrollbarY,":focus"))){var s=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(s){if("IFRAME"===s.tagName)s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(function j$(t){return Jr(t,"input,[contenteditable]")||Jr(t,"select,[contenteditable]")||Jr(t,"textarea,[contenteditable]")||Jr(t,"button,[contenteditable]")}(s))return}var a=0,l=0;switch(o.which){case 37:a=o.metaKey?-t.contentWidth:o.altKey?-t.containerWidth:-30;break;case 38:l=o.metaKey?t.contentHeight:o.altKey?t.containerHeight:30;break;case 39:a=o.metaKey?t.contentWidth:o.altKey?t.containerWidth:30;break;case 40:l=o.metaKey?-t.contentHeight:o.altKey?-t.containerHeight:-30;break;case 32:l=o.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:l=t.containerHeight;break;case 34:l=-t.containerHeight;break;case 36:l=t.contentHeight;break;case 35:l=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==a||t.settings.suppressScrollY&&0!==l||(n.scrollTop-=l,n.scrollLeft+=a,Ir(t),function r(o,s){var a=Math.floor(n.scrollTop);if(0===o){if(!t.scrollbarYActive)return!1;if(0===a&&s>0||a>=t.contentHeight-t.containerHeight&&s<0)return!t.settings.wheelPropagation}var l=n.scrollLeft;if(0===s){if(!t.scrollbarXActive)return!1;if(0===l&&o<0||l>=t.contentWidth-t.containerWidth&&o>0)return!t.settings.wheelPropagation}return!0}(a,l)&&o.preventDefault())}})},wheel:function K$(t){var n=t.element;function o(s){var a=function i(s){var a=s.deltaX,l=-1*s.deltaY;return(typeof a>"u"||typeof l>"u")&&(a=-1*s.wheelDeltaX/6,l=s.wheelDeltaY/6),s.deltaMode&&1===s.deltaMode&&(a*=10,l*=10),a!=a&&l!=l&&(a=0,l=s.wheelDelta),s.shiftKey?[-l,-a]:[a,l]}(s),l=a[0],c=a[1];if(!function r(s,a,l){if(!qs.isWebKit&&n.querySelector("select:focus"))return!0;if(!n.contains(s))return!1;for(var c=s;c&&c!==n;){if(c.classList.contains(It_element_consuming))return!0;var u=Qi(c);if(l&&u.overflowY.match(/(scroll|auto)/)){var d=c.scrollHeight-c.clientHeight;if(d>0&&(c.scrollTop>0&&l<0||c.scrollTop<d&&l>0))return!0}if(a&&u.overflowX.match(/(scroll|auto)/)){var h=c.scrollWidth-c.clientWidth;if(h>0&&(c.scrollLeft>0&&a<0||c.scrollLeft<h&&a>0))return!0}c=c.parentNode}return!1}(s.target,l,c)){var u=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(c?n.scrollTop-=c*t.settings.wheelSpeed:n.scrollTop+=l*t.settings.wheelSpeed,u=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(l?n.scrollLeft+=l*t.settings.wheelSpeed:n.scrollLeft-=c*t.settings.wheelSpeed,u=!0):(n.scrollTop-=c*t.settings.wheelSpeed,n.scrollLeft+=l*t.settings.wheelSpeed),Ir(t),u=u||function e(s,a){var l=Math.floor(n.scrollTop),c=0===n.scrollTop,u=l+n.offsetHeight===n.scrollHeight,d=0===n.scrollLeft,h=n.scrollLeft+n.offsetWidth===n.scrollWidth;return!(Math.abs(a)>Math.abs(s)?c||u:d||h)||!t.settings.wheelPropagation}(l,c),u&&!s.ctrlKey&&(s.stopPropagation(),s.preventDefault())}}typeof window.onwheel<"u"?t.event.bind(n,"wheel",o):typeof window.onmousewheel<"u"&&t.event.bind(n,"mousewheel",o)},touch:function Q$(t){if(qs.supportsTouch||qs.supportsIePointer){var n=t.element,r={},o=0,s={},a=null;qs.supportsTouch?(t.event.bind(n,"touchstart",u),t.event.bind(n,"touchmove",h),t.event.bind(n,"touchend",f)):qs.supportsIePointer&&(window.PointerEvent?(t.event.bind(n,"pointerdown",u),t.event.bind(n,"pointermove",h),t.event.bind(n,"pointerup",f)):window.MSPointerEvent&&(t.event.bind(n,"MSPointerDown",u),t.event.bind(n,"MSPointerMove",h),t.event.bind(n,"MSPointerUp",f)))}function i(m,b){n.scrollTop-=b,n.scrollLeft-=m,Ir(t)}function l(m){return m.targetTouches?m.targetTouches[0]:m}function c(m){return!(m.pointerType&&"pen"===m.pointerType&&0===m.buttons||!(m.targetTouches&&1===m.targetTouches.length||m.pointerType&&"mouse"!==m.pointerType&&m.pointerType!==m.MSPOINTER_TYPE_MOUSE))}function u(m){if(c(m)){var b=l(m);r.pageX=b.pageX,r.pageY=b.pageY,o=(new Date).getTime(),null!==a&&clearInterval(a)}}function h(m){if(c(m)){var b=l(m),C={pageX:b.pageX,pageY:b.pageY},D=C.pageX-r.pageX,I=C.pageY-r.pageY;if(function d(m,b,C){if(!n.contains(m))return!1;for(var D=m;D&&D!==n;){if(D.classList.contains(It_element_consuming))return!0;var I=Qi(D);if(C&&I.overflowY.match(/(scroll|auto)/)){var S=D.scrollHeight-D.clientHeight;if(S>0&&(D.scrollTop>0&&C<0||D.scrollTop<S&&C>0))return!0}if(b&&I.overflowX.match(/(scroll|auto)/)){var B=D.scrollWidth-D.clientWidth;if(B>0&&(D.scrollLeft>0&&b<0||D.scrollLeft<B&&b>0))return!0}D=D.parentNode}return!1}(m.target,D,I))return;i(D,I),r=C;var S=(new Date).getTime(),B=S-o;B>0&&(s.x=D/B,s.y=I/B,o=S),function e(m,b){var C=Math.floor(n.scrollTop),D=n.scrollLeft,I=Math.abs(m),S=Math.abs(b);if(S>I){if(b<0&&C===t.contentHeight-t.containerHeight||b>0&&0===C)return 0===window.scrollY&&b>0&&qs.isChrome}else if(I>S&&(m<0&&D===t.contentWidth-t.containerWidth||m>0&&0===D))return!0;return!0}(D,I)&&m.preventDefault()}}function f(){t.settings.swipeEasing&&(clearInterval(a),a=setInterval(function(){t.isInitialized?clearInterval(a):s.x||s.y?Math.abs(s.x)<.01&&Math.abs(s.y)<.01?clearInterval(a):(i(30*s.x,30*s.y),s.x*=.8,s.y*=.8):clearInterval(a)},10))}}},Al=function(n,e){var i=this;if(void 0===e&&(e={}),"string"==typeof n&&(n=document.querySelector(n)),!n||!n.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var r in this.element=n,n.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[r]=e[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var u,c,o=function(){return n.classList.add(It_state_focus)},s=function(){return n.classList.remove(It_state_focus)};this.isRtl="rtl"===Qi(n).direction,!0===this.isRtl&&n.classList.add("ps__rtl"),this.isNegativeScroll=(c=n.scrollLeft,n.scrollLeft=-1,u=n.scrollLeft<0,n.scrollLeft=c,u),this.negativeScrollAdjustment=this.isNegativeScroll?n.scrollWidth-n.clientWidth:0,this.event=new Gs,this.ownerDocument=n.ownerDocument||document,this.scrollbarXRail=Cd(It_element_rail("x")),n.appendChild(this.scrollbarXRail),this.scrollbarX=Cd(It_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var a=Qi(this.scrollbarXRail);this.scrollbarXBottom=parseInt(a.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=at(a.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=at(a.borderLeftWidth)+at(a.borderRightWidth),An(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=at(a.marginLeft)+at(a.marginRight),An(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Cd(It_element_rail("y")),n.appendChild(this.scrollbarYRail),this.scrollbarY=Cd(It_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=Qi(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=at(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function $$(t){var n=Qi(t);return at(n.width)+at(n.paddingLeft)+at(n.paddingRight)+at(n.borderLeftWidth)+at(n.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=at(l.borderTopWidth)+at(l.borderBottomWidth),An(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=at(l.marginTop)+at(l.marginBottom),An(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:n.scrollLeft<=0?"start":n.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:n.scrollTop<=0?"start":n.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(c){return Z$[c](i)}),this.lastScrollTop=Math.floor(n.scrollTop),this.lastScrollLeft=n.scrollLeft,this.event.bind(this.element,"scroll",function(c){return i.onScroll(c)}),Ir(this)};Al.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,An(this.scrollbarXRail,{display:"block"}),An(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=at(Qi(this.scrollbarXRail).marginLeft)+at(Qi(this.scrollbarXRail).marginRight),this.railYMarginHeight=at(Qi(this.scrollbarYRail).marginTop)+at(Qi(this.scrollbarYRail).marginBottom),An(this.scrollbarXRail,{display:"none"}),An(this.scrollbarYRail,{display:"none"}),Ir(this),Sd(this,"top",0,!1,!0),Sd(this,"left",0,!1,!0),An(this.scrollbarXRail,{display:""}),An(this.scrollbarYRail,{display:""}))},Al.prototype.onScroll=function(n){!this.isAlive||(Ir(this),Sd(this,"top",this.element.scrollTop-this.lastScrollTop),Sd(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Al.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),Ws(this.scrollbarX),Ws(this.scrollbarY),Ws(this.scrollbarXRail),Ws(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Al.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(n){return!n.match(/^ps([-_].+|)$/)}).join(" ")};const J$=Al;var HM=function(){if(typeof Map<"u")return Map;function t(n,e){var i=-1;return n.some(function(r,o){return r[0]===e&&(i=o,!0)}),i}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(e){var i=t(this.__entries__,e),r=this.__entries__[i];return r&&r[1]},n.prototype.set=function(e,i){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=i:this.__entries__.push([e,i])},n.prototype.delete=function(e){var i=this.__entries__,r=t(i,e);~r&&i.splice(r,1)},n.prototype.has=function(e){return!!~t(this.__entries__,e)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(e,i){void 0===i&&(i=null);for(var r=0,o=this.__entries__;r<o.length;r++){var s=o[r];e.call(i,s[1],s[0])}},n}()}(),Gm=typeof window<"u"&&typeof document<"u"&&window.document===document,Ed=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),e4="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ed):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},o4=["top","right","bottom","left","width","height","size","weight"],s4=typeof MutationObserver<"u",a4=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function n4(t,n){var e=!1,i=!1,r=0;function o(){e&&(e=!1,t()),i&&a()}function s(){e4(o)}function a(){var l=Date.now();if(e){if(l-r<2)return;i=!0}else e=!0,i=!1,setTimeout(s,n);r=l}return a}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},t.prototype.removeObserver=function(n){var e=this.observers_,i=e.indexOf(n);~i&&e.splice(i,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var n=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return n.forEach(function(e){return e.broadcastActive()}),n.length>0},t.prototype.connect_=function(){!Gm||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s4?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!Gm||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(n){var e=n.propertyName,i=void 0===e?"":e;o4.some(function(o){return!!~i.indexOf(o)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),zM=function(t,n){for(var e=0,i=Object.keys(n);e<i.length;e++){var r=i[e];Object.defineProperty(t,r,{value:n[r],enumerable:!1,writable:!1,configurable:!0})}return t},Ys=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||Ed},UM=Md(0,0,0,0);function Id(t){return parseFloat(t)||0}function jM(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];return n.reduce(function(i,r){return i+Id(t["border-"+r+"-width"])},0)}var d4=typeof SVGGraphicsElement<"u"?function(t){return t instanceof Ys(t).SVGGraphicsElement}:function(t){return t instanceof Ys(t).SVGElement&&"function"==typeof t.getBBox};function f4(t){return Gm?d4(t)?function c4(t){var n=t.getBBox();return Md(0,0,n.width,n.height)}(t):function u4(t){var n=t.clientWidth,e=t.clientHeight;if(!n&&!e)return UM;var i=Ys(t).getComputedStyle(t),r=function l4(t){for(var e={},i=0,r=["top","right","bottom","left"];i<r.length;i++){var o=r[i];e[o]=Id(t["padding-"+o])}return e}(i),o=r.left+r.right,s=r.top+r.bottom,a=Id(i.width),l=Id(i.height);if("border-box"===i.boxSizing&&(Math.round(a+o)!==n&&(a-=jM(i,"left","right")+o),Math.round(l+s)!==e&&(l-=jM(i,"top","bottom")+s)),!function h4(t){return t===Ys(t).document.documentElement}(t)){var c=Math.round(a+o)-n,u=Math.round(l+s)-e;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(l-=u)}return Md(r.left,r.top,a,l)}(t):UM}function Md(t,n,e,i){return{x:t,y:n,width:e,height:i}}var g4=function(){function t(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Md(0,0,0,0),this.target=n}return t.prototype.isActive=function(){var n=f4(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},t}(),m4=function t(n,e){var i=function p4(t){var n=t.x,e=t.y,i=t.width,r=t.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(o.prototype);return zM(s,{x:n,y:e,width:i,height:r,top:e,right:n+i,bottom:r+e,left:n}),s}(e);zM(this,{target:n,contentRect:i})},_4=function(){function t(n,e,i){if(this.activeObservations_=[],this.observations_=new HM,"function"!=typeof n)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=e,this.callbackCtx_=i}return t.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(n instanceof Ys(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(n)||(e.set(n,new g4(n)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(n instanceof Ys(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;!e.has(n)||(e.delete(n),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&n.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,e=this.activeObservations_.map(function(i){return new m4(i.target,i.broadcastRect())});this.callback_.call(n,e,n),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),$M=typeof WeakMap<"u"?new WeakMap:new HM,WM=function t(n){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=a4.getInstance(),i=new _4(n,e,this);$M.set(this,i)};["observe","unobserve","disconnect"].forEach(function(t){WM.prototype[t]=function(){var n;return(n=$M.get(this))[t].apply(n,arguments)}});const y4=typeof Ed.ResizeObserver<"u"?Ed.ResizeObserver:WM;function b4(t,n){if(1&t&&(g(0,"div",3),k(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),y()),2&t){const e=w();jt("ps-at-top",e.states.top)("ps-at-left",e.states.left)("ps-at-right",e.states.right)("ps-at-bottom",e.states.bottom),p(1),jt("ps-indicator-show",e.indicatorY&&e.interaction),p(1),jt("ps-indicator-show",e.indicatorX&&e.interaction),p(1),jt("ps-indicator-show",e.indicatorX&&e.interaction),p(1),jt("ps-indicator-show",e.indicatorY&&e.interaction)}}const w4=["*"],C4=new U("PERFECT_SCROLLBAR_CONFIG");class D4{constructor(n,e,i,r){this.x=n,this.y=e,this.w=i,this.h=r}}class GM{constructor(n,e){this.x=n,this.y=e}}const qM=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class S4{constructor(n={}){this.assign(n)}assign(n={}){for(const e in n)this[e]=n[e]}}let qm=(()=>{class t{constructor(e,i,r,o,s){this.zone=e,this.differs=i,this.elementRef=r,this.platformId=o,this.defaults=s,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new K,this.disabled=!1,this.psScrollY=new F,this.psScrollX=new F,this.psScrollUp=new F,this.psScrollDown=new F,this.psScrollLeft=new F,this.psScrollRight=new F,this.psYReachEnd=new F,this.psYReachStart=new F,this.psXReachEnd=new F,this.psXReachStart=new F}ngOnInit(){if(!this.disabled&&Vr(this.platformId)){const e=new S4(this.defaults);e.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new J$(this.elementRef.nativeElement,e)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new y4(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{qM.forEach(i=>{const r=i.replace(/([A-Z])/g,o=>`-${o.toLowerCase()}`);xn(this.elementRef.nativeElement,r).pipe(km(20),_n(this.ngDestroy)).subscribe(o=>{this[i].emit(o)})})})}}ngOnDestroy(){Vr(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&typeof window<"u"&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&Vr(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(e){e.disabled&&!e.disabled.isFirstChange()&&Vr(this.platformId)&&e.disabled.currentValue!==e.disabled.previousValue&&(!0===e.disabled.currentValue?this.ngOnDestroy():!1===e.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){typeof window<"u"&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch{}},0))}geometry(e="scroll"){return new D4(this.elementRef.nativeElement[e+"Left"],this.elementRef.nativeElement[e+"Top"],this.elementRef.nativeElement[e+"Width"],this.elementRef.nativeElement[e+"Height"])}position(e=!1){return!e&&this.instance?new GM(this.instance.reach.x||0,this.instance.reach.y||0):new GM(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(e="any"){const i=this.elementRef.nativeElement;return"any"===e?i.classList.contains("ps--active-x")||i.classList.contains("ps--active-y"):"both"===e?i.classList.contains("ps--active-x")&&i.classList.contains("ps--active-y"):i.classList.contains("ps--active-"+e)}scrollTo(e,i,r){this.disabled||(null==i&&null==r?this.animateScrolling("scrollTop",e,r):(null!=e&&this.animateScrolling("scrollLeft",e,r),null!=i&&this.animateScrolling("scrollTop",i,r)))}scrollToX(e,i){this.animateScrolling("scrollLeft",e,i)}scrollToY(e,i){this.animateScrolling("scrollTop",e,i)}scrollToTop(e,i){this.animateScrolling("scrollTop",e||0,i)}scrollToLeft(e,i){this.animateScrolling("scrollLeft",e||0,i)}scrollToRight(e,i){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(e||0),i)}scrollToBottom(e,i){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(e||0),i)}scrollToElement(e,i,r){if("string"==typeof e&&(e=this.elementRef.nativeElement.querySelector(e)),e){const o=e.getBoundingClientRect(),s=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",o.left-s.left+this.elementRef.nativeElement.scrollLeft+(i||0),r),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",o.top-s.top+this.elementRef.nativeElement.scrollTop+(i||0),r)}}animateScrolling(e,i,r){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),!r||typeof window>"u")this.elementRef.nativeElement[e]=i;else if(i!==this.elementRef.nativeElement[e]){let o=0,s=0,a=performance.now(),l=this.elementRef.nativeElement[e];const c=(l-i)/2,u=d=>{s+=Math.PI/(r/(d-a)),o=Math.round(i+c+c*Math.cos(s)),this.elementRef.nativeElement[e]===l&&(s>=Math.PI?this.animateScrolling(e,i,0):(this.elementRef.nativeElement[e]=o,l=this.elementRef.nativeElement[e],a=d,this.animation=window.requestAnimationFrame(u)))};window.requestAnimationFrame(u)}}}return t.\u0275fac=function(e){return new(e||t)(v(Ne),v(Rs),v(Te),v(As),v(C4,8))},t.\u0275dir=z({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[Nt]}),t})(),Rl=(()=>{class t{constructor(e,i,r){this.zone=e,this.cdRef=i,this.platformId=r,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new K,this.stateUpdate=new K,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new F,this.psScrollX=new F,this.psScrollUp=new F,this.psScrollDown=new F,this.psScrollLeft=new F,this.psScrollRight=new F,this.psYReachEnd=new F,this.psYReachStart=new F,this.psXReachEnd=new F,this.psXReachStart=new F}ngOnInit(){Vr(this.platformId)&&(this.stateUpdate.pipe(_n(this.ngDestroy),RM((e,i)=>e===i&&!this.stateTimeout)).subscribe(e=>{this.stateTimeout&&typeof window<"u"&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===e||"y"===e?(this.interaction=!1,"x"===e?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===e&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===e||"right"===e?(this.states.left=!1,this.states.right=!1,this.states[e]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===e||"bottom"===e)&&(this.states.top=!1,this.states.bottom=!1,this.states[e]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&typeof window<"u"&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const e=this.directiveRef.elementRef.nativeElement;xn(e,"wheel").pipe(_n(this.ngDestroy)).subscribe(i=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(i,i.deltaX,i.deltaY)}),xn(e,"touchmove").pipe(_n(this.ngDestroy)).subscribe(i=>{if(!this.disabled&&this.autoPropagation){const r=i.touches[0].clientX,o=i.touches[0].clientY;this.checkPropagation(i,r-this.scrollPositionX,o-this.scrollPositionY),this.scrollPositionX=r,this.scrollPositionY=o}}),Vl(xn(e,"ps-scroll-x").pipe(xo("x")),xn(e,"ps-scroll-y").pipe(xo("y")),xn(e,"ps-x-reach-end").pipe(xo("right")),xn(e,"ps-y-reach-end").pipe(xo("bottom")),xn(e,"ps-x-reach-start").pipe(xo("left")),xn(e,"ps-y-reach-start").pipe(xo("top"))).pipe(_n(this.ngDestroy)).subscribe(i=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(i)})}}),window.setTimeout(()=>{qM.forEach(e=>{this.directiveRef&&(this.directiveRef[e]=this[e])})},0))}ngOnDestroy(){Vr(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&typeof window<"u"&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if(Vr(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const e=this.directiveRef.elementRef.nativeElement;this.usePropagationX=e.classList.contains("ps--active-x"),this.usePropagationY=e.classList.contains("ps--active-y")}}checkPropagation(e,i,r){this.interaction=!0;const o=i<0?-1:1,s=r<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==o)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==s))&&(e.preventDefault(),e.stopPropagation()),i&&(this.scrollDirectionX=o),r&&(this.scrollDirectionY=s),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(v(Ne),v($i),v(As))},t.\u0275cmp=be({type:t,selectors:[["perfect-scrollbar"]],viewQuery:function(e,i){if(1&e&&tt(qm,7),2&e){let r;Ce(r=De())&&(i.directiveRef=r.first)}},hostVars:4,hostBindings:function(e,i){2&e&&jt("ps-show-limits",i.autoPropagation)("ps-show-active",i.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:w4,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(e,i){1&e&&(Ss(),g(0,"div",0)(1,"div",1),gr(2),y(),M(3,b4,5,16,"div",2),y()),2&e&&(jt("ps",i.usePSClass),_("perfectScrollbar",i.config)("disabled",i.disabled),p(3),_("ngIf",i.scrollIndicators))},dependencies:[$e,qm],styles:["perfect-scrollbar{display:block;height:100%;max-height:100%;max-width:100%;overflow:hidden;position:relative;width:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-height:0;min-width:0}perfect-scrollbar[fxflex]>.ps{-webkit-box-flex:1;flex:1 1 auto;height:auto;min-height:0;min-width:0;width:auto}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit;align-content:inherit;align-items:inherit;display:flex;flex:1 1 auto;flex-direction:inherit;height:100%;justify-content:inherit;width:100%},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{display:block;height:100%;max-height:100%;max-width:100%;position:static;width:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{bottom:0;display:block;left:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{opacity:0;position:absolute;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-height:24px;min-width:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{min-height:100%;min-width:24px;top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{cursor:default;left:auto!important;right:0!important;top:0!important;transition:width .2s linear,opacity .2s linear,background-color .2s linear;width:10px}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{bottom:0!important;cursor:default;height:10px;left:0!important;top:auto!important;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{background-color:#eee;opacity:.9}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{background:linear-gradient(180deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{background:linear-gradient(0deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{background:linear-gradient(90deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{background:linear-gradient(270deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(180deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(0deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(90deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(270deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{-ms-overflow-style:none;-ms-touch-action:auto;overflow:hidden!important;overflow-anchor:none;touch-action:auto}.ps__rail-x{bottom:0;height:15px}.ps__rail-x,.ps__rail-y{-webkit-transition:background-color .2s linear,opacity .2s linear;display:none;opacity:0;position:absolute;transition:background-color .2s linear,opacity .2s linear}.ps__rail-y{right:0;width:15px}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{background-color:transparent;display:block}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{-webkit-transition:background-color .2s linear,height .2s ease-in-out;bottom:2px;height:6px;transition:background-color .2s linear,height .2s ease-in-out}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{-webkit-transition:background-color .2s linear,width .2s ease-in-out;right:2px;transition:background-color .2s linear,width .2s ease-in-out;width:6px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}"],encapsulation:2}),t})(),E4=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[St,St]}),t})();function YM(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function KM(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){YM(o,i,r,s,a,"next",l)}function a(l){YM(o,i,r,s,a,"throw",l)}s(void 0)})}}const I4=["wrapper"],M4=["sourceImage"];function T4(t,n){if(1&t){const e=q();g(0,"img",4,5),E("load",function(){return T(e),x(w().imageLoadedInView())})("mousedown",function(r){T(e);const o=w();return x(o.startMove(r,o.moveTypes.Drag))})("touchstart",function(r){T(e);const o=w();return x(o.startMove(r,o.moveTypes.Drag))}),y()}if(2&t){const e=w();oi("visibility",e.imageVisible?"visible":"hidden")("transform",e.safeTransformStyle),jt("ngx-ic-draggable",!e.disabled&&e.allowMoveImage),_("src",e.safeImgDataUrl,Ci)}}function x4(t,n){if(1&t){const e=q();Ue(0),g(1,"span",9),E("mousedown",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"topleft"))})("touchstart",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"topleft"))}),k(2,"span",10),y(),g(3,"span",11),k(4,"span",10),y(),g(5,"span",12),E("mousedown",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"topright"))})("touchstart",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"topright"))}),k(6,"span",10),y(),g(7,"span",13),k(8,"span",10),y(),g(9,"span",14),E("mousedown",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"bottomright"))})("touchstart",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"bottomright"))}),k(10,"span",10),y(),g(11,"span",15),k(12,"span",10),y(),g(13,"span",16),E("mousedown",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"bottomleft"))})("touchstart",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"bottomleft"))}),k(14,"span",10),y(),g(15,"span",17),k(16,"span",10),y(),g(17,"span",18),E("mousedown",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"top"))})("touchstart",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"top"))}),y(),g(18,"span",19),E("mousedown",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"right"))})("touchstart",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"right"))}),y(),g(19,"span",20),E("mousedown",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"bottom"))})("touchstart",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"bottom"))}),y(),g(20,"span",21),E("mousedown",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"left"))})("touchstart",function(r){T(e);const o=w(2);return x(o.startMove(r,o.moveTypes.Resize,"left"))}),y(),je()}}function A4(t,n){if(1&t){const e=q();g(0,"div",6),E("keydown",function(r){return T(e),x(w().keyboardAccess(r))}),g(1,"div",7),E("mousedown",function(r){T(e);const o=w();return x(o.startMove(r,o.moveTypes.Move))})("touchstart",function(r){T(e);const o=w();return x(o.startMove(r,o.moveTypes.Move))}),y(),M(2,x4,21,0,"ng-container",8),y()}if(2&t){const e=w();oi("top",e.cropper.y1,"px")("left",e.cropper.x1,"px")("width",e.cropper.x2-e.cropper.x1,"px")("height",e.cropper.y2-e.cropper.y1,"px")("margin-left","center"===e.alignImage?e.marginLeft:null)("visibility",e.imageVisible?"visible":"hidden"),jt("ngx-ic-round",e.roundCropper),p(2),_("ngIf",!e.hideResizeSquares)}}class R4{constructor(){this.format="png",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperMaxHeight=0,this.cropperMaxWidth=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.backgroundColor=null,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.alignImage="center",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize}setOptions(n){Object.keys(n).filter(e=>e in this).forEach(e=>this[e]=n[e]),this.validateOptions()}setOptionsFromChanges(n){Object.keys(n).filter(e=>e in this).forEach(e=>this[e]=n[e].currentValue),this.validateOptions()}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}}var Rn=(()=>{return(t=Rn||(Rn={})).Drag="drag",t.Move="move",t.Resize="resize",t.Pinch="pinch",Rn;var t})();function QM(t,n){return t/100*n}let F4=(()=>{class t{crop(e,i,r,o){const s=this.getImagePosition(e,i,r,o),a=s.x2-s.x1,l=s.y2-s.y1,c=document.createElement("canvas");c.width=a,c.height=l;const u=c.getContext("2d");if(!u)return null;null!=o.backgroundColor&&(u.fillStyle=o.backgroundColor,u.fillRect(0,0,a,l));const d=(o.transform.scale||1)*(o.transform.flipH?-1:1),h=(o.transform.scale||1)*(o.transform.flipV?-1:1),{translateH:f,translateV:m}=this.getCanvasTranslate(e,i,o),b=i.transformed;u.setTransform(d,0,0,h,b.size.width/2+f,b.size.height/2+m),u.translate(-s.x1/d,-s.y1/h),u.rotate((o.transform.rotate||0)*Math.PI/180),u.drawImage(b.image,-b.size.width/2,-b.size.height/2);const C={width:a,height:l,imagePosition:s,cropperPosition:{...r}};o.containWithinAspectRatio&&(C.offsetImagePosition=this.getOffsetImagePosition(e,i,r,o));const D=this.getResizeRatio(a,l,o);return 1!==D&&(C.width=Math.round(a*D),C.height=o.maintainAspectRatio?Math.round(C.width/o.aspectRatio):Math.round(l*D),function N4(t,n,e){const i=t.width,r=t.height,o=i/(n=Math.round(n)),s=r/(e=Math.round(e)),a=Math.ceil(o/2),l=Math.ceil(s/2),c=t.getContext("2d");if(c){const u=c.getImageData(0,0,i,r),d=c.createImageData(n,e),h=u.data,f=d.data;for(let m=0;m<e;m++)for(let b=0;b<n;b++){const C=4*(b+m*n),D=m*s;let I=0,S=0,B=0,ce=0,Ee=0,Je=0,tn=0;const yn=Math.floor(b*o),bn=Math.floor(m*s);let Zi=Math.ceil((b+1)*o),Zn=Math.ceil((m+1)*s);Zi=Math.min(Zi,i),Zn=Math.min(Zn,r);for(let nn=bn;nn<Zn;nn++){const Mr=Math.abs(D-nn)/l,no=b*o,W=Mr*Mr;for(let Q=yn;Q<Zi;Q++){const J=Math.abs(no-Q)/a,ye=Math.sqrt(W+J*J);if(ye>=1)continue;I=2*ye*ye*ye-3*ye*ye+1;const nt=4*(Q+nn*i);tn+=I*h[nt+3],B+=I,h[nt+3]<255&&(I=I*h[nt+3]/250),ce+=I*h[nt],Ee+=I*h[nt+1],Je+=I*h[nt+2],S+=I}}f[C]=ce/S,f[C+1]=Ee/S,f[C+2]=Je/S,f[C+3]=tn/B}t.width=n,t.height=e,c.putImageData(d,0,0)}}(c,C.width,C.height)),C.base64=c.toDataURL("image/"+o.format,this.getQuality(o)),C}getCanvasTranslate(e,i,r){if("px"===r.transform.translateUnit){const o=this.getRatio(e,i);return{translateH:(r.transform.translateH||0)*o,translateV:(r.transform.translateV||0)*o}}return{translateH:r.transform.translateH?QM(r.transform.translateH,i.transformed.size.width):0,translateV:r.transform.translateV?QM(r.transform.translateV,i.transformed.size.height):0}}getRatio(e,i){return i.transformed.size.width/e.nativeElement.offsetWidth}getImagePosition(e,i,r,o){const s=this.getRatio(e,i),a={x1:Math.round(r.x1*s),y1:Math.round(r.y1*s),x2:Math.round(r.x2*s),y2:Math.round(r.y2*s)};return o.containWithinAspectRatio||(a.x1=Math.max(a.x1,0),a.y1=Math.max(a.y1,0),a.x2=Math.min(a.x2,i.transformed.size.width),a.y2=Math.min(a.y2,i.transformed.size.height)),a}getOffsetImagePosition(e,i,r,o){const l=i.transformed.size.width/e.nativeElement.offsetWidth;let c,u;(o.canvasRotation+i.exifTransform.rotate)%2?(c=(i.transformed.size.width-i.original.size.height)/2,u=(i.transformed.size.height-i.original.size.width)/2):(c=(i.transformed.size.width-i.original.size.width)/2,u=(i.transformed.size.height-i.original.size.height)/2);const d={x1:Math.round(r.x1*l)-c,y1:Math.round(r.y1*l)-u,x2:Math.round(r.x2*l)-c,y2:Math.round(r.y2*l)-u};return o.containWithinAspectRatio||(d.x1=Math.max(d.x1,0),d.y1=Math.max(d.y1,0),d.x2=Math.min(d.x2,i.transformed.size.width),d.y2=Math.min(d.y2,i.transformed.size.height)),d}getResizeRatio(e,i,r){const o=r.resizeToWidth/e,s=r.resizeToHeight/i,a=new Array;r.resizeToWidth>0&&a.push(o),r.resizeToHeight>0&&a.push(s);const l=0===a.length?1:Math.min(...a);return l>1&&!r.onlyScaleDown?l:Math.min(l,1)}getQuality(e){return Math.min(1,Math.max(0,e.imageQuality/100))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),L4=(()=>{class t{resetCropperPosition(e,i,r){if(!e?.nativeElement)return;const o=e.nativeElement;if(r.cropperStaticHeight&&r.cropperStaticWidth)i.x1=0,i.x2=o.offsetWidth>r.cropperStaticWidth?r.cropperStaticWidth:o.offsetWidth,i.y1=0,i.y2=o.offsetHeight>r.cropperStaticHeight?r.cropperStaticHeight:o.offsetHeight;else{const s=Math.min(r.cropperScaledMaxWidth,o.offsetWidth),a=Math.min(r.cropperScaledMaxHeight,o.offsetHeight);if(r.maintainAspectRatio)if(o.offsetWidth/r.aspectRatio<o.offsetHeight){i.x1=0,i.x2=s;const l=s/r.aspectRatio;i.y1=(o.offsetHeight-l)/2,i.y2=i.y1+l}else{i.y1=0,i.y2=a;const l=a*r.aspectRatio;i.x1=(o.offsetWidth-l)/2,i.x2=i.x1+l}else i.x1=0,i.x2=s,i.y1=0,i.y2=a}}move(e,i,r){const o=this.getClientX(e)-i.clientX,s=this.getClientY(e)-i.clientY;r.x1=i.x1+o,r.y1=i.y1+s,r.x2=i.x2+o,r.y2=i.y2+s}resize(e,i,r,o,s){const a=this.getClientX(e)-i.clientX,l=this.getClientY(e)-i.clientY;switch(i.position){case"left":r.x1=Math.min(Math.max(i.x1+a,r.x2-s.cropperScaledMaxWidth),r.x2-s.cropperScaledMinWidth);break;case"topleft":r.x1=Math.min(Math.max(i.x1+a,r.x2-s.cropperScaledMaxWidth),r.x2-s.cropperScaledMinWidth),r.y1=Math.min(Math.max(i.y1+l,r.y2-s.cropperScaledMaxHeight),r.y2-s.cropperScaledMinHeight);break;case"top":r.y1=Math.min(Math.max(i.y1+l,r.y2-s.cropperScaledMaxHeight),r.y2-s.cropperScaledMinHeight);break;case"topright":r.x2=Math.max(Math.min(i.x2+a,r.x1+s.cropperScaledMaxWidth),r.x1+s.cropperScaledMinWidth),r.y1=Math.min(Math.max(i.y1+l,r.y2-s.cropperScaledMaxHeight),r.y2-s.cropperScaledMinHeight);break;case"right":r.x2=Math.max(Math.min(i.x2+a,r.x1+s.cropperScaledMaxWidth),r.x1+s.cropperScaledMinWidth);break;case"bottomright":r.x2=Math.max(Math.min(i.x2+a,r.x1+s.cropperScaledMaxWidth),r.x1+s.cropperScaledMinWidth),r.y2=Math.max(Math.min(i.y2+l,r.y1+s.cropperScaledMaxHeight),r.y1+s.cropperScaledMinHeight);break;case"bottom":r.y2=Math.max(Math.min(i.y2+l,r.y1+s.cropperScaledMaxHeight),r.y1+s.cropperScaledMinHeight);break;case"bottomleft":r.x1=Math.min(Math.max(i.x1+a,r.x2-s.cropperScaledMaxWidth),r.x2-s.cropperScaledMinWidth),r.y2=Math.max(Math.min(i.y2+l,r.y1+s.cropperScaledMaxHeight),r.y1+s.cropperScaledMinHeight);break;case"center":const c=e.scale,u=Math.min(Math.max(s.cropperScaledMinWidth,Math.abs(i.x2-i.x1)*c),s.cropperScaledMaxWidth),d=Math.min(Math.max(s.cropperScaledMinHeight,Math.abs(i.y2-i.y1)*c),s.cropperScaledMaxHeight);r.x1=i.clientX-u/2,r.x2=i.clientX+u/2,r.y1=i.clientY-d/2,r.y2=i.clientY+d/2,r.x1<0?(r.x2-=r.x1,r.x1=0):r.x2>o.width&&(r.x1-=r.x2-o.width,r.x2=o.width),r.y1<0?(r.y2-=r.y1,r.y1=0):r.y2>o.height&&(r.y1-=r.y2-o.height,r.y2=o.height)}s.maintainAspectRatio&&this.checkAspectRatio(i.position,r,o,s)}checkAspectRatio(e,i,r,o){let s=0,a=0;switch(e){case"top":i.x2=i.x1+(i.y2-i.y1)*o.aspectRatio,s=Math.max(i.x2-r.width,0),a=Math.max(0-i.y1,0),(s>0||a>0)&&(i.x2-=a*o.aspectRatio>s?a*o.aspectRatio:s,i.y1+=a*o.aspectRatio>s?a:s/o.aspectRatio);break;case"bottom":i.x2=i.x1+(i.y2-i.y1)*o.aspectRatio,s=Math.max(i.x2-r.width,0),a=Math.max(i.y2-r.height,0),(s>0||a>0)&&(i.x2-=a*o.aspectRatio>s?a*o.aspectRatio:s,i.y2-=a*o.aspectRatio>s?a:s/o.aspectRatio);break;case"topleft":i.y1=i.y2-(i.x2-i.x1)/o.aspectRatio,s=Math.max(0-i.x1,0),a=Math.max(0-i.y1,0),(s>0||a>0)&&(i.x1+=a*o.aspectRatio>s?a*o.aspectRatio:s,i.y1+=a*o.aspectRatio>s?a:s/o.aspectRatio);break;case"topright":i.y1=i.y2-(i.x2-i.x1)/o.aspectRatio,s=Math.max(i.x2-r.width,0),a=Math.max(0-i.y1,0),(s>0||a>0)&&(i.x2-=a*o.aspectRatio>s?a*o.aspectRatio:s,i.y1+=a*o.aspectRatio>s?a:s/o.aspectRatio);break;case"right":case"bottomright":i.y2=i.y1+(i.x2-i.x1)/o.aspectRatio,s=Math.max(i.x2-r.width,0),a=Math.max(i.y2-r.height,0),(s>0||a>0)&&(i.x2-=a*o.aspectRatio>s?a*o.aspectRatio:s,i.y2-=a*o.aspectRatio>s?a:s/o.aspectRatio);break;case"left":case"bottomleft":i.y2=i.y1+(i.x2-i.x1)/o.aspectRatio,s=Math.max(0-i.x1,0),a=Math.max(i.y2-r.height,0),(s>0||a>0)&&(i.x1+=a*o.aspectRatio>s?a*o.aspectRatio:s,i.y2-=a*o.aspectRatio>s?a:s/o.aspectRatio);break;case"center":i.x2=i.x1+(i.y2-i.y1)*o.aspectRatio,i.y2=i.y1+(i.x2-i.x1)/o.aspectRatio;const l=Math.max(0-i.x1,0),c=Math.max(i.x2-r.width,0),u=Math.max(i.y2-r.height,0),d=Math.max(0-i.y1,0);(l>0||c>0||u>0||d>0)&&(i.x1+=u*o.aspectRatio>l?u*o.aspectRatio:l,i.x2-=d*o.aspectRatio>c?d*o.aspectRatio:c,i.y1+=d*o.aspectRatio>c?d:c/o.aspectRatio,i.y2-=u*o.aspectRatio>l?u:l/o.aspectRatio)}}getClientX(e){return e.touches?.[0].clientX||e.clientX||0}getClientY(e){return e.touches?.[0].clientY||e.clientY||0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();let j4=(()=>{class t{constructor(){this.autoRotateSupported=function B4(){return new Promise(t=>{const n=new Image;n.onload=()=>{t(1===n.width&&2===n.height)},n.src="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q=="})}()}loadImageFile(e,i){return new Promise((r,o)=>{const s=new FileReader;s.onload=a=>{this.loadImage(a.target.result,e.type,i).then(r).catch(o)},s.readAsDataURL(e)})}loadImage(e,i,r){return this.isValidImageType(i)?this.loadBase64Image(e,r):Promise.reject(new Error("Invalid image type"))}isValidImageType(e){return/image\/(png|jpg|jpeg|bmp|gif|tiff|webp|x-icon|vnd.microsoft.icon)/.test(e)}loadImageFromURL(e,i){return new Promise((r,o)=>{const s=new Image;s.onerror=()=>o,s.onload=()=>{const a=document.createElement("canvas"),l=a.getContext("2d");a.width=s.width,a.height=s.height,l?.drawImage(s,0,0),this.loadBase64Image(a.toDataURL(),i).then(r)},s.crossOrigin="anonymous",s.src=e})}loadBase64Image(e,i){return new Promise((r,o)=>{const s=new Image;s.onload=()=>r({originalImage:s,originalBase64:e}),s.onerror=o,s.src=e}).then(r=>this.transformImageBase64(r,i))}transformImageBase64(e,i){var r=this;return KM(function*(){const o=yield r.autoRotateSupported,s=yield function H4(t){switch("string"==typeof t&&(t=function z4(t){const n=new DataView(function U4(t){t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");const n=atob(t),e=n.length,i=new Uint8Array(e);for(let r=0;r<e;r++)i[r]=n.charCodeAt(r);return i.buffer}(t));if(65496!==n.getUint16(0,!1))return-2;const e=n.byteLength;let i=2;for(;i<e;){if(n.getUint16(i+2,!1)<=8)return-1;const r=n.getUint16(i,!1);if(i+=2,65505==r){if(1165519206!==n.getUint32(i+=2,!1))return-1;const o=18761==n.getUint16(i+=6,!1);i+=n.getUint32(i+4,o);const s=n.getUint16(i,o);i+=2;for(let a=0;a<s;a++)if(274==n.getUint16(i+12*a,o))return n.getUint16(i+12*a+8,o)}else{if(65280!=(65280&r))break;i+=n.getUint16(i,!1)}}return-1}(t)),t){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}(o?-1:e.originalBase64);return e.originalImage&&e.originalImage.complete?r.transformLoadedImage({original:{base64:e.originalBase64,image:e.originalImage,size:{width:e.originalImage.naturalWidth,height:e.originalImage.naturalHeight}},exifTransform:s},i):Promise.reject(new Error("No image loaded"))})()}transformLoadedImage(e,i){var r=this;return KM(function*(){const o=i.canvasRotation+e.exifTransform.rotate,s={width:e.original.image.naturalWidth,height:e.original.image.naturalHeight};if(0===o&&!e.exifTransform.flip&&!i.containWithinAspectRatio)return{original:{base64:e.original.base64,image:e.original.image,size:{...s}},transformed:{base64:e.original.base64,image:e.original.image,size:{...s}},exifTransform:e.exifTransform};const a=r.getTransformedSize(s,e.exifTransform,i),l=document.createElement("canvas");l.width=a.width,l.height=a.height;const c=l.getContext("2d");c?.setTransform(e.exifTransform.flip?-1:1,0,0,1,l.width/2,l.height/2),c?.rotate(Math.PI*(o/2)),c?.drawImage(e.original.image,-s.width/2,-s.height/2);const u=l.toDataURL(),d=yield r.loadImageFromBase64(u);return{original:{base64:e.original.base64,image:e.original.image,size:{...s}},transformed:{base64:u,image:d,size:{width:d.width,height:d.height}},exifTransform:e.exifTransform}})()}loadImageFromBase64(e){return new Promise((i,r)=>{const o=new Image;o.onload=()=>i(o),o.onerror=r,o.src=e})}getTransformedSize(e,i,r){const o=r.canvasRotation+i.rotate;if(r.containWithinAspectRatio){if(o%2){const a=e.height/r.aspectRatio;return{width:Math.max(e.height,e.width*r.aspectRatio),height:Math.max(e.width,a)}}{const a=e.width/r.aspectRatio;return{width:Math.max(e.width,e.height*r.aspectRatio),height:Math.max(e.height,a)}}}return o%2?{height:e.width,width:e.height}:{width:e.width,height:e.height}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$4=(()=>{class t{constructor(e,i,r,o,s){this.cropService=e,this.cropperPositionService=i,this.loadImageService=r,this.sanitizer=o,this.cd=s,this.Hammer=window?.Hammer||null,this.settings=new R4,this.setImageMaxSizeRetries=0,this.marginLeft="0px",this.maxSize={width:0,height:0},this.moveTypes=Rn,this.imageVisible=!1,this.format=this.settings.format,this.transform={},this.maintainAspectRatio=this.settings.maintainAspectRatio,this.aspectRatio=this.settings.aspectRatio,this.resizeToWidth=this.settings.resizeToWidth,this.resizeToHeight=this.settings.resizeToHeight,this.cropperMinWidth=this.settings.cropperMinWidth,this.cropperMinHeight=this.settings.cropperMinHeight,this.cropperMaxHeight=this.settings.cropperMaxHeight,this.cropperMaxWidth=this.settings.cropperMaxWidth,this.cropperStaticWidth=this.settings.cropperStaticWidth,this.cropperStaticHeight=this.settings.cropperStaticHeight,this.canvasRotation=this.settings.canvasRotation,this.initialStepSize=this.settings.initialStepSize,this.roundCropper=this.settings.roundCropper,this.onlyScaleDown=this.settings.onlyScaleDown,this.imageQuality=this.settings.imageQuality,this.autoCrop=this.settings.autoCrop,this.backgroundColor=this.settings.backgroundColor,this.containWithinAspectRatio=this.settings.containWithinAspectRatio,this.hideResizeSquares=this.settings.hideResizeSquares,this.allowMoveImage=!1,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage=this.settings.alignImage,this.disabled=!1,this.imageCropped=new F,this.startCropImage=new F,this.imageLoaded=new F,this.cropperReady=new F,this.loadImageFailed=new F,this.transformChange=new F,this.reset()}ngOnChanges(e){this.onChangesUpdateSettings(e),this.onChangesInputImage(e),this.loadedImage?.original.image.complete&&(e.containWithinAspectRatio||e.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(i=>this.setLoadedImage(i)).catch(i=>this.loadImageError(i)),(e.cropper||e.maintainAspectRatio||e.aspectRatio)&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.maintainAspectRatio&&(e.maintainAspectRatio||e.aspectRatio)?this.resetCropperPosition():e.cropper&&(this.checkCropperPosition(!1),this.doAutoCrop()),this.cd.markForCheck()),e.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop(),this.cd.markForCheck())}onChangesUpdateSettings(e){this.settings.setOptionsFromChanges(e),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1})}onChangesInputImage(e){(e.imageChangedEvent||e.imageURL||e.imageBase64||e.imageFile)&&this.reset(),e.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),e.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),e.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),e.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){return this.imageChangedEvent?.target?.files?.length>0}setCssTransform(){const e=this.transform?.translateUnit||"%";this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle(`translate(${this.transform.translateH||0}${e}, ${this.transform.translateV||0}${e}) scaleX(`+(this.transform.scale||1)*(this.transform.flipH?-1:1)+") scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+") rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.settings.stepSize=this.initialStepSize,this.activatePinchGesture()}reset(){this.imageVisible=!1,this.loadedImage=void 0,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImageFile(e){this.loadImageService.loadImageFile(e,this.settings).then(i=>this.setLoadedImage(i)).catch(i=>this.loadImageError(i))}loadBase64Image(e){this.loadImageService.loadBase64Image(e,this.settings).then(i=>this.setLoadedImage(i)).catch(i=>this.loadImageError(i))}loadImageFromURL(e){this.loadImageService.loadImageFromURL(e,this.settings).then(i=>this.setLoadedImage(i)).catch(i=>this.loadImageError(i))}setLoadedImage(e){this.loadedImage=e,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(e.transformed.base64),this.cd.markForCheck()}loadImageError(e){console.error(e),this.loadImageFailed.emit()}imageLoadedInView(){null!=this.loadedImage&&(this.imageLoaded.emit(this.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.resetCropperPosition(),this.cropperReady.emit({...this.maxSize}),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>0}onResize(){!this.loadedImage||(this.resizeCropperPosition(),this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize())}activatePinchGesture(){if(this.Hammer){const e=new this.Hammer(this.wrapper.nativeElement);e.get("pinch").set({enable:!0}),e.on("pinchmove",this.onPinch.bind(this)),e.on("pinchend",this.pinchStop.bind(this)),e.on("pinchstart",this.startPinch.bind(this))}else(function RF(){return dD=!0,uD})()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")}resizeCropperPosition(){const e=this.sourceImage.nativeElement;(this.maxSize.width!==e.offsetWidth||this.maxSize.height!==e.offsetHeight)&&(this.cropper.x1=this.cropper.x1*e.offsetWidth/this.maxSize.width,this.cropper.x2=this.cropper.x2*e.offsetWidth/this.maxSize.width,this.cropper.y1=this.cropper.y1*e.offsetHeight/this.maxSize.height,this.cropper.y2=this.cropper.y2*e.offsetHeight/this.maxSize.height)}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings),this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(e){this.changeKeyboardStepSize(e),this.keyboardMoveCropper(e)}changeKeyboardStepSize(e){const i=+e.key;i>=1&&i<=9&&(this.settings.stepSize=i)}keyboardMoveCropper(e){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(e.key))return;const r=e.shiftKey?Rn.Resize:Rn.Move,o=e.altKey?function k4(t){switch(t){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";default:return"right"}}(e.key):function P4(t){switch(t){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";default:return"left"}}(e.key),s=function O4(t,n){switch(t){case"ArrowUp":return{clientX:0,clientY:-1*n};case"ArrowRight":return{clientX:n,clientY:0};case"ArrowDown":return{clientX:0,clientY:n};default:return{clientX:-1*n,clientY:0}}}(e.key,this.settings.stepSize);e.preventDefault(),e.stopPropagation(),this.startMove({clientX:0,clientY:0},r,o),this.moveImg(s),this.moveStop()}startMove(e,i,r=null){this.disabled||this.moveStart?.active&&this.moveStart?.type===Rn.Pinch||i===Rn.Drag&&!this.allowMoveImage||(e.preventDefault&&e.preventDefault(),this.moveStart={active:!0,type:i,position:r,transform:{...this.transform},clientX:this.cropperPositionService.getClientX(e),clientY:this.cropperPositionService.getClientY(e),...this.cropper})}startPinch(e){!this.safeImgDataUrl||(e.preventDefault&&e.preventDefault(),this.moveStart={active:!0,type:Rn.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2,...this.cropper})}moveImg(e){if(this.moveStart.active){if(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),this.moveStart.type===Rn.Move)this.cropperPositionService.move(e,this.moveStart,this.cropper),this.checkCropperPosition(!0);else if(this.moveStart.type===Rn.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(e,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1);else if(this.moveStart.type===Rn.Drag){const i=this.cropperPositionService.getClientX(e)-this.moveStart.clientX,r=this.cropperPositionService.getClientY(e)-this.moveStart.clientY;this.transform={...this.transform,translateH:(this.moveStart.transform?.translateH||0)+i,translateV:(this.moveStart.transform?.translateV||0)+r},this.setCssTransform()}this.cd.detectChanges()}}onPinch(e){this.moveStart.active&&(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),this.moveStart.type===Rn.Pinch&&(this.cropperPositionService.resize(e,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.detectChanges())}setMaxSize(){if(this.sourceImage){const e=this.sourceImage.nativeElement;this.maxSize.width=e.offsetWidth,this.maxSize.height=e.offsetHeight,this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){this.loadedImage?.transformed?.image?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.settings.cropperScaledMinWidth=20,this.settings.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.settings.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.loadedImage.transformed.image.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.settings.cropperScaledMinHeight=this.maintainAspectRatio?Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):20}setCropperScaledMaxSize(){if(this.loadedImage?.transformed?.image){const e=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/e:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/e:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidth<this.settings.cropperScaledMaxHeight*this.aspectRatio&&(this.settings.cropperScaledMaxHeight=this.settings.cropperScaledMaxWidth/this.aspectRatio))}else this.settings.cropperScaledMaxWidth=this.maxSize.width,this.settings.cropperScaledMaxHeight=this.maxSize.height}checkCropperPosition(e=!1){this.cropper.x1<0&&(this.cropper.x2-=e?this.cropper.x1:0,this.cropper.x1=0),this.cropper.y1<0&&(this.cropper.y2-=e?this.cropper.y1:0,this.cropper.y1=0),this.cropper.x2>this.maxSize.width&&(this.cropper.x1-=e?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=e?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}moveStop(){this.moveStart.active&&(this.moveStart.active=!1,this.moveStart?.type===Rn.Drag?this.transformChange.emit(this.transform):this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}doAutoCrop(){this.autoCrop&&this.crop()}crop(){if(null!=this.loadedImage?.transformed?.image){this.startCropImage.emit();const e=this.cropService.crop(this.sourceImage,this.loadedImage,this.cropper,this.settings);return null!=e&&this.imageCropped.emit(e),e}return null}}return t.\u0275fac=function(e){return new(e||t)(v(F4),v(L4),v(j4),v(gS),v($i))},t.\u0275cmp=be({type:t,selectors:[["image-cropper"]],viewQuery:function(e,i){if(1&e&&(tt(I4,7),tt(M4,5)),2&e){let r;Ce(r=De())&&(i.wrapper=r.first),Ce(r=De())&&(i.sourceImage=r.first)}},hostVars:4,hostBindings:function(e,i){1&e&&E("resize",function(){return i.onResize()},0,my)("mousemove",function(o){return i.moveImg(o)},!1,Or)("touchmove",function(o){return i.moveImg(o)},!1,Or)("mouseup",function(){return i.moveStop()},!1,Or)("touchend",function(){return i.moveStop()},!1,Or),2&e&&(oi("text-align",i.alignImage),jt("disabled",i.disabled))},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"aspectRatio",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",allowMoveImage:"allowMoveImage",cropper:"cropper",alignImage:"alignImage",disabled:"disabled"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed",transformChange:"transformChange"},features:[Nt],decls:5,vars:10,consts:[["wrapper",""],["class","ngx-ic-source-image",3,"src","visibility","transform","ngx-ic-draggable","load","mousedown","touchstart",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],[1,"ngx-ic-source-image",3,"src","load","mousedown","touchstart"],["sourceImage",""],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],[1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],[1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],[1,"ngx-ic-resize","ngx-ic-top"],[1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right"],[1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom"],[1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left"],[1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"]],template:function(e,i){1&e&&(g(0,"div",null,0),M(2,T4,2,7,"img",1),k(3,"div",2),M(4,A4,3,15,"div",3),y()),2&e&&(oi("background",i.imageVisible&&i.backgroundColor),p(2),_("ngIf",i.safeImgDataUrl),p(1),oi("width",i.maxSize.width,"px")("height",i.maxSize.height,"px")("margin-left","center"===i.alignImage?i.marginLeft:null),p(1),_("ngIf",i.imageVisible))},dependencies:[$e],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image.ngx-ic-draggable[_ngcontent-%COMP%]{user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:grab}[_nghost-%COMP%] .ngx-ic-overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;outline:var(--cropper-overlay-color, white) solid 100vw;top:0;left:0}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:transparent;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color, rgba(255, 255, 255, .3)) solid 100vw;touch-action:none}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";top:0;bottom:0;left:0;right:0;pointer-events:none;border:dashed 1px;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:focus .ngx-ic-move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%] .ngx-ic-square[_ngcontent-%COMP%]{display:inline-block;background:#53535C;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw #ffffff4d;box-shadow:0 0 0 100vw var(--cropper-outline-color, rgba(255, 255, 255, .3))}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh #ffffff4d;box-shadow:0 0 0 100vh var(--cropper-outline-color, rgba(255, 255, 255, .3))}}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{display:none}'],changeDetection:0}),t})(),W4=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[[St]]}),t})();var XM=ct(444);function Ym(t,n,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];r?t.setProperty(i,r,e?.has(i)?"important":""):t.removeProperty(i)}return t}function Ks(t,n){const e=n?"":"none";Ym(t.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function tT(t,n,e){Ym(t.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function Td(t,n){return n&&"none"!=n?t+" "+n:t}function nT(t){const n=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*n}function Km(t,n){return t.getPropertyValue(n).split(",").map(i=>i.trim())}function Qm(t){const n=t.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function Xm(t,n,e){const{top:i,bottom:r,left:o,right:s}=t;return e>=i&&e<=r&&n>=o&&n<=s}function Pl(t,n,e){t.top+=n,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function iT(t,n,e,i){const{top:r,right:o,bottom:s,left:a,width:l,height:c}=t,u=l*n,d=c*n;return i>r-d&&i<s+d&&e>a-u&&e<o+u}class rT{constructor(n){this._document=n,this.positions=new Map}clear(){this.positions.clear()}cache(n){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),n.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Qm(e)})})}handleScroll(n){const e=fd(n),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,l=r.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&Pl(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function oT(t){const n=t.cloneNode(!0),e=n.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();n.removeAttribute("id");for(let r=0;r<e.length;r++)e[r].removeAttribute("id");return"canvas"===i?lT(t,n):("input"===i||"select"===i||"textarea"===i)&&aT(t,n),sT("canvas",t,n,lT),sT("input, textarea, select",t,n,aT),n}function sT(t,n,e,i){const r=n.querySelectorAll(t);if(r.length){const o=e.querySelectorAll(t);for(let s=0;s<r.length;s++)i(r[s],o[s])}}let cW=0;function aT(t,n){"file"!==n.type&&(n.value=t.value),"radio"===n.type&&n.name&&(n.name=`mat-clone-${n.name}-${cW++}`)}function lT(t,n){const e=n.getContext("2d");if(e)try{e.drawImage(t,0,0)}catch{}}const cT=Dl({passive:!0}),xd=Dl({passive:!1}),Zm=new Set(["position"]);class dW{constructor(n,e,i,r,o,s){this._config=e,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new K,this._pointerMoveSubscription=ne.EMPTY,this._pointerUpSubscription=ne.EMPTY,this._scrollSubscription=ne.EMPTY,this._resizeSubscription=ne.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 K,this.started=new K,this.released=new K,this.ended=new K,this.entered=new K,this.exited=new K,this.dropped=new K,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),m=this._dropContainer;if(!f)return void this._endDragSequence(a);(!m||!m.isDragging()&&!m.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,d=this._activeTransform;d.x=c.x-u.x+this._passiveTransform.x,d.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new rT(i),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(n){const e=Er(n);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>Ks(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(i=>Tn(i)),this._handles.forEach(i=>Ks(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){const e=Tn(n);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,xd),e.addEventListener("touchstart",this._pointerDown,cT),e.addEventListener("dragstart",this._nativeDragStart,xd)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?Tn(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,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(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),Ks(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),Ks(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){const n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){const n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_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(n){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:n}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){kl(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),tT(i,!1,Zm),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:n}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:n}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(n,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=kl(e),o=!r&&0!==e.button,s=this._rootElement,a=fd(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?function oW(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}(e):function rW(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||l||c)return;if(this._handles.length){const h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=Qm(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,n,e);const d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(n){tT(this._rootElement,!0,Zm),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(n),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:n}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,n,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,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,n,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,n,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(n,e):this._applyPreviewTransform(n-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const n=this._previewTemplate,e=this.previewClass,i=n?n.template:null;let r;if(i&&n){const o=n.matchSize?this._initialClientRect:null,s=n.viewContainer.createEmbeddedView(i,n.context);s.detectChanges(),r=dT(s,this._document),this._previewRef=s,n.matchSize?hT(r,o):r.style.transform=Ad(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=oT(this._rootElement),hT(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return Ym(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Zm),Ks(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 n=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);const e=function lW(t){const n=getComputedStyle(t),e=Km(n,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=Km(n,"transition-duration"),s=Km(n,"transition-delay");return nT(o[r])+nT(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||fd(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const n=this._placeholderTemplate,e=n?n.template:null;let i;return e?(this._placeholderRef=n.viewContainer.createEmbeddedView(e,n.context),this._placeholderRef.detectChanges(),i=dT(this._placeholderRef,this._document)):i=oT(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(n,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():n,s=kl(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-n.left+(s.pageX-o.left-a.left),y:o.top-n.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(n){const e=this._getViewportScrollPosition(),i=kl(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(n){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(n,this,this._initialClientRect,this._pickupPositionInElement):n;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:s}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,d=a.bottom-(c-s);i=uT(i,a.left+o,a.right-(l-o)),r=uT(r,u,d)}return{x:i,y:r}}_updatePointerDirectionDelta(n){const{x:e,y:i}=n,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,Ks(this._rootElement,n))}_removeRootElementListeners(n){n.removeEventListener("mousedown",this._pointerDown,xd),n.removeEventListener("touchstart",this._pointerDown,cT),n.removeEventListener("dragstart",this._nativeDragStart,xd)}_applyRootElementTransform(n,e){const i=Ad(n,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Td(i,this._initialTransform)}_applyPreviewTransform(n,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=Ad(n,e);this._preview.style.transform=Td(r,i)}_getDragDistance(n){const e=this._pickupPositionOnPage;return e?{x:n.x-e.x,y:n.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:e}=this._passiveTransform;if(0===n&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,l=i.bottom-r.bottom;r.width>i.width?(o>0&&(n+=o),s>0&&(n-=s)):n=0,r.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(n!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:n})}_getDragStartDelay(n){const e=this.dragStartDelay;return"number"==typeof e?e:kl(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){const e=this._parentPositions.handleScroll(n);if(e){const i=fd(n);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&Pl(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=qI(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,e){const i=this._previewContainer||"global";if("parent"===i)return n;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Tn(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(n){return this._handles.find(e=>n.target&&(n.target===e||e.contains(n.target)))}}function Ad(t,n){return`translate3d(${Math.round(t)}px, ${Math.round(n)}px, 0)`}function uT(t,n,e){return Math.max(n,Math.min(e,t))}function kl(t){return"t"===t.type[0]}function dT(t,n){const e=t.rootNodes;if(1===e.length&&e[0].nodeType===n.ELEMENT_NODE)return e[0];const i=n.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function hT(t,n){t.style.width=`${n.width}px`,t.style.height=`${n.height}px`,t.style.transform=Ad(n.left,n.top)}function Ol(t,n){return Math.max(0,Math.min(n,t))}class fW{constructor(n,e){this._element=n,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(n){this.withItems(n)}sort(n,e,i,r){const o=this._itemPositions,s=this._getItemIndexFromPointerPosition(n,e,i,r);if(-1===s&&o.length>0)return null;const a="horizontal"===this.orientation,l=o.findIndex(C=>C.drag===n),c=o[s],d=c.clientRect,h=l>s?1:-1,f=this._getItemOffsetPx(o[l].clientRect,d,h),m=this._getSiblingOffsetPx(l,o,h),b=o.slice();return function hW(t,n,e){const i=Ol(n,t.length-1),r=Ol(e,t.length-1);if(i===r)return;const o=t[i],s=r<i?-1:1;for(let a=i;a!==r;a+=s)t[a]=t[a+s];t[r]=o}(o,l,s),o.forEach((C,D)=>{if(b[D]===C)return;const I=C.drag===n,S=I?f:m,B=I?n.getPlaceholderElement():C.drag.getRootElement();C.offset+=S,a?(B.style.transform=Td(`translate3d(${Math.round(C.offset)}px, 0, 0)`,C.initialTransform),Pl(C.clientRect,0,S)):(B.style.transform=Td(`translate3d(0, ${Math.round(C.offset)}px, 0)`,C.initialTransform),Pl(C.clientRect,S,0))}),this._previousSwap.overlaps=Xm(d,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(n,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(n,e,i):r,s=this._activeDraggables,a=s.indexOf(n),l=n.getPlaceholderElement();let c=s[o];if(c===n&&(c=s[o+1]),!c&&(null==o||-1===o||o<s.length-1)&&this._shouldEnterAsFirstChild(e,i)&&(c=s[0]),a>-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(o,0,n)}else Tn(this._element).appendChild(l),s.push(n);l.style.transform="",this._cacheItemPositions()}withItems(n){this._activeDraggables=n.slice(),this._cacheItemPositions()}withSortPredicate(n){this._sortPredicate=n}reset(){this._activeDraggables.forEach(n=>{const e=n.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===n)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(n){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===n)}updateOnScroll(n,e){this._itemPositions.forEach(({clientRect:i})=>{Pl(i,n,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const n="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:Qm(i)}}).sort((e,i)=>n?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(n,e,i){const r="horizontal"===this.orientation;let o=r?e.left-n.left:e.top-n.top;return-1===i&&(o+=r?e.width-n.width:e.height-n.height),o}_getSiblingOffsetPx(n,e,i){const r="horizontal"===this.orientation,o=e[n].clientRect,s=e[n+-1*i];let a=o[r?"width":"height"]*i;if(s){const l=r?"left":"top",c=r?"right":"bottom";-1===i?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(n,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?n>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?n<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(n,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===n)return!1;if(r){const c=o?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e<Math.floor(l.right):i>=Math.floor(l.top)&&i<Math.floor(l.bottom)});return-1!==s&&this._sortPredicate(s,n)?s:-1}}class pW{constructor(n,e,i,r,o){this._dragDropRegistry=e,this._ngZone=r,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new K,this.entered=new K,this.exited=new K,this.dropped=new K,this.sorted=new K,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=ne.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new K,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function aW(t=0,n=_d){return t<0&&(t=0),XI(t,t,n)}(0,KI).pipe(_n(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=Tn(n),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new rT(i),this._sortStrategy=new fW(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(n)),this._sortStrategy.enter(n,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,e,i,r,o,s,a,l={}){this._reset(),this.dropped.next({item:n,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(n){const e=this._draggables;return this._draggables=n,n.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===n.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(n){return this._sortStrategy.direction=n,this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){return this._sortStrategy.orientation=n,this}withScrollableParents(n){const e=Tn(this.element);return this._scrollableElements=-1===n.indexOf(e)?[e,...n]:n.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?this._sortStrategy.getItemIndex(n):this._draggables.indexOf(n)}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,e,i,r){if(this.sortingDisabled||!this._clientRect||!iT(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(n,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:n})}_startScrollingIfNecessary(n,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||iT(s.clientRect,.05,n,e)&&([r,o]=function gW(t,n,e,i){const r=gT(n,i),o=mT(n,e);let s=0,a=0;if(r){const l=t.scrollTop;1===r?l>0&&(s=1):t.scrollHeight-l>t.clientHeight&&(s=2)}if(o){const l=t.scrollLeft;1===o?l>0&&(a=1):t.scrollWidth-l>t.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,n,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=gT(l,e),o=mT(l,n),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const n=Tn(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const n=Tn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(n).clientRect}_reset(){this._isDragging=!1;const n=Tn(this.element).style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(n,e){return null!=this._clientRect&&Xm(this._clientRect,n,e)}_getSiblingContainerFromPosition(n,e,i){return this._siblings.find(r=>r._canReceive(n,e,i))}_canReceive(n,e,i){if(!this._clientRect||!Xm(this._clientRect,e,i)||!this.enterPredicate(n,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=Tn(this.element);return r===o||o.contains(r)}_startReceiving(n,e){const i=this._activeSiblings;!i.has(n)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(n),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(n);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const n=qI(Tn(this.element));this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const n=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,n))}}function gT(t,n){const{top:e,bottom:i,height:r}=t,o=.05*r;return n>=e-o&&n<=e+o?1:n>=i-o&&n<=i+o?2:0}function mT(t,n){const{left:e,right:i,width:r}=t,o=.05*r;return n>=e-o&&n<=e+o?1:n>=i-o&&n<=i+o?2:0}const Rd=Dl({passive:!1,capture:!0});let mW=(()=>{class t{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new K,this.pointerUp=new K,this.scroll=new K,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Rd)})}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,Rd)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Rd}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:Rd}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new xe(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),Vl(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(R(Ne),R(Be))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const _W={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Jm=(()=>{class t{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=_W){return new dW(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new pW(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(R(Be),R(Ne),R(ZI),R(mW))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const _T=new U("CDK_DRAG_PARENT"),vT=new U("CdkDropListGroup"),yT=new U("CDK_DRAG_CONFIG");let vW=0;const bT=new U("CdkDropList");let yW=(()=>{class t{constructor(e,i,r,o,s,a,l){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=s,this._group=a,this._destroyed=new K,this.connectedTo=[],this.id="cdk-drop-list-"+vW++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new F,this.entered=new F,this.exited=new F,this.sorted=new F,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(c,u)=>this.enterPredicate(c.data,u.data),this._dropListRef.sortPredicate=(c,u,d)=>this.sortPredicate(c,u.data,d.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=Er(e)}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,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._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(Wu(this._dir.value),_n(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{const i=function XU(t){return Array.isArray(t)?t:[t]}(this.connectedTo).map(r=>"string"==typeof r?t._dropLists.find(s=>s.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===i.indexOf(r)&&i.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=Er(this.sortingDisabled),e.autoScrollDisabled=Er(this.autoScrollDisabled),e.autoScrollStep=WI(this.autoScrollStep,2),e.connectedTo(i.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(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:i,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:s,listOrientation:a}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=s??!1,this.orientation=a||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return t._dropLists=[],t.\u0275fac=function(e){return new(e||t)(v(Te),v(Jm),v($i),v(Dj),v(Sm,8),v(vT,12),v(yT,8))},t.\u0275dir=z({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,i){2&e&&($n("id",i.id),jt("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._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"],features:[Ae([{provide:vT,useValue:void 0},{provide:bT,useExisting:t}])]}),t})();const wT=new U("CdkDragHandle"),bW=new U("CdkDragPlaceholder"),wW=new U("CdkDragPreview");let DW=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u,d,h){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=s,this._dir=l,this._changeDetectorRef=u,this._selfHandle=d,this._parentDrag=h,this._destroyed=new K,this.started=new F,this.released=new F,this.ended=new F,this.entered=new F,this.exited=new F,this.dropped=new F,this.moved=new xe(f=>{const m=this._dragRef.moved.pipe(fe(b=>({source:this,pointerPosition:b.pointerPosition,event:b.event,delta:b.delta,distance:b.distance}))).subscribe(f);return()=>{m.unsubscribe()}}),this._dragRef=c.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:a?.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=Er(e),this._dragRef.disabled=this._disabled}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(Vt(1),_n(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const i=e.rootElementSelector,r=e.freeDragPosition;i&&!i.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 i=e;this.rootElementSelector&&(i=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Tn(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const i=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=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:WI(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe(Vt(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains("cdk-drag")){e.withParent(t._dragInstances.find(r=>r.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){const{lockAxis:i,dragStartDelay:r,constrainPosition:o,previewClass:s,boundaryElement:a,draggingDisabled:l,rootElementSelector:c,previewContainer:u}=e;this.disabled=l??!1,this.dragStartDelay=r||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),s&&(this.previewClass=s),a&&(this.boundaryElement=a),c&&(this.rootElementSelector=c),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(Wu(this._handles),Bt(e=>{const i=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Kn(e=>Vl(...e.map(i=>i._stateChanges.pipe(Wu(i))))),_n(this._destroyed)).subscribe(e=>{const i=this._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})}}return t._dragInstances=[],t.\u0275fac=function(e){return new(e||t)(v(Te),v(bT,12),v(Be),v(Ne),v(Lt),v(yT,8),v(Sm,8),v(Jm),v($i),v(wT,10),v(_T,12))},t.\u0275dir=z({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(e,i,r){if(1&e&&(Sn(r,wW,5),Sn(r,bW,5),Sn(r,wT,5)),2&e){let o;Ce(o=De())&&(i._previewTemplate=o.first),Ce(o=De())&&(i._placeholderTemplate=o.first),Ce(o=De())&&(i._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,i){2&e&&jt("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._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"],features:[Ae([{provide:_T,useExisting:t}]),Nt]}),t})(),SW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({providers:[Jm],imports:[Om]}),t})(),TW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({}),t})();ct(345),new U("SMOOTH_SCROLL_OPTIONS");let xW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({}),t})();const PW=new U("NG_SCROLLBAR_OPTIONS");let CT=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:PW,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[St,dd,TW,ej,xW]}),t})(),kW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[CT,dd]}),t})();function OW(t,n){1&t&&k(0,"i",26)}function NW(t,n){1&t&&k(0,"i",27)}function FW(t,n){if(1&t){const e=q();g(0,"button",23),E("click",function(){return T(e),x(w(2).onToggleImgSelected())}),M(1,OW,1,0,"i",24),M(2,NW,1,0,"i",25),g(3,"span"),O(4),L(5,"translate"),y()()}if(2&t){const e=w(2);p(1),_("ngIf",!e.picture.selected),p(1),_("ngIf",e.picture.selected),p(2),G(H(5,3,"ImgManager.ImgCard.select"))}}function LW(t,n){if(1&t){const e=q();g(0,"div",13)(1,"button",14),k(2,"i",15),g(3,"span"),O(4),y()(),g(5,"button",16),E("click",function(){T(e);const r=w();return x(r.onDownloadImg(r.picture.display_name,r.picture.file_name))}),k(6,"i",17),g(7,"span"),O(8),L(9,"translate"),y()(),g(10,"button",18),E("click",function(){T(e);const r=w();return x(r.onEdit(r.picture))}),k(11,"i",19),g(12,"span"),O(13),L(14,"translate"),y()(),g(15,"button",20),E("click",function(){return T(e),x(w().activeConfirmDelete=!0)}),k(16,"i",21),g(17,"span"),O(18),L(19,"translate"),y()(),M(20,FW,6,5,"button",22),y()}if(2&t){const e=w();p(4),si("",e.picture.raw_height,"x",e.picture.raw_width,""),p(4),G(H(9,6,"ImgManager.ImgCard.download")),p(5),G(H(14,8,"ImgManager.ImgCard.edit")),p(5),G(H(19,10,"ImgManager.ImgCard.del")),p(2),_("ngIf","window"!==e.stateDisplayed)}}function VW(t,n){if(1&t){const e=q();g(0,"div",28)(1,"button",29),E("click",function(){return T(e),x(w().displayLargeWindow())}),k(2,"i",30),y()()}}function BW(t,n){1&t&&(g(0,"div",31),k(1,"i",32),g(2,"span"),O(3),L(4,"translate"),y()()),2&t&&(p(3),G(H(4,1,"ImgManager.ImgCard.validImgSmall")))}const HW=function(t){return{"img-card__container__overlay--smallDisplay":t}};function zW(t,n){if(1&t){const e=q();g(0,"div",33)(1,"i",34),E("click",function(){return T(e),x(w().onToggleImgSelected())}),y()()}if(2&t){const e=w();_("ngClass",X(1,HW,"small"===e.stateDisplayed||e.isUploadSection))}}function UW(t,n){1&t&&k(0,"span",35)}const jW=function(t){return{fullSize:t}},$W=function(t,n,e){return{smallDisplay:t,imgSelected:n,deletion:e}},WW=function(t){return{show:t}},GW=function(t,n){return{smallNameDisplay:t,focus:n}};function qW(t,n){1&t&&(Ue(0),O(1),L(2,"translate"),je()),2&t&&(p(1),G(H(2,1,"ImgManager.UploadList.imgSuccessImport")))}function YW(t,n){1&t&&(Ue(0),O(1),L(2,"translate"),je()),2&t&&(p(1),G(H(2,1,"ImgManager.UploadList.imgSuccessImportOne")))}function KW(t,n){if(1&t){const e=q();g(0,"div",16)(1,"img-card",17),E("toggleImgSelected",function(){const o=T(e).index;return x(w().onToggleSelectImg(o))})("switchDisplayWindow",function(){return T(e),x(w().switchDisplayWindowCard())})("pictureNameChange",function(r){return T(e),x(w().onRenamePicture(r))}),y(),g(2,"div",18)(3,"button",19),k(4,"i",13),y()()()}if(2&t){const e=n.$implicit,i=w();p(1),_("picture",e)("stateDisplayed",i.stateDisplayed)}}const QW=function(t){return{smallDisplay:t}},Pd=function(){return{suppressScrollX:!0}},XW=function(t,n){return{"upload-list__scroll--smallDisplay":t,"upload-list__scroll--window":n}};function ZW(t,n){1&t&&k(0,"p",3),2&t&&_("innerHTML",w().text,Un)}const JW=function(t){return{"is-small":t}},e5=function(t){return{position:t}},t5=["dragAndDropBox"];function n5(t,n){1&t&&(g(0,"div",8),k(1,"wz-loader",9),y()),2&t&&(p(1),_("small",!0)("position","relative"))}function i5(t,n){1&t&&k(0,"img",15),2&t&&_("src",w(2).assetsIcon,Ci)}function r5(t,n){if(1&t&&(Ue(0),g(1,"div",10),M(2,i5,1,1,"img",11),g(3,"p"),O(4),L(5,"translate"),y()(),g(6,"p",12),O(7),L(8,"translate"),y(),g(9,"div",13),k(10,"i",14),O(11),L(12,"translate"),y(),je()),2&t){const e=w();p(2),_("ngIf",e.assetsIcon),p(2),G(H(5,4,"ImgManager.ImgUpload.dropImg")),p(3),G(H(8,6,"ImgManager.ImgUpload.or")),p(4),gt("",H(12,8,"ImgManager.ImgUpload.selectImg")," ")}}const o5=function(t){return{"img-upload--small":t}},s5=function(t){return{"img-upload__container--small":t}};function a5(t,n){1&t&&k(0,"i",2),2&t&&_("ngClass",w().iconClass)}const l5=function(t,n){return{success:t,warning:n}},c5=["*"],u5=["outerElement"],d5=function(t){return{"pexels-lib__search--smallDisplay":t}};function h5(t,n){if(1&t){const e=q();g(0,"div",7)(1,"wz-input-search",8),E("ngModelChange",function(r){return T(e),x(w().searchValue=r)})("changeDebounced",function(){return T(e),x(w().onSearchNameChanged())}),L(2,"translate"),y()()}if(2&t){const e=w();_("ngClass",X(6,d5,"small"===e.stateDisplayed)),p(1),_("ngModel",e.searchValue)("placeholder",H(2,4,"ImgManager.SearchBar.placeholder"))("smallPadding","small"===e.stateDisplayed)}}function f5(t,n){if(1&t&&(g(0,"p",13),O(1),L(2,"translate"),y()),2&t){const e=w(2);p(1),si("",H(2,2,"ImgManager.PexelLib.nbImgFound")," : ",e.nbResult,"")}}function p5(t,n){1&t&&(Ue(0),O(1," \xa0"),k(2,"i",34),je())}function g5(t,n){if(1&t){const e=q();g(0,"div",31),E("click",function(){T(e);const r=w().$implicit;return x(w(3).uploadPhoto(r,r.src.large2x))}),g(1,"span"),O(2),L(3,"translate"),y(),g(4,"span",32),k(5,"i",33),y(),M(6,p5,3,0,"ng-container",5),y()}if(2&t){const e=w().$implicit;p(2),G(H(3,2,"ImgManager.PexelLib.import")),p(4),_("ngIf",e.uploaded)}}function m5(t,n){1&t&&(Ue(0),O(1),L(2,"translate"),k(3,"span",35),je()),2&t&&(p(1),gt(" ",H(2,1,"ImgManager.PexelLib.importation")," "))}const DT=function(t){return{"is-hoverable":t}};function _5(t,n){if(1&t){const e=q();g(0,"div",16),k(1,"img",17),g(2,"div",18)(3,"span",19),O(4),y(),g(5,"div",20)(6,"div",21)(7,"button",22),M(8,g5,7,4,"div",23),M(9,m5,4,3,"ng-container",5),y()(),g(10,"div",24)(11,"div",25)(12,"div",26)(13,"div",27),E("click",function(){const o=T(e).$implicit;return x(w(3).uploadPhoto(o,o.src.portrait))}),g(14,"p"),O(15),L(16,"translate"),y(),k(17,"i",28),y(),g(18,"div",27),E("click",function(){const o=T(e).$implicit;return x(w(3).uploadPhoto(o,o.src.landscape))}),g(19,"p"),O(20),L(21,"translate"),y(),k(22,"i",29),y(),g(23,"div",27),E("click",function(){const o=T(e).$implicit;return x(w(3).uploadPhoto(o,o.src.large2x))}),g(24,"p"),O(25),L(26,"translate"),y(),k(27,"i",30),y()()()()()()()}if(2&t){const e=n.$implicit;p(1),_("alt",e.src.medium)("src",e.src.medium,Ci),p(3),si(" ",e.width," x ",e.height," "),p(1),_("ngClass",X(16,DT,!e.uploading)),p(3),_("ngIf",!e.uploading),p(1),_("ngIf",e.uploading),p(6),G(H(16,10,"ImgManager.PexelLib.portrait")),p(5),G(H(21,12,"ImgManager.PexelLib.landscape")),p(5),G(H(26,14,"ImgManager.PexelLib.original"))}}function v5(t,n){if(1&t&&(g(0,"div",14),M(1,_5,28,18,"div",15),y()),2&t){const e=n.$implicit;_("@listAnimation",e.photos.length),p(1),_("ngForOf",e.photos)}}function y5(t,n){if(1&t&&(g(0,"div",9),M(1,f5,3,4,"p",10),g(2,"div",11),M(3,v5,2,2,"div",12),y()()),2&t){const e=w();p(1),_("ngIf",e.nbResult),p(2),_("ngForOf",e.photosColumns)}}function b5(t,n){1&t&&(Ue(0),k(1,"wz-loader"),je())}function w5(t,n){1&t&&(g(0,"div",36)(1,"wz-alert",37),O(2),L(3,"translate"),y()()),2&t&&(_("@easeInOut","in"),p(1),_("warning",!0),p(1),gt(" ",H(3,3,"ImgManager.PexelLib.noResult")," "))}const C5=function(t){return{"pexels-lib__scroll--smallDisplay":t}},D5=[[["","label",""]],[["","item",""]]],S5=["[label]","[item]"];function E5(t,n){if(1&t){const e=q();g(0,"div")(1,"div",15),E("click",function(){return T(e),x(w().confirmCrop())}),L(2,"translate"),k(3,"i",16),g(4,"p"),O(5),L(6,"translate"),y()()()}2&t&&(p(1),_("nwbToolTip",H(2,2,"ImgManager.ImgEditor.ValidtToolTip")),p(4),G(H(6,4,"ImgManager.ImgEditor.Valid")))}const e_=function(t){return{"active-item":t}};function I5(t,n){if(1&t){const e=q();Ue(0,17),g(1,"div",18),E("click",function(){const o=T(e).index;return x(w().changeResolutionSize(o))}),g(2,"p"),O(3),L(4,"translate"),y()(),je()}if(2&t){const e=n.$implicit;p(1),_("ngClass",X(4,e_,e.active)),p(2),G(H(4,2,e.label))}}function M5(t,n){1&t&&k(0,"i",20),2&t&&_("ngClass",w().$implicit.icon)}function T5(t,n){if(1&t){const e=q();Ue(0,17),g(1,"div",18),E("click",function(){const o=T(e).$implicit;return x(w().applyMethod(o.method))}),M(2,M5,1,1,"i",19),g(3,"p"),O(4),L(5,"translate"),y()(),je()}if(2&t){const e=n.$implicit;p(1),_("ngClass",X(5,e_,e.active)),p(1),_("ngIf",e.icon),p(2),G(H(5,3,e.label))}}function x5(t,n){1&t&&k(0,"i",20),2&t&&_("ngClass",w().$implicit.icon)}function A5(t,n){if(1&t){const e=q();Ue(0,17),g(1,"div",18),E("click",function(){const o=T(e).$implicit;return x(w().applyMethod(o.method))}),M(2,x5,1,1,"i",19),g(3,"p"),O(4),L(5,"translate"),y()(),je()}if(2&t){const e=n.$implicit;p(1),_("ngClass",X(5,e_,e.active)),p(1),_("ngIf",e.icon),p(2),G(H(5,3,e.label))}}function R5(t,n){1&t&&k(0,"span",11)}const P5=function(t){return{"img-editor__infoSection__actions__save--disable":t}},k5=function(t,n,e){return{"img-editor__scroll--full":t,"img-editor__scroll--smallDisplay":n,"img-editor__scroll--window":e}};function O5(t,n){1&t&&k(0,"span",12)}function N5(t,n){if(1&t){const e=q();g(0,"div",13)(1,"div",14),E("click",function(){T(e);const r=w();return x(r.onOpenCanva(r.expectedWidth,r.expectedHeight))}),g(2,"p"),O(3),L(4,"translate"),y(),g(5,"p"),O(6),y()()()}if(2&t){const e=w();p(3),G(H(4,3,"ImgManager.CanvaBtn.recommanded")),p(3),si("",e.expectedWidth,"*",e.expectedHeight,"")}}function F5(t,n){if(1&t){const e=q();g(0,"div",13)(1,"div",15),E("click",function(){const o=T(e).$implicit;return x(w().onOpenCanva(o.value.width,o.value.height))}),g(2,"p"),O(3),L(4,"translate"),y(),g(5,"p"),O(6),y()()()}if(2&t){const e=n.$implicit;p(3),G(H(4,3,e.key)),p(3),si("",e.value.width,"*",e.value.height,"")}}const L5=function(t,n){return{"is-up":t,noTooltip:n}},V5=function(t){return{displayDropDownMenu:t}},t_=function(t){return{width:t}};function B5(t,n){if(1&t){const e=q();g(0,"div",5),E("click",function(){T(e);const r=w();return x(r.openAbsoluteSelect=!r.openAbsoluteSelect)}),g(1,"input",6),E("change",function(r){T(e);const o=w();return o.onGotoPageChange(r,!1),x(o.openAbsoluteSelect=!1)}),y(),k(2,"i",7),y()}if(2&t){const e=w();p(1),_("value",e.pagination.currentPage)("ngStyle",X(2,t_,40+10*e.pagination.currentPage.toString().length+"px"))}}const H5=function(t){return{selected:t}};function z5(t,n){if(1&t){const e=q();g(0,"div",10)(1,"div",11),E("click",function(){const o=T(e).$implicit;return x(w(2).onGotoPageChange(o.value,!0))}),g(2,"span"),O(3),y()()()}if(2&t){const e=n.$implicit,i=w(2);p(1),_("ngClass",X(2,H5,e.value===i.pagination.currentPage)),p(2),G(e.display)}}function U5(t,n){if(1&t&&(g(0,"div",8),M(1,z5,4,4,"div",9),L(2,"LargeNumberOfPage"),y()),2&t){const e=w();p(1),_("ngForOf",Bc(2,1,e.pagination.totalItems,e.pagination.itemsPerPage,e.pagination.currentPage).slice().reverse())}}function j5(t,n){if(1&t&&(Ue(0),g(1,"option",14),O(2),y(),je()),2&t){const e=n.$implicit,i=w(2);p(1),_("selected",e===i.pagination.currentPage)("value",e),p(1),gt(" ",e," ")}}function $5(t,n){if(1&t){const e=q();Ue(0),g(1,"select",12),E("change",function(r){return T(e),x(w().onGotoPageChange(r,!1))}),M(2,j5,3,3,"ng-container",13),L(3,"ArrayTotalPages"),y(),je()}if(2&t){const e=w();p(1),_("ngStyle",X(5,t_,40+10*e.pagination.currentPage.toString().length+"px")),p(1),_("ngForOf",Mi(3,2,e.pagination.totalItems,e.pagination.itemsPerPage))}}const ST=function(t){return{"wz-pagination__wrapper__arrows__arrow--disabled":t}};function W5(t,n){if(1&t){const e=q();g(0,"div",1)(1,"div",2)(2,"div",3)(3,"p"),O(4),L(5,"translate"),y(),g(6,"wz-page-selector",4),E("pageChange",function(r){return T(e),x(w().onGotoPageChange(r))}),y()(),g(7,"div",5)(8,"p"),O(9),L(10,"customPagniationText"),y()(),g(11,"div",6)(12,"div",7),E("click",function(){return T(e),x(w().decrementPage())}),k(13,"span",8),y(),g(14,"div",9),E("click",function(){return T(e),x(w().incrementPage())}),L(15,"IsLastPage"),k(16,"span",8),y()()()()}if(2&t){const e=w();p(4),G(H(5,6,"PaginationComponent.page")),p(2),_("pagination",e.pagination)("totalItems",e.pagination.totalItems),p(3),G(Bc(10,8,e.pagination.currentPage,e.pagination.totalItems,e.pagination.itemsPerPage)),p(3),_("ngClass",X(16,ST,1===e.pagination.currentPage)),p(2),_("ngClass",X(18,ST,Bc(15,12,e.pagination.currentPage,e.pagination.totalItems,e.pagination.itemsPerPage)))}}const G5=function(t){return{"mosaic__search--small":t}};function q5(t,n){if(1&t){const e=q();g(0,"div",5)(1,"wz-input-search",6),E("ngModelChange",function(r){return T(e),x(w().tableFilters.searchValue=r)})("changeDebounced",function(r){return T(e),x(w().onSearchChange(r))}),L(2,"translate"),y()()}if(2&t){const e=w();_("ngClass",X(6,G5,"small"===e.stateDisplayed)),p(1),_("ngModel",e.tableFilters.searchValue)("placeholder",H(2,4,"ImgManager.SearchBar.placeholder"))("smallPadding","small"===e.stateDisplayed)}}function Y5(t,n){if(1&t){const e=q();g(0,"img-card",10),E("toggleImgSelected",function(){const o=T(e).index;return x(w(2).onToggleSelectImg(o))})("pictureNameChange",function(r){return T(e),x(w(2).onCardRenamePicture(r))})("switchDisplayWindow",function(){return T(e),x(w(2).switchDisplayWindowCard())}),y()}if(2&t){const e=n.$implicit,i=w(2);_("picture",e)("stateDisplayed",i.stateDisplayed)("tabDisplayed",i.tabDisplayed)("disable",i.disable)("fullSize",i.fullSize)}}const K5=function(t){return{"mosaic__container__cards__fakeImg--smallFakeImg":t}};function Q5(t,n){if(1&t&&k(0,"div",11),2&t){const e=w(2);_("ngClass",X(1,K5,"small"===e.stateDisplayed||"img-upload"===e.tabDisplayed))}}const X5=function(t){return{"mosaic__container__cards--padding":t}};function Z5(t,n){if(1&t&&(g(0,"div",7),M(1,Y5,1,5,"img-card",8),M(2,Q5,1,3,"div",9),L(3,"numberToArray"),y()),2&t){const e=w();_("ngClass",X(6,X5,"window"!==e.stateDisplayed))("@listAnimation",e.picturesList.length),p(1),_("ngForOf",e.picturesList),p(1),_("ngForOf",H(3,4,e.nbFakeImg))}}function J5(t,n){1&t&&(g(0,"div",12),k(1,"wz-loader",13),y()),2&t&&(p(1),_("small",!0))}function e8(t,n){if(1&t){const e=q();g(0,"div",14)(1,"wz-pagination",15),E("pageChange",function(){return T(e),x(w().onFiltersChange())}),y()()}if(2&t){const e=w();p(1),_("pagination",e.tableFilters)}}const t8=function(t,n,e){return{fullSize:t,small:n,"mosaic--displayPexelsImg":e}},n8=function(t,n){return{"field--nowrap":t,alone:n}};function i8(t,n){if(1&t){const e=q();g(0,"div",8)(1,"wz-checkbox",9),E("change",function(r){return T(e),x(w().onToggleAllCheckBox(r))}),y()()}if(2&t){const e=w();p(1),_("id",e.headerCheckBoxId)("alone",!0)}}function r8(t,n){if(1&t){const e=q();g(0,"div",10)(1,"wz-input-search",11),E("ngModelChange",function(r){return T(e),x(w().tableFilters.searchValue=r)})("changeDebounced",function(r){return T(e),x(w().searchChange(r))}),y()()}if(2&t){const e=w();p(1),_("ngModel",e.tableFilters.searchValue)("placeholder",e.placeholder)("smallPadding",!0)}}function o8(t,n){1&t&&(g(0,"div",12),k(1,"wz-loader",13),y()),2&t&&(p(1),_("small",!0))}function s8(t,n){1&t&&gr(0,1,["*ngIf","!isLoading"])}function a8(t,n){if(1&t){const e=q();g(0,"wz-pagination",14),E("pageChange",function(){return T(e),x(w().pageChange())}),y()}2&t&&_("pagination",w().tableFilters)}const l8=[[["","headerCell",""]],[["","tableRow",""]]],c8=["[headerCell]","[tableRow]"];function u8(t,n){1&t&&(g(0,"div",25),k(1,"i",26),y())}const d8=function(t){return{imgSelected:t}},h8=function(t){return{pictureDeletion:t}},f8=function(t){return{desabled:t}};function p8(t,n){if(1&t){const e=q();g(0,"div",6),E("checkBoxValueChange",function(){const o=T(e).index;return x(w().onToggleDelSelection(o))}),g(1,"div",7)(2,"div",8)(3,"div",9),E("click",function(){const o=T(e).index;return x(w().onToggleSelectImg(o))}),g(4,"img",10),E("error",function(r){const s=T(e).$implicit,a=w();return s.imgNotLoaded=!0,x(a.onPictureNotLoading(r))}),L(5,"imgSrc"),y(),M(6,u8,2,0,"div",11),y(),g(7,"input",12),E("ngModelChange",function(r){return x(T(e).$implicit.display_name=r)})("focus",function(){const o=T(e).$implicit;return x(w().previousName=o.display_name)})("blur",function(){const o=T(e).$implicit;return x(w().onNameChange(o.id_file))})("click",function(){const o=T(e).index;return x(w().onToggleDelSelection(o))}),y()()(),g(8,"div",13),E("click",function(){const o=T(e).index;return x(w().onToggleDelSelection(o))}),g(9,"p",14),O(10),y()(),g(11,"div",15)(12,"dropdown",16),Ue(13,17),g(14,"div",18)(15,"span"),k(16,"i",19),y()(),je(),Ue(17,20),g(18,"div",21),E("click",function(){const o=T(e).$implicit;return x(w().onDownloadImg(o.display_name,o.file_name))}),k(19,"i",22),O(20,"\xa0 "),g(21,"p"),O(22),L(23,"translate"),y()(),je(),Ue(24,20),g(25,"div",21),E("click",function(){const o=T(e).$implicit;return x(w().onEdit(o))}),k(26,"i",23),O(27,"\xa0 "),g(28,"p"),O(29),L(30,"translate"),y()(),je(),Ue(31,20),g(32,"div",21),E("click",function(){const o=T(e).$implicit;return x(w().onRemoveImg(o))}),k(33,"i",24),O(34,"\xa0 "),g(35,"p"),O(36),L(37,"translate"),y()(),je(),y()()()}if(2&t){const e=n.$implicit;_("checkBoxValue",e.delSelected),p(3),_("ngClass",X(23,d8,e.selected)),p(1),_("src",Mi(5,14,e.file_name,"100"),Ci)("ngClass",X(25,h8,e.deleted)),p(2),_("ngIf",e.imgNotLoaded),p(1),_("ngModel",e.display_name)("ngClass",X(27,f8,e.deleted))("disabled",e.deleted),p(3),si("",e.raw_height,"x",e.raw_width,""),p(2),_("disable",e.deleted),p(10),G(H(23,17,"ImgManager.ImgList.download")),p(7),G(H(30,19,"ImgManager.ImgList.edit")),p(7),G(H(37,21,"ImgManager.ImgList.remove"))}}const g8=["imgLibContainer"];function m8(t,n){if(1&t&&(g(0,"div")(1,"p",9),O(2),L(3,"translate"),y()()),2&t){const e=w(2);p(2),si("",H(3,2,"ImgManager.ImgLib.nbImg")," : ",e.length,"")}}function _8(t,n){1&t&&(g(0,"div")(1,"p",9),O(2),L(3,"translate"),y()()),2&t&&(p(2),G(H(3,1,"ImgManager.ImgLib.lastImgs")))}function v8(t,n){if(1&t){const e=q();g(0,"button",24),E("click",function(){return T(e),x(w(3).selectImgChosen())}),k(1,"i",25),O(2),L(3,"translate"),y()}if(2&t){const e=w(3);_("@insertRemoveAnnim",void 0),p(2),si(" ",H(3,3,"ImgManager.ImgLib.select")," (",e.nbImgToDelSelected,") ")}}function y8(t,n){1&t&&k(0,"span",29)}function b8(t,n){if(1&t){const e=q();g(0,"button",26),E("click",function(){return T(e),x(w(3).displayConfirmImgSup())}),k(1,"i",27),O(2),L(3,"translate"),M(4,y8,1,0,"span",28),y()}if(2&t){const e=w(3);_("@insertRemoveAnnim",void 0),p(2),si("",H(3,4,"ImgManager.ImgLib.delMlt")," (",e.nbImgToDelSelected,") "),p(2),_("ngIf",e.delListImgLoader)}}const ET=function(t){return{nbImage:t}};function w8(t,n){if(1&t&&(g(0,"p",30),O(1),L(2,"translate"),y()),2&t){const e=w(3);p(1),G(Mi(2,1,"ImgManager.ImgLib.confirmSupQuestions",X(4,ET,e.nbImgToDelSelected)))}}function C8(t,n){if(1&t&&(g(0,"p",30),O(1),L(2,"translate"),y()),2&t){const e=w(3);p(1),G(Mi(2,1,"ImgManager.ImgLib.confirmSupQuestion",X(4,ET,e.nbImgToDelSelected)))}}const D8=function(t){return{"images-view__container__boxAction__confirmSup--visible":t}},IT=function(t){return{actifDisplayed:t}};function S8(t,n){if(1&t){const e=q();g(0,"div",10)(1,"div",11),M(2,v8,4,5,"button",12),M(3,b8,5,6,"button",13),g(4,"div",14),M(5,w8,3,6,"p",15),M(6,C8,3,6,"p",15),g(7,"div")(8,"button",16),E("click",function(){return T(e),x(w(2).cancelSup())}),O(9),L(10,"translate"),y(),g(11,"button",17),E("click",function(){return T(e),x(w(2).removeListImg())}),O(12),L(13,"translate"),y()()()(),g(14,"div",18)(15,"div",19)(16,"div",20),E("click",function(){return T(e),x(w(2).onSwitchFormatDisplayed(!1))}),g(17,"span",21),k(18,"i",22),y()()(),g(19,"div",19)(20,"div",20),E("click",function(){return T(e),x(w(2).onSwitchFormatDisplayed(!0))}),g(21,"span",21),k(22,"i",23),y()()()()()}if(2&t){const e=w(2);p(2),_("ngIf",e.listDisplayed&&e.nbImgToDelSelected&&!e.confirmImgSup&&!e.delListImgLoader&&e.multipleImgMode),p(1),_("ngIf",e.listDisplayed&&e.nbImgToDelSelected&&!e.confirmImgSup),p(1),_("ngClass",X(13,D8,e.confirmImgSup)),p(1),_("ngIf",e.nbImgToDelSelected>1),p(1),_("ngIf",1===e.nbImgToDelSelected),p(3),gt(" ",H(10,9,"ImgManager.ImgLib.cancel")," "),p(3),gt(" ",H(13,11,"ImgManager.ImgLib.confirm")," "),p(4),_("ngClass",X(15,IT,!e.listDisplayed)),p(4),_("ngClass",X(17,IT,e.listDisplayed))}}const E8=function(t,n){return{"images-view__container--uploadTab":t,"images-view__container--window":n}};function I8(t,n){if(1&t&&(g(0,"div",7),M(1,m8,4,4,"div",5),M(2,_8,4,3,"div",5),M(3,S8,23,19,"div",8),y()),2&t){const e=w();_("ngClass",Wn(4,E8,"img-upload"===e.tabDisplayed,"window"===e.stateDisplayed)),p(1),_("ngIf","img-upload"!==e.tabDisplayed),p(1),_("ngIf","img-upload"===e.tabDisplayed),p(1),_("ngIf","img-upload"!==e.tabDisplayed)}}function M8(t,n){if(1&t){const e=q();g(0,"div")(1,"mosaic-view",31),E("picturesListChange",function(){return T(e),x(w().onPicturesListChange())})("filtersChange",function(){return T(e),x(w().onFiltersChange())})("disableChange",function(r){return T(e),x(w().disable=r)})("pictureNameChange",function(r){return T(e),x(w().onRenamePicture(r))})("switchDisplayWindow",function(){return T(e),x(w().switchDisplayWindowMosaic())}),y()()}if(2&t){const e=w();_("@easeInOut","in"),p(1),_("picturesList",e.picturesList)("tableFilters",e.tableFilters)("disable",e.disable)("nbFakeImg",e.nbFakeImg)("stateDisplayed",e.stateDisplayed)("tabDisplayed",e.tabDisplayed)("displayPexelsResults",e.displayPexelsResults)("isLoading",e.isLoading)("fullSize",e.fullSize)}}function T8(t,n){if(1&t){const e=q();g(0,"div")(1,"table-view",32),E("picturesListChange",function(){return T(e),x(w().onPicturesListChange())})("filtersChange",function(){return T(e),x(w().onFiltersChange())})("disableChange",function(r){return T(e),x(w().disable=r)})("pictureNameChange",function(r){return T(e),x(w().onRenamePicture(r))}),y()()}if(2&t){const e=w();_("@easeInOut","in"),p(1),_("picturesList",e.picturesList)("tableFilters",e.tableFilters)("disable",e.disable)("displayPexelsResults",e.displayPexelsResults)("stateDisplayed",e.stateDisplayed)("isLoading",e.isLoading)}}function x8(t,n){if(1&t){const e=q();g(0,"div",33)(1,"pexels-lib",34),E("showImgUploaded",function(){return T(e),x(w().onShowImgUploaded())}),y()()}if(2&t){const e=w();_("@easeInOut","in"),p(1),_("searchValue",e.tableFilters.searchValue)("disableSearch",!0)}}const A8=function(t,n){return{fullSize:t,small:n}},R8=function(t,n,e,i,r,o,s){return{"images-view__scroll--hide--mosaic":t,"images-view__scroll--hide--mosaic--small":n,"images-view__scroll--hide--table":e,"images-view__scroll--full":i,"images-view__scroll--smallDisplay":r,"images-view__scroll--smallUploadDisplay":o,"images-view__scroll--window":s}},P8=["search"];function k8(t,n){1&t&&k(0,"p",5),2&t&&_("innerHTML",w().label,Un)}function O8(t,n){if(1&t&&k(0,"span",10),2&t){const e=w(2);_("innerHTML",e.items[e.indexItemSelected].icon,Un)}}const N8=function(t){return{"select-disabled":t}};function F8(t,n){if(1&t){const e=q();g(0,"div",6),E("click",function(){T(e);const r=w();return x(!r.disabled&&(r.openCategories=!r.openCategories))}),M(1,O8,1,1,"span",7),k(2,"span",8),L(3,"translate"),g(4,"span"),k(5,"i",9),y()()}if(2&t){const e=w();_("ngClass",X(5,N8,e.disabled)),p(1),_("ngIf",-1!==e.indexItemSelected),p(1),_("innerHTML",H(3,3,-1!==e.indexItemSelected?e.items[e.indexItemSelected].name:e.placeholder),Un)}}function L8(t,n){if(1&t){const e=q();g(0,"div",16),k(1,"i",17),g(2,"input",18,19),E("ngModelChange",function(r){return T(e),x(w(2).searchValue=r)}),y()()}if(2&t){const e=w(2);p(2),_("ngModel",e.searchValue)}}function V8(t,n){if(1&t){const e=q();g(0,"span",20),E("click",function(){T(e);const r=w(2);return x(r.openCategories=!r.openCategories)}),y()}if(2&t){const e=w(2);_("innerHTML",e.items[e.indexItemSelected].icon,Un)}}const B8=function(t,n){return{"select-disabled":t,"open-search":n}};function H8(t,n){if(1&t){const e=q();g(0,"div",11),M(1,L8,4,1,"div",12),M(2,V8,1,1,"span",13),g(3,"span",14),E("click",function(){return T(e),x(w().showCategories())}),y(),g(4,"span",15),E("click",function(){T(e);const r=w();return x(r.openCategories=!r.openCategories)}),k(5,"i",9),y()()}if(2&t){const e=w();_("ngClass",Wn(4,B8,e.disabled,e.openCategories)),p(1),_("ngIf",e.openCategories&&!e.disabled),p(1),_("ngIf",(null==e.items[e.indexItemSelected]?null:e.items[e.indexItemSelected].icon)&&!e.openCategories),p(1),_("innerHTML",null!=e.items[e.indexItemSelected]&&e.items[e.indexItemSelected].name?e.items[e.indexItemSelected].name:e.placeholder,Un)}}function z8(t,n){1&t&&k(0,"i",30),2&t&&_("classList",w(4).callToAction.icon)}function U8(t,n){if(1&t&&(g(0,"strong"),O(1),y()),2&t){const e=w(4);p(1),G(e.callToAction.boldText)}}function j8(t,n){if(1&t){const e=q();g(0,"div",27)(1,"div",15),E("click",function(){return T(e),x(w(3).onClickCallToAction())}),M(2,z8,1,1,"i",28),M(3,U8,2,1,"strong",29),g(4,"span"),O(5),y()()()}if(2&t){const e=w(3);p(2),_("ngIf",e.callToAction.icon),p(1),_("ngIf",e.callToAction.boldText),p(2),G(null==e.callToAction?null:e.callToAction.name)}}function $8(t,n){1&t&&k(0,"span",10),2&t&&_("innerHTML",w(2).$implicit.icon,Un)}const W8=function(t){return{selected:t}};function G8(t,n){if(1&t){const e=q();g(0,"div",33),E("click",function(){T(e);const r=w().$implicit;return x(w(3).onSelectItem(r.id))}),M(1,$8,1,1,"span",7),O(2),L(3,"translate"),y()}if(2&t){const e=w().$implicit;_("ngClass",X(5,W8,e.selected)),p(1),_("ngIf",e.icon),p(1),gt("",H(3,3,e.name)," ")}}function q8(t,n){if(1&t){const e=q();g(0,"div",31),E("click",function(){return T(e),x(w(3).onClose())}),M(1,G8,4,7,"div",32),y()}if(2&t){const e=n.$implicit;p(1),_("ngIf",!e.hide)}}function Y8(t,n){if(1&t&&(g(0,"div",24),M(1,j8,6,3,"div",25),M(2,q8,2,1,"div",26),L(3,"selectFilters"),y()),2&t){const e=w(2);_("perfectScrollbar",La(6,Pd)),p(1),_("ngIf",e.callToAction),p(1),_("ngForOf",Mi(3,3,e.items,e.searchValue))}}function K8(t,n){1&t&&(g(0,"div",34)(1,"span"),O(2),L(3,"translate"),y()()),2&t&&(p(2),G(H(3,1,"wac.datatable.noresult")))}const Q8=function(t,n){return{hidden:t,open:n}},MT=function(t){return{"max-width":t}};function X8(t,n){if(1&t&&(g(0,"div",21),M(1,Y8,4,7,"div",22),M(2,K8,4,3,"div",23),L(3,"selectFilters"),y()),2&t){const e=w();let i;_("ngClass",Wn(7,Q8,!e.openCategories,"open"===e.type))("ngStyle",X(10,MT,e.maxWidthItems)),p(1),_("ngIf",e.items.length),p(1),_("ngIf",!(null!=(i=Mi(3,4,e.items,e.searchValue))&&i.length))}}const Z8=["imgUploadedImg"],kd=function(t){return{"is-active":t}};function J8(t,n){if(1&t&&(g(0,"li",14)(1,"a"),O(2),L(3,"translate"),y()()),2&t){const e=w();_("ngClass",X(4,kd,e.tabActive.value===e.tabs[3].value)),p(2),G(H(3,2,e.tabs[3].name))}}function e6(t,n){if(1&t){const e=q();g(0,"images-view",23),E("switchDisplayWindow",function(){return T(e),x(w(2).switchDisplayWindowImgView())}),y()}if(2&t){const e=w(2);_("stateDisplayed",e.stateDisplayed)("listDisplayed",!1)("multipleImgMode",e.multipleImgMode)("tabDisplayed",e.tabActive.value)("nbRowToShow",2)("fullSize",!1)}}const t6=function(t,n){return{"img-tabs__tabsFirst--small":t,"img-tabs__tabsFirst--window":n}},n6=function(t){return{"img-tabs__tabsFirst__list--upload":t}};function i6(t,n){if(1&t){const e=q();g(0,"div",15)(1,"div",16)(2,"img-upload",17),E("imgUploaded",function(r){return T(e),x(w().onImgUploaded(r))}),y()(),g(3,"div",18),M(4,e6,1,6,"images-view",19),g(5,"div",20)(6,"upload-list",21,22),E("switchDisplayWindow",function(){return T(e),x(w().switchDisplayWindowImgView())}),y()()()()}if(2&t){const e=w();_("ngClass",Wn(8,t6,"small"===e.stateDisplayed,"window"===e.stateDisplayed)),p(2),_("stateDisplayed",e.stateDisplayed),p(1),_("ngClass",X(11,n6,e.imgUpload)),p(1),_("ngIf",!e.imgUpload),p(1),_("hidden",!e.imgUpload),p(1),_("stateDisplayed",e.stateDisplayed)("tabDisplayed",e.tabActive.value)("multipleImgMode",e.multipleImgMode)}}function r6(t,n){if(1&t){const e=q();g(0,"div",24)(1,"div",25)(2,"images-view",26),E("switchDisplayWindow",function(){return T(e),x(w().switchDisplayWindowImgView())}),y()()()}if(2&t){const e=w();p(2),_("stateDisplayed",e.stateDisplayed)("listDisplayed",e.listDisplayed)("multipleImgMode",e.multipleImgMode)("tabDisplayed",e.tabActive.value)("fullSize",!0)}}function o6(t,n){if(1&t){const e=q();g(0,"div",27)(1,"div",25)(2,"pexels-lib",7),E("showImgUploaded",function(){return T(e),x(w().onShowImgUploaded())}),y()()()}if(2&t){const e=w();p(2),_("stateDisplayed",e.stateDisplayed)}}function s6(t,n){if(1&t){const e=q();g(0,"div",28)(1,"div",25)(2,"img-editor",29),E("editClosed",function(r){return T(e),x(w().onEditClosed(r))}),y()()()}if(2&t){const e=w();p(2),_("stateDisplayed",e.stateDisplayed)("imgToEdit",e.imgToEdit)}}const a6=function(t){return{small:t}},l6=function(t,n){return{"tabs--notWindow":t,"tabs--notDisplayed":n}},c6=function(t){return{"img-tabs__canva--window":t}};function u6(t,n){if(1&t&&(k(0,"img",12),L(1,"imgSrc")),2&t){const e=w().$implicit;_("src",Mi(1,2,e.file_name,"400"),Ci)("title",e.display_name)}}function d6(t,n){if(1&t&&(k(0,"img",12),L(1,"imgSrc")),2&t){const e=w().$implicit;_("src",Mi(1,2,e.file_name,"200"),Ci)("title",e.display_name)}}function h6(t,n){if(1&t){const e=q();g(0,"div",8),E("cdkDragStarted",function(){return T(e),x(w(2).dragStart=!0)})("cdkDragEnded",function(){return T(e),x(w(2).dragStart=!1)}),M(1,u6,2,5,"img",9),M(2,d6,2,5,"img",9),g(3,"div",10),E("click",function(){const o=T(e).index;return x(w(2).removeImg(o))}),O(4),L(5,"translate"),y(),g(6,"span",11),O(7),L(8,"translate"),y()()}if(2&t){const e=n.index;p(1),_("ngIf",e<1),p(1),_("ngIf",e>0),p(2),G(H(5,4,"ImgManager.ImgSelection.deleteImg")),p(3),G(H(8,6,"ImgManager.ImgSelection.tooltips"))}}const f6=function(t){return{"img-selection--visible":t}},p6=function(t){return[t]};function g6(t,n){if(1&t){const e=q();g(0,"div",4)(1,"div",5,6),E("cdkDropListDropped",function(r){return T(e),x(w().drop(r))}),M(3,h6,9,8,"div",7),y()()}if(2&t){const e=w(),i=Of(1);_("ngClass",X(3,f6,e.imgSelectedList&&e.imgSelectedList.length)),p(1),_("cdkDropListConnectedTo",X(5,p6,i)),p(2),_("ngForOf",e.imgSelectedList)}}function m6(t,n){1&t&&(Ue(0),k(1,"wz-loader"),je())}function _6(t,n){1&t&&(g(0,"div",3),k(1,"img-selection"),y())}function v6(t,n){if(1&t){const e=q();g(0,"button",10),E("click",function(){return T(e),x(w(3).openSmall())}),g(1,"span"),O(2,"Expand"),y(),k(3,"i",11),y()}}function y6(t,n){if(1&t){const e=q();g(0,"button",10),E("click",function(){return T(e),x(w(3).openSmall())}),g(1,"span"),O(2,"Expand"),y(),k(3,"i",12),y()}}function b6(t,n){if(1&t){const e=q();g(0,"button",10),E("click",function(){return T(e),x(w(3).openFull())}),g(1,"span"),O(2,"Expand"),y(),k(3,"i",12),y()}}function w6(t,n){if(1&t){const e=q();g(0,"button",10),E("click",function(){return T(e),x(w(3).onClose())}),g(1,"span"),O(2,"Close"),y(),k(3,"i",13),y()}}function C6(t,n){if(1&t&&(g(0,"div",8),M(1,v6,4,0,"button",9),M(2,y6,4,0,"button",9),M(3,b6,4,0,"button",9),M(4,w6,4,0,"button",9),y()),2&t){const e=w(2);p(1),_("ngIf","full"===e.stateDisplayed),p(1),_("ngIf","closed"===e.stateDisplayed),p(1),_("ngIf","small"===e.stateDisplayed),p(1),_("ngIf","closed"!==e.stateDisplayed)}}const D6=function(t,n,e,i){return{"wz-img-manager__module--small":t,"wz-img-manager__module--full":n,"wz-img-manager__module--window":e,"wz-img-manager__module--edit":i}},S6=function(t){return{"wz-block--window":t}};function E6(t,n){if(1&t){const e=q();g(0,"div",4),M(1,C6,5,4,"div",5),g(2,"div",6)(3,"img-tabs",7),E("imgManagerClosed",function(){return T(e),x(w().onImgManagerClosed())})("switchDisplayWindow",function(){return T(e),x(w().changeDisplayTab())})("currentTab",function(r){return T(e),x(w().setCurrentTab(r))}),y()()()}if(2&t){const e=w();_("ngClass",Yf(6,D6,"small"===e.stateDisplayed,"full"===e.stateDisplayed,"window"===e.stateDisplayed,e.hideTab)),p(1),_("ngIf","window"!==e.stateDisplayed),p(1),_("ngClass",X(11,S6,"window"===e.stateDisplayed)),p(1),_("stateDisplayed",e.stateDisplayed)("multipleImgMode",e.multipleImgMode)("listDisplayed",e.listDisplayed)}}let Xi=(()=>{class t{constructor(){this.imgSelectedList=[],this.multipleImgMode=!1,this.imgSelectionSubscriber=[],this.imgListLoading=new o0}getImgSelection(){return this.imgSelectedList}setImgSelection(e){this.imgSelectedList.length=0,e&&e.length&&e.forEach(i=>this.imgSelectedList.push(i)),this.emitImgSelectionChange()}addImgSelected(e){this.multipleImgMode?this.imgSelectedList.push(e):this.imgSelectedList=[e],this.emitImgSelectionChange()}getImgSelectionChange(){return new xe(i=>{this.imgSelectionSubscriber.push(i)})}emitImgSelectionChange(){this.imgSelectionSubscriber.map(e=>e.next(JSON.parse(JSON.stringify(this.imgSelectedList))))}removeImgSelectedByIndex(e){this.imgSelectedList.splice(e,1),this.emitImgSelectionChange()}removeImgSelectedById(e){if(!this.multipleImgMode)return void(this.imgSelectedList=[]);let i=0;for(const r of this.imgSelectedList){if(r.id_file===e){this.removeImgSelectedByIndex(i);break}i++}}removeImgSelectionByIds(e){if(this.multipleImgMode)for(let i=this.imgSelectedList.length-1;i>-1;i--)-1!==e.indexOf(this.imgSelectedList[i].id_file)&&this.removeImgSelectedByIndex(i);else this.imgSelectedList=[]}removeAllImgSelected(){this.imgSelectedList.length=0,this.emitImgSelectionChange()}setMultipleImgMode(e){this.multipleImgMode=e}initImgSelectedList(e){e?this.imgSelectedList=e:this.imgSelectedList&&this.imgSelectedList.length?this.imgSelectedList.splice(0,this.imgSelectedList.length):this.imgSelectedList=[]}emitImgListLoading(e){this.imgListLoading.next(e)}getImgListLoadingEventListner(){return this.imgListLoading.asObservable()}moveImgOrder(e){this.imgSelectedList.splice(e.currentIndex,0,this.imgSelectedList.splice(e.previousIndex,1)[0]),this.emitImgSelectionChange()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class I6{}let pi=(()=>{class t{constructor(e){this.http=e,this.params=(new qi).set("limit","20").set("page","1"),this.pageFicheProductConfig={stateDisplayed:"closed",multipleImgMode:!0,showImgManagerModule:!0,showSelection:!0,displayBtn:!0,pageficheProduct:!0},this.angularFicheProductConfig={stateDisplayed:"closed",multipleImgMode:!0,showImgManagerModule:!0,showSelection:!0,displayBtn:!1,pageficheProduct:!0},this.wiziblockConfig={stateDisplayed:"closed",multipleImgMode:!1,showImgManagerModule:!0,showSelection:!1,displayBtn:!1},this.simpleWithButtonOpenerConfig={stateDisplayed:"closed",multipleImgMode:!1,showImgManagerModule:!0,showSelection:!1,displayBtn:!0},this.fullWindowConfig={stateDisplayed:"window",multipleImgMode:!1,showImgManagerModule:!0,showSelection:!1,displayBtn:!1}}setApiConfig(e,i){this.imgManagerRoute=e,this.shopToken=i}getOptionsHeaders(e){const i={headers:new Mn({Authorization:"Bearer "+this.shopToken})};return e&&(this.getParams(e),i.params=this.params),i}getShopImgList(e){return this.http.get(`${this.imgManagerRoute}/images`,this.getOptionsHeaders(e))}getShopTotalImgList(e){return this.http.get(`${this.imgManagerRoute}/total/image`,this.getOptionsHeaders(e))}getShopImg(e){return this.http.get(`${this.imgManagerRoute}/images/${e}`,this.getOptionsHeaders())}getParams(e){this.params=new qi,this.params=this.params.set("id_file:sort","desc");for(const i in e)this.params=this.params.set(i,e[i])}uploadFile(e){return this.http.post(`${this.imgManagerRoute}/images/template`,e,this.getOptionsHeaders())}uploadFileByUrl(e,i){return this.http.post(`${this.imgManagerRoute}/images/template`,{url:e,fileName:i},this.getOptionsHeaders())}replaceImg(e,i){return this.http.put(`${this.imgManagerRoute}/images/${i}/replace`,{imageBase64:e,type:"RAW"},this.getOptionsHeaders())}changeImgName(e,i){return this.http.put(`${this.imgManagerRoute}/images/${i}?file_name=${e}`,null,this.getOptionsHeaders())}removeImg(e){return this.http.delete(`${this.imgManagerRoute}/images/${e}`,this.getOptionsHeaders())}removeMultipleImg(e){return this.http.post(`${this.imgManagerRoute}/images-multiple-delete`,{id_array:e},this.getOptionsHeaders())}getImgManagerDisplayConfig(e){switch(e){case"window":return this.fullWindowConfig;case"wizi-block":return this.wiziblockConfig;case"fiche-product":return this.pageFicheProductConfig;case"simple-with-button":return this.simpleWithButtonOpenerConfig;case"angular-fiche-product":return this.angularFicheProductConfig;default:return}}getAllImgManagerDisplayConfig(){return[this.fullWindowConfig,this.wiziblockConfig,this.pageFicheProductConfig,this.simpleWithButtonOpenerConfig]}}return t.\u0275fac=function(e){return new(e||t)(R(Yi))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Fo=(()=>{class t{constructor(){this.imgCDNConfig=null}setImgCDNConfig(e){this.imgCDNConfig=e}getUrlImg(e){const i=Object.keys(this.imgCDNConfig).filter(r=>new RegExp(e,"i").test(r))[0];return this.imgCDNConfig[i]}getAllSize(){return Object.keys(this.imgCDNConfig).map(e=>e.match(/_(\w+)_/)[1])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),eo=(()=>{class t{constructor(e,i){this.imgManagerService=e,this.imgCDNService=i}setExternalConfig(e){this.externalConfig=e,this.imgManagerService.setApiConfig(e.api.image_manager_route,e.api.shop_token),this.imgCDNService.setImgCDNConfig(e.imgCDNConfig)}getCanvaApiURL(){return this.externalConfig.api.canva_url}getCanvaApiToken(){return this.externalConfig.api.canva_token}getRouteAssets(){return this.externalConfig.api.assets_route}getPexelsApiURL(){return this.externalConfig.api.pexels_route}getPexelsApiToken(){return this.externalConfig.api.pexels_token}getShopCategory(){return this.externalConfig.api.shop_category}}return t.\u0275fac=function(e){return new(e||t)(R(pi),R(Fo))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),TT=(()=>{class t{constructor(){this.userdisplayPreference="WzImgManagerListDisplayed"}setUserDisplayPreference(e){localStorage.setItem(this.userdisplayPreference,""+e)}getUserDisplayPreference(){return"true"==localStorage.getItem(this.userdisplayPreference)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ki=(()=>{class t{constructor(e,i){this.nwbAlertService=e,this.translateService=i,this.actionMsg="ImgManager.alert.action",this.alertConfig={message:"",duration:5e3}}openAlert(e){this.closePreviousAlert(),this.translateService.get(e).subscribe(i=>{this.alertConfig.message=i,this.setAlertColor(e),this.alertRefComponent=this.nwbAlertService.open(this.alertConfig),this.alertRefComponent.afterClosed().subscribe()})}openAlertWithBackendRespons(e,i){this.translateService.get(e).subscribe(r=>{this.alertConfig.message=r,this.alertConfig.message+="<br/>"+JSON.parse(i).message,this.closePreviousAlert(),this.alertRefComponent=this.nwbAlertService.open(this.alertConfig),this.alertRefComponent.afterClosed().subscribe()})}closePreviousAlert(){this.alertRefComponent&&this.alertRefComponent.dismiss()}setAlertColor(e){const i=/error/i.test(e);this.alertConfig.color=i?"is-danger":"is-success"}}return t.\u0275fac=function(e){return new(e||t)(R(gM),R(gn))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),to=(()=>{class t{constructor(){this.imgToEditEvent=new K,this.imgRemoved=new K,this.imgAdded=new K,this.listDisplayedChange=new K}emitImgRemoved(e){this.imgRemoved.next(e)}getImgRemovedEventListner(){return this.imgRemoved.asObservable()}emitImgToEdit(e){this.imgToEditEvent.next(e)}getImgToEditEventListner(){return this.imgToEditEvent.asObservable()}emitImgAdded(e){this.imgAdded.next(e)}getImgAddedEventListner(){return this.imgAdded.asObservable()}emitlistDisplayedChange(e){this.listDisplayedChange.next(e)}getlistDisplayedChange(){return this.listDisplayedChange.asObservable()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Od=(()=>{class t{constructor(e,i,r,o,s){this.externalConfigService=e,this.imgManager=i,this.wzImgEventService=r,this.alertService=o,this.translateService=s,this.imgLoading=!1,this.uploadingImg="ImgManager.CanvaBtn.uploadingImg",this.successUploadPhoto="ImgManager.CanvaBtn.successImport",this.errorUploadCanvaImg="ImgManager.CanvaBtn.errorUploadCanvaImg",this.errorRenameCanvaImg="ImgManager.CanvaBtn.errorRenameCanvaImg",this.forceToOpenCanva=!1,this.bindExpectedImgSizeEvent=new Yn(null),this.bindExpectedSizeDone=this.bindExpectedImgSizeEvent.asObservable()}setCanvaApiConfig(){this.canvaApiURL=this.externalConfigService.getCanvaApiURL(),this.canvaApiKey=this.externalConfigService.getCanvaApiToken()}getCanvaLogo(){return this.externalConfigService.getRouteAssets()+"canva/icon_canva.svg"}bindEventExepectedImgSizeChange(){return this.bindExpectedSizeDone}expectedImgSizesChange(e){this.bindExpectedImgSizeEvent.next(e),this.forceToOpenCanva&&this.openCanva(parseInt(e.image_width),parseInt(e.image_height))}getCanvaApi(){return(!this.canvaApiURL||!this.canvaApiKey)&&this.setCanvaApiConfig(),new xe(e=>{this.loadCanva().subscribe({complete:()=>{this.canvaApi&&Canva.DesignButton?(e.next(this.canvaApi),e.complete()):this.initializeCanva(e)}})})}initializeCanva(e){Canva.DesignButton&&Canva.DesignButton.initialize({apiKey:this.canvaApiKey}).then(i=>{this.canvaApi=i,e.next(this.canvaApi),e.complete()})}loadCanva(){return new xe(e=>{this.canvaApi?e.complete():this.loadCanvaScript(e)})}loadCanvaScript(e){const i=document.createElement("script");i.src=this.canvaApiURL,i.type="text/javascript",i.async=!1,i.charset="utf-8",i.onload=()=>{e.complete()},document.getElementsByTagName("head")[0].appendChild(i)}openCanva(e,i){this.imgLoading||this.getCanvaApi().pipe(Vt(1)).subscribe(r=>{this.canvaApi=r,this.addOverflowBody(),this.createDesign(e,i)})}addOverflowBody(){document.body.classList.add("ovh-canva")}removeOverflowBody(){document.body.classList.remove("ovh-canva")}createDesign(e,i){const r={type:"EtsyShopIcon",dimensions:{units:"px",width:e||void 0,height:i||void 0},publishLabel:this.translateService.instant("ImgManager.CanvaBtn.publish")};this.canvaApi.createDesign({design:r,onDesignPublish:({exportUrl:o,designTitle:s})=>this.designPublished(o,s),onDesignClose:()=>{this.removeOverflowBody()}})}designPublished(e,i){this.alertService.openAlert(this.uploadingImg),this.imgLoading=!0,this.imgManager.uploadFileByUrl(e,i).pipe(Vt(1)).subscribe(r=>{this.imgLoading=!1,this.removeOverflowBody(),this.wzImgEventService.emitImgAdded(r.id_file),this.alertService.openAlert(this.successUploadPhoto)},r=>{this.imgLoading=!1,this.removeOverflowBody(),406===r.error.code&&r.error.message?this.alertService.openAlertWithBackendRespons(this.errorUploadCanvaImg,r.error.message):this.alertService.openAlert(this.errorUploadCanvaImg)})}}return t.\u0275fac=function(e){return new(e||t)(R(eo),R(pi),R(to),R(ki),R(gn))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xT=(()=>{class t{constructor(){this.documentEventSource=new K,this.documentEventDone=this.documentEventSource.asObservable(),this.documentScrollSource=new K,this.documentScrollDone=this.documentScrollSource.asObservable()}documentEvent(){return this.documentEventDone}setDocumentEventListener(){document.body.addEventListener("click",e=>{this.documentEventSource.next(e.target)})}documentScroll(){return this.documentScrollDone}setScrollEventListener(){window.onscroll=()=>{this.documentScrollSource.next(window)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Qs=Hr("easeInOut",[ci("in",Fe({opacity:1})),pn(":enter",[Fe({opacity:0}),In("0.5s ease-in-out")])]);let AT=(()=>{class t{constructor(e,i){this.imgManager=e,this.alertService=i,this.picturesList=[],this.pictureNameChanged=new K,this.errorRenameImg="ImgManager.ImgList.errorRenameImg",this.msgSavingImgName="ImgManager.ImgLib.savingImgName",this.msgImgNameSaved="ImgManager.ImgLib.imgNameSaved",this.setEvents()}setPicturesList(e){this.picturesList=e}onRenamePicture(e){this.pictureNameChanged.next(e)}setEvents(){this.pictureNameChanged.pipe(wd(800)).subscribe(e=>{this.renamePicture(e)})}renamePicture(e){const i=this.getPictureById(e.id);i?(this.alertService.openAlert(this.msgSavingImgName),this.imgManager.changeImgName(i.display_name,i.id_file).subscribe(r=>{i.display_name=r.display_name,this.alertService.openAlert(this.msgImgNameSaved)},r=>{i.display_name=e.previousName,this.alertService.openAlert(this.errorRenameImg)})):this.alertService.openAlert(this.errorRenameImg)}getPictureById(e){if(this.picturesList){for(const i of this.picturesList)if(i.id_file===e)return i;return null}}}return t.\u0275fac=function(e){return new(e||t)(R(pi),R(ki))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),n_=(()=>{class t{constructor(e,i,r,o,s,a,l,c){this.imgManager=e,this.imgSelectionService=i,this.http=r,this.imgCDNService=o,this.imgEventCardService=s,this.alertService=a,this.translateService=l,this.externalService=c,this.picturesList=[],this.picturesListChange=new F,this.tableFilters={sort:void 0,order:void 0,searchValue:"",totalItems:0,itemsPerPage:30,currentPage:1},this.displayPexelsResults=!1,this.disable=!1,this.disableChange=new F,this.filtersChange=new F,this.pictureNameChange=new F,this.isLoading=!1,this.errorRemoveImg="ImgManager.ImgList.errorRemoveImg",this.errorAlreadyUsedImg="ImgManager.ImgList.errorAlreadyUsed",this.fakeImgRoute=this.externalService.getRouteAssets()+"img/fake.png"}onToggleAllCheckBoxRow(e){this.picturesList.forEach(i=>{i.delSelected=e}),this._pictureListeChange()}onToggleDelSelection(e){this.disable||(this.picturesList[e].delSelected=!this.picturesList[e].delSelected,this._pictureListeChange())}onFiltersChange(){this.filtersChange.emit()}onEdit(e){this.imgEventCardService.emitImgToEdit(e)}onToggleSelectImg(e){this.disable||"window"===this.stateDisplayed||(this.picturesList[e].selected?(this.imgSelectionService.removeImgSelectedById(this.picturesList[e].id_file),this.picturesList[e].selected=!1):(this.imgSelectionService.addImgSelected(this.picturesList[e]),this.picturesList[e].selected=!0))}onRemoveImg(e){e.deleted=!0,this.imgManager.removeImg(e.id_file).subscribe(i=>{this.imgEventCardService.emitImgRemoved(e.id_file),this.imgSelectionService.removeImgSelectedById(e.id_file)},i=>{const r=409===i.status?this.errorAlreadyUsedImg:this.errorRemoveImg;e.deleted=!1,this.alertService.openAlert(r)})}onPictureNotLoading(e){e.target.src=this.fakeImgRoute}onDownloadImg(e,i){this.http.get(this.getRAWImgRoute(i),{responseType:"blob"}).subscribe(r=>{let o=URL.createObjectURL(r);this.downloadUrl(o,e),URL.revokeObjectURL(o)})}onNameChange(e){this.pictureNameChange.emit({id:e,previousName:this.previousName})}getRAWImgRoute(e){return this.imgCDNService.getUrlImg("raw")+e}_pictureListeChange(){this.picturesListChange.emit()}downloadUrl(e,i){const r=document.createElement("a");r.href=e,r.download=i,r.click()}ngDestroy(){this.getDataAPISub&&this.getDataAPISub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(v(pi),v(Xi),v(Yi),v(Fo),v(to),v(ki),v(gn),v(eo))},t.\u0275dir=z({type:t,inputs:{picturesList:"picturesList",tableFilters:"tableFilters",displayPexelsResults:"displayPexelsResults",disable:"disable",isLoading:"isLoading",stateDisplayed:"stateDisplayed"},outputs:{picturesListChange:"picturesListChange",disableChange:"disableChange",filtersChange:"filtersChange",pictureNameChange:"pictureNameChange"}}),t})(),Xs=(()=>{class t{constructor(e){this.currentLoading=0,this.interval=null,this.element=e,this.launchLoading()}launchLoading(){null===this.interval&&(this.currentLoading=10,this.element.nativeElement.style.width=this.currentLoading+"%",this.interval=setInterval(()=>{this.currentLoading<80&&(this.currentLoading+=Math.floor(15*Math.random()),this.element.nativeElement.style.width=this.currentLoading+"%"),this.currentLoading>=80&&this.currentLoading<95&&(this.currentLoading+=Math.floor(2*Math.random()),this.element.nativeElement.style.width=this.currentLoading+"%")},70))}ngOnDestroy(){this.interval&&(clearInterval(this.interval),this.interval=null)}}return t.\u0275fac=function(e){return new(e||t)(v(Te))},t.\u0275dir=z({type:t,selectors:[["","btnLoadingAnim",""]]}),t})(),Nl=(()=>{class t{constructor(e){this.imgCDNService=e}transform(e,i){if(!i)throw"The size is undefined in ImageSrcPipe.";const r=this.imgCDNService.getUrlImg(i);if(!r)throw"The expected size is not defined in ImageSrcPipe.";return r+e}}return t.\u0275fac=function(e){return new(e||t)(v(Fo,16))},t.\u0275pipe=ht({name:"imgSrc",type:t,pure:!0}),t})(),i_=(()=>{class t extends n_{constructor(e,i,r,o,s,a,l,c){super(e,i,r,o,s,a,l,c),this.focusInput=!1,this.toggleImgSelected=new F,this.switchDisplayWindow=new F,this.isUploadSection=!1,this.activeConfirmDelete=!1}ngOnInit(){this.isUploadSection="img-upload"===this.tabDisplayed}displayLargeWindow(){this.switchDisplayWindow.emit(!0)}onToggleImgSelected(){this.toggleImgSelected.next()}}return t.\u0275fac=function(e){return new(e||t)(v(pi),v(Xi),v(Yi),v(Fo),v(to),v(ki),v(gn),v(eo))},t.\u0275cmp=be({type:t,selectors:[["img-card"]],inputs:{tabDisplayed:"tabDisplayed",fullSize:"fullSize",picture:"picture",index:"index"},outputs:{toggleImgSelected:"toggleImgSelected",switchDisplayWindow:"switchDisplayWindow"},features:[ve],decls:25,vars:37,consts:[[1,"addCssPriority",3,"ngClass"],[1,"img-card"],[1,"img-card__container",3,"ngClass"],[1,"img-card__container__img",3,"src","alt","click","error"],["class","img-card__container__config",4,"ngIf"],["class","img-card__container__config img-card__container__config--small",4,"ngIf"],[1,"img-card__container__delete",3,"ngClass"],[3,"click"],["class","img-card__container__valid",4,"ngIf"],["class","img-card__container__overlay",3,"ngClass",4,"ngIf"],["btnLoadingAnim","","class","btnLoadingAnnimation",4,"ngIf"],[1,"img-card__nameContainer",3,"ngClass"],["type","text",1,"wzImgMngInput","img-card__nameContainer__name",3,"ngModel","ngModelChange","focus","blur"],[1,"img-card__container__config"],["type","button",1,"size"],[1,"fal","fa-image-polaroid"],["type","button",1,"dl",3,"click"],[1,"fal","fa-download"],["type","button",1,"edit",3,"click"],[1,"far","fa-crop-alt"],["type","button",1,"deleted",3,"click"],[1,"fal","fa-times"],["type","button","class","selected",3,"click",4,"ngIf"],["type","button",1,"selected",3,"click"],["class","fal fa-square",4,"ngIf"],["class","fas fa-check-square checked",4,"ngIf"],[1,"fal","fa-square"],[1,"fas","fa-check-square","checked"],[1,"img-card__container__config","img-card__container__config--small"],[1,"show-edit",3,"click"],[1,"fas","fa-edit"],[1,"img-card__container__valid"],[1,"far","fa-check"],[1,"img-card__container__overlay",3,"ngClass"],[1,"fad","fa-folder-times",3,"click"],["btnLoadingAnim","",1,"btnLoadingAnnimation"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"div",1)(2,"div",2)(3,"img",3),E("click",function(){return i.onToggleImgSelected()})("error",function(o){return i.picture.imgNotLoaded=!0,i.onPictureNotLoading(o)}),L(4,"imgSrc"),y(),M(5,LW,21,12,"div",4),M(6,VW,3,0,"div",5),g(7,"div",6)(8,"span"),O(9),L(10,"translate"),y(),g(11,"div")(12,"button",7),E("click",function(){return i.activeConfirmDelete=!1}),O(13),L(14,"translate"),y(),g(15,"button",7),E("click",function(){return i.onRemoveImg(i.picture),i.activeConfirmDelete=!1}),O(16),L(17,"translate"),y()()(),M(18,BW,5,3,"div",8),M(19,zW,2,3,"div",9),M(20,UW,1,0,"span",10),y(),g(21,"div",11)(22,"input",12),E("ngModelChange",function(o){return i.picture.display_name=o})("ngModelChange",function(){return i.onNameChange(i.picture.id_file)})("focus",function(){return i.previousName=i.picture.display_name,i.focusInput=!0})("blur",function(){return i.focusInput=!1}),y(),g(23,"span"),O(24),y()()()()),2&e&&(_("@easeInOut","in")("ngClass",X(26,jW,i.fullSize)),p(2),_("ngClass",Vc(28,$W,"small"===i.stateDisplayed||i.isUploadSection,i.picture.selected,i.picture.deleted)),p(1),_("src",Mi(4,17,i.picture.file_name,"400"),Ci)("alt",i.picture.display_name),p(2),_("ngIf",!i.picture.deleted&&"small"!==i.stateDisplayed),p(1),_("ngIf",!i.picture.deleted&&"small"===i.stateDisplayed),p(1),_("ngClass",X(32,WW,i.activeConfirmDelete)),p(2),G(H(10,20,"ImgManager.ImgCard.confirmDeleteImg")),p(4),G(H(14,22,"no")),p(3),G(H(17,24,"yes")),p(2),_("ngIf","small"===i.stateDisplayed&&"img-upload"==i.tabDisplayed),p(1),_("ngIf",i.picture.imgNotLoaded),p(1),_("ngIf",i.picture.deleted),p(1),_("ngClass",Wn(34,GW,"small"===i.stateDisplayed||i.isUploadSection,i.focusInput)),p(1),_("ngModel",i.picture.display_name),p(2),G(i.picture.display_name))},dependencies:[Ze,$e,Cr,hi,Xn,Xs,Jt,Nl],encapsulation:2,data:{animation:[Qs]}}),t})(),RT=(()=>{class t{constructor(e,i){this.imgSelectionService=e,this.renamePictureService=i,this.picturesList=[],this.multipleImgMode=!1,this.switchDisplayWindow=new F}ngOnInit(){this.setEvents()}onImgUploaded(e){e.forEach(i=>this.picturesList.push(i)),this.renamePictureService.setPicturesList(this.picturesList)}onToggleSelectImg(e){"window"!==this.stateDisplayed&&(this.picturesList[e].selected?(this.imgSelectionService.removeImgSelectedById(this.picturesList[e].id_file),this.picturesList[e].selected=!1):(this.imgSelectionService.addImgSelected(this.picturesList[e]),this.picturesList[e].selected=!0))}switchDisplayWindowCard(){this.switchDisplayWindow.emit(!0)}onRenamePicture(e){this.renamePictureService.onRenamePicture(e)}setEvents(){this.imgSelectionChange=this.imgSelectionService.getImgSelectionChange().subscribe(e=>{const i=[];e.map(r=>i.push(r.id_file));for(const r of this.picturesList)-1===i.indexOf(r.id_file)&&(r.selected=!1)})}ngOnDestroy(){this.imgSelectionChange.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(v(Xi),v(AT))},t.\u0275cmp=be({type:t,selectors:[["upload-list"]],inputs:{stateDisplayed:"stateDisplayed",tabDisplayed:"tabDisplayed",multipleImgMode:"multipleImgMode"},outputs:{switchDisplayWindow:"switchDisplayWindow"},decls:45,vars:26,consts:[[1,"upload-list",3,"ngClass"],[1,"upload-list__scroll",3,"config","ngClass"],["scrollable",""],[1,"upload-list__box"],[1,"upload-list__box__container"],[1,"mainColor"],[4,"ngIf"],[1,"dropdown","is-hoverable"],[1,"dropdown-trigger"],["aria-haspopup","true","aria-controls","dropdown-menuInfoSeo",1,"fas","fa-info-circle"],["id","dropdown-menuInfoSeo","role","menu",1,"dropdown-menu","dropDownShadow"],[1,"dropdown-content"],[1,"dropdown-item"],[1,"fal","fa-check"],[1,"upload-list__box__cards"],["class","upload-list__box__cards__card",4,"ngFor","ngForOf"],[1,"upload-list__box__cards__card"],[3,"picture","stateDisplayed","toggleImgSelected","switchDisplayWindow","pictureNameChange"],[1,"upload-list__box__cards__card__btnBox"],["type","button",1,"button","success","upload-list__box__cards__card__btnBox__btn"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"perfect-scrollbar",1,2)(3,"div",3)(4,"div",4)(5,"div")(6,"p",5),O(7),M(8,qW,3,3,"ng-container",6),M(9,YW,3,3,"ng-container",6),y(),g(10,"div",7)(11,"div",8),k(12,"i",9),y(),g(13,"div",10)(14,"div",11)(15,"div",12)(16,"p"),O(17),L(18,"translate"),y(),g(19,"p"),k(20,"i",13),O(21," 100%"),y()(),g(22,"div",12)(23,"p"),O(24),L(25,"translate"),y(),g(26,"p"),k(27,"i",13),O(28," 100%"),y()(),g(29,"div",12)(30,"p"),O(31),L(32,"translate"),y(),g(33,"p"),k(34,"i",13),O(35," 100%"),y()(),g(36,"div",12)(37,"p"),O(38),L(39,"translate"),y(),g(40,"p"),k(41,"i",13),O(42," 100%"),y()()()()()()(),g(43,"div",14),M(44,KW,5,2,"div",15),y()()()()),2&e&&(_("ngClass",X(20,QW,"small"===i.stateDisplayed))("@easeInOut","in"),p(1),_("config",La(22,Pd))("ngClass",Wn(23,XW,"small"===i.stateDisplayed,"window"===i.stateDisplayed)),p(6),gt(" ",i.picturesList?i.picturesList.length:""," "),p(1),_("ngIf",i.picturesList&&i.picturesList.length>1),p(1),_("ngIf",i.picturesList&&1===i.picturesList.length),p(8),G(H(18,12,"ImgManager.UploadList.seo.rezise")),p(7),G(H(25,14,"ImgManager.UploadList.seo.webp")),p(7),G(H(32,16,"ImgManager.UploadList.seo.cdn")),p(7),G(H(39,18,"ImgManager.UploadList.seo.lazyloading")),p(6),_("ngForOf",i.picturesList))},dependencies:[Ze,Ai,$e,Rl,i_,Jt],encapsulation:2,data:{animation:[Qs]}}),t})(),Zs=(()=>{class t{constructor(){this.small=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["wz-loader"]],inputs:{text:"text",small:"small",position:"position"},decls:9,vars:7,consts:[[1,"wz-loader",3,"ngClass","ngStyle"],[1,"loader","loader1"],["class","is-textcentered",3,"innerHTML",4,"ngIf"],[1,"is-textcentered",3,"innerHTML"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"div",1)(2,"div")(3,"div")(4,"div")(5,"div")(6,"div"),k(7,"div"),y()()()()()(),M(8,ZW,1,1,"p",2),y()),2&e&&(_("ngClass",X(3,JW,i.small))("ngStyle",X(5,e5,i.position)),p(8),_("ngIf",i.text))},dependencies:[Ze,$e,$a],encapsulation:2}),t})(),PT=(()=>{class t{constructor(){this.onFileDropped=new F,this.background="#fff",this.opacity="1"}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.background="#f5f5f5",this.opacity="0.8"}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.background="#fff",this.opacity="1"}ondrop(e){e.preventDefault(),e.stopPropagation(),this.background="#f5f5f5",this.opacity="1";const i=e.dataTransfer.files;i.length>0&&this.onFileDropped.emit(i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=z({type:t,selectors:[["","appDragDrop",""]],hostVars:4,hostBindings:function(e,i){1&e&&E("dragover",function(o){return i.onDragOver(o)})("dragleave",function(o){return i.onDragLeave(o)})("drop",function(o){return i.ondrop(o)}),2&e&&oi("background-color",i.background)("opacity",i.opacity)},outputs:{onFileDropped:"onFileDropped"}}),t})(),kT=(()=>{class t{constructor(e,i,r,o){this.imgManager=e,this.alertService=i,this.externalConfigService=r,this.translateService=o,this.files=[],this.isLoading=!1,this.imgUploaded=new F,this.loadingText="ImgManager.ImgUpload.loading",this.errorUploadingImg="ImgManager.ImgUpload.errorUploadingImg",this.errorNotImg="ImgManager.ImgUpload.errorNotImg",this.MAX_IMAGE_SIZE=1e7}ngOnInit(){this.assetsIcon=this.getAssets()}filesChangeByClick(e){this.uploadFile(e.target.files)}getAssets(){return this.externalConfigService.getRouteAssets()+"img/icon_picture.svg"}filesChangeByDragAndDrop(e){console.log("filesList",e),this.removeDragAndDropStyle(),this.uploadFile(Array.from(e))}uploadFile(e){if(e&&!e.length)return;this.isLoading=!0;const i=[];for(const r of e){if(!this.isFileImage(r.type)){this.alertService.openAlert(this.errorNotImg),this.isLoading=!1;continue}if(!this.isSizeValid(r.size)){this.alertService.openAlert(this.translateService.instant("ImgManager.ImgUpload.ErrorImgSize",{fileName:r.name,fileSize:this.getImageSizeInKo(r.size),maxFileSize:this.getImageSizeInKo(this.MAX_IMAGE_SIZE)})),this.isLoading=!1;continue}const o=new FormData;o.append("image",r,r.name),i.push(this.imgManager.uploadFile(o))}Mu(i).subscribe(r=>{this.onImgUpload(r),this.isLoading=!1},r=>{r?.error?.message&&"Bad Request"!==r.statusText?this.alertService.openAlertWithBackendRespons(this.errorUploadingImg,r.error.message):this.alertService.openAlert(this.errorUploadingImg),this.isLoading=!1})}onImgUpload(e){this.imgUploaded.emit(e)}isFileImage(e){return"image"===e.split("/")[0]}isSizeValid(e){return e<this.MAX_IMAGE_SIZE}getImageSizeInKo(e){return Math.round(e/1024)}removeDragAndDropStyle(){this.dragAndDropBox.nativeElement.style=""}}return t.\u0275fac=function(e){return new(e||t)(v(pi),v(ki),v(eo),v(gn))},t.\u0275cmp=be({type:t,selectors:[["img-upload"]],viewQuery:function(e,i){if(1&e&&tt(t5,5),2&e){let r;Ce(r=De())&&(i.dragAndDropBox=r.first)}},inputs:{stateDisplayed:"stateDisplayed"},outputs:{imgUploaded:"imgUploaded"},decls:8,vars:9,consts:[["appDragDrop","",1,"img-upload","has-text-centered",3,"ngClass","click","onFileDropped"],["dragAndDropBox",""],["hidden","","type","file","accept","image/*","multiple","",3,"change"],["fileInput",""],[1,"img-upload__container",3,"ngClass"],[1,"img-upload__container__wrapper"],["class","img-upload__container__loader",4,"ngIf"],[4,"ngIf"],[1,"img-upload__container__loader"],[3,"small","position"],[1,"blueColor","img-upload__container__dropImgIconDiv"],["alt","icon picture",3,"src",4,"ngIf"],[1,"img-upload__container__or"],[1,"img-upload__container__text"],[1,"fal","fa-file-upload"],["alt","icon picture",3,"src"]],template:function(e,i){if(1&e){const r=q();g(0,"div",0,1),E("click",function(){return T(r),x(Of(3).click())})("onFileDropped",function(s){return i.filesChangeByDragAndDrop(s)}),g(2,"input",2,3),E("change",function(s){return i.filesChangeByClick(s)}),y(),g(4,"div",4)(5,"div",5),M(6,n5,2,2,"div",6),M(7,r5,13,10,"ng-container",7),y()()()}2&e&&(_("ngClass",X(5,o5,"small"===i.stateDisplayed))("@easeInOut","in"),p(4),_("ngClass",X(7,s5,"small"===i.stateDisplayed)),p(2),_("ngIf",i.isLoading),p(1),_("ngIf",!i.isLoading))},dependencies:[Ze,$e,Zs,PT,Jt],encapsulation:2,data:{animation:[Qs]}}),t})(),M6=(()=>{class t{constructor(e,i,r){this.http=e,this.externalConfigService=i,this.translateService=r,this.languages={fr:"fr-FR",en:"en-US",it:"it-IT",es:"es-ES"},this.setLang(this.translateService.currentLang),this.translateService.onLangChange.subscribe(o=>{this.setLang(o.lang)})}setLang(e){this.lang=this.languages[e]?this.languages[e]:"fr-FR"}searchOnPexels(e,i,r){(!this.apiBaseUrl||this.apiKey)&&(this.apiBaseUrl=this.externalConfigService.getPexelsApiURL(),this.apiKey=this.externalConfigService.getPexelsApiToken());const o={headers:new Mn({Authorization:"Bearer "+this.apiKey})};let s;if(e&&!/^\s*$/.test(e))s=`/search?query=${e}&per_page=${i}&page=${r}&locale=${this.lang}`;else{const a=this.externalConfigService.getShopCategory();s=a&&"other"!==a&&"btob"!==a?`/search?query=${a}&per_page=${i}&page=${r}&locale=en-US`:`/curated?per_page=${i}&page=${r}`}return this.http.get(this.apiBaseUrl+s,o).pipe(fe(a=>a))}}return t.\u0275fac=function(e){return new(e||t)(R(Yi),R(eo),R(gn))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const r_=Hr("listAnimation",[pn(":enter, * => 0, * => -1",[]),pn(":increment",[function fV(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}(":enter",[Fe({opacity:0,transform:"translateY(100px)"}),function pV(t,n){return{type:12,timings:t,animation:n}}(50,[In("500ms cubic-bezier(0.35, 0, 0.25, 1)",Fe({opacity:1,transform:"none"}))])],{optional:!0})])]);let OT=(()=>{class t{constructor(){this.debounceTime=500,this.onEventChange=new F,this.emitEvent$=new K,this.subscription$=new K}ngOnInit(){this.emitEvent$.pipe(_n(this.subscription$),wd(this.debounceTime),RM(),Bt(e=>this.emitChange(e))).subscribe()}emitChange(e){this.onEventChange.emit(e)}ngOnDestroy(){this.subscription$.next(),this.subscription$.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=z({type:t,selectors:[["AbstractDebounceDirective"]],inputs:{debounceTime:"debounceTime"},outputs:{onEventChange:"onEventChange"}}),t})(),o_=(()=>{class t extends OT{constructor(){super()}onKeyUp(e){e.preventDefault(),this.emitEvent$.next(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=z({type:t,selectors:[["input","debounceKeyUp",""]],hostBindings:function(e,i){1&e&&E("keyup",function(o){return i.onKeyUp(o)})},features:[ve]}),t})(),Nd=(()=>{class t{constructor(){this.placeholder="",this.smallPadding=!1,this.innerValue="",this.changeDebounced=new F,this.onTouchedCallback=()=>{},this.onChangeCallback=()=>{}}get value(){return this.innerValue}set value(e){e!==this.innerValue&&(this.innerValue=e,this.onChangeCallback(e))}writeValue(e){e!==this.innerValue&&(this.innerValue=e)}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}handleDebouncedKeyUp(e){this.changeDebounced.emit(e.target.value)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["wz-input-search"]],inputs:{placeholder:"placeholder",smallPadding:"smallPadding",id:"id"},outputs:{changeDebounced:"changeDebounced"},features:[Ae([{provide:Qn,useExisting:t,multi:!0}])],decls:4,vars:5,consts:[[1,"input-search","field",3,"ngClass"],[1,"control","has-icons-left","has-icons-right"],["value","","type","text","debounceKeyUp","",1,"input",3,"placeholder","ngModel","debounceTime","ngModelChange","onEventChange"],[1,"icon","fal","fa-search"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"p",1)(2,"input",2),E("ngModelChange",function(o){return i.value=o})("onEventChange",function(o){return i.handleDebouncedKeyUp(o)}),y(),k(3,"i",3),y()()),2&e&&(_("ngClass",i.smallPadding?"small-padding":""),p(2),_("placeholder",i.placeholder)("ngModel",i.value)("debounceTime",1e3),$n("id",i.id))},dependencies:[Ze,Cr,hi,Xn,o_],encapsulation:2}),t})(),NT=(()=>{class t{constructor(){this.icon=!0,this.warning=!1,this.success=!1,this.iconClass="fas fa-info"}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["wz-alert"]],inputs:{icon:"icon",warning:"warning",success:"success",iconClass:"iconClass"},ngContentSelectors:c5,decls:4,vars:5,consts:[[1,"wz-alert",3,"ngClass"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(e,i){1&e&&(Ss(),g(0,"div",0),M(1,a5,1,1,"i",1),g(2,"p"),gr(3),y()()),2&e&&(_("ngClass",Wn(2,l5,i.success,i.warning)),p(1),_("ngIf",i.icon))},dependencies:[Ze,$e],styles:[".wz-alert[_ngcontent-%COMP%]{width:100%;background-color:#52aecd26;color:#52aecd;border-radius:3px;display:flex;flex-wrap:nowrap;justify-content:space-between;padding:20px}.wz-alert.success[_ngcontent-%COMP%]{background-color:#2ecc7126}.wz-alert.success[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#11552e}.wz-alert.success[_ngcontent-%COMP%] p[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#11552e}.wz-alert.success[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#2ecc71}.wz-alert.warning[_ngcontent-%COMP%]{background-color:#e9565626}.wz-alert.warning[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#3a0505}.wz-alert.warning[_ngcontent-%COMP%] p[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#3a0505}.wz-alert.warning[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e95656}.wz-alert[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;font-size:rem(14);line-height:rem(25);margin:0;padding:0;color:#1e5568}.wz-alert[_ngcontent-%COMP%] p[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#1e5568}.wz-alert[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:auto;margin:0 10px 0 0;color:inherit;font-size:rem(14);line-height:rem(25)}"]}),t})(),s_=(()=>{class t{constructor(e,i,r,o){this.wzImgLibService=e,this.imgManager=i,this.alertService=r,this.translateService=o,this.searchValue="",this.disableSearch=!1,this.showImgUploaded=new F,this.perPage=30,this.searchUpdated=new K,this.nbResult=0,this.currentPage=1,this.isLoading=!0,this.initComponent=!0,this.photosColumns=[],this.nbColumuns=6,this.responsiveColumns=[1250,1050,750,500],this.outerElement=null,this.uploadingImg="ImgManager.PexelLib.uploadingImg",this.untitled="ImgManager.PexelLib.untitled",this.successUploadPhoto="ImgManager.PexelLib.successImport",this.errorUploadPhoto="ImgManager.PexelLib.errorUploadPhoto",this.errorRetrievePhotos="ImgManager.PexelLib.errorRetrievePhotos",this.subs=[]}set content(e){this.outerElement=e}ngOnInit(){}ngAfterViewInit(){this.oldSearchValue=this.searchValue,this.isLoading=!1,this.setNbColumnsToDisplayPhoto(),this.setPhotosColumns(),this.search()}setNbColumnsToDisplayPhoto(){const e=this.outerElement.nativeElement.offsetWidth;"window"!==this.stateDisplayed&&(this.nbColumuns=8),this.responsiveColumns.forEach(i=>{e<i&&this.nbColumuns--})}onSearchNameChanged(){this.onSearchChange()}onBottomReached(){this.scrollHandler()}onSearchChange(){this.search()}search(){if(this.isLoading||(this.searchValue!==this.oldSearchValue&&this.resetSearch(),this.nbResult&&this.nbResult<=(this.currentPage-1)*this.perPage))return;this.isLoading=!0;const e=this.wzImgLibService.searchOnPexels(this.searchValue,this.perPage,this.currentPage).subscribe(i=>{this.wzImgLibDto=i,this.nbResult=this.wzImgLibDto.total_results,this.nbResult&&i.photos.forEach(r=>{const o=this.getBestColumn();this.photosColumns[o].height+=r.height/r.width*1e3,this.photosColumns[o].photos.push(r)}),this.isLoading=!1,this.initComponent=!1},i=>{this.isLoading=!1,this.initComponent=!1,this.alertService.openAlert(this.errorRetrievePhotos)});this.subs.push(e)}scrollHandler(){if(this.isLoading)return;const e=this.getBestColumn(),i=this.photosColumns[e].photos[this.photosColumns[e].photos.length-1];i&&document.querySelector('img[src="'+i.src.medium+'"]')&&(this.isLoading||(this.currentPage+=1,this.search()))}setPhotosColumns(){for(let e=0;e<this.nbColumuns;e++)this.photosColumns.push({height:0,photos:[]})}getBestColumn(){const e={index:0,height:this.photosColumns[0].height};return this.photosColumns.forEach((i,r)=>{e.height>i.height&&(e.index=r,e.height=i.height)}),e.index}resetSearch(){this.oldSearchValue=this.searchValue,this.photosColumns=[],this.currentPage=1,this.setPhotosColumns()}uploadPhoto(e,i){e.uploading=!0;const r=this.imgManager.uploadFileByUrl(i,e.alt).subscribe(o=>{e.uploading=!1,e.uploaded=!0,this.alertService.openAlert(this.successUploadPhoto)},o=>{e.uploading=!1,406===o.error.code&&o.error.message?this.alertService.openAlertWithBackendRespons(this.errorUploadPhoto,o.error.message):this.alertService.openAlert(this.errorUploadPhoto)});this.alertService.openAlert(this.uploadingImg),this.subs.push(r)}ngOnDestroy(){this.subs.forEach(e=>e.unsubscribe())}}return t.\u0275fac=function(e){return new(e||t)(v(M6),v(pi),v(ki),v(gn))},t.\u0275cmp=be({type:t,selectors:[["pexels-lib"]],viewQuery:function(e,i){if(1&e&&tt(u5,5),2&e){let r;Ce(r=De())&&(i.content=r.first)}},inputs:{stateDisplayed:"stateDisplayed",searchValue:"searchValue",disableSearch:"disableSearch"},outputs:{showImgUploaded:"showImgUploaded"},decls:7,vars:8,consts:[[1,"pexels-lib"],["outerElement",""],["scrollYMarginOffset","300",1,"pexels-lib__scroll",3,"ngClass","psYReachEnd"],["class","pexels-lib__search",3,"ngClass",4,"ngIf"],["class","pexels-lib__wrapper",4,"ngIf"],[4,"ngIf"],["class","pexels-lib__alert",4,"ngIf"],[1,"pexels-lib__search",3,"ngClass"],[3,"ngModel","placeholder","smallPadding","ngModelChange","changeDebounced"],[1,"pexels-lib__wrapper"],["class","pexels-lib__wrapper__result-nb",4,"ngIf"],[1,"pexels-lib__wrapper__result"],["class","pexels-lib__wrapper__result__column",4,"ngFor","ngForOf"],[1,"pexels-lib__wrapper__result-nb"],[1,"pexels-lib__wrapper__result__column"],["class","pexels-lib__wrapper__result__column__element",4,"ngFor","ngForOf"],[1,"pexels-lib__wrapper__result__column__element"],[1,"pexels-lib__wrapper__result__column__element__img",3,"alt","src"],[1,"pexels-lib__wrapper__result__column__element__wrapper"],[1,"pexels-lib__wrapper__result__column__element__wrapper__infos"],[1,"dropdown","is-up",3,"ngClass"],[1,"dropdown-trigger"],["type","button","aria-haspopup","true","aria-controls","dropdown-menu",1,"button","pexels-lib__wrapper__result__column__element__wrapper__button"],[3,"click",4,"ngIf"],["id","dropdown-menu","role","menu",1,"dropdown-menu","pexels-lib__wrapper__result__column__element__wrapper__dropdown"],[1,"dropdown-content"],[1,"dropdown-content__wrapper"],[1,"dropdown-item",3,"click"],[1,"fal","fa-check","iPortrait"],[1,"fal","fa-check","iLandscape"],[1,"fal","fa-check","iOriginal"],[3,"click"],[1,"icon","is-small"],["aria-hidden","true",1,"fas","fa-angle-up"],[1,"fal","fa-check"],["btnLoadingAnim","",1,"btnLoadingAnnimation"],[1,"pexels-lib__alert"],[3,"warning"]],template:function(e,i){1&e&&(g(0,"div",0,1)(2,"perfect-scrollbar",2),E("psYReachEnd",function(){return i.onBottomReached()}),M(3,h5,3,8,"div",3),M(4,y5,4,2,"div",4),M(5,b5,2,0,"ng-container",5),M(6,w5,4,5,"div",6),y()()),2&e&&(_("@easeInOut","in"),p(2),_("ngClass",X(6,C5,"small"===i.stateDisplayed)),p(1),_("ngIf",!i.disableSearch),p(1),_("ngIf",!i.initComponent),p(1),_("ngIf",i.isLoading),p(1),_("ngIf",!i.isLoading&&!i.nbResult))},dependencies:[Ze,Ai,$e,hi,Xn,Rl,Zs,Nd,NT,Xs,Jt],encapsulation:2,data:{animation:[Qs,r_]}}),t})(),FT=(()=>{class t{constructor(){this.copied=new F}onClick(e){if(e.preventDefault(),!this.payload)return;let i=r=>{(r.clipboardData||window.clipboardData).setData("text",this.payload.toString()),r.preventDefault(),this.copied.emit(this.payload)};document.addEventListener("copy",i,!1),document.execCommand("copy"),document.removeEventListener("copy",i,!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=z({type:t,selectors:[["","copy-clipboard",""]],hostBindings:function(e,i){1&e&&E("click",function(o){return i.onClick(o)})},inputs:{payload:["copy-clipboard","payload"]},outputs:{copied:"copied"}}),t})(),LT=(()=>{class t{constructor(e){this.alertService=e,this._isNameModified=!1,this.isNameModifiedChange=new F,this.msgCopyToClipBoard="ImgManager.ImgEditor.copytoClipBoard"}set isNameModified(e){this._isNameModified=e}get isNameModified(){return this._isNameModified}ngOnInit(){this.init()}init(){this.imgName=this.imgToEdit.display_name}getFileSize(){return this.imgToEdit?Math.round(parseInt(this.imgToEdit.size)/1e3):"-"}copyToClipBoard(e){this.alertService.openAlert(this.msgCopyToClipBoard)}onNameChange(){this.isNameModifiedChange.emit(!0)}}return t.\u0275fac=function(e){return new(e||t)(v(ki))},t.\u0275cmp=be({type:t,selectors:[["info-section"]],inputs:{imgToEdit:"imgToEdit",isNameModified:"isNameModified"},outputs:{isNameModifiedChange:"isNameModifiedChange"},decls:76,vars:60,consts:[[1,"img-editor__infoSection__propertyEditable"],[1,"mainColor"],["nwbToolTipPosition","right",1,"img-editor__infoSection__propertyEditable__tooltips",3,"nwbToolTip","nwbToolTipIsMultiline"],[1,"fas","fa-info-circle"],["type","text","debounceKeyUp","",1,"img-editor__infoSection__propertyEditable__input",3,"placeholder","ngModel","debounceTime","ngModelChange","onEventChange"],["type","button",3,"copy-clipboard","copied"],[1,"img-editor__infoSection__propertyEditable__span"],[1,"far","fa-copy"],[1,"img-editor__infoSection__property"],[1,"img-editor__infoSection__divider"],[1,"img-editor__infoSection__titleSEO"],[1,"img-editor__infoSection__propertySEO"],[1,"fal","fa-check"],["nwbToolTipPosition","right",1,"img-editor__infoSection__propertySEO__tooltips",3,"nwbToolTip","nwbToolTipIsMultiline"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"p",1),O(2),L(3,"translate"),g(4,"span",2),L(5,"translate"),k(6,"i",3),y()(),g(7,"input",4),E("ngModelChange",function(o){return i.imgToEdit.display_name=o})("onEventChange",function(){return i.onNameChange()}),L(8,"translate"),y()(),g(9,"div",0)(10,"p",1),O(11),L(12,"translate"),y(),g(13,"button",5),E("copied",function(o){return i.copyToClipBoard(o)}),L(14,"imgSrc"),g(15,"span",6),O(16),y(),O(17,"\xa0\xa0"),k(18,"i",7),y()(),g(19,"div",8)(20,"p",1),O(21),L(22,"translate"),y(),g(23,"p"),O(24),y()(),g(25,"div",8)(26,"p",1),O(27),L(28,"translate"),y(),g(29,"p"),O(30),y()(),k(31,"span",9),g(32,"div",10)(33,"p",1),O(34),L(35,"translate"),y()(),g(36,"div",11)(37,"p",1),O(38),L(39,"translate"),y(),g(40,"p"),k(41,"i",12),O(42,"\xa0100%"),y(),g(43,"p",13),L(44,"translate"),k(45,"i",3),y()(),g(46,"div",11)(47,"p",1),O(48),L(49,"translate"),y(),g(50,"p"),k(51,"i",12),O(52,"\xa0100%"),y(),g(53,"p",13),L(54,"translate"),k(55,"i",3),y()(),g(56,"div",11)(57,"p",1),O(58),L(59,"translate"),y(),g(60,"p"),k(61,"i",12),O(62,"\xa0100%"),y(),g(63,"p",13),L(64,"translate"),k(65,"i",3),y()(),g(66,"div",11)(67,"p",1),O(68),L(69,"translate"),y(),g(70,"p"),k(71,"i",12),O(72,"\xa0100%"),y(),g(73,"p",13),L(74,"translate"),k(75,"i",3),y()()),2&e&&(p(2),gt(" ",H(3,27,"ImgManager.UploadList.properties.imgName")," "),p(2),_("nwbToolTip",H(5,29,"ImgManager.ImgEditor.NameInfo"))("nwbToolTipIsMultiline",!0),p(3),Pc("placeholder","",H(8,31,"ImgManager.ImgEditor.nameEx")," "),_("ngModel",i.imgToEdit.display_name)("debounceTime",500),p(4),G(H(12,33,"ImgManager.UploadList.properties.imgURL")),p(2),_("copy-clipboard",Mi(14,35,i.imgToEdit.file_name,"raw")),p(3),G(i.imgToEdit.file_name),p(5),gt("",H(22,38,"ImgManager.UploadList.properties.imgSize"),"\xa0:"),p(3),si("",i.imgToEdit.raw_height,"*",i.imgToEdit.raw_width,"px"),p(3),gt("",H(28,40,"ImgManager.UploadList.properties.imgWeight"),"\xa0:"),p(3),gt("",i.getFileSize(),"\xa0ko"),p(4),G(H(35,42,"ImgManager.UploadList.seo.title")),p(4),G(H(39,44,"ImgManager.UploadList.seo.rezise")),p(5),_("nwbToolTip",H(44,46,"ImgManager.UploadList.seo.reziseTooltips"))("nwbToolTipIsMultiline",!0),p(5),G(H(49,48,"ImgManager.UploadList.seo.webp")),p(5),_("nwbToolTip",H(54,50,"ImgManager.UploadList.seo.webpTooltips"))("nwbToolTipIsMultiline",!0),p(5),G(H(59,52,"ImgManager.UploadList.seo.cdn")),p(5),_("nwbToolTip",H(64,54,"ImgManager.UploadList.seo.cdnTooltips"))("nwbToolTipIsMultiline",!0),p(5),G(H(69,56,"ImgManager.UploadList.seo.lazyloading")),p(5),_("nwbToolTip",H(74,58,"ImgManager.UploadList.seo.lazyloadingTooltips"))("nwbToolTipIsMultiline",!0))},dependencies:[Cr,hi,Xn,fM,FT,o_,Jt,Nl],encapsulation:2}),t})();const VT=Hr("insertRemoveAnnim",[pn(":enter",[Fe({opacity:0}),In("0.5s ease-in-out",Fe({opacity:1}))])]);let a_=(()=>{class t{constructor(){this.disable=!1}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["dropdown"]],inputs:{dropDownMenuClass:"dropDownMenuClass",disable:"disable"},ngContentSelectors:S5,decls:6,vars:4,consts:[[1,"dropdown","dropdownWizi",3,"ngClass"],[1,"dropdown-trigger"],["role","menu",1,"dropdown-menu",3,"ngClass"],[1,"dropdown-content"]],template:function(e,i){1&e&&(Ss(D5),g(0,"div",0)(1,"div",1),gr(2),y(),g(3,"div",2)(4,"div",3),gr(5,1),y()()()),2&e&&(_("ngClass",X(2,DT,!i.disable)),p(3),_("ngClass",i.dropDownMenuClass))},dependencies:[Ze],encapsulation:2}),t})(),BT=(()=>{class t{constructor(e){this.imgCDNService=e,this._isImgModified=!1,this.isImgModifiedChange=new F,this.editClosed=new F,this.currentCroppedImageChange=new F,this.msgFailLoad="ImgManager.ImgEditor.msgFailLoad",this.isNameModified=!1,this.isCropperReady=!1,this.currentCroppedImage="",this.isCropped=!1,this.isLoading=!1,this._isImgCropped=!1,this.imgCropperChange=new K,this.skipNextImgCropped=1,this.imageChangedEvent="",this.croppedImage="",this.canvasRotation=0,this.rotation=0,this.scale=1,this.showCropper=!1,this.containWithinAspectRatio=!1,this.transform={},this.resolutionConfig=[{label:"ImgManager.ImgEditor.config.origin",config:{maintainAspectRatio:!0}},{label:"ImgManager.ImgEditor.config.free",config:{maintainAspectRatio:!1},active:!0},{label:"ImgManager.ImgEditor.config.square",config:{maintainAspectRatio:!0,aspectRatio:1}},{label:"ImgManager.ImgEditor.config.Portrait",config:{maintainAspectRatio:!0,aspectRatio:3/4}},{label:"ImgManager.ImgEditor.config.landscape",config:{maintainAspectRatio:!0,aspectRatio:5/3}}],this.rotationConfig=[{label:"ImgManager.ImgEditor.config.schedule",icon:"fal fa-redo-alt",method:"rotateRight",active:!0},{label:"ImgManager.ImgEditor.config.AntiSchedule",icon:"fal fa-undo-alt",method:"rotateLeft"},{label:"ImgManager.ImgEditor.config.flipVert",icon:"fal fa-sort-alt",method:"flipVertical"},{label:"ImgManager.ImgEditor.config.flipHoriz",icon:"fal fa-exchange-alt",method:"flipHorizontal"}],this.zoomConfig=[{label:"ImgManager.ImgEditor.config.zoom",icon:"fal fa-search-plus",method:"zoomIn",active:!0},{label:"ImgManager.ImgEditor.config.dezoom",icon:"fal fa-search-minus",method:"zoomOut"}],this.imgCropperConfig={maintainAspectRatio:!1,aspectRatio:void 0}}set isImgModified(e){this._isImgModified=e,e||this.restartEdit()}get isImgModified(){return this._isImgModified}set isImgCropped(e){setTimeout(()=>{this._isImgCropped=e},0)}get isImgCropped(){return this._isImgCropped}ngOnInit(){this.init(),this.detectImgCropperChange()}init(){this.imgRoute=this.getRAWImgRoute(),this.imgType=this.getImgType(),this.croppedImage=null,this.setDefautAspectRatio()}getRAWImgRoute(){return this.imgCDNService.getUrlImg("raw")+this.imgToEdit.file_name}getImgType(){return this.imgToEdit.file_name?this.imgToEdit.file_name.split(".").pop():void 0}setDefautAspectRatio(){const e=parseInt(this.imgToEdit.raw_height),i=parseInt(this.imgToEdit.raw_width);this.defaultAspectRatio=e/i,this.resolutionConfig[0].config.aspectRatio=this.defaultAspectRatio,this.imgCropperConfig.aspectRatio=this.defaultAspectRatio}onEditClosed(e){this.editClosed.emit(e)}onRestart(){this.isImgModifiedChange.emit(!1)}restartEdit(){this.init(),this.resetConfCropper()}onImgModified(){this.isImgModified=!0,this.isImgModifiedChange.emit(!0)}fileChangeEvent(e){this.imageChangedEvent=e}imageCropped(e){this.imgCropperChange.next(),this.currentCroppedImage=e.base64,this.currentCroppedImageChange.emit(this.currentCroppedImage)}imageLoaded(){this.showCropper=!0}cropperReady(){this.isCropperReady=!0}loadImageFailed(){this.onEditClosed(this.msgFailLoad)}changeResolutionSize(e){this.setActiveItem(this.resolutionConfig,e),this.setCropperProperties(this.resolutionConfig[e].config)}confirmCrop(){setTimeout(()=>{this.imgRoute=null,this.croppedImage=this.currentCroppedImage,this.skipNextImgCropped=2,this.isImgCropped=!1},0),this.resetConfCropper(),this.onImgModified()}resetConfCropper(){this.scale=1,this.rotation=0,this.canvasRotation=0,this.transform={}}setActiveItem(e,i){e.forEach((r,o)=>{r.active=o===i})}setCropperProperties(e){for(const i in e)this.imgCropperConfig[i]=e[i]}detectImgCropperChange(){this.imgCropperChange.subscribe(()=>{this.skipNextImgCropped--,!(this.skipNextImgCropped>=0)&&(this.skipNextImgCropped=0,this.isImgCropped=!0)})}rotateLeft(){this.canvasRotation--,this.flipAfterRotate(),this.onImgModified()}rotateRight(){this.canvasRotation++,this.flipAfterRotate(),this.onImgModified()}flipHorizontal(){this.transform={...this.transform,flipH:!this.transform.flipH},this.onImgModified()}flipVertical(){this.transform={...this.transform,flipV:!this.transform.flipV},this.onImgModified()}flipAfterRotate(){this.transform={...this.transform,flipH:this.transform.flipV,flipV:this.transform.flipH}}zoomOut(){this.scale-=this.scale<.2?0:.1,this.transform={...this.transform,scale:this.scale},this.onImgModified()}zoomIn(){this.scale+=.1,this.transform={...this.transform,scale:this.scale},this.onImgModified()}applyMethod(e){this[e]()}}return t.\u0275fac=function(e){return new(e||t)(v(Fo))},t.\u0275cmp=be({type:t,selectors:[["cropper"]],inputs:{imgToEdit:"imgToEdit",isImgModified:"isImgModified"},outputs:{isImgModifiedChange:"isImgModifiedChange",editClosed:"editClosed",currentCroppedImageChange:"currentCroppedImageChange"},decls:33,vars:31,consts:[[1,"img-editor__container__toolsContainer"],[4,"ngIf"],["dropdownId","dropdown-resolution"],["label",""],[1,"img-editor__container__toolsContainer__tool"],[1,"far","fa-crop"],["item","",4,"ngFor","ngForOf"],["dropdownId","dropdown-rotation"],[1,"img-editor__container__toolsContainer__tool",3,"click"],[1,"far","fa-expand-arrows-alt"],["dropdownId","dropdown-rotation","dropDownMenuClass","img-editor__container__toolsContainer__RotationDropdown"],[1,"far","fa-redo"],[1,"far","fa-retweet-alt"],[1,"img-editor__image-cropper"],[3,"imageURL","imageBase64","maintainAspectRatio","containWithinAspectRatio","aspectRatio","onlyScaleDown","roundCropper","canvasRotation","transform","alignImage","format","backgroundColor","imageCropped","imageLoaded","cropperReady","loadImageFailed"],["nwbToolTipPosition","left",1,"img-editor__container__toolsContainer__tool","img-editor__container__toolsContainer__tool--button",3,"nwbToolTip","click"],[1,"far","fa-check"],["item",""],[1,"dropdown-item",3,"ngClass","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(e,i){1&e&&(g(0,"div",0),M(1,E5,7,6,"div",1),g(2,"dropdown",2),Ue(3,3),g(4,"div",4),k(5,"i",5),g(6,"p"),O(7),L(8,"translate"),y()(),je(),M(9,I5,5,6,"ng-container",6),y(),g(10,"dropdown",7),Ue(11,3),g(12,"div",8),E("click",function(){return i.zoomIn()}),k(13,"i",9),g(14,"p"),O(15),L(16,"translate"),y()(),je(),M(17,T5,6,7,"ng-container",6),y(),g(18,"dropdown",10),Ue(19,3),g(20,"div",8),E("click",function(){return i.rotateRight()}),k(21,"i",11),g(22,"p"),O(23),L(24,"translate"),y()(),je(),M(25,A5,6,7,"ng-container",6),y(),g(26,"div",8),E("click",function(){return i.onRestart()}),k(27,"i",12),g(28,"p"),O(29),L(30,"translate"),y()()(),g(31,"div",13)(32,"image-cropper",14),E("imageCropped",function(o){return i.imageCropped(o)})("imageLoaded",function(){return i.imageLoaded()})("cropperReady",function(){return i.cropperReady()})("loadImageFailed",function(){return i.loadImageFailed()}),y()()),2&e&&(p(1),_("ngIf",i.isImgCropped),p(6),G(H(8,23,"ImgManager.ImgEditor.crop")),p(2),_("ngForOf",i.resolutionConfig),p(6),G(H(16,25,"ImgManager.ImgEditor.display")),p(2),_("ngForOf",i.zoomConfig),p(6),G(H(24,27,"ImgManager.ImgEditor.rotation")),p(2),_("ngForOf",i.rotationConfig),p(1),_("@insertRemoveAnnim",void 0),p(3),G(H(30,29,"ImgManager.ImgEditor.restart")),p(3),oi("display",i.showCropper?null:"none"),_("imageURL",i.imgRoute)("imageBase64",i.croppedImage)("maintainAspectRatio",i.imgCropperConfig.maintainAspectRatio)("containWithinAspectRatio",i.containWithinAspectRatio)("aspectRatio",i.imgCropperConfig.aspectRatio)("onlyScaleDown",!0)("roundCropper",!1)("canvasRotation",i.canvasRotation)("transform",i.transform)("alignImage","center")("format",i.imgType)("backgroundColor","white"))},dependencies:[Ze,Ai,$e,fM,$4,a_,Jt],encapsulation:2,data:{animation:[VT]}}),t})(),HT=(()=>{class t{constructor(e){this.imgManagerService=e,this.editClosed=new F,this.isLoading=!1,this.isImgModified=!1,this.isNameModified=!1,this.currentCroppedImage="",this.msgFailSave="ImgManager.ImgEditor.msgFailSave",this.msgFailLoad="ImgManager.ImgEditor.msgFailLoad",this.msgSuccessEdit="Les modifications de l'image ont bien \xe9t\xe9 enregistr\xe9es."}ngOnInit(){this.previousName=this.imgToEdit.display_name}onSave(){if(this.isLoading)return;this.isLoading=!0,!this.isImgModified&&!this.isNameModified&&(this.isLoading=!1,this.onEditClosed());const e=this.imgManagerService.replaceImg(this.currentCroppedImage,this.imgToEdit.id_file),i=this.imgManagerService.changeImgName(this.imgToEdit.display_name,this.imgToEdit.id_file);this.isImgModified&&this.isNameModified?this.ranameAndReplaceImg(i,e):this.isImgModified?e.subscribe(r=>{this.isLoading=!1,this.onEditClosed(this.msgSuccessEdit)},r=>{this.isLoading=!1,this.currentCroppedImage="",this.onEditClosed(this.msgFailSave)}):(this.isNameModified&&i.subscribe(r=>{this.isLoading=!1,this.previousName=this.imgToEdit.display_name,this.onEditClosed(this.msgSuccessEdit)},r=>{this.isLoading=!1,this.imgToEdit.display_name=this.previousName,this.onEditClosed(this.msgFailSave)}),this.isNameModified=!1)}onEditClosed(e){this.editClosed.emit(e)}onRestartEdit(){this.isImgModified=!1,this.isNameModified=!1,this.imgToEdit.display_name=this.previousName}onCancel(){this.onEditClosed("")}onImgCropped(e){this.currentCroppedImage=e}ranameAndReplaceImg(e,i){e.subscribe(r=>{i.subscribe(o=>{this.onEditClosed(this.msgSuccessEdit)},o=>{this.onEditClosed(this.msgFailSave)})},r=>{this.onEditClosed(this.msgFailSave)})}}return t.\u0275fac=function(e){return new(e||t)(v(pi))},t.\u0275cmp=be({type:t,selectors:[["img-editor"]],inputs:{stateDisplayed:"stateDisplayed",imgToEdit:"imgToEdit"},outputs:{editClosed:"editClosed"},decls:16,vars:23,consts:[[1,"img-editor"],[1,"img-editor__infoSection__actions"],["type","button",1,"button","img-editor__infoSection__actions__cancel",3,"disabled","click"],[1,"button","danger","button","img-editor__infoSection__actions__save",3,"ngClass","click"],["btnLoadingAnim","","class","btnLoadingAnnimation",4,"ngIf"],[1,"img-editor__scroll",3,"config","ngClass"],[1,"columns"],[1,"column","is-one-third","img-editor__infoSection"],[3,"imgToEdit","isNameModified","isNameModifiedChange"],[1,"column","img-editor__container"],[3,"imgToEdit","isImgModified","isImgModifiedChange","currentCroppedImageChange","editClosed"],["btnLoadingAnim","",1,"btnLoadingAnnimation"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"div",1)(2,"div")(3,"button",2),E("click",function(){return i.onCancel()}),O(4),L(5,"translate"),y(),g(6,"div",3),E("click",function(){return i.onSave()}),O(7),L(8,"translate"),M(9,R5,1,0,"span",4),y()()(),g(10,"perfect-scrollbar",5)(11,"div",6)(12,"div",7)(13,"info-section",8),E("isNameModifiedChange",function(o){return i.isNameModified=o}),y()(),g(14,"div",9)(15,"cropper",10),E("isImgModifiedChange",function(o){return i.isImgModified=o})("currentCroppedImageChange",function(o){return i.onImgCropped(o)})("editClosed",function(o){return i.onEditClosed(o)}),y()()()()()),2&e&&(_("@easeInOut","in"),p(3),_("disabled",i.isLoading||!i.isImgModified&&!i.isNameModified),p(1),gt(" ",H(5,12,"ImgManager.ImgLib.cancel")," "),p(2),_("ngClass",X(16,P5,i.isLoading)),p(1),gt(" ",H(8,14,"ImgManager.ImgEditor.saveBtn")," "),p(2),_("ngIf",i.isLoading),p(1),_("config",La(18,Pd))("ngClass",Vc(19,k5,"full"===i.stateDisplayed,"small"===i.stateDisplayed,"window"===i.stateDisplayed)),p(3),_("imgToEdit",i.imgToEdit)("isNameModified",i.isNameModified),p(2),_("imgToEdit",i.imgToEdit)("isImgModified",i.isImgModified))},dependencies:[Ze,$e,Rl,LT,BT,Xs,Jt],encapsulation:2,data:{animation:[Qs]}}),t})(),l_=(()=>{class t{constructor(e,i){this._elementRef=e,this.domService=i,this.forceOn=null,this.clickOutside=new F}ngAfterViewInit(){this.domService.documentEvent().subscribe(e=>{const i=this._elementRef.nativeElement.contains(e),r=e.getAttribute("class");if(!i&&(null===r||!r.includes(this.triggerElement))&&this.clickOutside.emit(null),null!=this.forceOn&&null!==r){let o=!0;this.forceOn.forEach(s=>{r.includes(s)||(o=!1)}),o&&this.clickOutside.emit(null)}})}}return t.\u0275fac=function(e){return new(e||t)(v(Te),v(xT))},t.\u0275dir=z({type:t,selectors:[["","wzAutoHide",""]],inputs:{triggerElement:"triggerElement",forceOn:"forceOn"},outputs:{clickOutside:"clickOutside"}}),t})(),zT=(()=>{class t{constructor(e){this.canvaService=e,this.showImgUploaded=new F,this.imgLoading=!1,this.availableFormat={"ImgManager.CanvaBtn.smallSquare":{width:500,height:500},"ImgManager.CanvaBtn.mediumSquare":{width:1e3,height:1e3},"ImgManager.CanvaBtn.bigSquare":{width:2500,height:2500}},this.openDropDownMenu=!1,this.subs=[]}ngOnInit(){this.canvaLogoRouteAssets=this.canvaService.getCanvaLogo(),this.listenCanvaExpectedSize()}listenCanvaExpectedSize(){const e=this.canvaService.bindEventExepectedImgSizeChange().subscribe(i=>{i?(this.expectedWidth=parseInt(i.image_width,10),this.expectedHeight=parseInt(i.image_height,10)):(this.expectedWidth=void 0,this.expectedHeight=void 0)});this.subs.push(e)}onOpenCanva(e,i){this.canvaService.openCanva(e,i)}ngOnDestroy(){this.subs.forEach(e=>e.unsubscribe())}}return t.\u0275fac=function(e){return new(e||t)(v(Od))},t.\u0275cmp=be({type:t,selectors:[["canva-btn"]],inputs:{stateDisplayed:"stateDisplayed"},outputs:{showImgUploaded:"showImgUploaded"},decls:23,vars:22,consts:[["wzAutoHide","",1,"canva","dropdown","is-right","is-hoverable",3,"ngClass","clickOutside"],[1,"dropdown-trigger"],["aria-controls","dropdown-menuCanva",1,"button","canva-btn",3,"click"],[1,"canva-btn__logo",3,"src"],["btnLoadingAnim","","class","btnLoadingAnnimation",4,"ngIf"],["id","dropdown-menuCanva","role","menu",1,"dropdown-menu","dropDownShadow",3,"ngClass"],[1,"smallScroll"],[1,"dropdown-content"],[1,"dropdownTitle"],[1,"infoItem"],["class","dropdown-item-wrapper",4,"ngIf"],["class","dropdown-item-wrapper",4,"ngFor","ngForOf"],["btnLoadingAnim","",1,"btnLoadingAnnimation"],[1,"dropdown-item-wrapper"],[1,"dropdown-item","expectedSizes",3,"click"],[1,"dropdown-item",3,"click"]],template:function(e,i){1&e&&(g(0,"div",0),E("clickOutside",function(){return i.openDropDownMenu=!1}),g(1,"div",1)(2,"div",2),E("click",function(){return i.openDropDownMenu=!0}),g(3,"span"),O(4),L(5,"translate"),y(),k(6,"img",3),M(7,O5,1,0,"span",4),y()(),g(8,"div",5)(9,"perfect-scrollbar",6)(10,"div",7)(11,"div",8)(12,"p"),O(13),L(14,"translate"),y()(),g(15,"div",9)(16,"p"),O(17),L(18,"translate"),y()(),Ue(19),M(20,N5,7,5,"div",10),je(),M(21,F5,7,5,"div",11),L(22,"keyvalue"),y()()()()),2&e&&(_("ngClass",Wn(17,L5,"small"===i.stateDisplayed,"small"!==i.stateDisplayed)),p(4),G(H(5,9,"ImgManager.CanvaBtn.createImg")),p(2),_("src",i.canvaLogoRouteAssets,Ci),p(1),_("ngIf",i.imgLoading),p(1),_("ngClass",X(20,V5,i.openDropDownMenu)),p(5),G(H(14,11,"ImgManager.CanvaBtn.createImg.title")),p(4),G(H(18,13,"ImgManager.CanvaBtn.info")),p(3),_("ngIf",i.expectedWidth&&i.expectedHeight),p(1),_("ngForOf",H(22,15,i.availableFormat)))},dependencies:[Ze,Ai,$e,Rl,Xs,l_,UD,Jt],encapsulation:2}),t})(),c_=(()=>{class t{transform(e,i,r){if(!(e>=0&&i>=0&&r>=0))throw new Error("currentPage or totalItems or itemsPerPage is/are missing in PagniationIsLastPage pipe.");return e===Math.ceil(i/r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ht({name:"IsLastPage",type:t,pure:!0}),t})(),UT=(()=>{class t{transform(e,i){if(!(e>=0&&i>=0))throw new Error("totalItems or itemsPerPage missing in ArrayTotalPages pipe.");const r=Math.ceil(e/i);return Array.apply(null,{length:r}).map(Number.call,Number).map(o=>o+1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ht({name:"ArrayTotalPages",type:t,pure:!0}),t})(),jT=(()=>{class t{transform(e,i,r){if(!(e>=0&&i>=0))throw new Error("totalItems or itemsPerPage missing in ArrayTotalPages pipe.");const s=r<=15?0:r-15,a=Math.ceil(e/i),l=Array.apply(null,{length:32}).map(Number.call,Number).map(c=>{const u={display:s+c+1,value:s+c+1};return 30===c&&(u.display="..."),31===c&&(u.display=a,u.value=a),u});return s&&l.unshift({display:1,value:1},{display:"...",value:2}),l}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ht({name:"LargeNumberOfPage",type:t,pure:!0}),t})(),$T=(()=>{class t{constructor(){this.openAbsoluteSelect=!1,this.largeNumberOfPage=!1,this.numberOfPage=0,this.pageChange=new F}set pagination(e){this._pagination=e}get pagination(){return this._pagination}set totalItems(e){this.numberOfPage=Math.ceil(e/this.pagination.itemsPerPage),this.largeNumberOfPage=this.numberOfPage>30}get totalItems(){return this._totalItems}onGotoPageChange(e,i){i?(this.pageChange.emit(e),this.openAbsoluteSelect=!1):this.pageChange.emit(parseInt(e.target.value))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["wz-page-selector"]],inputs:{pagination:"pagination",totalItems:"totalItems"},outputs:{pageChange:"pageChange"},decls:5,vars:6,consts:[[1,"wz-selector"],[1,"wz-selector__default",3,"ngStyle"],["class","wz-selector__default__base",3,"click",4,"ngIf"],["class","wz-selector__default__absolute",4,"ngIf"],[4,"ngIf"],[1,"wz-selector__default__base",3,"click"],["name","page-input",3,"value","ngStyle","change"],[1,"fas","fa-sort-down"],[1,"wz-selector__default__absolute"],["class","wz-selector__default__absolute__wrapper",4,"ngFor","ngForOf"],[1,"wz-selector__default__absolute__wrapper"],[1,"wz-selector__default__absolute__wrapper__item",3,"ngClass","click"],["name","page",3,"ngStyle","change"],[4,"ngFor","ngForOf"],[3,"selected","value"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"div",1),M(2,B5,3,4,"div",2),M(3,U5,3,5,"div",3),y(),M(4,$5,4,7,"ng-container",4),y()),2&e&&(p(1),_("ngStyle",X(4,t_,40+10*i.pagination.currentPage.toString().length+"px")),p(1),_("ngIf",i.largeNumberOfPage),p(1),_("ngIf",i.openAbsoluteSelect),p(1),_("ngIf",!i.largeNumberOfPage))},dependencies:[Ze,Ai,$e,$a,wE,DE,UT,jT],encapsulation:2}),t})(),WT=(()=>{class t{constructor(e){this.translateService=e}transform(e,i,r){let o=0,s=0;return i&&(o=(e-1)*r+1,s=e*r),s>i&&(s=i),this.translateService.instant("PaginationComponent.on",{low:o,high:s,total:i})}}return t.\u0275fac=function(e){return new(e||t)(v(gn,16))},t.\u0275pipe=ht({name:"customPagniationText",type:t,pure:!0}),t})(),u_=(()=>{class t{constructor(){this.pageChange=new F}set pagination(e){this._pagination=e}get pagination(){return this._pagination}decrementPage(){this.pagination.currentPage<=1||(this.pagination.currentPage--,this.pageChange.emit(this.pagination))}incrementPage(){(new c_).transform(this.pagination.currentPage,this.pagination.totalItems,this.pagination.itemsPerPage)||(this.pagination.currentPage++,this.pageChange.emit(this.pagination))}onGotoPageChange(e){this.pagination.currentPage=parseInt(e),this.pageChange.emit(this.pagination)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["wz-pagination"]],inputs:{pagination:"pagination"},outputs:{pageChange:"pageChange"},decls:1,vars:1,consts:[["class","wz-pagination",4,"ngIf"],[1,"wz-pagination"],[1,"wz-pagination__wrapper"],[1,"wz-pagination__wrapper__page"],[3,"pagination","totalItems","pageChange"],[1,"wz-pagination__wrapper__elements"],[1,"wz-pagination__wrapper__arrows"],[1,"wz-pagination__wrapper__arrows__arrow","wz-pagination__wrapper__arrows__arrow--left",3,"ngClass","click"],[1,"wz-pagination__wrapper__arrows__arrow__icon"],[1,"wz-pagination__wrapper__arrows__arrow","wz-pagination__wrapper__arrows__arrow--right",3,"ngClass","click"]],template:function(e,i){1&e&&M(0,W5,17,20,"div",0),2&e&&_("ngIf",i.pagination&&i.pagination.itemsPerPage)},dependencies:[Ze,$e,$T,Jt,c_,WT],encapsulation:2}),t})(),GT=(()=>{class t{transform(e){return Array.from("x".repeat(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ht({name:"numberToArray",type:t,pure:!0}),t})(),qT=(()=>{class t extends n_{constructor(e,i,r,o,s,a,l,c){super(e,i,r,o,s,a,l,c),this.nbFakeImg=0,this.switchDisplayWindow=new F}ngOnInit(){}onSearchChange(e){this.tableFilters.sort=void 0,this.tableFilters.order=void 0,this.tableFilters.currentPage=1,this.filtersChange.emit(this.tableFilters)}onCardRenamePicture(e){this.pictureNameChange.next(e)}switchDisplayWindowCard(){this.switchDisplayWindow.emit(!0)}}return t.\u0275fac=function(e){return new(e||t)(v(pi),v(Xi),v(Yi),v(Fo),v(to),v(ki),v(gn),v(eo))},t.\u0275cmp=be({type:t,selectors:[["mosaic-view"]],inputs:{tabDisplayed:"tabDisplayed",fullSize:"fullSize",nbFakeImg:"nbFakeImg"},outputs:{switchDisplayWindow:"switchDisplayWindow"},features:[ve],decls:5,vars:9,consts:[[1,"mosaic",3,"ngClass"],["class","mosaic__search",3,"ngClass",4,"ngIf"],["class","mosaic__container__cards",3,"ngClass",4,"ngIf"],["class","mosaic__container__loader",4,"ngIf"],["class","mosaic__pagination",4,"ngIf"],[1,"mosaic__search",3,"ngClass"],[3,"ngModel","placeholder","smallPadding","ngModelChange","changeDebounced"],[1,"mosaic__container__cards",3,"ngClass"],[3,"picture","stateDisplayed","tabDisplayed","disable","fullSize","toggleImgSelected","pictureNameChange","switchDisplayWindow",4,"ngFor","ngForOf"],["class","mosaic__container__cards__fakeImg",3,"ngClass",4,"ngFor","ngForOf"],[3,"picture","stateDisplayed","tabDisplayed","disable","fullSize","toggleImgSelected","pictureNameChange","switchDisplayWindow"],[1,"mosaic__container__cards__fakeImg",3,"ngClass"],[1,"mosaic__container__loader"],[3,"small"],[1,"mosaic__pagination"],[3,"pagination","pageChange"]],template:function(e,i){1&e&&(g(0,"div",0),M(1,q5,3,8,"div",1),M(2,Z5,4,8,"div",2),M(3,J5,2,1,"div",3),M(4,e8,2,1,"div",4),y()),2&e&&(_("ngClass",Vc(5,t8,i.fullSize,"small"===i.stateDisplayed,i.displayPexelsResults)),p(1),_("ngIf","img-upload"!==i.tabDisplayed),p(1),_("ngIf",!i.isLoading&&!i.displayPexelsResults),p(1),_("ngIf",i.isLoading),p(1),_("ngIf",i.picturesList.length&&"img-upload"!==i.tabDisplayed&&!i.displayPexelsResults))},dependencies:[Ze,Ai,$e,hi,Xn,i_,Zs,Nd,u_,Jt,GT],encapsulation:2,data:{animation:[r_]}}),t})(),YT=(()=>{class t{constructor(e){this.filterRoutingBuilder=e,this.filterGroups=new Map,this.dataTableFilters={sort:void 0,order:void 0,searchValue:void 0,totalItems:0,itemsPerPage:0,currentPage:0},this.sortSubject=new K}getTableFilterGroup(e){if(this.filterGroups.has(e))return this.filterGroups.get(e);const i=this.filterRoutingBuilder.group(this.dataTableFilters,e);return this.filterGroups.set(e,i),i}emitSortChange(e,i,r){this.sortSubject.next({dataTableName:e,sortName:i,order:r})}getSortChangeListner(){return this.sortSubject.asObservable()}setPaginationFilters(e,i,r,o){this.getTableFilterGroup(e).setValues({itemsPerPage:r,currentPage:o})}setInitialPaginationFiltersIfNotExist(e,i,r){const o=this.getTableFilterGroup(e);o.setValues({itemsPerPage:o.get("itemsPerPage")?parseInt(o.get("itemsPerPage")):i,currentPage:o.get("currentPage")?parseInt(o.get("currentPage")):r})}}return t.\u0275fac=function(e){return new(e||t)(R(pM))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),d_=(()=>{class t{constructor(){this.label="",this.alone=!1,this.checked=!1,this.id="",this.disabled=!1}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}writeValue(e){this.value=e}onChange(e){this._onChange&&this._onChange(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["wz-checkbox"]],inputs:{label:"label",value:"value",type:"type",alone:"alone",checked:"checked",id:"id",name:"name"},features:[Ae([{provide:Qn,useExisting:t,multi:!0}])],decls:5,vars:12,consts:[[1,"checkBoxField","field",3,"ngClass"],[1,"field__row"],["type","checkbox",1,"is-checkradio",3,"id","name","value","disabled","ngModel","checked","ngModelChange"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"div",1)(2,"input",2),E("ngModelChange",function(o){return i.value=o})("ngModelChange",function(o){return i.onChange(o)}),y(),g(3,"label"),O(4),y()()()),2&e&&(_("ngClass",Wn(9,n8,"column"===i.type,i.alone)),p(2),_("id",i.id)("name",i.name)("value",i.value)("disabled",i.disabled)("ngModel",i.value)("checked",i.checked),p(1),$n("for",i.id),p(1),G(i.label))},dependencies:[Ze,Tg,hi,Xn],encapsulation:2}),t})(),KT=(()=>{class t{constructor(e){this.filtersTableService=e,this.tableFiltersChange=new F,this.placeholder="",this.checkbox=!1,this.toggleAllCheckBox=new F,this.disableSearch=!1,this.disablePagniation=!1,this.isLoading=!1}ngOnInit(){this.headerCheckBoxId=(0,XM.v4)(),this.tableRoutingName&&(this._filterGroup=this.filtersTableService.getTableFilterGroup(this.tableRoutingName),this._filterGroup.valuesChange$.next([]),this.setTablesFilters(),this.filterGroupChangeSub=this._filterGroup.valuesChange$.subscribe(e=>{this.setTablesFilters()}))}onToggleAllCheckBox(e){this.toggleAllCheckBox.emit(e.target.checked)}searchChange(e){this.tableFilters.sort=void 0,this.tableFilters.order=void 0,this.tableFilters.currentPage=1,this.tableFiltersChange.emit(this.tableFilters),this._filterGroup&&this._filterGroup.setValues({searchValue:this.tableFilters.searchValue,sort:void 0,order:void 0,currentPage:1})}pageChange(){this.tableFiltersChange.emit(this.tableFilters),this._filterGroup&&this._filterGroup.setValues({itemsPerPage:this.tableFilters.itemsPerPage,currentPage:this.tableFilters.currentPage})}setTablesFilters(){this.tableFilters={sort:this._filterGroup.get("sort"),order:this._filterGroup.get("order"),searchValue:this._filterGroup.get("searchValue"),itemsPerPage:this._filterGroup.get("itemsPerPage")?parseInt(this._filterGroup.get("itemsPerPage")):0,currentPage:this._filterGroup.get("currentPage")?parseInt(this._filterGroup.get("currentPage")):0,totalItems:this.tableFilters.totalItems},this.tableFiltersChange.emit(this.tableFilters)}ngDestroy(){this.filterGroupChangeSub&&this.filterGroupChangeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(v(YT))},t.\u0275cmp=be({type:t,selectors:[["wz-table"]],inputs:{tableFilters:"tableFilters",tableRoutingName:"tableRoutingName",placeholder:"placeholder",checkbox:"checkbox",disableSearch:"disableSearch",disablePagniation:"disablePagniation",isLoading:"isLoading"},outputs:{tableFiltersChange:"tableFiltersChange",toggleAllCheckBox:"toggleAllCheckBox"},ngContentSelectors:c8,decls:9,vars:5,consts:[[1,"wz-table"],["id","headerTable",1,"wz-table__head"],["class","wz-table__head__cell wz-table__head__cell--checkbox",4,"ngIf"],["class","wz-table__search",4,"ngIf"],[1,"wz-table__body"],["class","wz-table__body__loader",4,"ngIf"],[4,"ngIf"],[3,"pagination","pageChange",4,"ngIf"],[1,"wz-table__head__cell","wz-table__head__cell--checkbox"],[3,"id","alone","change"],[1,"wz-table__search"],[3,"ngModel","placeholder","smallPadding","ngModelChange","changeDebounced"],[1,"wz-table__body__loader"],[3,"small"],[3,"pagination","pageChange"]],template:function(e,i){1&e&&(Ss(l8),g(0,"div",0)(1,"div",1),M(2,i8,2,2,"div",2),gr(3),y(),M(4,r8,2,3,"div",3),g(5,"div",4),M(6,o8,2,1,"div",5),M(7,s8,1,0,"ng-content",6),y(),M(8,a8,1,1,"wz-pagination",7),y()),2&e&&(p(2),_("ngIf",i.checkbox),p(2),_("ngIf",!i.disableSearch),p(2),_("ngIf",i.isLoading),p(1),_("ngIf",!i.isLoading),p(1),_("ngIf",!i.disablePagniation))},dependencies:[$e,hi,Xn,Zs,Nd,u_,d_],encapsulation:2}),t})(),QT=(()=>{class t{constructor(e,i,r){this.currentCell=e,this.renderer=i,this.document=r,this.centerCellValue=["left","center","right"]}ngAfterViewInit(){this.applyCustomStylesOnCell()}applyCustomStylesOnCell(){if(this.currentCell.nativeElement.style.flexGrow=typeof this.columnSize<"u"?this.columnSize:"1",this.renderer.addClass(this.currentCell.nativeElement,"wz-table__body__line__cell"),this.centerCell){if(-1===this.centerCellValue.indexOf(this.centerCell))throw"Error : The centerCell directive has no matched value. The value must be one of the following : left, center, right.";this.renderer.addClass(this.currentCell.nativeElement,"wz-table__body__line__cell--center--"+this.centerCell)}}}return t.\u0275fac=function(e){return new(e||t)(v(Te),v(un),v(Be))},t.\u0275dir=z({type:t,selectors:[["","tableColumn",""]],inputs:{columnSize:"columnSize",centerCell:"centerCell"}}),t})(),XT=(()=>{class t{constructor(e,i,r,o,s,a){this.currentRow=e,this.appRef=i,this.renderer=r,this.document=o,this.resolver=s,this.injector=a,this.checkBoxValueChange=new F}set checkBoxValue(e){this._value=e,this.checkboxComponentRef&&this.setCheckBoxValue()}get checkBoxValue(){return this._value}ngOnInit(){this.createCheckBoxComponent(),this.handleChecboxInputs(),this.handleCheckboxOutputs()}createCheckBoxComponent(){const e=document.createElement("div");e.className="wz-table__body__line__cell wz-table__body__line__cell--checkbox",this.renderer.insertBefore(this.currentRow.nativeElement,e,this.currentRow.nativeElement.firstChild),this.htmlContainer=new T6(e,this.appRef,this.resolver,this.injector),this.checkboxComponentRef=this.htmlContainer.attach(d_)}handleChecboxInputs(){this.checkboxComponentRef.instance.id=this.checkBoxId?this.checkBoxId:(0,XM.v4)(),this.checkboxComponentRef.instance.name=this.checkBoxName?this.checkBoxName:void 0,this.checkboxComponentRef.instance.alone=!0,this.setCheckBoxValue()}setCheckBoxValue(){this.checkboxComponentRef.instance.value=this.checkBoxValue}handleCheckboxOutputs(){this.checkboxComponentRef.instance.registerOnChange(()=>{this._toggleCheckbox()})}_toggleCheckbox(){this.checkBoxValue=!this.checkBoxValue,this.checkBoxValueChange.emit(this.checkBoxValue)}ngOnDestroy(){this.htmlContainer.dispose()}}return t.\u0275fac=function(e){return new(e||t)(v(Te),v(bo),v(un),v(Be),v(dr),v(Ut))},t.\u0275dir=z({type:t,selectors:[["","checkBoxRow",""]],inputs:{checkBoxId:"checkBoxId",checkBoxName:"checkBoxName",checkBoxValue:"checkBoxValue"},outputs:{checkBoxValueChange:"checkBoxValueChange"}}),t})();class T6{constructor(n,e,i,r){this.hostElement=n,this.appRef=e,this.componentFactoryResolver=i,this.injector=r,this.attached=!1}attach(n){if(this.attached)throw new Error("component has already been attached");this.attached=!0;let i=this.componentFactoryResolver.resolveComponentFactory(n).create(this.injector);return this.appRef.attachView(i.hostView),this.disposeFn=()=>{this.appRef.detachView(i.hostView),i.destroy()},this.hostElement.appendChild(i.hostView.rootNodes[0]),i}dispose(){this.attached&&this.disposeFn()}}let ZT=(()=>{class t{constructor(e,i,r,o){this.currentCell=e,this.renderer=i,this.document=r,this.filtersTableService=o,this._headerName="",this.filterRouting=!1,this.onSortChange=new F,this.tableFiltersChange=new F,this.centerCellValue=["left","center","right"],this.subscriptions=[]}set headerName(e){this._headerName=e,this.setHeaderName()}get headerName(){return this._headerName}ngOnInit(){this.tableName&&this.sortName&&(this.filterRouting?this.handleSortRouting():this.handleSortBasic())}ngAfterViewInit(){this.applyCustomStylesOnCell(),this.renderHeaderColumn()}handleSortRouting(){this.filterGroup=this.filtersTableService.getTableFilterGroup(this.tableName);const e=this.filterGroup.valuesChange$.subscribe(i=>{const r=i.filter(o=>"sort"===o.key)[0];this.sortName!==r.value&&this.resetSortIcon()});this.subscriptions.push(e)}handleSortBasic(){const e=this.filtersTableService.getSortChangeListner().subscribe(i=>{this.tableName===i.dataTableName&&this.sortName!==i.sortName&&this.resetSortIcon()});this.subscriptions.push(e)}resetSortIcon(){this.contentHeader.className=this.contentHeader.className.replace(this.getCurrentSortIcon(),"idle")}applyCustomStylesOnCell(){if(this.currentCell.nativeElement.style.flexGrow=typeof this.columnSize<"u"?this.columnSize:"1",this.renderer.addClass(this.currentCell.nativeElement,"wz-table__head__cell"),this.centerCell){if(-1===this.centerCellValue.indexOf(this.centerCell))throw"Error : The centerCell directive has no matched value. The value must be one of the following : left, center, right.";this.renderer.addClass(this.currentCell.nativeElement,"wz-table__head__cell--center--"+this.centerCell)}}renderHeaderColumn(){this.createHeaderContent(),this.renderer.appendChild(this.currentCell.nativeElement,this.contentHeader)}createHeaderContent(){this.contentHeader=document.createElement("a"),this.contentHeader.className="wz-table__head__cell__search",this.setHeaderName(),this.tableName&&this.sortName&&this.handleSort()}setHeaderName(){!this.contentHeader||(this.contentHeader.innerHTML=this.headerName)}handleSort(){this.contentHeader.className+=" wz-table__head__cell__search--"+this.getInitialSortIcon(),this.renderer.listen(this.contentHeader,"click",()=>{const e=this.getCurrentSortIcon();let i,r,o;switch(e){case"idle":i="up",r=this.sortName,o=!0;break;case"up":i="down",r=this.sortName,o=!1;break;default:i="idle"}this.contentHeader.className=this.contentHeader.className.replace(e,i),this.emitEvents(r,o)})}getInitialSortIcon(){if(!this.filterRouting)return"idle";let e="idle";return this.filterGroup.get("sort")===this.sortName&&(e="true"==this.filterGroup.get("order")?"up":"down"),e}getCurrentSortIcon(){const{groups:i}=/wz-table__head__cell__search--(?<icon>\w+)/.exec(this.contentHeader.className);return i.icon}emitEvents(e,i){this.filterRouting?this.filterGroup.setValues({sort:e,order:i,currentPage:1}):this.filtersTableService.emitSortChange(this.tableName,this.sortName,i),this.tableFilters&&(this.tableFilters.sort=this.sortName,this.tableFilters.order=i,this.tableFilters.currentPage=1,this.tableFiltersChange.emit(this.tableFilters)),this.onSortChange.emit(i)}ngOnDestroy(){this.subscriptions.forEach(e=>{e.unsubscribe()})}}return t.\u0275fac=function(e){return new(e||t)(v(Te),v(un),v(Be),v(YT))},t.\u0275dir=z({type:t,selectors:[["","headerCell",""]],inputs:{headerName:"headerName",columnSize:"columnSize",filterRouting:"filterRouting",tableName:"tableName",sortName:"sortName",centerCell:"centerCell",tableFilters:"tableFilters"},outputs:{onSortChange:"onSortChange",tableFiltersChange:"tableFiltersChange"}}),t})(),JT=(()=>{class t{constructor(e,i,r){this.currentCell=e,this.renderer=i,this.document=r}ngAfterViewInit(){this.applyCustomStylesOnCell()}applyCustomStylesOnCell(){this.renderer.addClass(this.currentCell.nativeElement,"wz-table__body__line")}}return t.\u0275fac=function(e){return new(e||t)(v(Te),v(un),v(Be))},t.\u0275dir=z({type:t,selectors:[["","tableRow",""]]}),t})(),e1=(()=>{class t extends n_{constructor(e,i,r,o,s,a,l,c){super(e,i,r,o,s,a,l,c),this.dataTableName="imgagesView"}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(v(pi),v(Xi),v(Yi),v(Fo),v(to),v(ki),v(gn),v(eo))},t.\u0275cmp=be({type:t,selectors:[["table-view"]],features:[ve],decls:9,vars:15,consts:[[1,"table-view"],[3,"checkbox","tableFilters","placeholder","disablePagniation","isLoading","toggleAllCheckBox","tableFiltersChange"],["headerCell","","columnSize","2","sortName","name",3,"headerName"],["headerCell","","centerCell","center",3,"headerName"],["headerCell","","columnSize","0"],["tableRow","","checkBoxRow","",3,"checkBoxValue","checkBoxValueChange",4,"ngFor","ngForOf"],["tableRow","","checkBoxRow","",3,"checkBoxValue","checkBoxValueChange"],["tableColumn","","columnSize","2"],[1,"table-view__row__container"],[1,"table-view__row__container__imgContainer",3,"ngClass","click"],["alt","picture.display_name",1,"table-view__row__container__imgContainer__img",3,"src","ngClass","error"],["class","table-view__row__container__imgContainer__overlay",4,"ngIf"],["type","text",1,"wzImgMngInput","table-view__row__container__name",3,"ngModel","ngClass","disabled","ngModelChange","focus","blur","click"],["tableColumn","","centerCell","center",3,"click"],[1,"grey"],["tableColumn","","centerCell","center","columnSize","0",1,"table-view__dropdown-options"],["dropdownId","dropdown-options",3,"disable"],["label",""],[1,"table-view__dropdown-options__label","rotate"],["aria-haspopup","true","aria-controls","dropdown-menu",1,"far","fa-ellipsis-h","is-size-4"],["item",""],[1,"dropdown-item",3,"click"],[1,"far","fa-download","download"],[1,"far","fa-crop-alt","edit"],[1,"fal","fa-times","deleted"],[1,"table-view__row__container__imgContainer__overlay"],[1,"fad","fa-folder-times"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"wz-table",1),E("toggleAllCheckBox",function(o){return i.onToggleAllCheckBoxRow(o)})("tableFiltersChange",function(o){return i.tableFilters=o})("tableFiltersChange",function(){return i.onFiltersChange()}),L(2,"translate"),k(3,"div",2),L(4,"translate"),k(5,"div",3),L(6,"translate"),k(7,"div",4),M(8,p8,38,29,"div",5),y()()),2&e&&(_("@listAnimation",i.picturesList.length),p(1),_("checkbox",!0)("tableFilters",i.tableFilters)("placeholder",H(2,9,"ImgManager.SearchBar.placeholder"))("disablePagniation",i.displayPexelsResults)("isLoading",i.isLoading),p(2),_("headerName",H(4,11,"ImgManager.ImgList.titleImgName")),p(2),_("headerName",H(6,13,"ImgManager.ImgList.titleResolution")),p(3),_("ngForOf",i.picturesList))},dependencies:[Ze,Ai,$e,Cr,hi,Xn,a_,KT,QT,XT,ZT,JT,Jt,Nl],encapsulation:2,data:{animation:[r_]}}),t})(),t1=(()=>{class t{constructor(e,i,r,o,s,a){this.imgManager=e,this.imgEventService=i,this.imgSelectionService=r,this.alertService=o,this.userSettingsService=s,this.renamePictureService=a,this.listDisplayed=!1,this.multipleImgMode=!1,this.switchDisplayWindow=new F,this.tableFilters={sort:void 0,order:void 0,searchValue:"",totalItems:0,itemsPerPage:0,currentPage:1},this.widthLargeCard=219,this.widthSmallCard=160,this.nbFakeImg=0,this.imgFullWidthConfig=[{max:419,largeImgWidthFactor:1,smallImgWidthFactor:.5},{max:499,largeImgWidthFactor:1,smallImgWidthFactor:.5},{max:719,largeImgWidthFactor:.5,smallImgWidthFactor:.3333},{max:1023,largeImgWidthFactor:.3333,smallImgWidthFactor:.2},{max:1399,largeImgWidthFactor:.25,smallImgWidthFactor:.125},{max:1599,largeImgWidthFactor:.2,smallImgWidthFactor:.1111},{largeImgWidthFactor:.1666,smallImgWidthFactor:.1}],this.imgWidthConfig=[{max:1024,largeImgWidthFactor:.25,smallImgWidthFactor:.125},{max:1199,largeImgWidthFactor:.3333,smallImgWidthFactor:.2},{max:1299,largeImgWidthFactor:.3333,smallImgWidthFactor:.1666},{max:1399,largeImgWidthFactor:.25,smallImgWidthFactor:.1666},{max:1599,largeImgWidthFactor:.25,smallImgWidthFactor:.14},{largeImgWidthFactor:.25,smallImgWidthFactor:.125}],this.searchQueryChanged=new K,this.filtersChanged=new K,this.picturesList=[],this.savePictureList=[],this.nbImgToDelSelected=0,this.disable=!1,this.isLoading=!0,this.isTotalRetieved=!1,this.delListImgLoader=!1,this.initComponent=!0,this.failLoaded=!1,this.displayPexelsResults=!1,this.confirmImgSup=!1,this.pageIndex=0,this.length=0,this.pageSize=30,this.pageSizeOptions=[25,50,100,250],this.errorGetAllImg="ImgManager.ImgLib.errorGetAllImg",this.errorGetTotalImg="ImgManager.ImgLib.errorGetTotalImg",this.errorGetImg="ImgManager.ImgLib.errorGetCanvaImg",this.msgNoImgFound="ImgManager.ImgLib.noImgFound",this.errorRemoveImg="ImgManager.ImgList.errorRemoveImg"}ngOnInit(){this.setEvents(),this.imgSelectedList=this.imgSelectionService.getImgSelection()}ngAfterViewInit(){this.setNbImgToDisplay(),this._getImgList(),this.savePictureList||(this.savePictureList=this.picturesList)}getImgList(){this.filtersChanged.next()}onSwitchFormatDisplayed(e){this.listDisplayed=e,this.userSettingsService.setUserDisplayPreference(e),this.imgEventService.emitlistDisplayedChange(e)}onImgSelected(){this.setNbImgToDelSelected()}onShowImgUploaded(){this.searchText=null,this.searchedValue=null,this.getImgList()}onRenamePicture(e){console.log("onRenamePicture pictureRenamed",e),this.renamePictureService.onRenamePicture(e)}removeListImg(){if(this.disable)return;this.disable=!0,this.delListImgLoader=!0,this.confirmImgSup=!1;const e=[];this.picturesList.forEach(i=>{i.delSelected&&(i.deleted=!0,e.push(i.id_file))}),this.imgManager.removeMultipleImg(e).subscribe(()=>{this.getImgList(),this.imgSelectionService.removeImgSelectionByIds(e)},i=>{this.getImgList(),this.alertService.openAlert(this.errorRemoveImg)})}selectImgChosen(){if(this.disable)return;const e=[];this.picturesList.map(i=>{i.delSelected&&(i.delSelected=!1,i.selected=!0),i.selected&&e.push(i)}),this.setNbImgToDelSelected(),this.imgSelectionService.setImgSelection(e)}displayConfirmImgSup(){this.disable||(this.confirmImgSup=!0)}cancelSup(){this.confirmImgSup=!1}onPicturesListChange(){this.setNbImgToDelSelected()}onFiltersChange(){this.getImgList()}setNbImgToDisplay(){const e=this.imgLibContainer.nativeElement.offsetWidth+30,i=window.innerWidth-document.body.offsetWidth,[r,o]=this.getImgWidthFactors(),s=Math.floor(e*o),a=Math.ceil((e+i)*r);this.nbMaxImgPerLine=Math.floor(e/s),this.nbMinImgPerLine=Math.floor((e+i)/a),this.pageSize=this.getTotalImgPerPage()}getImgWidthFactors(){const e=window.innerWidth;let i=0,r=[];const o=this.fullSize?this.imgFullWidthConfig:this.imgWidthConfig;for(const s of o){if(!s.max){r=[s.largeImgWidthFactor,s.smallImgWidthFactor];break}if(i<e&&e<=s.max){r=[s.largeImgWidthFactor,s.smallImgWidthFactor];break}i=s.max}return r}getTotalImgPerPage(){if(this.nbRowToShow)return("full"===this.stateDisplayed?this.nbMinImgPerLine:this.nbMaxImgPerLine)*this.nbRowToShow;let e=this.nbMinImgPerLine;for(;e<30||e%this.nbMaxImgPerLine!=0||e%this.nbMinImgPerLine!=0;)e+=this.nbMinImgPerLine;return e}setParams(){this.params={limit:this.maxLengthCardShow?.toString()||(this.tableFilters.itemsPerPage?this.tableFilters.itemsPerPage.toString():this.pageSize.toString()),page:this.tableFilters.currentPage.toString()},this.tableFilters.searchValue&&(this.params["display_name:contains"]=this.tableFilters.searchValue.toString())}initVariables(e){this.nbImgToDelSelected=0,this.disable=!1,this.isLoading=!1,this.delListImgLoader=!1,this.initComponent=!1,this.displayPexelsResults=!1,this.failLoaded=!e,this.nbFakeImg=0}selectImgSelected(){if(!this.imgSelectedList||!this.imgSelectedList.length)return;const e=[];this.imgSelectedList.forEach(i=>e.push(i.id_file)),this.picturesList.forEach(i=>{-1!==e.indexOf(i.id_file)&&(i.selected=!0)})}displayPexelsLib(){this.displayPexelsResults=!0,this.alertService.openAlert(this.msgNoImgFound)}calculNbImgFake(e){const i="small"===this.stateDisplayed||"img-upload"===this.tabDisplayed?this.nbMaxImgPerLine:this.nbMinImgPerLine;e%i!=0&&(this.nbFakeImg=i-e%i)}getImg(e){this.imgManager.getShopImg(e).pipe(Vt(1)).subscribe(i=>{this.imgAlreadyExist(i.id_file)||(this.picturesList.unshift(i),this.length+=1)},i=>{this.alertService.openAlert(this.errorGetImg)})}imgAlreadyExist(e){for(const i of this.picturesList)if(i.id_file===e)return!0;return!1}setNbImgToDelSelected(){this.nbImgToDelSelected=this.picturesList.filter(e=>e.delSelected).length,this.nbImgToDelSelected||(this.confirmImgSup=!1)}setEvents(){this.searchQueryChanged.pipe(wd(400)).subscribe(e=>{this.getImgList()}),this.filtersChanged.pipe(wd(800)).subscribe(e=>{this._getImgList()}),this.imgRemovedEvent=this.imgEventService.getImgRemovedEventListner().subscribe(e=>{this.getImgList()}),this.imgAddedEvent=this.imgEventService.getImgAddedEventListner().subscribe(e=>{e&&!this.imgAlreadyExist(e)&&this.getImg(e)}),this.imgSelectionChange=this.imgSelectionService.getImgSelectionChange().subscribe(e=>{if(this.listDisplayed)return;const i=[];e.map(r=>i.push(r.id_file));for(const r of this.picturesList)-1===i.indexOf(r.id_file)&&(r.selected=!1)})}_getImgList(){this.isLoading=!0,this.displayPexelsResults=!1,this.setParams(),this.refreshTotalImgList(),this.imgManager.getShopImgList(this.params).pipe(Vt(1)).subscribe(e=>{this.initVariables(!0),this.calculNbImgFake(e.data.length),this.picturesList=e.data,this.renamePictureService.setPicturesList(this.picturesList),this.selectImgSelected(),this.length=this.isTotalRetieved?this.length:e.totalRecords,this.tableFilters.totalItems=this.isTotalRetieved?this.tableFilters.totalItems:e.totalRecords,this.tableFilters.itemsPerPage=this.tableFilters.itemsPerPage?this.tableFilters.itemsPerPage:this.pageSize,0===e.totalRecords&&this.displayPexelsLib()},e=>{this.alertService.openAlert(this.errorGetAllImg),this.initVariables(!1)})}refreshTotalImgList(){const e=this.tableFilters.searchValue;this.isTotalRetieved&&e===this.previousSearchValue||(this.isTotalRetieved=!1,this.imgManager.getShopTotalImgList(this.params).pipe(Vt(1)).subscribe(i=>{this.previousSearchValue=e,this.isTotalRetieved=!0,this.length=i.totalRecords,this.tableFilters.totalItems=i.totalRecords},i=>{this.initVariables(!1)}))}switchDisplayWindowMosaic(){this.switchDisplayWindow.emit(!0)}ngOnDestroy(){this.searchQueryChanged.unsubscribe(),this.imgRemovedEvent.unsubscribe(),this.imgAddedEvent.unsubscribe(),this.imgSelectionChange.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(v(pi),v(to),v(Xi),v(ki),v(TT),v(AT))},t.\u0275cmp=be({type:t,selectors:[["images-view"]],viewQuery:function(e,i){if(1&e&&tt(g8,5),2&e){let r;Ce(r=De())&&(i.imgLibContainer=r.first)}},inputs:{stateDisplayed:"stateDisplayed",tabDisplayed:"tabDisplayed",fullSize:"fullSize",maxLengthCardShow:"maxLengthCardShow",nbRowToShow:"nbRowToShow",listDisplayed:"listDisplayed",multipleImgMode:"multipleImgMode"},outputs:{switchDisplayWindow:"switchDisplayWindow"},decls:8,vars:20,consts:[[1,"images-view",3,"ngClass"],["class","images-view__container",3,"ngClass",4,"ngIf"],[1,"images-view__scroll",3,"config","ngClass"],[1,"images-view__wrapper"],["imgLibContainer",""],[4,"ngIf"],["class","images-view--pexels",4,"ngIf"],[1,"images-view__container",3,"ngClass"],["class","field has-addons subHeaderActions",4,"ngIf"],[1,"mainColor"],[1,"field","has-addons","subHeaderActions"],[1,"images-view__container__boxAction"],["class","button success images-view__container__boxAction__import","type","button",3,"click",4,"ngIf"],["class","button images-view__container__boxAction__delBtn danger","type","button",3,"click",4,"ngIf"],[1,"images-view__container__boxAction__confirmSup",3,"ngClass"],["class","images-view__container__boxAction__confirmSup__text",4,"ngIf"],["type","button",1,"button","images-view__container__boxAction__confirmSup__cancel",3,"click"],["type","button",1,"button","images-view__container__delBtn","danger",3,"click"],[1,"field","has-addons","images-view__container__buttonBox"],[1,"control"],[1,"button","is-lighted","images-view__container__buttonBox__btn",3,"ngClass","click"],[1,"icon","is-small"],[1,"far","fa-th"],[1,"fas","fa-bars"],["type","button",1,"button","success","images-view__container__boxAction__import",3,"click"],[1,"fal","fa-check"],["type","button",1,"button","images-view__container__boxAction__delBtn","danger",3,"click"],[1,"fal","fa-times"],["btnLoadingAnim","","class","btnLoadingAnnimation",4,"ngIf"],["btnLoadingAnim","",1,"btnLoadingAnnimation"],[1,"images-view__container__boxAction__confirmSup__text"],[3,"picturesList","tableFilters","disable","nbFakeImg","stateDisplayed","tabDisplayed","displayPexelsResults","isLoading","fullSize","picturesListChange","filtersChange","disableChange","pictureNameChange","switchDisplayWindow"],[3,"picturesList","tableFilters","disable","displayPexelsResults","stateDisplayed","isLoading","picturesListChange","filtersChange","disableChange","pictureNameChange"],[1,"images-view--pexels"],[3,"searchValue","disableSearch","showImgUploaded"]],template:function(e,i){1&e&&(g(0,"div",0),M(1,I8,4,7,"div",1),y(),g(2,"perfect-scrollbar",2)(3,"div",3,4),M(5,M8,2,10,"div",5),M(6,T8,2,7,"div",5),y()(),M(7,x8,2,3,"div",6)),2&e&&(_("ngClass",Wn(8,A8,i.fullSize,"small"===i.stateDisplayed))("@easeInOut","in"),p(1),_("ngIf","small"!==i.stateDisplayed||"img-upload"===i.tabDisplayed),p(1),_("config",La(11,Pd))("ngClass",function hC(t,n,e,i,r,o,s,a,l,c){const u=ln()+t,d=N();let h=ri(d,u,e,i,r,o);return Rc(d,u+4,s,a,l)||h?Hi(d,u+7,c?n.call(c,e,i,r,o,s,a,l):n(e,i,r,o,s,a,l)):Ta(d,u+7)}(12,R8,i.displayPexelsResults&&!i.listDisplayed,i.displayPexelsResults&&!i.listDisplayed&&"small"===i.stateDisplayed,i.displayPexelsResults&&i.listDisplayed,"full"===i.stateDisplayed,"small"===i.stateDisplayed&&"img-upload"!==i.tabDisplayed,"small"===i.stateDisplayed&&"img-upload"===i.tabDisplayed,"window"===i.stateDisplayed)),p(3),_("ngIf",!i.listDisplayed||"small"===i.stateDisplayed),p(1),_("ngIf",i.listDisplayed&&"small"!==i.stateDisplayed),p(1),_("ngIf",i.displayPexelsResults))},dependencies:[Ze,$e,Rl,s_,qT,e1,Xs,Jt],encapsulation:2,data:{animation:[Qs,VT]}}),t})(),n1=(()=>{class t{constructor(e,i){this.currentElement=e,this.renderer=i,this.isActived=!1}set isActive(e){this.isActived=e,this.switchToggle()}get isActive(){return this.isActived}ngOnInit(){}switchToggle(){this.isActived?this.renderer.addClass(this.currentElement.nativeElement.parentElement.parentNode,"zindexToggle"):this.renderer.removeClass(this.currentElement.nativeElement.parentElement.parentNode,"zindexToggle")}ngOnDestroy(){}}return t.\u0275fac=function(e){return new(e||t)(v(Te),v(un))},t.\u0275dir=z({type:t,selectors:[["","zIndexToggle",""]],inputs:{isActive:["zIndexToggle","isActive"]},outputs:{onEventChange:"onEventChange"}}),t})(),r1=(()=>{class t{transform(e,i){return e.filter(r=>new RegExp(i,"i").test(r.name))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ht({name:"selectFilters",type:t,pure:!0}),t})(),o1=(()=>{class t{constructor(e){this.translateService=e,this.search=!1,this.type="default",this.maxWidth="100%",this.disabled=!1,this.selectValue=new F,this.clickOnCallToAction=new F,this.openCategories=!1,this.searchValue="",this.indexItemSelected=-1,this.onChange=()=>{},this.onTouch=()=>{}}ngOnInit(){this.indexItemSelected=this.items.findIndex(e=>e.selected)}onClose(){this.openCategories=!1}customTB(e,i){return`${e.id}-${i}`}onSelectItem(e){this.unselectAll(),this.setIndexItemSelected(e);const i=this.getItemSelected();i.selected=!0,this.selectValue.emit(this.indexItemSelected),this.onChange(i)}onClickCallToAction(){this.onClose(),this.clickOnCallToAction.emit(this.callToAction.value)}getItemSelected(){return this.items[this.indexItemSelected]}showCategories(){this.openCategories=!0,setTimeout(()=>{this.searchElement.nativeElement.focus()},0)}unselectAll(){this.items.forEach(e=>e.selected=!1)}setIndexItemSelected(e){this.indexItemSelected=this.items.findIndex(i=>i.id===e)}writeValue(e){!e||(this.unselectAll(),e.selected=!0,this.setIndexItemSelected(e.id))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouch=e}}return t.\u0275fac=function(e){return new(e||t)(v(gn))},t.\u0275cmp=be({type:t,selectors:[["wac-select"]],viewQuery:function(e,i){if(1&e&&tt(P8,5),2&e){let r;Ce(r=De())&&(i.searchElement=r.first)}},inputs:{items:"items",placeholder:"placeholder",label:"label",maxWidthItems:"maxWidthItems",search:"search",type:"type",callToAction:"callToAction",maxWidth:"maxWidth",disabled:"disabled"},outputs:{selectValue:"selectValue",clickOnCallToAction:"clickOnCallToAction"},features:[Ae([{provide:Qn,useExisting:t,multi:!0}])],decls:5,vars:8,consts:[["class","wac-select__label",3,"innerHTML",4,"ngIf"],["wzAutoHide","",1,"wac-select",3,"ngStyle","zIndexToggle","clickOutside"],["class","wac-select__current",3,"ngClass","click",4,"ngIf"],["class","wac-select__current wac-select__current--withSearch",3,"ngClass",4,"ngIf"],["class","wac-select__content",3,"ngClass","ngStyle",4,"ngIf"],[1,"wac-select__label",3,"innerHTML"],[1,"wac-select__current",3,"ngClass","click"],["class","icon",3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[1,"fas","fa-chevron-down"],[1,"icon",3,"innerHTML"],[1,"wac-select__current","wac-select__current--withSearch",3,"ngClass"],["class","wac-select__current__search",4,"ngIf"],["class","icon",3,"innerHTML","click",4,"ngIf"],[3,"innerHTML","click"],[3,"click"],[1,"wac-select__current__search"],[1,"far","fa-search"],["type","text",3,"ngModel","ngModelChange"],["search",""],[1,"icon",3,"innerHTML","click"],[1,"wac-select__content",3,"ngClass","ngStyle"],[3,"perfectScrollbar",4,"ngIf"],["class","wac-select__content__empty",4,"ngIf"],[3,"perfectScrollbar"],["class","wac-select__content__cta",4,"ngIf"],["class","wac-select__content__item",3,"click",4,"ngFor","ngForOf"],[1,"wac-select__content__cta"],[3,"classList",4,"ngIf"],[4,"ngIf"],[3,"classList"],[1,"wac-select__content__item",3,"click"],[3,"ngClass","click",4,"ngIf"],[3,"ngClass","click"],[1,"wac-select__content__empty"]],template:function(e,i){1&e&&(M(0,k8,1,1,"p",0),g(1,"div",1),E("clickOutside",function(){return i.onClose()}),M(2,F8,6,7,"div",2),M(3,H8,6,7,"div",3),M(4,X8,4,12,"div",4),y()),2&e&&(_("ngIf",i.label),p(1),_("ngStyle",X(6,MT,i.maxWidth))("zIndexToggle",i.openCategories),p(1),_("ngIf",!i.search),p(1),_("ngIf",i.search),p(1),_("ngIf",!i.disabled))},dependencies:[Ze,Ai,$e,$a,Cr,hi,Xn,qm,l_,n1,Jt,r1],encapsulation:2}),t})(),s1=(()=>{class t{constructor(e,i,r){this.imgEventEditService=e,this.alertService=i,this.route=r,this.multipleImgMode=!1,this.listDisplayed=!1,this.imgManagerClosed=new F,this.currentTab=new F,this.switchDisplayWindow=new F,this.tabs=[{name:"ImgManager.Tabs.addImg",value:"img-upload",selected:!0,id:0},{name:"ImgManager.Tabs.imgLib",value:"images-view",id:1},{name:"ImgManager.Tabs.freeImgLib",value:"pexels-lib",id:2},{name:"ImgManager.Tabs.Editor",value:"img-edition",hide:!0,id:3}],this.tabActive=this.tabs[0],this.editTab=!1,this.imgUpload=!1,this.snackBarNewVersionConfig={message:"",duration:3e3}}ngOnInit(){this.imgEventEditService.getImgToEditEventListner().subscribe(e=>{this.tabActive=this.tabs[3],this.imgToEdit=e,this.editTab=!0,this.currentTab.emit(this.tabs[3])})}toggleTabs(e){this.imgUpload=!1,this.editTab=!1,this.tabActive=e}onImgUploaded(e){this.imgUpload=!0,this.imgUploadedComponent.onImgUploaded(e)}onEditClosed(e){this.editTab=!1,this.toggleTabs(this.tabs[1]),e&&this.alertService.openAlert(e),this.currentTab.emit("close")}onShowImgUploaded(){this.tabActive=this.tabs[1]}switchDisplayWindowImgView(){this.switchDisplayWindow.emit(!0)}switchRouterLink(e){}onImgManagerClosed(){this.imgManagerClosed.emit()}}return t.\u0275fac=function(e){return new(e||t)(v(to),v(ki),v(Wt))},t.\u0275cmp=be({type:t,selectors:[["img-tabs"]],viewQuery:function(e,i){if(1&e&&tt(Z8,5),2&e){let r;Ce(r=De())&&(i.imgUploadedComponent=r.first)}},inputs:{multipleImgMode:"multipleImgMode",stateDisplayed:"stateDisplayed",listDisplayed:"listDisplayed"},outputs:{imgManagerClosed:"imgManagerClosed",currentTab:"currentTab",switchDisplayWindow:"switchDisplayWindow"},decls:25,vars:36,consts:[[1,"img-tabs",3,"ngClass"],[1,"wrapper-tabs"],[1,"tabs",3,"ngClass"],[1,"is-active",3,"ngClass","click"],[3,"ngClass","click"],[3,"ngClass",4,"ngIf"],[1,"img-tabs__canva",3,"ngClass"],[3,"stateDisplayed","showImgUploaded"],[1,"select-mobile-page"],["name","tabs",3,"ngModel","items","ngModelChange"],["class","columns img-tabs__tabsFirst",3,"ngClass",4,"ngIf"],["class","columns img-tabs__tabsSecond",4,"ngIf"],["class","columns img-tabs__tabsThird",4,"ngIf"],["class","columns img-tabs__tabsEdit",4,"ngIf"],[3,"ngClass"],[1,"columns","img-tabs__tabsFirst",3,"ngClass"],[1,"column","img-tabs__tabsFirst__upload"],[3,"stateDisplayed","imgUploaded"],[1,"column","img-tabs__tabsFirst__list",3,"ngClass"],[3,"stateDisplayed","listDisplayed","multipleImgMode","tabDisplayed","nbRowToShow","fullSize","switchDisplayWindow",4,"ngIf"],[3,"hidden"],[3,"stateDisplayed","tabDisplayed","multipleImgMode","switchDisplayWindow"],["imgUploadedImg",""],[3,"stateDisplayed","listDisplayed","multipleImgMode","tabDisplayed","nbRowToShow","fullSize","switchDisplayWindow"],[1,"columns","img-tabs__tabsSecond"],[1,"column"],[3,"stateDisplayed","listDisplayed","multipleImgMode","tabDisplayed","fullSize","switchDisplayWindow"],[1,"columns","img-tabs__tabsThird"],[1,"columns","img-tabs__tabsEdit"],[3,"stateDisplayed","imgToEdit","editClosed"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"div",1)(2,"div",2)(3,"ul")(4,"li",3),E("click",function(){return i.toggleTabs(i.tabs[0])}),g(5,"a"),O(6),L(7,"translate"),y()(),g(8,"li",4),E("click",function(){return i.toggleTabs(i.tabs[1])}),g(9,"a"),O(10),L(11,"translate"),y()(),g(12,"li",4),E("click",function(){return i.toggleTabs(i.tabs[2])}),g(13,"a"),O(14),L(15,"translate"),y()(),M(16,J8,4,6,"li",5),y(),g(17,"div",6)(18,"canva-btn",7),E("showImgUploaded",function(){return i.onShowImgUploaded()}),y()()(),g(19,"div",8)(20,"wac-select",9),E("ngModelChange",function(o){return i.tabActive=o}),y()()(),M(21,i6,8,13,"div",10),M(22,r6,3,5,"div",11),M(23,o6,3,1,"div",12),M(24,s6,3,2,"div",13),y()),2&e&&(_("ngClass",X(23,a6,"small"===i.stateDisplayed)),p(2),_("ngClass",Wn(25,l6,"window"!==i.stateDisplayed,"window"===i.stateDisplayed&&i.tabActive.value===i.tabs[3].value)),p(2),_("ngClass",X(28,kd,i.tabActive.value===i.tabs[0].value)),p(2),G(H(7,17,i.tabs[0].name)),p(2),_("ngClass",X(30,kd,i.tabActive.value===i.tabs[1].value)),p(2),G(H(11,19,i.tabs[1].name)),p(2),_("ngClass",X(32,kd,i.tabActive.value===i.tabs[2].value)),p(2),G(H(15,21,i.tabs[2].name)),p(2),_("ngIf",i.editTab),p(1),_("ngClass",X(34,c6,"window"===i.stateDisplayed)),p(1),_("stateDisplayed",i.stateDisplayed),p(2),_("ngModel",i.tabActive)("items",i.tabs),p(1),_("ngIf",i.tabActive.value===i.tabs[0].value),p(1),_("ngIf",i.tabActive.value===i.tabs[1].value),p(1),_("ngIf",i.tabActive.value===i.tabs[2].value),p(1),_("ngIf",i.tabActive.value===i.tabs[3].value))},dependencies:[Ze,$e,hi,Xn,kT,s_,RT,HT,zT,t1,o1,Jt],encapsulation:2}),t})(),a1=(()=>{class t{constructor(e){this.imgSelectionService=e,this.imgManagerClosed=new F,this.imgSelectedList=[],this.removingAll=!1,this.cancellingAll=!1,this.importingAll=!1,this.dragStart=!1,this.isLoading=!1,this.trashPositionIndex=0,this.trashPositionLeft="-5px"}ngOnInit(){this.getImgSelected(),this.imgSelectionService.getImgListLoadingEventListner().subscribe(e=>{this.isLoading=e})}init(){this.removingAll=!1,this.cancellingAll=!1,this.importingAll=!1}getImgSelected(){this.imgSelectedList=this.imgSelectionService.getImgSelection()}removeImg(e){this.imgSelectionService.removeImgSelectedByIndex(e)}drop(e){e.previousIndex!==e.currentIndex&&this.imgSelectionService.moveImgOrder(e)}removeImgFromSelection(e){this.imgSelectionService.removeImgSelectedByIndex(e.previousIndex)}}return t.\u0275fac=function(e){return new(e||t)(v(Xi))},t.\u0275cmp=be({type:t,selectors:[["img-selection"]],inputs:{tabDisplayed:"tabDisplayed"},outputs:{imgManagerClosed:"imgManagerClosed"},decls:7,vars:5,consts:[["cdkDropList","",1,"trash",3,"cdkDropListDropped"],["unSelectList","cdkDropList"],["class","img-selection",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"img-selection",3,"ngClass"],["cdkDropList","","cdkDropListOrientation","horizontal",1,"list_img_selection",3,"cdkDropListConnectedTo","cdkDropListDropped"],["selectionList","cdkDropList"],["class","img_box","cdkDrag","",3,"cdkDragStarted","cdkDragEnded",4,"ngFor","ngForOf"],["cdkDrag","",1,"img_box",3,"cdkDragStarted","cdkDragEnded"],["class","drag__img",3,"src","title",4,"ngIf"],[1,"delete-btn",3,"click"],[1,"drag__tooltips"],[1,"drag__img",3,"src","title"]],template:function(e,i){1&e&&(g(0,"div",0,1),E("cdkDropListDropped",function(o){return i.removeImgFromSelection(o)}),g(2,"p"),O(3),L(4,"translate"),y()(),M(5,g6,4,7,"div",2),M(6,m6,2,0,"ng-container",3)),2&e&&(p(3),G(H(4,3,"ImgManager.ImgSelection.unselect")),p(2),_("ngIf",!i.isLoading),p(1),_("ngIf",i.isLoading))},dependencies:[Ze,Ai,$e,yW,DW,Zs,Jt,Nl],encapsulation:2}),t})(),l1=(()=>{class t{constructor(e,i,r,o,s,a){this.imgSelectionService=e,this.externalConfigService=i,this.userSettingsService=r,this.canvaService=o,this.imgEventService=s,this.domService=a,this.showSelection=!1,this.imgManagerClosed=new F,this._multipleImgMode=!1,this._showImgManagerModule=!1,this.close=!1,this.listDisplayed=!1,this.hideTab=!1}set forceToOpenCanva(e){this.canvaService.forceToOpenCanva=!!e,"boolean"!=typeof e&&this.canvaService.expectedImgSizesChange(e)}set multipleImgMode(e){this._multipleImgMode=e,this.imgSelectionService.setMultipleImgMode(this._multipleImgMode)}get multipleImgMode(){return this._multipleImgMode}set showImgManagerModule(e){this._showImgManagerModule=e,e&&this.displaySmall()}get showImgManagerModule(){return this._multipleImgMode}onKeydownHandler(e){this.stateDisplayed&&"window"!==this.stateDisplayed&&this.onClose()}ngOnInit(){this.externalConfigService.setExternalConfig(this.externalConfig),this.imgSelectionService.setMultipleImgMode(this._multipleImgMode),this.imgSelectionService.initImgSelectedList(null),this.selectImgEvent=this.imgSelectionService.getImgSelectionChange().subscribe(e=>{e&&e.length&&this.checkCloseImgManager()&&this.onClose()}),this.checkUserDisplayPreference(),this.listDisplayedEvent=this.imgEventService.getlistDisplayedChange().subscribe(e=>this.listDisplayed=e),this.domService.setDocumentEventListener()}checkUserDisplayPreference(){("window"===this.stateDisplayed||"full"===this.stateDisplayed)&&(this.listDisplayed=this.userSettingsService.getUserDisplayPreference())}setCurrentTab(e){this.hideTab="img-edition"===e}displaySmall(){"window"!==this.stateDisplayed&&setTimeout(()=>{this.stateDisplayed="small",this.addBodyBottomPaddingForModule()},10)}openSmall(){this.stateDisplayed="small",this.setBodyMainScroll(),this.listDisplayed=!1}openFull(){this.stateDisplayed="full",this.checkUserDisplayPreference(),this.hideBodyMainScroll()}onClose(){this.stateDisplayed="closed",this.hideTab=!1,this.setBodyMainScroll(),this.removeBodyBottomPaddingForModule(),setTimeout(()=>{this.imgManagerClosed.emit()},250)}onImgManagerClosed(){this.onClose()}checkCloseImgManager(){return!this.multipleImgMode&&"window"!==this.stateDisplayed}hideBodyMainScroll(){const e=document.getElementsByTagName("html")[0];this.overflowHTML||(this.overflowHTML=e.style.overflowY),e.style.overflowY="hidden"}setBodyMainScroll(){document.getElementsByTagName("html")[0].style.overflowY=this.overflowHTML?this.overflowHTML:"scroll"}addBodyBottomPaddingForModule(){const e=document.getElementsByTagName("body")[0];this.bodyPadding=this.bodyPadding?parseInt(e.style.paddingBottom):0,e.style.paddingBottom=this.bodyPadding+300+"px"}removeBodyBottomPaddingForModule(){typeof this.bodyPadding<"u"&&(document.getElementsByTagName("body")[0].style.paddingBottom=this.bodyPadding+"px",this.bodyPadding=0)}changeDisplayTab(){this.stateDisplayed="full"}ngOnDestroy(){this.selectImgEvent.unsubscribe(),this.canvaService.expectedImgSizesChange(null),this.listDisplayedEvent.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(v(Xi),v(eo),v(TT),v(Od),v(to),v(xT))},t.\u0275cmp=be({type:t,selectors:[["wz-img-manager"]],hostBindings:function(e,i){1&e&&E("keydown.escape",function(o){return i.onKeydownHandler(o)},0,Or)},inputs:{stateDisplayed:"stateDisplayed",showSelection:"showSelection",externalConfig:"externalConfig",forceToOpenCanva:"forceToOpenCanva",multipleImgMode:"multipleImgMode",showImgManagerModule:"showImgManagerModule"},outputs:{imgManagerClosed:"imgManagerClosed"},decls:3,vars:2,consts:[[1,"wz-img-manager"],["class","wz-img-manager__selectionHandler",4,"ngIf"],["class","wz-img-manager__module",3,"ngClass",4,"ngIf"],[1,"wz-img-manager__selectionHandler"],[1,"wz-img-manager__module",3,"ngClass"],["class","wz-img-manager__module__header",4,"ngIf"],[1,"wz-img-manager__module__content","wz-block",3,"ngClass"],[3,"stateDisplayed","multipleImgMode","listDisplayed","imgManagerClosed","switchDisplayWindow","currentTab"],[1,"wz-img-manager__module__header"],["type","button",3,"click",4,"ngIf"],["type","button",3,"click"],[1,"fal","fa-compress-alt"],[1,"fal","fa-expand-alt"],[1,"fal","fa-times"]],template:function(e,i){1&e&&(g(0,"div",0),M(1,_6,2,0,"div",1),M(2,E6,4,13,"div",2),y()),2&e&&(p(1),_("ngIf",i.showSelection),p(1),_("ngIf",i._showImgManagerModule))},dependencies:[Ze,$e,s1,a1],encapsulation:2}),t})(),x6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=ue({imports:[St,OH,sl,CT,kW,B$,W4,cM,SW,I0,E4]}),t})();class A6{constructor(){this.image_manager_route="",this.pexels_route="",this.canva_url="",this.assets_route="assets/img-manager/"}}class R6{constructor(){this.url_raw_image="",this.url_100_image="",this.url_200_image="",this.url_400_image="",this.url_800_image=""}}class P6{constructor(n,e="/assets/i18n/",i=".json"){this.http=n,this.prefix=e,this.suffix=i}getTranslation(n){return this.http.get(`${this.prefix}${n}${this.suffix}`)}}const k6={isWizishopcom:!1,production:!1,wizi_admin_api:"https://admin.wizilocal.com/",wizi_api:"https://api.wizilocal.com/v3",CDN_URL:"http://debugshop.wizilocal.com/_i/",assets_route:"assets/img-manager/",translations_route:"./assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:131,token:"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1c2VyX2lkIjo2LCJ1c2VyX2xvY2FsZSI6ImZyX0ZSIiwiaXNVc2VyQ29ubmVjdGVkRnJvbVZwbiI6dHJ1ZSwiZXhwIjoxNjY3NTY3NDYwLCJpYXQiOjE2NjQ5NzU0NjB9.lapOlCngJBPszMTtwgjhYHu9et-Tcg-xCUBcu_h_lNfaAzYrG2EdSGAwJiF7_jJSuueO0pXpfBdNGVopVlEb9aR9gXai3IlKeM4h3VdhZIunNJ3niuZjXcMlQgeTkreYYBrulbSQZSToz2cDeGbCZpN_HVP4E2kLpDabtmcfrGE380zjF6wLRIAbWvj2z7UP509AW1A_JM-CrM99CVuZB0EoowPRk5nCKZoY9x4MYMGdW1rSgRvwuWjBn-y8J7wJfRHezx-7FkVIpulq4mmxOi6KAgLZTOFFKAxMCnTEeyW7kJOEmu5Lm3R9bKmjzQra1ikIYLT2-WCSFPbiEmaIzQ"},product_sheet_endpoint:"/products/ajax",isPhotosTab:!0},O6={isWizishopcom:!0,production:!1,wizi_admin_api:"https://admin.wizilocal.com/",wizi_api:"https://api.wizilocal.com/v3",CDN_URL:"https://media.wizilocal.com/_i/",assets_route:"https://js.wizilocal.com/a/libs/img-manager-webelement/assets/img-manager/",translations_route:"https://js.wizilocal.com/a/libs/img-manager-webelement/assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:null,token:null},product_sheet_endpoint:"/products/ajax"},N6={isWizishopcom:!0,production:!0,wizi_admin_api:"https://admin.wizishop.com/",wizi_api:"https://api.wizishop.com/v3",CDN_URL:"https://media.cdnws.com/_i/",assets_route:"https://js.wizishop.com/a/libs/img-manager-webelement/assets/img-manager/",translations_route:"https://js.wizishop.com/a/libs/img-manager-webelement/assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:null,token:null},product_sheet_endpoint:"/products/ajax"},F6={isWizishopcom:!0,production:!1,wizi_admin_api:"https://admin.dropilocal.com/",wizi_api:"https://api.dropilocal.com/v3",CDN_URL:"https://media.dropilocal.com/_i/",assets_route:"https://js.dropilocal.fr/a/libs/img-manager-webelement/assets/img-manager/",translations_route:"https://js.dropilocal.com/a/libs/img-manager-webelement/assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:null,token:null},product_sheet_endpoint:"/products/ajax"},L6={isWizishopcom:!0,production:!0,wizi_admin_api:"https://admin.dropizi.fr/",wizi_api:"https://api.wizishop.com/v3",CDN_URL:"https://media.cdnws.com/_i/",assets_route:"https://js.dropizi.fr/a/libs/img-manager-webelement/assets/img-manager/",translations_route:"https://js.dropizi.fr/a/libs/img-manager-webelement/assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:null,token:null},product_sheet_endpoint:"/products/ajax"},_t=Object.assign({},function V6(){const t=!!window.location.hostname.match(/local/),n=!!window.location.hostname.match(/wizi/);return window.location.port?k6:t?n?O6:F6:n?N6:L6}());let c1=(()=>{class t{constructor(){}sendImgSelectedToPage(e){const i={...e,cdn_img_src:""};i&&(i.cdn_img_src=`${_t.CDN_URL}${e.id_shop}/`);const o=new CustomEvent("imgSelected",{detail:{sendedFile:i,from:this.emitter}});document.getElementById("imgManagerModule")?.dispatchEvent(o)}pageAskForImg(){return xn(document.getElementById("imgManagerModule"),"openImgManager")}setEmitter(e){this.emitter=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),B6=(()=>{class t{constructor(e,i,r,o){this.http=e,this.imgSelectionService=i,this.eventService=r,this.canvaService=o,this.image_manager_api=_t.wizi_api+"/image-manager/shops/",this.isPhotosTab=!1,this.isPreviousTabPhotos=!1,this.isVariantsTab=!1,this.loadProductImgSelection=!1,this.expectedMediaDto={id:"",image_url:"",image_width:"900",image_height:"900"},this.subscriptions=[]}setApiConfig(e,i){this.shopToken=i,this.shopId=e;const r=window.location.pathname.match(/\/(\w+)\/products\/(\d+)\/edit/);this.productSheetApiRoute=_t.wizi_admin_api+(r&&r[1]?r[1]:"fr")+_t.product_sheet_endpoint,this.productId=r&&r[2]?r[2]:"0",this.isProductCreation=/\/products\/create/.test(window.location.pathname)}handleTabs(){return new xe(e=>{const i=this.switchTabs().subscribe(r=>{if(!r||!r.detail||!r.detail.currentTab)return;const o=r.detail.currentTab;this.isPreviousTabPhotos=this.isPhotosTab,this.isPhotosTab="photos"===o,this.isVariantsTab="variation"===o,this.isPhotosTab?(this.loadProductImgSelection=!0,this.currentProductImgSelection&&this.currentProductImgSelection.length?(this.applyCurrentImgSelection(),this.loadProductImgSelection=!1):this.initProductImgSelection()):this.isPreviousTabPhotos&&this.saveCurrentImgSelection(),e.next(this.isPhotosTab)});this.subscriptions.push(i)})}getShopImg(e){return this.http.get(`${this.image_manager_api}${this.shopId}/images/${e}`,this.getOptionsHeadersWithBearer())}initProductImgSelection(){this.imgSelectionService.emitImgListLoading(!0);const e=this.retrieveImgSelection().subscribe(i=>{if(!(i&&i.photos&&i.photos.infos&&i.photos.infos.files&&i.photos.infos.files.length))return this.loadProductImgSelection=!1,void this.imgSelectionService.emitImgListLoading(!1);const o=[];i.photos.infos.files.forEach(a=>o.push(this.getShopImg(a.toString()).pipe(Vt(1))));const s=Mu(o).subscribe(a=>{this.saveCurrentImgSelection(a),this.applyCurrentImgSelection(),this.loadProductImgSelection=!1},a=>{this.loadProductImgSelection=!1,this.imgSelectionService.emitImgListLoading(!1)});this.subscriptions.push(s)});this.subscriptions.push(e),this.canvaService.expectedImgSizesChange(this.expectedMediaDto)}retrieveInfoSelection(){const e=new FormData;return e.append("rub","main"),e.append("action","getInfos"),e.append("prodId",this.productId),e.append("_token",""),e.append("_shid",this.shopId.toString()),this.http.post(this.productSheetApiRoute,e,this.getOptionsHeaders())}retrieveImgSelection(){const e=new FormData;return e.append("rub","main"),e.append("action","getAllInfos"),e.append("prodId",this.productId),e.append("_token",""),e.append("_shid",this.shopId.toString()),this.http.post(this.productSheetApiRoute,e,this.getOptionsHeaders())}updateImgSelectionOnChange(){const e=this.imgSelectionService.getImgSelectionChange().subscribe(i=>{if(i)if(this.isPhotosTab&&!this.loadProductImgSelection){const r=[];i.forEach(o=>{r.push(parseInt(o.id_file))}),this.updateProductImgSelection(r)}else!this.isPhotosTab&&i.length&&this.eventService.sendImgSelectedToPage(i[0])});this.subscriptions.push(e)}updateProductImgSelection(e){if((!this.productId||"0"===this.productId)&&Wizi._produit.global.PROD_ID&&(this.productId=Wizi._produit.global.PROD_ID.toString()),Wizi._produit._dataTmp.photos.infos={},Wizi._produit._dataTmp.photos.infos.files=e,this.emitImgSelectionChange(e),this.productId&&"0"!==this.productId){const r=this.submitProductImg(e).subscribe();return void this.subscriptions.push(r)}const i=this.createProduct().subscribe(r=>{if(!r)throw"No product id created. Can not link image(s) to the new product.";Wizi._produit.global.PROD_ID=r,this.productId=r.toString(),this.submitProductImg(e).subscribe()});this.subscriptions.push(i)}submitProductImg(e){const i={files:e,couls:[]},r=new FormData;return r.append("rub","photos"),r.append("action","save"),r.append("newProd",this.isProductCreation?"1":"0"),r.append("prodId",this.productId),r.append("_token",this.shopToken),r.append("_shid",this.shopId.toString()),r.append("data",JSON.stringify(i)),this.http.post(this.productSheetApiRoute,r,this.getOptionsHeaders())}createProduct(){const e=new FormData;return e.append("rub","main"),e.append("action","createProd"),e.append("_token",""),e.append("_shid",this.shopId.toString()),this.http.post(this.productSheetApiRoute,e,this.getOptionsHeaders())}switchTabs(){return xn(document.getElementById("imgManagerModule"),"switchTab")}emitImgSelectionChange(e){const r=new CustomEvent("onImgSelectionChange",{detail:{idsImgList:e}});document.getElementById("imgManagerModule")?.dispatchEvent(r)}saveCurrentImgSelection(e){this.currentProductImgSelection=e||JSON.parse(JSON.stringify(this.imgSelectionService.getImgSelection()))}applyCurrentImgSelection(){this.imgSelectionService.setImgSelection(this.currentProductImgSelection),this.imgSelectionService.emitImgListLoading(!1)}getOptionsHeaders(){return{headers:new Mn({"Access-Control-Allow-Origin":"*"})}}getOptionsHeadersWithBearer(){return{headers:new Mn({Authorization:"Bearer "+this.shopToken})}}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}}return t.\u0275fac=function(e){return new(e||t)(R(Yi),R(Xi),R(c1),R(Od))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),H6=(()=>{class t{constructor(){this.subscriptions=new Map,window.addEventListener("storage",e=>{this.subscriptions.has(e.key||"")&&this.subscriptions.get(e.key||"")?.next(this.unserialize(e.newValue))})}unserialize(e){let i=null;if(e)try{i=JSON.parse(e).data}catch{}return i}serialize(e){return JSON.stringify({data:e})}subscribe(e){return this.subscriptions.has(e)||this.subscriptions.set(e,new K),this.subscriptions.get(e)}get(e){const i=localStorage.getItem(e);return Promise.resolve(this.unserialize(i))}set(e,i){return localStorage.setItem(e,this.serialize(i)),Promise.resolve(!0)}remove(e){return localStorage.removeItem(e),Promise.resolve(!0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),z6=(()=>{class t{constructor(e){this.storage=e,this.credentials=null,this.credentials$=this.storage.subscribe(_t.wiziApiCredentialsKey)}get(){return this.credentials?Promise.resolve(this.credentials):this.storage.get(_t.wiziApiCredentialsKey).then(e=>(this.credentials=e,this.credentials))}set(e){return this.storage.set(_t.wiziApiCredentialsKey,e).then(i=>(i&&(this.credentials=e),i))}remove(){return this.storage.remove(_t.wiziApiCredentialsKey).then(e=>(e&&(this.credentials=null),e))}}return t.\u0275fac=function(e){return new(e||t)(R(H6))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function U6(t,n){1&t&&(Ue(0),g(1,"h3",3),O(2),L(3,"translate"),y(),je()),2&t&&(p(2),G(H(3,1,"ImgManager.webElement.photosTitle")))}function j6(t,n){if(1&t){const e=q();g(0,"p",8)(1,"a",9),E("click",function(){return T(e),x(w(2).open())}),O(2),L(3,"translate"),y()()}2&t&&(p(2),G(H(3,1,"ImgManager.webElement.OpenBtn")))}function $6(t,n){if(1&t){const e=q();Ue(0),M(1,j6,4,3,"p",4),g(2,"div",5)(3,"wz-img-manager",6,7),E("imgManagerClosed",function(){return T(e),x(w().onImgManagerClosed())}),y()(),je()}if(2&t){const e=w();p(1),_("ngIf",e.imgManagerDisplayConfig.displayBtn&&e.isPhotosTab),p(2),_("stateDisplayed",e.imgManagerDisplayConfig.stateDisplayed)("multipleImgMode",e.imgManagerDisplayConfig.multipleImgMode)("showImgManagerModule",e.imgManagerDisplayConfig.showImgManagerModule&&e.openImgManager)("showSelection",e.imgManagerDisplayConfig.showSelection)("externalConfig",e.imgExternalConfig)}}let W6=(()=>{class t{constructor(e,i,r,o,s,a,l,c){this.translateService=e,this.imgSelectionService=i,this.canvaService=r,this.ficheProductService=o,this.authCredentialsService=s,this.http=a,this.eventService=l,this.imgManagerService=c,this.openImgManager=!1,this.loading=!0,this.isPhotosTab=!!_t.isPhotosTab,this.subscriptions=[]}ngOnInit(){this.loading=!0,this.pageficheProductConfig=this.imgManagerService.getImgManagerDisplayConfig("fiche-product"),this.pageEventConfig=this.imgManagerService.getImgManagerDisplayConfig("wizi-block"),this.setCurrentLanguage(),this.setDisplayedPageConfig();const e=this.getCredentials().subscribe(i=>{this.loading=!1,this.initVariables(i),this.imgManagerDisplayConfig.pageficheProduct?this.setFicheProductPage():this.setPageWithEvents()});this.subscriptions.push(e)}initVariables(e){if(!e){if(_t.isWizishopcom)return;return this.setAppVars(null,_t.local.shopId,null,_t.local.token),this.setImgManagerExtraConfig(),void(this.imgManagerDisplayConfig=this.pageficheProductConfig)}this.setAppVars(e.user_id,e.shop_id,e.account_id,e.token),this.setImgManagerExtraConfig()}setFicheProductPage(){this.ficheProductService.setApiConfig(this.id_shop,this.token_shop),this.handleFicheProductTab(),this.closeImgManagerOnSwitchingTab(),this.subscribePageAskForImg(),this.ficheProductService.updateImgSelectionOnChange()}setPageWithEvents(){this.subscribePageAskForImg();const e=this.imgSelectionService.getImgSelectionChange().subscribe(i=>{i&&i.length&&this.eventService.sendImgSelectedToPage(i[0])});this.subscriptions.push(e)}subscribePageAskForImg(){const e=this.eventService.pageAskForImg().subscribe(i=>{this.eventService.setEmitter(i&&i.detail?i.detail.from:null),this.imgSelectionService.setImgSelection([]),this.open()});this.subscriptions.push(e)}open(){this.openImgManager=!0}onImgManagerClosed(){this.openImgManager=!1}setCurrentLanguage(){const e=window.location.pathname.match(/^\/(\w+)\//);this.translateService.use(e&&e[1]?e[1]:"fr")}setDisplayedPageConfig(){const e=/\/products\/(\d+\/edit|create)/.test(window.location.pathname);this.imgManagerDisplayConfig=e?this.pageficheProductConfig:this.pageEventConfig}handleFicheProductTab(){const e=this.ficheProductService.handleTabs().subscribe(i=>{this.imgManagerDisplayConfig=i?this.pageficheProductConfig:this.pageEventConfig,this.isPhotosTab=i});this.subscriptions.push(e)}closeImgManagerOnSwitchingTab(){const e=this.ficheProductService.switchTabs().subscribe(i=>{this.openImgManager=!1});this.subscriptions.push(e)}getCredentials(){return bt(this.authCredentialsService.get())}setAppVars(e,i,r,o){this.userId=e,this.id_shop=i,this.accountId=r,this.token_shop=o}setImgManagerExtraConfig(){const e=new A6;e.shop_token=this.token_shop,e.image_manager_route=_t.wizi_api+"/image-manager/shops/"+this.id_shop,e.canva_token="wdByHayF5v57nj2ZSLvu055O",e.canva_url="https://sdk.canva.com/designbutton/v2/api.js",e.pexels_token="563492ad6f91700001000001e39215727d8b42c1b08498a9ce1e6b94",e.pexels_route="https://api.pexels.com/v1",e.shop_category="other",e.assets_route=_t.assets_route;const i=new R6;i.url_raw_image=`${_t.CDN_URL}${this.id_shop}/RAW-`,i.url_100_image=`${_t.CDN_URL}${this.id_shop}/m100-`,i.url_200_image=`${_t.CDN_URL}${this.id_shop}/cs200-`,i.url_400_image=`${_t.CDN_URL}${this.id_shop}/cs400-`,i.url_800_image=`${_t.CDN_URL}${this.id_shop}/cs800-`,this.imgExternalConfig=new I6,this.imgExternalConfig.api=e,this.imgExternalConfig.imgCDNConfig=i;const r=this.getShopCategory().subscribe(o=>{o&&o.category&&(this.imgExternalConfig.api.shop_category=o.category)});this.subscriptions.push(r)}getShopCategory(){return this.http.get(`${_t.wizi_api}/shops/${this.id_shop}`,this.getOptionsHeadersWithBearer())}getOptionsHeadersWithBearer(){return{headers:new Mn({Authorization:"Bearer "+this.token_shop})}}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}}return t.\u0275fac=function(e){return new(e||t)(v(gn),v(Xi),v(Od),v(B6),v(z6),v(Yi),v(c1),v(pi))},t.\u0275cmp=be({type:t,selectors:[["img-manager"]],decls:5,vars:5,consts:[[1,"info-bulle"],[1,"info-bulle-content",3,"innerHTML"],[4,"ngIf"],[1,"wizicss-sous-titre"],["class","img-manager-open",4,"ngIf"],[1,"imgManagerBox"],[3,"stateDisplayed","multipleImgMode","showImgManagerModule","showSelection","externalConfig","imgManagerClosed"],["wzImgManager",""],[1,"img-manager-open"],[3,"click"]],template:function(e,i){1&e&&(g(0,"div",0),k(1,"p",1),L(2,"translate"),M(3,U6,4,3,"ng-container",2),M(4,$6,5,6,"ng-container",2),y()),2&e&&(p(1),_("innerHTML",H(2,3,"ImgManager.webElement.infoBulle"),Un),p(2),_("ngIf",i.imgManagerDisplayConfig.pageficheProduct&&i.isPhotosTab),p(1),_("ngIf",!i.loading&&i.id_shop&&i.imgManagerDisplayConfig))},dependencies:[$e,l1,Jt]}),t})();function G6(t){return new P6(t,_t.translations_route,".json?version=14.0.1")}let q6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t,bootstrap:[W6]}),t.\u0275inj=ue({providers:[{provide:ID,useValue:"/"}],imports:[dS,fH,x6,I0.forRoot({defaultLanguage:"fr",loader:{provide:tl,useFactory:G6,deps:[Yi]}})]}),t})();_t.production&&function PF(){if(dD)throw new Error("Cannot enable prod mode after platform setup.");uD=!1}(),nV().bootstrapModule(q6).catch(t=>console.error(t))},345:Gt=>{var ne="function"==typeof Float32Array;function mi(Pe,me){return 1-3*me+3*Pe}function er(Pe,me){return 3*me-6*Pe}function it(Pe){return 3*Pe}function ut(Pe,me,et){return((mi(me,et)*Pe+er(me,et))*Pe+it(me))*Pe}function tr(Pe,me,et){return 3*mi(me,et)*Pe*Pe+2*er(me,et)*Pe+it(me)}function Tr(Pe){return Pe}Gt.exports=function(me,et,Ge,on){if(!(0<=me&&me<=1&&0<=Ge&&Ge<=1))throw new Error("bezier x values must be in [0, 1] range");if(me===et&&Ge===on)return Tr;for(var Mt=ne?new Float32Array(11):new Array(11),vt=0;vt<11;++vt)Mt[vt]=ut(.1*vt,me,Ge);return function(Ni){return 0===Ni?0:1===Ni?1:ut(function Oi(nr){for(var Ni=0,kn=1;10!==kn&&Mt[kn]<=nr;++kn)Ni+=.1;--kn;var ro=Ni+(nr-Mt[kn])/(Mt[kn+1]-Mt[kn])*.1,Fl=tr(ro,me,Ge);return Fl>=.001?function kt(Pe,me,et,Ge){for(var on=0;on<4;++on){var Mt=tr(me,et,Ge);if(0===Mt)return me;me-=(ut(me,et,Ge)-Pe)/Mt}return me}(nr,ro,me,Ge):0===Fl?ro:function qt(Pe,me,et,Ge,on){var Mt,vt,Oi=0;do{(Mt=ut(vt=me+(et-me)/2,Ge,on)-Pe)>0?et=vt:me=vt}while(Math.abs(Mt)>1e-7&&++Oi<10);return vt}(nr,Ni,Ni+.1,me,Ge)}(Ni),et,on)}}},444:(Gt,Pn,ct)=>{var oe=ct(542),Re=ct(926),We=Re;We.v1=oe,We.v4=Re,Gt.exports=We},805:Gt=>{for(var Pn=[],ct=0;ct<256;++ct)Pn[ct]=(ct+256).toString(16).substr(1);Gt.exports=function oe(Re,We){var he=We||0;return[Pn[Re[he++]],Pn[Re[he++]],Pn[Re[he++]],Pn[Re[he++]],"-",Pn[Re[he++]],Pn[Re[he++]],"-",Pn[Re[he++]],Pn[Re[he++]],"-",Pn[Re[he++]],Pn[Re[he++]],"-",Pn[Re[he++]],Pn[Re[he++]],Pn[Re[he++]],Pn[Re[he++]],Pn[Re[he++]],Pn[Re[he++]]].join("")}},142:Gt=>{var Pn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(Pn){var ct=new Uint8Array(16);Gt.exports=function(){return Pn(ct),ct}}else{var oe=new Array(16);Gt.exports=function(){for(var he,We=0;We<16;We++)0==(3&We)&&(he=4294967296*Math.random()),oe[We]=he>>>((3&We)<<3)&255;return oe}}},542:(Gt,Pn,ct)=>{var We,he,oe=ct(142),Re=ct(805),ne=0,mi=0;Gt.exports=function er(it,ut,tr){var qt=ut&&tr||0,kt=ut||[],Tr=(it=it||{}).node||We,Pe=void 0!==it.clockseq?it.clockseq:he;if(null==Tr||null==Pe){var me=oe();null==Tr&&(Tr=We=[1|me[0],me[1],me[2],me[3],me[4],me[5]]),null==Pe&&(Pe=he=16383&(me[6]<<8|me[7]))}var et=void 0!==it.msecs?it.msecs:(new Date).getTime(),Ge=void 0!==it.nsecs?it.nsecs:mi+1,on=et-ne+(Ge-mi)/1e4;if(on<0&&void 0===it.clockseq&&(Pe=Pe+1&16383),(on<0||et>ne)&&void 0===it.nsecs&&(Ge=0),Ge>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ne=et,mi=Ge,he=Pe;var Mt=(1e4*(268435455&(et+=122192928e5))+Ge)%4294967296;kt[qt++]=Mt>>>24&255,kt[qt++]=Mt>>>16&255,kt[qt++]=Mt>>>8&255,kt[qt++]=255&Mt;var vt=et/4294967296*1e4&268435455;kt[qt++]=vt>>>8&255,kt[qt++]=255&vt,kt[qt++]=vt>>>24&15|16,kt[qt++]=vt>>>16&255,kt[qt++]=Pe>>>8|128,kt[qt++]=255&Pe;for(var Oi=0;Oi<6;++Oi)kt[qt+Oi]=Tr[Oi];return ut||Re(kt)}},926:(Gt,Pn,ct)=>{var oe=ct(142),Re=ct(805);Gt.exports=function We(he,ne,mi){var er=ne&&mi||0;"string"==typeof he&&(ne="binary"===he?new Array(16):null,he=null);var it=(he=he||{}).random||(he.rng||oe)();if(it[6]=15&it[6]|64,it[8]=63&it[8]|128,ne)for(var ut=0;ut<16;++ut)ne[er+ut]=it[ut];return ne||Re(it)}}},Gt=>{Gt(Gt.s=767)}]);
|