diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt index 603c712..9f18785 100644 --- a/3rdpartylicenses.txt +++ b/3rdpartylicenses.txt @@ -235,7 +235,7 @@ zone.js MIT The MIT License -Copyright (c) 2010-2020 Google LLC. https://angular.io/license +Copyright (c) 2010-2022 Google LLC. https://angular.io/license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/main.js b/main.js index 9031091..03c5f2e 100644 --- a/main.js +++ b/main.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[179],{728:()=>{function ce(e){return"function"==typeof e}function vo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Co=vo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function pr(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class vt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ce(r))try{r()}catch(i){t=i instanceof Co?i.errors:[i]}const{_teardowns:o}=this;if(o){this._teardowns=null;for(const i of o)try{rc(i)}catch(s){t=null!=t?t:[],s instanceof Co?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Co(t)}}add(t){var n;if(t&&t!==this)if(this.closed)rc(t);else{if(t instanceof vt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&pr(n,t)}remove(t){const{_teardowns:n}=this;n&&pr(n,t),t instanceof vt&&t._removeParent(this)}}vt.EMPTY=(()=>{const e=new vt;return e.closed=!0,e})();const tc=vt.EMPTY;function nc(e){return e instanceof vt||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function rc(e){ce(e)?e():e.unsubscribe()}const Jt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},_o={setTimeout(...e){const{delegate:t}=_o;return((null==t?void 0:t.setTimeout)||setTimeout)(...e)},clearTimeout(e){const{delegate:t}=_o;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function oc(e){_o.setTimeout(()=>{const{onUnhandledError:t}=Jt;if(!t)throw e;t(e)})}function Do(){}const $g=$i("C",void 0,void 0);function $i(e,t,n){return{kind:e,value:t,error:n}}let en=null;function wo(e){if(Jt.useDeprecatedSynchronousErrorHandling){const t=!en;if(t&&(en={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=en;if(en=null,n)throw r}}else e()}class Zi extends vt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,nc(t)&&t.add(this)):this.destination=Jg}static create(t,n,r){return new bo(t,n,r)}next(t){this.isStopped?Xi(function Qg(e){return $i("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Xi(function Zg(e){return $i("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Xi($g,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class bo extends Zi{constructor(t,n,r){let o;if(super(),ce(t))o=t;else if(t){let i;({next:o,error:n,complete:r}=t),this&&Jt.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe()):i=t,o=null==o?void 0:o.bind(i),n=null==n?void 0:n.bind(i),r=null==r?void 0:r.bind(i)}this.destination={next:o?Qi(o):Do,error:Qi(null!=n?n:ic),complete:r?Qi(r):Do}}}function Qi(e,t){return(...n)=>{try{e(...n)}catch(r){Jt.useDeprecatedSynchronousErrorHandling?function Xg(e){Jt.useDeprecatedSynchronousErrorHandling&&en&&(en.errorThrown=!0,en.error=e)}(r):oc(r)}}}function ic(e){throw e}function Xi(e,t){const{onStoppedNotification:n}=Jt;n&&_o.setTimeout(()=>n(e,t))}const Jg={closed:!0,next:Do,error:ic,complete:Do},Ji="function"==typeof Symbol&&Symbol.observable||"@@observable";function sc(e){return e}let je=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function tm(e){return e&&e instanceof Zi||function em(e){return e&&ce(e.next)&&ce(e.error)&&ce(e.complete)}(e)&&nc(e)}(n)?n:new bo(n,r,o);return wo(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=lc(r))((o,i)=>{const s=new bo({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Ji](){return this}pipe(...n){return function ac(e){return 0===e.length?sc:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=lc(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function lc(e){var t;return null!==(t=null!=e?e:Jt.Promise)&&void 0!==t?t:Promise}const nm=vo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let es=(()=>{class e extends je{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new cc(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new nm}next(n){wo(()=>{if(this._throwIfClosed(),!this.isStopped){const r=this.observers.slice();for(const o of r)o.next(n)}})}error(n){wo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){wo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?tc:(i.push(n),new vt(()=>pr(i,n)))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new je;return n.source=this,n}}return e.create=(t,n)=>new cc(t,n),e})();class cc extends es{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:tc}}function yn(e){return t=>{if(function rm(e){return ce(null==e?void 0:e.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}class hr extends Zi{constructor(t,n,r,o,i){super(t),this.onFinalize=i,this._next=n?function(s){try{n(s)}catch(a){t.error(a)}}:super._next,this._error=o?function(s){try{o(s)}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(s){t.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}function tn(e){return this instanceof tn?(this.v=e,this):new tn(e)}function am(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(h){r[h]&&(o[h]=function(g){return new Promise(function(y,C){i.push([h,g,y,C])>1||a(h,g)})})}function a(h,g){try{!function l(h){h.value instanceof tn?Promise.resolve(h.value.v).then(c,u):p(i[0][2],h)}(r[h](g))}catch(y){p(i[0][3],y)}}function c(h){a("next",h)}function u(h){a("throw",h)}function p(h,g){h(g),i.shift(),i.length&&a(i[0][0],i[0][1])}}function lm(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function fc(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}const pc=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function hc(e){return ce(null==e?void 0:e.then)}function gc(e){return ce(e[Ji])}function mc(e){return Symbol.asyncIterator&&ce(null==e?void 0:e[Symbol.asyncIterator])}function yc(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const vc=function um(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Cc(e){return ce(null==e?void 0:e[vc])}function _c(e){return am(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield tn(n.read());if(o)return yield tn(void 0);yield yield tn(r)}}finally{n.releaseLock()}})}function Dc(e){return ce(null==e?void 0:e.getReader)}function vn(e){if(e instanceof je)return e;if(null!=e){if(gc(e))return function dm(e){return new je(t=>{const n=e[Ji]();if(ce(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(pc(e))return function fm(e){return new je(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,oc)})}(e);if(mc(e))return wc(e);if(Cc(e))return function hm(e){return new je(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Dc(e))return function gm(e){return wc(_c(e))}(e)}throw yc(e)}function wc(e){return new je(t=>{(function mm(e,t){var n,r,o,i;return function im(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(p){s(p)}}function l(u){try{c(r.throw(u))}catch(p){s(p)}}function c(u){u.done?i(u.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=lm(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Ht(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function bc(e,t,n=1/0){return ce(t)?bc((r,o)=>function om(e,t){return yn((n,r)=>{let o=0;n.subscribe(new hr(r,i=>{r.next(e.call(t,i,o++))}))})}((i,s)=>t(r,i,o,s))(vn(e(r,o))),n):("number"==typeof t&&(n=t),yn((r,o)=>function ym(e,t,n,r,o,i,s,a){const l=[];let c=0,u=0,p=!1;const h=()=>{p&&!l.length&&!c&&t.complete()},g=C=>c{i&&t.next(C),c++;let D=!1;vn(n(C,u++)).subscribe(new hr(t,b=>{null==o||o(b),i?g(b):t.next(b)},()=>{D=!0},void 0,()=>{if(D)try{for(c--;l.length&&cy(b)):y(b)}h()}catch(b){t.error(b)}}))};return e.subscribe(new hr(t,g,()=>{p=!0,h()})),()=>{null==a||a()}}(r,o,e,n)))}const ns=new je(e=>e.complete());function rs(e){return e[e.length-1]}function Ec(e,t=0){return yn((n,r)=>{n.subscribe(new hr(r,o=>Ht(r,e,()=>r.next(o),t),()=>Ht(r,e,()=>r.complete(),t),o=>Ht(r,e,()=>r.error(o),t)))})}function Ac(e,t=0){return yn((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ic(e,t){if(!e)throw new Error("Iterable cannot be null");return new je(n=>{Ht(n,t,()=>{const r=e[Symbol.asyncIterator]();Ht(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Mc(e,t){return t?function Tm(e,t){if(null!=e){if(gc(e))return function bm(e,t){return vn(e).pipe(Ac(t),Ec(t))}(e,t);if(pc(e))return function Am(e,t){return new je(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(hc(e))return function Em(e,t){return vn(e).pipe(Ac(t),Ec(t))}(e,t);if(mc(e))return Ic(e,t);if(Cc(e))return function Im(e,t){return new je(n=>{let r;return Ht(n,t,()=>{r=e[vc](),Ht(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ce(null==r?void 0:r.return)&&r.return()})}(e,t);if(Dc(e))return function Mm(e,t){return Ic(_c(e),t)}(e,t)}throw yc(e)}(e,t):vn(e)}function Sm(...e){const t=function Dm(e){return function _m(e){return e&&ce(e.schedule)}(rs(e))?e.pop():void 0}(e),n=function wm(e,t){return"number"==typeof rs(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?vn(r[0]):function vm(e=1/0){return bc(sc,e)}(n)(Mc(r,t)):ns}function os(e,t,...n){return!0===t?(e(),null):!1===t?null:t(...n).pipe(function xm(e){return e<=0?()=>ns:yn((t,n)=>{let r=0;t.subscribe(new hr(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}(1)).subscribe(()=>e())}function J(e){for(let t in e)if(e[t]===J)return t;throw Error("Could not find renamed property on target object.")}function Z(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Z).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ss(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Pm=J({__forward_ref__:J});function as(e){return e.__forward_ref__=as,e.toString=function(){return Z(this())},e}function j(e){return function Tc(e){return"function"==typeof e&&e.hasOwnProperty(Pm)&&e.__forward_ref__===as}(e)?e():e}class $ extends Error{constructor(t,n){super(function ls(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function L(e){return"string"==typeof e?e:null==e?"":String(e)}function Pe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():L(e)}function Eo(e,t){const n=t?` in ${t}`:"";throw new $(-201,`No provider for ${Pe(e)} found${n}`)}function ze(e,t){null==e&&function oe(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function ae(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function nn(e){return{providers:e.providers||[],imports:e.imports||[]}}function cs(e){return Sc(e,Ao)||Sc(e,kc)}function Sc(e,t){return e.hasOwnProperty(t)?e[t]:null}function xc(e){return e&&(e.hasOwnProperty(us)||e.hasOwnProperty(Bm))?e[us]:null}const Ao=J({\u0275prov:J}),us=J({\u0275inj:J}),kc=J({ngInjectableDef:J}),Bm=J({ngInjectorDef:J});var H=(()=>((H=H||{})[H.Default=0]="Default",H[H.Host=1]="Host",H[H.Self=2]="Self",H[H.SkipSelf=4]="SkipSelf",H[H.Optional=8]="Optional",H))();let ds;function Ut(e){const t=ds;return ds=e,t}function Pc(e,t,n){const r=cs(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&H.Optional?null:void 0!==t?t:void Eo(Z(e),"Injector")}function qt(e){return{toString:e}.toString()}var st=(()=>((st=st||{})[st.OnPush=0]="OnPush",st[st.Default=1]="Default",st))(),Ct=(()=>{return(e=Ct||(Ct={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ct;var e})();const Hm="undefined"!=typeof globalThis&&globalThis,Um="undefined"!=typeof window&&window,qm="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,X=Hm||"undefined"!=typeof global&&global||Um||qm,Cn={},ee=[],Io=J({\u0275cmp:J}),fs=J({\u0275dir:J}),ps=J({\u0275pipe:J}),Fc=J({\u0275mod:J}),kt=J({\u0275fac:J}),gr=J({__NG_ELEMENT_ID__:J});let Gm=0;function Mo(e){return qt(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===st.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ee,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,id:"c",styles:e.styles||ee,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,i=e.features,s=e.pipes;return r.id+=Gm++,r.inputs=Lc(e.inputs,n),r.outputs=Lc(e.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Nc):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(Rc):null,r})}function Nc(e){return Ie(e)||function Gt(e){return e[fs]||null}(e)}function Rc(e){return function rn(e){return e[ps]||null}(e)}const Oc={};function _n(e){return qt(()=>{const t={type:e.type,bootstrap:e.bootstrap||ee,declarations:e.declarations||ee,imports:e.imports||ee,exports:e.exports||ee,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Oc[e.id]=e.type),t})}function Lc(e,t){if(null==e)return Cn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}const Fe=Mo;function Ie(e){return e[Io]||null}function Qe(e,t){const n=e[Fc]||null;if(!n&&!0===t)throw new Error(`Type ${Z(e)} does not have '\u0275mod' property.`);return n}const U=11;function _t(e){return Array.isArray(e)&&"object"==typeof e[1]}function lt(e){return Array.isArray(e)&&!0===e[1]}function ms(e){return 0!=(8&e.flags)}function ko(e){return 2==(2&e.flags)}function Po(e){return 1==(1&e.flags)}function ct(e){return null!==e.template}function Zm(e){return 0!=(512&e[2])}function ln(e,t){return e.hasOwnProperty(kt)?e[kt]:null}class Jm{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Cr(){return Bc}function Bc(e){return e.type.prototype.ngOnChanges&&(e.setInput=ty),ey}function ey(){const e=Hc(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Cn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ty(e,t,n,r){const o=Hc(e)||function ny(e,t){return e[jc]=t}(e,{previous:Cn,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],l=s[a];i[a]=new Jm(l&&l.currentValue,t,s===Cn),e[r]=t}Cr.ngInherit=!0;const jc="__ngSimpleChanges__";function Hc(e){return e[jc]||null}let Ds;function ue(e){return!!e.listen}const Uc={createRenderer:(e,t)=>function ws(){return void 0!==Ds?Ds:"undefined"!=typeof document?document:void 0}()};function ge(e){for(;Array.isArray(e);)e=e[0];return e}function Fo(e,t){return ge(t[e])}function et(e,t){return ge(t[e.index])}function bs(e,t){return e.data[t]}function Ke(e,t){const n=t[e];return _t(n)?n:n[0]}function qc(e){return 4==(4&e[2])}function Es(e){return 128==(128&e[2])}function zt(e,t){return null==t?null:e[t]}function Gc(e){e[18]=0}function As(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const R={lFrame:Xc(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function zc(){return R.bindingsEnabled}function _(){return R.lFrame.lView}function K(){return R.lFrame.tView}function O(e){return R.lFrame.contextLView=e,e[8]}function Ce(){let e=Wc();for(;null!==e&&64===e.type;)e=e.parent;return e}function Wc(){return R.lFrame.currentTNode}function Dt(e,t){const n=R.lFrame;n.currentTNode=e,n.isParent=t}function Is(){return R.lFrame.isParent}function Ms(){R.lFrame.isParent=!1}function No(){return R.isInCheckNoChangesMode}function Ro(e){R.isInCheckNoChangesMode=e}function Ne(){const e=R.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function In(){return R.lFrame.bindingIndex++}function Ft(e){const t=R.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Cy(e,t){const n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ts(t)}function Ts(e){R.lFrame.currentDirectiveIndex=e}function $c(){return R.lFrame.currentQueryIndex}function xs(e){R.lFrame.currentQueryIndex=e}function Dy(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Zc(e,t,n){if(n&H.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&H.Host||(o=Dy(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;t=o,e=i}const r=R.lFrame=Qc();return r.currentTNode=t,r.lView=e,!0}function Oo(e){const t=Qc(),n=e[1];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Qc(){const e=R.lFrame,t=null===e?null:e.child;return null===t?Xc(e):t}function Xc(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Jc(){const e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const eu=Jc;function Lo(){const e=Jc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Re(){return R.lFrame.selectedIndex}function Wt(e){R.lFrame.selectedIndex=e}function Vo(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class Dr{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ho(e,t,n){const r=ue(e);let o=0;for(;ot){s=i-1;break}}}for(;i>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Ns=!0;function qo(e){const t=Ns;return Ns=e,t}let Ry=0;function br(e,t){const n=Os(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Rs(r.data,e),Rs(t,null),Rs(r.blueprint,null));const o=Go(e,t),i=e.injectorIndex;if(iu(o)){const s=Mn(o),a=Tn(o,t),l=a[1].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function Rs(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Os(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Go(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){const i=o[1],s=i.type;if(r=2===s?i.declTNode:1===s?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function zo(e,t,n){!function Oy(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(gr)&&(r=n[gr]),null==r&&(r=n[gr]=Ry++);const o=255&r;t.data[e+(o>>5)]|=1<=0?255&t:Vy:t}(n);if("function"==typeof i){if(!Zc(t,e,r))return r&H.Host?lu(o,n,r):cu(t,n,r,o);try{const s=i(r);if(null!=s||r&H.Optional)return s;Eo(n)}finally{eu()}}else if("number"==typeof i){let s=null,a=Os(e,t),l=-1,c=r&H.Host?t[16][6]:null;for((-1===a||r&H.SkipSelf)&&(l=-1===a?Go(e,t):t[a+8],-1!==l&&pu(r,!1)?(s=t[1],a=Mn(l),t=Tn(l,t)):a=-1);-1!==a;){const u=t[1];if(fu(i,a,u.data)){const p=By(a,t,n,s,r,c);if(p!==du)return p}l=t[a+8],-1!==l&&pu(r,t[1].data[a+8]===c)&&fu(i,a,t)?(s=u,a=Mn(l),t=Tn(l,t)):a=-1}}}return cu(t,n,r,o)}const du={};function Vy(){return new Sn(Ce(),_())}function By(e,t,n,r,o,i){const s=t[1],a=s.data[e+8],u=Wo(a,s,n,null==r?ko(a)&&Ns:r!=s&&0!=(3&a.type),o&H.Host&&i===a);return null!==u?Er(t,s,u,a):du}function Wo(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,l=e.directiveStart,u=i>>20,h=o?a+u:e.directiveEnd;for(let g=r?a:a+u;g=l&&y.type===n)return g}if(o){const g=s[l];if(g&&ct(g)&&g.type===n)return l}return null}function Er(e,t,n,r){let o=e[n];const i=t.data;if(function xy(e){return e instanceof Dr}(o)){const s=o;s.resolving&&function Fm(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new $(-200,`Circular dependency in DI detected for ${e}${n}`)}(Pe(i[n]));const a=qo(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Ut(s.injectImpl):null;Zc(e,r,H.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Ty(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Bc(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==l&&Ut(l),qo(a),s.resolving=!1,eu()}}return o}function fu(e,t,n){return!!(n[t+(e>>5)]&1<{const r=function Bs(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,c,u){const p=l.hasOwnProperty(kn)?l[kn]:Object.defineProperty(l,kn,{value:[]})[kn];for(;p.length<=u;)p.push(null);return(p[u]=p[u]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class Q{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=ae({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}function tt(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?wt(n,t):t(n))}function gu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ko(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ye(e,t,n){let r=Nn(e,t);return r>=0?e[1|r]=n:(r=~r,function zy(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Hs(e,t){const n=Nn(e,t);if(n>=0)return e[1|n]}function Nn(e,t){return function vu(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<({token:e})),-1),Rn=xr(Fn("Optional"),8),kr=xr(Fn("SkipSelf"),4);function Yt(e){return e instanceof class xu{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?e.changingThisBreaksApplicationSecurity:e}const Hu="__ngContext__";function Te(e,t){e[Hu]=t}function Js(e){const t=function Or(e){return e[Hu]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ta(e){return e.ngOriginalError}function Yv(e,...t){e.error(...t)}class Vn{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function Kv(e){return e&&e.ngErrorLogger||Yv}(t);r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ta(t);for(;n&&ta(n);)n=ta(n);return n||null}}const Wu=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(X))();function na(e){return e.ownerDocument}function Et(e){return e instanceof Function?e():e}var $e=(()=>(($e=$e||{})[$e.Important=1]="Important",$e[$e.DashCase=2]="DashCase",$e))();function oa(e,t){return undefined(e,t)}function Lr(e){const t=e[3];return lt(t)?t[3]:t}function ia(e){return Qu(e[13])}function sa(e){return Qu(e[4])}function Qu(e){for(;null!==e&&!lt(e);)e=e[4];return e}function jn(e,t,n,r,o){if(null!=r){let i,s=!1;lt(r)?i=r:_t(r)&&(s=!0,r=r[0]);const a=ge(r);0===e&&null!==n?null==o?rd(t,n,a):cn(t,n,a,o||null,!0):1===e&&null!==n?cn(t,n,a,o||null,!0):2===e?function ud(e,t,n){const r=ni(e,t);r&&function mC(e,t,n,r){ue(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function CC(e,t,n,r,o){const i=n[7];i!==ge(n)&&jn(t,e,r,i,o);for(let a=10;a0&&(e[n-1][4]=r[4]);const i=Ko(e,10+t);!function lC(e,t){Vr(e,t,t[U],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function ed(e,t){if(!(256&t[2])){const n=t[U];ue(n)&&n.destroyNode&&Vr(e,t,n,3,null,null),function dC(e){let t=e[13];if(!t)return ua(e[1],e);for(;t;){let n=null;if(_t(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)_t(t)&&ua(t[1],t),t=t[3];null===t&&(t=e),_t(t)&&ua(t[1],t),n=t&&t[4]}t=n}}(t)}}function ua(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function gC(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[o=c]():r[o=-c].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;ii?"":o[p+1].toLowerCase();const g=8&r?h:null;if(g&&-1!==pd(g,c,0)||2&r&&c!==h){if(ut(r))return!1;s=!0}}}}else{if(!s&&!ut(r)&&!ut(l))return!1;if(s&&ut(l))continue;s=!1,r=l|1&r}}return ut(r)||s}function ut(e){return 0==(1&e)}function EC(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!ut(s)&&(t+=yd(i,o),o=""),r=s,i=i||!ut(r);n++}return""!==o&&(t+=yd(i,o)),t}const V={};function w(e){vd(K(),_(),Re()+e,No())}function vd(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Bo(t,i,n)}else{const i=e.preOrderHooks;null!==i&&jo(t,i,0,n)}Wt(n)}function ii(e,t){return e<<17|t<<2}function dt(e){return e>>17&32767}function ga(e){return 2|e}function Nt(e){return(131068&e)>>2}function ma(e,t){return-131069&e|t<<2}function ya(e){return 1|e}function Sd(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&vd(e,t,20,No()),n(r,o)}finally{Wt(i)}}function kd(e,t,n){if(ms(t)){const o=t.directiveEnd;for(let i=t.directiveStart;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=l&&a.push(l),a.push(r,o,s)}}function Bd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function jd(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function o_(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&ka(n)}}function ka(e){for(let r=ia(e);null!==r;r=sa(r))for(let o=10;o0&&ka(i)}const n=e[1].components;if(null!==n)for(let r=0;r0&&ka(o)}}function d_(e,t){const n=Ke(t,e),r=n[1];(function f_(e,t){for(let n=t.length;nPromise.resolve(null))();function zd(e){return e[7]||(e[7]=[])}function Wd(e){return e.cleanup||(e.cleanup=[])}function Yd(e,t){const n=e[9],r=n?n.get(Vn,null):null;r&&r.handleError(t)}function $d(e,t,n,r,o){for(let i=0;ithis.processProvider(a,t,n)),wt([t],a=>this.processInjectorType(a,[],i)),this.records.set(Oa,Gn(void 0,this));const s=this.records.get(La);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:Z(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Tr,r=H.Default){this.assertNotDestroyed();const o=Du(this),i=Ut(void 0);try{if(!(r&H.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function T_(e){return"function"==typeof e||"object"==typeof e&&e instanceof Q}(t)&&cs(t);a=l&&this.injectableDefInScope(l)?Gn(Ba(t),Hr):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&H.Self?Qd():this.parent).get(t,n=r&H.Optional&&n===Tr?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[$o]=s[$o]||[]).unshift(Z(t)),o)throw s;return function rv(e,t,n,r){const o=e[$o];throw t[_u]&&o.unshift(t[_u]),e.message=function ov(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=Z(t);if(Array.isArray(t))o=t.map(Z).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Z(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Xy,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[$o]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{Ut(i),Du(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,o)=>t.push(Z(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new $(205,!1)}processInjectorType(t,n,r){if(!(t=j(t)))return!1;let o=xc(t);const i=null==o&&t.ngModule||void 0,s=void 0===i?t:i,a=-1!==r.indexOf(s);if(void 0!==i&&(o=xc(i)),null==o)return!1;if(null!=o.imports&&!a){let u;r.push(s);try{wt(o.imports,p=>{this.processInjectorType(p,n,r)&&(void 0===u&&(u=[]),u.push(p))})}finally{}if(void 0!==u)for(let p=0;pthis.processProvider(y,h,g||ee))}}this.injectorDefTypes.add(s);const l=ln(s)||(()=>new s);this.records.set(s,Gn(l,Hr));const c=o.providers;if(null!=c&&!a){const u=t;wt(c,p=>this.processProvider(p,u,c))}return void 0!==i&&void 0!==t.providers}processProvider(t,n,r){let o=zn(t=j(t))?t:j(t&&t.provide);const i=function w_(e,t,n){return tf(e)?Gn(void 0,e.useValue):Gn(function ef(e,t,n){let r;if(zn(e)){const o=j(e);return ln(o)||Ba(o)}if(tf(e))r=()=>j(e.useValue);else if(function E_(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Gs(e.deps||[]));else if(function b_(e){return!(!e||!e.useExisting)}(e))r=()=>ne(j(e.useExisting));else{const o=j(e&&(e.useClass||e.provide));if(!function I_(e){return!!e.deps}(e))return ln(o)||Ba(o);r=()=>new o(...Gs(e.deps))}return r}(e),Hr)}(t);if(zn(t)||!0!==t.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=Gn(void 0,Hr,!0),s.factory=()=>Gs(s.multi),this.records.set(o,s)),o=t,s.multi.push(t)}this.records.set(o,i)}hydrate(t,n){return n.value===Hr&&(n.value=C_,n.value=n.factory()),"object"==typeof n.value&&n.value&&function M_(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=j(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Ba(e){const t=cs(e),n=null!==t?t.factory:ln(e);if(null!==n)return n;if(e instanceof Q)throw new $(204,!1);if(e instanceof Function)return function D_(e){const t=e.length;if(t>0)throw function Mr(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new $(204,!1)}function Gn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function tf(e){return null!==e&&"object"==typeof e&&ev in e}function zn(e){return"function"==typeof e}let Se=(()=>{class e{static create(n,r){var o;if(Array.isArray(n))return Xd({name:""},r,n,"");{const i=null!==(o=n.name)&&void 0!==o?o:"";return Xd({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=Tr,e.NULL=new Zd,e.\u0275prov=ae({token:e,providedIn:"any",factory:()=>ne(Oa)}),e.__NG_ELEMENT_ID__=-1,e})();function O_(e,t){Vo(Js(e)[1],Ce())}let di=null;function Wn(){if(!di){const e=X.Symbol;if(e&&e.iterator)di=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(ge(B[r.index])):r.index;if(ue(n)){let B=null;if(!a&&l&&(B=function vD(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==B)(B.__ngLastListenerFn__||B).__ngNextListenerFn__=i,B.__ngLastListenerFn__=i,g=!1;else{i=Za(r,t,p,i,!1);const W=n.listen(b,o,i);h.push(i,W),u&&u.push(o,x,v,v+1)}}else i=Za(r,t,p,i,!0),b.addEventListener(o,i,s),h.push(i),u&&u.push(o,x,v,s)}else i=Za(r,t,p,i,!1);const y=r.outputs;let C;if(g&&null!==y&&(C=y[o])){const D=C.length;if(D)for(let b=0;b0;)t=t[15],e--;return t}(e,R.lFrame.contextLView))[8]}(e)}function Xf(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?dt(i):Nt(i),l=!1;for(;0!==a&&(!1===l||s);){const u=e[a+1];ED(e[a],t)&&(l=!0,e[a+1]=r?ya(u):ga(u)),a=r?dt(u):Nt(u)}l&&(e[n+1]=r?ga(i):ya(i))}function ED(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Nn(e,t)>=0}const De={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Jf(e){return e.substring(De.key,De.keyEnd)}function ep(e,t){const n=De.textEnd;return n===t?-1:(t=De.keyEnd=function TD(e,t,n){for(;t32;)t++;return t}(e,De.key=t,n),rr(e,t,n))}function rr(e,t,n){for(;t=0;n=ep(t,n))Ye(e,Jf(t),!0)}function pt(e,t,n,r){const o=_(),i=K(),s=Ft(2);i.firstUpdatePass&&sp(i,e,s,r),t!==V&&xe(o,s,t)&&lp(i,i.data[Re()],o,o[U],e,o[s+1]=function VD(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Z(Yt(e)))),e}(t,n),r,s)}function ht(e,t,n,r){const o=K(),i=Ft(2);o.firstUpdatePass&&sp(o,null,i,r);const s=_();if(n!==V&&xe(s,i,n)){const a=o.data[Re()];if(up(a,r)&&!ip(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(n=ss(l,n||"")),Ya(o,a,s,n,r)}else!function LD(e,t,n,r,o,i,s,a){o===V&&(o=ee);let l=0,c=0,u=0=e.expandoStartIndex}function sp(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Re()],s=ip(e,n);up(i,r)&&null===t&&!s&&(t=!1),t=function PD(e,t,n,r){const o=function Ss(e){const t=R.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Gr(n=Xa(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Xa(o,e,t,n,r),null===i){let l=function FD(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Nt(r))return e[dt(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=Xa(null,e,t,l[1],r),l=Gr(l,t.attrs,r),function ND(e,t,n,r){e[dt(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function RD(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(c=!0)}else u=n;if(o)if(0!==l){const h=dt(e[a+1]);e[r+1]=ii(h,a),0!==h&&(e[h+1]=ma(e[h+1],r)),e[a+1]=function PC(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=ii(a,0),0!==a&&(e[a+1]=ma(e[a+1],r)),a=r;else e[r+1]=ii(l,0),0===a?a=r:e[l+1]=ma(e[l+1],r),l=r;c&&(e[r+1]=ga(e[r+1])),Xf(e,u,r,!0),Xf(e,u,r,!1),function bD(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Nn(i,t)>=0&&(n[r+1]=ya(n[r+1]))}(t,u,e,r,i),s=ii(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}function Xa(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[o],c=Array.isArray(l),u=c?l[1]:l,p=null===u;let h=n[o+1];h===V&&(h=p?ee:void 0);let g=p?Hs(h,r):u===r?h:void 0;if(c&&!mi(g)&&(g=Hs(l,r)),mi(g)&&(a=g,s))return a;const y=e[o+1];o=s?dt(y):Nt(y)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=Hs(l,r))}return a}function mi(e){return void 0!==e}function up(e,t){return 0!=(e.flags&(t?16:32))}function m(e,t=""){const n=_(),r=K(),o=e+20,i=r.firstCreatePass?Hn(r,o,1,t,null):r.data[o],s=n[o]=function aa(e,t){return ue(e)?e.createText(t):e.createTextNode(t)}(n[U],t);ri(r,n,s,i),Dt(i,!1)}function fn(e){return zr("",e,""),fn}function zr(e,t,n){const r=_(),o=Yn(r,e,t,n);return o!==V&&Rt(r,Re(),o),zr}function yi(e,t,n,r,o){const i=_(),s=$n(i,e,t,n,r,o);return s!==V&&Rt(i,Re(),s),yi}const pn=void 0;var r0=["en",[["a","p"],["AM","PM"],pn],[["AM","PM"],pn,pn],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],pn,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],pn,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",pn,"{1} 'at' {0}",pn],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function n0(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let or={};function kp(e){return e in or||(or[e]=X.ng&&X.ng.common&&X.ng.common.locales&&X.ng.common.locales[e]),or[e]}var M=(()=>((M=M||{})[M.LocaleId=0]="LocaleId",M[M.DayPeriodsFormat=1]="DayPeriodsFormat",M[M.DayPeriodsStandalone=2]="DayPeriodsStandalone",M[M.DaysFormat=3]="DaysFormat",M[M.DaysStandalone=4]="DaysStandalone",M[M.MonthsFormat=5]="MonthsFormat",M[M.MonthsStandalone=6]="MonthsStandalone",M[M.Eras=7]="Eras",M[M.FirstDayOfWeek=8]="FirstDayOfWeek",M[M.WeekendRange=9]="WeekendRange",M[M.DateFormat=10]="DateFormat",M[M.TimeFormat=11]="TimeFormat",M[M.DateTimeFormat=12]="DateTimeFormat",M[M.NumberSymbols=13]="NumberSymbols",M[M.NumberFormats=14]="NumberFormats",M[M.CurrencyCode=15]="CurrencyCode",M[M.CurrencySymbol=16]="CurrencySymbol",M[M.CurrencyName=17]="CurrencyName",M[M.Currencies=18]="Currencies",M[M.Directionality=19]="Directionality",M[M.PluralCase=20]="PluralCase",M[M.ExtraData=21]="ExtraData",M))();const vi="en-US";let Pp=vi;class rh{}class aw{resolveComponentFactory(t){throw function sw(e){const t=Error(`No component factory found for ${Z(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let sr=(()=>{class e{}return e.NULL=new aw,e})();function lw(){return ar(Ce(),_())}function ar(e,t){return new Ot(et(e,t))}let Ot=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=lw,e})();function cw(e){return e instanceof Ot?e.nativeElement:e}class ih{}let fw=(()=>{class e{}return e.\u0275prov=ae({token:e,providedIn:"root",factory:()=>null}),e})();class il{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const pw=new il("13.2.1"),sl={};function bi(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(ge(i)),lt(i))for(let a=10;a-1&&(ca(t,r),Ko(n,r))}this._attachedToViewContainer=!1}ed(this._lView[1],this._lView)}onDestroy(t){Rd(this._lView[1],this._lView,null,t)}markForCheck(){Pa(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Na(this._lView[1],this._lView,this.context)}checkNoChanges(){!function h_(e,t,n){Ro(!0);try{Na(e,t,n)}finally{Ro(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new $(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function uC(e,t){Vr(e,t,t[U],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new $(902,"");this._appRef=t}}class hw extends Zr{constructor(t){super(t),this._view=t}detectChanges(){Gd(this._view)}checkNoChanges(){!function g_(e){Ro(!0);try{Gd(e)}finally{Ro(!1)}}(this._view)}get context(){return null}}class ah extends sr{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ie(t);return new al(n,this.ngModule)}}function lh(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const mw=new Q("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Wu});class al extends rh{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function xC(e){return e.map(SC).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return lh(this.componentDef.inputs)}get outputs(){return lh(this.componentDef.outputs)}create(t,n,r,o){const i=(o=o||this.ngModule)?function yw(e,t){return{get:(n,r,o)=>{const i=e.get(n,sl,o);return i!==sl||r===sl?i:t.get(n,r,o)}}}(t,o.injector):t,s=i.get(ih,Uc),a=i.get(fw,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=r?function Nd(e,t,n){if(ue(e))return e.selectRootElement(t,n===Ct.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(l,r,this.componentDef.encapsulation):la(s.createRenderer(null,this.componentDef),c,function gw(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),p=this.componentDef.onPush?576:528,h=function pf(e,t){return{components:[],scheduler:e||Wu,clean:m_,playerHandler:t||null,flags:0}}(),g=li(0,null,null,1,0,null,null,null,null,null),y=Br(null,g,h,p,null,null,s,l,a,i);let C,D;Oo(y);try{const b=function df(e,t,n,r,o,i){const s=n[1];n[20]=e;const l=Hn(s,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(ui(l,c,!0),null!==e&&(Ho(o,e,c),null!==l.classes&&ha(o,e,l.classes),null!==l.styles&&fd(o,e,l.styles)));const u=r.createRenderer(e,t),p=Br(n,Pd(t),null,t.onPush?64:16,n[20],l,r,u,i||null,null);return s.firstCreatePass&&(zo(br(l,n),s,t.type),jd(s,l),Hd(l,n.length,1)),ci(n,p),n[20]=p}(u,this.componentDef,y,s,l);if(u)if(r)Ho(l,u,["ng-version",pw.full]);else{const{attrs:v,classes:x}=function kC(e){const t=[],n=[];let r=1,o=2;for(;r0&&ha(l,u,x.join(" "))}if(D=bs(g,20),void 0!==n){const v=D.projection=[];for(let x=0;xl(s,t)),t.contentQueries){const l=Ce();t.contentQueries(1,s,l.directiveStart)}const a=Ce();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Wt(a.index),Vd(n[1],a,0,a.directiveStart,a.directiveEnd,t),Bd(t,s)),s}(b,this.componentDef,y,h,[O_]),jr(g,y,null)}finally{Lo()}return new Cw(this.componentType,C,ar(D,y),y,D)}}class Cw extends class iw{}{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new hw(o),this.componentType=t}get injector(){return new Sn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class lr{}const cr=new Map;class dh extends lr{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ah(this);const r=Qe(t);this._bootstrapComponents=Et(r.bootstrap),this._r3Injector=Jd(t,n,[{provide:lr,useValue:this},{provide:sr,useValue:this.componentFactoryResolver}],Z(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Se.THROW_IF_NOT_FOUND,r=H.Default){return t===Se||t===lr||t===Oa?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ll extends class Dw{}{constructor(t){super(),this.moduleType=t,null!==Qe(t)&&function ww(e){const t=new Set;!function n(r){const o=Qe(r,!0),i=o.id;null!==i&&(function ch(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${Z(t)} vs ${Z(t.name)}`)}(i,cr.get(i),r),cr.set(i,r));const s=Et(o.imports);for(const a of s)t.has(a)||(t.add(a),n(a))}(e)}(t)}create(t){return new dh(this.moduleType,t)}}function cl(e,t,n){const r=Ne()+e,o=_();return o[r]===V?It(o,r,n?t.call(n):t()):function qr(e,t){return e[t]}(o,r)}function fh(e,t,n,r,o){return function hh(e,t,n,r,o,i,s){const a=t+n;return un(e,a,o,i)?It(e,a+2,s?r.call(s,o,i):r(o,i)):function Qr(e,t){const n=e[t];return n===V?void 0:n}(e,a+2)}(_(),Ne(),e,t,n,r,o)}function ul(e){return t=>{setTimeout(e,void 0,t)}}const ie=class Vw extends es{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var o,i,s;let a=t,l=n||(()=>null),c=r;if(t&&"object"==typeof t){const p=t;a=null===(o=p.next)||void 0===o?void 0:o.bind(p),l=null===(i=p.error)||void 0===i?void 0:i.bind(p),c=null===(s=p.complete)||void 0===s?void 0:s.bind(p)}this.__isAsync&&(l=ul(l),a&&(a=ul(a)),c&&(c=ul(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof vt&&t.add(u),u}};function Bw(){return this._results[Wn()]()}class dl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Wn(),r=dl.prototype;r[n]||(r[n]=Bw)}get changes(){return this._changes||(this._changes=new ie)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=tt(t);(this._changesDetected=!function qy(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=Uw,e})();const jw=Lt,Hw=class extends jw{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=Br(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(n)),jr(n,r,t),new Zr(r)}};function Uw(){return Ei(Ce(),_())}function Ei(e,t){return 4&e.type?new Hw(t,e,ar(e,t)):null}let rt=(()=>{class e{}return e.__NG_ELEMENT_ID__=qw,e})();function qw(){return _h(Ce(),_())}const Gw=rt,vh=class extends Gw{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ar(this._hostTNode,this._hostLView)}get injector(){return new Sn(this._hostTNode,this._hostLView)}get parentInjector(){const t=Go(this._hostTNode,this._hostLView);if(iu(t)){const n=Tn(t,this._hostLView),r=Mn(t);return new Sn(n[1].data[r+8],n)}return new Sn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Ch(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const o=t.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(t,n,r,o,i){const s=t&&!function Ir(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.ngModuleRef}const l=s?t:new al(Ie(t)),c=r||this.parentInjector;if(!i&&null==l.ngModule&&c){const p=c.get(lr,null);p&&(i=p)}const u=l.create(c,o,void 0,i);return this.insert(u.hostView,a),u}insert(t,n){const r=t._lView,o=r[1];if(function dy(e){return lt(e[3])}(r)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const p=r[3],h=new vh(p,p[6],p[3]);h.detach(h.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function fC(e,t,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=t),r0)r.push(s[a/2]);else{const c=i[a+1],u=t[-l];for(let p=10;p{class e{constructor(n){this.appInits=n,this.resolve=xi,this.reject=xi,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:l})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(ne(bl,8))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const eo=new Q("AppId"),yb={provide:eo,useFactory:function mb(){return`${El()}${El()}${El()}`},deps:[]};function El(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const qh=new Q("Platform Initializer"),Al=new Q("Platform ID"),vb=new Q("appBootstrapListener");let Cb=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const Qt=new Q("LocaleId"),Gh=new Q("DefaultCurrencyCode");class _b{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let zh=(()=>{class e{compileModuleSync(n){return new ll(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Et(Qe(n).declarations).reduce((s,a)=>{const l=Ie(a);return l&&s.push(new al(l)),s},[]);return new _b(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const wb=(()=>Promise.resolve(0))();function Il(e){"undefined"==typeof Zone?wb.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ke{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function bb(){let e=X.requestAnimationFrame,t=X.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Ib(e){const t=()=>{!function Ab(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(X,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Tl(e),e.isCheckStableRunning=!0,Ml(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Tl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return Wh(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Kh(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return Wh(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),Kh(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Tl(e),Ml(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ke.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ke.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Eb,xi,xi);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Eb={};function Ml(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Tl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Wh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Kh(e){e._nesting--,Ml(e)}class Mb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}let Sl=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{ke.assertNotInAngularZone(),Il(()=>{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())Il(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(ne(ke))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),Yh=(()=>{class e{constructor(){this._applications=new Map,xl.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return xl.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();class Tb{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}let gt,xl=new Tb;const $h=new Q("AllowMultipleToken");function Zh(e,t,n=[]){const r=`Platform: ${t}`,o=new Q(r);return(i=[])=>{let s=Qh();if(!s||s.injector.get($h,!1))if(e)e(n.concat(i).concat({provide:o,useValue:!0}));else{const a=n.concat(i).concat({provide:o,useValue:!0},{provide:La,useValue:"platform"});!function Pb(e){if(gt&&!gt.destroyed&&!gt.injector.get($h,!1))throw new $(400,"");gt=e.get(Xh);const t=e.get(qh,null);t&&t.forEach(n=>n())}(Se.create({providers:a,name:r}))}return function Fb(e){const t=Qh();if(!t)throw new $(401,"");return t}()}}function Qh(){return gt&&!gt.destroyed?gt:null}let Xh=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function Nb(e,t){let n;return n="noop"===e?new Mb:("zone.js"===e?void 0:e)||new ke({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:ke,useValue:a}];return a.run(()=>{const c=Se.create({providers:l,parent:this.injector,name:n.moduleType.name}),u=n.create(c),p=u.injector.get(Vn,null);if(!p)throw new $(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:g=>{p.handleError(g)}});u.onDestroy(()=>{kl(this._modules,u),h.unsubscribe()})}),function Rb(e,t,n){try{const r=n();return $a(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(p,a,()=>{const h=u.injector.get(dr);return h.runInitializers(),h.donePromise.then(()=>(function c0(e){ze(e,"Expected localeId to be defined"),"string"==typeof e&&(Pp=e.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Qt,vi)||vi),this._moduleDoBootstrap(u),u))})})}bootstrapModule(n,r=[]){const o=Jh({},r);return function xb(e,t,n){const r=new ll(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(to);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new $(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new $(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(ne(Se))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();function Jh(e,t){return Array.isArray(t)?t.reduce(Jh,e):Object.assign(Object.assign({},e),t)}let to=(()=>{class e{constructor(n,r,o,i,s){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new je(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new je(c=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{ke.assertNotInAngularZone(),Il(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const p=this._zone.onUnstable.subscribe(()=>{ke.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{u.unsubscribe(),p.unsubscribe()}});this.isStable=Sm(a,l.pipe(function km(e={}){const{connector:t=(()=>new es),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s=null,a=null,l=null,c=0,u=!1,p=!1;const h=()=>{null==a||a.unsubscribe(),a=null},g=()=>{h(),s=l=null,u=p=!1},y=()=>{const C=s;g(),null==C||C.unsubscribe()};return yn((C,D)=>{c++,!p&&!u&&h();const b=l=null!=l?l:t();D.add(()=>{c--,0===c&&!p&&!u&&(a=os(y,o))}),b.subscribe(D),s||(s=new bo({next:v=>b.next(v),error:v=>{p=!0,h(),a=os(g,n,v),b.error(v)},complete:()=>{u=!0,h(),a=os(g,r),b.complete()}}),Mc(C).subscribe(s))})(i)}}()))}bootstrap(n,r){if(!this._initStatus.done)throw new $(405,"");let o;o=n instanceof rh?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const i=function kb(e){return e.isBoundToModule}(o)?void 0:this._injector.get(lr),a=o.create(Se.NULL,[],r||o.selector,i),l=a.location.nativeElement,c=a.injector.get(Sl,null),u=c&&a.injector.get(Yh);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),kl(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new $(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;kl(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(vb,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(ne(ke),ne(Se),ne(Vn),ne(sr),ne(dr))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();function kl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let og=(()=>{class e{}return e.__NG_ELEMENT_ID__=Lb,e})();function Lb(e){return function Vb(e,t,n){if(ko(e)&&!n){const r=Ke(e.index,t);return new Zr(r,r)}return 47&e.type?new Zr(t[16],t):null}(Ce(),_(),16==(16&e))}class cg{constructor(){}supports(t){return Ur(t)}create(t){return new Gb(t)}}const qb=(e,t)=>t;class Gb{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||qb}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new zb(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new ug),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ug),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class zb{constructor(t,n){this.item=t,this.trackById=n,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 Wb{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class ug{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new Wb,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function dg(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new Yb(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class Yb{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function pg(){return new no([new cg])}let no=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||pg()),deps:[[e,new kr,new Rn]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new $(901,"")}}return e.\u0275prov=ae({token:e,providedIn:"root",factory:pg}),e})();function hg(){return new fr([new fg])}let fr=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||hg()),deps:[[e,new kr,new Rn]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new $(901,"")}}return e.\u0275prov=ae({token:e,providedIn:"root",factory:hg}),e})();const $b=[new fg],Qb=new no([new cg]),Xb=new fr($b),Jb=Zh(null,"core",[{provide:Al,useValue:"unknown"},{provide:Xh,deps:[Se]},{provide:Yh,deps:[]},{provide:Cb,deps:[]}]),o1=[{provide:to,useClass:to,deps:[ke,Se,Vn,sr,dr]},{provide:mw,deps:[ke],useFactory:function i1(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:dr,useClass:dr,deps:[[new Rn,bl]]},{provide:zh,useClass:zh,deps:[]},yb,{provide:no,useFactory:function e1(){return Qb},deps:[]},{provide:fr,useFactory:function t1(){return Xb},deps:[]},{provide:Qt,useFactory:function n1(e){return e||function r1(){return"undefined"!=typeof $localize&&$localize.locale||vi}()},deps:[[new Zo(Qt),new Rn,new kr]]},{provide:Gh,useValue:"USD"}];let s1=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(ne(to))},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({providers:o1}),e})(),Pi=null;function ro(){return Pi}const St=new Q("DocumentToken");var ye=(()=>((ye=ye||{})[ye.Zero=0]="Zero",ye[ye.One=1]="One",ye[ye.Two=2]="Two",ye[ye.Few=3]="Few",ye[ye.Many=4]="Many",ye[ye.Other=5]="Other",ye))();const C1=function xp(e){return function Le(e){const t=function o0(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=kp(t);if(n)return n;const r=t.split("-")[0];if(n=kp(r),n)return n;if("en"===r)return r0;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[M.PluralCase]};class Ui{}let Y1=(()=>{class e extends Ui{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(C1(r||this.locale)(n)){case ye.Zero:return"zero";case ye.One:return"one";case ye.Two:return"two";case ye.Few:return"few";case ye.Many:return"many";default:return"other"}}}return e.\u0275fac=function(n){return new(n||e)(ne(Qt))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();class X1{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ag=(()=>{class e{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new X1(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),Ig(a,o)}});for(let o=0,i=r.length;o{Ig(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(P(rt),P(Lt),P(no))},e.\u0275dir=Fe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();function Ig(e,t){e.context.$implicit=t.item}let Mg=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new J1,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Tg("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Tg("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(P(rt),P(Lt))},e.\u0275dir=Fe({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class J1{constructor(){this.$implicit=null,this.ngIf=null}}function Tg(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Z(t)}'.`)}let xg=(()=>{class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(n){if(n.ngTemplateOutlet){const r=this._viewContainerRef;this._viewRef&&r.remove(r.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?r.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&n.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return e.\u0275fac=function(n){return new(n||e)(P(rt))},e.\u0275dir=Fe({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Cr]}),e})(),Pg=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({providers:[{provide:Ui,useClass:Y1}]}),e})();class Yl extends class xE extends class c1{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function l1(e){Pi||(Pi=e)}(new Yl)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function kE(){return so=so||document.querySelector("base"),so?so.getAttribute("href"):null}();return null==n?null:function PE(e){qi=qi||document.createElement("a"),qi.setAttribute("href",e);const t=qi.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){so=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function $1(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let qi,so=null;const Rg=new Q("TRANSITION_ID"),NE=[{provide:bl,useFactory:function FE(e,t,n){return()=>{n.get(dr).donePromise.then(()=>{const r=ro(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},X.getAllAngularTestabilities=()=>t.getAllTestabilities(),X.getAllAngularRootElements=()=>t.getAllRootElements(),X.frameworkStabilizers||(X.frameworkStabilizers=[]),X.frameworkStabilizers.push(r=>{const o=X.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,n,r){if(null==n)return null;const o=t.getTestability(n);return null!=o?o:r?ro().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}let RE=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const Gi=new Q("EventManagerPlugins");let zi=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i{class e{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),ao=(()=>{class e extends Lg{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(Vg),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(Vg))}}return e.\u0275fac=function(n){return new(n||e)(ne(St))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();function Vg(e){ro().remove(e)}const Zl={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/"},Ql=/%COMP%/g;function Wi(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Xl=(()=>{class e{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Jl(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case Ct.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new HE(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case Ct.ShadowDom:return new UE(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=Wi(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(ne(zi),ne(ao),ne(eo))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();class Jl{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Zl[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){t.appendChild(n)}insertBefore(t,n,r){t&&t.insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=Zl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Zl[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&($e.DashCase|$e.Important)?t.style.setProperty(n,r,o&$e.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&$e.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,Hg(r)):this.eventManager.addEventListener(t,n,Hg(r))}}class HE extends Jl{constructor(t,n,r,o){super(t),this.component=r;const i=Wi(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function VE(e){return"_ngcontent-%COMP%".replace(Ql,e)}(o+"-"+r.id),this.hostAttr=function BE(e){return"_nghost-%COMP%".replace(Ql,e)}(o+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class UE extends Jl{constructor(t,n,r,o){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Wi(o.id,o.styles,[]);for(let s=0;s{class e extends Og{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(ne(St))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const qg=["alt","control","meta","shift"],zE={"\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"},Gg={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},WE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let KE=(()=>{class e extends Og{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ro().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="";if(qg.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(n){let r="",o=function YE(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Gg.hasOwnProperty(t)&&(t=Gg[t]))}return zE[t]||t}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),qg.forEach(i=>{i!=o&&WE[i](n)&&(r+=i+".")}),r+=o,r}static eventCallback(n,r,o){return i=>{e.getEventFullKey(i)===n&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(ne(St))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const XE=Zh(Jb,"browser",[{provide:Al,useValue:"browser"},{provide:qh,useValue:function $E(){Yl.makeCurrent(),$l.init()},multi:!0},{provide:St,useFactory:function QE(){return function ay(e){Ds=e}(document),document},deps:[]}]),JE=[{provide:La,useValue:"root"},{provide:Vn,useFactory:function ZE(){return new Vn},deps:[]},{provide:Gi,useClass:qE,multi:!0,deps:[St,ke,Al]},{provide:Gi,useClass:KE,multi:!0,deps:[St]},{provide:Xl,useClass:Xl,deps:[zi,ao,eo]},{provide:ih,useExisting:Xl},{provide:Lg,useExisting:ao},{provide:ao,useClass:ao,deps:[St]},{provide:Sl,useClass:Sl,deps:[ke]},{provide:zi,useClass:zi,deps:[Gi,ke]},{provide:class SE{},useClass:RE,deps:[]}];let eA=(()=>{class e{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:e,providers:[{provide:eo,useValue:n.appId},{provide:Rg,useExisting:eo},NE]}}}return e.\u0275fac=function(n){return new(n||e)(ne(e,12))},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({providers:JE,imports:[Pg,s1]}),e})();"undefined"!=typeof window&&window;const dA=["dialogPopup"],fA=["hueSlider"],pA=["alphaSlider"];function hA(e,t){if(1&e&&E(0,"div"),2&e){const n=T();(function vp(e,t,n){ht(Ye,Tt,Yn(_(),e,t,n),!0)})("arrow arrow-",n.cpUsePosition,""),F("top",n.arrowTop,"px")}}function gA(e,t){if(1&e){const n=Ee();d(0,"div",28),S("newValue",function(o){return O(n),T().onColorChange(o)})("dragStart",function(){return O(n),T().onDragStart("saturation-lightness")})("dragEnd",function(){return O(n),T().onDragEnd("saturation-lightness")}),E(1,"div",14),f()}if(2&e){const n=T();F("background-color",n.hueSliderColor),A("rgX",1)("rgY",1),w(1),F("top",null==n.slider?null:n.slider.v,"px")("left",null==n.slider?null:n.slider.s,"px")}}function mA(e,t){1&e&&(function tu(){R.lFrame.currentNamespace="svg"}(),d(0,"svg",29),E(1,"path",30),E(2,"path",31),f())}function yA(e,t){if(1&e){const n=Ee();d(0,"button",32),S("click",function(o){O(n);const i=T();return i.onAddPresetColor(o,i.selectedColor)}),m(1),f()}if(2&e){const n=T();dn(n.cpAddColorButtonClass),A("disabled",n.cpPresetColors&&n.cpPresetColors.length>=n.cpMaxPresetColorsLength),w(1),zr(" ",n.cpAddColorButtonText," ")}}function vA(e,t){1&e&&E(0,"div",33)}function CA(e,t){if(1&e){const n=Ee();d(0,"input",39),S("keyup.enter",function(o){return O(n),T(2).onAcceptColor(o)})("newValue",function(o){return O(n),T(2).onAlphaInput(o)}),f()}if(2&e){const n=T(2);A("rg",1)("value",null==n.cmykText?null:n.cmykText.a)}}function _A(e,t){1&e&&(d(0,"div"),m(1,"A"),f())}function DA(e,t){if(1&e){const n=Ee();d(0,"div",34),d(1,"div",35),d(2,"input",36),S("keyup.enter",function(o){return O(n),T().onAcceptColor(o)})("newValue",function(o){return O(n),T().onCyanInput(o)}),f(),d(3,"input",36),S("keyup.enter",function(o){return O(n),T().onAcceptColor(o)})("newValue",function(o){return O(n),T().onMagentaInput(o)}),f(),d(4,"input",36),S("keyup.enter",function(o){return O(n),T().onAcceptColor(o)})("newValue",function(o){return O(n),T().onYellowInput(o)}),f(),d(5,"input",36),S("keyup.enter",function(o){return O(n),T().onAcceptColor(o)})("newValue",function(o){return O(n),T().onBlackInput(o)}),f(),Y(6,CA,1,2,"input",37),f(),d(7,"div",35),d(8,"div"),m(9,"C"),f(),d(10,"div"),m(11,"M"),f(),d(12,"div"),m(13,"Y"),f(),d(14,"div"),m(15,"K"),f(),Y(16,_A,2,0,"div",38),f(),f()}if(2&e){const n=T();F("display",3!==n.format?"none":"block"),w(2),A("rg",100)("value",null==n.cmykText?null:n.cmykText.c),w(1),A("rg",100)("value",null==n.cmykText?null:n.cmykText.m),w(1),A("rg",100)("value",null==n.cmykText?null:n.cmykText.y),w(1),A("rg",100)("value",null==n.cmykText?null:n.cmykText.k),w(1),A("ngIf","disabled"!==n.cpAlphaChannel),w(10),A("ngIf","disabled"!==n.cpAlphaChannel)}}function wA(e,t){if(1&e){const n=Ee();d(0,"input",39),S("keyup.enter",function(o){return O(n),T(2).onAcceptColor(o)})("newValue",function(o){return O(n),T(2).onAlphaInput(o)}),f()}if(2&e){const n=T(2);A("rg",1)("value",null==n.hslaText?null:n.hslaText.a)}}function bA(e,t){1&e&&(d(0,"div"),m(1,"A"),f())}function EA(e,t){if(1&e){const n=Ee();d(0,"div",40),d(1,"div",35),d(2,"input",41),S("keyup.enter",function(o){return O(n),T().onAcceptColor(o)})("newValue",function(o){return O(n),T().onHueInput(o)}),f(),d(3,"input",36),S("keyup.enter",function(o){return O(n),T().onAcceptColor(o)})("newValue",function(o){return O(n),T().onSaturationInput(o)}),f(),d(4,"input",36),S("keyup.enter",function(o){return O(n),T().onAcceptColor(o)})("newValue",function(o){return O(n),T().onLightnessInput(o)}),f(),Y(5,wA,1,2,"input",37),f(),d(6,"div",35),d(7,"div"),m(8,"H"),f(),d(9,"div"),m(10,"S"),f(),d(11,"div"),m(12,"L"),f(),Y(13,bA,2,0,"div",38),f(),f()}if(2&e){const n=T();F("display",2!==n.format?"none":"block"),w(2),A("rg",360)("value",null==n.hslaText?null:n.hslaText.h),w(1),A("rg",100)("value",null==n.hslaText?null:n.hslaText.s),w(1),A("rg",100)("value",null==n.hslaText?null:n.hslaText.l),w(1),A("ngIf","disabled"!==n.cpAlphaChannel),w(8),A("ngIf","disabled"!==n.cpAlphaChannel)}}function AA(e,t){if(1&e){const n=Ee();d(0,"input",39),S("keyup.enter",function(o){return O(n),T(2).onAcceptColor(o)})("newValue",function(o){return O(n),T(2).onAlphaInput(o)}),f()}if(2&e){const n=T(2);A("rg",1)("value",null==n.rgbaText?null:n.rgbaText.a)}}function IA(e,t){1&e&&(d(0,"div"),m(1,"A"),f())}function MA(e,t){if(1&e){const n=Ee();d(0,"div",42),d(1,"div",35),d(2,"input",43),S("keyup.enter",function(o){return O(n),T().onAcceptColor(o)})("newValue",function(o){return O(n),T().onRedInput(o)}),f(),d(3,"input",43),S("keyup.enter",function(o){return O(n),T().onAcceptColor(o)})("newValue",function(o){return O(n),T().onGreenInput(o)}),f(),d(4,"input",43),S("keyup.enter",function(o){return O(n),T().onAcceptColor(o)})("newValue",function(o){return O(n),T().onBlueInput(o)}),f(),Y(5,AA,1,2,"input",37),f(),d(6,"div",35),d(7,"div"),m(8,"R"),f(),d(9,"div"),m(10,"G"),f(),d(11,"div"),m(12,"B"),f(),Y(13,IA,2,0,"div",38),f(),f()}if(2&e){const n=T();F("display",1!==n.format?"none":"block"),w(2),A("rg",255)("value",null==n.rgbaText?null:n.rgbaText.r),w(1),A("rg",255)("value",null==n.rgbaText?null:n.rgbaText.g),w(1),A("rg",255)("value",null==n.rgbaText?null:n.rgbaText.b),w(1),A("ngIf","disabled"!==n.cpAlphaChannel),w(8),A("ngIf","disabled"!==n.cpAlphaChannel)}}function TA(e,t){if(1&e){const n=Ee();d(0,"input",39),S("keyup.enter",function(o){return O(n),T(2).onAcceptColor(o)})("newValue",function(o){return O(n),T(2).onAlphaInput(o)}),f()}if(2&e){const n=T(2);A("rg",1)("value",n.hexAlpha)}}function SA(e,t){1&e&&(d(0,"div"),m(1,"A"),f())}function xA(e,t){if(1&e){const n=Ee();d(0,"div",44),d(1,"div",35),d(2,"input",45),S("blur",function(){return O(n),T().onHexInput(null)})("keyup.enter",function(o){return O(n),T().onAcceptColor(o)})("newValue",function(o){return O(n),T().onHexInput(o)}),f(),Y(3,TA,1,2,"input",37),f(),d(4,"div",35),d(5,"div"),m(6,"Hex"),f(),Y(7,SA,2,0,"div",38),f(),f()}if(2&e){const n=T();F("display",0!==n.format?"none":"block"),gi("hex-alpha","forced"===n.cpAlphaChannel),w(2),A("value",n.hexText),w(1),A("ngIf","forced"===n.cpAlphaChannel),w(4),A("ngIf","forced"===n.cpAlphaChannel)}}function kA(e,t){if(1&e){const n=Ee();d(0,"input",39),S("keyup.enter",function(o){return O(n),T(2).onAcceptColor(o)})("newValue",function(o){return O(n),T(2).onAlphaInput(o)}),f()}if(2&e){const n=T(2);A("rg",1)("value",null==n.hslaText?null:n.hslaText.a)}}function PA(e,t){if(1&e){const n=Ee();d(0,"div",46),d(1,"div",35),d(2,"input",36),S("keyup.enter",function(o){return O(n),T().onAcceptColor(o)})("newValue",function(o){return O(n),T().onValueInput(o)}),f(),Y(3,kA,1,2,"input",37),f(),d(4,"div",35),d(5,"div"),m(6,"V"),f(),d(7,"div"),m(8,"A"),f(),f(),f()}if(2&e){const n=T();w(2),A("rg",100)("value",null==n.hslaText?null:n.hslaText.l),w(1),A("ngIf","disabled"!==n.cpAlphaChannel)}}function FA(e,t){if(1&e){const n=Ee();d(0,"div",47),d(1,"span",48),S("click",function(){return O(n),T().onFormatToggle(-1)}),f(),d(2,"span",48),S("click",function(){return O(n),T().onFormatToggle(1)}),f(),f()}}function NA(e,t){if(1&e){const n=Ee();d(0,"span",55),S("click",function(o){O(n);const i=T().$implicit;return T(3).onRemovePresetColor(o,i)}),f()}2&e&&dn(T(4).cpRemoveColorButtonClass)}function RA(e,t){if(1&e){const n=Ee();d(0,"div",53),S("click",function(){const i=O(n).$implicit;return T(3).setColorFromString(i)}),Y(1,NA,1,3,"span",54),f()}if(2&e){const n=t.$implicit,r=T(3);F("background-color",n),w(1),A("ngIf",r.cpAddColorButton)}}function OA(e,t){if(1&e&&(d(0,"div"),Y(1,RA,2,3,"div",52),f()),2&e){const n=T(2);dn(n.cpPresetColorsClass),w(1),A("ngForOf",n.cpPresetColors)}}function LA(e,t){if(1&e&&(d(0,"div"),m(1),f()),2&e){const n=T(2);dn(n.cpPresetEmptyMessageClass),w(1),fn(n.cpPresetEmptyMessage)}}function VA(e,t){if(1&e&&(d(0,"div",49),E(1,"hr"),d(2,"div",50),m(3),f(),Y(4,OA,2,4,"div",51),Y(5,LA,2,4,"div",51),f()),2&e){const n=T();w(3),fn(n.cpPresetLabel),w(1),A("ngIf",null==n.cpPresetColors?null:n.cpPresetColors.length),w(1),A("ngIf",!(null!=n.cpPresetColors&&n.cpPresetColors.length)&&n.cpAddColorButton)}}function BA(e,t){if(1&e){const n=Ee();d(0,"button",58),S("click",function(o){return O(n),T(2).onCancelColor(o)}),m(1),f()}if(2&e){const n=T(2);dn(n.cpCancelButtonClass),w(1),fn(n.cpCancelButtonText)}}function jA(e,t){if(1&e){const n=Ee();d(0,"button",58),S("click",function(o){return O(n),T(2).onAcceptColor(o)}),m(1),f()}if(2&e){const n=T(2);dn(n.cpOKButtonClass),w(1),fn(n.cpOKButtonText)}}function HA(e,t){if(1&e&&(d(0,"div",56),Y(1,BA,2,4,"button",57),Y(2,jA,2,4,"button",57),f()),2&e){const n=T();w(1),A("ngIf",n.cpCancelButton),w(1),A("ngIf",n.cpOKButton)}}function UA(e,t){1&e&&Vf(0)}function qA(e,t){if(1&e&&(d(0,"div",59),Y(1,UA,1,0,"ng-container",60),f()),2&e){const n=T();w(1),A("ngTemplateOutlet",n.cpExtraTemplate)}}var Ae=(()=>{return(e=Ae||(Ae={}))[e.HEX=0]="HEX",e[e.RGBA=1]="RGBA",e[e.HSLA=2]="HSLA",e[e.CMYK=3]="CMYK",Ae;var e})();class Bt{constructor(t,n,r,o){this.r=t,this.g=n,this.b=r,this.a=o}}class Ki{constructor(t,n,r,o){this.h=t,this.s=n,this.v=r,this.a=o}}class gn{constructor(t,n,r,o){this.h=t,this.s=n,this.l=r,this.a=o}}class mn{constructor(t,n,r,o,i=1){this.c=t,this.m=n,this.y=r,this.k=o,this.a=i}}let WA=(()=>{class e{constructor(){this.newValue=new ie}inputChange(n){const r=n.target.value;if(void 0===this.rg)this.newValue.emit(r);else{const o=parseFloat(r);this.newValue.emit({v:o,rg:this.rg})}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=Fe({type:e,selectors:[["","text",""]],hostBindings:function(n,r){1&n&&S("input",function(i){return r.inputChange(i)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}}),e})(),KA=(()=>{class e{constructor(n){this.elRef=n,this.dragEnd=new ie,this.dragStart=new ie,this.newValue=new ie,this.listenerMove=r=>this.move(r),this.listenerStop=()=>this.stop()}mouseDown(n){this.start(n)}touchStart(n){this.start(n)}move(n){n.preventDefault(),this.setCursor(n)}start(n){this.setCursor(n),n.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(n){const r=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==n.pageX?n.pageX:n.touches[0].pageX)-r.left-window.pageXOffset}getY(n){const r=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==n.pageY?n.pageY:n.touches[0].pageY)-r.top-window.pageYOffset}setCursor(n){const r=this.elRef.nativeElement.offsetWidth,o=this.elRef.nativeElement.offsetHeight,i=Math.max(0,Math.min(this.getX(n),r)),s=Math.max(0,Math.min(this.getY(n),o));void 0!==this.rgX&&void 0!==this.rgY?this.newValue.emit({s:i/r,v:1-s/o,rgX:this.rgX,rgY:this.rgY}):void 0===this.rgX&&void 0!==this.rgY?this.newValue.emit({v:s/o,rgY:this.rgY}):void 0!==this.rgX&&void 0===this.rgY&&this.newValue.emit({v:i/r,rgX:this.rgX})}}return e.\u0275fac=function(n){return new(n||e)(P(Ot))},e.\u0275dir=Fe({type:e,selectors:[["","slider",""]],hostBindings:function(n,r){1&n&&S("mousedown",function(i){return r.mouseDown(i)})("touchstart",function(i){return r.touchStart(i)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}}),e})();class Kg{constructor(t,n,r,o){this.h=t,this.s=n,this.v=r,this.a=o}}class Yg{constructor(t,n,r,o){this.h=t,this.s=n,this.v=r,this.a=o}}let Yi=(()=>{class e{constructor(){this.active=null}setActive(n){this.active&&this.active!==n&&"inline"!==this.active.cpDialogDisplay&&this.active.closeDialog(),this.active=n}hsva2hsla(n){const r=n.h,o=n.s,i=n.v,s=n.a;if(0===i)return new gn(r,0,0,s);if(0===o&&1===i)return new gn(r,1,1,s);{const a=i*(2-o)/2;return new gn(r,i*o/(1-Math.abs(2*a-1)),a,s)}}hsla2hsva(n){const r=Math.min(n.h,1),o=Math.min(n.s,1),i=Math.min(n.l,1),s=Math.min(n.a,1);if(0===i)return new Ki(r,0,0,s);{const a=i+o*(1-Math.abs(2*i-1))/2;return new Ki(r,2*(a-i)/a,a,s)}}hsvaToRgba(n){let r,o,i;const s=n.h,a=n.s,l=n.v,c=n.a,u=Math.floor(6*s),p=6*s-u,h=l*(1-a),g=l*(1-p*a),y=l*(1-(1-p)*a);switch(u%6){case 0:r=l,o=y,i=h;break;case 1:r=g,o=l,i=h;break;case 2:r=h,o=l,i=y;break;case 3:r=h,o=g,i=l;break;case 4:r=y,o=h,i=l;break;case 5:r=l,o=h,i=g;break;default:r=0,o=0,i=0}return new Bt(r,o,i,c)}cmykToRgb(n){return new Bt((1-n.c)*(1-n.k),(1-n.m)*(1-n.k),(1-n.y)*(1-n.k),n.a)}rgbaToCmyk(n){const r=1-Math.max(n.r,n.g,n.b);return 1===r?new mn(0,0,0,1,n.a):new mn((1-n.r-r)/(1-r),(1-n.g-r)/(1-r),(1-n.b-r)/(1-r),r,n.a)}rgbaToHsva(n){let r,o;const i=Math.min(n.r,1),s=Math.min(n.g,1),a=Math.min(n.b,1),l=Math.min(n.a,1),c=Math.max(i,s,a),u=Math.min(i,s,a),p=c,h=c-u;if(o=0===c?0:h/c,c===u)r=0;else{switch(c){case i:r=(s-a)/h+(s{class e{constructor(n,r,o){this.elRef=n,this.cdRef=r,this.service=o,this.isIE10=!1,this.dialogArrowSize=10,this.dialogArrowOffset=15,this.dialogInputFields=[Ae.HEX,Ae.RGBA,Ae.HSLA,Ae.CMYK],this.useRootViewContainer=!1}handleEsc(n){this.show&&"popup"===this.cpDialogDisplay&&this.onCancelColor(n)}handleEnter(n){this.show&&"popup"===this.cpDialogDisplay&&this.onAcceptColor(n)}ngOnInit(){this.slider=new Kg(0,0,0,0),this.sliderDimMax=new Yg(this.hueSlider.nativeElement.offsetWidth||140,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth||140),this.format=this.cpCmykEnabled?Ae.CMYK:"rgba"===this.cpOutputFormat?Ae.RGBA:"hsla"===this.cpOutputFormat?Ae.HSLA:Ae.HEX,this.listenerMouseDown=o=>{this.onMouseDown(o)},this.listenerResize=()=>{this.onResize()},this.eyeDropperSupported="EyeDropper"in window,this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){230===this.cpWidth&&"inline"!==this.cpDialogDisplay||(this.sliderDimMax=new Yg(this.hueSlider.nativeElement.offsetWidth||140,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth||140),this.updateColorPicker(!1),this.cdRef.detectChanges())}openDialog(n,r=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(n),this.setColorFromString(n,r),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(n,r,o,i,s,a,l,c,u,p,h,g,y,C,D,b,v,x,B,W,Be,jt,lo,co,uo,fo,po,ho,go,mo,yo,oI,iI,sI,aI,lI,cI,uI){this.setInitialColor(o),this.setColorMode(c),this.isIE10=10===function zA(){let e="";"undefined"!=typeof navigator&&(e=navigator.userAgent.toLowerCase());const t=e.indexOf("msie ");return t>0&&parseInt(e.substring(t+5,e.indexOf(".",t)),10)}(),this.directiveInstance=n,this.directiveElementRef=r,this.cpDisableInput=g,this.cpCmykEnabled=u,this.cpAlphaChannel=p,this.cpOutputFormat=h,this.cpDialogDisplay=a,this.cpIgnoredElements=y,this.cpSaveClickOutside=C,this.cpCloseClickOutside=D,this.useRootViewContainer=b,this.width=this.cpWidth=parseInt(i,10),this.height=this.cpHeight=parseInt(s,10),this.cpPosition=v,this.cpPositionOffset=parseInt(x,10),this.cpOKButton=fo,this.cpOKButtonText=ho,this.cpOKButtonClass=po,this.cpCancelButton=go,this.cpCancelButtonText=yo,this.cpCancelButtonClass=mo,this.cpEyeDropper=lI,this.fallbackColor=l||"#fff",this.setPresetConfig(W,Be),this.cpPresetColorsClass=jt,this.cpMaxPresetColorsLength=lo,this.cpPresetEmptyMessage=co,this.cpPresetEmptyMessageClass=uo,this.cpAddColorButton=oI,this.cpAddColorButtonText=sI,this.cpAddColorButtonClass=iI,this.cpRemoveColorButtonClass=aI,this.cpTriggerElement=cI,this.cpExtraTemplate=uI,B||(this.dialogArrowOffset=0),"inline"===a&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),"hex"===h&&"always"!==p&&"forced"!==p&&(this.cpAlphaChannel="disabled")}setColorMode(n){switch(n.toString().toUpperCase()){case"1":case"C":case"COLOR":default:this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3}}setInitialColor(n){this.initialColor=n}setPresetConfig(n,r){this.cpPresetLabel=n,this.cpPresetColors=r}setColorFromString(n,r=!0,o=!0){let i;"always"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel?(i=this.service.stringToHsva(n,!0),!i&&!this.hsva&&(i=this.service.stringToHsva(n,!1))):i=this.service.stringToHsva(n,!1),!i&&!this.hsva&&(i=this.service.stringToHsva(this.fallbackColor,!1)),i&&(this.hsva=i,this.sliderH=this.hsva.h,"hex"===this.cpOutputFormat&&"disabled"===this.cpAlphaChannel&&(this.hsva.a=1),this.updateColorPicker(r,o))}onResize(){"fixed"===this.position?this.setDialogPosition():"inline"!==this.cpDialogDisplay&&this.closeColorPicker()}onDragEnd(n){this.directiveInstance.sliderDragEnd({slider:n,color:this.outputColor})}onDragStart(n){this.directiveInstance.sliderDragStart({slider:n,color:this.outputColor})}onMouseDown(n){this.show&&!this.isIE10&&"popup"===this.cpDialogDisplay&&n.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,n.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,n.target)&&0===this.cpIgnoredElements.filter(r=>r===n.target).length&&(this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker())}onAcceptColor(n){n.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),"popup"===this.cpDialogDisplay&&this.closeColorPicker()}onCancelColor(n){this.hsva=null,n.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),"popup"===this.cpDialogDisplay&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onEyeDropper(n){this.eyeDropperSupported&&(new window.EyeDropper).open().then(o=>{this.setColorFromString(o.sRGBHex,!0)})}onFormatToggle(n){const r=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),o=((this.dialogInputFields.indexOf(this.format)+n)%r+r)%r;this.format=this.dialogInputFields[o]}onColorChange(n){this.hsva.s=n.s/n.rgX,this.hsva.v=n.v/n.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(n){this.hsva.h=n.v/n.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(n){this.hsva.v=n.v/n.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(n){this.hsva.a=n.v/n.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(n){if(null===n)this.updateColorPicker();else{n&&"#"!==n[0]&&(n="#"+n);let r=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;"always"===this.cpAlphaChannel&&(r=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);const o=r.test(n);o&&(n.length<5&&(n="#"+n.substring(1).split("").map(i=>i+i).join("")),"forced"===this.cpAlphaChannel&&(n+=Math.round(255*this.hsva.a).toString(16)),this.setColorFromString(n,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:o,value:n,color:this.outputColor})}}onRedInput(n){const r=this.service.hsvaToRgba(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.r=n.v/n.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid:o,value:r.r,color:this.outputColor})}onBlueInput(n){const r=this.service.hsvaToRgba(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.b=n.v/n.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid:o,value:r.b,color:this.outputColor})}onGreenInput(n){const r=this.service.hsvaToRgba(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.g=n.v/n.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid:o,value:r.g,color:this.outputColor})}onHueInput(n){const r=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;r&&(this.hsva.h=n.v/n.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:r,value:this.hsva.h,color:this.outputColor})}onValueInput(n){const r=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;r&&(this.hsva.v=n.v/n.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:r,value:this.hsva.v,color:this.outputColor})}onAlphaInput(n){const r=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;r&&(this.hsva.a=n.v/n.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:r,value:this.hsva.a,color:this.outputColor})}onLightnessInput(n){const r=this.service.hsva2hsla(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.l=n.v/n.rg,this.hsva=this.service.hsla2hsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid:o,value:r.l,color:this.outputColor})}onSaturationInput(n){const r=this.service.hsva2hsla(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.s=n.v/n.rg,this.hsva=this.service.hsla2hsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid:o,value:r.s,color:this.outputColor})}onCyanInput(n){!isNaN(n.v)&&n.v>=0&&n.v<=n.rg&&(this.cmyk.c=n.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(n){!isNaN(n.v)&&n.v>=0&&n.v<=n.rg&&(this.cmyk.m=n.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(n){!isNaN(n.v)&&n.v>=0&&n.v<=n.rg&&(this.cmyk.y=n.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(n){!isNaN(n.v)&&n.v>=0&&n.v<=n.rg&&(this.cmyk.k=n.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(n,r){n.stopPropagation(),this.cpPresetColors.filter(o=>o===r).length||(this.cpPresetColors=this.cpPresetColors.concat(r),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(n,r){n.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(o=>o!==r),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||(document.addEventListener("mousedown",this.listenerMouseDown),document.addEventListener("touchstart",this.listenerMouseDown)),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||(document.removeEventListener("mousedown",this.listenerMouseDown),document.removeEventListener("touchstart",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(n=!0,r=!0,o=!1){if(this.sliderDimMax){let i,s,a;2===this.cpColorMode&&(this.hsva.s=0);const l=this.outputColor;if(s=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(o?(a=this.service.cmykToRgb(this.service.normalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(a)):(a=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(a))),a=this.service.denormalizeRGBA(a),this.sliderH=this.hsva.h):a=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),i=this.service.denormalizeRGBA(this.service.hsvaToRgba(new Ki(this.sliderH||this.hsva.h,1,1,1))),r&&(this.hslaText=new gn(Math.round(360*s.h),Math.round(100*s.s),Math.round(100*s.l),Math.round(100*s.a)/100),this.rgbaText=new Bt(a.r,a.g,a.b,Math.round(100*a.a)/100),this.cpCmykEnabled&&(this.cmykText=new mn(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(100*this.cmyk.a)/100)),this.hexText=this.service.rgbaToHex(a,"always"===this.cpAlphaChannel),this.hexAlpha=this.rgbaText.a),"auto"===this.cpOutputFormat&&this.format!==Ae.RGBA&&this.format!==Ae.CMYK&&this.format!==Ae.HSLA&&this.hsva.a<1&&(this.format=this.hsva.a<1?Ae.RGBA:Ae.HEX),this.hueSliderColor="rgb("+i.r+","+i.g+","+i.b+")",this.alphaSliderColor="rgb("+a.r+","+a.g+","+a.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==Ae.CMYK)this.cmykColor="";else if("always"===this.cpAlphaChannel||"enabled"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel){const c=Math.round(100*this.cmyk.a)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${c})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new Kg((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),n&&l!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if("inline"===this.cpDialogDisplay)this.position="relative";else{let o,n="static",r="",i=null,s=null,a=this.directiveElementRef.nativeElement.parentNode;const l=this.dialogElement.nativeElement.offsetHeight;for(;null!==a&&"HTML"!==a.tagName;){if(o=window.getComputedStyle(a),n=o.getPropertyValue("position"),r=o.getPropertyValue("transform"),"static"!==n&&null===i&&(i=a),r&&"none"!==r&&null===s&&(s=a),"fixed"===n){i=s;break}a=a.parentNode}const c=this.createDialogBox(this.directiveElementRef.nativeElement,"fixed"!==n);if(this.useRootViewContainer||"fixed"===n&&(!i||i instanceof HTMLUnknownElement))this.top=c.top,this.left=c.left;else{null===i&&(i=a);const p=this.createDialogBox(i,"fixed"!==n);this.top=c.top-p.top,this.left=c.left-p.left}"fixed"===n&&(this.position="fixed");let u=this.cpPosition;"auto"===this.cpPosition&&(u=function GA(e,t){let n="right",r="bottom";const{height:o,width:i}=e,{top:s,left:a}=t,l=s+t.height,c=a+t.width,u=s-o<0,p=l+o>(window.innerHeight||document.documentElement.clientHeight),h=a-i<0,g=c+i>(window.innerWidth||document.documentElement.clientWidth);return p&&(r="top"),u&&(r="bottom"),h&&(n="right"),g&&(n="left"),u&&p&&h&&g?["left","right","top","bottom"].reduce((D,b)=>e[D]>e[b]?D:b):h&&g?u?"bottom":p||s>l?"top":"bottom":u&&p?h?"right":g||a>c?"left":"right":`${r}-${n}`}(this.dialogElement.nativeElement.getBoundingClientRect(),this.cpTriggerElement.nativeElement.getBoundingClientRect())),"top"===u?(this.arrowTop=l-1,this.top-=l+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*c.width-this.dialogArrowOffset):"bottom"===u?(this.top+=c.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*c.width-this.dialogArrowOffset):"top-left"===u||"left-top"===u?(this.top-=l-c.height+c.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset):"top-right"===u||"right-top"===u?(this.top-=l-c.height+c.height*this.cpPositionOffset/100,this.left+=c.width+this.dialogArrowSize-2-this.dialogArrowOffset):"left"===u||"bottom-left"===u||"left-bottom"===u?(this.top+=c.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2):(this.top+=c.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=c.width+this.dialogArrowSize-2),this.cpUsePosition=u}}isDescendant(n,r){let o=r.parentNode;for(;null!==o;){if(o===n)return!0;o=o.parentNode}return!1}createDialogBox(n,r){return{top:n.getBoundingClientRect().top+(r?window.pageYOffset:0),left:n.getBoundingClientRect().left+(r?window.pageXOffset:0),width:n.offsetWidth,height:n.offsetHeight}}}return e.\u0275fac=function(n){return new(n||e)(P(Ot),P(og),P(Yi))},e.\u0275cmp=Mo({type:e,selectors:[["color-picker"]],viewQuery:function(n,r){if(1&n&&(Ii(dA,7),Ii(fA,7),Ii(pA,7)),2&n){let o;Ai(o=Mi())&&(r.dialogElement=o.first),Ai(o=Mi())&&(r.hueSlider=o.first),Ai(o=Mi())&&(r.alphaSlider=o.first)}},hostBindings:function(n,r){1&n&&S("keyup.esc",function(i){return r.handleEsc(i)},!1,na)("keyup.enter",function(i){return r.handleEnter(i)},!1,na)},decls:30,vars:51,consts:[[1,"color-picker",3,"click"],["dialogPopup",""],[3,"class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color",3,"click"],["class","eyedropper-icon","xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",4,"ngIf"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"slider","rgX","newValue","dragStart","dragEnd"],["hueSlider",""],[1,"cursor"],[1,"value",3,"slider","rgX","newValue","dragStart","dragEnd"],["valueSlider",""],[1,"alpha",3,"slider","rgX","newValue","dragStart","dragEnd"],["alphaSlider",""],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],["class","extra-template",4,"ngIf"],[1,"saturation-lightness",3,"slider","rgX","rgY","newValue","dragStart","dragEnd"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",1,"eyedropper-icon"],["d","M0 0h24v24H0V0z","fill","none"],["d","M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42l-2.34-2.34c-.2-.19-.45-.29-.7-.29zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"],["type","button",3,"disabled","click"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"text","rg","value","keyup.enter","newValue"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"text","rg","value","keyup.enter","newValue"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"text","rg","value","keyup.enter","newValue"],[1,"hex-text"],[3,"text","value","blur","keyup.enter","newValue"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"],[1,"extra-template"],[4,"ngTemplateOutlet"]],template:function(n,r){1&n&&(d(0,"div",0,1),S("click",function(i){return i.stopPropagation()}),Y(2,hA,1,5,"div",2),Y(3,gA,2,8,"div",3),d(4,"div",4),d(5,"div",5),E(6,"div",6),d(7,"div",7),S("click",function(i){return r.eyeDropperSupported&&r.cpEyeDropper&&r.onEyeDropper(i)}),Y(8,mA,3,0,"svg",8),f(),Y(9,yA,2,5,"button",9),f(),d(10,"div",10),Y(11,vA,1,0,"div",11),d(12,"div",12,13),S("newValue",function(i){return r.onHueChange(i)})("dragStart",function(){return r.onDragStart("hue")})("dragEnd",function(){return r.onDragEnd("hue")}),E(14,"div",14),f(),d(15,"div",15,16),S("newValue",function(i){return r.onValueChange(i)})("dragStart",function(){return r.onDragStart("value")})("dragEnd",function(){return r.onDragEnd("value")}),E(17,"div",14),f(),d(18,"div",17,18),S("newValue",function(i){return r.onAlphaChange(i)})("dragStart",function(){return r.onDragStart("alpha")})("dragEnd",function(){return r.onDragEnd("alpha")}),E(20,"div",14),f(),f(),f(),Y(21,DA,17,12,"div",19),Y(22,EA,14,10,"div",20),Y(23,MA,14,10,"div",21),Y(24,xA,8,7,"div",22),Y(25,PA,9,3,"div",23),Y(26,FA,3,0,"div",24),Y(27,VA,6,3,"div",25),Y(28,HA,3,2,"div",26),Y(29,qA,2,1,"div",27),f()),2&n&&(F("display",r.show?"block":"none")("visibility",r.hidden?"hidden":"visible")("top",r.top,"px")("left",r.left,"px")("position",r.position)("height",r.cpHeight,"px")("width",r.cpWidth,"px"),gi("open",r.show),w(2),A("ngIf","popup"==r.cpDialogDisplay),w(1),A("ngIf",1===(r.cpColorMode||1)),w(4),F("background-color",r.selectedColor)("cursor",r.eyeDropperSupported&&r.cpEyeDropper?"pointer":null),w(1),A("ngIf",r.eyeDropperSupported&&r.cpEyeDropper),w(1),A("ngIf",r.cpAddColorButton),w(2),A("ngIf","disabled"===r.cpAlphaChannel),w(1),F("display",1===(r.cpColorMode||1)?"block":"none"),A("rgX",1),w(2),F("left",null==r.slider?null:r.slider.h,"px"),w(1),F("display",2===(r.cpColorMode||1)?"block":"none"),A("rgX",1),w(2),F("right",null==r.slider?null:r.slider.v,"px"),w(1),F("display","disabled"===r.cpAlphaChannel?"none":"block")("background-color",r.alphaSliderColor),A("rgX",1),w(2),F("left",null==r.slider?null:r.slider.a,"px"),w(1),A("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),w(1),A("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),w(1),A("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),w(1),A("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),w(1),A("ngIf",!r.cpDisableInput&&2===(r.cpColorMode||1)),w(1),A("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),w(1),A("ngIf",(null==r.cpPresetColors?null:r.cpPresetColors.length)||r.cpAddColorButton),w(1),A("ngIf",r.cpOKButton||r.cpCancelButton),w(1),A("ngIf",r.cpExtraTemplate))},directives:[Mg,KA,WA,Ag,xg],styles:['.color-picker{position:absolute;z-index:1000;width:230px;height:auto;border:#777 solid 1px;cursor:default;-webkit-user-select:none;user-select:none;background-color:#fff}.color-picker *{box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .arrow{position:absolute;z-index:999999;width:0;height:0;border-style:solid}.color-picker .arrow.arrow-top{left:8px;border-width:10px 5px;border-color:#777 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-bottom{top:-20px;left:8px;border-width:10px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #777 rgba(0,0,0,0)}.color-picker .arrow.arrow-top-left,.color-picker .arrow.arrow-left-top{right:-21px;bottom:8px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-top-right,.color-picker .arrow.arrow-right-top{bottom:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom,.color-picker .arrow.arrow-bottom-left{top:8px;right:-21px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom,.color-picker .arrow.arrow-bottom-right{top:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .cursor{position:relative;width:16px;height:16px;border:#222 solid 2px;border-radius:50%;cursor:default}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{overflow:hidden;width:100%;padding:4px;font-size:11px;white-space:nowrap;text-align:left;text-overflow:ellipsis;color:#555}.color-picker .preset-area .preset-color{position:relative;display:inline-block;width:18px;height:18px;margin:4px 6px 8px;border:#a9a9a9 solid 1px;border-radius:25%;cursor:pointer}.color-picker .preset-area .preset-empty-message{min-height:18px;margin-top:4px;margin-bottom:8px;font-style:italic;text-align:center}.color-picker .hex-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{float:left;flex:1 1 auto;text-align:center;color:#555;clear:left}.color-picker .hex-text .box input{flex:1 1 auto;padding:1px;border:#a9a9a9 solid 1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{flex:1 1 auto;margin-right:8px;text-align:center;color:#555}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{float:left;flex:1;padding:1px;margin:0 8px 0 0;border:#a9a9a9 solid 1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker .value{direction:rtl;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=)}.color-picker .alpha{direction:ltr;width:100%;height:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker .type-policy{position:absolute;top:218px;right:12px;width:16px;height:24px;background-size:8px 16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center}.color-picker .type-policy .type-policy-arrow{display:block;width:100%;height:50%}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;border:1px solid #a9a9a9;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker .saturation-lightness{direction:ltr;width:100%;height:130px;border:none;cursor:pointer;touch-action:manipulation;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3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Oj5F+mrnZfCuYCfBUAWwShyd6pMY/vAHG1UqOYpbI/gy5T0CMKm+UO3gFuC85dgfDVeguPDfITrIBLsLrcgdh3CFgFZjaKJ4Iv3F8ANEqvuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.color-picker .cp-add-color-button-class{position:absolute;display:inline;padding:0;margin:3px -3px;border:0;cursor:pointer;background:transparent}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{cursor:not-allowed;color:#999}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{position:absolute;top:-5px;right:-5px;display:block;width:10px;height:10px;border-radius:50%;cursor:pointer;text-align:center;background:#fff;box-shadow:1px 1px 5px #333}.color-picker .cp-remove-color-button-class:before{content:"x";position:relative;bottom:3.5px;display:inline-block;font-size:10px}.color-picker .eyedropper-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:#fff;mix-blend-mode:exclusion}\n'],encapsulation:2}),e})(),ZA=(()=>{class e{constructor(n,r,o,i,s,a){this.injector=n,this.cfr=r,this.appRef=o,this.vcRef=i,this.elRef=s,this._service=a,this.dialogCreated=!1,this.ignoreChanges=!1,this.viewAttachedToAppRef=!1,this.cpWidth="230px",this.cpHeight="auto",this.cpToggle=!1,this.cpDisabled=!1,this.cpIgnoredElements=[],this.cpFallbackColor="",this.cpColorMode="color",this.cpCmykEnabled=!1,this.cpOutputFormat="auto",this.cpAlphaChannel="enabled",this.cpDisableInput=!1,this.cpDialogDisplay="popup",this.cpSaveClickOutside=!0,this.cpCloseClickOutside=!0,this.cpUseRootViewContainer=!1,this.cpPosition="auto",this.cpPositionOffset="0%",this.cpPositionRelativeToArrow=!1,this.cpOKButton=!1,this.cpOKButtonText="OK",this.cpOKButtonClass="cp-ok-button-class",this.cpCancelButton=!1,this.cpCancelButtonText="Cancel",this.cpCancelButtonClass="cp-cancel-button-class",this.cpEyeDropper=!1,this.cpPresetLabel="Preset colors",this.cpPresetColorsClass="cp-preset-colors-class",this.cpMaxPresetColorsLength=6,this.cpPresetEmptyMessage="No colors added",this.cpPresetEmptyMessageClass="preset-empty-message",this.cpAddColorButton=!1,this.cpAddColorButtonText="Add color",this.cpAddColorButtonClass="cp-add-color-button-class",this.cpRemoveColorButtonClass="cp-remove-color-button-class",this.cpInputChange=new ie(!0),this.cpToggleChange=new ie(!0),this.cpSliderChange=new ie(!0),this.cpSliderDragEnd=new ie(!0),this.cpSliderDragStart=new ie(!0),this.colorPickerOpen=new ie(!0),this.colorPickerClose=new ie(!0),this.colorPickerCancel=new ie(!0),this.colorPickerSelect=new ie(!0),this.colorPickerChange=new ie(!1),this.cpCmykColorChange=new ie(!0),this.cpPresetColorsChange=new ie(!0)}handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(n){this.inputChange(n)}ngOnDestroy(){null!=this.cmpRef&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(n){n.cpToggle&&!this.cpDisabled&&(n.cpToggle.currentValue?this.openDialog():n.cpToggle.currentValue||this.closeDialog()),n.colorPicker&&(this.dialog&&!this.ignoreChanges&&("inline"===this.cpDialogDisplay&&this.dialog.setInitialColor(n.colorPicker.currentValue),this.dialog.setColorFromString(n.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(n.cpPresetLabel||n.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&this.dialog.openDialog(this.colorPicker);else{let n=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay){const i=this.injector.get(this.appRef.componentTypes[0],Se.NULL);i!==Se.NULL?n=i.vcRef||i.viewContainerRef||this.vcRef:this.viewAttachedToAppRef=!0}const r=this.cfr.resolveComponentFactory(YA);if(this.viewAttachedToAppRef)this.cmpRef=r.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{const o=Se.create({providers:[],parent:n.injector});this.cmpRef=n.createComponent(r,0,o,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==n&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&"popup"===this.cpDialogDisplay&&this.dialog.closeDialog()}cmykChanged(n){this.cpCmykColorChange.emit(n)}stateChanged(n){this.cpToggleChange.emit(n),n?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(n,r=!0){this.ignoreChanges=r,this.colorPickerChange.emit(n)}colorSelected(n){this.colorPickerSelect.emit(n)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){const n=this.elRef.nativeElement,r=this.cpIgnoredElements.filter(o=>o===n);!this.cpDisabled&&!r.length&&("undefined"!=typeof document&&n===document.activeElement?this.openDialog():this.dialog&&this.dialog.show?this.closeDialog():this.openDialog())}inputChange(n){this.dialog?this.dialog.setColorFromString(n.target.value,!0):(this.colorPicker=n.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(n){this.cpInputChange.emit(n)}sliderChanged(n){this.cpSliderChange.emit(n)}sliderDragEnd(n){this.cpSliderDragEnd.emit(n)}sliderDragStart(n){this.cpSliderDragStart.emit(n)}presetColorsChanged(n){this.cpPresetColorsChange.emit(n)}}return e.\u0275fac=function(n){return new(n||e)(P(Se),P(sr),P(to),P(rt),P(Ot),P(Yi))},e.\u0275dir=Fe({type:e,selectors:[["","colorPicker",""]],hostBindings:function(n,r){1&n&&S("click",function(){return r.handleClick()})("focus",function(){return r.handleFocus()})("input",function(i){return r.handleInput(i)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[Cr]}),e})(),QA=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({providers:[Yi],imports:[[Pg]]}),e})();function XA(e,t){1&e&&(d(0,"div",37),d(1,"h3"),m(2,"Custom template content here."),f(),f())}const JA=function(){return["#fff","#000","#2889e9","#e920e9","#fff500","rgb(236,64,64)"]},eI=function(){return["#fff","#2889e9"]},tI=function(e,t){return[e,t]};let nI=(()=>{class e{constructor(n,r){this.vcRef=n,this.cpService=r,this.toggle=!1,this.rgbaText="rgba(165, 26, 214, 0.2)",this.arrayColors={color1:"#2883e9",color2:"#e920e9",color3:"rgb(255,245,0)",color4:"rgb(236,64,64)",color5:"rgba(45,208,45,1)"},this.selectedColor="color1",this.color1="#2889e9",this.color2="#e920e9",this.color3="#fff500",this.color4="rgb(236,64,64)",this.color5="rgba(45,208,45,1)",this.color6="#1973c0",this.color7="#f200bd",this.color8="#a8ff00",this.color9="#278ce2",this.color10="#0a6211",this.color11="#f2ff00",this.color12="#f200bd",this.color13="rgba(0,255,0,0.5)",this.color14="rgb(0,255,255)",this.color15="rgb(255,0,0)",this.color16="#a51ad633",this.color17="#666666",this.color18="#fa8072",this.color19="#f88888",this.cmykValue="",this.cmykColor=new mn(0,0,0,0)}onEventLog(n,r){console.log(n,r)}onChangeColor(n){console.log("Color changed:",n)}onChangeColorCmyk(n){const r=this.cpService.stringToHsva(n);if(r){const o=this.cpService.hsvaToRgba(r);return this.cpService.rgbaToCmyk(o)}return new mn(0,0,0,0)}onChangeColorHex8(n){const r=this.cpService.stringToHsva(n,!0);return r?this.cpService.outputFormat(r,"rgba",null):""}}return e.\u0275fac=function(n){return new(n||e)(P(rt),P(Yi))},e.\u0275cmp=Mo({type:e,selectors:[["my-app"]],decls:549,vars:146,consts:[[1,"container"],[1,"row"],[1,"col-md-5"],[3,"colorPicker","colorPickerChange","colorPickerOpen","colorPickerClose","cpInputChange","cpSliderDragStart","cpSliderDragEnd"],[1,"col-md-7"],[3,"colorPicker","cpColorMode","colorPickerChange","colorPickerOpen","colorPickerClose","cpInputChange","cpSliderDragStart","cpSliderDragEnd"],[3,"value","colorPicker","colorPickerChange"],[3,"value","cpOutputFormat","colorPicker","colorPickerChange"],[3,"value","cpPosition","colorPicker","colorPickerChange"],[1,"change-me",3,"cpPosition","cpPositionOffset","cpPositionRelativeToArrow","colorPicker","colorPickerChange"],[3,"value","cpCancelButton","colorPicker","colorPickerChange"],[3,"value","cpCancelButton","cpCancelButtonClass","colorPicker","colorPickerChange"],[3,"value","cpOKButton","cpSaveClickOutside","cpOKButtonClass","colorPicker","colorPickerChange"],[3,"value","cpEyeDropper","cpSaveClickOutside","cpOKButtonClass","colorPicker","colorPickerChange"],[3,"colorPicker","cpCmykEnabled","cpCmykColorChange","colorPickerChange"],[1,"clearfix"],[1,"cmyk-text",2,"color","rgb(0,255,255)"],[1,"cmyk-text",2,"color","rgb(255,0,255)"],[1,"cmyk-text",2,"color","rgb(255,255,0)"],[1,"cmyk-text"],[3,"cpPresetColors","colorPicker","colorPickerChange"],[3,"cpAlphaChannel","cpOutputFormat","cpPresetColors","cpAddColorButton","colorPicker","colorPickerChange"],[3,"cpFallbackColor","cpIgnoredElements","cpToggle","colorPicker","cpToggleChange","colorPickerChange"],["ignoredInput",""],[1,"btn","btn-primary",3,"click"],["ignoredButton",""],["cpPosition","auto",3,"value","colorPicker","colorPickerChange"],[3,"value","cpAlphaChannel","cpOutputFormat","colorPicker","colorPickerChange"],[1,"row",2,"height","320px"],[1,"col-md-3"],[3,"cpToggle","cpDialogDisplay","cpCancelButton","cpCancelButtonClass","colorPicker","colorPickerChange"],[1,"col-md-2"],[1,"color-box",3,"click"],["cpAlphaChannel","disabled",3,"colorPicker","cpExtraTemplate","colorPickerClose","colorPickerOpen","cpInputChange","cpSliderDragEnd","cpSliderDragStart","keyup"],["customTemplate",""],[1,"col-md-12"],[1,"table"],[1,""]],template:function(n,r){if(1&n&&(d(0,"div",0),d(1,"h1"),m(2,"Angular Color Picker Directive"),f(),d(3,"h4"),m(4,"A Color Picker Directive for Angular with no dependencies."),f(),d(5,"h4"),d(6,"b"),m(7,"based on angular2-color-picker by Alberto Pujante"),f(),f(),E(8,"hr"),d(9,"div",1),d(10,"div",2),d(11,"input",3),S("colorPickerChange",function(i){return r.color1=i})("colorPickerOpen",function(i){return r.onEventLog("colorPickerOpen",i)})("colorPickerClose",function(i){return r.onEventLog("colorPickerClose",i)})("cpInputChange",function(i){return r.onEventLog("cpInputChange",i)})("cpSliderDragStart",function(i){return r.onEventLog("cpSliderDragStart",i)})("cpSliderDragEnd",function(i){return r.onEventLog("cpSliderDragEnd",i)}),f(),f(),d(12,"div",4),d(13,"p"),m(14,"Usage:"),f(),d(15,"pre"),m(16,'\n '),f(),d(17,"p"),m(18,"Or:"),f(),d(19,"pre"),m(20,'\n '),f(),f(),f(),E(21,"hr"),d(22,"div",1),d(23,"div",2),d(24,"input",5),S("colorPickerChange",function(i){return r.color17=i})("colorPickerOpen",function(i){return r.onEventLog("colorPickerOpen",i)})("colorPickerClose",function(i){return r.onEventLog("colorPickerClose",i)})("cpInputChange",function(i){return r.onEventLog("cpInputChange",i)})("cpSliderDragStart",function(i){return r.onEventLog("cpSliderDragStart",i)})("cpSliderDragEnd",function(i){return r.onEventLog("cpSliderDragEnd",i)}),f(),f(),d(25,"div",4),d(26,"p"),m(27,"Grayscale color mode:"),f(),d(28,"pre"),m(29,'\n '),f(),f(),f(),E(30,"hr"),d(31,"div",1),d(32,"div",2),d(33,"input",6),S("colorPickerChange",function(i){return r.color2=i}),f(),f(),d(34,"div",4),d(35,"p"),m(36,"Show the color in the input field:"),f(),d(37,"pre"),m(38,'\n '),f(),f(),f(),E(39,"hr"),d(40,"div",1),d(41,"div",2),d(42,"input",7),S("colorPickerChange",function(i){return r.color3=i}),f(),E(43,"br"),E(44,"br"),d(45,"input",7),S("colorPickerChange",function(i){return r.color4=i}),f(),f(),d(46,"div",4),d(47,"p"),m(48,"Output format:"),f(),d(49,"pre"),m(50,'\n '),f(),f(),f(),E(51,"hr"),d(52,"div",1),d(53,"div",2),d(54,"input",8),S("colorPickerChange",function(i){return r.color5=i}),f(),f(),d(55,"div",4),d(56,"p"),m(57,"Changing dialog position:"),f(),d(58,"pre"),m(59,'\n '),f(),f(),f(),E(60,"hr"),d(61,"div",1),d(62,"div",2),d(63,"span",9),S("colorPickerChange",function(i){return r.color6=i}),m(64,"Change me!"),f(),f(),d(65,"div",4),d(66,"p"),m(67,"You can introduce a offset of the color picker relative to the html element:"),f(),d(68,"pre"),m(69,'Change me!\n '),f(),f(),f(),E(70,"hr"),d(71,"div",1),d(72,"div",2),d(73,"input",10),S("colorPickerChange",function(i){return r.color7=i}),f(),f(),d(74,"div",4),d(75,"p"),m(76,"Show cancel button:"),f(),d(77,"pre"),m(78,'\n '),f(),f(),f(),E(79,"hr"),d(80,"div",1),d(81,"div",2),d(82,"input",11),S("colorPickerChange",function(i){return r.color8=i}),f(),f(),d(83,"div",4),d(84,"p"),m(85,"Change cancel button class, in this example we are using a bootstrap button:"),f(),d(86,"pre"),m(87,'\n '),f(),f(),f(),E(88,"hr"),d(89,"div",1),d(90,"div",2),d(91,"input",12),S("colorPickerChange",function(i){return r.color9=i}),f(),f(),d(92,"div",4),d(93,"p"),m(94,"Show OK button:"),f(),d(95,"pre"),m(96,'\n '),f(),f(),f(),E(97,"hr"),d(98,"div",1),d(99,"div",2),d(100,"input",13),S("colorPickerChange",function(i){return r.color19=i}),f(),f(),d(101,"div",4),d(102,"p"),m(103,"Enable Eye Dropper:"),f(),d(104,"p"),m(105,"You can open the eye dropper by clicking the colored circle."),f(),d(106,"pre"),m(107,'\n '),f(),f(),f(),E(108,"hr"),d(109,"div",1),d(110,"div",2),d(111,"input",14),S("cpCmykColorChange",function(i){return r.cmykValue=i})("colorPickerChange",function(i){return r.cmykColor=r.onChangeColorCmyk(i),r.color10=i}),f(),E(112,"div",15),d(113,"div"),m(114),f(),d(115,"div"),d(116,"span",16),m(117,"C"),f(),d(118,"span",17),m(119,"M"),f(),f(),E(120,"div",15),d(121,"div"),d(122,"span",18),m(123,"Y"),f(),d(124,"span",19),m(125,"K"),f(),f(),E(126,"div",15),f(),d(127,"div",4),d(128,"p"),m(129,"Change event color:"),f(),d(130,"pre"),m(131,'\n\nC\nM\nY\nK\n '),f(),f(),f(),E(132,"hr"),d(133,"div",1),d(134,"div",2),d(135,"input",20),S("colorPickerChange",function(i){return r.color11=i}),f(),f(),d(136,"div",4),d(137,"p"),m(138,"With preset colors:"),f(),d(139,"pre"),m(140,"\n "),f(),f(),f(),E(141,"hr"),d(142,"div",1),d(143,"div",2),d(144,"input",21),S("colorPickerChange",function(i){return r.color13=i}),f(),f(),d(145,"div",4),d(146,"p"),m(147,"Add and remove preset colors:"),f(),d(148,"pre"),m(149,'\n '),f(),f(),f(),E(150,"hr"),d(151,"div",1),d(152,"div",2),d(153,"input",22,23),S("cpToggleChange",function(i){return r.toggle=i})("colorPickerChange",function(i){return r.color12=i}),f(),E(155,"div",15),d(156,"button",24,25),S("click",function(){return r.toggle=!r.toggle}),m(158,"Toggle"),f(),E(159,"br"),E(160,"br"),d(161,"div"),d(162,"b"),m(163),f(),f(),f(),d(164,"div",4),d(165,"p"),m(166,"Use cpToggle with cpIgnoredElements:"),f(),d(167,"pre"),m(168,'\n\n\n '),f(),f(),f(),E(169,"hr"),d(170,"div",1),d(171,"div",2),d(172,"input",26),S("colorPickerChange",function(i){return r.color18=i}),f(),f(),d(173,"div",4),d(174,"p"),m(175,"Auto positioning:"),f(),d(176,"pre"),m(177,'\n '),f(),f(),f(),E(178,"hr"),d(179,"div",1),d(180,"div",2),d(181,"input",27),S("colorPickerChange",function(i){return r.color14=i}),f(),E(182,"br"),d(183,"input",27),S("colorPickerChange",function(i){return r.color13=i}),f(),E(184,"br"),d(185,"input",27),S("colorPickerChange",function(i){return r.rgbaText=r.onChangeColorHex8(i),r.color16=i}),f(),E(186,"br"),d(187,"input",27),S("colorPickerChange",function(i){return r.color15=i}),f(),f(),d(188,"div",4),d(189,"p"),m(190,"Change alpha channel behaviour:"),f(),d(191,"pre"),m(192,'\n\n\n\n\n\n\n '),f(),f(),f(),E(193,"hr"),d(194,"div",28),d(195,"div",29),d(196,"span",30),S("colorPickerChange",function(i){return r.arrayColors[r.selectedColor]=i}),f(),f(),d(197,"div",31),d(198,"div",32),S("click",function(){return r.selectedColor="color1"}),f(),d(199,"div",32),S("click",function(){return r.selectedColor="color2"}),f(),d(200,"div",32),S("click",function(){return r.selectedColor="color3"}),f(),d(201,"div",32),S("click",function(){return r.selectedColor="color4"}),f(),d(202,"div",32),S("click",function(){return r.selectedColor="color5"}),f(),f(),d(203,"div",4),d(204,"p"),m(205,"Show the dialog permanently: "),f(),d(206,"pre"),m(207,'\n\n
\n\n
\n '),f(),f(),f(),E(208,"hr"),E(209,"br"),E(210,"hr"),d(211,"div",1),d(212,"div",2),d(213,"input",33),S("colorPickerClose",function(i){return r.onEventLog("colorPickerClose",i)})("colorPickerOpen",function(i){return r.onEventLog("colorPickerOpen",i)})("cpInputChange",function(i){return r.onEventLog("cpInputChange",i)})("cpSliderDragEnd",function(i){return r.onEventLog("cpSliderDragEnd",i)})("cpSliderDragStart",function(i){return r.onEventLog("cpSliderDragStart",i)})("keyup",function(i){return r.onEventLog("cpInputChange",i)}),f(),Y(214,XA,3,0,"ng-template",null,34,Ih),f(),d(216,"div",4),d(217,"p"),m(218,"Custom template: "),f(),d(219,"pre"),m(220,'\n\n\n
\n

Custom template.

\n
\n
\n '),f(),f(),E(221,"hr"),E(222,"br"),d(223,"div",1),d(224,"div",35),d(225,"table",36),d(226,"thead"),d(227,"tr"),d(228,"th"),m(229,"Options"),f(),d(230,"th"),m(231,"Values (default values in bold)"),f(),f(),f(),d(232,"tbody"),d(233,"tr"),d(234,"td"),m(235,"cpOutputFormat"),f(),d(236,"td"),d(237,"b"),m(238,"'auto'"),f(),m(239,", 'hex', 'rgba', 'hsla' "),f(),f(),d(240,"tr"),d(241,"td"),m(242,"cpPosition"),f(),d(243,"td"),d(244,"b"),m(245,"'auto'"),f(),m(246,", 'top', 'bottom', 'top-right', 'top-left', 'bottom-left', 'bottom-right' "),f(),f(),d(247,"tr"),d(248,"td"),m(249,"cpPositionOffset"),f(),d(250,"td"),d(251,"b"),m(252,"'0%'"),f(),E(253,"br"),m(254," Dialog offset (percent) relative to the element that contains the directive. "),f(),f(),d(255,"tr"),d(256,"td"),m(257,"cpPositionRelativeToArrow"),f(),d(258,"td"),d(259,"b"),m(260,"false"),f(),m(261,", true "),E(262,"br"),m(263," Dialog position is calculated relative to the dialog (false) or relative to the dialog arrow (true). "),f(),f(),d(264,"tr"),d(265,"td"),m(266,"cpWidth"),f(),d(267,"td"),d(268,"b"),m(269,"'230px'"),f(),E(270,"br"),m(271," Use this option to set color picker dialog width (pixels). "),f(),f(),d(272,"tr"),d(273,"td"),m(274,"cpHeight"),f(),d(275,"td"),d(276,"b"),m(277,"'auto'"),f(),E(278,"br"),m(279," Use this option to force color picker dialog height (pixels). "),f(),f(),d(280,"tr"),d(281,"td"),m(282,"cpSaveClickOutside"),f(),d(283,"td"),d(284,"b"),m(285,"true"),f(),m(286,", false"),E(287,"br"),m(288," If true the initial color is restored when user clicks outside. "),f(),f(),d(289,"tr"),d(290,"td"),m(291,"cpOKButton"),f(),d(292,"td"),d(293,"b"),m(294,"false"),f(),m(295,", true"),E(296,"br"),m(297," Shows the Ok button. Saves the selected color. "),f(),f(),d(298,"tr"),d(299,"td"),m(300,"cpOKButtonText"),f(),d(301,"td"),d(302,"b"),m(303,"'OK'"),f(),f(),f(),d(304,"tr"),d(305,"td"),m(306,"cpOKButtonClass"),f(),d(307,"td"),m(308," Class to customize the OK button. "),f(),f(),d(309,"tr"),d(310,"td"),m(311,"cpCancelButton"),f(),d(312,"td"),d(313,"b"),m(314,"false"),f(),m(315,", true"),E(316,"br"),m(317," Shows the Cancel button. Cancel the selected color. "),f(),f(),d(318,"tr"),d(319,"td"),m(320,"cpCancelButtonText"),f(),d(321,"td"),d(322,"b"),m(323,"'Cancel'"),f(),f(),f(),d(324,"tr"),d(325,"td"),m(326,"cpCancelButtonClass"),f(),d(327,"td"),m(328," Class to customize the Cancel button. "),f(),f(),d(329,"tr"),d(330,"td"),m(331,"cpFallbackColor"),f(),d(332,"td"),d(333,"b"),m(334,"'#fff'"),f(),E(335,"br"),m(336," Is used when the color is not well-formed or not defined. "),f(),f(),d(337,"tr"),d(338,"td"),m(339,"cpPresetLabel"),f(),d(340,"td"),d(341,"b"),m(342,"'Preset colors'"),f(),E(343,"br"),m(344," Label for preset colors if any provided used. "),f(),f(),d(345,"tr"),d(346,"td"),m(347,"cpPresetColors"),f(),d(348,"td"),d(349,"b"),m(350,"[]"),f(),E(351,"br"),m(352," Array of preset colors to show in the color picker dialog. "),f(),f(),d(353,"tr"),d(354,"td"),m(355,"cpToggle"),f(),d(356,"td"),d(357,"b"),m(358,"false"),f(),m(359,", true"),E(360,"br"),m(361," Input/ouput to open/close the color picker. "),f(),f(),d(362,"tr"),d(363,"td"),m(364,"cpIgnoredElements"),f(),d(365,"td"),d(366,"b"),m(367,"[]"),f(),E(368,"br"),m(369," Array of HTML elements that will be ignored by the color picker when they are clicked. "),f(),f(),d(370,"tr"),d(371,"td"),m(372,"cpDialogDisplay"),f(),d(373,"td"),d(374,"b"),m(375,"'popup'"),f(),m(376,", 'inline'"),E(377,"br"),m(378," popup: dialog is showed when user clicks in the directive."),E(379,"br"),m(380," inline: dialog is showed permanently. You can show/hide the dialog with cpToggle."),E(381,"br"),f(),f(),d(382,"tr"),d(383,"td"),m(384,"cpDisableInput"),f(),d(385,"td"),d(386,"b"),m(387,"false"),f(),m(388,", true"),E(389,"br"),m(390," Disables / hides the color input field from the dialog."),E(391,"br"),f(),f(),d(392,"tr"),d(393,"td"),m(394,"cpAlphaChannel"),f(),d(395,"td"),d(396,"b"),m(397,"'enabled'"),f(),m(398,", 'disabled', 'always', 'forced'"),E(399,"br"),m(400," enabled: alpha channel is not included for hexadecimal (hex6) values or for values without alpha (alpha = 1)."),E(401,"br"),m(402," disabled: alpha channel is completely disabled."),E(403,"br"),m(404," always: alpha channel is included for hexadecimal (hex6) values and values without alpha (alpha = 1)."),E(405,"br"),m(406," forced: alpha channel field is added for hexadecimal (hex6) values."),E(407,"br"),f(),f(),d(408,"tr"),d(409,"td"),m(410,"cpCmykEnabled"),f(),d(411,"td"),d(412,"b"),m(413,"false"),f(),m(414,", true"),E(415,"br"),m(416," Enables CMYK color input and selected CMYK color event sending on color change."),E(417,"br"),f(),f(),d(418,"tr"),d(419,"td"),m(420,"cpUseRootViewContainer"),f(),d(421,"td"),d(422,"b"),m(423,"false"),f(),m(424,", true"),E(425,"br"),m(426," Create dialog component in the root view container instead the elements view container."),E(427,"br"),f(),f(),d(428,"tr"),d(429,"td"),m(430,"cpAddColorButton"),f(),d(431,"td"),d(432,"b"),m(433,"false"),f(),m(434,", true"),E(435,"br"),m(436," Add or remove colors into your preset panel. The [cpPresetColors] is needed"),E(437,"br"),f(),f(),d(438,"tr"),d(439,"td"),m(440,"cpAddColorButtonText"),f(),d(441,"td"),d(442,"b"),m(443,"'Add color'"),f(),f(),f(),d(444,"tr"),d(445,"td"),m(446,"cpAddColorButtonClass"),f(),d(447,"td"),m(448," Class to customize the add color button. "),f(),f(),d(449,"tr"),d(450,"td"),m(451,"cpRemoveColorButtonClass"),f(),d(452,"td"),m(453," Class to customize the remove color button. "),f(),f(),d(454,"tr"),d(455,"td"),m(456,"cpPresetColorsClass"),f(),d(457,"td"),m(458," Class to customize the preset colors container. "),f(),f(),d(459,"tr"),d(460,"td"),m(461,"cpMaxPresetColorsLength"),f(),d(462,"td"),d(463,"b"),m(464,"8"),f(),m(465," (number)"),E(466,"br"),m(467," Use this option to set the max colors allowed into preset panel. "),f(),f(),d(468,"tr"),d(469,"td"),m(470,"cpPresetEmptyMessage"),f(),d(471,"td"),d(472,"b"),m(473,"'No colors added'"),f(),E(474,"br"),m(475," Message for empty colors if any provided used. "),f(),f(),d(476,"tr"),d(477,"td"),m(478,"cpPresetEmptyMessageClass"),f(),d(479,"td"),m(480," Class to customize the empty colors message. "),f(),f(),d(481,"tr"),d(482,"td"),m(483,"cpEyeDropper"),f(),d(484,"td"),m(485," Enable eye dropper on click of colored circle. Click again to pick a color. "),f(),f(),f(),f(),f(),f(),E(486,"hr"),E(487,"br"),d(488,"div",1),d(489,"div",35),d(490,"table",36),d(491,"thead"),d(492,"tr"),d(493,"th"),m(494,"Events"),f(),d(495,"th"),m(496,"Description (data format in bold)"),f(),f(),f(),d(497,"tbody"),d(498,"tr"),d(499,"td"),m(500,"colorPickerChange"),f(),d(501,"td"),m(502," Changed color value, send when color is changed. "),d(503,"b"),m(504,"(value: string)"),f(),f(),f(),d(505,"tr"),d(506,"td"),m(507,"colorPickerSelect"),f(),d(508,"td"),m(509," Selected color value, send when user presses the OK button. "),d(510,"b"),m(511,"(value: string)"),f(),f(),f(),d(512,"tr"),d(513,"td"),m(514,"cpToggleChange"),f(),d(515,"td"),m(516," Status of the dialog, send when dialog is opened / closed. "),d(517,"b"),m(518,"(open: boolean)"),f(),f(),f(),d(519,"tr"),d(520,"td"),m(521,"cpInputChange"),f(),d(522,"td"),m(523," Input name and its value, send when user changes color through inputs. "),d(524,"b"),m(525),f(),f(),f(),d(526,"tr"),d(527,"td"),m(528,"cpSliderChange"),f(),d(529,"td"),m(530," Slider name and its value, send when user changes color through slider. "),d(531,"b"),m(532),f(),f(),f(),d(533,"tr"),d(534,"td"),m(535,"cpCmykColorChange"),f(),d(536,"td"),m(537," CMYK color value, send when on color change if cpCmykEnabled is true. "),d(538,"b"),m(539,"(value: string)"),f(),f(),f(),d(540,"tr"),d(541,"td"),m(542,"cpPresetColorsChange"),f(),d(543,"td"),m(544," Preset colors value, send when Add Color button is pressed. "),d(545,"b"),m(546,"(value: array)"),f(),f(),f(),f(),f(),f(),f(),E(547,"hr"),E(548,"br"),f(),f()),2&n){const o=pi(154),i=pi(157),s=pi(215);w(11),F("background",r.color1),A("colorPicker",r.color1),w(13),F("background",r.color17),A("colorPicker",r.color17)("cpColorMode","grayscale"),w(9),F("background",r.color2),A("value",r.color2)("colorPicker",r.color2),w(9),F("background",r.color3),A("value",r.color3)("cpOutputFormat","rgba")("colorPicker",r.color3),w(3),F("background",r.color4),A("value",r.color4)("cpOutputFormat","hsla")("colorPicker",r.color4),w(9),F("background",r.color5),A("value",r.color5)("cpPosition","top-right")("colorPicker",r.color5),w(9),F("color",r.color6),A("cpPosition","bottom")("cpPositionOffset","50%")("cpPositionRelativeToArrow",!0)("colorPicker",r.color6),w(10),F("background",r.color7),A("value",r.color7)("cpCancelButton",!0)("colorPicker",r.color7),w(9),F("background",r.color8),A("value",r.color8)("cpCancelButton",!0)("cpCancelButtonClass","btn btn-primary btn-xs")("colorPicker",r.color8),w(9),F("background",r.color9),A("value",r.color9)("cpOKButton",!0)("cpSaveClickOutside",!1)("cpOKButtonClass","btn btn-primary btn-xs")("colorPicker",r.color9),w(9),F("background",r.color19),A("value",r.color9)("cpEyeDropper",!0)("cpSaveClickOutside",!1)("cpOKButtonClass","btn btn-primary btn-xs")("colorPicker",r.color19),w(11),F("background",r.color10),A("colorPicker",r.color10)("cpCmykEnabled",!0),w(3),fn(r.cmykValue),w(2),F("font-size",100*r.cmykColor.c,"px"),w(2),F("font-size",100*r.cmykColor.m,"px"),w(4),F("font-size",100*r.cmykColor.y,"px"),w(2),F("font-size",100*r.cmykColor.k,"px"),w(11),F("background",r.color11),A("cpPresetColors",cl(141,JA))("colorPicker",r.color11),w(9),F("background",r.color13),A("cpAlphaChannel","always")("cpOutputFormat","rgba")("cpPresetColors",cl(142,eI))("cpAddColorButton",!0)("colorPicker",r.color13),w(9),F("background",r.color12),A("cpFallbackColor","#f200bd")("cpIgnoredElements",fh(143,tI,i,o))("cpToggle",r.toggle)("colorPicker",r.color12),w(10),zr("Toggle status: ",r.toggle,""),w(9),F("background",r.color18),A("value",r.color18)("colorPicker",r.color18),w(9),F("background",r.color14),A("value",r.color14)("cpAlphaChannel","always")("cpOutputFormat","rgba")("colorPicker",r.color14),w(2),F("background",r.color13),A("value",r.color13)("cpAlphaChannel","disabled")("cpOutputFormat","rgba")("colorPicker",r.color13),w(2),F("background",r.rgbaText),A("value",r.color16)("cpAlphaChannel","always")("cpOutputFormat","hex")("colorPicker",r.color16),w(2),F("background",r.color15),A("value",r.color15)("cpAlphaChannel","forced")("cpOutputFormat","hex")("colorPicker",r.color15),w(9),F("background",r.arrayColors[r.selectedColor]),A("cpToggle",!0)("cpDialogDisplay","inline")("cpCancelButton",!0)("cpCancelButtonClass","btn btn-primary btn-xs")("colorPicker",r.arrayColors[r.selectedColor]),w(2),F("background",r.arrayColors.color1),w(1),F("background",r.arrayColors.color2),w(1),F("background",r.arrayColors.color3),w(1),F("background",r.arrayColors.color4),w(1),F("background",r.arrayColors.color5),w(11),F("background",r.color18),A("colorPicker",r.color18)("cpExtraTemplate",s),w(312),yi("(","{","input: string, value: string","}",")"),w(7),yi("(","{","slider: string, value: Object","}",")")}},directives:[ZA],styles:["input[_ngcontent-%COMP%]{width:150px;margin-bottom:16px}.cmyk-text[_ngcontent-%COMP%]{float:left;width:72px;height:72px;font-weight:bolder;line-height:72px;text-align:center;text-shadow:1px 1px 2px #bbb}.color-box[_ngcontent-%COMP%]{width:100px;height:25px;margin:16px auto;cursor:pointer}.change-me[_ngcontent-%COMP%]{cursor:pointer;font-size:30px;font-weight:bolder}"]}),e})(),rI=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_n({type:e,bootstrap:[nI]}),e.\u0275inj=nn({imports:[[eA,QA]]}),e})();XE().bootstrapModule(rI)}},ce=>{ce(ce.s=728)}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[179],{277:()=>{function pe(e){return"function"==typeof e}function Do(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const _o=Do(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function fr(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class wt{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:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const i of t)i.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(pe(r))try{r()}catch(i){n=i instanceof _o?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Dc(i)}catch(s){n=n??[],s instanceof _o?n=[...n,...s.errors]:n.push(s)}}if(n)throw new _o(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Dc(n);else{if(n instanceof wt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&fr(t,n)}remove(n){const{_finalizers:t}=this;t&&fr(t,n),n instanceof wt&&n._removeParent(this)}}wt.EMPTY=(()=>{const e=new wt;return e.closed=!0,e})();const vc=wt.EMPTY;function Cc(e){return e instanceof wt||e&&"closed"in e&&pe(e.remove)&&pe(e.add)&&pe(e.unsubscribe)}function Dc(e){pe(e)?e():e.unsubscribe()}const rn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wo={setTimeout(e,n,...t){const{delegate:r}=wo;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=wo;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function _c(e){wo.setTimeout(()=>{const{onUnhandledError:n}=rn;if(!n)throw e;n(e)})}function wc(){}const Am=is("C",void 0,void 0);function is(e,n,t){return{kind:e,value:n,error:t}}let on=null;function bo(e){if(rn.useDeprecatedSynchronousErrorHandling){const n=!on;if(n&&(on={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=on;if(on=null,t)throw r}}else e()}class ss extends wt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Cc(n)&&n.add(this)):this.destination=Nm}static create(n,t,r){return new pr(n,t,r)}next(n){this.isStopped?ls(function Sm(e){return is("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?ls(function Mm(e){return is("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?ls(Am,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 km=Function.prototype.bind;function as(e,n){return km.call(e,n)}class xm{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Eo(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Eo(r)}else Eo(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Eo(t)}}}class pr extends ss{constructor(n,t,r){let o;if(super(),pe(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&rn.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&as(n.next,i),error:n.error&&as(n.error,i),complete:n.complete&&as(n.complete,i)}):o=n}this.destination=new xm(o)}}function Eo(e){rn.useDeprecatedSynchronousErrorHandling?function Tm(e){rn.useDeprecatedSynchronousErrorHandling&&on&&(on.errorThrown=!0,on.error=e)}(e):_c(e)}function ls(e,n){const{onStoppedNotification:t}=rn;t&&wo.setTimeout(()=>t(e,n))}const Nm={closed:!0,next:wc,error:function Pm(e){throw e},complete:wc},cs="function"==typeof Symbol&&Symbol.observable||"@@observable";function bc(e){return e}let qe=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){const i=function Rm(e){return e&&e instanceof ss||function Fm(e){return e&&pe(e.next)&&pe(e.error)&&pe(e.complete)}(e)&&Cc(e)}(t)?t:new pr(t,r,o);return bo(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=Ic(r))((o,i)=>{const s=new pr({next:a=>{try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[cs](){return this}pipe(...t){return function Ec(e){return 0===e.length?bc:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}(t)(this)}toPromise(t){return new(t=Ic(t))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function Ic(e){var n;return null!==(n=e??rn.Promise)&&void 0!==n?n:Promise}const Om=Do(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let us=(()=>{class e extends qe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Ac(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new Om}next(t){bo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){bo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){bo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:o,observers:i}=this;return r||o?vc:(this.currentObservers=null,i.push(t),new wt(()=>{this.currentObservers=null,fr(i,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){const t=new qe;return t.source=this,t}}return e.create=(n,t)=>new Ac(n,t),e})();class Ac extends us{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:vc}}function hr(e){return n=>{if(function Lm(e){return pe(e?.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Io(e,n,t,r,o){return new Vm(e,n,t,r,o)}class Vm extends ss{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function sn(e){return this instanceof sn?(this.v=e,this):new sn(e)}function Um(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(g){return new Promise(function(y,v){i.push([f,g,y,v])>1||a(f,g)})})}function a(f,g){try{!function l(f){f.value instanceof sn?Promise.resolve(f.value.v).then(c,u):d(i[0][2],f)}(r[f](g))}catch(y){d(i[0][3],y)}}function c(f){a("next",f)}function u(f){a("throw",f)}function d(f,g){f(g),i.shift(),i.length&&a(i[0][0],i[0][1])}}function qm(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function Tc(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}const kc=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function xc(e){return pe(e?.then)}function Pc(e){return pe(e[cs])}function Nc(e){return Symbol.asyncIterator&&pe(e?.[Symbol.asyncIterator])}function Fc(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Rc=function Gm(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Oc(e){return pe(e?.[Rc])}function Lc(e){return Um(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield sn(t.read());if(o)return yield sn(void 0);yield yield sn(r)}}finally{t.releaseLock()}})}function Vc(e){return pe(e?.getReader)}function an(e){if(e instanceof qe)return e;if(null!=e){if(Pc(e))return function Wm(e){return new qe(n=>{const t=e[cs]();if(pe(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(kc(e))return function $m(e){return new qe(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,_c)})}(e);if(Nc(e))return Bc(e);if(Oc(e))return function Ym(e){return new qe(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Vc(e))return function Zm(e){return Bc(Lc(e))}(e)}throw Fc(e)}function Bc(e){return new qe(n=>{(function Qm(e,n){var t,r,o,i;return function jm(e,n,t,r){return new(t||(t=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):function o(i){return i instanceof t?i:new t(function(s){s(i)})}(u.value).then(a,l)}c((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=qm(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function $t(e,n,t,r=0,o=!1){const i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function jc(e,n,t=1/0){return pe(n)?jc((r,o)=>function Bm(e,n){return hr((t,r)=>{let o=0;t.subscribe(Io(r,i=>{r.next(e.call(n,i,o++))}))})}((i,s)=>n(r,i,o,s))(an(e(r,o))),t):("number"==typeof n&&(t=n),hr((r,o)=>function Xm(e,n,t,r,o,i,s,a){const l=[];let c=0,u=0,d=!1;const f=()=>{d&&!l.length&&!c&&n.complete()},g=v=>c{i&&n.next(v),c++;let _=!1;an(t(v,u++)).subscribe(Io(n,b=>{o?.(b),i?g(b):n.next(b)},()=>{_=!0},void 0,()=>{if(_)try{for(c--;l.length&&cy(b)):y(b)}f()}catch(b){n.error(b)}}))};return e.subscribe(Io(n,g,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,t)))}const Hc=new qe(e=>e.complete());function fs(e){return e[e.length-1]}function Uc(e,n=0){return hr((t,r)=>{t.subscribe(Io(r,o=>$t(r,e,()=>r.next(o),n),()=>$t(r,e,()=>r.complete(),n),o=>$t(r,e,()=>r.error(o),n)))})}function qc(e,n=0){return hr((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function zc(e,n){if(!e)throw new Error("Iterable cannot be null");return new qe(t=>{$t(t,n,()=>{const r=e[Symbol.asyncIterator]();$t(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function dy(...e){const n=function ny(e){return function ty(e){return e&&pe(e.schedule)}(fs(e))?e.pop():void 0}(e),t=function ry(e,n){return"number"==typeof fs(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?an(r[0]):function Jm(e=1/0){return jc(bc,e)}(t)(function uy(e,n){return n?function cy(e,n){if(null!=e){if(Pc(e))return function oy(e,n){return an(e).pipe(qc(n),Uc(n))}(e,n);if(kc(e))return function sy(e,n){return new qe(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(xc(e))return function iy(e,n){return an(e).pipe(qc(n),Uc(n))}(e,n);if(Nc(e))return zc(e,n);if(Oc(e))return function ay(e,n){return new qe(t=>{let r;return $t(t,n,()=>{r=e[Rc](),$t(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void t.error(s)}i?t.complete():t.next(o)},0,!0)}),()=>pe(r?.return)&&r.return()})}(e,n);if(Vc(e))return function ly(e,n){return zc(Lc(e),n)}(e,n)}throw Fc(e)}(e,n):an(e)}(r,n)):Hc}function ps(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new pr({next:()=>{r.unsubscribe(),e()}});return n(...t).subscribe(r)}function re(e){for(let n in e)if(e[n]===re)return n;throw Error("Could not find renamed property on target object.")}function oe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(oe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function gs(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const py=re({__forward_ref__:re});function ms(e){return e.__forward_ref__=ms,e.toString=function(){return oe(this())},e}function L(e){return function ys(e){return"function"==typeof e&&e.hasOwnProperty(py)&&e.__forward_ref__===ms}(e)?e():e}class F extends Error{constructor(n,t){super(function Ao(e,n){return`NG0${Math.abs(e)}${n?": "+n.trim():""}`}(n,t)),this.code=n}}function U(e){return"string"==typeof e?e:null==e?"":String(e)}function Mo(e,n){throw new F(-201,!1)}function Ye(e,n){null==e&&function ee(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function ce(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ln(e){return{providers:e.providers||[],imports:e.imports||[]}}function So(e){return Gc(e,To)||Gc(e,$c)}function Gc(e,n){return e.hasOwnProperty(n)?e[n]:null}function Wc(e){return e&&(e.hasOwnProperty(vs)||e.hasOwnProperty(_y))?e[vs]:null}const To=re({\u0275prov:re}),vs=re({\u0275inj:re}),$c=re({ngInjectableDef:re}),_y=re({ngInjectorDef:re});var V=(()=>((V=V||{})[V.Default=0]="Default",V[V.Host=1]="Host",V[V.Self=2]="Self",V[V.SkipSelf=4]="SkipSelf",V[V.Optional=8]="Optional",V))();let Cs;function nt(e){const n=Cs;return Cs=e,n}function Kc(e,n,t){const r=So(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&V.Optional?null:void 0!==n?n:void Mo(oe(e))}function Kt(e){return{toString:e}.toString()}var ut=(()=>((ut=ut||{})[ut.OnPush=0]="OnPush",ut[ut.Default=1]="Default",ut))(),bt=(()=>{return(e=bt||(bt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",bt;var e})();const ie=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),En={},J=[],ko=re({\u0275cmp:re}),Ds=re({\u0275dir:re}),_s=re({\u0275pipe:re}),Yc=re({\u0275mod:re}),Pt=re({\u0275fac:re}),gr=re({__NG_ELEMENT_ID__:re});let by=0;function xo(e){return Kt(()=>{const t=!0===e.standalone,r={},o={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ut.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||J,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||bt.Emulated,id:"c"+by++,styles:e.styles||J,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.dependencies,s=e.features;return o.inputs=Xc(e.inputs,r),o.outputs=Xc(e.outputs),s&&s.forEach(a=>a(o)),o.directiveDefs=i?()=>("function"==typeof i?i():i).map(Zc).filter(Qc):null,o.pipeDefs=i?()=>("function"==typeof i?i():i).map(Le).filter(Qc):null,o})}function Zc(e){return ne(e)||Oe(e)}function Qc(e){return null!==e}function In(e){return Kt(()=>({type:e.type,bootstrap:e.bootstrap||J,declarations:e.declarations||J,imports:e.imports||J,exports:e.exports||J,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Xc(e,n){if(null==e)return En;const t={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),t[o]=r,n&&(n[o]=i)}return t}const Re=xo;function ne(e){return e[ko]||null}function Oe(e){return e[Ds]||null}function Le(e){return e[_s]||null}const W=11;function Ge(e){return Array.isArray(e)&&"object"==typeof e[1]}function ft(e){return Array.isArray(e)&&!0===e[1]}function Es(e){return 0!=(8&e.flags)}function Ro(e){return 2==(2&e.flags)}function Oo(e){return 1==(1&e.flags)}function pt(e){return null!==e.template}function Ty(e){return 0!=(256&e[2])}function pn(e,n){return e.hasOwnProperty(Pt)?e[Pt]:null}class Py{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function _r(){return tu}function tu(e){return e.type.prototype.ngOnChanges&&(e.setInput=Fy),Ny}function Ny(){const e=ru(this),n=e?.current;if(n){const t=e.previous;if(t===En)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function Fy(e,n,t,r){const o=ru(e)||function Ry(e,n){return e[nu]=n}(e,{previous:En,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[t],l=s[a];i[a]=new Py(l&&l.currentValue,n,s===En),e[r]=n}_r.ngInherit=!0;const nu="__ngSimpleChanges__";function ru(e){return e[nu]||null}function ve(e){for(;Array.isArray(e);)e=e[0];return e}function Lo(e,n){return ve(n[e])}function it(e,n){return ve(n[e.index])}function Ts(e,n){return e.data[n]}function Xe(e,n){const t=n[e];return Ge(t)?t:t[0]}function Vo(e){return 64==(64&e[2])}function Yt(e,n){return null==n?null:e[n]}function ou(e){e[18]=0}function ks(e,n){e[5]+=n;let t=e,r=e[3];for(;null!==r&&(1===n&&1===t[5]||-1===n&&0===t[5]);)r[5]+=n,t=r,r=r[3]}const H={lFrame:hu(null),bindingsEnabled:!0};function su(){return H.bindingsEnabled}function D(){return H.lFrame.lView}function Z(){return H.lFrame.tView}function B(e){return H.lFrame.contextLView=e,e[8]}function j(e){return H.lFrame.contextLView=null,e}function we(){let e=au();for(;null!==e&&64===e.type;)e=e.parent;return e}function au(){return H.lFrame.currentTNode}function Et(e,n){const t=H.lFrame;t.currentTNode=e,t.isParent=n}function xs(){return H.lFrame.isParent}function Ps(){H.lFrame.isParent=!1}function Ve(){const e=H.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function kn(){return H.lFrame.bindingIndex++}function Ft(e){const n=H.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function Zy(e,n){const t=H.lFrame;t.bindingIndex=t.bindingRootIndex=e,Ns(n)}function Ns(e){H.lFrame.currentDirectiveIndex=e}function du(){return H.lFrame.currentQueryIndex}function Rs(e){H.lFrame.currentQueryIndex=e}function Xy(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[6]:null}function fu(e,n,t){if(t&V.SkipSelf){let o=n,i=e;for(;!(o=o.parent,null!==o||t&V.Host||(o=Xy(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;n=o,e=i}const r=H.lFrame=pu();return r.currentTNode=n,r.lView=e,!0}function Os(e){const n=pu(),t=e[1];H.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function pu(){const e=H.lFrame,n=null===e?null:e.child;return null===n?hu(e):n}function hu(e){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:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function gu(){const e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const mu=gu;function Ls(){const e=gu();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Be(){return H.lFrame.selectedIndex}function Zt(e){H.lFrame.selectedIndex=e}function Bo(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[l]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===n){e[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class br{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function Uo(e,n,t){let r=0;for(;rn){s=i-1;break}}}for(;i>16}(e),r=n;for(;t>0;)r=r[15],t--;return r}let js=!0;function zo(e){const n=js;return js=e,n}let fv=0;const It={};function Ir(e,n){const t=Us(e,n);if(-1!==t)return t;const r=n[1];r.firstCreatePass&&(e.injectorIndex=n.length,Hs(r.data,e),Hs(n,null),Hs(r.blueprint,null));const o=Go(e,n),i=e.injectorIndex;if(wu(o)){const s=xn(o),a=Pn(o,n),l=a[1].data;for(let c=0;c<8;c++)n[i+c]=a[s+c]|l[s+c]}return n[i+8]=o,i}function Hs(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Us(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Go(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;null!==o;){if(r=xu(o),null===r)return-1;if(t++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function Wo(e,n,t){!function pv(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(gr)&&(r=t[gr]),null==r&&(r=t[gr]=fv++);const o=255&r;n.data[e+(o>>5)]|=1<=0?255&n:yv:n}(t);if("function"==typeof i){if(!fu(n,e,r))return r&V.Host?Iu(o,0,r):Au(n,t,r,o);try{const s=i(r);if(null!=s||r&V.Optional)return s;Mo()}finally{mu()}}else if("number"==typeof i){let s=null,a=Us(e,n),l=-1,c=r&V.Host?n[16][6]:null;for((-1===a||r&V.SkipSelf)&&(l=-1===a?Go(e,n):n[a+8],-1!==l&&ku(r,!1)?(s=n[1],a=xn(l),n=Pn(l,n)):a=-1);-1!==a;){const u=n[1];if(Tu(i,a,u.data)){const d=gv(a,n,t,s,r,c);if(d!==It)return d}l=n[a+8],-1!==l&&ku(r,n[1].data[a+8]===c)&&Tu(i,a,n)?(s=u,a=xn(l),n=Pn(l,n)):a=-1}}return o}function gv(e,n,t,r,o,i){const s=n[1],a=s.data[e+8],u=$o(a,s,t,null==r?Ro(a)&&js:r!=s&&0!=(3&a.type),o&V.Host&&i===a);return null!==u?Ar(n,s,u,a):It}function $o(e,n,t,r,o){const i=e.providerIndexes,s=n.data,a=1048575&i,l=e.directiveStart,u=i>>20,f=o?a+u:e.directiveEnd;for(let g=r?a:a+u;g=l&&y.type===t)return g}if(o){const g=s[l];if(g&&pt(g)&&g.type===t)return l}return null}function Ar(e,n,t,r){let o=e[t];const i=n.data;if(function av(e){return e instanceof br}(o)){const s=o;s.resolving&&function hy(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new F(-200,`Circular dependency in DI detected for ${e}${t}`)}(function X(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():U(e)}(i[t]));const a=zo(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?nt(s.injectImpl):null;fu(e,r,V.Default);try{o=e[t]=s.factory(void 0,i,e,r),n.firstCreatePass&&t>=r.directiveStart&&function iv(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=tu(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}o&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,o),i&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,i),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,i))}(t,i[t],n)}finally{null!==l&&nt(l),zo(a),s.resolving=!1,mu()}}return o}function Tu(e,n,t){return!!(t[n+(e>>5)]&1<{const r=function Gs(e){return function(...t){if(e){const r=e(...t);for(const o in r)this[o]=r[o]}}}(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Rn)?l[Rn]:Object.defineProperty(l,Rn,{value:[]})[Rn];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class ${constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ce({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Je(e,n){void 0===n&&(n=e);for(let t=0;tArray.isArray(t)?Rt(t,n):n(t))}function Nu(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Ko(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function et(e,n,t){let r=Vn(e,n);return r>=0?e[1|r]=t:(r=~r,function bv(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(1===o)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function $s(e,n){const t=Vn(e,n);if(t>=0)return e[1|t]}function Vn(e,n){return function Ou(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){const i=r+(o-r>>1),s=e[i<n?o=i:r=i+1}return~(o<{const s=i;ia(s,t,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&ud(o,t),t}function ud(e,n){for(let t=0;t{n.push(i)})}}function ia(e,n,t,r){if(!(e=L(e)))return!1;let o=null,i=Wc(e);const s=!i&&ne(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Wc(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)ia(c,n,t,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let c;r.add(o);try{Rt(i.imports,u=>{ia(u,n,t,r)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&ud(c,n)}if(!a){const c=pn(o)||(()=>new o);n.push({provide:o,useFactory:c,deps:J},{provide:ad,useValue:o,multi:!0},{provide:id,useValue:()=>te(o),multi:!0})}const l=i.providers;null==l||a||Rt(l,u=>{n.push(u)})}}return o!==e&&void 0!==e.providers}const DC=re({provide:String,useValue:re});function sa(e){return null!==e&&"object"==typeof e&&DC in e}function hn(e){return"function"==typeof e}const aa=new $("Set Injector scope."),oi={},wC={};let la;function ii(){return void 0===la&&(la=new ld),la}class Un{}class pd extends Un{constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ua(n,s=>this.processProvider(s)),this.records.set(sd,qn(void 0,this)),o.has("environment")&&this.records.set(Un,qn(void 0,this));const i=this.records.get(aa);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ad.multi,J,V.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 t=Bn(this),r=nt(void 0);try{return n()}finally{Bn(t),nt(r)}}get(n,t=kr,r=V.Default){this.assertNotDestroyed();const o=Bn(this),i=nt(void 0);try{if(!(r&V.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function MC(e){return"function"==typeof e||"object"==typeof e&&e instanceof $}(n)&&So(n);a=l&&this.injectableDefInScope(l)?qn(ca(n),oi):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(r&V.Self?ii():this.parent).get(n,t=r&V.Optional&&t===kr?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Zo]=s[Zo]||[]).unshift(oe(n)),o)throw s;return function Ov(e,n,t,r){const o=e[Zo];throw n[Lu]&&o.unshift(n[Lu]),e.message=function Lv(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=oe(n);if(Array.isArray(n))o=n.map(oe).join(" -> ");else if("object"==typeof n){let i=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):oe(a)))}o=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(xv,"\n ")}`}("\n"+e.message,o,t,r),e.ngTokenPath=o,e[Zo]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{nt(i),Bn(o)}}resolveInjectorInitializers(){const n=Bn(this),t=nt(void 0);try{const r=this.get(id.multi,J,V.Self);for(const o of r)o()}finally{Bn(n),nt(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(oe(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new F(205,!1)}processProvider(n){let t=hn(n=L(n))?n:L(n&&n.provide);const r=function EC(e){return sa(e)?qn(void 0,e.useValue):qn(function hd(e,n,t){let r;if(hn(e)){const o=L(e);return pn(o)||ca(o)}if(sa(e))r=()=>L(e.useValue);else if(function fd(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Zs(e.deps||[]));else if(function dd(e){return!(!e||!e.useExisting)}(e))r=()=>te(L(e.useExisting));else{const o=L(e&&(e.useClass||e.provide));if(!function IC(e){return!!e.deps}(e))return pn(o)||ca(o);r=()=>new o(...Zs(e.deps))}return r}(e),oi)}(n);if(hn(n)||!0!==n.multi)this.records.get(t);else{let o=this.records.get(t);o||(o=qn(void 0,oi,!0),o.factory=()=>Zs(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===oi&&(t.value=wC,t.value=t.factory()),"object"==typeof t.value&&t.value&&function AC(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=L(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function ca(e){const n=So(e),t=null!==n?n.factory:pn(e);if(null!==t)return t;if(e instanceof $)throw new F(204,!1);if(e instanceof Function)return function bC(e){const n=e.length;if(n>0)throw function Tr(e,n){const t=[];for(let r=0;rt.factory(e):()=>new e}(e);throw new F(204,!1)}function qn(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function SC(e){return!!e.\u0275providers}function ua(e,n){for(const t of e)Array.isArray(t)?ua(t,n):SC(t)?ua(t.\u0275providers,n):n(t)}class gd{}class xC{resolveComponentFactory(n){throw function kC(e){const n=Error(`No component factory found for ${oe(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let Vr=(()=>{class e{}return e.NULL=new xC,e})();function PC(){return zn(we(),D())}function zn(e,n){return new Lt(it(e,n))}let Lt=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=PC,e})();function NC(e){return e instanceof Lt?e.nativeElement:e}class yd{}let RC=(()=>{class e{}return e.\u0275prov=ce({token:e,providedIn:"root",factory:()=>null}),e})();class da{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const OC=new da("14.2.3"),fa={};function ya(e){return e.ngOriginalError}class Gn{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&ya(n);for(;t&&ya(t);)t=ya(t);return t||null}}const va=new Map;let KC=0;const Da="__ngContext__";function Pe(e,n){Ge(n)?(e[Da]=n[20],function ZC(e){va.set(e[20],e)}(n)):e[Da]=n}function _a(e){return e.ownerDocument}var We=(()=>((We=We||{})[We.Important=1]="Important",We[We.DashCase=2]="DashCase",We))();function ba(e,n){return undefined(e,n)}function jr(e){const n=e[3];return ft(n)?n[3]:n}function Ea(e){return Pd(e[13])}function Ia(e){return Pd(e[4])}function Pd(e){for(;null!==e&&!ft(e);)e=e[4];return e}function $n(e,n,t,r,o){if(null!=r){let i,s=!1;ft(r)?i=r:Ge(r)&&(s=!0,r=r[0]);const a=ve(r);0===e&&null!==t?null==o?Vd(n,t,a):gn(n,t,a,o||null,!0):1===e&&null!==t?gn(n,t,a,o||null,!0):2===e?function Gd(e,n,t){const r=si(e,n);r&&function wD(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=i&&function ID(e,n,t,r,o){const i=t[7];i!==ve(t)&&$n(n,e,r,i,o);for(let a=10;a0&&(e[t-1][4]=r[4]);const i=Ko(e,10+n);!function hD(e,n){Hr(e,n,n[W],2,null,null),n[0]=null,n[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function Rd(e,n){if(!(128&n[2])){const t=n[W];t.destroyNode&&Hr(e,n,t,3,null,null),function yD(e){let n=e[13];if(!n)return Ta(e[1],e);for(;n;){let t=null;if(Ge(n))t=n[13];else{const r=n[10];r&&(t=r)}if(!t){for(;n&&!n[4]&&n!==e;)Ge(n)&&Ta(n[1],n),n=n[3];null===n&&(n=e),Ge(n)&&Ta(n[1],n),t=n&&n[4]}n=t}}(n)}}function Ta(e,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function _D(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[o=c]():r[o=-c].unsubscribe(),i+=2}else{const s=r[o=t[i+1]];t[i].call(s)}if(null!==r){for(let i=o+1;ii?"":o[d+1].toLowerCase();const g=8&r?f:null;if(g&&-1!==Kd(g,c,0)||2&r&&c!==f){if(ht(r))return!1;s=!0}}}}else{if(!s&&!ht(r)&&!ht(l))return!1;if(s&&ht(l))continue;s=!1,r=l|1&r}}return ht(r)||s}function ht(e){return 0==(1&e)}function kD(e,n,t,r){if(null===n)return-1;let o=0;if(r||!t){let i=!1;for(;o-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!ht(s)&&(n+=Xd(i,o),o=""),r=s,i=i||!ht(r);t++}return""!==o&&(n+=Xd(i,o)),n}const q={};function w(e){Jd(Z(),D(),Be()+e,!1)}function Jd(e,n,t,r){if(!r)if(3==(3&n[2])){const i=e.preOrderCheckHooks;null!==i&&jo(n,i,t)}else{const i=e.preOrderHooks;null!==i&&Ho(n,i,0,t)}Zt(t)}function rf(e,n=null,t=null,r){const o=of(e,n,t,r);return o.resolveInjectorInitializers(),o}function of(e,n=null,t=null,r,o=new Set){const i=[t||J,CC(e)];return r=r||("object"==typeof e?void 0:oe(e)),new pd(i,n||ii(),r||null,o)}let gt=(()=>{class e{static create(t,r){if(Array.isArray(t))return rf({name:""},r,t,"");{const o=t.name??"";return rf({name:o},t.parent,t.providers,o)}}}return e.THROW_IF_NOT_FOUND=kr,e.NULL=new ld,e.\u0275prov=ce({token:e,providedIn:"any",factory:()=>te(sd)}),e.__NG_ELEMENT_ID__=-1,e})();function P(e,n=V.Default){const t=D();return null===t?te(e,n):Mu(we(),t,L(e),n)}function ui(e,n){return e<<17|n<<2}function mt(e){return e>>17&32767}function Va(e){return 2|e}function Bt(e){return(131068&e)>>2}function Ba(e,n){return-131069&e|n<<2}function ja(e){return 1|e}function wf(e,n){const t=e.contentQueries;if(null!==t)for(let r=0;r22&&Jd(e,n,22,!1),t(r,o)}finally{Zt(i)}}function Ef(e,n,t){if(Es(n)){const o=n.directiveEnd;for(let i=n.directiveStart;i0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(r,o,s)}}function xf(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function Pf(e,n){n.flags|=2,(e.components||(e.components=[])).push(n.index)}function M_(e,n,t){if(t){if(n.exportAs)for(let r=0;r0&&tl(t)}}function tl(e){for(let r=Ea(e);null!==r;r=Ia(r))for(let o=10;o0&&tl(i)}const t=e[1].components;if(null!==t)for(let r=0;r0&&tl(o)}}function F_(e,n){const t=Xe(n,e),r=t[1];(function R_(e,n){for(let t=n.length;t-1&&(Sa(n,r),Ko(t,r))}this._attachedToViewContainer=!1}Rd(this._lView[1],this._lView)}onDestroy(n){Af(this._lView[1],this._lView,null,n)}markForCheck(){nl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){mi(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new F(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function mD(e,n){Hr(e,n,n[W],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new F(902,!1);this._appRef=n}}class O_ extends Ur{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;mi(n[1],n,n[8],!1)}checkNoChanges(){}get context(){return null}}class il extends Vr{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=ne(n);return new qr(t,this.ngModule)}}function jf(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class V_{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){const o=this.injector.get(n,fa,r);return o!==fa||t===fa?o:this.parentInjector.get(n,t,r)}}class qr extends gd{constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function OD(e){return e.map(RD).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return jf(this.componentDef.inputs)}get outputs(){return jf(this.componentDef.outputs)}create(n,t,r,o){let i=(o=o||this.ngModule)instanceof Un?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new V_(n,i):n,a=s.get(yd,null);if(null===a)throw new F(407,!1);const l=s.get(RC,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=r?function y_(e,n,t){return e.selectRootElement(n,t===bt.ShadowDom)}(c,r,this.componentDef.encapsulation):Ma(a.createRenderer(null,this.componentDef),u,function L_(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(u)),f=this.componentDef.onPush?288:272,g=Xa(0,null,null,1,0,null,null,null,null,null),y=pi(null,g,null,f,null,null,a,c,l,s,null);let v,_;Os(y);try{const b=function H_(e,n,t,r,o,i){const s=t[1];t[22]=e;const l=Yn(s,22,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(yi(l,c,!0),null!==e&&(Uo(o,e,c),null!==l.classes&&Na(o,e,l.classes),null!==l.styles&&$d(o,e,l.styles)));const u=r.createRenderer(e,n),d=pi(t,If(n),null,n.onPush?32:16,t[22],l,r,u,i||null,null,null);return s.firstCreatePass&&(Wo(Ir(l,t),s,n.type),Pf(s,l),Nf(l,t.length,1)),gi(t,d),t[22]=d}(d,this.componentDef,y,a,c);if(d)if(r)Uo(c,d,["ng-version",OC.full]);else{const{attrs:S,classes:C}=function LD(e){const n=[],t=[];let r=1,o=2;for(;r0&&Na(c,d,C.join(" "))}if(_=Ts(g,22),void 0!==t){const S=_.projection=[];for(let C=0;Ca(ve(Y[r.index])):r.index;let x=null;if(!a&&l&&(x=function sw(e,n,t,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,n,o,r.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=i,x.__ngLastListenerFn__=i,g=!1;else{i=rp(r,n,d,i,!1);const Y=t.listen(b,o,i);f.push(i,Y),u&&u.push(o,C,S,S+1)}}else i=rp(r,n,d,i,!1);const y=r.outputs;let v;if(g&&null!==y&&(v=y[o])){const _=v.length;if(_)for(let b=0;b<_;b+=2){const le=n[v[b]][v[b+1]].subscribe(i),Wt=f.length;f.push(i,le),u&&u.push(o,r.index,Wt,-(Wt+1))}}}(i,o,o[W],s,e,n,0,r),k}function np(e,n,t,r){try{return!1!==t(r)}catch(o){return Bf(e,o),!1}}function rp(e,n,t,r,o){return function i(s){if(s===Function)return r;nl(2&e.flags?Xe(e.index,n):n);let l=np(n,0,r,s),c=i.__ngNextListenerFn__;for(;c;)l=np(n,0,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function T(e=1){return function Jy(e){return(H.lFrame.contextLView=function ev(e,n){for(;e>0;)n=n[15],e--;return n}(e,H.lFrame.contextLView))[8]}(e)}function pp(e,n,t,r,o){const i=e[t+1],s=null===n;let a=r?mt(i):Bt(i),l=!1;for(;0!==a&&(!1===l||s);){const u=e[a+1];fw(e[a],n)&&(l=!0,e[a+1]=r?ja(u):Va(u)),a=r?mt(u):Bt(u)}l&&(e[t+1]=r?Va(i):ja(i))}function fw(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Vn(e,n)>=0}const Ee={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hp(e){return e.substring(Ee.key,Ee.keyEnd)}function gp(e,n){const t=Ee.textEnd;return t===n?-1:(n=Ee.keyEnd=function mw(e,n,t){for(;n32;)n++;return n}(e,Ee.key=n,t),sr(e,n,t))}function sr(e,n,t){for(;n=0;t=gp(n,t))et(e,hp(n),!0)}function yt(e,n,t,r){const o=D(),i=Z(),s=Ft(2);i.firstUpdatePass&&_p(i,e,s,r),n!==q&&Ne(o,s,n)&&bp(i,i.data[Be()],o,o[W],e,o[s+1]=function Aw(e,n){return null==e||("string"==typeof n?e+=n:"object"==typeof e&&(e=oe(Xt(e)))),e}(n,t),r,s)}function vt(e,n,t,r){const o=Z(),i=Ft(2);o.firstUpdatePass&&_p(o,null,i,r);const s=D();if(t!==q&&Ne(s,i,t)){const a=o.data[Be()];if(Ip(a,r)&&!Dp(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=gs(l,t||"")),ll(o,a,s,t,r)}else!function Iw(e,n,t,r,o,i,s,a){o===q&&(o=J);let l=0,c=0,u=0=e.expandoStartIndex}function _p(e,n,t,r){const o=e.data;if(null===o[t+1]){const i=o[Be()],s=Dp(e,t);Ip(i,r)&&null===n&&!s&&(n=!1),n=function Dw(e,n,t,r){const o=function Fs(e){const n=H.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(t=Wr(t=hl(null,e,n,t,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==o)if(t=hl(o,e,n,t,r),null===i){let l=function _w(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==Bt(r))return e[mt(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&(l=hl(null,e,n,l[1],r),l=Wr(l,n.attrs,r),function ww(e,n,t,r){e[mt(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l))}else i=function bw(e,n,t){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0)&&(c=!0)}else u=t;if(o)if(0!==l){const f=mt(e[a+1]);e[r+1]=ui(f,a),0!==f&&(e[f+1]=Ba(e[f+1],r)),e[a+1]=function r_(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=ui(a,0),0!==a&&(e[a+1]=Ba(e[a+1],r)),a=r;else e[r+1]=ui(l,0),0===a?a=r:e[l+1]=Ba(e[l+1],r),l=r;c&&(e[r+1]=Va(e[r+1])),pp(e,u,r,!0),pp(e,u,r,!1),function dw(e,n,t,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof n&&Vn(i,n)>=0&&(t[r+1]=ja(t[r+1]))}(n,u,e,r,i),s=ui(a,l),i?n.classBindings=s:n.styleBindings=s}(o,i,n,t,s,r)}}function hl(e,n,t,r,o){let i=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=t[o+1];f===q&&(f=d?J:void 0);let g=d?$s(f,r):u===r?f:void 0;if(c&&!bi(g)&&(g=$s(l,r)),bi(g)&&(a=g,s))return a;const y=e[o+1];o=s?mt(y):Bt(y)}if(null!==n){let l=i?n.residualClasses:n.residualStyles;null!=l&&(a=$s(l,r))}return a}function bi(e){return void 0!==e}function Ip(e,n){return 0!=(e.flags&(n?16:32))}function m(e,n=""){const t=D(),r=Z(),o=e+22,i=r.firstCreatePass?Yn(r,o,1,n,null):r.data[o],s=t[o]=function Aa(e,n){return e.createText(n)}(t[W],n);ai(r,t,s,i),Et(i,!1)}function Cn(e){return $r("",e,""),Cn}function $r(e,n,t){const r=D(),o=Xn(r,e,n,t);return o!==q&&jt(r,Be(),o),$r}function Ei(e,n,t,r,o){const i=D(),s=Jn(i,e,n,t,r,o);return s!==q&&jt(i,Be(),s),Ei}const lr="en-US";let $p=lr;class cr{}class Ch extends cr{constructor(n,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new il(this);const r=function Ze(e,n){const t=e[Yc]||null;if(!t&&!0===n)throw new Error(`Type ${oe(e)} does not have '\u0275mod' property.`);return t}(n);this._bootstrapComponents=function Vt(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=of(n,t,[{provide:cr,useValue:this},{provide:Vr,useValue:this.componentFactoryResolver}],oe(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(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class _l extends class W0{}{constructor(n){super(),this.moduleType=n}create(n){return new Ch(this.moduleType,n)}}function bl(e,n,t){const r=Ve()+e,o=D();return o[r]===q?Mt(o,r,t?n.call(t):n()):function Gr(e,n){return e[n]}(o,r)}function Mh(e,n,t,r,o){return function Th(e,n,t,r,o,i,s){const a=n+t;return yn(e,a,o,i)?Mt(e,a+2,s?r.call(s,o,i):r(o,i)):function Jr(e,n){const t=e[n];return t===q?void 0:t}(e,a+2)}(D(),Ve(),e,n,t,r,o)}function El(e){return n=>{setTimeout(e,void 0,n)}}const ue=class Db extends us{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let o=n,i=t||(()=>null),s=r;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=El(i),o&&(o=El(o)),s&&(s=El(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof wt&&n.add(a),a}};function _b(){return this._results[mn()]()}class Il{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 t=mn(),r=Il.prototype;r[t]||(r[t]=_b)}get changes(){return this._changes||(this._changes=new ue)}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,t){return this._results.reduce(n,t)}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,t){const r=this;r.dirty=!1;const o=Je(n);(this._changesDetected=!function _v(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=Eb,e})();const wb=Ht,bb=class extends wb{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(n,t){const r=this._declarationTContainer.tViews,o=pi(this._declarationLView,r,n,16,null,r.declTNode,null,null,null,null,t||null);o[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(o[19]=s.createEmbeddedView(r)),Ya(r,o,n),new Ur(o)}};function Eb(){return Ti(we(),D())}function Ti(e,n){return 4&e.type?new bb(n,e,zn(e,n)):null}let at=(()=>{class e{}return e.__NG_ELEMENT_ID__=Ib,e})();function Ib(){return Rh(we(),D())}const Ab=at,Nh=class extends Ab{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return zn(this._hostTNode,this._hostLView)}get injector(){return new Nn(this._hostTNode,this._hostLView)}get parentInjector(){const n=Go(this._hostTNode,this._hostLView);if(wu(n)){const t=Pn(n,this._hostLView),r=xn(n);return new Nn(t[1].data[r+8],t)}return new Nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=Fh(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const s=n.createEmbeddedView(t||{},i);return this.insert(s,o),s}createComponent(n,t,r,o,i){const s=n&&!function Sr(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const d=t||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.environmentInjector||d.ngModuleRef}const l=s?n:new qr(ne(n)),c=r||this.parentInjector;if(!i&&null==l.ngModule){const f=(s?c:this.parentInjector).get(Un,null);f&&(i=f)}const u=l.create(c,o,void 0,i);return this.insert(u.hostView,a),u}insert(n,t){const r=n._lView,o=r[1];if(function Uy(e){return ft(e[3])}(r)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=r[3],f=new Nh(d,d[6],d[3]);f.detach(f.indexOf(n))}}const i=this._adjustIndex(t),s=this._lContainer;!function vD(e,n,t,r){const o=10+r,i=t.length;r>0&&(t[o-1][4]=n),r0)r.push(s[a/2]);else{const c=i[a+1],u=n[-l];for(let d=10;d{class e{constructor(t){this.appInits=t,this.resolve=Fi,this.reject=Fi,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(te(sg,8))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const no=new $("AppId",{providedIn:"root",factory:function ag(){return`${Ol()}${Ol()}${Ol()}`}});function Ol(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const lg=new $("Platform Initializer"),Ll=new $("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),tE=new $("appBootstrapListener"),Ut=new $("LocaleId",{providedIn:"root",factory:()=>function Fv(e,n=V.Default){return"number"!=typeof n&&(n=0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)),te(e,n)}(Ut,V.Optional|V.SkipSelf)||function nE(){return typeof $localize<"u"&&$localize.locale||lr}()}),aE=(()=>Promise.resolve(0))();function Vl(e){typeof Zone>"u"?aE.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Se{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ue(!1),this.onMicrotaskEmpty=new ue(!1),this.onStable=new ue(!1),this.onError=new ue(!1),typeof Zone>"u")throw new F(908,!1);Zone.assertZonePatched();const o=this;if(o._nesting=0,o._outer=o._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const i=Zone.AsyncStackTaggingZoneSpec;o._inner=o._inner.fork(new i("Angular"))}Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&t,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function lE(){let e=ie.requestAnimationFrame,n=ie.cancelAnimationFrame;if(typeof Zone<"u"&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function dE(e){const n=()=>{!function uE(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ie,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,jl(e),e.isCheckStableRunning=!0,Bl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),jl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,o,i,s,a)=>{try{return dg(e),t.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&n(),fg(e)}},onInvoke:(t,r,o,i,s,a,l)=>{try{return dg(e),t.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),fg(e)}},onHasTask:(t,r,o,i)=>{t.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,jl(e),Bl(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,r,o,i)=>(t.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Se.isInAngularZone())throw new F(909,!1)}static assertNotInAngularZone(){if(Se.isInAngularZone())throw new F(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,cE,Fi,Fi);try{return i.runTask(s,t,r)}finally{i.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const cE={};function Bl(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function jl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function dg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function fg(e){e._nesting--,Bl(e)}class fE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ue,this.onMicrotaskEmpty=new ue,this.onStable=new ue,this.onError=new ue}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}}const pg=new $(""),Oi=new $("");let ql,Hl=(()=>{class e{constructor(t,r,o){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,ql||(function pE(e){ql=e}(o),o.addToWindow(r)),this._watchAngularEvents(),t.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:()=>{Se.assertNotInAngularZone(),Vl(()=>{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())Vl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:o})}whenStable(t,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,o){return[]}}return e.\u0275fac=function(t){return new(t||e)(te(Se),te(Ul),te(Oi))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),Ul=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return ql?.findTestabilityInTree(this,t,r)??null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),tn=null;const hg=new $("AllowMultipleToken"),zl=new $("PlatformDestroyListeners");function mg(e,n,t=[]){const r=`Platform: ${n}`,o=new $(r);return(i=[])=>{let s=Gl();if(!s||s.injector.get(hg,!1)){const a=[...t,...i,{provide:o,useValue:!0}];e?e(a):function mE(e){if(tn&&!tn.get(hg,!1))throw new F(400,!1);tn=e;const n=e.get(vg);(function gg(e){const n=e.get(lg,null);n&&n.forEach(t=>t())})(e)}(function yg(e=[],n){return gt.create({name:n,providers:[{provide:aa,useValue:"platform"},{provide:zl,useValue:new Set([()=>tn=null])},...e]})}(a,r))}return function vE(e){const n=Gl();if(!n)throw new F(401,!1);return n}()}}function Gl(){return tn?.get(vg)??null}let vg=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const o=function Dg(e,n){let t;return t="noop"===e?new fE:("zone.js"===e?void 0:e)||new Se(n),t}(r?.ngZone,function Cg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:Se,useValue:o}];return o.run(()=>{const s=gt.create({providers:i,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get(Gn,null);if(!l)throw new F(402,!1);return o.runOutsideAngular(()=>{const c=o.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Vi(this._modules,a),c.unsubscribe()})}),function _g(e,n,t){try{const r=t();return fl(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(l,o,()=>{const c=a.injector.get(Ri);return c.runInitializers(),c.donePromise.then(()=>(function Kp(e){Ye(e,"Expected localeId to be defined"),"string"==typeof e&&($p=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Ut,lr)||lr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,r=[]){const o=wg({},r);return function hE(e,n,t){const r=new _l(t);return Promise.resolve(r)}(0,0,t).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(t){const r=t.injector.get(Li);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new F(403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new F(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(zl,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(te(gt))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function wg(e,n){return Array.isArray(n)?n.reduce(wg,e):{...e,...n}}let Li=(()=>{class e{constructor(t,r,o){this._zone=t,this._injector=r,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new qe(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new qe(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Se.assertNotInAngularZone(),Vl(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Se.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=dy(i,s.pipe(function fy(e={}){const{connector:n=(()=>new us),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,c=0,u=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},g=()=>{f(),s=l=void 0,u=d=!1},y=()=>{const v=s;g(),v?.unsubscribe()};return hr((v,_)=>{c++,!d&&!u&&f();const b=l=l??n();_.add(()=>{c--,0===c&&!d&&!u&&(a=ps(y,o))}),b.subscribe(_),!s&&c>0&&(s=new pr({next:S=>b.next(S),error:S=>{d=!0,f(),a=ps(g,t,S),b.error(S)},complete:()=>{u=!0,f(),a=ps(g,r),b.complete()}}),an(v).subscribe(s))})(i)}}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const o=t instanceof gd;if(!this._injector.get(Ri).done)throw!o&&function mr(e){const n=ne(e)||Oe(e)||Le(e);return null!==n&&n.standalone}(t),new F(405,false);let s;s=o?t:this._injector.get(Vr).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function gE(e){return e.isBoundToModule}(s)?void 0:this._injector.get(cr),c=s.create(gt.NULL,[],r||s.selector,a),u=c.location.nativeElement,d=c.injector.get(pg,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Vi(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new F(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Vi(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(tE,[]).concat(this._bootstrapListeners).forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Vi(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new F(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(t){return new(t||e)(te(Se),te(Un),te(Gn))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Vi(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}let Mg=(()=>{class e{}return e.__NG_ELEMENT_ID__=DE,e})();function DE(e){return function _E(e,n,t){if(Ro(e)&&!t){const r=Xe(e.index,n);return new Ur(r,r)}return 47&e.type?new Ur(n[16],n):null}(we(),D(),16==(16&e))}class kg{constructor(){}supports(n){return zr(n)}create(n){return new ME(n)}}const AE=(e,n)=>n;class ME{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||AE}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,i=null;for(;t||r;){const s=!r||t&&t.currentIndex{s=this._trackByFn(o,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,o)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,o),r=!0),t=t._next,o++}),this.length=o;return this._truncate(t),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,t,r,o){let i;return null===n?i=this._itTail:(i=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,i,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,i,o)):n=this._addAfter(new SE(t,r),i,o),n}_verifyReinsertion(n,t,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}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,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,i=n._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const o=null===t?this._itHead:t._next;return n._next=o,n._prev=t,null===o?this._itTail=n:o._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new xg),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new xg),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,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class SE{constructor(n,t){this.item=n,this.trackById=t,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 TE{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,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class xg{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new TE,this.map.set(t,r)),r.add(n)}get(n,t){const o=this.map.get(n);return o?o.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Pg(e,n,t){const r=e.previousIndex;if(null===r)return r;let o=0;return t&&r{class e{constructor(t){this.factories=t}static create(t,r){if(null!=r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||Fg()),deps:[[e,new Xo,new Qo]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(null!=r)return r;throw new F(901,!1)}}return e.\u0275prov=ce({token:e,providedIn:"root",factory:Fg}),e})();const FE=mg(null,"core",[]);let RE=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)(te(Li))},e.\u0275mod=In({type:e}),e.\u0275inj=ln({}),e})(),Ui=null;function oo(){return Ui}const kt=new $("DocumentToken");class A1{constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let $g=(()=>{class e{constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new A1(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),Kg(a,o)}});for(let o=0,i=r.length;o{Kg(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,r){return!0}}return e.\u0275fac=function(t){return new(t||e)(P(at),P(Ht),P(Hi))},e.\u0275dir=Re({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function Kg(e,n){e.context.$implicit=n.item}let Yg=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new S1,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Zg("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Zg("ngIfElse",t),this._elseTemplateRef=t,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(t,r){return!0}}return e.\u0275fac=function(t){return new(t||e)(P(at),P(Ht))},e.\u0275dir=Re({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class S1{constructor(){this.$implicit=null,this.ngIf=null}}function Zg(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${oe(n)}'.`)}let Xg=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(t.ngTemplateOutlet||t.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:i,ngTemplateOutletInjector:s}=this;this._viewRef=r.createEmbeddedView(o,i,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return e.\u0275fac=function(t){return new(t||e)(P(at))},e.\u0275dir=Re({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[_r]}),e})(),em=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=In({type:e}),e.\u0275inj=ln({}),e})();const tm="browser";class dc extends class bI extends class VE{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function LE(e){Ui||(Ui=e)}(new dc)}onAndCancel(n,t,r){return n.addEventListener(t,r,!1),()=>{n.removeEventListener(t,r,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||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,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function EI(){return lo=lo||document.querySelector("base"),lo?lo.getAttribute("href"):null}();return null==t?null:function II(e){Ji=Ji||document.createElement("a"),Ji.setAttribute("href",e);const n=Ji.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){lo=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function b1(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[o,i]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}(document.cookie,n)}}let Ji,lo=null;const sm=new $("TRANSITION_ID"),MI=[{provide:sg,useFactory:function AI(e,n,t){return()=>{t.get(Ri).donePromise.then(()=>{const r=oo(),o=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const es=new $("EventManagerPlugins");let ts=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>o.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}addGlobalEventListener(t,r,o){return this._findPluginFor(r).addGlobalEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const o=this._plugins;for(let i=0;i{class e{constructor(){this._stylesSet=new Set}addStyles(t){const r=new Set;t.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),co=(()=>{class e extends lm{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,r,o){t.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(t){const r=[];this._addStylesToHost(this._stylesSet,t,r),this._hostNodes.set(t,r)}removeHost(t){const r=this._hostNodes.get(t);r&&r.forEach(cm),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(t,o,r)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(cm))}}return e.\u0275fac=function(t){return new(t||e)(te(kt))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();function cm(e){oo().remove(e)}const fc={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/"},pc=/%COMP%/g;function ns(e,n,t){for(let r=0;r{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let hc=(()=>{class e{constructor(t,r,o){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new gc(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;switch(r.encapsulation){case bt.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new RI(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(t),o}case 1:case bt.ShadowDom:return new OI(this.eventManager,this.sharedStylesHost,t,r);default:if(!this.rendererByCompId.has(r.id)){const o=ns(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(te(ts),te(co),te(no))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();class gc{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS(fc[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){(hm(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(hm(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?document.querySelector(n):n;if(!r)throw new Error(`The selector "${n}" did not match any elements`);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;const i=fc[o];i?n.setAttributeNS(i,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=fc[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(We.DashCase|We.Important)?n.style.setProperty(t,r,o&We.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&We.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,fm(r)):this.eventManager.addEventListener(n,t,fm(r))}}function hm(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class RI extends gc{constructor(n,t,r,o){super(n),this.component=r;const i=ns(o+"-"+r.id,r.styles,[]);t.addStyles(i),this.contentAttr=function PI(e){return"_ngcontent-%COMP%".replace(pc,e)}(o+"-"+r.id),this.hostAttr=function NI(e){return"_nghost-%COMP%".replace(pc,e)}(o+"-"+r.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}class OI extends gc{constructor(n,t,r,o){super(n),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=ns(o.id,o.styles,[]);for(let s=0;s{class e extends am{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}}return e.\u0275fac=function(t){return new(t||e)(te(kt))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const gm=["alt","control","meta","shift"],VI={"\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"},BI={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let jI=(()=>{class e extends am{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>oo().onAndCancel(t,i.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),gm.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(t,r){let o=VI[t.key]||t.key,i="";return r.indexOf("code.")>-1&&(o=t.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),gm.forEach(s=>{s!==o&&(0,BI[s])(t)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(t,r,o){return i=>{e.matchEventFullKeyCode(i,t)&&o.runGuarded(()=>r(i))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)(te(kt))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const zI=mg(FE,"browser",[{provide:Ll,useValue:tm},{provide:lg,useValue:function HI(){dc.makeCurrent()},multi:!0},{provide:kt,useFactory:function qI(){return function $v(e){Xs=e}(document),document},deps:[]}]),vm=new $(""),Cm=[{provide:Oi,useClass:class SI{addToWindow(n){ie.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},ie.getAllAngularTestabilities=()=>n.getAllTestabilities(),ie.getAllAngularRootElements=()=>n.getAllRootElements(),ie.frameworkStabilizers||(ie.frameworkStabilizers=[]),ie.frameworkStabilizers.push(r=>{const o=ie.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?oo().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:pg,useClass:Hl,deps:[Se,Ul,Oi]},{provide:Hl,useClass:Hl,deps:[Se,Ul,Oi]}],Dm=[{provide:aa,useValue:"root"},{provide:Gn,useFactory:function UI(){return new Gn},deps:[]},{provide:es,useClass:LI,multi:!0,deps:[kt,Se,Ll]},{provide:es,useClass:jI,multi:!0,deps:[kt]},{provide:hc,useClass:hc,deps:[ts,co,no]},{provide:yd,useExisting:hc},{provide:lm,useExisting:co},{provide:co,useClass:co,deps:[kt]},{provide:ts,useClass:ts,deps:[es,Se]},{provide:class iI{},useClass:TI,deps:[]},[]];let GI=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:no,useValue:t.appId},{provide:sm,useExisting:no},MI]}}}return e.\u0275fac=function(t){return new(t||e)(te(vm,12))},e.\u0275mod=In({type:e}),e.\u0275inj=ln({providers:[...Dm,...Cm],imports:[em,RE]}),e})();typeof window<"u"&&window;var Te=(()=>{return(e=Te||(Te={}))[e.HEX=0]="HEX",e[e.RGBA=1]="RGBA",e[e.HSLA=2]="HSLA",e[e.CMYK=3]="CMYK",Te;var e})();class Gt{constructor(n,t,r,o){this.r=n,this.g=t,this.b=r,this.a=o}}class rs{constructor(n,t,r,o){this.h=n,this.s=t,this.v=r,this.a=o}}class wn{constructor(n,t,r,o){this.h=n,this.s=t,this.l=r,this.a=o}}class bn{constructor(n,t,r,o,i=1){this.c=n,this.m=t,this.y=r,this.k=o,this.a=i}}let rA=(()=>{class e{constructor(){this.newValue=new ue}inputChange(t){const r=t.target.value;if(void 0===this.rg)this.newValue.emit(r);else{const o=parseFloat(r);this.newValue.emit({v:o,rg:this.rg})}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Re({type:e,selectors:[["","text",""]],hostBindings:function(t,r){1&t&&k("input",function(i){return r.inputChange(i)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}}),e})(),oA=(()=>{class e{constructor(t){this.elRef=t,this.dragEnd=new ue,this.dragStart=new ue,this.newValue=new ue,this.listenerMove=r=>this.move(r),this.listenerStop=()=>this.stop()}mouseDown(t){this.start(t)}touchStart(t){this.start(t)}move(t){t.preventDefault(),this.setCursor(t)}start(t){this.setCursor(t),t.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(t){const r=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==t.pageX?t.pageX:t.touches[0].pageX)-r.left-window.pageXOffset}getY(t){const r=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==t.pageY?t.pageY:t.touches[0].pageY)-r.top-window.pageYOffset}setCursor(t){const r=this.elRef.nativeElement.offsetWidth,o=this.elRef.nativeElement.offsetHeight,i=Math.max(0,Math.min(this.getX(t),r)),s=Math.max(0,Math.min(this.getY(t),o));void 0!==this.rgX&&void 0!==this.rgY?this.newValue.emit({s:i/r,v:1-s/o,rgX:this.rgX,rgY:this.rgY}):void 0===this.rgX&&void 0!==this.rgY?this.newValue.emit({v:s/o,rgY:this.rgY}):void 0!==this.rgX&&void 0===this.rgY&&this.newValue.emit({v:i/r,rgX:this.rgX})}}return e.\u0275fac=function(t){return new(t||e)(P(Lt))},e.\u0275dir=Re({type:e,selectors:[["","slider",""]],hostBindings:function(t,r){1&t&&k("mousedown",function(i){return r.mouseDown(i)})("touchstart",function(i){return r.touchStart(i)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}}),e})();class bm{constructor(n,t,r,o){this.h=n,this.s=t,this.v=r,this.a=o}}class Em{constructor(n,t,r,o){this.h=n,this.s=t,this.v=r,this.a=o}}let os=(()=>{class e{constructor(){this.active=null}setActive(t){this.active&&this.active!==t&&"inline"!==this.active.cpDialogDisplay&&this.active.closeDialog(),this.active=t}hsva2hsla(t){const r=t.h,o=t.s,i=t.v,s=t.a;if(0===i)return new wn(r,0,0,s);if(0===o&&1===i)return new wn(r,1,1,s);{const a=i*(2-o)/2;return new wn(r,i*o/(1-Math.abs(2*a-1)),a,s)}}hsla2hsva(t){const r=Math.min(t.h,1),o=Math.min(t.s,1),i=Math.min(t.l,1),s=Math.min(t.a,1);if(0===i)return new rs(r,0,0,s);{const a=i+o*(1-Math.abs(2*i-1))/2;return new rs(r,2*(a-i)/a,a,s)}}hsvaToRgba(t){let r,o,i;const s=t.h,a=t.s,l=t.v,c=t.a,u=Math.floor(6*s),d=6*s-u,f=l*(1-a),g=l*(1-d*a),y=l*(1-(1-d)*a);switch(u%6){case 0:r=l,o=y,i=f;break;case 1:r=g,o=l,i=f;break;case 2:r=f,o=l,i=y;break;case 3:r=f,o=g,i=l;break;case 4:r=y,o=f,i=l;break;case 5:r=l,o=f,i=g;break;default:r=0,o=0,i=0}return new Gt(r,o,i,c)}cmykToRgb(t){return new Gt((1-t.c)*(1-t.k),(1-t.m)*(1-t.k),(1-t.y)*(1-t.k),t.a)}rgbaToCmyk(t){const r=1-Math.max(t.r,t.g,t.b);return 1===r?new bn(0,0,0,1,t.a):new bn((1-t.r-r)/(1-r),(1-t.g-r)/(1-r),(1-t.b-r)/(1-r),r,t.a)}rgbaToHsva(t){let r,o;const i=Math.min(t.r,1),s=Math.min(t.g,1),a=Math.min(t.b,1),l=Math.min(t.a,1),c=Math.max(i,s,a),u=Math.min(i,s,a),d=c,f=c-u;if(o=0===c?0:f/c,c===u)r=0;else{switch(c){case i:r=(s-a)/f+(s=t.cpMaxPresetColorsLength),w(1),$r(" ",t.cpAddColorButtonText," ")}}function fA(e,n){1&e&&M(0,"div",33)}function pA(e,n){if(1&e){const t=Me();h(0,"input",39),k("keyup.enter",function(o){return B(t),j(T(2).onAcceptColor(o))})("newValue",function(o){return B(t),j(T(2).onAlphaInput(o))}),p()}if(2&e){const t=T(2);E("rg",1)("value",null==t.cmykText?null:t.cmykText.a)}}function hA(e,n){1&e&&(h(0,"div"),m(1,"A"),p())}function gA(e,n){if(1&e){const t=Me();h(0,"div",34)(1,"div",35)(2,"input",36),k("keyup.enter",function(o){return B(t),j(T().onAcceptColor(o))})("newValue",function(o){return B(t),j(T().onCyanInput(o))}),p(),h(3,"input",36),k("keyup.enter",function(o){return B(t),j(T().onAcceptColor(o))})("newValue",function(o){return B(t),j(T().onMagentaInput(o))}),p(),h(4,"input",36),k("keyup.enter",function(o){return B(t),j(T().onAcceptColor(o))})("newValue",function(o){return B(t),j(T().onYellowInput(o))}),p(),h(5,"input",36),k("keyup.enter",function(o){return B(t),j(T().onAcceptColor(o))})("newValue",function(o){return B(t),j(T().onBlackInput(o))}),p(),Q(6,pA,1,2,"input",37),p(),h(7,"div",35)(8,"div"),m(9,"C"),p(),h(10,"div"),m(11,"M"),p(),h(12,"div"),m(13,"Y"),p(),h(14,"div"),m(15,"K"),p(),Q(16,hA,2,0,"div",38),p()()}if(2&e){const t=T();R("display",3!==t.format?"none":"block"),w(2),E("rg",100)("value",null==t.cmykText?null:t.cmykText.c),w(1),E("rg",100)("value",null==t.cmykText?null:t.cmykText.m),w(1),E("rg",100)("value",null==t.cmykText?null:t.cmykText.y),w(1),E("rg",100)("value",null==t.cmykText?null:t.cmykText.k),w(1),E("ngIf","disabled"!==t.cpAlphaChannel),w(10),E("ngIf","disabled"!==t.cpAlphaChannel)}}function mA(e,n){if(1&e){const t=Me();h(0,"input",39),k("keyup.enter",function(o){return B(t),j(T(2).onAcceptColor(o))})("newValue",function(o){return B(t),j(T(2).onAlphaInput(o))}),p()}if(2&e){const t=T(2);E("rg",1)("value",null==t.hslaText?null:t.hslaText.a)}}function yA(e,n){1&e&&(h(0,"div"),m(1,"A"),p())}function vA(e,n){if(1&e){const t=Me();h(0,"div",40)(1,"div",35)(2,"input",41),k("keyup.enter",function(o){return B(t),j(T().onAcceptColor(o))})("newValue",function(o){return B(t),j(T().onHueInput(o))}),p(),h(3,"input",36),k("keyup.enter",function(o){return B(t),j(T().onAcceptColor(o))})("newValue",function(o){return B(t),j(T().onSaturationInput(o))}),p(),h(4,"input",36),k("keyup.enter",function(o){return B(t),j(T().onAcceptColor(o))})("newValue",function(o){return B(t),j(T().onLightnessInput(o))}),p(),Q(5,mA,1,2,"input",37),p(),h(6,"div",35)(7,"div"),m(8,"H"),p(),h(9,"div"),m(10,"S"),p(),h(11,"div"),m(12,"L"),p(),Q(13,yA,2,0,"div",38),p()()}if(2&e){const t=T();R("display",2!==t.format?"none":"block"),w(2),E("rg",360)("value",null==t.hslaText?null:t.hslaText.h),w(1),E("rg",100)("value",null==t.hslaText?null:t.hslaText.s),w(1),E("rg",100)("value",null==t.hslaText?null:t.hslaText.l),w(1),E("ngIf","disabled"!==t.cpAlphaChannel),w(8),E("ngIf","disabled"!==t.cpAlphaChannel)}}function CA(e,n){if(1&e){const t=Me();h(0,"input",39),k("keyup.enter",function(o){return B(t),j(T(2).onAcceptColor(o))})("newValue",function(o){return B(t),j(T(2).onAlphaInput(o))}),p()}if(2&e){const t=T(2);E("rg",1)("value",null==t.rgbaText?null:t.rgbaText.a)}}function DA(e,n){1&e&&(h(0,"div"),m(1,"A"),p())}function _A(e,n){if(1&e){const t=Me();h(0,"div",42)(1,"div",35)(2,"input",43),k("keyup.enter",function(o){return B(t),j(T().onAcceptColor(o))})("newValue",function(o){return B(t),j(T().onRedInput(o))}),p(),h(3,"input",43),k("keyup.enter",function(o){return B(t),j(T().onAcceptColor(o))})("newValue",function(o){return B(t),j(T().onGreenInput(o))}),p(),h(4,"input",43),k("keyup.enter",function(o){return B(t),j(T().onAcceptColor(o))})("newValue",function(o){return B(t),j(T().onBlueInput(o))}),p(),Q(5,CA,1,2,"input",37),p(),h(6,"div",35)(7,"div"),m(8,"R"),p(),h(9,"div"),m(10,"G"),p(),h(11,"div"),m(12,"B"),p(),Q(13,DA,2,0,"div",38),p()()}if(2&e){const t=T();R("display",1!==t.format?"none":"block"),w(2),E("rg",255)("value",null==t.rgbaText?null:t.rgbaText.r),w(1),E("rg",255)("value",null==t.rgbaText?null:t.rgbaText.g),w(1),E("rg",255)("value",null==t.rgbaText?null:t.rgbaText.b),w(1),E("ngIf","disabled"!==t.cpAlphaChannel),w(8),E("ngIf","disabled"!==t.cpAlphaChannel)}}function wA(e,n){if(1&e){const t=Me();h(0,"input",39),k("keyup.enter",function(o){return B(t),j(T(2).onAcceptColor(o))})("newValue",function(o){return B(t),j(T(2).onAlphaInput(o))}),p()}if(2&e){const t=T(2);E("rg",1)("value",t.hexAlpha)}}function bA(e,n){1&e&&(h(0,"div"),m(1,"A"),p())}function EA(e,n){if(1&e){const t=Me();h(0,"div",44)(1,"div",35)(2,"input",45),k("blur",function(){return B(t),j(T().onHexInput(null))})("keyup.enter",function(o){return B(t),j(T().onAcceptColor(o))})("newValue",function(o){return B(t),j(T().onHexInput(o))}),p(),Q(3,wA,1,2,"input",37),p(),h(4,"div",35)(5,"div"),m(6,"Hex"),p(),Q(7,bA,2,0,"div",38),p()()}if(2&e){const t=T();R("display",0!==t.format?"none":"block"),wi("hex-alpha","forced"===t.cpAlphaChannel),w(2),E("value",t.hexText),w(1),E("ngIf","forced"===t.cpAlphaChannel),w(4),E("ngIf","forced"===t.cpAlphaChannel)}}function IA(e,n){if(1&e){const t=Me();h(0,"input",39),k("keyup.enter",function(o){return B(t),j(T(2).onAcceptColor(o))})("newValue",function(o){return B(t),j(T(2).onAlphaInput(o))}),p()}if(2&e){const t=T(2);E("rg",1)("value",null==t.hslaText?null:t.hslaText.a)}}function AA(e,n){if(1&e){const t=Me();h(0,"div",46)(1,"div",35)(2,"input",36),k("keyup.enter",function(o){return B(t),j(T().onAcceptColor(o))})("newValue",function(o){return B(t),j(T().onValueInput(o))}),p(),Q(3,IA,1,2,"input",37),p(),h(4,"div",35)(5,"div"),m(6,"V"),p(),h(7,"div"),m(8,"A"),p()()()}if(2&e){const t=T();w(2),E("rg",100)("value",null==t.hslaText?null:t.hslaText.l),w(1),E("ngIf","disabled"!==t.cpAlphaChannel)}}function MA(e,n){if(1&e){const t=Me();h(0,"div",47)(1,"span",48),k("click",function(){return B(t),j(T().onFormatToggle(-1))}),p(),h(2,"span",48),k("click",function(){return B(t),j(T().onFormatToggle(1))}),p()()}}function SA(e,n){if(1&e){const t=Me();h(0,"span",55),k("click",function(o){B(t);const i=T().$implicit;return j(T(3).onRemovePresetColor(o,i))}),p()}2&e&&vn(T(4).cpRemoveColorButtonClass)}function TA(e,n){if(1&e){const t=Me();h(0,"div",53),k("click",function(){const i=B(t).$implicit;return j(T(3).setColorFromString(i))}),Q(1,SA,1,3,"span",54),p()}if(2&e){const t=n.$implicit,r=T(3);R("background-color",t),w(1),E("ngIf",r.cpAddColorButton)}}function kA(e,n){if(1&e&&(h(0,"div"),Q(1,TA,2,3,"div",52),p()),2&e){const t=T(2);vn(t.cpPresetColorsClass),w(1),E("ngForOf",t.cpPresetColors)}}function xA(e,n){if(1&e&&(h(0,"div"),m(1),p()),2&e){const t=T(2);vn(t.cpPresetEmptyMessageClass),w(1),Cn(t.cpPresetEmptyMessage)}}function PA(e,n){if(1&e&&(h(0,"div",49),M(1,"hr"),h(2,"div",50),m(3),p(),Q(4,kA,2,4,"div",51),Q(5,xA,2,4,"div",51),p()),2&e){const t=T();w(3),Cn(t.cpPresetLabel),w(1),E("ngIf",null==t.cpPresetColors?null:t.cpPresetColors.length),w(1),E("ngIf",!(null!=t.cpPresetColors&&t.cpPresetColors.length)&&t.cpAddColorButton)}}function NA(e,n){if(1&e){const t=Me();h(0,"button",58),k("click",function(o){return B(t),j(T(2).onCancelColor(o))}),m(1),p()}if(2&e){const t=T(2);vn(t.cpCancelButtonClass),w(1),Cn(t.cpCancelButtonText)}}function FA(e,n){if(1&e){const t=Me();h(0,"button",58),k("click",function(o){return B(t),j(T(2).onAcceptColor(o))}),m(1),p()}if(2&e){const t=T(2);vn(t.cpOKButtonClass),w(1),Cn(t.cpOKButtonText)}}function RA(e,n){if(1&e&&(h(0,"div",56),Q(1,NA,2,4,"button",57),Q(2,FA,2,4,"button",57),p()),2&e){const t=T();w(1),E("ngIf",t.cpCancelButton),w(1),E("ngIf",t.cpOKButton)}}function OA(e,n){1&e&&dl(0)}function LA(e,n){if(1&e&&(h(0,"div",59),Q(1,OA,1,0,"ng-container",60),p()),2&e){const t=T();w(1),E("ngTemplateOutlet",t.cpExtraTemplate)}}const Im=typeof window<"u"&&"ontouchstart"in window;let VA=(()=>{class e{constructor(t,r,o,i,s,a){this.ngZone=t,this.elRef=r,this.cdRef=o,this.document=i,this.platformId=s,this.service=a,this.isIE10=!1,this.dialogArrowSize=10,this.dialogArrowOffset=15,this.dialogInputFields=[Te.HEX,Te.RGBA,Te.HSLA,Te.CMYK],this.useRootViewContainer=!1,this.eyeDropperSupported=function rI(e){return e===tm}(this.platformId)&&"EyeDropper"in this.document.defaultView}handleEsc(t){this.show&&"popup"===this.cpDialogDisplay&&this.onCancelColor(t)}handleEnter(t){this.show&&"popup"===this.cpDialogDisplay&&this.onAcceptColor(t)}ngOnInit(){this.slider=new bm(0,0,0,0),this.sliderDimMax=new Em(this.hueSlider.nativeElement.offsetWidth||140,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth||140),this.format=this.cpCmykEnabled?Te.CMYK:"rgba"===this.cpOutputFormat?Te.RGBA:"hsla"===this.cpOutputFormat?Te.HSLA:Te.HEX,this.listenerMouseDown=o=>{this.onMouseDown(o)},this.listenerResize=()=>{this.onResize()},this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){230===this.cpWidth&&"inline"!==this.cpDialogDisplay||(this.sliderDimMax=new Em(this.hueSlider.nativeElement.offsetWidth||140,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth||140),this.updateColorPicker(!1),this.cdRef.detectChanges())}openDialog(t,r=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(t),this.setColorFromString(t,r),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(t,r,o,i,s,a,l,c,u,d,f,g,y,v,_,b,S,C,x,Y,le,Wt,uo,fo,po,ho,go,mo,yo,vo,Co,KA,YA,ZA,QA,XA,JA,eM){this.setInitialColor(o),this.setColorMode(c),this.isIE10=10===function nA(){let e="";typeof navigator<"u"&&(e=navigator.userAgent.toLowerCase());const n=e.indexOf("msie ");return n>0&&parseInt(e.substring(n+5,e.indexOf(".",n)),10)}(),this.directiveInstance=t,this.directiveElementRef=r,this.cpDisableInput=g,this.cpCmykEnabled=u,this.cpAlphaChannel=d,this.cpOutputFormat=f,this.cpDialogDisplay=a,this.cpIgnoredElements=y,this.cpSaveClickOutside=v,this.cpCloseClickOutside=_,this.useRootViewContainer=b,this.width=this.cpWidth=parseInt(i,10),this.height=this.cpHeight=parseInt(s,10),this.cpPosition=S,this.cpPositionOffset=parseInt(C,10),this.cpOKButton=ho,this.cpOKButtonText=mo,this.cpOKButtonClass=go,this.cpCancelButton=yo,this.cpCancelButtonText=Co,this.cpCancelButtonClass=vo,this.cpEyeDropper=XA,this.fallbackColor=l||"#fff",this.setPresetConfig(Y,le),this.cpPresetColorsClass=Wt,this.cpMaxPresetColorsLength=uo,this.cpPresetEmptyMessage=fo,this.cpPresetEmptyMessageClass=po,this.cpAddColorButton=KA,this.cpAddColorButtonText=ZA,this.cpAddColorButtonClass=YA,this.cpRemoveColorButtonClass=QA,this.cpTriggerElement=JA,this.cpExtraTemplate=eM,x||(this.dialogArrowOffset=0),"inline"===a&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),"hex"===f&&"always"!==d&&"forced"!==d&&(this.cpAlphaChannel="disabled")}setColorMode(t){switch(t.toString().toUpperCase()){case"1":case"C":case"COLOR":default:this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3}}setInitialColor(t){this.initialColor=t}setPresetConfig(t,r){this.cpPresetLabel=t,this.cpPresetColors=r}setColorFromString(t,r=!0,o=!0){let i;"always"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel?(i=this.service.stringToHsva(t,!0),!i&&!this.hsva&&(i=this.service.stringToHsva(t,!1))):i=this.service.stringToHsva(t,!1),!i&&!this.hsva&&(i=this.service.stringToHsva(this.fallbackColor,!1)),i&&(this.hsva=i,this.sliderH=this.hsva.h,"hex"===this.cpOutputFormat&&"disabled"===this.cpAlphaChannel&&(this.hsva.a=1),this.updateColorPicker(r,o))}onResize(){"fixed"===this.position?this.setDialogPosition():"inline"!==this.cpDialogDisplay&&this.closeColorPicker()}onDragEnd(t){this.directiveInstance.sliderDragEnd({slider:t,color:this.outputColor})}onDragStart(t){this.directiveInstance.sliderDragStart({slider:t,color:this.outputColor})}onMouseDown(t){this.show&&!this.isIE10&&"popup"===this.cpDialogDisplay&&t.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,t.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,t.target)&&0===this.cpIgnoredElements.filter(r=>r===t.target).length&&this.ngZone.run(()=>{this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker()})}onAcceptColor(t){t.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),"popup"===this.cpDialogDisplay&&this.closeColorPicker()}onCancelColor(t){this.hsva=null,t.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),"popup"===this.cpDialogDisplay&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onEyeDropper(){this.eyeDropperSupported&&(new window.EyeDropper).open().then(r=>{this.setColorFromString(r.sRGBHex,!0)})}onFormatToggle(t){const r=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),o=((this.dialogInputFields.indexOf(this.format)+t)%r+r)%r;this.format=this.dialogInputFields[o]}onColorChange(t){this.hsva.s=t.s/t.rgX,this.hsva.v=t.v/t.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(t){this.hsva.h=t.v/t.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(t){this.hsva.v=t.v/t.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(t){this.hsva.a=t.v/t.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(t){if(null===t)this.updateColorPicker();else{t&&"#"!==t[0]&&(t="#"+t);let r=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;"always"===this.cpAlphaChannel&&(r=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);const o=r.test(t);o&&(t.length<5&&(t="#"+t.substring(1).split("").map(i=>i+i).join("")),"forced"===this.cpAlphaChannel&&(t+=Math.round(255*this.hsva.a).toString(16)),this.setColorFromString(t,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:o,value:t,color:this.outputColor})}}onRedInput(t){const r=this.service.hsvaToRgba(this.hsva),o=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;o&&(r.r=t.v/t.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid:o,value:r.r,color:this.outputColor})}onBlueInput(t){const r=this.service.hsvaToRgba(this.hsva),o=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;o&&(r.b=t.v/t.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid:o,value:r.b,color:this.outputColor})}onGreenInput(t){const r=this.service.hsvaToRgba(this.hsva),o=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;o&&(r.g=t.v/t.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid:o,value:r.g,color:this.outputColor})}onHueInput(t){const r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(this.hsva.h=t.v/t.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:r,value:this.hsva.h,color:this.outputColor})}onValueInput(t){const r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(this.hsva.v=t.v/t.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:r,value:this.hsva.v,color:this.outputColor})}onAlphaInput(t){const r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(this.hsva.a=t.v/t.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:r,value:this.hsva.a,color:this.outputColor})}onLightnessInput(t){const r=this.service.hsva2hsla(this.hsva),o=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;o&&(r.l=t.v/t.rg,this.hsva=this.service.hsla2hsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid:o,value:r.l,color:this.outputColor})}onSaturationInput(t){const r=this.service.hsva2hsla(this.hsva),o=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;o&&(r.s=t.v/t.rg,this.hsva=this.service.hsla2hsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid:o,value:r.s,color:this.outputColor})}onCyanInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.c=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.m=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.y=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.k=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(t,r){t.stopPropagation(),this.cpPresetColors.filter(o=>o===r).length||(this.cpPresetColors=this.cpPresetColors.concat(r),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(t,r){t.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(o=>o!==r),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||this.ngZone.runOutsideAngular(()=>{Im?document.addEventListener("touchstart",this.listenerMouseDown):document.addEventListener("mousedown",this.listenerMouseDown)}),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||(Im?document.removeEventListener("touchstart",this.listenerMouseDown):document.removeEventListener("mousedown",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(t=!0,r=!0,o=!1){if(this.sliderDimMax){let i,s,a;2===this.cpColorMode&&(this.hsva.s=0);const l=this.outputColor;if(s=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(o?(a=this.service.cmykToRgb(this.service.normalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(a)):(a=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(a))),a=this.service.denormalizeRGBA(a),this.sliderH=this.hsva.h):a=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),i=this.service.denormalizeRGBA(this.service.hsvaToRgba(new rs(this.sliderH||this.hsva.h,1,1,1))),r&&(this.hslaText=new wn(Math.round(360*s.h),Math.round(100*s.s),Math.round(100*s.l),Math.round(100*s.a)/100),this.rgbaText=new Gt(a.r,a.g,a.b,Math.round(100*a.a)/100),this.cpCmykEnabled&&(this.cmykText=new bn(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(100*this.cmyk.a)/100)),this.hexText=this.service.rgbaToHex(a,"always"===this.cpAlphaChannel),this.hexAlpha=this.rgbaText.a),"auto"===this.cpOutputFormat&&this.format!==Te.RGBA&&this.format!==Te.CMYK&&this.format!==Te.HSLA&&this.hsva.a<1&&(this.format=this.hsva.a<1?Te.RGBA:Te.HEX),this.hueSliderColor="rgb("+i.r+","+i.g+","+i.b+")",this.alphaSliderColor="rgb("+a.r+","+a.g+","+a.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==Te.CMYK)this.cmykColor="";else if("always"===this.cpAlphaChannel||"enabled"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel){const c=Math.round(100*this.cmyk.a)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${c})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new bm((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),t&&l!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if("inline"===this.cpDialogDisplay)this.position="relative";else{let o,t="static",r="",i=null,s=null,a=this.directiveElementRef.nativeElement.parentNode;const l=this.dialogElement.nativeElement.offsetHeight;for(;null!==a&&"HTML"!==a.tagName;){if(o=window.getComputedStyle(a),t=o.getPropertyValue("position"),r=o.getPropertyValue("transform"),"static"!==t&&null===i&&(i=a),r&&"none"!==r&&null===s&&(s=a),"fixed"===t){i=s;break}a=a.parentNode}const c=this.createDialogBox(this.directiveElementRef.nativeElement,"fixed"!==t);if(this.useRootViewContainer||"fixed"===t&&(!i||i instanceof HTMLUnknownElement))this.top=c.top,this.left=c.left;else{null===i&&(i=a);const d=this.createDialogBox(i,"fixed"!==t);this.top=c.top-d.top,this.left=c.left-d.left}"fixed"===t&&(this.position="fixed");let u=this.cpPosition;"auto"===this.cpPosition&&(u=function tA(e,n){let t="right",r="bottom";const{height:o,width:i}=e,{top:s,left:a}=n,l=s+n.height,c=a+n.width,u=s-o<0,d=l+o>(window.innerHeight||document.documentElement.clientHeight),f=a-i<0,g=c+i>(window.innerWidth||document.documentElement.clientWidth);return d&&(r="top"),u&&(r="bottom"),f&&(t="right"),g&&(t="left"),u&&d&&f&&g?["left","right","top","bottom"].reduce((_,b)=>e[_]>e[b]?_:b):f&&g?u?"bottom":d||s>l?"top":"bottom":u&&d?f?"right":g||a>c?"left":"right":`${r}-${t}`}(this.dialogElement.nativeElement.getBoundingClientRect(),this.cpTriggerElement.nativeElement.getBoundingClientRect())),"top"===u?(this.arrowTop=l-1,this.top-=l+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*c.width-this.dialogArrowOffset):"bottom"===u?(this.top+=c.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*c.width-this.dialogArrowOffset):"top-left"===u||"left-top"===u?(this.top-=l-c.height+c.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset):"top-right"===u||"right-top"===u?(this.top-=l-c.height+c.height*this.cpPositionOffset/100,this.left+=c.width+this.dialogArrowSize-2-this.dialogArrowOffset):"left"===u||"bottom-left"===u||"left-bottom"===u?(this.top+=c.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2):(this.top+=c.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=c.width+this.dialogArrowSize-2),this.cpUsePosition=u}}isDescendant(t,r){let o=r.parentNode;for(;null!==o;){if(o===t)return!0;o=o.parentNode}return!1}createDialogBox(t,r){const{top:o,left:i}=t.getBoundingClientRect();return{top:o+(r?window.pageYOffset:0),left:i+(r?window.pageXOffset:0),width:t.offsetWidth,height:t.offsetHeight}}}return e.\u0275fac=function(t){return new(t||e)(P(Se),P(Lt),P(Mg),P(kt),P(Ll),P(os))},e.\u0275cmp=xo({type:e,selectors:[["color-picker"]],viewQuery:function(t,r){if(1&t&&(xi(iA,7),xi(sA,7),xi(aA,7)),2&t){let o;ki(o=Pi())&&(r.dialogElement=o.first),ki(o=Pi())&&(r.hueSlider=o.first),ki(o=Pi())&&(r.alphaSlider=o.first)}},hostBindings:function(t,r){1&t&&k("keyup.esc",function(i){return r.handleEsc(i)},0,_a)("keyup.enter",function(i){return r.handleEnter(i)},!1,_a)},decls:30,vars:51,consts:[[1,"color-picker",3,"click"],["dialogPopup",""],[3,"class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color",3,"click"],["class","eyedropper-icon","xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",4,"ngIf"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"slider","rgX","newValue","dragStart","dragEnd"],["hueSlider",""],[1,"cursor"],[1,"value",3,"slider","rgX","newValue","dragStart","dragEnd"],["valueSlider",""],[1,"alpha",3,"slider","rgX","newValue","dragStart","dragEnd"],["alphaSlider",""],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],["class","extra-template",4,"ngIf"],[1,"saturation-lightness",3,"slider","rgX","rgY","newValue","dragStart","dragEnd"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",1,"eyedropper-icon"],["d","M0 0h24v24H0V0z","fill","none"],["d","M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42l-2.34-2.34c-.2-.19-.45-.29-.7-.29zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"],["type","button",3,"disabled","click"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"text","rg","value","keyup.enter","newValue"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"text","rg","value","keyup.enter","newValue"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"text","rg","value","keyup.enter","newValue"],[1,"hex-text"],[3,"text","value","blur","keyup.enter","newValue"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"],[1,"extra-template"],[4,"ngTemplateOutlet"]],template:function(t,r){1&t&&(h(0,"div",0,1),k("click",function(i){return i.stopPropagation()}),Q(2,lA,1,5,"div",2),Q(3,cA,2,8,"div",3),h(4,"div",4)(5,"div",5),M(6,"div",6),h(7,"div",7),k("click",function(){return r.eyeDropperSupported&&r.cpEyeDropper&&r.onEyeDropper()}),Q(8,uA,3,0,"svg",8),p(),Q(9,dA,2,5,"button",9),p(),h(10,"div",10),Q(11,fA,1,0,"div",11),h(12,"div",12,13),k("newValue",function(i){return r.onHueChange(i)})("dragStart",function(){return r.onDragStart("hue")})("dragEnd",function(){return r.onDragEnd("hue")}),M(14,"div",14),p(),h(15,"div",15,16),k("newValue",function(i){return r.onValueChange(i)})("dragStart",function(){return r.onDragStart("value")})("dragEnd",function(){return r.onDragEnd("value")}),M(17,"div",14),p(),h(18,"div",17,18),k("newValue",function(i){return r.onAlphaChange(i)})("dragStart",function(){return r.onDragStart("alpha")})("dragEnd",function(){return r.onDragEnd("alpha")}),M(20,"div",14),p()()(),Q(21,gA,17,12,"div",19),Q(22,vA,14,10,"div",20),Q(23,_A,14,10,"div",21),Q(24,EA,8,7,"div",22),Q(25,AA,9,3,"div",23),Q(26,MA,3,0,"div",24),Q(27,PA,6,3,"div",25),Q(28,RA,3,2,"div",26),Q(29,LA,2,1,"div",27),p()),2&t&&(R("display",r.show?"block":"none")("visibility",r.hidden?"hidden":"visible")("top",r.top,"px")("left",r.left,"px")("position",r.position)("height",r.cpHeight,"px")("width",r.cpWidth,"px"),wi("open",r.show),w(2),E("ngIf","popup"===r.cpDialogDisplay),w(1),E("ngIf",1===(r.cpColorMode||1)),w(4),R("background-color",r.selectedColor)("cursor",r.eyeDropperSupported&&r.cpEyeDropper?"pointer":null),w(1),E("ngIf",r.eyeDropperSupported&&r.cpEyeDropper),w(1),E("ngIf",r.cpAddColorButton),w(2),E("ngIf","disabled"===r.cpAlphaChannel),w(1),R("display",1===(r.cpColorMode||1)?"block":"none"),E("rgX",1),w(2),R("left",null==r.slider?null:r.slider.h,"px"),w(1),R("display",2===(r.cpColorMode||1)?"block":"none"),E("rgX",1),w(2),R("right",null==r.slider?null:r.slider.v,"px"),w(1),R("display","disabled"===r.cpAlphaChannel?"none":"block")("background-color",r.alphaSliderColor),E("rgX",1),w(2),R("left",null==r.slider?null:r.slider.a,"px"),w(1),E("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),w(1),E("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),w(1),E("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),w(1),E("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),w(1),E("ngIf",!r.cpDisableInput&&2===(r.cpColorMode||1)),w(1),E("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),w(1),E("ngIf",(null==r.cpPresetColors?null:r.cpPresetColors.length)||r.cpAddColorButton),w(1),E("ngIf",r.cpOKButton||r.cpCancelButton),w(1),E("ngIf",r.cpExtraTemplate))},dependencies:[$g,Yg,Xg,rA,oA],styles:['.color-picker{position:absolute;z-index:1000;width:230px;height:auto;border:#777 solid 1px;cursor:default;-webkit-user-select:none;user-select:none;background-color:#fff}.color-picker *{box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .arrow{position:absolute;z-index:999999;width:0;height:0;border-style:solid}.color-picker .arrow.arrow-top{left:8px;border-width:10px 5px;border-color:#777 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-bottom{top:-20px;left:8px;border-width:10px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #777 rgba(0,0,0,0)}.color-picker .arrow.arrow-top-left,.color-picker .arrow.arrow-left-top{right:-21px;bottom:8px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-top-right,.color-picker .arrow.arrow-right-top{bottom:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom,.color-picker .arrow.arrow-bottom-left{top:8px;right:-21px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom,.color-picker .arrow.arrow-bottom-right{top:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .cursor{position:relative;width:16px;height:16px;border:#222 solid 2px;border-radius:50%;cursor:default}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{overflow:hidden;width:100%;padding:4px;font-size:11px;white-space:nowrap;text-align:left;text-overflow:ellipsis;color:#555}.color-picker .preset-area .preset-color{position:relative;display:inline-block;width:18px;height:18px;margin:4px 6px 8px;border:#a9a9a9 solid 1px;border-radius:25%;cursor:pointer}.color-picker .preset-area .preset-empty-message{min-height:18px;margin-top:4px;margin-bottom:8px;font-style:italic;text-align:center}.color-picker .hex-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{float:left;flex:1 1 auto;text-align:center;color:#555;clear:left}.color-picker .hex-text .box input{flex:1 1 auto;padding:1px;border:#a9a9a9 solid 1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{flex:1 1 auto;margin-right:8px;text-align:center;color:#555}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{float:left;flex:1;padding:1px;margin:0 8px 0 0;border:#a9a9a9 solid 1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker .value{direction:rtl;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=)}.color-picker .alpha{direction:ltr;width:100%;height:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker .type-policy{position:absolute;top:218px;right:12px;width:16px;height:24px;background-size:8px 16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center}.color-picker .type-policy .type-policy-arrow{display:block;width:100%;height:50%}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;border:1px solid #a9a9a9;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker .saturation-lightness{direction:ltr;width:100%;height:130px;border:none;cursor:pointer;touch-action:manipulation;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z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IUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.color-picker .cp-add-color-button-class{position:absolute;display:inline;padding:0;margin:3px -3px;border:0;cursor:pointer;background:transparent}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{cursor:not-allowed;color:#999}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{position:absolute;top:-5px;right:-5px;display:block;width:10px;height:10px;border-radius:50%;cursor:pointer;text-align:center;background:#fff;box-shadow:1px 1px 5px #333}.color-picker .cp-remove-color-button-class:before{content:"x";position:relative;bottom:3.5px;display:inline-block;font-size:10px}.color-picker .eyedropper-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:#fff;mix-blend-mode:exclusion}\n'],encapsulation:2}),e})(),jA=(()=>{class e{constructor(t,r,o,i,s,a){this.injector=t,this.cfr=r,this.appRef=o,this.vcRef=i,this.elRef=s,this._service=a,this.dialogCreated=!1,this.ignoreChanges=!1,this.viewAttachedToAppRef=!1,this.cpWidth="230px",this.cpHeight="auto",this.cpToggle=!1,this.cpDisabled=!1,this.cpIgnoredElements=[],this.cpFallbackColor="",this.cpColorMode="color",this.cpCmykEnabled=!1,this.cpOutputFormat="auto",this.cpAlphaChannel="enabled",this.cpDisableInput=!1,this.cpDialogDisplay="popup",this.cpSaveClickOutside=!0,this.cpCloseClickOutside=!0,this.cpUseRootViewContainer=!1,this.cpPosition="auto",this.cpPositionOffset="0%",this.cpPositionRelativeToArrow=!1,this.cpOKButton=!1,this.cpOKButtonText="OK",this.cpOKButtonClass="cp-ok-button-class",this.cpCancelButton=!1,this.cpCancelButtonText="Cancel",this.cpCancelButtonClass="cp-cancel-button-class",this.cpEyeDropper=!1,this.cpPresetLabel="Preset colors",this.cpPresetColorsClass="cp-preset-colors-class",this.cpMaxPresetColorsLength=6,this.cpPresetEmptyMessage="No colors added",this.cpPresetEmptyMessageClass="preset-empty-message",this.cpAddColorButton=!1,this.cpAddColorButtonText="Add color",this.cpAddColorButtonClass="cp-add-color-button-class",this.cpRemoveColorButtonClass="cp-remove-color-button-class",this.cpInputChange=new ue(!0),this.cpToggleChange=new ue(!0),this.cpSliderChange=new ue(!0),this.cpSliderDragEnd=new ue(!0),this.cpSliderDragStart=new ue(!0),this.colorPickerOpen=new ue(!0),this.colorPickerClose=new ue(!0),this.colorPickerCancel=new ue(!0),this.colorPickerSelect=new ue(!0),this.colorPickerChange=new ue(!1),this.cpCmykColorChange=new ue(!0),this.cpPresetColorsChange=new ue(!0)}handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(t){this.inputChange(t)}ngOnDestroy(){null!=this.cmpRef&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(t){t.cpToggle&&!this.cpDisabled&&(t.cpToggle.currentValue?this.openDialog():t.cpToggle.currentValue||this.closeDialog()),t.colorPicker&&(this.dialog&&!this.ignoreChanges&&("inline"===this.cpDialogDisplay&&this.dialog.setInitialColor(t.colorPicker.currentValue),this.dialog.setColorFromString(t.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(t.cpPresetLabel||t.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&this.dialog.openDialog(this.colorPicker);else{let t=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay){const i=this.injector.get(this.appRef.componentTypes[0],gt.NULL);i!==gt.NULL?t=i.vcRef||i.viewContainerRef||this.vcRef:this.viewAttachedToAppRef=!0}const r=this.cfr.resolveComponentFactory(VA);if(this.viewAttachedToAppRef)this.cmpRef=r.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{const o=gt.create({providers:[],parent:t.injector});this.cmpRef=t.createComponent(r,0,o,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==t&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&"popup"===this.cpDialogDisplay&&this.dialog.closeDialog()}cmykChanged(t){this.cpCmykColorChange.emit(t)}stateChanged(t){this.cpToggleChange.emit(t),t?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(t,r=!0){this.ignoreChanges=r,this.colorPickerChange.emit(t)}colorSelected(t){this.colorPickerSelect.emit(t)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){const t=this.elRef.nativeElement,r=this.cpIgnoredElements.filter(o=>o===t);!this.cpDisabled&&!r.length&&(typeof document<"u"&&t===document.activeElement?this.openDialog():this.dialog&&this.dialog.show?this.closeDialog():this.openDialog())}inputChange(t){this.dialog?this.dialog.setColorFromString(t.target.value,!0):(this.colorPicker=t.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(t){this.cpInputChange.emit(t)}sliderChanged(t){this.cpSliderChange.emit(t)}sliderDragEnd(t){this.cpSliderDragEnd.emit(t)}sliderDragStart(t){this.cpSliderDragStart.emit(t)}presetColorsChanged(t){this.cpPresetColorsChange.emit(t)}}return e.\u0275fac=function(t){return new(t||e)(P(gt),P(Vr),P(Li),P(at),P(Lt),P(os))},e.\u0275dir=Re({type:e,selectors:[["","colorPicker",""]],hostBindings:function(t,r){1&t&&k("click",function(){return r.handleClick()})("focus",function(){return r.handleFocus()})("input",function(i){return r.handleInput(i)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[_r]}),e})(),HA=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=In({type:e}),e.\u0275inj=ln({providers:[os],imports:[em]}),e})();function UA(e,n){1&e&&(h(0,"div",37)(1,"h3"),m(2,"Custom template content here."),p()())}const qA=function(){return["#fff","#000","#2889e9","#e920e9","#fff500","rgb(236,64,64)"]},zA=function(){return["#fff","#2889e9"]},GA=function(e,n){return[e,n]};let WA=(()=>{class e{constructor(t,r){this.vcRef=t,this.cpService=r,this.toggle=!1,this.rgbaText="rgba(165, 26, 214, 0.2)",this.arrayColors={color1:"#2883e9",color2:"#e920e9",color3:"rgb(255,245,0)",color4:"rgb(236,64,64)",color5:"rgba(45,208,45,1)"},this.selectedColor="color1",this.color1="#2889e9",this.color2="#e920e9",this.color3="#fff500",this.color4="rgb(236,64,64)",this.color5="rgba(45,208,45,1)",this.color6="#1973c0",this.color7="#f200bd",this.color8="#a8ff00",this.color9="#278ce2",this.color10="#0a6211",this.color11="#f2ff00",this.color12="#f200bd",this.color13="rgba(0,255,0,0.5)",this.color14="rgb(0,255,255)",this.color15="rgb(255,0,0)",this.color16="#a51ad633",this.color17="#666666",this.color18="#fa8072",this.color19="#f88888",this.cmykValue="",this.cmykColor=new bn(0,0,0,0)}onEventLog(t,r){console.log(t,r)}onChangeColor(t){console.log("Color changed:",t)}onChangeColorCmyk(t){const r=this.cpService.stringToHsva(t);if(r){const o=this.cpService.hsvaToRgba(r);return this.cpService.rgbaToCmyk(o)}return new bn(0,0,0,0)}onChangeColorHex8(t){const r=this.cpService.stringToHsva(t,!0);return r?this.cpService.outputFormat(r,"rgba",null):""}}return e.\u0275fac=function(t){return new(t||e)(P(at),P(os))},e.\u0275cmp=xo({type:e,selectors:[["my-app"]],decls:549,vars:146,consts:[[1,"container"],[1,"row"],[1,"col-md-5"],[3,"colorPicker","colorPickerChange","colorPickerOpen","colorPickerClose","cpInputChange","cpSliderDragStart","cpSliderDragEnd"],[1,"col-md-7"],[3,"colorPicker","cpColorMode","colorPickerChange","colorPickerOpen","colorPickerClose","cpInputChange","cpSliderDragStart","cpSliderDragEnd"],[3,"value","colorPicker","colorPickerChange"],[3,"value","cpOutputFormat","colorPicker","colorPickerChange"],[3,"value","cpPosition","colorPicker","colorPickerChange"],[1,"change-me",3,"cpPosition","cpPositionOffset","cpPositionRelativeToArrow","colorPicker","colorPickerChange"],[3,"value","cpCancelButton","colorPicker","colorPickerChange"],[3,"value","cpCancelButton","cpCancelButtonClass","colorPicker","colorPickerChange"],[3,"value","cpOKButton","cpSaveClickOutside","cpOKButtonClass","colorPicker","colorPickerChange"],[3,"value","cpEyeDropper","cpSaveClickOutside","cpOKButtonClass","colorPicker","colorPickerChange"],[3,"colorPicker","cpCmykEnabled","cpCmykColorChange","colorPickerChange"],[1,"clearfix"],[1,"cmyk-text",2,"color","rgb(0,255,255)"],[1,"cmyk-text",2,"color","rgb(255,0,255)"],[1,"cmyk-text",2,"color","rgb(255,255,0)"],[1,"cmyk-text"],[3,"cpPresetColors","colorPicker","colorPickerChange"],[3,"cpAlphaChannel","cpOutputFormat","cpPresetColors","cpAddColorButton","colorPicker","colorPickerChange"],[3,"cpFallbackColor","cpIgnoredElements","cpToggle","colorPicker","cpToggleChange","colorPickerChange"],["ignoredInput",""],[1,"btn","btn-primary",3,"click"],["ignoredButton",""],["cpPosition","auto",3,"value","colorPicker","colorPickerChange"],[3,"value","cpAlphaChannel","cpOutputFormat","colorPicker","colorPickerChange"],[1,"row",2,"height","320px"],[1,"col-md-3"],[3,"cpToggle","cpDialogDisplay","cpCancelButton","cpCancelButtonClass","colorPicker","colorPickerChange"],[1,"col-md-2"],[1,"color-box",3,"click"],["cpAlphaChannel","disabled",3,"colorPicker","cpExtraTemplate","colorPickerClose","colorPickerOpen","cpInputChange","cpSliderDragEnd","cpSliderDragStart","keyup"],["customTemplate",""],[1,"col-md-12"],[1,"table"],[1,""]],template:function(t,r){if(1&t&&(h(0,"div",0)(1,"h1"),m(2,"Angular Color Picker Directive"),p(),h(3,"h4"),m(4,"A Color Picker Directive for Angular with no dependencies."),p(),h(5,"h4")(6,"b"),m(7,"based on angular2-color-picker by Alberto Pujante"),p()(),M(8,"hr"),h(9,"div",1)(10,"div",2)(11,"input",3),k("colorPickerChange",function(i){return r.color1=i})("colorPickerOpen",function(i){return r.onEventLog("colorPickerOpen",i)})("colorPickerClose",function(i){return r.onEventLog("colorPickerClose",i)})("cpInputChange",function(i){return r.onEventLog("cpInputChange",i)})("cpSliderDragStart",function(i){return r.onEventLog("cpSliderDragStart",i)})("cpSliderDragEnd",function(i){return r.onEventLog("cpSliderDragEnd",i)}),p()(),h(12,"div",4)(13,"p"),m(14,"Usage:"),p(),h(15,"pre"),m(16,'\n '),p(),h(17,"p"),m(18,"Or:"),p(),h(19,"pre"),m(20,'\n '),p()()(),M(21,"hr"),h(22,"div",1)(23,"div",2)(24,"input",5),k("colorPickerChange",function(i){return r.color17=i})("colorPickerOpen",function(i){return r.onEventLog("colorPickerOpen",i)})("colorPickerClose",function(i){return r.onEventLog("colorPickerClose",i)})("cpInputChange",function(i){return r.onEventLog("cpInputChange",i)})("cpSliderDragStart",function(i){return r.onEventLog("cpSliderDragStart",i)})("cpSliderDragEnd",function(i){return r.onEventLog("cpSliderDragEnd",i)}),p()(),h(25,"div",4)(26,"p"),m(27,"Grayscale color mode:"),p(),h(28,"pre"),m(29,'\n '),p()()(),M(30,"hr"),h(31,"div",1)(32,"div",2)(33,"input",6),k("colorPickerChange",function(i){return r.color2=i}),p()(),h(34,"div",4)(35,"p"),m(36,"Show the color in the input field:"),p(),h(37,"pre"),m(38,'\n '),p()()(),M(39,"hr"),h(40,"div",1)(41,"div",2)(42,"input",7),k("colorPickerChange",function(i){return r.color3=i}),p(),M(43,"br")(44,"br"),h(45,"input",7),k("colorPickerChange",function(i){return r.color4=i}),p()(),h(46,"div",4)(47,"p"),m(48,"Output format:"),p(),h(49,"pre"),m(50,'\n '),p()()(),M(51,"hr"),h(52,"div",1)(53,"div",2)(54,"input",8),k("colorPickerChange",function(i){return r.color5=i}),p()(),h(55,"div",4)(56,"p"),m(57,"Changing dialog position:"),p(),h(58,"pre"),m(59,'\n '),p()()(),M(60,"hr"),h(61,"div",1)(62,"div",2)(63,"span",9),k("colorPickerChange",function(i){return r.color6=i}),m(64,"Change me!"),p()(),h(65,"div",4)(66,"p"),m(67,"You can introduce a offset of the color picker relative to the html element:"),p(),h(68,"pre"),m(69,'Change me!\n '),p()()(),M(70,"hr"),h(71,"div",1)(72,"div",2)(73,"input",10),k("colorPickerChange",function(i){return r.color7=i}),p()(),h(74,"div",4)(75,"p"),m(76,"Show cancel button:"),p(),h(77,"pre"),m(78,'\n '),p()()(),M(79,"hr"),h(80,"div",1)(81,"div",2)(82,"input",11),k("colorPickerChange",function(i){return r.color8=i}),p()(),h(83,"div",4)(84,"p"),m(85,"Change cancel button class, in this example we are using a bootstrap button:"),p(),h(86,"pre"),m(87,'\n '),p()()(),M(88,"hr"),h(89,"div",1)(90,"div",2)(91,"input",12),k("colorPickerChange",function(i){return r.color9=i}),p()(),h(92,"div",4)(93,"p"),m(94,"Show OK button:"),p(),h(95,"pre"),m(96,'\n '),p()()(),M(97,"hr"),h(98,"div",1)(99,"div",2)(100,"input",13),k("colorPickerChange",function(i){return r.color19=i}),p()(),h(101,"div",4)(102,"p"),m(103,"Enable Eye Dropper:"),p(),h(104,"p"),m(105,"You can open the eye dropper by clicking the colored circle."),p(),h(106,"pre"),m(107,'\n '),p()()(),M(108,"hr"),h(109,"div",1)(110,"div",2)(111,"input",14),k("cpCmykColorChange",function(i){return r.cmykValue=i})("colorPickerChange",function(i){return r.cmykColor=r.onChangeColorCmyk(i),r.color10=i}),p(),M(112,"div",15),h(113,"div"),m(114),p(),h(115,"div")(116,"span",16),m(117,"C"),p(),h(118,"span",17),m(119,"M"),p()(),M(120,"div",15),h(121,"div")(122,"span",18),m(123,"Y"),p(),h(124,"span",19),m(125,"K"),p()(),M(126,"div",15),p(),h(127,"div",4)(128,"p"),m(129,"Change event color:"),p(),h(130,"pre"),m(131,'\n\nC\nM\nY\nK\n '),p()()(),M(132,"hr"),h(133,"div",1)(134,"div",2)(135,"input",20),k("colorPickerChange",function(i){return r.color11=i}),p()(),h(136,"div",4)(137,"p"),m(138,"With preset colors:"),p(),h(139,"pre"),m(140,"\n "),p()()(),M(141,"hr"),h(142,"div",1)(143,"div",2)(144,"input",21),k("colorPickerChange",function(i){return r.color13=i}),p()(),h(145,"div",4)(146,"p"),m(147,"Add and remove preset colors:"),p(),h(148,"pre"),m(149,'\n '),p()()(),M(150,"hr"),h(151,"div",1)(152,"div",2)(153,"input",22,23),k("cpToggleChange",function(i){return r.toggle=i})("colorPickerChange",function(i){return r.color12=i}),p(),M(155,"div",15),h(156,"button",24,25),k("click",function(){return r.toggle=!r.toggle}),m(158,"Toggle"),p(),M(159,"br")(160,"br"),h(161,"div")(162,"b"),m(163),p()()(),h(164,"div",4)(165,"p"),m(166,"Use cpToggle with cpIgnoredElements:"),p(),h(167,"pre"),m(168,'\n\n\n '),p()()(),M(169,"hr"),h(170,"div",1)(171,"div",2)(172,"input",26),k("colorPickerChange",function(i){return r.color18=i}),p()(),h(173,"div",4)(174,"p"),m(175,"Auto positioning:"),p(),h(176,"pre"),m(177,'\n '),p()()(),M(178,"hr"),h(179,"div",1)(180,"div",2)(181,"input",27),k("colorPickerChange",function(i){return r.color14=i}),p(),M(182,"br"),h(183,"input",27),k("colorPickerChange",function(i){return r.color13=i}),p(),M(184,"br"),h(185,"input",27),k("colorPickerChange",function(i){return r.rgbaText=r.onChangeColorHex8(i),r.color16=i}),p(),M(186,"br"),h(187,"input",27),k("colorPickerChange",function(i){return r.color15=i}),p()(),h(188,"div",4)(189,"p"),m(190,"Change alpha channel behaviour:"),p(),h(191,"pre"),m(192,'\n\n\n\n\n\n\n '),p()()(),M(193,"hr"),h(194,"div",28)(195,"div",29)(196,"span",30),k("colorPickerChange",function(i){return r.arrayColors[r.selectedColor]=i}),p()(),h(197,"div",31)(198,"div",32),k("click",function(){return r.selectedColor="color1"}),p(),h(199,"div",32),k("click",function(){return r.selectedColor="color2"}),p(),h(200,"div",32),k("click",function(){return r.selectedColor="color3"}),p(),h(201,"div",32),k("click",function(){return r.selectedColor="color4"}),p(),h(202,"div",32),k("click",function(){return r.selectedColor="color5"}),p()(),h(203,"div",4)(204,"p"),m(205,"Show the dialog permanently: "),p(),h(206,"pre"),m(207,'\n\n
\n\n
\n '),p()()(),M(208,"hr")(209,"br")(210,"hr"),h(211,"div",1)(212,"div",2)(213,"input",33),k("colorPickerClose",function(i){return r.onEventLog("colorPickerClose",i)})("colorPickerOpen",function(i){return r.onEventLog("colorPickerOpen",i)})("cpInputChange",function(i){return r.onEventLog("cpInputChange",i)})("cpSliderDragEnd",function(i){return r.onEventLog("cpSliderDragEnd",i)})("cpSliderDragStart",function(i){return r.onEventLog("cpSliderDragStart",i)})("keyup",function(i){return r.onEventLog("cpInputChange",i)}),p(),Q(214,UA,3,0,"ng-template",null,34,Hh),p(),h(216,"div",4)(217,"p"),m(218,"Custom template: "),p(),h(219,"pre"),m(220,'\n\n\n
\n

Custom template.

\n
\n
\n '),p()(),M(221,"hr")(222,"br"),h(223,"div",1)(224,"div",35)(225,"table",36)(226,"thead")(227,"tr")(228,"th"),m(229,"Options"),p(),h(230,"th"),m(231,"Values (default values in bold)"),p()()(),h(232,"tbody")(233,"tr")(234,"td"),m(235,"cpOutputFormat"),p(),h(236,"td")(237,"b"),m(238,"'auto'"),p(),m(239,", 'hex', 'rgba', 'hsla' "),p()(),h(240,"tr")(241,"td"),m(242,"cpPosition"),p(),h(243,"td")(244,"b"),m(245,"'auto'"),p(),m(246,", 'top', 'bottom', 'top-right', 'top-left', 'bottom-left', 'bottom-right' "),p()(),h(247,"tr")(248,"td"),m(249,"cpPositionOffset"),p(),h(250,"td")(251,"b"),m(252,"'0%'"),p(),M(253,"br"),m(254," Dialog offset (percent) relative to the element that contains the directive. "),p()(),h(255,"tr")(256,"td"),m(257,"cpPositionRelativeToArrow"),p(),h(258,"td")(259,"b"),m(260,"false"),p(),m(261,", true "),M(262,"br"),m(263," Dialog position is calculated relative to the dialog (false) or relative to the dialog arrow (true). "),p()(),h(264,"tr")(265,"td"),m(266,"cpWidth"),p(),h(267,"td")(268,"b"),m(269,"'230px'"),p(),M(270,"br"),m(271," Use this option to set color picker dialog width (pixels). "),p()(),h(272,"tr")(273,"td"),m(274,"cpHeight"),p(),h(275,"td")(276,"b"),m(277,"'auto'"),p(),M(278,"br"),m(279," Use this option to force color picker dialog height (pixels). "),p()(),h(280,"tr")(281,"td"),m(282,"cpSaveClickOutside"),p(),h(283,"td")(284,"b"),m(285,"true"),p(),m(286,", false"),M(287,"br"),m(288," If true the initial color is restored when user clicks outside. "),p()(),h(289,"tr")(290,"td"),m(291,"cpOKButton"),p(),h(292,"td")(293,"b"),m(294,"false"),p(),m(295,", true"),M(296,"br"),m(297," Shows the Ok button. Saves the selected color. "),p()(),h(298,"tr")(299,"td"),m(300,"cpOKButtonText"),p(),h(301,"td")(302,"b"),m(303,"'OK'"),p()()(),h(304,"tr")(305,"td"),m(306,"cpOKButtonClass"),p(),h(307,"td"),m(308," Class to customize the OK button. "),p()(),h(309,"tr")(310,"td"),m(311,"cpCancelButton"),p(),h(312,"td")(313,"b"),m(314,"false"),p(),m(315,", true"),M(316,"br"),m(317," Shows the Cancel button. Cancel the selected color. "),p()(),h(318,"tr")(319,"td"),m(320,"cpCancelButtonText"),p(),h(321,"td")(322,"b"),m(323,"'Cancel'"),p()()(),h(324,"tr")(325,"td"),m(326,"cpCancelButtonClass"),p(),h(327,"td"),m(328," Class to customize the Cancel button. "),p()(),h(329,"tr")(330,"td"),m(331,"cpFallbackColor"),p(),h(332,"td")(333,"b"),m(334,"'#fff'"),p(),M(335,"br"),m(336," Is used when the color is not well-formed or not defined. "),p()(),h(337,"tr")(338,"td"),m(339,"cpPresetLabel"),p(),h(340,"td")(341,"b"),m(342,"'Preset colors'"),p(),M(343,"br"),m(344," Label for preset colors if any provided used. "),p()(),h(345,"tr")(346,"td"),m(347,"cpPresetColors"),p(),h(348,"td")(349,"b"),m(350,"[]"),p(),M(351,"br"),m(352," Array of preset colors to show in the color picker dialog. "),p()(),h(353,"tr")(354,"td"),m(355,"cpToggle"),p(),h(356,"td")(357,"b"),m(358,"false"),p(),m(359,", true"),M(360,"br"),m(361," Input/ouput to open/close the color picker. "),p()(),h(362,"tr")(363,"td"),m(364,"cpIgnoredElements"),p(),h(365,"td")(366,"b"),m(367,"[]"),p(),M(368,"br"),m(369," Array of HTML elements that will be ignored by the color picker when they are clicked. "),p()(),h(370,"tr")(371,"td"),m(372,"cpDialogDisplay"),p(),h(373,"td")(374,"b"),m(375,"'popup'"),p(),m(376,", 'inline'"),M(377,"br"),m(378," popup: dialog is showed when user clicks in the directive."),M(379,"br"),m(380," inline: dialog is showed permanently. You can show/hide the dialog with cpToggle."),M(381,"br"),p()(),h(382,"tr")(383,"td"),m(384,"cpDisableInput"),p(),h(385,"td")(386,"b"),m(387,"false"),p(),m(388,", true"),M(389,"br"),m(390," Disables / hides the color input field from the dialog."),M(391,"br"),p()(),h(392,"tr")(393,"td"),m(394,"cpAlphaChannel"),p(),h(395,"td")(396,"b"),m(397,"'enabled'"),p(),m(398,", 'disabled', 'always', 'forced'"),M(399,"br"),m(400," enabled: alpha channel is not included for hexadecimal (hex6) values or for values without alpha (alpha = 1)."),M(401,"br"),m(402," disabled: alpha channel is completely disabled."),M(403,"br"),m(404," always: alpha channel is included for hexadecimal (hex6) values and values without alpha (alpha = 1)."),M(405,"br"),m(406," forced: alpha channel field is added for hexadecimal (hex6) values."),M(407,"br"),p()(),h(408,"tr")(409,"td"),m(410,"cpCmykEnabled"),p(),h(411,"td")(412,"b"),m(413,"false"),p(),m(414,", true"),M(415,"br"),m(416," Enables CMYK color input and selected CMYK color event sending on color change."),M(417,"br"),p()(),h(418,"tr")(419,"td"),m(420,"cpUseRootViewContainer"),p(),h(421,"td")(422,"b"),m(423,"false"),p(),m(424,", true"),M(425,"br"),m(426," Create dialog component in the root view container instead the elements view container."),M(427,"br"),p()(),h(428,"tr")(429,"td"),m(430,"cpAddColorButton"),p(),h(431,"td")(432,"b"),m(433,"false"),p(),m(434,", true"),M(435,"br"),m(436," Add or remove colors into your preset panel. The [cpPresetColors] is needed"),M(437,"br"),p()(),h(438,"tr")(439,"td"),m(440,"cpAddColorButtonText"),p(),h(441,"td")(442,"b"),m(443,"'Add color'"),p()()(),h(444,"tr")(445,"td"),m(446,"cpAddColorButtonClass"),p(),h(447,"td"),m(448," Class to customize the add color button. "),p()(),h(449,"tr")(450,"td"),m(451,"cpRemoveColorButtonClass"),p(),h(452,"td"),m(453," Class to customize the remove color button. "),p()(),h(454,"tr")(455,"td"),m(456,"cpPresetColorsClass"),p(),h(457,"td"),m(458," Class to customize the preset colors container. "),p()(),h(459,"tr")(460,"td"),m(461,"cpMaxPresetColorsLength"),p(),h(462,"td")(463,"b"),m(464,"8"),p(),m(465," (number)"),M(466,"br"),m(467," Use this option to set the max colors allowed into preset panel. "),p()(),h(468,"tr")(469,"td"),m(470,"cpPresetEmptyMessage"),p(),h(471,"td")(472,"b"),m(473,"'No colors added'"),p(),M(474,"br"),m(475," Message for empty colors if any provided used. "),p()(),h(476,"tr")(477,"td"),m(478,"cpPresetEmptyMessageClass"),p(),h(479,"td"),m(480," Class to customize the empty colors message. "),p()(),h(481,"tr")(482,"td"),m(483,"cpEyeDropper"),p(),h(484,"td"),m(485," Enable eye dropper on click of colored circle. Click again to pick a color. "),p()()()()()(),M(486,"hr")(487,"br"),h(488,"div",1)(489,"div",35)(490,"table",36)(491,"thead")(492,"tr")(493,"th"),m(494,"Events"),p(),h(495,"th"),m(496,"Description (data format in bold)"),p()()(),h(497,"tbody")(498,"tr")(499,"td"),m(500,"colorPickerChange"),p(),h(501,"td"),m(502," Changed color value, send when color is changed. "),h(503,"b"),m(504,"(value: string)"),p()()(),h(505,"tr")(506,"td"),m(507,"colorPickerSelect"),p(),h(508,"td"),m(509," Selected color value, send when user presses the OK button. "),h(510,"b"),m(511,"(value: string)"),p()()(),h(512,"tr")(513,"td"),m(514,"cpToggleChange"),p(),h(515,"td"),m(516," Status of the dialog, send when dialog is opened / closed. "),h(517,"b"),m(518,"(open: boolean)"),p()()(),h(519,"tr")(520,"td"),m(521,"cpInputChange"),p(),h(522,"td"),m(523," Input name and its value, send when user changes color through inputs. "),h(524,"b"),m(525),p()()(),h(526,"tr")(527,"td"),m(528,"cpSliderChange"),p(),h(529,"td"),m(530," Slider name and its value, send when user changes color through slider. "),h(531,"b"),m(532),p()()(),h(533,"tr")(534,"td"),m(535,"cpCmykColorChange"),p(),h(536,"td"),m(537," CMYK color value, send when on color change if cpCmykEnabled is true. "),h(538,"b"),m(539,"(value: string)"),p()()(),h(540,"tr")(541,"td"),m(542,"cpPresetColorsChange"),p(),h(543,"td"),m(544," Preset colors value, send when Add Color button is pressed. "),h(545,"b"),m(546,"(value: array)"),p()()()()()()(),M(547,"hr")(548,"br"),p()()),2&t){const o=_i(154),i=_i(157),s=_i(215);w(11),R("background",r.color1),E("colorPicker",r.color1),w(13),R("background",r.color17),E("colorPicker",r.color17)("cpColorMode","grayscale"),w(9),R("background",r.color2),E("value",r.color2)("colorPicker",r.color2),w(9),R("background",r.color3),E("value",r.color3)("cpOutputFormat","rgba")("colorPicker",r.color3),w(3),R("background",r.color4),E("value",r.color4)("cpOutputFormat","hsla")("colorPicker",r.color4),w(9),R("background",r.color5),E("value",r.color5)("cpPosition","top-right")("colorPicker",r.color5),w(9),R("color",r.color6),E("cpPosition","bottom")("cpPositionOffset","50%")("cpPositionRelativeToArrow",!0)("colorPicker",r.color6),w(10),R("background",r.color7),E("value",r.color7)("cpCancelButton",!0)("colorPicker",r.color7),w(9),R("background",r.color8),E("value",r.color8)("cpCancelButton",!0)("cpCancelButtonClass","btn btn-primary btn-xs")("colorPicker",r.color8),w(9),R("background",r.color9),E("value",r.color9)("cpOKButton",!0)("cpSaveClickOutside",!1)("cpOKButtonClass","btn btn-primary btn-xs")("colorPicker",r.color9),w(9),R("background",r.color19),E("value",r.color9)("cpEyeDropper",!0)("cpSaveClickOutside",!1)("cpOKButtonClass","btn btn-primary btn-xs")("colorPicker",r.color19),w(11),R("background",r.color10),E("colorPicker",r.color10)("cpCmykEnabled",!0),w(3),Cn(r.cmykValue),w(2),R("font-size",100*r.cmykColor.c,"px"),w(2),R("font-size",100*r.cmykColor.m,"px"),w(4),R("font-size",100*r.cmykColor.y,"px"),w(2),R("font-size",100*r.cmykColor.k,"px"),w(11),R("background",r.color11),E("cpPresetColors",bl(141,qA))("colorPicker",r.color11),w(9),R("background",r.color13),E("cpAlphaChannel","always")("cpOutputFormat","rgba")("cpPresetColors",bl(142,zA))("cpAddColorButton",!0)("colorPicker",r.color13),w(9),R("background",r.color12),E("cpFallbackColor","#f200bd")("cpIgnoredElements",Mh(143,GA,i,o))("cpToggle",r.toggle)("colorPicker",r.color12),w(10),$r("Toggle status: ",r.toggle,""),w(9),R("background",r.color18),E("value",r.color18)("colorPicker",r.color18),w(9),R("background",r.color14),E("value",r.color14)("cpAlphaChannel","always")("cpOutputFormat","rgba")("colorPicker",r.color14),w(2),R("background",r.color13),E("value",r.color13)("cpAlphaChannel","disabled")("cpOutputFormat","rgba")("colorPicker",r.color13),w(2),R("background",r.rgbaText),E("value",r.color16)("cpAlphaChannel","always")("cpOutputFormat","hex")("colorPicker",r.color16),w(2),R("background",r.color15),E("value",r.color15)("cpAlphaChannel","forced")("cpOutputFormat","hex")("colorPicker",r.color15),w(9),R("background",r.arrayColors[r.selectedColor]),E("cpToggle",!0)("cpDialogDisplay","inline")("cpCancelButton",!0)("cpCancelButtonClass","btn btn-primary btn-xs")("colorPicker",r.arrayColors[r.selectedColor]),w(2),R("background",r.arrayColors.color1),w(1),R("background",r.arrayColors.color2),w(1),R("background",r.arrayColors.color3),w(1),R("background",r.arrayColors.color4),w(1),R("background",r.arrayColors.color5),w(11),R("background",r.color18),E("colorPicker",r.color18)("cpExtraTemplate",s),w(312),Ei("(","{","input: string, value: string","}",")"),w(7),Ei("(","{","slider: string, value: Object","}",")")}},dependencies:[jA],styles:["input[_ngcontent-%COMP%]{width:150px;margin-bottom:16px}.cmyk-text[_ngcontent-%COMP%]{float:left;width:72px;height:72px;font-weight:bolder;line-height:72px;text-align:center;text-shadow:1px 1px 2px #bbb}.color-box[_ngcontent-%COMP%]{width:100px;height:25px;margin:16px auto;cursor:pointer}.change-me[_ngcontent-%COMP%]{cursor:pointer;font-size:30px;font-weight:bolder}"]}),e})(),$A=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=In({type:e,bootstrap:[WA]}),e.\u0275inj=ln({imports:[GI,HA]}),e})();zI().bootstrapModule($A)}},pe=>{pe(pe.s=277)}]); \ No newline at end of file diff --git a/polyfills.js b/polyfills.js index 41f1f90..2d1f165 100644 --- a/polyfills.js +++ b/polyfills.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[429],{300:(Ee,Pe,Oe)=>{Oe(609)},609:(Ee,Pe,Oe)=>{var De;void 0!==(De=function(){!function(e){var r=e.performance;function t(h){r&&r.mark&&r.mark(h)}function n(h,a){r&&r.measure&&r.measure(h,a)}t("Zone");var u=e.__Zone_symbol_prefix||"__zone_symbol__";function c(h){return u+h}var l=!0===e[c("forceDuplicateZoneCheck")];if(e.Zone){if(l||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var v=function(){function h(a,o){this._parent=a,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,o)}return h.assertZonePatched=function(){if(e.Promise!==F.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(h,"root",{get:function(){for(var a=h.current;a.parent;)a=a.parent;return a},enumerable:!1,configurable:!0}),Object.defineProperty(h,"current",{get:function(){return A.zone},enumerable:!1,configurable:!0}),Object.defineProperty(h,"currentTask",{get:function(){return ie},enumerable:!1,configurable:!0}),h.__load_patch=function(a,o,i){if(void 0===i&&(i=!1),F.hasOwnProperty(a)){if(!i&&l)throw Error("Already loaded patch: "+a)}else if(!e["__Zone_disable_"+a]){var P="Zone:"+a;t(P),F[a]=o(e,h,O),n(P,P)}},Object.defineProperty(h.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),h.prototype.get=function(a){var o=this.getZoneWith(a);if(o)return o._properties[a]},h.prototype.getZoneWith=function(a){for(var o=this;o;){if(o._properties.hasOwnProperty(a))return o;o=o._parent}return null},h.prototype.fork=function(a){if(!a)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,a)},h.prototype.wrap=function(a,o){if("function"!=typeof a)throw new Error("Expecting function got: "+a);var i=this._zoneDelegate.intercept(this,a,o),P=this;return function(){return P.runGuarded(i,this,arguments,o)}},h.prototype.run=function(a,o,i,P){A={parent:A,zone:this};try{return this._zoneDelegate.invoke(this,a,o,i,P)}finally{A=A.parent}},h.prototype.runGuarded=function(a,o,i,P){void 0===o&&(o=null),A={parent:A,zone:this};try{try{return this._zoneDelegate.invoke(this,a,o,i,P)}catch(z){if(this._zoneDelegate.handleError(this,z))throw z}}finally{A=A.parent}},h.prototype.runTask=function(a,o,i){if(a.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");if(a.state!==j||a.type!==R&&a.type!==Y){var P=a.state!=k;P&&a._transitionTo(k,U),a.runCount++;var z=ie;ie=a,A={parent:A,zone:this};try{a.type==Y&&a.data&&!a.data.isPeriodic&&(a.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,a,o,i)}catch(se){if(this._zoneDelegate.handleError(this,se))throw se}}finally{a.state!==j&&a.state!==I&&(a.type==R||a.data&&a.data.isPeriodic?P&&a._transitionTo(U,k):(a.runCount=0,this._updateTaskCount(a,-1),P&&a._transitionTo(j,k,j))),A=A.parent,ie=z}}},h.prototype.scheduleTask=function(a){if(a.zone&&a.zone!==this)for(var o=this;o;){if(o===a.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+a.zone.name);o=o.parent}a._transitionTo(V,j);var i=[];a._zoneDelegates=i,a._zone=this;try{a=this._zoneDelegate.scheduleTask(this,a)}catch(P){throw a._transitionTo(I,V,j),this._zoneDelegate.handleError(this,P),P}return a._zoneDelegates===i&&this._updateTaskCount(a,1),a.state==V&&a._transitionTo(U,V),a},h.prototype.scheduleMicroTask=function(a,o,i,P){return this.scheduleTask(new p(ee,a,o,i,P,void 0))},h.prototype.scheduleMacroTask=function(a,o,i,P,z){return this.scheduleTask(new p(Y,a,o,i,P,z))},h.prototype.scheduleEventTask=function(a,o,i,P,z){return this.scheduleTask(new p(R,a,o,i,P,z))},h.prototype.cancelTask=function(a){if(a.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");a._transitionTo($,U,k);try{this._zoneDelegate.cancelTask(this,a)}catch(o){throw a._transitionTo(I,$),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(a,-1),a._transitionTo(j,$),a.runCount=0,a},h.prototype._updateTaskCount=function(a,o){var i=a._zoneDelegates;-1==o&&(a._zoneDelegates=null);for(var P=0;P0,macroTask:i.macroTask>0,eventTask:i.eventTask>0,change:a})},h}(),p=function(){function h(a,o,i,P,z,se){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=a,this.source=o,this.data=P,this.scheduleFn=z,this.cancelFn=se,!i)throw new Error("callback is not defined");this.callback=i;var f=this;this.invoke=a===R&&P&&P.useG?h.invokeTask:function(){return h.invokeTask.call(e,f,this,arguments)}}return h.invokeTask=function(a,o,i){a||(a=this),ne++;try{return a.runCount++,a.zone.runTask(a,o,i)}finally{1==ne&&m(),ne--}},Object.defineProperty(h.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),h.prototype.cancelScheduleRequest=function(){this._transitionTo(j,V)},h.prototype._transitionTo=function(a,o,i){if(this._state!==o&&this._state!==i)throw new Error(this.type+" '"+this.source+"': can not transition to '"+a+"', expecting state '"+o+"'"+(i?" or '"+i+"'":"")+", was '"+this._state+"'.");this._state=a,a==j&&(this._zoneDelegates=null)},h.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},h.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},h}(),y=c("setTimeout"),b=c("Promise"),w=c("then"),N=[],M=!1;function g(h){if(0===ne&&0===N.length)if(X||e[b]&&(X=e[b].resolve(0)),X){var a=X[w];a||(a=X.then),a.call(X,m)}else e[y](m,0);h&&N.push(h)}function m(){if(!M){for(M=!0;N.length;){var h=N;N=[];for(var a=0;a=0;t--)"function"==typeof e[t]&&(e[t]=ze(e[t],r+"_"+t));return e}function rr(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var tr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Ne=!("nw"in J)&&void 0!==J.process&&"[object process]"==={}.toString.call(J.process),qe=!Ne&&!tr&&!(!Ze||!ye.HTMLElement),nr=void 0!==J.process&&"[object process]"==={}.toString.call(J.process)&&!tr&&!(!Ze||!ye.HTMLElement),Le={},or=function(e){if(e=e||J.event){var r=Le[e.type];r||(r=Le[e.type]=G("ON_PROPERTY"+e.type));var u,t=this||e.target||J,n=t[r];return qe&&t===ye&&"error"===e.type?!0===(u=n&&n.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null!=(u=n&&n.apply(this,arguments))&&!u&&e.preventDefault(),u}};function ar(e,r,t){var n=we(e,r);if(!n&&t&&we(t,r)&&(n={enumerable:!0,configurable:!0}),n&&n.configurable){var c=G("on"+r+"patched");if(!e.hasOwnProperty(c)||!e[c]){delete n.writable,delete n.value;var l=n.get,v=n.set,T=r.substr(2),d=Le[T];d||(d=Le[T]=G("ON_PROPERTY"+T)),n.set=function(p){var y=this;!y&&e===J&&(y=J),y&&(y[d]&&y.removeEventListener(T,or),v&&v.apply(y,Sr),"function"==typeof p?(y[d]=p,y.addEventListener(T,or,!1)):y[d]=null)},n.get=function(){var p=this;if(!p&&e===J&&(p=J),!p)return null;var y=p[d];if(y)return y;if(l){var b=l&&l.call(this);if(b)return n.set.call(this,b),"function"==typeof p.removeAttribute&&p.removeAttribute(r),b}return null},xe(e,r,n),e[c]=!0}}}function ir(e,r,t){if(r)for(var n=0;n=0&&"function"==typeof v[T.cbIdx]?We(T.name,v[T.cbIdx],T,u):c.apply(l,v)}})}function he(e,r){e[G("OriginalDelegate")]=r}var sr=!1,Ye=!1;function Zr(){if(sr)return Ye;sr=!0;try{var e=ye.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ye=!0)}catch(r){}return Ye}Zone.__load_patch("ZoneAwarePromise",function(e,r,t){var n=Object.getOwnPropertyDescriptor,u=Object.defineProperty;var l=t.symbol,v=[],T=!0===e[l("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],d=l("Promise"),p=l("then");t.onUnhandledError=function(f){if(t.showUncaughtError()){var E=f&&f.rejection;E?console.error("Unhandled Promise rejection:",E instanceof Error?E.message:E,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",E,E instanceof Error?E.stack:void 0):console.error(f)}},t.microtaskDrainDone=function(){for(var f=function(){var E=v.shift();try{E.zone.runGuarded(function(){throw E.throwOriginal?E.rejection:E})}catch(s){!function w(f){t.onUnhandledError(f);try{var E=r[b];"function"==typeof E&&E.call(this,f)}catch(s){}}(s)}};v.length;)f()};var b=l("unhandledPromiseRejectionHandler");function N(f){return f&&f.then}function M(f){return f}function X(f){return o.reject(f)}var g=l("state"),m=l("value"),B=l("finally"),j=l("parentPromiseValue"),V=l("parentPromiseState"),k=null,$=!0,I=!1;function Y(f,E){return function(s){try{A(f,E,s)}catch(_){A(f,!1,_)}}}var O=l("currentTaskTrace");function A(f,E,s){var _=function(){var f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}}();if(f===s)throw new TypeError("Promise resolved with itself");if(f[g]===k){var S=null;try{("object"==typeof s||"function"==typeof s)&&(S=s&&s.then)}catch(Z){return _(function(){A(f,!1,Z)})(),f}if(E!==I&&s instanceof o&&s.hasOwnProperty(g)&&s.hasOwnProperty(m)&&s[g]!==k)ne(s),A(f,s[g],s[m]);else if(E!==I&&"function"==typeof S)try{S.call(s,_(Y(f,E)),_(Y(f,!1)))}catch(Z){_(function(){A(f,!1,Z)})()}else{f[g]=E;var C=f[m];if(f[m]=s,f[B]===B&&E===$&&(f[g]=f[V],f[m]=f[j]),E===I&&s instanceof Error){var L=r.currentTask&&r.currentTask.data&&r.currentTask.data.__creationTrace__;L&&u(s,O,{configurable:!0,enumerable:!1,writable:!0,value:L})}for(var x=0;x1?new c(T,d):new c(T),w=e.ObjectGetOwnPropertyDescriptor(p,"onmessage");return w&&!1===w.configurable?(y=e.ObjectCreate(p),b=p,[n,u,"send","close"].forEach(function(N){y[N]=function(){var M=e.ArraySlice.call(arguments);if(N===n||N===u){var X=M.length>0?M[0]:void 0;if(X){var g=Zone.__symbol__("ON_PROPERTY"+X);p[g]=y[g]}}return p[N].apply(p,M)}})):y=p,e.patchOnProperties(y,["close","error","message","open"],b),y};var l=r.WebSocket;for(var v in c)l[v]=c[v]}(e,r),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(e,r,t){t.patchOnProperties=ir,t.patchMethod=ve,t.bindArguments=Xe,t.patchMacroTask=Cr;var n=r.__symbol__("BLACK_LISTED_EVENTS"),u=r.__symbol__("UNPATCHED_EVENTS");e[u]&&(e[n]=e[u]),e[n]&&(r[n]=r[u]=e[n]),t.patchEventPrototype=Mr,t.patchEventTarget=Lr,t.isIEOrEdge=Zr,t.ObjectDefineProperty=xe,t.ObjectGetOwnPropertyDescriptor=we,t.ObjectCreate=Pr,t.ArraySlice=Or,t.patchClass=Re,t.wrapWithCurrentZone=ze,t.filterProperties=_r,t.attachOriginToPatched=he,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Ir,t.getGlobalObjects=function(){return{globalSources:ur,zoneSymbolEventNames:ae,eventNames:ge,isBrowser:qe,isMix:nr,isNode:Ne,TRUE_STR:fe,FALSE_STR:le,ZONE_SYMBOL_PREFIX:Se,ADD_EVENT_LISTENER_STR:Fe,REMOVE_EVENT_LISTENER_STR:Ge}}}),e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=e.__Zone_symbol_prefix||"__zone_symbol__",e[function t(n){return r+n}("legacyPatch")]=function(){var n=e.Zone;n.__load_patch("defineProperty",function(u,c,l){l._redefineProperty=Yr,function qr(){Ie=Zone.__symbol__,Ae=Object[Ie("defineProperty")]=Object.defineProperty,pr=Object[Ie("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,Er=Object.create,pe=Ie("unconfigurables"),Object.defineProperty=function(e,r,t){if(yr(e,r))throw new TypeError("Cannot assign to read only property '"+r+"' of "+e);var n=t.configurable;return"prototype"!==r&&(t=Qe(e,r,t)),mr(e,r,t,n)},Object.defineProperties=function(e,r){return Object.keys(r).forEach(function(t){Object.defineProperty(e,t,r[t])}),e},Object.create=function(e,r){return"object"==typeof r&&!Object.isFrozen(r)&&Object.keys(r).forEach(function(t){r[t]=Qe(e,t,r[t])}),Er(e,r)},Object.getOwnPropertyDescriptor=function(e,r){var t=pr(e,r);return t&&yr(e,r)&&(t.configurable=!1),t}}()}),n.__load_patch("registerElement",function(u,c,l){!function rt(e,r){var t=r.getGlobalObjects();(t.isBrowser||t.isMix)&&"registerElement"in e.document&&r.patchCallbacks(r,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(u,l)}),n.__load_patch("EventTargetLegacy",function(u,c,l){(function Kr(e,r){var t=r.getGlobalObjects(),n=t.eventNames,u=t.globalSources,c=t.zoneSymbolEventNames,l=t.TRUE_STR,v=t.FALSE_STR,T=t.ZONE_SYMBOL_PREFIX,p="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),y="EventTarget",b=[],w=e.wtf,N="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");w?b=N.map(function(H){return"HTML"+H+"Element"}).concat(p):e[y]?b.push(y):b=p;for(var M=e.__Zone_disable_IE_check||!1,X=e.__Zone_enable_cross_context_check||!1,g=r.isIEOrEdge(),B="[object FunctionWrapper]",j="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",V={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},U=0;U0){var h=R.invoke;R.invoke=function(){for(var a=O[r.__symbol__("loadfalse")],o=0;o{Ee(Ee.s=300)}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[429],{300:(ie,Ee,de)=>{de(583)},583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=p;C&&t._transitionTo(p,j),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(j,p):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,p,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(j,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new m(w,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new m(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");t._transitionTo(G,j,p);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;CM.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:E})}}class m{constructor(E,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=E===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ee++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const L=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(M){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let E=J[N];E||(E=J.then),E.call(J,M)}else e[L](M,0)}function R(M){0===ee&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let E=0;EU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const A=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global;function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),je=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;if(je&&i===Te&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let P=Re[d];P||(P=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),y&&y.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;ofunction(y,d){const P=i(y,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(y,d)})}function ue(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function ft(){if(ze)return Ae;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch{}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],P=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),j=null,p=!0,G=!1;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===p&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const T=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;T&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=b);const S=u.run(T,void 0,O&&T!==J&&T!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),p,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new E([],"All promises were rejected"));const s=[];let f=0;try{for(let T of u)f++,s.push(t.resolve(T))}catch{return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const b=[];return new t((T,D)=>{for(let O=0;O{g||(g=!0,T(S))},S=>{b.push(S),f--,0===f&&(g=!0,D(new E(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function b(D){s(D)}function T(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(b,T);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((S,V)=>{f=S,g=V}),T=2,D=0;const O=[];for(let S of u){B(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,T--,0===T&&f(O)},F=>{s?(O[V]=s.errorCallback(F),T--,0===T&&f(O)):g(F)})}catch(F){g(F)}T++,D++}return T-=2,0===T&&f(O),b}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=w();u&&u(f(I(s,p)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||t);const b=new g(M),T=n.current;return this[q]==j?this[R].push(T,b,u,s):ee(this,T,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=t);const g=new f(M);g[_]=_;const b=n.current;return this[q]==j?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,b){return new t((D,O)=>{f.call(this,D,O)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let ye=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=p=>x.handleEvent(p),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(p){X=p}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const j=[];if(1===X.length){const p=Z(X[0],x,_);p&&j.push(p)}else{const p=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let p=R;for(;p&&!p.hasOwnProperty(c);)p=de(p);if(!p&&R[c]&&(p=R),!p||p[P])return!1;const G=_&&_.eventNameToString,h={},I=p[P]=p[c],w=p[A(a)]=p[a],Q=p[A(y)]=p[y],oe=p[A(d)]=p[d];let z;function U(s,f){return!ye&&"object"==typeof s&&s?!!s.capture:ye&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(z=p[A(_.prepend)]=p[_.prepend]);const t=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const b=g&&s.target[g];if(b)for(let T=0;Tfunction(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}catch{}}),y.call(n,d,P,v)},e.attachOriginToPatched(n[o],y)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function pe(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function P(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,L)}),a=le(e,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";pe(e,n,i,"Timeout"),pe(e,n,i,"Interval"),pe(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{pe(e,"request","cancel","AnimationFrame"),pe(e,"mozRequest","mozCancel","AnimationFrame"),pe(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(P,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function mt(e,n){n.patchEventPrototype(e,n)})(e,i),function pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let P=0;P{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function yt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===J){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),p=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return p.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(P,d),P})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},ie=>{ie(ie.s=300)}]); \ No newline at end of file